Skip to contentSkip to conversation

kernel 2.6.3 hdparm : HDIO_SET_DMA failed: Operation not permitted

DISCUSSION François Chenais 2 participants 3 messages Mar 5, 2004 – Mar 8, 2004 libata

lore
Share & tools
lore
#0 lore raw

Hello,

Since I use kernel 2.6.3, my disk has very low performance If I do nothing during about 30 sec, the system takes about 3 sec before reaction because the disk seems awakened.

So I asked around me how to tune it using hdparm but i have the following errors when setting on dma (logs bellow).

Some persons around me have the same feeling of lowest performances.

Perhaps my kernel .config has some bad values because I have no experience in disk tuning (see attached file).

I use
- debian sid on a NEC VERSA L320 laptop with a 'home built' kernel.
- preemptive mode
- ACPI

Thanks a lot in Advance if you can help me Hope that can help linux development. Sorry if I've done a mistake in my kernel conf or if I've chosen the bad mailing list.

François

-----------------------------------------------------------------------
hdparm -d1 /dev/hda
-----------------------------------------------------------------------
/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)

-----------------------------------------------------------------------
My Disk's informations
-----------------------------------------------------------------------
/dev/hda:

ATA device, with non-removable media

        Model Number:       TOSHIBA MK3017GAP                       
        Serial Number:      224A3455T           
        Firmware Revision:  A0.04 A 

Standards:
Supported: 5 4 3 2
Likely used: 6
Configuration:

        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:   58605120
        device size with M = 1024*1024:       28615 MBytes
        device size with M = 1000*1000:       30005 MBytes (30 GB)

Capabilities:
LBA, IORDY(can be disabled)
bytes avail on r/w long: 46 Queue depth: 1
Standby timer values: spec'd by Vendor, no device specific
minimum
R/W multiple sector transfer: Max = 16 Current = 16 Advanced power management level: unknown setting (0x0080)
DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3
*udma4
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* NOP cmd
* 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
SET MAX security extension
* Advanced Power Management feature set
Security:
Master password revision code = 65534
supported
not enabled
not locked
not frozen
not expired: security count
not supported: enhanced erase
36min for SECURITY ERASE UNIT.
HW reset results:
CBLID- above Vih
Device num = 0 determined by the jumper
Checksum: correct
-----------------------------------------------------------------------

Signature · 4 lines
Debian SID
Linux tanna 2.6.3 #1 Tue Feb 24 03:06:51 CET 2004 i686 GNU/Linux
Linux Counter #59413
PGP fingerprint : 9AFA 15EC 96C9 F607 EBC1  DD41 70C5 F0E0 25A5 105B
#1 lore raw
Quoted 1 line · François Chenais

Hello,

Hi,

Quoted 10 lines

Since I use kernel 2.6.3, my disk has very low performance If I do nothing during about 30 sec, the system takes about 3 sec before reaction because the disk seems awakened.

So I asked around me how to tune it using hdparm but i have the following errors when setting on dma (logs bellow).

Some persons around me have the same feeling of lowest performances.

Quoted 7 lines

Perhaps my kernel .config has some bad values because I have no experience in disk tuning (see attached file).

I use
- debian sid on a NEC VERSA L320 laptop with a 'home built' kernel.
- preemptive mode
- ACPI

CONFIG_BLK_DEV_PIIX is not set in your .config and due to the fact that NEC VERSA L320 has Intel IDE chipset you need to set it to 'y'.

Regards,
Bartlomiej

#2 lore raw
Quoted 2 lines · Bartlomiej Zolnierkiewicz

CONFIG_BLK_DEV_PIIX is not set in your .config and due to the fact that NEC VERSA L320 has Intel IDE chipset you need to set it to 'y'.

It's better with this option, hdparm works now. Thanks a lot.

/dev/hda:

 multcount    = 16 (on)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 58140/16/63, sectors = 58605120, start = 0

But I still have a problem of latency when the disk seems starting after about 30 sec of inactivity. It's strange. I don't find any disk option in the ACPI configuration entries. Or perhaps it's the ACPI_SLEEP experimental option. I'll try without it.

François

Signature · 4 lines
Debian SID
Linux tanna 2.6.3 #1 Tue Feb 24 03:06:51 CET 2004 i686 GNU/Linux
Linux Counter #59413
PGP fingerprint : 9AFA 15EC 96C9 F607 EBC1  DD41 70C5 F0E0 25A5 105B