Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321 - HPT372 Errors
Summary: HPT372 Errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Highest blocker (vote)
Assignee: Michael Cohen (RETIRED)
URL:
Whiteboard:
Keywords:
: 1275 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-24 21:02 UTC by George Plymale
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Plymale 2002-01-24 21:02:57 UTC
I recently tried to install gentoo linux on a system with the Iwill XP333-R motherboard with the 
Highpoint HPT372 chipset.  Upon accessing the harddrives, I recieved continual errors about 
DMA and so forth.  I don't have the error in front of me now, however it appears that there have been 
issues for quite some time.  I just looked into -ac patches and saw a fix for HPT366 which appears to 
have resolved something having to do with DMA and the HPT370, and I think, perhaps, this may have 
something to do with the HPT372...  I cannot use Gentoo linux until there is a kernel that has 
support for this chipset (plus I need support for the ALi MAGiK 1 M1647 (C- version) as well for 
this motherboard, as I saw some errors I believe before in recognition of the ide controller on 
board, besides the hpt372).  

If patches could be integrated and a new iso image placed on the 
download site, it would very much help all of use Iwill XP333-R users out here.
Comment 1 Michael Cohen (RETIRED) gentoo-dev 2002-01-27 12:56:12 UTC
2.4.18-pre3-mjc3 contains Andre Hedricks IDE patches, also available at
linux-ide.org.  See if this helps :)
Comment 2 Michael Cohen (RETIRED) gentoo-dev 2002-01-27 13:10:03 UTC
I have an HPT370 and it works fine for me.  I will take a look at this fix
though, thanks.
Comment 3 George Plymale 2002-03-02 19:33:14 UTC
Hi, I just tried the newest iso (the large one with the packages on it) and I 
still have no luck with my HPT372.  My HPT370 used to work fine, but the 372 
will not function properly.  I get the same error with gentoo as with Mandrake 
8.2 betas.  I am unable to get the newer 2.4.18 patches because I don't have 
another linux box to compile on, so I'm absolutely unable to use gentoo until 
I find a kernel that will recognize this.  I will post my dmesg output below, 
as I get some very strange output with DMA, etc.  I don't even get the right 
strings for my ide controller (primary and secondary) at kernel 
initialization.  This is a weird problem that I've not seen the patch for 
yet.  I would love to give gentoo a spin, but for now only freebsd 4.5 will 
work (as 4.4 would not even work with the hpt372 as it changed some from the 
hpt370)

If you need any more information, please let me know, I'll be happy to collect 
it.  (whenever I try to access my raid0 array I start getting the errors that 
start with: hdg: dma_intr: status=0xff { Busy }
hdg: DMA disabled ...)

Here's dmesg output:

Linux version 2.4.17-r5 (root@inventor.gentoo.org) (gcc version 2.95.3 
20010315 (release)) #2 SMP Fri Feb 15 20:37:25 Local time zone must be set--
see zic manual page 2002
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
 BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
 BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Kernel command line: devfs=nomount vga=normal load_ramdisk=1 prompt_ramdisk=0 
ramdisk_size=22000 initrd=rescue.gz root=/dev/ram0 rw BOOT_IMAGE=kernel 
pci=biosirq
Initializing CPU#0
Detected 1393.149 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 2778.72 BogoMIPS
Memory: 505968k/524224k available (1696k kernel code, 17868k reserved, 326k 
data, 216k init, 0k highmem)
Dentry-cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Before vendor init, caps: 0183fbff c1c7fbff 00000000, vendor = 2
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After vendor init, caps: 0183fbff c1c7fbff 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0183fbff c1c7fbff 00000000 00000000
CPU:             Common caps: 0183fbff c1c7fbff 00000000 00000000
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
CPU: Before vendor init, caps: 0183fbff c1c7fbff 00000000, vendor = 2
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After vendor init, caps: 0183fbff c1c7fbff 00000000 00000000
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0183fbff c1c7fbff 00000000 00000000
CPU:             Common caps: 0183fbff c1c7fbff 00000000 00000000
CPU0: AMD Athlon(tm) processor stepping 04
per-CPU timeslice cutoff: 731.23 usecs.
SMP motherboard not detected.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1393.1836 MHz.
..... host bus clock speed is 265.3683 MHz.
cpu: 0, clocks: 2653683, slice: 1326841
CPU0<T0:2653680,T1:1326832,D:7,S:1326841,C:2653683>
Waiting on wait_init_idle (map = 0x0)
All processors have done init_idle
PCI: PCI BIOS revision 2.10 entry at 0xfb3b0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Unknown bridge resource 0: assuming transparent
PCI: Using IRQ router default [10b9/1647] at 00:00.0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
devfs: v1.7 (20011216) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
SGI XFS with ACLs, EAs, DMAPI, realtime, quota, no debug enabled
pty: 256 Unix98 ptys configured
Real Time Clock Driver v1.10e
block: 976 slots per queue, batch=244
RAMDISK driver initialized: 16 RAM disks of 22000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ALI15X3: IDE controller on PCI bus 00 dev 20
PCI: No IRQ known for interrupt pin A of device 00:04.0.
ALI15X3: chipset revision 196
ALI15X3: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:pio
ALI15X3: simplex device:  DMA disabled
ide1: ALI15X3 Bus-Master DMA disabled (BIOS)
Comment 4 George Plymale 2002-03-02 19:33:14 UTC
Hi, I just tried the newest iso (the large one with the packages on it) and I 
still have no luck with my HPT372.  My HPT370 used to work fine, but the 372 
will not function properly.  I get the same error with gentoo as with Mandrake 
8.2 betas.  I am unable to get the newer 2.4.18 patches because I don't have 
another linux box to compile on, so I'm absolutely unable to use gentoo until 
I find a kernel that will recognize this.  I will post my dmesg output below, 
as I get some very strange output with DMA, etc.  I don't even get the right 
strings for my ide controller (primary and secondary) at kernel 
initialization.  This is a weird problem that I've not seen the patch for 
yet.  I would love to give gentoo a spin, but for now only freebsd 4.5 will 
work (as 4.4 would not even work with the hpt372 as it changed some from the 
hpt370)

If you need any more information, please let me know, I'll be happy to collect 
it.  (whenever I try to access my raid0 array I start getting the errors that 
start with: hdg: dma_intr: status=0xff { Busy }
hdg: DMA disabled ...)

Here's dmesg output:

Linux version 2.4.17-r5 (root@inventor.gentoo.org) (gcc version 2.95.3 
20010315 (release)) #2 SMP Fri Feb 15 20:37:25 Local time zone must be set--
see zic manual page 2002
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
 BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
 BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Kernel command line: devfs=nomount vga=normal load_ramdisk=1 prompt_ramdisk=0 
