LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* DMA problem on PPC 74xx
From: Monika Borikar @ 2006-05-12  6:44 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 876 bytes --]

Hello All,
 
 I am working on PPC 74xx processor which uses Marvell mv64360 host bridge. On PPC linux-2.6.12.5 (with EV64360 patch ) is running, with CONFIG_NOT_COHERENT_CACHE=y option in .config file.
 
 I have a pci device which has to do DMA transfer from PPC memory. This pci device is DMA master for all dma transactions. The device driver on PPC allocates memory using pci_alloc_consistent & write the data to this allocated memory. Address of this allocated memory is given to device using which device is supposed to do read/write using dma mechanism.
 
 Looks like dma transfer is not happening. I found few mails which talks about some problem with caching. Can anybody guide me if there is any such issue & how to solve that?
 
 Thanks
 -Monika
 
 
		
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

[-- Attachment #2: Type: text/html, Size: 1021 bytes --]

^ permalink raw reply

* 2.6 vs 2.4
From: Srinivas Murthy @ 2006-05-12  6:51 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 275 bytes --]

Hi,
 Wolfgang Denk has a good listing of issues to consider betn linux 2.4 vs
2.6 for ppc82xx based platforms (http://www.denx.de/wiki/Know/Linux24vs26).

 Would this recommendation still hold?

 Are there any patches, developments in this area?

Thanks,
_Srinivas

[-- Attachment #2: Type: text/html, Size: 493 bytes --]

^ permalink raw reply

* Linux doesn't boot if USB is enabled
From: IGOR LURI @ 2006-05-12  8:53 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 3070 bytes --]

Hi all,

We have a mpc5200 Icecube board with u-boot 1.1.3 and linux 2.4.25 from Denx where linux boots with USB enabled. 

We also have a mpc5200liteB evaluation board with u-boot 1.1.4 and linux 2.4.25 from Denx. We have realized that when USB is enabled linux doen´t boot, it hungs after u-boot uncompresses linux image.

				=> usb reset
				(Re)start USB...
				USB:   scanning bus for devices... 1 USB Device(s) found
				       scanning bus for storage devices... 0 Storage Device(s) found
				=>run bootcmd
				BOOTP broadcast 1
				DHCP client bound to address 10.0.17.102
				Using FEC ETHERNET device
				TFTP from server 10.0.7.228; our IP address is 10.0.17.102
				Filename 'vmlinux.UBoot'.
				Load address: 0x500000
				Loading: #################################################################
				         #################################################################
				         #################################################################
				         #
				done
				Bytes transferred = 1000231 (f4327 hex)
				=> bootm 0x500000
				## Booting image at 00500000 ...
				   Image Name:   Linux-2.4.25-rthal5-TRACE
				   Created:      2006-05-11  15:08:31 UTC
				   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
				   Data Size:    1000167 Bytes = 976.7 kB
				   Load Address: 00000000
				   Entry Point:  00000000
				   Verifying Checksum ... OK
				   Uncompressing Kernel Image ... OK
				Memory BAT mapping: BAT2=256Mb, BAT3=0Mb, residual: 0Mb
				Linux version 2.4.25-rthal5-TRACE (igor@ILURI_LINUX) (gcc version 3.3.6) #301 jue may 11 17:08:00 CEST 2006
				On node 0 totalpages: 65536
				zone(0): 65536 pages.
				zone(1): 0 pages.
				zone(2): 0 pages.
				Kernel command line: root=/dev/nfs rw console=ttyS0 console=ttyS0 init=/sbin/init ip=on
				Console: colour dummy device 80x25
				Calibrating delay loop... 307.20 BogoMIPS
				Memory: 256012k available (1824k kernel code, 612k data, 96k init, 0k highmem)
				Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)


If we disable USB with the command 

				=> usb stop
				stopping USB..

linux boots as usual.

I don't found changes in USB part between u-boot 1.1.3 and u-boot 1.1.4. I have readen MPC5200 revision B chip errata and there is nothing about USB. But I have found  a  manual named  U-Boot Bootloader for MPL Single Board Computer that says the following:

	Warning: Please make sure to stop the USB subsystem before booting an OS. This can be done by
	adding the command usb stop to the variable bootcmd:

This board uses a ppc405 and also it has the same problem.


Someone knows why linux doesn't boot with USB enabled on a mpc5200liteB board? Is this a hardware  problem?Is a revision B chip errata? Or, a software problem?


Thanks in advance.


Igor Luri
R&D Software Department
Fagor Automation S. Coop.
P. O. Box 144
E-20500 Mondragón-Arrasate
Tel. 	++34 943 71 92 00 
	++34 943 71 92 01 (Ext. 44124)
Fax. 	++34 943 79 92 03
www.fagorautomation.com

