* sdhci_pci: card insertion not detected after s2disk
@ 2010-10-24 12:36 Luca Tettamanti
2010-10-24 20:46 ` Maxim Levitsky
0 siblings, 1 reply; 6+ messages in thread
From: Luca Tettamanti @ 2010-10-24 12:36 UTC (permalink / raw)
To: linux-mmc
Hello,
I noticed that after resuming from s2disk the controller does not
detected when a card is inserted into the slot. The controller seems to
work fine after s2ram. I'm currently running kernel 2.6.36, this is the
hardware:
09:01.1 SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (rev 22)
Subsystem: ASUSTeK Computer Inc. Device [1043:14e7]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 64, Cache Line Size: 32 bytes
Interrupt: pin B routed to IRQ 17
Region 0: Memory at feaff400 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=2 PME-
Kernel driver in use: sdhci-pci
00: 80 11 22 08 06 01 10 02 22 00 05 08 08 40 80 00
10: 00 f4 af fe 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 e7 14
30: 00 00 00 00 80 00 00 00 00 00 00 00 05 02 00 00
09:01.2 System peripheral [0880]: Ricoh Co Ltd R5C843 MMC Host Controller [1180:0843] (rev 12)
Subsystem: ASUSTeK Computer Inc. Device [1043:14e7]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 64, Cache Line Size: 32 bytes
Interrupt: pin B routed to IRQ 17
Region 0: Memory at feaff000 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=2 PME-
Kernel driver in use: sdhci-pci
00: 80 11 43 08 06 01 10 02 12 00 80 08 08 40 80 00
10: 00 f0 af fe 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 e7 14
30: 00 00 00 00 80 00 00 00 00 00 00 00 05 02 00 00
There are changes in the PCI configuration space after resume.
dmesg:
sdhci-pci 0000:09:01.1: SDHCI controller found [1180:0822] (rev 22)
sdhci-pci 0000:09:01.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
sdhci-pci 0000:09:01.1: Will use DMA mode even though HW doesn't fully claim to support it.
Registered led device: mmc0::
mmc0: SDHCI controller on PCI [0000:09:01.1] using DMA
sdhci-pci 0000:09:01.2: SDHCI controller found [1180:0843] (rev 12)
sdhci-pci 0000:09:01.2: PCI INT B -> GSI 17 (level, low) -> IRQ 17
Registered led device: mmc1::
mmc1: SDHCI controller on PCI [0000:09:01.2] using DMA
Resume says:
[54440.612047] sdhci-pci 0000:09:01.1: BAR 0: set to [mem 0xfeaff400-0xfeaff4ff] (PCI address [0xfeaff400-0xfeaff4ff]
[54440.612094] sdhci-pci 0000:09:01.1: restoring config space at offset 0x3 (was 0x800000, writing 0x804008)
[54440.612110] sdhci-pci 0000:09:01.1: restoring config space at offset 0x1 (was 0x2100000, writing 0x2100106)
[54440.628042] sdhci-pci 0000:09:01.2: BAR 0: set to [mem 0xfeaff000-0xfeaff0ff] (PCI address [0xfeaff000-0xfeaff0ff]
[54440.628089] sdhci-pci 0000:09:01.2: restoring config space at offset 0x3 (was 0x800000, writing 0x804008)
[54440.628104] sdhci-pci 0000:09:01.2: restoring config space at offset 0x1 (was 0x2100000, writing 0x2100106)
[...]
[54440.785245] sdhci-pci 0000:09:01.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
[54440.785248] sdhci-pci 0000:09:01.1: Will use DMA mode even though HW doesn't fully claim to support it.
[54440.786263] sdhci-pci 0000:09:01.2: PCI INT B -> GSI 17 (level, low) -> IRQ 17
No errors that I can see. After rmmod sdhci_pci && modprobe sdhci_pci
the controller works fine again.
Should I try adding additional quirks?
Luca
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sdhci_pci: card insertion not detected after s2disk
2010-10-24 12:36 sdhci_pci: card insertion not detected after s2disk Luca Tettamanti
@ 2010-10-24 20:46 ` Maxim Levitsky
2010-10-24 21:17 ` Luca Tettamanti
0 siblings, 1 reply; 6+ messages in thread
From: Maxim Levitsky @ 2010-10-24 20:46 UTC (permalink / raw)
To: Luca Tettamanti; +Cc: linux-mmc
On Sun, 2010-10-24 at 14:36 +0200, Luca Tettamanti wrote:
> Hello,
> I noticed that after resuming from s2disk the controller does not
> detected when a card is inserted into the slot. The controller seems to
> work fine after s2ram. I'm currently running kernel 2.6.36, this is the
> hardware:
>
> 09:01.1 SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (rev 22)
> Subsystem: ASUSTeK Computer Inc. Device [1043:14e7]
> Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
> Latency: 64, Cache Line Size: 32 bytes
> Interrupt: pin B routed to IRQ 17
> Region 0: Memory at feaff400 (32-bit, non-prefetchable) [size=256]
> Capabilities: [80] Power Management version 2
> Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
> Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=2 PME-
> Kernel driver in use: sdhci-pci
> 00: 80 11 22 08 06 01 10 02 22 00 05 08 08 40 80 00
> 10: 00 f4 af fe 00 00 00 00 00 00 00 00 00 00 00 00
> 20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 e7 14
> 30: 00 00 00 00 80 00 00 00 00 00 00 00 05 02 00 00
>
> 09:01.2 System peripheral [0880]: Ricoh Co Ltd R5C843 MMC Host Controller [1180:0843] (rev 12)
> Subsystem: ASUSTeK Computer Inc. Device [1043:14e7]
> Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
> Latency: 64, Cache Line Size: 32 bytes
> Interrupt: pin B routed to IRQ 17
> Region 0: Memory at feaff000 (32-bit, non-prefetchable) [size=256]
> Capabilities: [80] Power Management version 2
> Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
> Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=2 PME-
> Kernel driver in use: sdhci-pci
> 00: 80 11 43 08 06 01 10 02 12 00 80 08 08 40 80 00
> 10: 00 f0 af fe 00 00 00 00 00 00 00 00 00 00 00 00
> 20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 e7 14
> 30: 00 00 00 00 80 00 00 00 00 00 00 00 05 02 00 00
>
> There are changes in the PCI configuration space after resume.
>
> dmesg:
>
> sdhci-pci 0000:09:01.1: SDHCI controller found [1180:0822] (rev 22)
> sdhci-pci 0000:09:01.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
> sdhci-pci 0000:09:01.1: Will use DMA mode even though HW doesn't fully claim to support it.
> Registered led device: mmc0::
> mmc0: SDHCI controller on PCI [0000:09:01.1] using DMA
> sdhci-pci 0000:09:01.2: SDHCI controller found [1180:0843] (rev 12)
> sdhci-pci 0000:09:01.2: PCI INT B -> GSI 17 (level, low) -> IRQ 17
> Registered led device: mmc1::
> mmc1: SDHCI controller on PCI [0000:09:01.2] using DMA
>
> Resume says:
>
> [54440.612047] sdhci-pci 0000:09:01.1: BAR 0: set to [mem 0xfeaff400-0xfeaff4ff] (PCI address [0xfeaff400-0xfeaff4ff]
> [54440.612094] sdhci-pci 0000:09:01.1: restoring config space at offset 0x3 (was 0x800000, writing 0x804008)
> [54440.612110] sdhci-pci 0000:09:01.1: restoring config space at offset 0x1 (was 0x2100000, writing 0x2100106)
> [54440.628042] sdhci-pci 0000:09:01.2: BAR 0: set to [mem 0xfeaff000-0xfeaff0ff] (PCI address [0xfeaff000-0xfeaff0ff]
> [54440.628089] sdhci-pci 0000:09:01.2: restoring config space at offset 0x3 (was 0x800000, writing 0x804008)
> [54440.628104] sdhci-pci 0000:09:01.2: restoring config space at offset 0x1 (was 0x2100000, writing 0x2100106)
> [...]
> [54440.785245] sdhci-pci 0000:09:01.1: PCI INT B -> GSI 17 (level, low) -> IRQ 17
> [54440.785248] sdhci-pci 0000:09:01.1: Will use DMA mode even though HW doesn't fully claim to support it.
> [54440.786263] sdhci-pci 0000:09:01.2: PCI INT B -> GSI 17 (level, low) -> IRQ 17
>
> No errors that I can see. After rmmod sdhci_pci && modprobe sdhci_pci
> the controller works fine again.
> Should I try adding additional quirks?
This is very strange.
I had quite a lot of similar problems with this device.
But these seem to be caused by CONFIG_MMC_RICOH_MMC
which you don't have enabled.
But you use my code that makes sdhci bind to mmc controller.
So that what I would be very happy if you do:
1. post lspci output.
2. Test if this is reproducible.
3. See if loading/unloading of r852 (my driver for xD portion) before
suspend makes any difference.
Best regards,
Maxim Levitsky
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sdhci_pci: card insertion not detected after s2disk
2010-10-24 20:46 ` Maxim Levitsky
@ 2010-10-24 21:17 ` Luca Tettamanti
2010-10-24 21:55 ` Maxim Levitsky
0 siblings, 1 reply; 6+ messages in thread
From: Luca Tettamanti @ 2010-10-24 21:17 UTC (permalink / raw)
To: Maxim Levitsky; +Cc: linux-mmc
On Sun, Oct 24, 2010 at 10:46:23PM +0200, Maxim Levitsky wrote:
> This is very strange.
> I had quite a lot of similar problems with this device.
> But these seem to be caused by CONFIG_MMC_RICOH_MMC
> which you don't have enabled.
> But you use my code that makes sdhci bind to mmc controller.
>
> So that what I would be very happy if you do:
>
> 1. post lspci output.
I guess you're interested in the Firewire controller :)
00:00.0 Host bridge [0600]: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub [8086:2a00] (rev 03)
00:01.0 PCI bridge [0604]: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port [8086:2a01] (rev 03)
00:1a.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 [8086:2834] (rev 03)
00:1a.1 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 [8086:2835] (rev 03)
00:1a.7 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 [8086:283a] (rev 03)
00:1b.0 Audio device [0403]: Intel Corporation 82801H (ICH8 Family) HD Audio Controller [8086:284b] (rev 03)
00:1c.0 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 [8086:283f] (rev 03)
00:1c.1 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 [8086:2841] (rev 03)
00:1c.2 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 [8086:2843] (rev 03)
00:1c.3 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 [8086:2845] (rev 03)
00:1c.4 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 [8086:2847] (rev 03)
00:1c.5 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 [8086:2849] (rev 03)
00:1d.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 [8086:2830] (rev 03)
00:1d.1 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 [8086:2831] (rev 03)
00:1d.2 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 [8086:2832] (rev 03)
00:1d.7 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 [8086:2836] (rev 03)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev f3)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller [8086:2815] (rev 03)
00:1f.1 IDE interface [0101]: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller [8086:2850] (rev 03)
00:1f.2 SATA controller [0106]: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller [8086:2829] (rev 03)
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc M76 [Radeon Mobility HD 2600 Series] [1002:9581]
02:00.0 Ethernet controller [0200]: Atheros Communications L1 Gigabit Ethernet [1969:1048] (rev b0)
03:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection [8086:4229] (rev 61)
04:00.0 SATA controller [0106]: JMicron Technology Corp. JMB360 AHCI Controller [197b:2360] (rev 02)
09:01.0 FireWire (IEEE 1394) [0c00]: Ricoh Co Ltd R5C832 IEEE 1394 Controller [1180:0832] (rev 05)
09:01.1 SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (rev 22)
09:01.2 System peripheral [0880]: Ricoh Co Ltd R5C843 MMC Host Controller [1180:0843] (rev 12)
09:01.3 System peripheral [0880]: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter [1180:0592] (rev 12)
09:01.4 System peripheral [0880]: Ricoh Co Ltd xD-Picture Card Controller [1180:0852] (rev 12)
> 2. Test if this is reproducible.
Will recompile and test ASAP. If I understood correctly 09:01.2 will be
disabled, right?
> 3. See if loading/unloading of r852 (my driver for xD portion) before
> suspend makes any difference.
r852 is not even compiled (I don't have any xD card).
thanks,
Luca
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sdhci_pci: card insertion not detected after s2disk
2010-10-24 21:17 ` Luca Tettamanti
@ 2010-10-24 21:55 ` Maxim Levitsky
2010-10-24 22:00 ` Maxim Levitsky
2010-10-25 20:36 ` Luca Tettamanti
0 siblings, 2 replies; 6+ messages in thread
From: Maxim Levitsky @ 2010-10-24 21:55 UTC (permalink / raw)
To: Luca Tettamanti; +Cc: linux-mmc
On Sun, 2010-10-24 at 23:17 +0200, Luca Tettamanti wrote:
> On Sun, Oct 24, 2010 at 10:46:23PM +0200, Maxim Levitsky wrote:
> > This is very strange.
> > I had quite a lot of similar problems with this device.
> > But these seem to be caused by CONFIG_MMC_RICOH_MMC
> > which you don't have enabled.
> > But you use my code that makes sdhci bind to mmc controller.
> >
> > So that what I would be very happy if you do:
> >
> > 1. post lspci output.
>
> I guess you're interested in the Firewire controller :)
No, but to see if you have xD and memstick controller.
Hardware I wrote drivers for after all....
>
> 00:00.0 Host bridge [0600]: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub [8086:2a00] (rev 03)
> 00:01.0 PCI bridge [0604]: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port [8086:2a01] (rev 03)
> 00:1a.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 [8086:2834] (rev 03)
> 00:1a.1 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 [8086:2835] (rev 03)
> 00:1a.7 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 [8086:283a] (rev 03)
> 00:1b.0 Audio device [0403]: Intel Corporation 82801H (ICH8 Family) HD Audio Controller [8086:284b] (rev 03)
> 00:1c.0 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 [8086:283f] (rev 03)
> 00:1c.1 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 [8086:2841] (rev 03)
> 00:1c.2 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 [8086:2843] (rev 03)
> 00:1c.3 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 [8086:2845] (rev 03)
> 00:1c.4 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 [8086:2847] (rev 03)
> 00:1c.5 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 [8086:2849] (rev 03)
> 00:1d.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 [8086:2830] (rev 03)
> 00:1d.1 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 [8086:2831] (rev 03)
> 00:1d.2 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 [8086:2832] (rev 03)
> 00:1d.7 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 [8086:2836] (rev 03)
> 00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev f3)
> 00:1f.0 ISA bridge [0601]: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller [8086:2815] (rev 03)
> 00:1f.1 IDE interface [0101]: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller [8086:2850] (rev 03)
> 00:1f.2 SATA controller [0106]: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller [8086:2829] (rev 03)
> 01:00.0 VGA compatible controller [0300]: ATI Technologies Inc M76 [Radeon Mobility HD 2600 Series] [1002:9581]
> 02:00.0 Ethernet controller [0200]: Atheros Communications L1 Gigabit Ethernet [1969:1048] (rev b0)
> 03:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection [8086:4229] (rev 61)
> 04:00.0 SATA controller [0106]: JMicron Technology Corp. JMB360 AHCI Controller [197b:2360] (rev 02)
> 09:01.0 FireWire (IEEE 1394) [0c00]: Ricoh Co Ltd R5C832 IEEE 1394 Controller [1180:0832] (rev 05)
> 09:01.1 SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (rev 22)
> 09:01.2 System peripheral [0880]: Ricoh Co Ltd R5C843 MMC Host Controller [1180:0843] (rev 12)
> 09:01.3 System peripheral [0880]: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter [1180:0592] (rev 12)
I have written a driver for this one too (posted to LKML many times).
> 09:01.4 System peripheral [0880]: Ricoh Co Ltd xD-Picture Card Controller [1180:0852] (rev 12)
>
> > 2. Test if this is reproducible.
>
> Will recompile and test ASAP. If I understood correctly 09:01.2 will be
> disabled, right?
Yes, but here on my system that makes s2ram sometimes hose that
controller (completely, its just dead).
Thats why I made sdhci work with mmc controler as opposed to disabling
it (that what is done in windows).
(Actually Andrew de Quincey found how to do that, I just implemented his
solution:
(http://list.drzeus.cx/pipermail/sdhci-devel/2007-December/002085.html)
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ccc92c23240cdf952ef7cc39ba563910dcbc9cbe
Best regards,
Maxim Levitsky
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sdhci_pci: card insertion not detected after s2disk
2010-10-24 21:55 ` Maxim Levitsky
@ 2010-10-24 22:00 ` Maxim Levitsky
2010-10-25 20:36 ` Luca Tettamanti
1 sibling, 0 replies; 6+ messages in thread
From: Maxim Levitsky @ 2010-10-24 22:00 UTC (permalink / raw)
To: Luca Tettamanti; +Cc: linux-mmc
On Sun, 2010-10-24 at 23:55 +0200, Maxim Levitsky wrote:
> On Sun, 2010-10-24 at 23:17 +0200, Luca Tettamanti wrote:
> > On Sun, Oct 24, 2010 at 10:46:23PM +0200, Maxim Levitsky wrote:
> > > This is very strange.
> > > I had quite a lot of similar problems with this device.
> > > But these seem to be caused by CONFIG_MMC_RICOH_MMC
> > > which you don't have enabled.
> > > But you use my code that makes sdhci bind to mmc controller.
> > >
> > > So that what I would be very happy if you do:
> > >
> > > 1. post lspci output.
> >
> > I guess you're interested in the Firewire controller :)
> No, but to see if you have xD and memstick controller.
> Hardware I wrote drivers for after all....
>
> >
> > 00:00.0 Host bridge [0600]: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub [8086:2a00] (rev 03)
> > 00:01.0 PCI bridge [0604]: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port [8086:2a01] (rev 03)
> > 00:1a.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 [8086:2834] (rev 03)
> > 00:1a.1 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 [8086:2835] (rev 03)
> > 00:1a.7 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 [8086:283a] (rev 03)
> > 00:1b.0 Audio device [0403]: Intel Corporation 82801H (ICH8 Family) HD Audio Controller [8086:284b] (rev 03)
> > 00:1c.0 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 [8086:283f] (rev 03)
> > 00:1c.1 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 [8086:2841] (rev 03)
> > 00:1c.2 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 [8086:2843] (rev 03)
> > 00:1c.3 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 [8086:2845] (rev 03)
> > 00:1c.4 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 [8086:2847] (rev 03)
> > 00:1c.5 PCI bridge [0604]: Intel Corporation 82801H (ICH8 Family) PCI Express Port 6 [8086:2849] (rev 03)
> > 00:1d.0 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 [8086:2830] (rev 03)
> > 00:1d.1 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 [8086:2831] (rev 03)
> > 00:1d.2 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 [8086:2832] (rev 03)
> > 00:1d.7 USB Controller [0c03]: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 [8086:2836] (rev 03)
> > 00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev f3)
> > 00:1f.0 ISA bridge [0601]: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller [8086:2815] (rev 03)
> > 00:1f.1 IDE interface [0101]: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller [8086:2850] (rev 03)
> > 00:1f.2 SATA controller [0106]: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller [8086:2829] (rev 03)
> > 01:00.0 VGA compatible controller [0300]: ATI Technologies Inc M76 [Radeon Mobility HD 2600 Series] [1002:9581]
> > 02:00.0 Ethernet controller [0200]: Atheros Communications L1 Gigabit Ethernet [1969:1048] (rev b0)
> > 03:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection [8086:4229] (rev 61)
> > 04:00.0 SATA controller [0106]: JMicron Technology Corp. JMB360 AHCI Controller [197b:2360] (rev 02)
> > 09:01.0 FireWire (IEEE 1394) [0c00]: Ricoh Co Ltd R5C832 IEEE 1394 Controller [1180:0832] (rev 05)
> > 09:01.1 SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (rev 22)
> > 09:01.2 System peripheral [0880]: Ricoh Co Ltd R5C843 MMC Host Controller [1180:0843] (rev 12)
> > 09:01.3 System peripheral [0880]: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter [1180:0592] (rev 12)
> I have written a driver for this one too (posted to LKML many times).
>
> > 09:01.4 System peripheral [0880]: Ricoh Co Ltd xD-Picture Card Controller [1180:0852] (rev 12)
> >
> > > 2. Test if this is reproducible.
> >
> > Will recompile and test ASAP. If I understood correctly 09:01.2 will be
> > disabled, right?
> Yes, but here on my system that makes s2ram sometimes hose that
> controller (completely, its just dead).
>
> Thats why I made sdhci work with mmc controler as opposed to disabling
> it (that what is done in windows).
To be clear, windows uses the mmc controller and doesn't disable it.
Also carefully see what kernel you boot in when you doing the resume
from disk.
It is possible to use one kernel to resume another.
But if resuming kernel has CONFIG_MMC_RICOH_MMC, the results won't be
pretty (resumed kernel won't know that mmc controller is disabled.)
Also note that work done by CONFIG_MMC_RICOH_MMC is sticky until you
power off the system (that is it persists on reboots).
> (Actually Andrew de Quincey found how to do that, I just implemented his
> solution:
> (http://list.drzeus.cx/pipermail/sdhci-devel/2007-December/002085.html)
>
>
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ccc92c23240cdf952ef7cc39ba563910dcbc9cbe
>
>
> Best regards,
> Maxim Levitsky
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: sdhci_pci: card insertion not detected after s2disk
2010-10-24 21:55 ` Maxim Levitsky
2010-10-24 22:00 ` Maxim Levitsky
@ 2010-10-25 20:36 ` Luca Tettamanti
1 sibling, 0 replies; 6+ messages in thread
From: Luca Tettamanti @ 2010-10-25 20:36 UTC (permalink / raw)
To: Maxim Levitsky; +Cc: linux-mmc
Hi Maxim,
On Sun, Oct 24, 2010 at 11:55 PM, Maxim Levitsky
<maximlevitsky@gmail.com> wrote:
>> > 2. Test if this is reproducible.
>>
>> Will recompile and test ASAP. If I understood correctly 09:01.2 will be
>> disabled, right?
> Yes, but here on my system that makes s2ram sometimes hose that
> controller (completely, its just dead).
Tested with MMC_RICOH_MMC; s2ram continues to work (but I haven't
tested extensively), but it does not make any difference for s2disk.
Luca
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-10-25 20:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-24 12:36 sdhci_pci: card insertion not detected after s2disk Luca Tettamanti
2010-10-24 20:46 ` Maxim Levitsky
2010-10-24 21:17 ` Luca Tettamanti
2010-10-24 21:55 ` Maxim Levitsky
2010-10-24 22:00 ` Maxim Levitsky
2010-10-25 20:36 ` Luca Tettamanti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox