2004-01-06 18:08:13

by Raphaël RIGO

[permalink] [raw]
Subject: [2.6.1-rc2] SATA problem.

Hello,
I have a problem related to Serial ATA : i have an Asus P4P800 Deluxe
motherboard (ICH5) with 2xCD and 1xSATA HD.
I have the SATA HD working correctly but i can't get the CDs to work. If
I compile both in the kernel I get :
handlers :
(ide_intr+0x0/0x1b4)
(ata_interrupt+0x0/0x1e8)
that is, both libata and old piix driver try to get access on CDs (as
Jon Burgess kindly explained to me :)).
If I remove the piix then the system boots correctly.
Any idea on how to fix it ?

Another little thing : the HD activity LED is always on...

Rapha?l Rigo.


2004-01-06 18:34:10

by Jon Burgess

[permalink] [raw]
Subject: Re: [2.6.1-rc2] SATA problem.

In a previous email, Rigo sent me the following boot log + lspci info
giving further details of the ICH5 in his setup.

The thing which looked most odd to me was that both controllers appear
to be configured in native mode on IRQ 18 and for some reason this
appears to give some trouble. In particular he was seeing an "unhandled
interrupt" error on IRQ 18.

Enabling the sata_piix driver and disabling the ide_piix code was enough
to get the machine to boot, but I don't know what the real cause of the
problem.

Rapha?l Rigo wrote in a previous email to me:

> Here are the bootlog (of working boot, ask me if you need the one of
> the non working one because I must copy it by hand) and lspci -vvv
>
>
> Dec 9 20:41:46 pici kernel: Uniform Multi-Platform E-IDE driver
> Revision: 7.00alpha2
> Dec 9 20:41:46 pici kernel: ide: Assuming 33MHz system bus speed for
> PIO modes; override with idebus=xx
> Dec 9 20:41:46 pici kernel: ide2: I/O resource 0x3EE-0x3EE not free.
> Dec 9 20:41:46 pici kernel: ide2: ports already in use, skipping probe
> Dec 9 20:41:46 pici kernel: libata version 0.81 loaded.
> Dec 9 20:41:46 pici kernel: ata_piix version 0.95
> Dec 9 20:41:46 pici kernel: PCI: Setting latency timer of device
> 0000:00:1f.2 to 64
> Dec 9 20:41:46 pici kernel: ata1: SATA max UDMA/133 cmd 0xEF88 ctl
> 0xEF86 bmdma 0xEE60 irq 18
> Dec 9 20:41:46 pici kernel: ata2: SATA max UDMA/133 cmd 0xEF68 ctl
> 0xEF82 bmdma 0xEE68 irq 18
> Dec 9 20:41:46 pici kernel: ata1: SATA port has no device. disabling.
> Dec 9 20:41:46 pici kernel: ata1: thread exiting
> Dec 9 20:41:46 pici kernel: scsi0 : ata_piix
> Dec 9 20:41:46 pici kernel: ata2: dev 0 cfg 49:2f00 82:7c6b 83:7b09
> 84:4003 85:7c49 86:3a01 87:4003 88:207f
> Dec 9 20:41:46 pici kernel: ata2: dev 0 ATA, max UDMA/133, 240121728
> sectors
> Dec 9 20:41:46 pici kernel: ata2: dev 0 configured for UDMA/133
> Dec 9 20:41:46 pici kernel: scsi1 : ata_piix
> Dec 9 20:41:46 pici kernel: Vendor: ATA Model: Maxtor
> 6Y120M0 Rev: 0.81
> Dec 9 20:41:46 pici kernel: Type:
> Direct-Access ANSI SCSI revision: 05
> Dec 9 20:41:46 pici kernel: SCSI device sda: 240121728 512-byte hdwr
> sectors (122942 MB)
> Dec 9 20:41:46 pici kernel: SCSI device sda: drive cache: write through
> Dec 9 20:41:46 pici kernel: sda: sda1 sda2 < sda5 sda6 sda7 sda8 > sda3
> Dec 9 20:41:46 pici kernel: Attached scsi disk sda at scsi1, channel
> 0, id 0, lun 0
> Dec 9 20:41:46 pici kernel: Attached scsi generic sg0 at scsi1,
> channel 0, id 0, lun 0, type 0
>
>
> 00:1f.1 IDE interface: Intel Corp.: Unknown device 24db (rev 02)
> (prog-if 8f [Master SecP SecO PriP PriO])
> Subsystem: Asustek Computer, Inc.: Unknown device 80a6
> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 0
> Interrupt: pin A routed to IRQ 18
> Region 0: I/O ports at efe0 [size=8]
> Region 1: I/O ports at efac [size=4]
> Region 2: I/O ports at efa0 [size=8]
> Region 3: I/O ports at efa8 [size=4]
> Region 4: I/O ports at ef90 [size=16]
> Region 5: Memory at 20000000 (32-bit, non-prefetchable) [size=1K]
>
> 00:1f.2 IDE interface: Intel Corp.: Unknown device 24d1 (rev 02)
> (prog-if 8f [Master SecP SecO PriP PriO])
> Subsystem: Asustek Computer, Inc.: Unknown device 80a6
> Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop-
> ParErr- Stepping- SERR- FastB2B-
> Status: Cap- 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR-
> Latency: 0
> Interrupt: pin A routed to IRQ 18
> Region 0: I/O ports at ef88 [size=8]
> Region 1: I/O ports at ef84 [size=4]
> Region 2: I/O ports at ef68 [size=8]
> Region 3: I/O ports at ef80 [size=4]
> Region 4: I/O ports at ee60 [size=16]
>
Jon


2004-01-06 19:01:58

by Matthias Hentges

[permalink] [raw]
Subject: Re: [2.6.1-rc2] SATA problem.


FWIW my P4P 800 Deluxe w/ SATA and PATA drives works fine in 2.6.
The trick for me was to configure "Enhanced Mode, SATA only" in
the BIOS.

See http://www.hentges.net/howtos/p4p800_SATA.html for details.

HTH
--

Matthias Hentges
Cologne / Germany

[http://www.hentges.net] -> PGP welcome, HTML tolerated
ICQ: 97 26 97 4 -> No files, no URL's

My OS: Debian Woody. Geek by Nature, Linux by Choice

2004-01-06 20:06:17

by Raphaël RIGO

[permalink] [raw]
Subject: Re: [2.6.1-rc2] SATA problem.

Matthias Hentges wrote:
> FWIW my P4P 800 Deluxe w/ SATA and PATA drives works fine in 2.6.
> The trick for me was to configure "Enhanced Mode, SATA only" in
> the BIOS.
>
> See http://www.hentges.net/howtos/p4p800_SATA.html for details.
>
> HTH

Thanks for the help... it is now (partially) working. But a fix in the kernel
would be better :) (Maybe I should finally start to learn kernel coding)
The partially is because i tried to burn a CD (with k3b without trying anything
before) => complete freeze.
Rapha?l RIGO.