[-- Attachment #2: Type: text/html, Size: 6648 bytes --]

^ permalink raw reply

* Re: Linux doesn't boot if USB is enabled
From: Wolfgang Denk @ 2006-05-12  9:53 UTC (permalink / raw)
  To: IGOR LURI; +Cc: linuxppc-embedded
In-Reply-To: <918EB199DDDFFA42BEA2EB3A1C6021F3CE19E2@correo.fagorautomation.net>

In message <918EB199DDDFFA42BEA2EB3A1C6021F3CE19E2@correo.fagorautomation.net> you wrote:
> 
> We also have a mpc5200liteB evaluation board with u-boot 1.1.4 and linux
> 2.4.25 from Denx. We have realized that when USB is enabled linux
> doen´t boot, it hungs after u-boot uncompresses linux image.

You need the latest versions of both U-boot and Linux.

For U-Boot, you need a version after April 18 (see especially  commit
ID  8419c013048b1f15f3fa2fc7c0463d860a04ee3e).  For the Linux kernel,
you  need  a  version  after  April  21  (see  especially  commit  ID
1ac8b71bdbe6de928ba84c83831f6988a9b51165).

I recommend to grab the top-of-tree from both repositories.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Well, the way I see it, logic is only a way of being ignorant by num-
bers.                                 - Terry Pratchett, _Small Gods_

^ permalink raw reply

* how to mount /dev/ram0 to /
From: tony @ 2006-05-12  9:43 UTC (permalink / raw)
  To: linuxppc-embedded@ozlabs.org


I made a new uRamdisk for the mini bubinga board,
change uboot's bootargs like this
bootargs root=/dev/ram rw console=ttyS0,115200 ip=192.168.0.200:192.168.0.19:::bubinga:eth0:off panic=1
==>
bootargs root=/dev/ram0 rw console=ttyS0,115200 ip=192.168.0.200:192.168.0.19:::bubinga:eth0:off panic=1

after boot up,excute df to see the mount point:
~ # df
Filesystem           1k-blocks      Used Available Use% Mounted on
~ # 
nothing was mounted.
the fatab in /etc is like this:
/dev/ram0               /               ext2    defaults        1 1
none                    /proc           proc    defaults        0 0

anything wrong?
thank you.

tony

^ permalink raw reply

* Re: how to mount /dev/ram0 to /
From: Wolfgang Denk @ 2006-05-12 10:09 UTC (permalink / raw)
  To: tony; +Cc: linuxppc-embedded@ozlabs.org
In-Reply-To: <44645CBD.00AAC3.19405>

In message <44645CBD.00AAC3.19405> you wrote:
> 
> after boot up,excute df to see the mount point:
> ~ # df
> Filesystem           1k-blocks      Used Available Use% Mounted on
> ~ # 
> nothing was mounted.

Your rc scripts probably did not care to update /etc/mtag as needed.

Check what "cat /proc/mounts" gives.

> the fatab in /etc is like this:
> /dev/ram0               /               ext2    defaults        1 1
> none                    /proc           proc    defaults        0 0
> 
> anything wrong?

Probably no part of your rc scripts did anything with the information
in /etc/fstab ...

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Perl itself is  usually  pretty  good  about  telling  you  what  you
shouldn't do. :-)     - Larry Wall in <11091@jpl-devvax.JPL.NASA.GOV>

^ permalink raw reply

* regarding setup_common_caches (port linux to prpmc610 kernel-2.4.25 with MVME2100 patch) dated jan 10 2006
From: Kiran Kumar.A @ 2006-05-12 11:06 UTC (permalink / raw)
  To: siman; +Cc: linuxppc-embedded

Hello Siman,

This is kiran here working on mvme6100 for kernel 2.6.13-4.
I saw your issue regarding the setup_common_caches in mvme2100 port.=20

Since I'm also getting the similar problem in the port mentioned above, I j=
ust wanted to know that , Did you crack the issue of common_caches??. If so=
, Please let me know as to what could be done with this.

Waiting for your reply at the earliest.

regards,
kiran


--=20
_______________________________________________

Search for businesses by name, location, or phone number.  -Lycos Yellow Pa=
ges

http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.as=
p?SRC=3Dlycos10

^ permalink raw reply

* Re: ppc32 kernel boot problem (pmu related?)
From: Nathan Pilatzke @ 2006-05-12 12:40 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev
In-Reply-To: <1147403525.7343.19.camel@localhost.localdomain>

On 5/11/06, Benjamin Herrenschmidt <benh@kernel.crashing.org> wrote:
> On Thu, 2006-05-11 at 15:07 -0400, Nathan Pilatzke wrote:
> > I am running an eMac first generation powerpc (700MHz) and the Gentoo
> > distribution.  Kernel 2.6.15 (Gentoo revision 1) is working quite well
> > for me.  A few days ago I compiled 2.6.17-rc3 from the vanilla sources
> > ebuild and am having troubles with the pmu code.
> >
> > I can boot successfully when my config has
> > # CONFIG_ADB_PMU is not set
> > but cannot boot if my config has
> > CONFIG_ADB_PMU=3Dy
>
> What happens when you enable that option ?
>
Sorry, I was a little light on details... I thought this might be a
known problem.  With the pmu option enabled (and early open firmware
messages enabled) I get:

Using PowerMac machine description
Total memory =3D 640MB; using 2048kB for hash table (at cfe00000)
Linux version 2.6.17-rc3 (root@the_emac) (gcc version 3.4.5 (Gentoo 3.4.5-r=
1, ss
p-3.4.5-1.0, pie-8.7.9)) #11 Thu May 11 09:53:39 EDT 2006
Found UniNorth memory controller & host bridge @ 0xf8000000 revision: 0x11
Mapped at 0xfdfc0000
Found a Keylargo mac-io controller, rev: 3, mapped at 0xfdf40000
Processor NAP mode on idle enabled.
PowerMac motherboard: eMac
setup_arch: bootmem
Found UniNorth PCI host bridge at 0xf0000000. Firmware bus number: 0->0
Found UniNorth PCI host bridge at 0xf2000000. Firmware bus number: 0->0
Found UniNorth PCI host bridge at 0xf4000000. Firmware bus number: 0->0
via-pmu: Server Mode is disabled
PMU driver v2 initialized for Core99, firmware: 0c
arch: exit
Top of RAM: 0x28000000, Total RAM: 0x28000000
Memory hole size: 0MB
Built 1 zonelists
Kernel command line: root=3D/dev/sda8 ro video=3Dofonly root=3D/dev/sda8 ro=
otdelay=3D10
resume=3D/dev/sda9
mpic: Setting up MPIC " MPIC 1   " version 1.2 at 80040000, max 4 CPUs
mpic: ISU size: 64, shift: 6, mask: 3f
mpic: Initializing for 64 sources
PID hash table entries: 4096 (order: 12, 16384 bytes)
time_init: decrementer frequency =3D 24.913389 MHz
time_init: processor frequency   =3D 700.000000 MHz

and then the machine freezes and requires a power cycle to restart.
Without that option enabled I get this:

 PowerMac motherboard: eMac
-setup_arch: bootmem
 Found UniNorth PCI host bridge at 0xf0000000. Firmware bus number: 0->0
 Found UniNorth PCI host bridge at 0xf2000000. Firmware bus number: 0->0
 Found UniNorth PCI host bridge at 0xf4000000. Firmware bus number: 0->0
-via-pmu: Server Mode is disabled
-PMU driver v2 initialized for Core99, firmware: 0c
-arch: exit
+WARNING ! Your machine is PMU-based but your kernel
+          wasn't compiled with CONFIG_ADB_PMU option !
 Top of RAM: 0x28000000, Total RAM: 0x28000000
 Memory hole size: 0MB
+On node 0 totalpages: 163840
+  DMA zone: 163840 pages, LIFO batch:31
 Built 1 zonelists
 Kernel command line: root=3D/dev/sda8 ro video=3Dofonly root=3D/dev/sda8
rootdelay=3D10
resume=3D/dev/sda9
 mpic: Setting up MPIC " MPIC 1   " version 1.2 at 80040000, max 4 CPUs
 mpic: ISU size: 64, shift: 6, mask: 3f
 mpic: Initializing for 64 sources
 PID hash table entries: 4096 (order: 12, 16384 bytes)
 time_init: decrementer frequency =3D 24.913389 MHz
 time_init: processor frequency   =3D 700.000000 MHz
+Console: colour dummy device 80x25
+Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
...

and it continues booting as normal.  As a side note it should be known
that I could not coerce the PowerMac ALSA sound driver to compile
without the PMU enabled either, so there probably should be a config
dependency on it if that is the case.

Anything else I can do?

^ permalink raw reply

* Re: [U-Boot-Users] Re: Failure of 2 BAT schemes to enable D-cache
From: Jerry Van Baren @ 2006-05-12 12:26 UTC (permalink / raw)
  Cc: U-Boot-Users@lists.sourceforge.net, linuxppc-embedded@ozlabs.org
In-Reply-To: <20060511223814.2195C352B0C@atlas.denx.de>

Wolfgang Denk wrote:
> In message <20060511201329.23866.qmail@web37105.mail.mud.yahoo.com> you wrote:
>> Please post comments and suggestions of how I can
>> initialized MMU for d-cache performance. I am  new
>> to this.
> 
> We have been through this before, several times. Many times actually.
> I have explained it to you, and so did others.
> 
> It is perfectly fine with me if you ignore my advice. But then please
> stop posting the same question again and again here.
> 
> You will not receive any new answers.
> 
> Again, and definitely for the last time:
> 
> It makes no sense to try to enable the data cache on a MPC82xx system
> in U-Boot; the time you could save if you succeeded  is  marginal  to
> your application startup time.
> 
> And in Linux the D-Cache is enabled, so no changes are needed.
> 
> 
> Best regards,
> Wolfgang Denk

Furthermore, manipulating processor control registers interactively with 
a debugger (e.g. attempting to enable dcache) is somewhere between 
nearly impossible and totally impossible.  Read and understand the 
processor manual on the sequences required for changing control 
registers and enabling/disabling cache.  You cannot guarantee that the 
sequences will be done properly because the debugger has LOTS of unknown 
code running to implement what to you "looks like" a simple register 
write command.

Signing off on this thread,
gvb

^ permalink raw reply

* Re: Linux doesn't boot if USB is enabled
From: Igor Luri @ 2006-05-12 13:30 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: linuxppc-embedded
In-Reply-To: <20060512095339.421CC352B2A@atlas.denx.de>

Dear Wolfgang,

I have updated linux kernel an u-boot from the CVS repository, so I have 
de latest u-boot and linux version. I grabed the new u-boot an kernel 
and now hungs later while probing PCI. If I configure linux kernel 
without PCI support, it boots OK.

I use lite5200b_defconfig configuration. I am missing something in the 
configuration relationated with PCI?



U-Boot 1.1.4 (May 12 2006 - 
14:45:32)                                                                           

                                                                                                                

CPU:   MPC5200 v2.2, Core v1.4 at 462 
MHz                                                                      
       Bus 132 MHz, IPB 132 MHz, PCI 33 
MHz                                                                    
Board: Freescale 
Lite5200B                                                                                      

I2C:   85 kHz, 
ready                                                                                            

DRAM:  256 
MB                                                                                                   

FLASH: 32 
MB                                                                                                    

*** Warning - bad CRC, using default 
environment                                                               
                                                                                                                

PCI:   Bus Dev VenId DevId Class 
Int                                                                            

        00  1a  1057  5809  0680  
00                                                                            

In:    
serial                                                                                                   

Out:   
serial                                                                                                   

Err:   
serial                                                                                                   

Net:   FEC 
ETHERNET                                                                                             

IDE:   Bus 0: 
OK                                                                                                

  Device 0: Model: SanDisk SDCFB-32 Firm: HDX 2.15 Ser#: 
103407C2604A5824                                      
            Type: Hard 
Disk                                                                                     

            Capacity: 30.6 MB = 0.0 GB (62720 x 
512)                                                           
  Device 1: not 
available                                                                                       

                                                                                                                

Type "run flash_nfs" to mount root filesystem over NFS

Hit any key to stop autoboot:  0
=>  bootp 500000 vmlinux.UBoot
BOOTP broadcast 1
Using FEC ETHERNET device
TFTP from server 10.0.7.228; our IP address is 10.0.17.102
Filename 'vmlinux.UBoot'.
Load address: 0x500000
Loading: #################################################################
         #################################################################
         ##########################################################
    
 done                                                                                                            

Bytes transferred = 959935 (ea5bf 
hex)                                                                          

=> usb 
reset                                                                                                    

(Re)start 
USB...                                                                                                

USB:   scanning bus for devices... 1 USB Device(s) 
found                                                       
       scanning bus for storage devices... 0 Storage Device(s) 
found                                           
=> bootm 
500000                                                                                                 

## Booting image at 00500000 
...                                                                                

   Image Name:   
Linux-2.4.25                                                                                   

   Created:      2006-05-12  12:31:19 
UTC                                                                      
   Image Type:   PowerPC Linux Kernel Image (gzip 
compressed)                                                  
   Data Size:    959871 Bytes = 937.4 
kB                                                                       
   Load Address: 
00000000                                                                                       

   Entry Point:  
00000000                                                                                       

   Verifying Checksum ... 
OK                                                                                    

   Uncompressing Kernel Image ... 
OK                                                                            

Memory BAT mapping: BAT2=256Mb, BAT3=0Mb, residual: 
0Mb                                                        
Linux version 2.4.25 (igor@ILURI_LINUX) (gcc version 3.3.6) #1 vie may 
12 14:27:36 CEST 2006                   
On node 0 totalpages: 
65536                                                                                     

zone(0): 65536 
pages.                                                                                           

zone(1): 0 
pages.                                                                                               

zone(2): 0 
pages.                                                                                               

Kernel command 
line:                                                                                            

Calibrating delay loop... 307.20 
BogoMIPS                                                                       

Memory: 256340k available (1636k kernel code, 496k data, 76k init, 0k 
highmem)                                 
Dentry cache hash table entries: 32768 (order: 6, 262144 
bytes)                                                
Inode cache hash table entries: 16384 (order: 5, 131072 
bytes)                                                 
Mount cache hash table entries: 512 (order: 0, 4096 
bytes)                                                     
Buffer cache hash table entries: 16384 (order: 4, 65536 
bytes)                                                 
Page-cache hash table entries: 65536 (order: 6, 262144 
bytes)                                                  
POSIX conformance testing by 
UNIFIX                                                                             

PCI: Probing PCI hardware
PCI: moved dev

Wolfgang Denk wrote:

>In message <918EB199DDDFFA42BEA2EB3A1C6021F3CE19E2@correo.fagorautomation.net> you wrote:
>  
>
>>We also have a mpc5200liteB evaluation board with u-boot 1.1.4 and linux
>>2.4.25 from Denx. We have realized that when USB is enabled linux
>>doen´t boot, it hungs after u-boot uncompresses linux image.
>>    
>>
>
>You need the latest versions of both U-boot and Linux.
>
>For U-Boot, you need a version after April 18 (see especially  commit
>ID  8419c013048b1f15f3fa2fc7c0463d860a04ee3e).  For the Linux kernel,
>you  need  a  version  after  April  21  (see  especially  commit  ID
>1ac8b71bdbe6de928ba84c83831f6988a9b51165).
>
>I recommend to grab the top-of-tree from both repositories.
>
>Best regards,
>
>Wolfgang Denk
>
>  
>

^ permalink raw reply

* Re: 2.6 vs 2.4
From: Benjamin Herrenschmidt @ 2006-05-12 13:57 UTC (permalink / raw)
  To: Srinivas Murthy; +Cc: linuxppc-dev
In-Reply-To: <7cb1293c0605112351y658460a0x8b793ea12004dbfc@mail.gmail.com>

On Thu, 2006-05-11 at 23:51 -0700, Srinivas Murthy wrote:
> Hi,
>  Wolfgang Denk has a good listing of issues to consider betn linux 2.4
> vs 2.6 for ppc82xx based platforms
> (http://www.denx.de/wiki/Know/Linux24vs26).
>  
>  Would this recommendation still hold?
>  
>  Are there any patches, developments in this area?

The main open question is: is somebody still maintaining the 8xx kernel
port ?

Ben.

^ permalink raw reply

* Re: 2.6 vs 2.4
From: Benjamin Herrenschmidt @ 2006-05-12 14:02 UTC (permalink / raw)
  To: Srinivas Murthy; +Cc: linuxppc-dev
In-Reply-To: <1147442231.9412.9.camel@localhost.localdomain>

On Fri, 2006-05-12 at 23:57 +1000, Benjamin Herrenschmidt wrote:
> On Thu, 2006-05-11 at 23:51 -0700, Srinivas Murthy wrote:
> > Hi,
> >  Wolfgang Denk has a good listing of issues to consider betn linux 2.4
> > vs 2.6 for ppc82xx based platforms
> > (http://www.denx.de/wiki/Know/Linux24vs26).
> >  
> >  Would this recommendation still hold?
> >  
> >  Are there any patches, developments in this area?
> 
> The main open question is: is somebody still maintaining the 8xx kernel
> port ?

Oh , and to give a better reply after reading that web page... I'd say
there might be a reason why 2.6 is slower (or appears slower) than 2.4
on some of those embedded platforms. It's definitely faster in a number
of areas on 6xx and other desktop CPUs. A lot of embedded folks will
then bitch and complain about the slowdown on their 8xx processor, but
very few of them if not none popped up actually identifying the actual
issues and coming up with solution for them during the 2.6 dev. cycle.

Ben.

^ permalink raw reply

* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
From: Wolfgang Pfeiffer @ 2006-05-12 14:19 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linuxppc-dev list, debian-powerpc, Matthias Grimm
In-Reply-To: <20060510213028.GG3878@localhost>

Hi All

First a fat Thanks to Johannes, Benh and to all of those heroes making
it possible to run a relatively freh PPC (Apple) Powerbook model with Linux ... :)

I'm cross-posting. So a short note for those who can't know what all this is about:

I didn't have sound with a fresh git kernel, on the machine mentioned above:

$ cat /proc/cpuinfo 
processor       : 0
cpu             : 7447A, altivec supported
clock           : 833.333000MHz
revision        : 0.5 (pvr 8003 0105)
bogomips        : 16.57
timebase        : 8320000
platform        : PowerMac
machine         : PowerBook5,8
motherboard     : PowerBook5,8 MacRISC3 Power Macintosh 
detected as     : 287 (PowerBook G4 15")
pmac flags      : 00000019
L2 cache        : 512K unified
pmac-generation : NewWorld

[Oops, something's messed up there: this actually is a 1.67 Ghz
processor. I'll have a look at this later .. :) ]

That's why I sent a message to linuxppc-dev@ozlabs.org. The thread is
starting here:

http://ozlabs.org/pipermail/linuxppc-dev/2006-May/022736.html

On Wed, May 10, 2006 at 11:30:28PM +0200, Wolfgang Pfeiffer wrote:
> On Wed, May 10, 2006 at 06:04:13PM +0200, Johannes Berg wrote:
> 
> > Also, try snd-aoa.
> 
> Impossible here, it does not compile here. Neither with gcc 4.0 or 4.1

Wrong. To put it mildly .. :) Result probably of me being too tired,
too fast, and too anal when reading instructions ...

# lsmod | grep -i aoa
snd_aoa_codec_onyx     12032  2 
snd_aoa_fabric_layout     7492  2 
snd_aoa                 8076  2 snd_aoa_codec_onyx,snd_aoa_fabric_layout
soundbus                6628  2 snd_aoa_fabric_layout,i2sbus
snd                    60148  12 snd_aoa_codec_onyx,snd_aoa_fabric_layout,
				 snd_aoa,snd_powermac,i2sbus,snd_pcm_oss,
				snd_mixer_oss,snd_pcm,snd_timer   

I successfully compiled the software now, and only with gcc-4.1. Example:

# modinfo snd_aoa 
filename:       /lib/modules/2.6.17-rc3-gf358166a-dirty/kernel/sound/aoa/snd-aoa.ko
description:    Apple Onboard Audio Sound Driver
author:         Johannes Berg <johannes@sipsolutions.net>
license:        GPL
vermagic:       2.6.17-rc3-gf358166a-dirty mod_unload gcc-4.1
depends:        snd
srcversion:     D0DFD2EF0CFEB8E7C08AAEB

The git kernel I compiled the snd-aoa modules for (must be from about
yesterday, IINM):

 cat /proc/version
Linux version 2.6.17-rc3-gf358166a-dirty (root@debby1-6) (gcc version
4.1.1 20060428 (prerelease) (Debian 4.1.0-2)) #1 Fri May 12 01:13:36
CEST 2006

config for this latest kernel (Please note the
"CONFIG_PREEMPT_VOLUNTARY=y" in there ... :) ... :

<http://wolfgangpfeiffer.com/config-2.6.17-rc3-gf358166a-dirty.txt>

I filled /etc/modules with snd_aoa modules and i have sound already
from boot time on ... with a minor glitch (i.e. not being able to
store a certain volume level via alsactrl to the next reboot, as it
seems), but sound ...

> 
> I took your instructions from
> http://lists.debian.org/debian-powerpc/2006/03/msg00470.html
> 

I'm listening to some Internet radio station via alsaplayer while
writing this mail ... :) ...

Results, as of now:

I can change the sound volume via the software. Tested in xine and
alsaplayer-gtk so far ...

I have problems doing the same with pbbuttonsd. That is I can start,
e.g., gtkppbuttons, but when pressing <FN>-<F5> or <FN>-<F4> it seems
being impossible to change the sound volume this way. But I can toggle
it completely ON/OFF with <FN>-<F3.> ... not being sure tho' whether
this is due to some of my braindead mistakes or really a pbbuttonsd
issue ...

Thanks again a lot to everyone for your work, your time, and the
resulting fine software ... :)

Nice weekend
Wolfgang

-- 
Wolfgang Pfeiffer: /ICQ: 286585973/ + + +  /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer

Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on

^ permalink raw reply

* Help: Linux porting to custom target hw
From: Jayanta Das @ 2006-05-12 14:23 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 31 bytes --]

