Bug 7997 - IDE controller Intel 82371AB/EB/MB PIIX4 is not recognized
Summary: IDE controller Intel 82371AB/EB/MB PIIX4 is not recognized
Status: CLOSED CODE_FIX
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: Serial ATA (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Alan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-13 00:41 UTC by Frederic MASSOT
Modified: 2009-03-19 03:30 UTC (History)
5 users (show)

See Also:
Kernel Version: 2.6.19 and 2.6.20
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
The lspci -v output (2.53 KB, text/plain)
2007-02-13 08:26 UTC, Frederic MASSOT
Details
dmesg output of kernel 2.6.20 with support CONFIG_IDE and without support CONFIG_ATA. (12.67 KB, text/plain)
2007-02-13 08:29 UTC, Frederic MASSOT
Details
lspci -v (2.29 KB, text/plain)
2007-03-20 15:15 UTC, Jonathan Thibault
Details
dmesg of kernel 2.6.23 (10.76 KB, text/plain)
2007-10-10 08:04 UTC, Frederic MASSOT
Details
dmesg of kernel 2.6.25 (9.63 KB, text/plain)
2008-05-27 02:49 UTC, Frederic MASSOT
Details
The lspci -v output (3.02 KB, text/plain)
2008-05-27 02:55 UTC, Frederic MASSOT
Details
dmesg of kernel 2.6.23 (12.77 KB, text/plain)
2008-05-30 10:30 UTC, Frederic MASSOT
Details
lspci (3.44 KB, text/plain)
2008-05-30 10:32 UTC, Frederic MASSOT
Details
config of kernel 2.6.23 (32.45 KB, text/plain)
2008-05-30 10:34 UTC, Frederic MASSOT
Details
config of kernel 2.6.25 (33.09 KB, text/plain)
2008-05-30 10:36 UTC, Frederic MASSOT
Details
dmesg of kernel 2.6.25 (9.31 KB, text/plain)
2008-06-02 03:42 UTC, Frederic MASSOT
Details
dmesg of kernel 2.6.25 with loglevel=7 (9.28 KB, text/plain)
2008-06-09 09:48 UTC, Frederic MASSOT
Details
dmesg of kernel 2.6.25 with loglevel=7 and initcall_debug (45.70 KB, text/plain)
2008-06-10 10:17 UTC, Frederic MASSOT
Details
The lspci -nnvvv (7.58 KB, text/plain)
2008-06-11 01:10 UTC, Frederic MASSOT
Details
The lspci -vvxxx (17.07 KB, text/plain)
2008-06-11 01:11 UTC, Frederic MASSOT
Details
Config for 2.6.28.7 kernel with libata PATA support (39.45 KB, application/octet-stream)
2009-03-19 02:20 UTC, Lukas Tines
Details
dmesg of 2.6.28.7 kernel (10.25 KB, application/octet-stream)
2009-03-19 02:21 UTC, Lukas Tines
Details
lspci -nnvvv (PIIX4 controller is 8086:7111) (3.10 KB, text/plain)
2009-03-19 02:23 UTC, Lukas Tines
Details

Description Frederic MASSOT 2007-02-13 00:41:10 UTC
Distribution: Debian Etch

Hardware Environment:
CPU: Intel Pentium III (Katmai) 450 Mhz

00:07.1 IDE interface [0101]: Intel Corporation 82371AB/EB/MB PIIX4 IDE
[8086:7111] (rev 01) (prog-if 80 [Master])
   Flags: bus master, medium devsel, latency 64
   [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled] [size=8]
   [virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled] [size=1]
   [virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled] [size=8]
   [virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled] [size=1]
   I/O ports at ffa0 [size=16]


Problem Description:

Hi,

I want to test PATA drivers on my PC, I compiled the kernel (2.6.19 and 2.6.20)
without support CONFIG_IDE and with support CONFIG_ATA, CONFIG_SATA_AHCI,
CONFIG_ATA_PIIX, CONFIG_ATA_GENERIC, CONFIG_PATA_JMICRON, CONFIG_PATA_MPIIX and
CONFIG_PATA_OLDPIIX.

At boot, there are the error messages :
atkbd.c: Spurious ACK on isa0060/serio0...
atkbd.c: Spurious ACK on isa0060/serio0...
atkbd.c: Spurious ACK on isa0060/serio0...
atkbd.c: Spurious ACK on isa0060/serio0...

The messages are fast, but according to what I could see like message, I believe
that IDE controller is not recognized.

I can boot with support CONFIG_IDE and without support CONFIG_ATA.

Regards.
Comment 1 Alan 2007-02-13 08:01:39 UTC
The ATA controller you posted the data for is disabled.
Comment 2 Alan 2007-02-13 08:02:55 UTC
Please attach dmesg and lspci -v for the system as a whole not just the one
device so I can see better what is going on (a boot of the old IDE is fine)
Comment 3 Frederic MASSOT 2007-02-13 08:26:43 UTC
Created attachment 10404 [details]
The lspci -v output
Comment 4 Frederic MASSOT 2007-02-13 08:29:21 UTC
Created attachment 10405 [details]
dmesg output of kernel 2.6.20 with support CONFIG_IDE and without support CONFIG_ATA.
Comment 5 Jonathan Thibault 2007-03-20 15:15:46 UTC
Created attachment 10874 [details]
lspci -v

Output of lspci -v from an old Compaq Deskpro P550 (same issue)
Comment 6 Jonathan Thibault 2007-03-20 15:19:46 UTC
Same problem here for me.  Interestingly enough, the atkbd.c: Spurious ACK on
isa0060/serio0... messages alternatively turn on and off the scroll-lock LED on
the keyboard.  Will gladly test patches or provide access to the box for
diagnostics.
Comment 7 Tejun Heo 2007-08-08 19:48:24 UTC
Alan, ping.
Comment 8 Alan 2007-09-10 09:36:43 UTC
Not sure - we saw similar breakage from the PCI hack stuff to stop buggy X breaking and it may well be we've accidentally fixed it in sorting that out and in redoing the PCI resource handling. Not sure.
Comment 9 Natalie Protasevich 2007-10-03 22:29:18 UTC
Frederic, Johnatan, can you confirm if the problem has been fixed for you?
Thanks.
Comment 10 Frederic MASSOT 2007-10-10 08:02:22 UTC
Hi,

I tested the kernel 2.6.22 with the same configuration and I have the same error.

I tested the kernel 2.6.23 with the same configuration and I do not have any more error, I could boot with the PATA.

I post the dmesg.

Regards.
Comment 11 Frederic MASSOT 2007-10-10 08:04:35 UTC
Created attachment 13100 [details]
dmesg of kernel 2.6.23
Comment 12 Frederic MASSOT 2008-05-27 02:46:52 UTC
Hi,

I tested the kernel 2.6.25 on other PC and I have the same
problem, I couldn't boot with the PATA and the led caps lock and scroll lock blinks.

I don't have the error message : atkbd.c: Spurious ACK on isa0060/serio0...

The kernel block when he wants to mount the root, the error message says he does not find the disc. To avoid problems of naming, I indicated in lilo setting to use the UUID :
root="UUID=4286b046-9977-4a39-9b78-5dd20775bd83"

I post the dmesg ant the lspci.

Regards.
Comment 13 Frederic MASSOT 2008-05-27 02:49:44 UTC
Created attachment 16291 [details]
dmesg of kernel 2.6.25
Comment 14 Frederic MASSOT 2008-05-27 02:55:02 UTC
Created attachment 16292 [details]
The lspci -v output
Comment 15 Alan 2008-05-27 03:36:53 UTC
The dmesg appears to be incomplete and doesn't include the panic.

Note also that lilo does not support root= for UUID, and the kernel will only do so if you have a suitable initrd built.
Comment 16 Frederic MASSOT 2008-05-27 05:48:04 UTC
Hi,

Thank you for your reply.

The dmesg is for the kernel to boot properly, it includes :
CONFIG_HAVE_IDE=y
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y
CONFIG_BLK_DEV_IDEACPI=y
CONFIG_IDE_PROC_FS=y
CONFIG_BLK_DEV_IDEDMA_SFF=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_PCIBUS_ORDER=y
CONFIG_BLK_DEV_GENERIC=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_BLK_DEV_PIIX=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDE_ARCH_OBSOLETE_INIT=y
and
CONFIG_ATA=y
CONFIG_ATA_ACPI=y
CONFIG_SATA_AHCI=y
CONFIG_ATA_PIIX=y
CONFIG_ATA_GENERIC=y


From the lilo.conf man page :
(22.6)  The  root filesystem may also be specified by a LABEL= or UUID= directive, as in '/etc/fstab'.  In this case, the argument to root= must be enclosed in quotation marks, to avoid a syntax error on the second equal sign; viz.,

I will test the kernel with an initrd.

Regards.
Comment 17 Frederic MASSOT 2008-05-27 10:47:09 UTC
Here is the message for the kernel without initrd:

VFS: cannot open root device "UUID=4286b046-9977-4a39-9b78-5dd20775bd83" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

The last message for the kernel with initrd:

Begin: Waiting for root filesystem...
Comment 18 Tejun Heo 2008-05-27 16:08:50 UTC
Frederic, your harddisks are detected fine.  You can't use LABEL/UUID w/o initrd.  Can you boot by specifying the root partition directly?
Comment 19 Frederic MASSOT 2008-05-28 01:25:17 UTC
I tested without initrd and with the "root=/dev/sda1" boot option:

VFS: cannot open root device "sda1" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Comment 20 Frederic MASSOT 2008-05-30 10:29:28 UTC
Hi,
	
I tried the kernel 2.6.25 on the PC that works well with kernel 2.6.23 and libata (PATA) (see the beginning of this bug report), and I have the same problem at the boot:

VFS: cannot open root device "sda1" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

It boot well with the libata of kernel 2.6.23, but not with that kernel 2.6.25.

I post the dmesg for the kernel 2.6.23, lspci and both config.
Comment 21 Frederic MASSOT 2008-05-30 10:30:57 UTC
Created attachment 16340 [details]
dmesg of kernel 2.6.23
Comment 22 Frederic MASSOT 2008-05-30 10:32:26 UTC
Created attachment 16341 [details]
lspci
Comment 23 Frederic MASSOT 2008-05-30 10:34:49 UTC
Created attachment 16342 [details]
config of kernel 2.6.23
Comment 24 Frederic MASSOT 2008-05-30 10:36:12 UTC
Created attachment 16343 [details]
config of kernel 2.6.25
Comment 25 Tejun Heo 2008-05-31 22:38:17 UTC
Can you please try to capture the kernel logs from failing boot?  You'll need to use either serial console or netconsole (Documentation/networking/netconsole.txt).

Thanks.
Comment 26 Frederic MASSOT 2008-06-02 03:40:16 UTC
Hi,

I used netconsole, great tool! :o)

What is surprising in the kernel logs is that after the line "SCSI subsystem initialized" there is no line "libata version 3.00 loaded". The kernel is yet compiled with the support of the libata, see the configuration file earlier. This could be due to the ACPI?

Below the kernel logs.
Comment 27 Frederic MASSOT 2008-06-02 03:42:43 UTC
Created attachment 16366 [details]
dmesg of kernel 2.6.25
Comment 28 Tejun Heo 2008-06-08 19:22:53 UTC
Hmmmm..... strange.  It looks like libata isn't compiled in.  Or, maybe loglevel is set to a higher value.  Does specifying "loglevel=7" make any difference?
Comment 29 Frederic MASSOT 2008-06-09 09:48:37 UTC
Created attachment 16442 [details]
dmesg of kernel 2.6.25 with loglevel=7
Comment 30 Tejun Heo 2008-06-09 19:04:57 UTC
The libata message is printed from ata_init() which is always called during boot if built in.  Can you please try kernel parameters "loglevel=7 initcall_debug"?
Comment 31 Frederic MASSOT 2008-06-10 10:17:40 UTC
Created attachment 16450 [details]
dmesg of kernel 2.6.25 with loglevel=7 and initcall_debug
Comment 32 Tejun Heo 2008-06-10 18:58:07 UTC
Thanks.  Both ata_init and piix_init are running.  Messages not printed on console is probably due to printk loglevel.  Can you please post the result of "lspci -nnvvv"?
Comment 33 Frederic MASSOT 2008-06-11 01:10:42 UTC
Created attachment 16453 [details]
The lspci -nnvvv
Comment 34 Frederic MASSOT 2008-06-11 01:11:16 UTC
Created attachment 16454 [details]
The lspci -vvxxx
Comment 35 Tejun Heo 2008-06-11 01:26:10 UTC
Might be related.

http://bugzilla.kernel.org/show_bug.cgi?id=10854
Comment 36 Lukas Tines 2009-03-19 02:19:06 UTC
Looks like this have been fixed in latest kernel (2.6.28.7). PIIX4 controller is recognized and ata_piix module is used. So far no problems using it. Config, dmesg and lspci -nnvvv attached below
Comment 37 Lukas Tines 2009-03-19 02:20:30 UTC
Created attachment 20593 [details]
Config for 2.6.28.7 kernel with libata PATA support
Comment 38 Lukas Tines 2009-03-19 02:21:52 UTC
Created attachment 20594 [details]
dmesg of 2.6.28.7 kernel
Comment 39 Lukas Tines 2009-03-19 02:23:25 UTC
Created attachment 20595 [details]
lspci -nnvvv (PIIX4 controller is 8086:7111)

Note You need to log in before you can comment on or make changes to this bug.