On Wednesday 28 January 2009, Hugo Villeneuve wrote: > On Tue, 27 Jan 2009 14:28:05 -0800 > David Brownell <[email protected]> wrote: > > > On Tuesday 27 January 2009, Hugo Villeneuve wrote: > > > > > > > > So if I am using the latest davinci git kernel, should I apply > > > > > your patch? If so where is it located? > > > > > > > > I just resent that. > > > > > > I tried your patch but it actually prevents the driver from being > > > loaded correctly (command 0x0003 timed out): > > > > That's from the libertas driver ... unclear what MMC protocol > > command is involved. Better to see the whole trace with the > > MMC and/or davinci_mmc debug messages. And maybe trace the > > SDIO irq enable/disable. > > Just to recap:
Good summary, except it omits the SDIO IRQ issues that I suspect will be rather important here. Maybe Pierre Ossman will help -- he knows that what's going on both with SDIO IRQs and with the libertas driver. > 1. Yes I am using the libertas driver, and with the latest stock > davinci-2.6 git kernel (latest commit is > f9719b2d8f29e5bef46a51594d79643fff045221 from January 20th) , the > libertas and davinci_mmc drivers seems to load correctly: > > $> modprobe davinci_mmc > davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode > r...@das-04:~# mmc0: new SDIO card at address 0001 > libertas_sdio: Libertas SDIO driver > libertas_sdio: Copyright Pierre Ossman > libertas_sdio mmc0:0001:1: firmware: requesting sd8686_helper.bin > libertas_sdio mmc0:0001:1: firmware: requesting sd8686.bin > libertas: 00:13:e0:ab:e0:17, fw 9.70.3p24, cap 0x00000303 > libertas: unidentified region code; using the default (USA) > libertas: PREP_CMD: command 0x00a3 failed: 2 > libertas: PREP_CMD: command 0x00a3 failed: 2 > libertas: eth1: Marvell WLAN 802.11 adapter > > (the command 0x00a3 failed message is for some kind of mesh > functionality probing related to the OLPC and is harmless here based > on some Googling). And FWIW, I get the same on my Overo. (I've got one with working WLAN and BlueTooth.) So that seems fine. Except it comes up on mmc1, not mmc0; says "using built-in firmware" instead of "requesting"; doesn't complain about region code; adds a message (from 2.6.29?) eth0 (libertas_sdio): not using net_device_ops yet Plus it has a different ethernet address. ;) > 2. After the drivers are loaded, if I enable the debug messages I > see this in a continuous fashion (it never stops): > > $> dmesg -n 8 > mmc0: starting CMD52 arg 00000a00 flags 00000195 > davinci_mmc davinci_mmc.0: CMD52, arg 0x00000a00, R1/R5/R6/R7 response > mmc0: req done (CMD52): 0: 00001000 00000000 00000000 00000000 > mmc0: starting CMD52 arg 00000a00 flags 00000195 > davinci_mmc davinci_mmc.0: CMD52, arg 0x00000a00, R1/R5/R6/R7 response > mmc0: req done (CMD52): 0: 00001000 00000000 00000000 00000000 > mmc0: starting CMD52 arg 00000a00 flags 00000195 > davinci_mmc davinci_mmc.0: CMD52, arg 0x00000a00, R1/R5/R6/R7 response > mmc0: req done (CMD52): 0: 00001000 00000000 00000000 00000000 > ... OK ... so what *is* CMD52, and why is it doing that?? You're going to have to track down those answers... My guess: it's polling, since SDIO IRQs aren't working. > 3. With debug messages deactivated (dmesg -n 7), I can start > configuring the wlan adapter but it fails when I try to scan with > iwlist: > > $> iwconfig eth1 > eth1 IEEE 802.11b/g ESSID:"" > Mode:Managed Frequency:2.412 GHz Access Point: > Not-Associated Bit Rate:0 kb/s Tx-Power=18 dBm > Retry short limit:8 RTS thr=2347 B Fragment thr=2346 B > Encryption key:off > Power Management:off > Link Quality:0 Signal level:0 Noise level:0 > Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 > Tx excessive retries:0 Invalid misc:0 Missed beacon:0 > $> ifconfig eth1 up > $> iwlist eth1 scan > Unable to handle kernel NULL pointer dereference at virtual address > 00000014 pgd = c0004000 I think you'll have to debug this. Nobody else seems to be trying SDIO with that driver, and the oops only happens with an SDIO request ... - Dave > ... > > Hugo V. > > --------------- > Hugo Villeneuve > www.hugovil.com > --------------- > > _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