ramdisk_size=22000 initrd=rescue.gz root=/dev/ram0 rw BOOT_IMAGE=kernel 
pci=biosirq
Initializing CPU#0
Detected 1393.149 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 2778.72 BogoMIPS
Memory: 505968k/524224k available (1696k kernel code, 17868k reserved, 326k 
data, 216k init, 0k highmem)
Dentry-cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Before vendor init, caps: 0183fbff c1c7fbff 00000000, vendor = 2
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After vendor init, caps: 0183fbff c1c7fbff 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0183fbff c1c7fbff 00000000 00000000
CPU:             Common caps: 0183fbff c1c7fbff 00000000 00000000
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
CPU: Before vendor init, caps: 0183fbff c1c7fbff 00000000, vendor = 2
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After vendor init, caps: 0183fbff c1c7fbff 00000000 00000000
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0183fbff c1c7fbff 00000000 00000000
CPU:             Common caps: 0183fbff c1c7fbff 00000000 00000000
CPU0: AMD Athlon(tm) processor stepping 04
per-CPU timeslice cutoff: 731.23 usecs.
SMP motherboard not detected.
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1393.1836 MHz.
..... host bus clock speed is 265.3683 MHz.
cpu: 0, clocks: 2653683, slice: 1326841
CPU0<T0:2653680,T1:1326832,D:7,S:1326841,C:2653683>
Waiting on wait_init_idle (map = 0x0)
All processors have done init_idle
PCI: PCI BIOS revision 2.10 entry at 0xfb3b0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Unknown bridge resource 0: assuming transparent
PCI: Using IRQ router default [10b9/1647] at 00:00.0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
devfs: v1.7 (20011216) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
SGI XFS with ACLs, EAs, DMAPI, realtime, quota, no debug enabled
pty: 256 Unix98 ptys configured
Real Time Clock Driver v1.10e
block: 976 slots per queue, batch=244
RAMDISK driver initialized: 16 RAM disks of 22000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ALI15X3: IDE controller on PCI bus 00 dev 20
PCI: No IRQ known for interrupt pin A of device 00:04.0.
ALI15X3: chipset revision 196
ALI15X3: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:pio
ALI15X3: simplex device:  DMA disabled
ide1: ALI15X3 Bus-Master DMA disabled (BIOS)
ëwfÒuJfSfÒuAF,Áè=: IDE controller on PCI bus 00 dev 70
ëwfÒuJfSfÒuAF,Áè=: chipset revision 5
ëwfÒuJfSfÒuAF,Áè=: not 100% native mode: will probe irqs later
    ide2: BM-DMA at 0xe800-0xe807, BIOS settings: hde:DMA, hdf:pio
    ide3: BM-DMA at 0xe808-0xe80f, BIOS settings: hdg:DMA, hdh:pio
hda: ATAPI CDROM, ATAPI CD/DVD-ROM drive
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hde: WDC WD200BB-53AUA1, ATA DISK drive
hdg: WDC WD200BB-53AUA1, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide2 at 0xd800-0xd807,0xdc02 on irq 15
ide3 at 0xe000-0xe007,0xe402 on irq 15
hde: 39102336 sectors (20020 MB) w/2048KiB Cache, CHS=38792/16/63, UDMA(100)
hdg: 39102336 sectors (20020 MB) w/2048KiB Cache, CHS=38792/16/63, UDMA(100)
hda: ATAPI 50X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
 /dev/ide/host2/bus0/target0/lun0: [PTBL] [2434/255/63] p1 p2 < >
 /dev/ide/host2/bus1/target0/lun0: unknown partition table
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.268 $ time 17:20:47 Feb 15 2002
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.268:USB Universal Host Controller Interface driver
usb-ohci.c: USB OHCI at membase 0xe0804000, IRQ 5
usb-ohci.c: usb-00:02.0, Acer Laboratories Inc. [ALi] M5237 USB
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 4 ports detected
usb.c: registered new driver hid
hid-core.c: v1.8 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 7028k freed
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 216k freed
Linux Tulip driver version 0.9.15-pre9 (Nov 6, 2001)
eth0: ADMtek Comet rev 17 at 0xd400, 00:20:78:03:E9:7F, IRQ 11.
 ataraid/d0: p1 p2 < p5 p6 p7 p8 p9 >
Highpoint HPT370 Softwareraid driver for linux version 0.01
Drive 0 is 19092 Mb 
Drive 1 is 19092 Mb 
Raid array consists of 2 drives. 
hdg: dma_intr: status=0xff { Busy }
hdg: DMA disabled
ide3: reset timed-out, status=0xff
hdg: status timeout: status=0xff { Busy }
hdg: drive not ready for command
ide3: reset timed-out, status=0xff
end_request: I/O error, dev 22:00 (hdg), sector 25712012
end_request: I/O error, dev 22:00 (hdg), sector 25712014
end_request: I/O error, dev 22:00 (hdg), sector 25712016
inserting floppy driver for 2.4.17-r5
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
VFS: Disk change detected on device fd(2,0)

