[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#419482: Kernel 2.6.18 - ALI15X3 driver too optmistic about UDMA



Package: linux-image-2.6.18-4-footbridge
Version: 2.6.18.dfsg.1-12
Severity: important

On the "cats" machines that we use for arm buildd work, it seems the
kernel is too aggressive in enabling UDMA support for the onboard IDE
chip:

  ALi Corporation M5229 IDE (rev c1)

So much so, that simple data transfers are corrupted - the very first
read from a disk to find the partition table in sector 0 is corrupted
and the machine fails to boot. I've debugged through this to verify
the problem, and for these machines for now I have built a custom
kernel with UDMA disabled altogether. Trivial heavy-handed patch
included here, but I'm deliberatly not setting the "patch" tag as I
doubt you'll want to apply this as-is.

--- debian/kernel/linux-2.6-2.6.18.dfsg.1/drivers/ide/pci/alim15x3.c 2006-09-20 04:42:06.000000000 +0100
+++ alim15x3.c  2007-04-16 00:25:17.000000000 +0100
@@ -378,6 +379,8 @@
        struct hd_driveid *id   = drive->id;
 #endif /* CONFIG_WDC_ALI15X3 */
 
+       return 0;
+
        if (m5229_revision <= 0x20) {
                return 0;
        } else if ((m5229_revision < 0xC2) &&


-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
< sladen> I actually stayed in a hotel and arrived to find a post-it
          note stuck to the mini-bar saying "Paul: This fridge and
          fittings are the correct way around and do not need altering"

Attachment: signature.asc
Description: Digital signature


Reply to: