Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just recently installed Red Hat ES 4 on a NAS server I've built and
I'm having problems with the DMA setup on ide0.
First things first, system configuration:
(1) 80G SATA Seagate Barracuda drive installed on ide0 master
(1) ATAPI cdrom drive on ide1 master
With this configuration, and the 2.6.9-11.ELsmp that comes with the
current install of RHES4, the ata_piix driver is used properly and I can
enable DMA for the SATA drive (didn't check the IDE, don't care).
So I add Areca SATA RAID card and add drivers into the latest kernel
2.6.13 and compile everything no problem.
Now when I boot, the E-IDE driver loads first:
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
hda: ST380817AS, ATA DISK drive
Probing IDE interface ide1...
hdc: CD-224E, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 1024KiB
hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=16383/255/63
hda: cache flushes supported
hda: hda1 hda2 hda3 hda4 < hda5 >
hdc: ATAPI 24X CD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
ACPI: PCI Interrupt 0000:03:0e.0[A] -> GSI 56 (level, low) -> IRQ 177
ARECA RAID: 64BITS PCI BUS DMA ADDRESSING SUPPORTED
scsi0 : ARECA ARC1120 PCI-X 8 PORTS SATA RAID CONTROLLER (RAID6-ENGINE Inside)
Driver Version 1.20.00.07
Vendor: Areca Model: ARC-1120-VOL#00 Rev: R001
Type: Direct-Access ANSI SCSI revision: 03
arcmsr device major number 254
SCSI device sda: 1464843264 512-byte hdwr sectors (750000 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 1464843264 512-byte hdwr sectors (750000 MB)
SCSI device sda: drive cache: write back
sda: sda1
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
then later:
libata version 1.12 loaded.
ata_piix version 1.04
ata_piix: combined mode detected
ACPI: PCI Interrupt 0000:00:1f.2[A] -> GSI 18 (level, low) -> IRQ 185
ata: 0x1f0 IDE port busy
ata: 0x170 IDE port busy
ata_piix: probe of 0000:00:1f.2 failed with error -16
How can I prevent the E-IDE driver from loading? It's really affecting
the performance of the 80G SATA drive because I can't enable DMA:
$ hdparm -I /dev/hda
/dev/hda:
ATA device, with non-removable media
Model Number: ST380817AS
Serial Number: 4MR24ENF
Firmware Revision: 3.42
Standards:
Used: ATA/ATAPI-6 T13 1410D revision 2
Supported: 6 5 4 3
Configuration:
Logical max current
cylinders 16383 65535
heads 16 1
sectors/track 63 63
--
CHS current addressable sectors: 4128705
LBA user addressable sectors: 156301488
LBA48 user addressable sectors: 156301488
device size with M = 1024*1024: 76319 MBytes
device size with M = 1000*1000: 80026 MBytes (80 GB)
Capabilities:
LBA, IORDY(can be disabled)
bytes avail on r/w long: 4 Queue depth: 32
Standby timer values: spec'd by Standard, no device specific
minimum
R/W multiple sector transfer: Max = 16 Current = 16
Recommended acoustic management value: 254, current value: 0
DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4 udma5
udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=240ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* READ BUFFER cmd
* WRITE BUFFER cmd
* Host Protected Area feature set
* Look-ahead
* Write cache
* Power Management feature set
Security Mode feature set
* SMART feature set
* FLUSH CACHE EXT command
* Mandatory FLUSH CACHE command
* Device Configuration Overlay feature set
* 48-bit Address feature set
SET MAX security extension
* DOWNLOAD MICROCODE cmd
* SMART self-test
* SMART error logging
Security:
Master password revision code = 65534
supported
not enabled
not locked
frozen
not expired: security count
not supported: enhanced erase
Checksum: correct
/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
using_dma = 0 (off)
$ hdparm -t /dev/hda
/dev/hda:
Timing buffered disk reads: 20 MB in 3.32 seconds = 6.02 MB/sec
This machine has the 82801FBM (ICH6M) SATA controller, and I've read
about the problems with SATA and PATA drives on the same system, but I'm
wondering if I'm overlooking something here because I WASN'T having this
problem when it was just the SATA drive and ATAPI CD-ROM?
Originally posted by CyberIron I just recently installed Red Hat ES 4 on a NAS server I've built and
I'm having problems with the DMA setup on ide0.
First things first, system configuration:
(1) 80G SATA Seagate Barracuda drive installed on ide0 master
(1) ATAPI cdrom drive on ide1 master
Usually (depends on bios) when a SATA disk is in "SATA mode" (or "native mode" or whatever) it is recognised as ide2+
Are you sure that it is not in "IDE mode" in BIOS ?
Quote:
Originally posted by CyberIron With this configuration, and the 2.6.9-11.ELsmp that comes with the
current install of RHES4, the ata_piix driver is used properly and I can
enable DMA for the SATA drive (didn't check the IDE, don't care).
Is the disk recognised as /dev/sda ?
DMA should be enabled by default.
Quote:
Originally posted by CyberIron So I add Areca SATA RAID card and add drivers into the latest kernel
2.6.13 and compile everything no problem.
Now when I boot, the E-IDE driver loads first:
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
hda: ST380817AS, ATA DISK drive
libata version 1.12 loaded.
ata_piix version 1.04
ata_piix: combined mode detected
ACPI: PCI Interrupt 0000:00:1f.2[A] -> GSI 18 (level, low) -> IRQ 185
ata: 0x1f0 IDE port busy
ata: 0x170 IDE port busy
ata_piix: probe of 0000:00:1f.2 failed with error -16
There is an option that says to use ide support for sata which conflicts with libata.
Check your .config file. When you compiled your kernel did you enable "CONFIG_BLK_DEV_IDE_SATA" ?
Originally posted by CyberIron How can I prevent the E-IDE driver from loading? It's really affecting
the performance of the 80G SATA drive because I can't enable DMA
Add "ide0=noprobe" to the kernel parameters (eg. in /etc/grub.conf). This
prevents the compiled-in IDE driver from detecting your controller and leave
the way free for the SATA module loaded in initrd.
Thank you for the reply. I was unaware of the "0 reply" feature, and will take heed of it in the future.
I have scoured the net regarding my error, but it always seems to come up without solid answers.
In all cases the drives in question are either SCSI or SATA. Most of the replys have to do with compiling a fresh kernel with SCSI and SATA support built in, rather than modulals. This doesn't really apply to me though, as I have installed off a live CD. Am I doomed?
Seagate SATA drives and SATA controllers do not mix well. I mean enabling DMA with a SATA Seagate drive is a pain. I suggest IDE o SATA drives from Western Digital or Hitachi. Western Digital and Hitachi drives are the best for a data server that needs low accessing times or for a desktop system.
You can make the software for the controller be a module. If you want to automatically mount it at boot up, you have to include it in the ramdisk file or initrd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.