Bug 9491

Summary: ata_piix fails to detect device on ICH6M
Product: IO/Storage Reporter: Robert M. Albrecht (mail)
Component: Serial ATAAssignee: 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
http://bugzilla.kernel.org/show_bug.cgi?id=8933

from a running system with manual driver loading>

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 5-2: new full speed USB device using uhci_hcd and address 2
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
usb 5-2: configuration #1 chosen from 1 choice
usb 1-3.4: new low speed USB device using ehci_hcd and address 5
usb 1-3.4: configuration #1 chosen from 1 choice
input: Microsoft Microsoft IntelliMouse� Explorer as /class/input/input4
input,hidraw0: USB HID v1.11 Mouse [Microsoft Microsoft IntelliMouse� Explorer] on usb-0000:00:1d.7-3.4
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
insmod used greatest stack depth: 596 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.
scsi 4:0:0:0: CD-ROM            MATSHITA DVD-RAM UJ-832S  1.00 PQ: 0 ANSI: 5
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
audit(1196617527.614:2): selinux=0 auid=4294967295
sr0: scsi3-mmc drive: 24x/24x 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


[romal@helios proc]$ cat ioports 
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
004e-004f : tpm_infineon0
0050-0053 : timer1
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0140-0147 : pcmcia_socket0
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
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-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
eec0-eeff : 0000:00:1f.0
[romal@helios proc]$ 

[romal@helios proc]$ cat ioports 
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
004e-004f : tpm_infineon0
0050-0053 : timer1
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0140-0147 : pcmcia_socket0
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
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-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
eec0-eeff : 0000:00:1f.0
[romal@helios proc]$ cat iomem 
00000000-0009dfff : System RAM
0009e000-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000cffff : Video ROM
000d4000-000dbfff : Adapter ROM
000e0000-000eedff : reserved
000eee00-000eefff : ACPI Non-volatile Storage
000f0000-000fffff : System ROM
00100000-7ff6ffff : System RAM
  00400000-006450cb : Kernel code
  006450cc-0076d923 : Kernel data
  00803000-00abff23 : Kernel bss
7ff70000-7fffffff : reserved
88000000-88003fff : 0000:00:1b.0
  88000000-88003fff : ICH HD audio
88004000-880043ff : 0000:00:1d.7
  88004000-880043ff : ehci_hcd
8c000000-8fffffff : PCI CardBus #06
90000000-93ffffff : PCI CardBus #06
afe00000-afffffff : PCI Bus #03
b0000000-bfffffff : PCI Bus #01
  b0000000-bfffffff : 0000:01:00.0
cdbffc00-cdbfffff : 0000:00:1f.2
  cdbffc00-cdbfffff : ahci
cdc00000-cdcfffff : PCI Bus #05
  cdc00000-cdc03fff : 0000:05:0b.2
  cdc04000-cdc04fff : 0000:05:0b.0
    cdc04000-cdc04fff : yenta_socket
  cdc05000-cdc057ff : 0000:05:0b.2
    cdc05000-cdc057ff : firewire_ohci
  cdc05800-cdc058ff : 0000:05:0b.4
    cdc05800-cdc058ff : sdhci:slot0
  cdc05900-cdc059ff : 0000:05:0b.4
    cdc05900-cdc059ff : sdhci:slot1
  cdc05a00-cdc05aff : 0000:05:0b.4
    cdc05a00-cdc05aff : sdhci:slot2
  cdc10000-cdc10fff : pcmcia_socket0
  cdcff000-cdcfffff : 0000:05:05.0
    cdcff000-cdcfffff : ipw2200
cdd00000-cdefffff : PCI Bus #03
cdf00000-cdffffff : PCI Bus #02
  cdffc000-cdffffff : 0000:02:00.0
    cdffc000-cdffffff : sky2
ce000000-cfffffff : PCI Bus #01
  ce000000-ceffffff : 0000:01:00.0
  cf000000-cfffffff : 0000:01:00.0
e0000000-efffffff : pnp 00:01
f0000000-f0005fff : reserved
f0008000-f000bfff : reserved
fec00000-fecfffff : reserved
fed13000-fed13fff : reserved
fed20000-fed8ffff : reserved
feda0000-fedbffff : reserved
fee00000-feefffff : reserved
ffb00000-ffbfffff : reserved
ffe80000-ffffffff : reserved
[romal@helios proc]$ 

fec00000-fecfffff : reserved
fed13000-fed13fff : reserved
fed20000-fed8ffff : reserved
feda0000-fedbffff : reserved
fee00000-feefffff : reserved
ffb00000-ffbfffff : reserved
ffe80000-ffffffff : reserved
[romal@helios proc]$ 


[root@helios ~]# lspci -nnvvv
00:00.0 Host bridge [0600]: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller [8086:2590] (rev 03)
        Subsystem: Toshiba America Info Systems Unknown device [1179:0001]
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
        Latency: 0
        Capabilities: [e0] Vendor Specific Information <?>

00:01.0 PCI bridge [0604]: Intel Corporation Mobile 915GM/PM Express PCI Express Root Port [8086:2591] (rev 03) (prog-if 00 [Normal decode])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 0000f000-00000fff
        Memory behind bridge: ce000000-cfffffff
        Prefetchable memory behind bridge: b0000000-bfffffff
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
        BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: [88] Subsystem: Toshiba America Info Systems Unknown device [1179:0001]
        Capabilities: [80] 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-
        Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
                Address: fee0100c  Data: 41c1
        Capabilities: [a0] Express (v1) Root Port (Slot-), MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
                        ExtTag- RBE- FLReset-
                DevCtl: Report errors: Correctable+ Non-Fatal+ Fatal+ Unsupported+
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 128 bytes
                DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
                LnkCap: Port #2, Speed 2.5GT/s, Width x16, ASPM L0s L1, Latency L0 <256ns, L1 <4us
                        ClockPM- Suprise- LLActRep- BwNot-
                LnkCtl: ASPM L0s L1 Enabled; RCB 64 bytes Disabled- Retrain- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x16, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna- CRSVisible-
                RootCap: CRSVisible-
                RootSta: PME ReqID 0000, PMEStatus- PMEPending-
        Kernel driver in use: pcieport-driver

00:1b.0 Audio device [0403]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller [8086:2668] (rev 03)
        Subsystem: Toshiba America Info Systems Unknown device [1179:0001]
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at 88000000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
                Address: 0000000000000000  Data: 0000
        Capabilities: [70] Express (v1) Root Complex Integrated Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
                        ExtTag- RBE- FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 128 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
                LnkCap: Port #0, Speed unknown, Width x0, ASPM unknown, Latency L0 <64ns, L1 <1us
                        ClockPM- Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed unknown, Width x0, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel

00:1c.0 PCI bridge [0604]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 [8086:2660] (rev 03) (prog-if 00 [Normal decode])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        I/O behind bridge: 0000c000-0000cfff
        Memory behind bridge: cdf00000-cdffffff
        Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
        BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: [40] Express (v1) Root Port (Slot-), MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
                        ExtTag+ RBE- FLReset-
                DevCtl: Report errors: Correctable+ Non-Fatal+ Fatal+ Unsupported+
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 128 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
                LnkCap: Port #1, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <256ns, L1 <4us
                        ClockPM- Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna- CRSVisible-
                RootCap: CRSVisible-
                RootSta: PME ReqID 0000, PMEStatus- PMEPending-
        Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
                Address: fee0100c  Data: 41c9
        Capabilities: [90] Subsystem: Toshiba America Info Systems Unknown device [1179:0001]
        Capabilities: [a0] 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: pcieport-driver

00:1c.1 PCI bridge [0604]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 [8086:2662] (rev 03) (prog-if 00 [Normal decode])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Bus: primary=00, secondary=03, subordinate=04, sec-latency=0
        I/O behind bridge: 0000b000-0000bfff
        Memory behind bridge: cdd00000-cdefffff
        Prefetchable memory behind bridge: 00000000afe00000-00000000afffffff
        Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
        BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: [40] Express (v1) Root Port (Slot+), MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
                        ExtTag+ RBE- FLReset-
                DevCtl: Report errors: Correctable+ Non-Fatal+ Fatal+ Unsupported+
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 128 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
                LnkCap: Port #2, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <1us, L1 <4us
                        ClockPM- Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x0, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                SltCap: AttnBtn- PwrCtrl- MRL- AttnInd- PwrInd- HotPlug+ Surpise+
                        Slot #  1, PowerLimit 6.500000; Interlock- NoCompl-
                SltCtl: Enable: AttnBtn+ PwrFlt- MRL- PresDet+ CmdCplt- HPIrq- LinkChg-
                        Control: AttnInd Unknown, PwrInd Unknown, Power- Interlock-
                SltSta: Status: AttnBtn- PowerFlt- MRL- CmdCplt- PresDet- Interlock-
                        Changed: MRL- PresDet- LinkState-
                RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna- CRSVisible-
                RootCap: CRSVisible-
                RootSta: PME ReqID 0000, PMEStatus- PMEPending-
        Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
                Address: fee0100c  Data: 41d1
        Capabilities: [90] Subsystem: Toshiba America Info Systems Unknown device [1179:0001]
        Capabilities: [a0] 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: pcieport-driver

