lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87ejernrqo.fsf@serrano.home.billgribble.com>
Date:	Thu, 15 Nov 2007 16:06:23 -0500
From:	Bill Gribble <grib@...lgribble.com>
To:	Pierre Ossman <drzeus-mmc@...eus.cx>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: 2.6.24-rc2 libertas_sdio fails to initialize Marvell SD8686

Pierre Ossman <drzeus-mmc@...eus.cx> writes:
>
>> Nov 13 14:40:09 pequin kernel: mmc0: starting CMD53 arg 9a000002 flags 000001b5
>> Nov 13 14:40:09 pequin kernel: mmc0:     blksz 32 blocks 2 flags 00000100 tsac 1000 ms nsac 0
>> Nov 13 14:40:09 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000001
>> Nov 13 14:40:11 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00108000
>> Nov 13 14:40:11 pequin kernel: mmc0: req done (CMD53): 0: 00002000 00000000 00000000 00000000
>> Nov 13 14:40:11 pequin kernel: mmc0:     32 bytes transferred: -110
>
> Your problem is here. The card chokes for some reason and times out when it's supposed to receive a chunk of the firmware. Odd, as the loading loop first queries the card if it is ready for more data.
>
> You could try adding a delay to the helper firmware loading loop (if_sdio_prog_helper() in if_sdio.c). Add an msleep(100); in there and see if that gets things further. Loading will be slow as hell though.

OK, that seems to at least change the failure a little :) I added an
msleep after line 466 of if_sdio.c (at the very bottom of the loop).

Now I don't get the final "32 bytes transferred: -110" error:

Nov 15 11:52:31 pequin kernel: mmc0: req done (CMD53): 0: 00002000 00000000 00000000 00000000
Nov 15 11:52:31 pequin kernel: mmc0:     64 bytes transferred: 0
Nov 15 11:52:31 pequin kernel: mmc0: starting CMD53 arg 9a000002 flags 000001b5
Nov 15 11:52:31 pequin kernel: mmc0:     blksz 32 blocks 2 flags 00000100 tsac 1000 ms nsac 0
Nov 15 11:52:31 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000001
Nov 15 11:52:31 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000002
Nov 15 11:52:31 pequin kernel: mmc0: req done (CMD53): 0: 00002000 00000000 00000000 00000000
Nov 15 11:52:31 pequin kernel: mmc0:     64 bytes transferred: 0
Nov 15 11:52:31 pequin kernel: mmc0: starting CMD52 arg 10002000 flags 00000195
Nov 15 11:52:31 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000001
Nov 15 11:52:31 pequin kernel: mmc0: req done (CMD52): 0: 00001000 00000000 00000000 00000000
Nov 15 11:52:31 pequin kernel: mmc0: starting CMD52 arg 10002200 flags 00000195
Nov 15 11:52:31 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000001
Nov 15 11:52:31 pequin kernel: mmc0: req done (CMD52): 0: 00001000 00000000 00000000 00000000
Nov 15 11:52:31 pequin kernel: mmc0: starting CMD52 arg 10002000 flags 00000195
Nov 15 11:52:31 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000001
Nov 15 11:52:31 pequin kernel: mmc0: req done (CMD52): 0: 00001000 00000000 00000000 00000000
Nov 15 11:52:31 pequin kernel: mmc0: starting CMD52 arg 10002200 flags 00000195


This block gets repeated about 200 times: 

Nov 15 11:52:31 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000001
Nov 15 11:52:31 pequin kernel: mmc0: req done (CMD52): 0: 00001000 00000000 00000000 00000000
Nov 15 11:52:31 pequin kernel: mmc0: starting CMD52 arg 10002000 flags 00000195

Then:

Nov 15 11:52:32 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000001
Nov 15 11:52:32 pequin kernel: mmc0: req done (CMD52): 0: 00001000 00000000 00000000 00000000
Nov 15 11:52:32 pequin kernel: mmc0: starting CMD52 arg 80022201 flags 00000195
Nov 15 11:52:32 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000001
Nov 15 11:52:32 pequin kernel: mmc0: req done (CMD52): 0: 00001001 00000000 00000000 00000000
Nov 15 11:52:32 pequin kernel: libertas: failed to load helper firmware
Nov 15 11:52:32 pequin kernel: SDIO: Disabling IRQ for mmc0:0001:1...
Nov 15 11:52:32 pequin kernel: mmc0: IRQ thread exiting with code 0
Nov 15 11:52:32 pequin kernel: mmc0: starting CMD52 arg 00000800 flags 00000195
Nov 15 11:52:32 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000001
Nov 15 11:52:32 pequin kernel: mmc0: req done (CMD52): 0: 00001003 00000000 00000000 00000000
Nov 15 11:52:32 pequin kernel: mmc0: starting CMD52 arg 80000800 flags 00000195
Nov 15 11:52:32 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000001
Nov 15 11:52:32 pequin kernel: mmc0: req done (CMD52): 0: 00001000 00000000 00000000 00000000
Nov 15 11:52:32 pequin kernel: SDIO: Disabling device mmc0:0001:1...
Nov 15 11:52:32 pequin kernel: mmc0: starting CMD52 arg 00000400 flags 00000195
Nov 15 11:52:32 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000001
Nov 15 11:52:32 pequin kernel: mmc0: req done (CMD52): 0: 00001002 00000000 00000000 00000000
Nov 15 11:52:32 pequin kernel: mmc0: starting CMD52 arg 80000400 flags 00000195
Nov 15 11:52:32 pequin kernel: sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000001
Nov 15 11:52:32 pequin kernel: mmc0: req done (CMD52): 0: 00001000 00000000 00000000 00000000
Nov 15 11:52:32 pequin kernel: SDIO: Disabled device mmc0:0001:1
Nov 15 11:52:32 pequin kernel: libertas_sdio: probe of mmc0:0001:1 failed with error -110

Does that make any sense?  

Thanks,
Bill Gribble

!DSPAM:473cb4d712631010016558!


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