Comment 5 George Plymale 2002-03-05 17:43:42 UTC
Here is a fix for the problem with the HPT372 from ata that should work:

ide-pci.c: (find the hpt_fix_up and look for the switch statement)

  static void __init hpt366_device_order_fixup (struct pci_dev *dev, 
ide_pci_device_t *d)
  {
         struct pci_dev *dev2 = NULL, *findev;
         ide_pci_device_t *d2;
         unsigned char pin1 = 0, pin2 = 0;
         unsigned int class_rev;
 -       char *chipset_names[] = 
{"HPT366", "HPT366", "HPT368", "HPT370", "HPT370A"};
 +       char *chipset_names[] = 
{"HPT366", "HPT366", "HPT368", "HPT370", "HPT370A", "HPT372"};
         if (PCI_FUNC(dev->devfn) & 1)
                 return;
 @@ -839,6 +963,7 @@
         strcpy(d->name, chipset_names[class_rev]);
         switch(class_rev) {
 +               case 5:
                 case 4:
                 case 3: printk("%s: IDE controller on PCI bus %02x dev %
02x\n",
 d->name, dev->bus->number, dev->devfn);
Comment 6 George Plymale 2002-03-07 08:36:22 UTC
Hey, interestingly it appears that patch-2.4.19-pre2-ac3 has the HPT372 patch 
previously posted in it now.  Glad to see it "officially" added!

http://www.kernel.org/diff/diffview.cgi?css=%2Fdiff%2Fdiff.css;file=%2Fpub%
2Flinux%2Fkernel%2Fpeople%2Falan%2Flinux-2.4%2F2.4.19%2Fpatch-2.4.19-pre2-
ac3.gz;z=116

Search for HPT372 to see it.
Comment 7 Adam Schrotenboer 2002-03-21 08:53:17 UTC
*** Bug 1275 has been marked as a duplicate of this bug. ***
Comment 8 George Plymale 2002-03-21 20:27:28 UTC
Hey, I apologize, but this bug is not closed.  I closed it before it was 
completely resolved, thinking that ata had the entire solution.  Even after 
this patch it is still giving the DMA issues reported previously.  So this 
issue is not closed and I do not have hopes of it being closed soon due to the 
lack of response from the developers for these modules.
Comment 9 Jason Draugluin Ritchie 2002-03-29 20:02:46 UTC
Jack Kolesar at www.amdpower.com just reviewed a mobo with hpt372 using 
gentoo.  He was able to get the controller to be reliable by turning off dma 
with hdparm.  It was really slow.

From the review:

<blockquote>
Using HDParm, I was able to get the drives to a stable condition by turning off 
DMA, setting UmaskIRQ to 0, and setting the drive to 32 bit mode. I did this by 
issuing "hdparm -c1d0u0m16 /dev/hde /dev/hdg". This made the RAIDed drives  
workable and stable for an installation.
</blockquote>


The informative page is:
http://www.amdpower.com/sections.php4?op=viewarticle&artid=72
Comment 10 George Plymale 2002-03-29 23:33:42 UTC
Ata has explained that he has fixed some thing which should be in the most 
recent ac patches for kernel 2.4.19.  I'm going to give it a shot, but ata 
also said there are AT LEAST three different versions of the HPT372, which 
presents a problem.  He may need some assistance from some of us with 
different versions so that he can find a universal solution.

Here's his recent e-mail to me from 24 March 2002:
---
I have the HPT374 completed less the auto-dma downgrade sync.

HPT372 comes in at least three flavors.

So until I can poke each or find one of each for a poor soul the test.
I do not feel that confidendt; however ac5/6 should have it in there now.
---
Comment 11 Michael Cohen (RETIRED) gentoo-dev 2002-09-02 18:56:33 UTC
Pretty old bug. I'm pretty sure that these chipsets work but these things are
best solved upstream as it is...