hpt374 driver

Asked by Paul Barron

I was running Breezy on a system with the folowing specs

MOBO AT7-MAX2
CPU AMD XP 2200
RAM 1GB
The mobo has a raid controller
Triones Technologies, Inc.
HPT374

ide 0
hda: Maxtor 6E040L0, ATA DISK drive
hdb: WDC WD200BB-75CLB0, ATA DISK drive
ide 1
hdc: LG DVD-ROM DRD-8160B, ATAPI CD/DVD-ROM drive
hdd: GENERIC CD-RW FREECOM24B, ATAPI CD/DVD-ROM drive

HPT 374 IDE Controler
I have two Seagate 73 GB drives as master and slave on ide3
(the mobo has two ide sockets IDE 3 and IDE 4)

After being so impressed by the usability and the compiz enhanced style of Gusty on my 64bit machine I decided to uprgrade
this one to Gusty also.

I now find that although bios sees the disks on IDE3 gusty does not see the disks (breezy did)
I have tried enabling and dissabling the controller in bios. I don't have a raid configured in bios, I was going to do that with ubuntu.
I installed Ubuntustudio on a second hard drive and get the same results.

on doing a lsmod I see hpt366 is loaded.

I did try compiling a driver as per
http://www.highpoint-tech.com/USA/bios_rr454.htm#OpenSourcedriver

This did not produce the files reqiured.

I have read that the kernel in gusty supports hpt374, so what do I have to do?
I hope to use this as a demo machine so any help would be greatly appreciated.

Here are the relevent logs from syslog,dmesg,lsmod

waiting in hope

Paul

 syslog with PCI controller enabled i Bios

Oct 28 10:11:01 studio kernel: [ 50.414781] HPT374: IDE controller at PCI slot 0000:00:13.0
Oct 28 10:11:01 studio kernel: [ 50.414806] ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 18 (level, low) -> IRQ 21
Oct 28 10:11:01 studio kernel: [ 50.414820] HPT374: chipset revision 7
Oct 28 10:11:01 studio kernel: [ 50.414834] HPT374: DPLL base: 48 MHz, f_CNT: 139, assuming 33 MHz PCI
Oct 28 10:11:01 studio kernel: [ 50.419262] HPT374: using 50 MHz DPLL clock
Oct 28 10:11:01 studio kernel: [ 50.419368] HPT374: 100%% native mode on irq 21
Oct 28 10:11:01 studio kernel: [ 50.419380] ide2: BM-DMA at 0xd800-0xd807, BIOS settings: hde:pio, hdf:pio
Oct 28 10:11:01 studio kernel: [ 50.419404] ide3: BM-DMA at 0xd808-0xd80f, BIOS settings: hdg:pio, hdh:pio
Oct 28 10:11:01 studio kernel: [ 50.419426] ACPI: PCI Interrupt 0000:00:13.1[A] -> GSI 18 (level, low) -> IRQ 21
Oct 28 10:11:01 studio kernel: [ 50.419441] HPT374: no clock data saved by BIOS
Oct 28 10:11:01 studio kernel: [ 50.549194] HPT374: DPLL base: 48 MHz, f_CNT: 144, assuming 33 MHz PCI
Oct 28 10:11:01 studio kernel: [ 50.553688] HPT374: using 50 MHz DPLL clock
Oct 28 10:11:01 studio kernel: [ 50.553799] HPT374: too many IDE interfaces, no room in table
Oct 28 10:11:01 studio kernel: [ 50.553804] HPT374: too many IDE interfaces, no room in table
Oct 28 10:11:01 studio kernel: [ 50.553806] HPT374: neither IDE port enabled (BIOS)
Oct 28 10:11:01 studio kernel: [ 50.553816] Probing IDE interface ide2...
Oct 28 10:11:01 studio kernel: [ 51.072084] Probing IDE interface ide3...

dmesg
[ 50.414781] HPT374: IDE controller at PCI slot 0000:00:13.0
[ 50.414806] ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 18 (level, low) -> IRQ 21
[ 50.414820] HPT374: chipset revision 7
[ 50.414834] HPT374: DPLL base: 48 MHz, f_CNT: 139, assuming 33 MHz PCI
[ 50.419262] HPT374: using 50 MHz DPLL clock
[ 50.419368] HPT374: 100% native mode on irq 21
[ 50.419380] ide2: BM-DMA at 0xd800-0xd807, BIOS settings: hde:pio, hdf:pio
[ 50.419404] ide3: BM-DMA at 0xd808-0xd80f, BIOS settings: hdg:pio, hdh:pio
[ 50.419426] ACPI: PCI Interrupt 0000:00:13.1[A] -> GSI 18 (level, low) -> IRQ 21
[ 50.419441] HPT374: no clock data saved by BIOS
[ 50.549194] HPT374: DPLL base: 48 MHz, f_CNT: 144, assuming 33 MHz PCI
[ 50.553688] HPT374: using 50 MHz DPLL clock
[ 50.553799] HPT374: too many IDE interfaces, no room in table
[ 50.553804] HPT374: too many IDE interfaces, no room in table
[ 50.553806] HPT374: neither IDE port enabled (BIOS)
[ 50.553816] Probing IDE interface ide2...
[ 51.072084] Probing IDE interface ide3...

lsmod
...
hpt366 17664 0 [permanent]
via82cxxx 10500 0 [permanent]
uhci_hcd 26512 0
ehci_hcd 36108 0
ohci1394 37040 0
ide_core 118980 4 ide_cd,ide_d12isk,hpt366,via82cxxx
...

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Paul Barron
Solved:
Last query:
Last reply:
Revision history for this message
n3m3sis (nem2killu2) said :
#1

Ha! This same problem has caused me weeks of sleepless nights. I have the exact same dmesgs and so far no answer is forthcoming. In my case everthing worked fine from the feisty live dvd but as soon as installed to a brand new 160gb hard drive, I got a freeze-up at the ubuntu splash screen that could only be solved be disconnnecting the sata drive connected to the HPT374 interface(or connnecting it to ports 3 or 4 on the card) and then rebooting. Surely someone must know why this is?

Revision history for this message
Paul Barron (paul-barron) said :
#2

I tried the Breezy live CD and on loading gparted I can see the disks /dev/hdi and /dev/hdj it also seems to load the driver for HPT374
here is an excerpt from dmesg (breezy) how do I make this work in Gusty?

[17179579.944000] hdb1 hdb2 < hdb5 >
[17179580.264000] HPT374: IDE controller at PCI slot 0000:00:13.0
[17179580.264000] ACPI: PCI Interrupt 0000:00:13.0[A] -> GSI 18 (level, low) -> IRQ 177
[17179580.264000] HPT374: chipset revision 7
[17179580.264000] HPT374: 100% native mode on irq 177
[17179580.264000] HPT37X: using 33MHz PCI clock
[17179580.264000] ide2: BM-DMA at 0xd800-0xd807, BIOS settings: hde:pio, hdf:pio
[17179580.264000] HPT37X: using 33MHz PCI clock
[17179580.264000] ide3: BM-DMA at 0xd808-0xd80f, BIOS settings: hdg:pio, hdh:pio
[17179580.264000] ACPI: PCI Interrupt 0000:00:13.1[A] -> GSI 18 (level, low) -> IRQ 177
[17179580.264000] HPT37X: using 33MHz PCI clock
[17179580.264000] ide4: BM-DMA at 0xec00-0xec07, BIOS settings: hdi:DMA, hdj:DMA
[17179580.264000] HPT37X: using 33MHz PCI clock
[17179580.264000] ide5: BM-DMA at 0xec08-0xec0f, BIOS settings: hdk:pio, hdl:pio
[17179580.264000] Probing IDE interface ide2...
[17179580.832000] Probing IDE interface ide3...
[17179581.400000] Probing IDE interface ide4...
[17179581.688000] hdi: ST380021A, ATA DISK drive
[17179581.968000] hdj: ST380021A, ATA DISK drive
[17179582.024000] ide4 at 0xdc00-0xdc07,0xe002 on irq 177

Revision history for this message
Jim Qode (jimqode) said :
#3

Alternate install CD comes with more IDE controller drivers. You can try installing with it.

Revision history for this message
Max Waterman (davidmaxwaterman+launchpad) said :
#4

I have this same problem with gutsy and I installed using the alternate cd. I'm am switching from FC6 where it worked fine. I have 4 drives on it, each one is a master (no slaves), and they each form part of a RAID5 array. Fortunately, I have a couple of spare sata drives in the array and it's using one of those instead - taking forever to rebuild though.

I'll hazard a guess it'll fail to add a different each time I boot, in which case my array will be continually rebuilding itself, until it runs out of spare drives...then the filesystem will be corrupted.

I'd love it if someone has a solution to this...

Max.

Revision history for this message
Paul Barron (paul-barron) said :
#5

had to install and compile a new kernel
2.6.23
previous kernel was 2.6.22-14

During the process there were a lot of options I didn't understand but choosing defaults seemed to work
During the compile setup I made sure
CONFIG_IDE_MAX_HWIFS=8

This action was prompted by this post.
https://bugs.launchpad.net/ubuntu/+source/hal/+bug/159397
 JoelOl75 wrote on 2007-11-14: (permalink)

"My bet would be on the fact that IDE devices are mapped as SATA and the kernel is compiled with CONFIG_IDE_MAX_HWIFS=4 and your card has 4 ports + the IDE hard drive and this might explain why you cannot see your first 2 ports (mapped over by the IDE channel?) I would place a good bet on it that if you change the value of CONFIG_IDE_MAX_HWIFS to "8" and recompile your kernel all your problems would automagically dissappear. This low value is a joke with todays hardware and even the server install, where you would expect to find a large # of drives installed in a single computer, defaults to only 4."

This does indeed seem to be the case as the drives are now visible and assessable, I can't use the raid facility on the controller, but I have the drives as RAID 0 using dmraid, and that is working.

I now have to check the list of files for update to deselect all upgrades that have the word kernel in the package name.

This seems a lot of work to get the system to see a couple of drives, especially when they were available in the previous release of ubuntu.

I hope this is fixed in 8.1

Now dmesg looks like

[ 71.405353] VP_IDE: IDE controller at PCI slot 0000:00:11.1
[ 71.405391] ACPI: PCI Interrupt 0000:00:11.1[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
[ 71.405399] PCI: VIA VLink IRQ fixup for 0000:00:11.1, from 255 to 11
[ 71.405426] VP_IDE: chipset revision 6
[ 71.405429] VP_IDE: not 100% native mode: will probe irqs later
[ 71.405440] VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci0000:00:11.1
[ 71.405450] ide0: BM-DMA at 0xbc00-0xbc07, BIOS settings: hda:DMA, hdb:DMA
[ 71.405465] ide1: BM-DMA at 0xbc08-0xbc0f, BIOS settings: hdc:DMA, hdd:DMA
[ 71.405475] Probing IDE interface ide0...
[ 71.820941] hda: Maxtor 6E040L0, ATA DISK drive
[ 72.100193] hdb: WDC WD200BB-75CLB0, ATA DISK drive
[ 72.156685] hda: selected mode 0x46
[ 72.157645] hdb: selected mode 0x45
[ 72.158555] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[ 72.619791] ieee1394: Host added: ID:BUS[0-00:1023] GUID[00508d0000fe4f39]
[ 74.294467] Probing IDE interface ide1...
[ 75.158434] hdc: LG DVD-ROM DRD-8160B, ATAPI CD/DVD-ROM drive
[ 75.941070] hdd: GENERIC CD-RW FREECOM24B, ATAPI CD/DVD-ROM drive
[ 75.997815] hdc: selected mode 0x42
[ 76.027195] hdd: selected mode 0x42
[ 76.027382] ide1 at 0x170-0x177,0x376 on irq 15
[ 76.033642] HPT374: IDE controller at PCI slot 0000:00:13.0
[ 76.034132] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
[ 76.034136] PCI: setting IRQ 10 as level-triggered
[ 76.034142] ACPI: PCI Interrupt 0000:00:13.0[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
[ 76.034155] HPT374: chipset revision 7
[ 76.034167] HPT374: DPLL base: 48 MHz, f_CNT: 136, assuming 33 MHz PCI
[ 76.038590] HPT374: using 50 MHz DPLL clock
[ 76.038697] HPT374: 100% native mode on irq 10
[ 76.038709] ide2: BM-DMA at 0xd800-0xd807, BIOS settings: hde:pio, hdf:pio
[ 76.038732] ide3: BM-DMA at 0xd808-0xd80f, BIOS settings: hdg:pio, hdh:pio
[ 76.038756] ACPI: PCI Interrupt 0000:00:13.1[A] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
[ 76.038772] HPT374: DPLL base: 48 MHz, f_CNT: 136, assuming 33 MHz PCI
[ 76.043190] HPT374: using 50 MHz DPLL clock
[ 76.043303] ide4: BM-DMA at 0xec00-0xec07, BIOS settings: hdi:DMA, hdj:DMA
[ 76.043323] ide5: BM-DMA at 0xec08-0xec0f, BIOS settings: hdk:pio, hdl:pio
[ 76.043338] Probing IDE interface ide2...
[ 76.608428] Probing IDE interface ide3...
[ 77.176819] Probing IDE interface ide4...
[ 77.463947] hdi: ST380021A, ATA DISK drive
[ 77.743723] hdj: ST380021A, ATA DISK drive
[ 77.800357] hdi: selected mode 0x45
[ 77.800589] hdj: selected mode 0x45
[ 77.800851] ide4 at 0xdc00-0xdc07,0xe002 on irq 10
[ 77.801295] Probing IDE interface ide5...

no problems :-)