Joshua Kwan wrote:
firesong:/home/joshk# hdparm -t /dev/hda
/dev/hda: Timing buffered disk reads: 62 MB in 3.03 seconds = 20.46 MB/sec
I would expect to do better than that LX chipset. Pentium II 233 and I can get around 25 Mbytes/sec on drives from about three years go.
using_dma = 1 (on)
So we've established that your controller doesn't seem to want to do DMA. You seem to be using the piix driver, correct? I do, too...
Could you post a dmesg from 2.4.27-1-686, and also try some older kernels to see if this is a regression and not a bug that has always been there? (Hint: kernel-image-2.4.26-1-686)
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=270199
Yeah.
Behold piix.c, 2.4.27:
/* UDMA 33 capable */ case PCI_DEVICE_ID_INTEL_82371AB: <--- this is you case PCI_DEVICE_ID_INTEL_82443MX_1: case PCI_DEVICE_ID_INTEL_82451NX: case PCI_DEVICE_ID_INTEL_82801AB_1: return 1;
So it SHOULD be working.
Also attach the output from cat /proc/ide/piix.
Note, if it doesn't exist, piix refused to handle your device, which sounds like the older problem (except that it's fixed now!)
Well in view of this
[EMAIL PROTECTED]:~$ ls -go $(find /proc/ide/ -type f)
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/drivers
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide0/channel
-rw-r--r-- 1 0 Sep 7 18:06 /proc/ide/ide0/config
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide0/hda/cache
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide0/hda/capacity
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide0/hda/driver
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide0/hda/geometry
-r-------- 1 0 Sep 7 18:06 /proc/ide/ide0/hda/identify
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide0/hda/media
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide0/hda/model
-rw------- 1 0 Sep 7 18:06 /proc/ide/ide0/hda/settings
-r-------- 1 0 Sep 7 18:06 /proc/ide/ide0/hda/smart_thresholds
-r-------- 1 0 Sep 7 18:06 /proc/ide/ide0/hda/smart_values
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide0/mate
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide0/model
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide1/channel
-rw-r--r-- 1 0 Sep 7 18:06 /proc/ide/ide1/config
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide1/hdc/capacity
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide1/hdc/driver
-r-------- 1 0 Sep 7 18:06 /proc/ide/ide1/hdc/identify
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide1/hdc/media
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide1/hdc/model
-rw------- 1 0 Sep 7 18:06 /proc/ide/ide1/hdc/settings
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide1/mate
-r--r--r-- 1 0 Sep 7 18:06 /proc/ide/ide1/model
[EMAIL PROTECTED]:~$
I assume you don't want me to try the older kernels? Installing kernels on this box is a bitch.
I've got 2.6.8 here to see if it can find the drive.
btw I've not seen anything anywhere that tells me whether I have an 80-pin cable. I have, but I'd like to see that it's recognised.
Linux version 2.4.27-1-686 ([EMAIL PROTECTED]) (gcc version 3.3.4 (Debian 1:3.3.4-9)) #1 Fri Sep 3 06:28:00 UTC 2004 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 000000000009ec00 (usable) BIOS-e820: 000000000009ec00 - 00000000000a0000 (reserved) BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 0000000017ff0000 (usable) BIOS-e820: 0000000017ff0000 - 0000000017fff000 (ACPI data) BIOS-e820: 0000000017fff000 - 0000000018000000 (ACPI NVS) BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved) 0MB HIGHMEM available. 383MB LOWMEM available. On node 0 totalpages: 98288 zone(0): 4096 pages. zone(1): 94192 pages. zone(2): 0 pages. ACPI: RSDP (v000 Intel ) @ 0x000f7890 ACPI: RSDT (v001 Intel RSDT 0x00000000 INT 0x00000000) @ 0x17ffd5f6 ACPI: FADT (v001 Intel NL440BX 0x00000001 INT 0x000f4240) @ 0x17ffef8c ACPI: DSDT (v001 Intel Nitelt0 0x00000000 MSFT 0x01000005) @ 0x00000000 Kernel command line: root=/dev/sda2 ro vga=791 acpi=force Local APIC disabled by BIOS -- reenabling. Found and enabled local APIC! Initializing CPU#0 Detected 547.625 MHz processor. Console: colour dummy device 80x25 Calibrating delay loop... 1091.17 BogoMIPS Memory: 381832k/393152k available (1192k kernel code, 10928k reserved, 449k data, 116k 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: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 32768 (order: 5, 131072 bytes) Page-cache hash table entries: 131072 (order: 7, 524288 bytes) CPU: L1 I cache: 16K, L1 D cache: 16K CPU: L2 cache: 512K Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. CPU: After generic, caps: 0383fbff 00000000 00000000 00000000 CPU: Common caps: 0383fbff 00000000 00000000 00000000 CPU: Intel Pentium III (Katmai) stepping 03 Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking 'hlt' instruction... OK. POSIX conformance testing by UNIFIX 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 547.6478 MHz. ..... host bus clock speed is 99.5721 MHz. cpu: 0, clocks: 995721, slice: 497860 CPU0<T0:995712,T1:497840,D:12,S:497860,C:995721> mtrr: v1.40 (20010327) Richard Gooch ([EMAIL PROTECTED]) mtrr: detected mtrr type: Intel ACPI: Subsystem revision 20040326 PCI: PCI BIOS revision 2.10 entry at 0xfd994, last bus=1 PCI: Using configuration type 1 ACPI: IRQ9 SCI: Edge set to Level Trigger. ACPI: Interpreter enabled ACPI: Using PIC for interrupt routing ACPI: System [ACPI] (supports S0 S1 S4 S5) ACPI: PCI Root Bridge [PCI0] (00:00) PCI: Probing PCI hardware (bus 00) ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 7 9 10 *11 12 14 15) ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 7 9 10 11 12 14 15) *0, disabled. ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 7 9 10 11 12 14 15) *0, disabled. ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 7 9 *10 11 12 14 15) PCI: Probing PCI hardware ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11 ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10 PCI: Using ACPI for IRQ routing PCI: Cannot allocate resource region 4 of device 00:12.1 Limiting direct PCI/PCI transfers. Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd VFS: Disk quotas vdquot_6.5.1 devfs: v1.12c (20020818) Richard Gooch ([EMAIL PROTECTED]) devfs: boot_options: 0x0 pty: 256 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A ttyS01 at 0x02f8 (irq = 3) is a 16550A COMX: driver version 0.85 (C) 1995-1999 ITConsult-Pro Co. <[EMAIL PROTECTED]> RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize Initializing Cryptographic API NET4: Linux TCP/IP 1.0 for NET4.0 IP: routing cache hash table of 4096 buckets, 32Kbytes TCP: Hash tables configured (established 32768 bind 65536) Linux IP multicast router 0.06 plus PIM-SM RAMDISK: cramfs filesystem found at block 0 RAMDISK: Loading 4244 blocks [1 disk] into ram disk... |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/done. Freeing initrd memory: 4244k freed VFS: Mounted root (cramfs filesystem). Freeing unused kernel memory: 116k freed SCSI subsystem driver Revision: 1.00 sym53c8xx: at PCI bus 0, device 13, function 0 sym53c8xx: setting PCI_COMMAND_PARITY...(fix-up) sym53c8xx: 53c875 detected sym53c875-0: rev 0x26 on pci bus 0 device 13 function 0 irq 11 sym53c875-0: ID 7, Fast-20, Parity Checking scsi0 : sym53c8xx-1.7.3c-20010512 blk: queue d7fef274, I/O limit 4095Mb (mask 0xffffffff) Vendor: QUANTUM Model: ATLAS IV 9 WLS Rev: 0909 Type: Direct-Access ANSI SCSI revision: 03 blk: queue d7fef374, I/O limit 4095Mb (mask 0xffffffff) Vendor: QUANTUM Model: ATLAS IV 18 WLS Rev: 0909 Type: Direct-Access ANSI SCSI revision: 03 blk: queue d7fef474, I/O limit 4095Mb (mask 0xffffffff) vesafb: framebuffer at 0xf6000000, mapped to 0xd8850000, size 2048k vesafb: mode is 1024x768x16, linelength=2048, pages=0 vesafb: protected mode interface info at c000:2fc8 vesafb: scrolling: redraw vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0 Console: switching to colour frame buffer device 128x48 fb0: VESA VGA frame buffer device NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Attached scsi disk sdb at scsi0, channel 0, id 1, lun 0 sym53c875-0-<0,*>: FAST-5 WIDE SCSI 10.0 MB/s (200.0 ns, offset 16) SCSI device sda: 17942584 512-byte hdwr sectors (9187 MB) Partition check: /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3 p4 sym53c875-0-<1,*>: FAST-5 WIDE SCSI 10.0 MB/s (200.0 ns, offset 16) SCSI device sdb: 35885168 512-byte hdwr sectors (18373 MB) /dev/scsi/host0/bus0/target1/lun0: p1 Journalled Block Device driver loaded kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal Real Time Clock Driver v1.10f Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx hda: ST3120022A, ATA DISK drive hdc: Creative CD-ROM CD4832E, ATAPI CD/DVD-ROM drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ide1 at 0x170-0x177,0x376 on irq 15 hdc: attached ide-cdrom driver. hdc: ATAPI 44X CD-ROM drive, 128kB Cache Uniform CD-ROM driver Revision: 3.12 usb.c: registered new driver usbdevfs usb.c: registered new driver hub usb.c: registered new driver usbkbd usbkbd.c: :USB HID Boot Protocol keyboard driver ACPI: Power Button (FF) [PWRF] ACPI: Sleep Button (CM) [SLPB] kjournald starting. Commit interval 5 seconds EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal EXT3-fs: mounted filesystem with ordered data mode. kjournald starting. Commit interval 5 seconds EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,3), internal journal EXT3-fs: mounted filesystem with ordered data mode. kjournald starting. Commit interval 5 seconds EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,4), internal journal EXT3-fs: mounted filesystem with ordered data mode. kjournald starting. Commit interval 5 seconds EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,17), internal journal EXT3-fs: mounted filesystem with ordered data mode. Adding Swap: 262136k swap-space (priority -1) eepro100.c:v1.09j-t 9/29/99 Donald Becker http://www.scyld.com/network/eepro100.html eepro100.c: $Revision: 1.36 $ 2000/11/17 Modified by Andrey V. Savochkin <[EMAIL PROTECTED]> and others eth0: Intel Corp. 82557/8/9 [Ethernet Pro 100], 00:90:27:73:FB:AD, IRQ 10. Receiver lock-up bug exists -- enabling work-around. Board assembly 677173-001, Physical connectors present: RJ45 Primary interface chip i82555 PHY #1. General self-test: passed. Serial sub-system self-test: passed. Internal registers self-test: passed. ROM checksum self-test: passed (0x24c9f043). Receiver lock-up workaround activated. pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: acpi_shpchprm:\_SB_.PCI0 evaluate _BBN fail=0x5 shpchp: acpi_shpchprm:get_device PCI ROOT HID fail=0x5 pci_hotplug: PCI Hot Plug PCI Core version: 0.5 pciehp: acpi_pciehprm:\_SB_.PCI0 evaluate _BBN fail=0x5 pciehp: acpi_pciehprm:get_device PCI ROOT HID fail=0x5 uhci.c: USB Universal Host Controller Interface driver v1.1 uhci.c: USB UHCI at I/O 0x1080, IRQ 10 usb.c: new USB bus registered, assigned bus number 1 hub.c: USB hub found hub.c: 2 ports detected ACPI: Processor [CPU0] (supports C1) parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE] parport0: irq 7 detected lp0: using parport0 (polling). Installing knfsd (copyright (C) 1996 [EMAIL PROTECTED]). hda: attached ide-disk driver. hda: 234441648 sectors (120034 MB) w/2048KiB Cache, CHS=14593/255/63 /dev/ide/host0/bus0/target0/lun0: p1 sym53c875-0-<0,*>: FAST-5 WIDE SCSI 10.0 MB/s (200.0 ns, offset 16) sym53c875-0-<1,*>: FAST-5 WIDE SCSI 10.0 MB/s (200.0 ns, offset 16)