Thiago - thanks for the help.

[-- Attachment #2: Type: text/html, Size: 347 bytes --]

^ permalink raw reply

* Re: Alubook 5,8: No sound with 2.6.17-rc3-g5528e568-dirty
From: Johannes Berg @ 2006-05-12 14:27 UTC (permalink / raw)
  To: Wolfgang Pfeiffer; +Cc: linuxppc-dev list, debian-powerpc, Matthias Grimm
In-Reply-To: <20060512141918.GA3566@localhost>

[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]

On Fri, 2006-05-12 at 16:19 +0200, Wolfgang Pfeiffer wrote:

> [Oops, something's messed up there: this actually is a 1.67 Ghz
> processor. I'll have a look at this later .. :) ]

No, it's fine, it is clocked down at boot, use cpufreq.

> I filled /etc/modules with snd_aoa modules and i have sound already
> from boot time on ... with a minor glitch (i.e. not being able to
> store a certain volume level via alsactrl to the next reboot, as it
> seems), but sound ...

There are a bunch of userland bugs... Alsamixer cannot cope with the
3..28 of the capture volume, some gnome tools can't cope with the
negative scale of the playback volume, and others.
I don't want to workaround this, please all file bugs against the
respective programs.
amixer always seems to work fine.

> I have problems doing the same with pbbuttonsd. That is I can start,
> e.g., gtkppbuttons, but when pressing <FN>-<F5> or <FN>-<F4> it seems
> being impossible to change the sound volume this way. But I can toggle
> it completely ON/OFF with <FN>-<F3.> ... not being sure tho' whether
> this is due to some of my braindead mistakes or really a pbbuttonsd
> issue ...

No idea, I no longer use pbbuttonsd.

> Thanks again a lot to everyone for your work, your time, and the
> resulting fine software ... :)

:)

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 793 bytes --]