00:1d.0 USB Controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 [8086:2658] (rev 03) (prog-if 00 [UHCI])
        Subsystem: Toshiba America Info Systems Unknown device [1179: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 19
        Region 4: I/O ports at afe0 [size=32]
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.1 USB Controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 [8086:2659] (rev 03) (prog-if 00 [UHCI])
        Subsystem: Toshiba America Info Systems Unknown device [1179: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 B routed to IRQ 20
        Region 4: I/O ports at af80 [size=32]
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.2 USB Controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 [8086:265a] (rev 03) (prog-if 00 [UHCI])
        Subsystem: Toshiba America Info Systems Unknown device [1179: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 C routed to IRQ 21
        Region 4: I/O ports at af60 [size=32]
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.3 USB Controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 [8086:265b] (rev 03) (prog-if 00 [UHCI])
        Subsystem: Toshiba America Info Systems Unknown device [1179: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 D routed to IRQ 16
        Region 4: I/O ports at af40 [size=32]
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.7 USB Controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller [8086:265c] (rev 03) (prog-if 20 [EHCI])
        Subsystem: Toshiba America Info Systems Unknown device [1179: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 19
        Region 0: Memory at 88004000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Kernel driver in use: ehci_hcd
        Kernel modules: ehci-hcd

00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev d3) (prog-if 01 [Subtractive decode])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Bus: primary=00, secondary=05, subordinate=07, sec-latency=32
        I/O behind bridge: 0000f000-00000fff
        Memory behind bridge: cdc00000-cdcfffff
        Prefetchable memory behind bridge: 00000000fff00000-00000000000fffff
        Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
        BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
                PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
        Capabilities: [50] Subsystem: Toshiba America Info Systems Unknown device [1179:0001]

00:1f.0 ISA bridge [0601]: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge [8086:2641] (rev 03)
        Subsystem: Toshiba America Info Systems Unknown device [1179: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
        Kernel modules: intel-rng, iTCO_wdt

00:1f.1 IDE interface [0101]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller [8086:266f] (rev 03) (prog-if 8a [Master SecP PriP])
        Subsystem: Toshiba America Info Systems Unknown device [1179: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 [0106]: Intel Corporation 82801FBM (ICH6M) SATA Controller [8086:2653] (rev 03) (prog-if 01 [AHCI 1.0])
        Subsystem: Toshiba America Info Systems Unknown device [1179: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

01:00.0 VGA compatible controller [0300]: nVidia Corporation NV43 [GeForce Go 6600] [10de:0148] (rev a2) (prog-if 00 [VGA])
        Subsystem: Toshiba America Info Systems Unknown device [1179:0010]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 10
        Region 0: Memory at cf000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: Memory at b0000000 (64-bit, prefetchable) [size=256M]
        Region 3: Memory at ce000000 (64-bit, non-prefetchable) [size=16M]
        Capabilities: [60] 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-
        Capabilities: [68] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
                Address: 0000000000000000  Data: 0000
        Capabilities: [78] Express (v1) Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <512ns, L1 <4us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- UncorrErr+ FatalErr- UnsuppReq+ AuxPwr- TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x16, ASPM L0s L1, Latency L0 <256ns, L1 <4us
                        ClockPM- Suprise- LLActRep- BwNot-
                LnkCtl: ASPM L0s L1 Enabled; RCB 128 bytes Disabled- Retrain- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x16, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
        Kernel modules: nvidiafb

02:00.0 Ethernet controller [0200]: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller [11ab:4362] (rev 15)
        Subsystem: Toshiba America Info Systems Marvell 88E8053 Gigabit Ethernet Controller (Toshiba) [1179:0001]
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 220
        Region 0: Memory at cdffc000 (64-bit, non-prefetchable) [size=16K]
        Region 2: I/O ports at ce00 [size=256]
        Capabilities: [48] Power Management version 2
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=1 PME-
        Capabilities: [50] Vital Product Data <?>
        Capabilities: [5c] Message Signalled Interrupts: Mask- 64bit+ Queue=0/1 Enable+
                Address: 00000000fee0100c  Data: 4132
        Capabilities: [e0] Express (v1) Legacy Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset-
                DevCtl: Report errors: Correctable+ Non-Fatal+ Fatal+ Unsupported+
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr+ NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ UncorrErr+ FatalErr- UnsuppReq+ AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s, Latency L0 <256ns, L1 unlimited
                        ClockPM- Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- Retrain- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
        Kernel driver in use: sky2
        Kernel modules: sky2

05:05.0 Network controller [0280]: Intel Corporation PRO/Wireless 2200BG Network Connection [8086:4220] (rev 05)
        Subsystem: Intel Corporation Unknown device [8086:2741]
        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 (750ns min, 6000ns max), Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 22
        Region 0: Memory at cdcff000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [dc] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=1 PME-
        Kernel driver in use: ipw2200
        Kernel modules: ipw2200

05:0b.0 CardBus bridge [0607]: Texas Instruments PCIxx21/x515 Cardbus Controller [104c:8031]
        Subsystem: Toshiba America Info Systems Unknown device [1179: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: 168, Cache Line Size: 128 bytes
        Interrupt: pin A routed to IRQ 18
        Region 0: Memory at cdc04000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=05, secondary=06, subordinate=06, sec-latency=176
        Memory window 0: 8c000000-8ffff000 (prefetchable)
        Memory window 1: 90000000-93fff000
        I/O window 0: 00001000-000010ff
        I/O window 1: 00001400-000014ff
        BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
        16-bit legacy interface ports at 0001
        Kernel driver in use: yenta_cardbus

05:0b.2 FireWire (IEEE 1394) [0c00]: Texas Instruments OHCI Compliant IEEE 1394 Host Controller [104c:8032] (prog-if 10 [OHCI])
        Subsystem: Toshiba America Info Systems Unknown device [1179: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: 64 (500ns min, 1000ns max), Cache Line Size: 32 bytes
        Interrupt: pin C routed to IRQ 23
        Region 0: Memory at cdc05000 (32-bit, non-prefetchable) [size=2K]
        Region 1: Memory at cdc00000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [44] 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: firewire_ohci
        Kernel modules: firewire-ohci

05:0b.4 Generic system peripheral [0805]: Texas Instruments PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital Controller [104c:8034] (prog-if 01)
        Subsystem: Toshiba America Info Systems Unknown device [1179: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: 64 (1750ns min, 1000ns max), Cache Line Size: 32 bytes
        Interrupt: pin D routed to IRQ 19
        Region 0: Memory at cdc05800 (32-bit, non-prefetchable) [size=256]
        Region 1: Memory at cdc05900 (32-bit, non-prefetchable) [size=256]
        Region 2: Memory at cdc05a00 (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 PME-Enable- DSel=0 DScale=0 PME-
        Kernel driver in use: sdhci
        Kernel modules: sdhci

[root@helios ~]#
Comment 1 Bartlomiej Zolnierkiewicz 2007-12-02 10:28:35 UTC
You are using libata driver not IDE one, so I'm reassigning it to libata developers.
Comment 2 Andrew Morton 2007-12-02 22:24:05 UTC
Are you able to identify an earlier kernel which didn't have this problem?
2.6.22? 2.6.23?

Thanks.
Comment 3 Robert M. Albrecht 2007-12-03 08:10:29 UTC
2.6.17 from Fedora 6 test 3 works
I will test some more kernels.
Comment 4 Robert M. Albrecht 2007-12-04 01:02:36 UTC
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
Comment 5 Robert M. Albrecht 2007-12-04 01:08:21 UTC
2.6.18 from Fedora Core 6 does not work
Comment 6 Tejun Heo 2007-12-05 22:21:07 UTC
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?
Comment 7 Robert M. Albrecht 2008-01-02 12:21:46 UTC
Created attachment 14266 [details]
dmesg from patched kernel

This is a 2.6.24-rc6 with your patch applied.
Comment 8 Robert M. Albrecht 2008-01-02 12:26:43 UTC
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]# 
Comment 9 Tejun Heo 2008-01-02 16:21:01 UTC
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.
Comment 10 Robert M. Albrecht 2008-01-03 00:41:57 UTC
How do I do this ? If I remove ahci my root-filesystem goes away.
Comment 11 Tejun Heo 2008-01-03 07:16:10 UTC
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?
Comment 12 Robert M. Albrecht 2008-01-03 07:58:16 UTC
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.
Comment 13 Tejun Heo 2008-01-03 15:13:29 UTC
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.
Comment 14 Robert M. Albrecht 2008-01-04 10:33:02 UTC
Hi Tejun,

my last serial console is several years ago, but it worked.

cu romal
Comment 15 Robert M. Albrecht 2008-01-04 10:33:53 UTC
Created attachment 14283 [details]
bootlog from patched kernel without ahci driver
Comment 16 Tejun Heo 2008-01-05 07:32:59 UTC
Created attachment 14295 [details]
ich6m-uscc.patch

Please apply the attached patch on top of 2.6.24-rc6 and report the result.  Thanks.
Comment 17 Robert M. Albrecht 2008-01-25 13:33:16 UTC
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
Comment 18 Robert M. Albrecht 2008-01-25 13:35:13 UTC
Hi Teju,

do you need a bootlog without ahci or something else ?

cu romal
Comment 19 Tejun Heo 2008-01-25 17:32:30 UTC
Yeap, I need boot log w/o ahci.  Thanks.
Comment 20 Robert M. Albrecht 2008-01-26 05:08:56 UTC
Created attachment 14585 [details]
failed boot due to missing ahci with patched ata_piix

cu romal
Comment 21 Tejun Heo 2008-01-26 15:38:07 UTC
The log is completely garbled.  Can you please re-post?  Thanks.
Comment 22 Robert M. Albrecht 2008-01-27 12:03:19 UTC
Created attachment 14614 [details]
bootlog without ahci, but with patched ata_piix
Comment 23 Tejun Heo 2008-01-27 17:04:20 UTC
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.
Comment 24 Robert M. Albrecht 2008-01-28 13:45:07 UTC
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
Comment 25 Tejun Heo 2008-01-28 16:01:48 UTC
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.
Comment 26 Tejun Heo 2008-01-28 16:03:29 UTC
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.
Comment 27 Robert M. Albrecht 2008-01-29 08:10:13 UTC
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
Comment 28 Tejun Heo 2008-01-29 09:37:22 UTC
Yes, boot log w/o ahci.  ata_piix shouldn't attach to the device.
Comment 29 Robert M. Albrecht 2008-01-29 10:27:04 UTC
Created attachment 14638 [details]
bootlog with missing ahci driver

Hi Tejun,

I don`t see the ata_piix driver loading at all.

cu romal
Comment 30 Robert M. Albrecht 2008-02-06 07:39:49 UTC
Hi,

anything I can do to help ?

cu romal
Comment 31 Tejun Heo 2008-02-07 01:20:10 UTC
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.
Comment 32 Robert M. Albrecht 2008-03-10 08:14:32 UTC
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.

:-))
Comment 33 Robert M. Albrecht 2008-03-25 14:52:25 UTC
Strange things happen.

2.6.25-0.121.rc5.git9 from Fedora 9 Beta does not work anymore.
Comment 34 Tejun Heo 2008-03-25 23:08:33 UTC
That's fedora changing module priorities at its whim.  Alright, ICH7 detection debug didn't go anywhere.  Forwarding the patch upstream.
Comment 35 Robert M. Albrecht 2008-04-23 11:22:01 UTC
Hi Tejun,

sorry to interrupt again, but 2.6.25 does still not work.

cu romal
Comment 36 Tejun Heo 2008-04-23 18:05:52 UTC
The patch is accepted for 2.6.26.  You'll have to load ahci for now.