Skip to contentSkip to conversation

New: 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

Bug 13365 [email protected] 2 participants 15 messages May 22, 2009 – May 24, 2009 libata

lore
Share & tools
lore
#0 lore raw

http://bugzilla.kernel.org/show_bug.cgi?id=13365

           Summary: 2.6.28+ cannot read a hard-drive properly through an
                    "82801DB (ICH4) IDE Controller"
           Product: IO/Storage
           Version: 2.5
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: high
          Priority: P1
         Component: IDE
        AssignedTo: [email protected]
        ReportedBy: [email protected]
        Regression: Yes

Created an attachment (id=21496)
--> (http://bugzilla.kernel.org/attachment.cgi?id=21496)
lscpi -vvvnn

This used to work in 2.6.27.

It seems 2.6.28 or greater (tested with 2.6.28-gentoo-r5 and the latest stable on kernel.org, 2.6.29.4) cannot use the Intel 82801DB (ICH4) IDE Controller properly. The kernel will boot fine, and the init script will be launched, but as soon as fsck does a check on whether the partition is /really/ fine before the init services mount it, everything stops. fsck complains that there's a different superblock count (few thousand difference) than what the partition table claims.

If I bot back into 2.6.27 after booting into either of these kernels, fsck will complain in a different way that there are errors in the file-system, but it cleans it up and boot continues. If I reboot again into 2.6.27, then fsck doesn't complain at all. However, as soon as I attempt .28 or .29, things go awry again.

Attached is lspci -vvvnn output. A plain 'lspci' dump is provided below (for Google purposes):
=== begin ===
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 01)
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 81) 00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 01) 00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
01:07.0 Multimedia video controller: Conexant CX23880/1/2/3 PCI Video and Audio Decoder (rev 05)
01:08.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
=== end ===

I think the important part is the IDE interface, but in case there's a conflict in hardware I included it all.

Besides the Gentoo kernel and the vanilla kernel, I also have a unionfs patch. However, I have left it out of the mix for 2.6.28 and .29 to make sure that wasn't the cause.

This is my first _kernel_ bug report (*shiver* ;), so let me know if I'm missing any info you need.

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#1 lore raw

[Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

http://bugzilla.kernel.org/show_bug.cgi?id=13365

--- Comment #1 from Jacob <[email protected]> 2009-05-22 23:32:30 --- Created an attachment (id=21498)
--> (http://bugzilla.kernel.org/attachment.cgi?id=21498)
2.6.29.4 .config

It's called .config.bak because it's the .config that applies to this bug. I'm currently trying to turn off "Serial ATA" support and use plain "ATA" instead to see if that helps. If it does, I'll post a 'diff -u' at that point in time.

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#2 lore raw

[Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13365

Jacob <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #21498|application/x-trash         |text/plain
          mime type|                            |

--- Comment #2 from Jacob <[email protected]> 2009-05-22 23:34:25 --- (From update of attachment 21498)
Adjusted mime-type for convenience.

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#3 lore raw

[Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13365

Alan <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from Alan <[email protected]> 2009-05-22 23:39:10 --- Can you attach a dmesg of the boot (good or bad)

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#4 lore raw

[Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13365

Felix Miata <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #4 from Felix Miata <[email protected]> 2009-05-23 00:07:27 --- I have several ICH4 systems. On one with an Intel motherboard running Mandriva Cooker, 2.6.29.1 works fine with libata drivers. A Dell GX260, running openSUSE Factory with a 2.6.29-6 kernel, works fine with legacy IDE drivers. I'm using only ext2 & ext3 partitions.

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#5 lore raw

[Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13365

Felix Miata <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC|[email protected] |

--- Comment #5 from Felix Miata <[email protected]> 2009-05-23 02:58:32 --- It just occurred to me that boards with 845 chipsets were mostly made during the plague of defective capacitors. My 845 Intel board developed bad caps, which I replaced when bad things started happening, and the errors stopped.

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#6 lore raw

[Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13365

Christopher Hogan <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #6 from Christopher Hogan <[email protected]> 2009-05-23 05:00:28 --- I'm also having this problem with an Acer desktop system. I ran into the problem when I updated from kernel-2.6.18-gentoo-r5 to kernel-2.6.29-gentoo-r3. At the same time, I switched from using the BLK_DEV_PIIX driver to the ATA_PIIX driver.

Booting the new kernel produced similar errors concerning the file system being to large for the partition. The system could not boot the root file system. Booting back into 2.6.18, fsck corrected some corruption and the system booted normally. Every time I booted into the 2.6.29 kernel, I received the same errors.

I recompiled the 2.6.29 kernel to use the BLK_DEV_PIIX driver and the errors went away.

I'd attach the dmesg of the boot with the error. However, the root file system wouldn't mount. I not sure how I'd capture it. If I get a chance tomorrow, I'll try booting the system from a Knoppix image and see if it has problems mounting the hard drive.

lspci output:
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03)
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 82) 00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 02)
01:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

I also have a Dell GX260 that uses this chipset, but doesn't have this problem. I'm using ReiserFS from the kernel.

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#7 lore raw

[Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13365

--- Comment #7 from Alan <[email protected]> 2009-05-23 08:11:06 --- Christopher - please open a separate bug for what is almost certainly an unrelated issue.

This actually looks like something is causing memory corruption. It's probably not the ATA or IDE drivers but something stomping on the cache which is why I asked for the dmesg, to see what else is going on. A dud board is certainly possible but if going back to the old kernel fixes it then, while running memtest86 overnight on it wouldn't be a bad idea it does suggest its probably software triggered

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#8 lore raw

Re: [Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

Quoted 9 lines · On Saturday 23 May 2009 10:11:07 [email protected] wrote:

http://bugzilla.kernel.org/show_bug.cgi?id=13365

--- Comment #7 from Alan <[email protected]> 2009-05-23 08:11:06 --- Christopher - please open a separate bug for what is almost certainly an unrelated issue.

Well, the kernel config posted by Jacob has:

# CONFIG_IDE is not set

so it would be useful to verify his 2.6.27 (last good) kernel config first.

Quoted 2 lines

This actually looks like something is causing memory corruption. It's probably not the ATA or IDE drivers but something stomping on the cache which is why I

Certainly not IDE drivers. Please move this bug over to libata.

#9 lore raw

[Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13365

--- Comment #8 from Bartlomiej Zolnierkiewicz <[email protected]> 2009-05-23 11:54:13 ---

Quoted 9 lines · On Saturday 23 May 2009 10:11:07 [email protected] wrote:

http://bugzilla.kernel.org/show_bug.cgi?id=13365

--- Comment #7 from Alan <[email protected]> 2009-05-23 08:11:06 --- Christopher - please open a separate bug for what is almost certainly an unrelated issue.

Well, the kernel config posted by Jacob has:

# CONFIG_IDE is not set

so it would be useful to verify his 2.6.27 (last good) kernel config first.

Quoted 2 lines

This actually looks like something is causing memory corruption. It's probably not the ATA or IDE drivers but something stomping on the cache which is why I

Certainly not IDE drivers. Please move this bug over to libata.

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#10 lore raw

[Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13365

--- Comment #9 from Jacob <[email protected]> 2009-05-24 12:22:38 --- Created an attachment (id=21513)
--> (http://bugzilla.kernel.org/attachment.cgi?id=21513)
dmesg for 2.6.27

Here's a good boot's dmesg.

Well, guys, things have gotten very interesting since I last wrote this bug. I'm not so sure this is a kernel bug anymore. My hard-drive made sounds almost like it had turned off and was spinning down, but then turned back on again. Several hours later, there was a hard-drive error, and Linux did an emergency read-only remount.

I ran fsck, which presumably fixed the errors, and everything is working again.

Looking at my dmesg file in depth for the first time, I see some "Buffer" errors that make me quiver.

Nevertheless, I'm going to continue fighting for 2.6.29, because there's still a possibility that there's a bug keeping 2.6.29 from booting altogether. Unless 2.6.29 is being smart. ;)

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#11 lore raw

[Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13365

--- Comment #10 from Jacob <[email protected]> 2009-05-24 12:38:38 --- Created an attachment (id=21514)
--> (http://bugzilla.kernel.org/attachment.cgi?id=21514)
good dmesg for 2.6.29

Christopher (at least, I'm pretty sure he's the one who recommended this workaround on the Gentoo forums) was right: the Serial ATA drivers do not work, but the ATA ones do. I'm now using 2.6.29.4, with /dev/hda instead of /dev/sda.
I'm also without X at the moment, since the intel driver is failing to paint
pixels correctly on my screen. Another bug for another day, perhaps. ;)

I'll let you guys decide whether it's a hard-drive issue or a kernel issue, but I think it has a good chance of being a kernel issue at this point.

If you need any more inforamtion, let me know.

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#12 lore raw

[Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13365

--- Comment #11 from Alan <[email protected]> 2009-05-24 12:52:43 --- If you've got the video driver failing, random crashes and the like its almost undebuggable whatever the real problem is.

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#13 lore raw

[Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13365

--- Comment #12 from Felix Miata <[email protected]> 2009-05-24 13:03:51 --- Bad caps are something you discover by just opening it up to look. If you have them, anything else you do is a waste of everyone's time.
http://www.overclockers.com/index.php?option=com_content&view=article&id=3649&catid=53:editorials&Itemid=4259

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
#14 lore raw

[Bug 13365] 2.6.28+ cannot read a hard-drive properly through an "82801DB (ICH4) IDE Controller"

In reply to [email protected]

http://bugzilla.kernel.org/show_bug.cgi?id=13365

Bartlomiej Zolnierkiewicz <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected]
         AssignedTo|[email protected] |[email protected]

--- Comment #13 from Bartlomiej Zolnierkiewicz <[email protected]> 2009-05-24 13:11:45 --- Seems to be legitimate kernel issue. I'm re-assigning it to the right component...

Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.