^ permalink raw reply

* Re: 2.6 vs 2.4
From: Thiago Galesi @ 2006-05-12 14:29 UTC (permalink / raw)
  To: Srinivas Murthy; +Cc: linuxppc-dev
In-Reply-To: <7cb1293c0605112351y658460a0x8b793ea12004dbfc@mail.gmail.com>

> Hi,
>  Wolfgang Denk has a good listing of issues to consider betn linux 2.4 vs
> 2.6 for ppc82xx based platforms
> (http://www.denx.de/wiki/Know/Linux24vs26).
>
>  Would this recommendation still hold?

Not much. This article is almost one year old. Even though some things
do apply (like bigger footprint, etc), the kernel improved a lot on
the months that followed that article.

I've participated in a project that used a (somewhat patched) 2.6.10
kernel, with soccessful results.

Not the mention the advantages of the 2.6 kernel in general.

>The main open question is: is somebody still maintaining the 8xx kernel
>port ?

LINUX FOR POWERPC EMBEDDED PPC8XX
P:      Marcelo Tosatti
S:      Maintained

(this has been determined AFAIK in OLS 2005)

^ permalink raw reply

* Re: 2.6 vs 2.4
From: Felix Domke @ 2006-05-12 14:43 UTC (permalink / raw)
  To: linuxppc-dev
In-Reply-To: <82ecf08e0605120729l43041aebuaef375a568700354@mail.gmail.com>

Thiago Galesi wrote:
> Not much. This article is almost one year old. Even though some things
> do apply (like bigger footprint, etc), the kernel improved a lot on
> the months that followed that article.
> I've participated in a project that used a (somewhat patched) 2.6.10
> kernel, with soccessful results.
Can you point me to a list of changes which where done? I really like to
check if they apply to my performance problems with 2.6 kernels, i.e. if
it's worth porting the board specific changes to a newer kernel.

Felix

^ permalink raw reply

* Re: 2.6 vs 2.4
From: Felix Domke @ 2006-05-12 14:23 UTC (permalink / raw)
  To: linuxppc-dev
In-Reply-To: <1147442231.9412.9.camel@localhost.localdomain>

Benjamin Herrenschmidt wrote:
>> Wolfgang Denk has a good listing of issues to consider betn linux 2.4
>>vs 2.6 for ppc82xx based platforms
>>(http://www.denx.de/wiki/Know/Linux24vs26).
>> Would this recommendation still hold?
>> Are there any patches, developments in this area?
> The main open question is: is somebody still maintaining the 8xx kernel
> port ?
The 4xx port has the same problem.

When we switched from 2.4 to 2.6, IDE performance ("hdparm -t" to have a
single number) was reduced by about 25% (even after trying to finetune
the IDE driver - the time between the end of one transfer and the begin
of the next transfer was just too long to saturate the harddisk).

Because of my lack of knowledge of the block device layer's internals I
wasn't able to track that down. My initial plan was to build a trace
using the RiscTrace environment, to see any instruction executed between
requests, but my company moved away from PPC4xx hardware
(unfortunately), so I was never able to complete this. I still believe
that other platforms have the same problems.

On a 300MHz embedded mips machine, saturating a 100MBit network link via
ftp is not easy. Our old 252MHZ PPC machines never performed better than
around 5MB/s (but had a non-DMA NIC, which however could be satured in
theory with about 70% cpu load, based on the bus bandwidth. Why are the
remaining 30% not enough to do IDE DMA and the TCP overhead? Memory
performance? But why did we had better numbers with 2.4 then?).

On that mips machine, both IDE and network support DMA (agreed, it's a
RTL8139, so it requires another memcpy), and memcpy() performance is
>100MB/s. Where is the bottleneck? And, much more important: how do
measure it?

I'm sorry that I can't really much do anything else than complaining,
but all my attempts to track down the problems were futile. I'm not sure
if testing "ftp performance" (as a completely non-synthetic benchmark -
FTP speed is/was a real issue on our platform) is "the right test", but
it's one of the things where i personally want linux to become better.

Or is this just a misconfiguration? Are there mysterious IO scheduler
default parameters which are just suboptimal for our case?

regards,
Felix

^ permalink raw reply

* Re: windfarm for PM72/PM73/RM31
From: Étienne Bersac @ 2006-05-12 15:15 UTC (permalink / raw)
  To: Robin H. Johnson; +Cc: linuxppc-dev
In-Reply-To: <20060502001306.GA9589@curie-int.vc.shawcable.net>

[-- Attachment #1: Type: text/plain, Size: 362 bytes --]

Hello,

> The PID params portion will come together a bit later, please bug me by
> Wednesday next week if I haven't posted anything.

Now we are Friday, what can we test ? ;) Sadly, my iMac G5 is under
repair for quite some times (it crashes during compilation of mesa
packages and never woke up).

So what'sup ? :)

Étienne

-- 
Verso l'Alto !

[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply

* 2.6 vs 2.4
From: Thiago Galesi @ 2006-05-12 16:24 UTC (permalink / raw)
  To: Felix Domke; +Cc: linuxppc-dev
In-Reply-To: <44649F09.2020803@elitedvb.net>

> Can you point me to a list of changes which where done? I really like to
> check if they apply to my performance problems with 2.6 kernels, i.e. if
> it's worth porting the board specific changes to a newer kernel.
>

I'm sorry, I was thinking (specifically) of the 8XX port that went
from broken to maintained.

It would help if you could mention some ofthe problems you are having.

>When we switched from 2.4 to 2.6, IDE performance ("hdparm -t" to have a
>single number) was reduced by about 25% (even after trying to finetune
>the IDE driver

>On a 300MHz embedded mips machine, saturating a 100MBit network link via
>ftp is not easy.

Unfortunatelly my knowlege of IDE is almost 0. Maybe it has something
to do with schedulers being used?

About network, I had better results with a much slower processor than
your reported 5Mb/s (60MHz PPC in 2.6.10)


Thiago

^ permalink raw reply

* Routing problem
From: Antonio Di Bacco @ 2006-05-12 20:53 UTC (permalink / raw)
  To: linuxppc-embedded

Hi all,

I have a board with an MPC880 using the tow FECs as two ethernet interfaces. I 
tried to enable the ip forwarding with no success. I have issued  "echo 1 
> /proc/sys/net/ipv4/ip_forward", is it sufficient to make Linux work as a 
router?

Bye,
Antonio. 

^ permalink raw reply

* Bigphysarea vs. kernel 2.4.32 and PPC405GPr
From: Stephen Williams @ 2006-05-12 23:31 UTC (permalink / raw)
  To: linuxppc-embedded


I'm trying to use the bigphysarea patch to help me allocate big
physical chunks of memory for use by some custom embedded devices.
I've applied the bigphysarea-2.4.20 patch and built, no trouble,
and I've got it to config for my PPC. I can see at boot time that
the bigphysarea is getting its pages.

I'm trying to use a mmap call to the driver to map a chunk of this
memory into the process. The mmap for the driver has this:

      pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE;
      vma->vm_flags |= VM_RESERVED;

      npages = (vma->vm_end - vma->vm_start) / PAGE_SIZE;
      heap_map_base = bigphysarea_alloc_pages(npages, 1, GFP_KERNEL);

      printk("XXXX Map base=%p, %ld pages\n", heap_map_base, npages);

      rc = remap_page_range(vma->vm_start,
			    (unsigned long)heap_map_base,
			    npages*PAGE_SIZE,
			    vma->vm_page_prot);

The mmap returns without an error, but any access to the mapped
region gets me an immediate "Oops: machine check, sig: 7". I don't
see it. Where is the stupid mistake that I'm invariably making?


-- 
Steve Williams                "The woods are lovely, dark and deep.
steve at icarus.com           But I have promises to keep,
http://www.icarus.com         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."

^ permalink raw reply

* gentoo-2.6.15-r1 - Kernel oops when removing then reinstalling DVD drive into Pismo mediabay
From: Jordan Herring @ 2006-05-13  1:09 UTC (permalink / raw)
  To: benh; +Cc: linuxppc-dev

This is using the 2.6.15 kernel with the Gentoo patches. The 2.6.16
kernel also exhibits this behavior.

Mar  4 08:48:50 zetagundam mediabay0: switching to 3
Mar  4 08:48:50 zetagundam mediabay0: powering up
Mar  4 08:48:50 zetagundam mediabay0: enabling (kind:3)
Mar  4 08:48:50 zetagundam mediabay0: waiting reset (kind:3)
Mar  4 08:48:51 zetagundam mediabay0: waiting IDE reset (kind:3)
Mar  4 08:48:52 zetagundam mediabay0: waiting IDE ready (kind:3)
Mar  4 08:48:52 zetagundam mediabay 0, registering IDE...
Mar  4 08:48:52 zetagundam Probing IDE interface ide2...
Mar  4 08:48:52 zetagundam hde: MATSHITADVD-ROM SR-8173, ATAPI CD/DVD-ROM drive 
Mar  4 08:48:52 zetagundam Oops: kernel access of bad area, sig: 11 [#1] 
Mar  4 08:48:52 zetagundam NIP: C010EF6C LR: C010E1F4 SP: CFEE5EB0 REGS: cfee5e00 TRAP: 0300    Not tainted 
Mar  4 08:48:52 zetagundam MSR: 00009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
Mar  4 08:48:52 zetagundam DAR: 220000A2, DSISR: 40000000 
Mar  4 08:48:52 zetagundam TASK = cfe387f0[721] 'media-bay' THREAD: cfee4000
Mar  4 08:48:52 zetagundam Last syscall: -1 
Mar  4 08:48:52 zetagundam GPR00: C016BC14 CFEE5EB0 CFE387F0 220000A2 C0373D50 C016BD14 C0373D4C 00000000 
Mar  4 08:48:52 zetagundam GPR08: C02DAC53 FFFFFFFF 00004000 C0373DC0 82004088 00000000 00000000 00000000 
Mar  4 08:48:52 zetagundam GPR16: 00000000 00000000 00000000 00000000 00230000 00000000 00000000 00009032 
Mar  4 08:48:52 zetagundam GPR24: C0310000 00000014 00000000 FFFFFFEA C0373768 C0373D4C C0373D18 2200008A 
Mar  4 08:48:52 zetagundam NIP [c010ef6c] kref_get+0x0/0x24 
Mar  4 08:48:52 zetagundam LR [c010e1f4] kobject_get+0x20/0x38 
Mar  4 08:48:52 zetagundam Call trace:
Mar  4 08:48:52 zetagundam [c016bc14] get_device+0x20/0x38 
Mar  4 08:48:52 zetagundam [c016bde4] device_add+0x48/0x170 
Mar  4 08:48:52 zetagundam [c019663c] probe_hwif+0x600/0x780 
Mar  4 08:48:52 zetagundam [c0197374] probe_hwif_init_with_fixup+0x1c/0xac 
Mar  4 08:48:52 zetagundam [c018f688] ide_register_hw_with_fixup+0x198/0x1dc 
Mar  4 08:48:52 zetagundam [c0184e24] media_bay_step+0x3b0/0x54c 
Mar  4 08:48:52 zetagundam [c0185054] media_bay_task+0x94/0xf8 
Mar  4 08:48:52 zetagundam [c00069bc] kernel_thread+0x44/0x60

Basically, what happens is that if I pull the drive and then reinsert
it (doesn't matter how long) it immediately does this and the keyboard
seizes up. If I ssh in and kill the process that was on that console,
the kernel will continue to run, if I recall correctly. (Of course,
being a laptop, this is rather impractical most of the time.) Usually
when this happens, the drive is *not* mounted at all.

^ permalink raw reply

* Re:Re: how to mount /dev/ram0 to /
From: tony @ 2006-05-13  6:21 UTC (permalink / raw)
  To: linuxppc-embedded


linuxppc-embedded
>> 
>> after boot up,excute df to see the mount point:
>> ~ # df
>> Filesystem           1k-blocks      Used Available Use% Mounted on
>> ~ # 
>> nothing was mounted.

>Your rc scripts probably did not care to update /etc/mtag as needed.

>Check what "cat /proc/mounts" gives.
____________________________>>>>
	cat /proc/mounts, it gives:
	# cat /proc/mounts
	rootfs / rootfs rw 0 0        
	/dev/root / ext2 rw,nogrpid 0 0
	/proc /proc proc rw,nodiratime 0 0
	#
    by seeing this,so I make a root in /dev dir, it links to /dev/ram0,but still doean't work.
>> the fatab in /etc is like this:
>> /dev/ram0               /               ext2    defaults        1 1
>> none                    /proc           proc    defaults        0 0
>> 
>> anything wrong?

>Probably no part of your rc scripts did anything with the information
>in /etc/fstab ...
------------------------>> 
	but,isn't it auto excuted? 

thanks and regards,

tony

^ permalink raw reply

* board without RTC
From: Joachim Denil @ 2006-05-13 13:10 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 855 bytes --]

Hello,

Can someone tell me what the following functions should do in case there is
no RTC on the hardware board. My processor is a 405gpr. Which of these i
must implement. (maybe some code snippets...). I think the most important
one is calibrate_decr for it is necesary to calibrate_delay function.

Thanks...

Joachim Denil
Student


long (*time_init <http://lxr.linux.no/ident?a=ppc;i=time_init>)(void);
int (*set_rtc_time <http://lxr.linux.no/ident?a=ppc;i=set_rtc_time>)(unsigned
long nowtime);
unsigned long (*get_rtc_time<http://lxr.linux.no/ident?a=ppc;i=get_rtc_time>
)(void);
unsigned char (*rtc_read_val)(int addr<http://lxr.linux.no/ident?a=ppc;i=addr>
);
void (*rtc_write_val)(int addr <http://lxr.linux.no/ident?a=ppc;i=addr>,
unsigned char val <http://lxr.linux.no/ident?a=ppc;i=val>);
void (*calibrate_decr)(void);

[-- Attachment #2: Type: text/html, Size: 1137 bytes --]

^ permalink raw reply


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox