Bug 9491
Summary: | ata_piix fails to detect device on ICH6M | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | Robert M. Albrecht (mail) |
Component: | Serial ATA | Assignee: | Tejun Heo (htejun) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | akpm, htejun |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.25 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Attachments: |
bug9491-ata_piix-detection-dbg0.patch
dmesg from patched kernel bootlog from patched kernel without ahci driver ich6m-uscc.patch failed boot due to missing ahci with patched ata_piix bootlog without ahci, but with patched ata_piix boot.log with missing ahci ich6m-ahci-in-ahci-mode.patch bootlog with patched ata_piix bootlog with missing ahci driver |
Description
Robert M. Albrecht
2007-12-02 10:10:37 UTC
You are using libata driver not IDE one, so I'm reassigning it to libata developers. Are you able to identify an earlier kernel which didn't have this problem? 2.6.22? 2.6.23? Thanks. 2.6.17 from Fedora 6 test 3 works I will test some more kernels. 2.6.15 from Ubuntu 6.06 works 2.6.20 from Ubuntu 7.04 does not work 2.6.17 from Ubuntu 6.10 works 2.6.18 from Fedora Core 6 does not work Created attachment 13884 [details] bug9491-ata_piix-detection-dbg0.patch Can you please apply the attached patch and report what the kernel says when loading ata_piix? Created attachment 14266 [details]
dmesg from patched kernel
This is a 2.6.24-rc6 with your patch applied.
modprobe ata_piix ACPI: PCI interrupt for device 0000:00:1f.1 disabled ata_piix 0000:00:1f.1: version 2.12 ACPI: PCI Interrupt 0000:00:1f.1[A] -> GSI 18 (level, low) -> IRQ 21 PCI: Setting latency timer of device 0000:00:1f.1 to 64 scsi6 : ata_piix scsi7 : ata_piix ata7: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xaf10 irq 14 ata8: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xaf18 irq 15 ata7.00: ATAPI: MATSHITADVD-RAM UJ-832S, 1.00, max UDMA/33 ata7.00: configured for UDMA/33 ata8: port disabled. ignoring. scsi 6:0:0:0: CD-ROM MATSHITA DVD-RAM UJ-832S 1.00 PQ: 0 ANSI: 5 sr0: scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray sr 6:0:0:0: Attached scsi CD-ROM sr0 sr 6:0:0:0: Attached scsi generic sg1 type 5 [root@w4de3rsy3799712 Desktop]# Please post kernel log w/o ahci loaded. ahci already grabbed 1f.2 so ata_piix only attaches to 1f.1 which isn't where the problem is. Thanks. How do I do this ? If I remove ahci my root-filesystem goes away. Yeah, it's tricky. If you have another machine, using net or serial console would do. If you have a PATA drive lying around, making a temporary installation for testing on the drive would do too. Can you do one of the two? It`s a notebook, so I can`t add a second harddisk. I can attach a second system to the serial port though. But where does it get me, if I try to remove ahci from the local console or the serial console, both times the root fs goes away. Robert, you can build the kernel with ata_piix built in but not ahci and capture the boot log. The boot will eventually fail due to missing root fs but the log should give us enough info. Hi Tejun, my last serial console is several years ago, but it worked. cu romal Created attachment 14283 [details]
bootlog from patched kernel without ahci driver
Created attachment 14295 [details]
ich6m-uscc.patch
Please apply the attached patch on top of 2.6.24-rc6 and report the result. Thanks.
Hi Teju, from dmesg> libata version 3.00 loaded. ahci 0000:00:1f.2: version 3.0 ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 20 ahci 0000:00:1f.2: nr_ports (4) and implemented port map (0x5) don't match, using nr_ports ahci 0000:00:1f.2: forcing PORTS_IMPL to 0xf usb 2-1: new full speed USB device using uhci_hcd and address 2 usb 2-1: configuration #1 chosen from 1 choice usb 1-3.1: new low speed USB device using ehci_hcd and address 4 usb 1-3.1: configuration #1 chosen from 1 choice input: Microsoft Microsoft IntelliMouse� Explorer as /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3.1/1-3.1:1.0/input/input4 input,hidraw0: USB HID v1.11 Mouse [Microsoft Microsoft IntelliMouse� Explorer] on usb-0000:00:1d.7-3.1 ahci 0000:00:1f.2: AHCI 0001.0000 32 slots 4 ports 1.5 Gbps 0xf impl SATA mode ahci 0000:00:1f.2: flags: 64bit ncq ilck pm led slum part PCI: Setting latency timer of device 0000:00:1f.2 to 64 scsi0 : ahci scsi1 : ahci scsi2 : ahci scsi3 : ahci ata1: SATA max UDMA/133 abar m1024@0xcdbffc00 port 0xcdbffd00 irq 20 ata2: SATA max UDMA/133 abar m1024@0xcdbffc00 port 0xcdbffd80 irq 20 ata3: SATA max UDMA/133 abar m1024@0xcdbffc00 port 0xcdbffe00 irq 20 ata4: SATA max UDMA/133 abar m1024@0xcdbffc00 port 0xcdbffe80 irq 20 ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata1.00: ATA-7: HTS541060G9SA00, MB3OC60R, max UDMA/100 ata1.00: 117210240 sectors, multi 0: LBA48 NCQ (depth 31/32) ata1.00: configured for UDMA/100 ata2: SATA link down (SStatus 0 SControl 0) ata3: SATA link down (SStatus 0 SControl 300) ata4: SATA link down (SStatus 0 SControl 0) scsi 0:0:0:0: Direct-Access ATA HTS541060G9SA00 MB3O PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 117210240 512-byte hardware sectors (60012 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 0:0:0:0: [sda] 117210240 512-byte hardware sectors (60012 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 sda2 sda3 sd 0:0:0:0: [sda] Attached SCSI disk modprobe used greatest stack depth: 632 bytes left ata_piix 0000:00:1f.1: version 2.12 ACPI: PCI Interrupt 0000:00:1f.1[A] -> GSI 18 (level, low) -> IRQ 21 PCI: Setting latency timer of device 0000:00:1f.1 to 64 scsi4 : ata_piix scsi5 : ata_piix ata5: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xaf10 irq 14 ata6: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xaf18 irq 15 ata5.00: ATAPI: MATSHITADVD-RAM UJ-832S, 1.00, max UDMA/33 ata5.00: configured for UDMA/33 ata6: port disabled. ignoring. lspci -vvvv 00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03) (prog-if 8a [Master SecP PriP]) Subsystem: Toshiba America Info Systems Unknown device 0001 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: 0 Interrupt: pin A routed to IRQ 21 Region 0: I/O ports at 01f0 [size=8] Region 1: I/O ports at 03f4 [size=1] Region 2: I/O ports at 0170 [size=8] Region 3: I/O ports at 0374 [size=1] Region 4: I/O ports at af10 [size=16] Kernel driver in use: ata_piix Kernel modules: ata_piix 00:1f.2 SATA controller: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 03) (prog-if 01 [AHCI 1.0]) Subsystem: Toshiba America Info Systems Unknown device 0f00 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: 0 Interrupt: pin B routed to IRQ 20 Region 0: I/O ports at af08 [size=8] Region 1: I/O ports at af04 [size=4] Region 2: I/O ports at aef8 [size=8] Region 3: I/O ports at aef4 [size=4] Region 4: I/O ports at aee0 [size=16] Region 5: Memory at cdbffc00 (32-bit, non-prefetchable) [size=1K] Capabilities: [70] Power Management version 2 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Kernel driver in use: ahci Kernel modules: ata_piix, ahci /proc/ioports [root@helios proc]# cat ioports 0000-001f : dma1 0020-0021 : pic1 0040-0043 : timer0 004e-004f : tpm_infineon0 0050-0053 : timer1 0060-006f : keyboard 0070-0071 : rtc0 0080-008f : dma page reg 00a0-00a1 : pic2 00c0-00df : dma2 00f0-00ff : fpu 0170-0177 : 0000:00:1f.1 0170-0177 : libata 01f0-01f7 : 0000:00:1f.1 01f0-01f7 : libata 0376-0376 : 0000:00:1f.1 0376-0376 : libata 03c0-03df : vga+ 03f6-03f6 : 0000:00:1f.1 03f6-03f6 : libata 03f8-03ff : serial 0480-048f : pnp 00:09 0680-068f : tpm_infineon0 0690-06ff : pnp 00:09 0cf8-0cff : PCI conf1 1000-10ff : PCI CardBus #06 1400-14ff : PCI CardBus #06 aee0-aeef : 0000:00:1f.2 aef4-aef7 : 0000:00:1f.2 aef8-aeff : 0000:00:1f.2 af04-af07 : 0000:00:1f.2 af08-af0f : 0000:00:1f.2 af10-af1f : 0000:00:1f.1 af10-af1f : libata af40-af5f : 0000:00:1d.3 af40-af5f : uhci_hcd af60-af7f : 0000:00:1d.2 af60-af7f : uhci_hcd af80-af9f : 0000:00:1d.1 af80-af9f : uhci_hcd afe0-afff : 0000:00:1d.0 afe0-afff : uhci_hcd b000-bfff : PCI Bus #03 c000-cfff : PCI Bus #02 ce00-ceff : 0000:02:00.0 ce00-ceff : sky2 d800-d87f : 0000:00:1f.0 d800-d87f : pnp 00:09 d800-d803 : ACPI PM1a_EVT_BLK d804-d805 : ACPI PM1a_CNT_BLK d808-d80b : ACPI PM_TMR d810-d815 : ACPI CPU throttle d820-d820 : ACPI PM2_CNT_BLK d828-d82f : ACPI GPE0_BLK d860-d87f : iTCO_wdt d880-d89f : pnp 00:09 e000-e07f : pnp 00:09 e080-e0ff : pnp 00:09 e400-e47f : pnp 00:09 e480-e4ff : pnp 00:09 e800-e87f : pnp 00:09 e880-e8ff : pnp 00:09 ec00-ec7f : pnp 00:09 ec80-ecff : pnp 00:09 eeb0-eebf : pnp 00:09 eec0-eeff : 0000:00:1f.0 eec0-eeff : pnp 00:09 [root@helios proc]# scsi 4:0:0:0: CD-ROM MATSHITA DVD-RAM UJ-832S 1.00 PQ: 0 ANSI: 5 Hi Teju, do you need a bootlog without ahci or something else ? cu romal Yeap, I need boot log w/o ahci. Thanks. Created attachment 14585 [details]
failed boot due to missing ahci with patched ata_piix
cu romal
The log is completely garbled. Can you please re-post? Thanks. Created attachment 14614 [details]
bootlog without ahci, but with patched ata_piix
Robert, the log is not from the patched kernel. The patch contains debug messages which are always printed for ich6m. Can you please double check you're running the patched kernel? Thanks. Created attachment 14629 [details]
boot.log with missing ahci
Hi,
I patched the driver again and bumped ata_piix version number to 2.99 to see if the patched driver is loaded.
cu romal
Ah.. You're right. I was looking at the wrong patch. Sorry about that. I wonder what the difference is. Perhaps the right thing to do is to disallow ata_piix if ahci mode is enabled and only allow the other way around. I'll prep another patch. Created attachment 14633 [details]
ich6m-ahci-in-ahci-mode.patch
Can you please try this patch? This patch will prevent ata_piix from grabbing the controller.
Created attachment 14636 [details]
bootlog with patched ata_piix
Hi Tejun,
what Do you need ? Bootlog without ahci ?
Attached is the bootlog with your latest patch ?
cu romal
Yes, boot log w/o ahci. ata_piix shouldn't attach to the device. Created attachment 14638 [details]
bootlog with missing ahci driver
Hi Tejun,
I don`t see the ata_piix driver loading at all.
cu romal
Hi, anything I can do to help ? cu romal I have a bug report where ICH7 fails to detect a PATA device and am still wondering whether this problem is related to that one or not. It probably isn't related but I'm still not sure. I'll verify few more things before posting the patch upstream. Thanks. Hi, did you got it upstream ? Linux localhost.localdomain 2.6.25-0.101.rc4.git3.fc9 seems to work: Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Linux version 2.6.25-0.101.rc4.git3.fc9 (mockbuild@) (gcc version 4.3.0 20080307 (Red Hat 4.3.0-2) (GCC) ) #1 SMP Sat Mar 8 15:56:03 EST 2008 ACPI: PCI Root Bridge [PCI0] (0000:00) pci 0000:00:1f.0: Force enabled HPET at 0xfed00000 pci 0000:00:1f.0: quirk: region d800-d87f claimed by ICH6 ACPI/GPIO/TCO pci 0000:00:1f.0: quirk: region eec0-eeff claimed by ICH6 GPIO PCI: Transparent bridge - 0000:00:1e.0 SCSI subsystem initialized Driver 'sd' needs updating - please use bus_type methods libata version 3.00 loaded. ahci 0000:00:1f.2: version 3.0 ahci 0000:00:1f.2: AHCI 0001.0000 32 slots 4 ports 1.5 Gbps 0x5 impl SATA mode ahci 0000:00:1f.2: flags: 64bit ncq ilck pm led slum part scsi0 : ahci scsi1 : ahci scsi2 : ahci scsi3 : ahci ata1: SATA max UDMA/133 abar m1024@0xcdbffc00 port 0xcdbffd00 irq 19 ata2: DUMMY ata3: SATA max UDMA/133 abar m1024@0xcdbffc00 port 0xcdbffe00 irq 19 ata4: DUMMY ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) ata1.00: ATA-7: HTS541060G9SA00, MB3OC60R, max UDMA/100 ata1.00: 117210240 sectors, multi 0: LBA48 NCQ (depth 31/32) ata1.00: configured for UDMA/100 ata3: SATA link down (SStatus 0 SControl 300) scsi 0:0:0:0: Direct-Access ATA HTS541060G9SA00 MB3O PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 117210240 512-byte hardware sectors (60012 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd 0:0:0:0: [sda] 117210240 512-byte hardware sectors (60012 MB) sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sda: sda1 sda2 sda3 sd 0:0:0:0: [sda] Attached SCSI disk modprobe used greatest stack depth: 1020 bytes left ata_piix 0000:00:1f.1: version 2.12 scsi4 : ata_piix scsi5 : ata_piix ata5: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xaf10 irq 14 ata6: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xaf18 irq 15 ata5.00: ATAPI: MATSHITADVD-RAM UJ-832S, 1.00, max UDMA/33 ata5.00: configured for UDMA/33 ata6: port disabled. ignoring. scsi 4:0:0:0: CD-ROM MATSHITA DVD-RAM UJ-832S 1.00 PQ: 0 ANSI: 5 Driver 'sr' needs updating - please use bus_type methods sr0: scsi3-mmc drive: 20x/20x writer dvd-ram cd/rw xa/form2 cdda tray Uniform CD-ROM driver Revision: 3.20 sr 4:0:0:0: Attached scsi CD-ROM sr0 sd 0:0:0:0: Attached scsi generic sg0 type 0 sr 4:0:0:0: Attached scsi generic sg1 type 5 I could install Fedora 9 alpha with this kernel. :-)) Strange things happen. 2.6.25-0.121.rc5.git9 from Fedora 9 Beta does not work anymore. That's fedora changing module priorities at its whim. Alright, ICH7 detection debug didn't go anywhere. Forwarding the patch upstream. Hi Tejun, sorry to interrupt again, but 2.6.25 does still not work. cu romal The patch is accepted for 2.6.26. You'll have to load ahci for now. |