View previous topic :: View next topic |
Author |
Message |
westam n00b

Joined: 13 Jul 2005 Posts: 8
|
Posted: Sat Jul 30, 2005 8:23 am Post subject: R40E HDIO_SET_DMA failed: Operation not permitted |
|
|
I cannot set DMA ...
/dev/hda:
setting 32-bit IO_support flag to 1
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
IO_support = 1 (32-bit)
using_dma = 0 (off)
keepsettings = 0 (off)
Ive worked thru a number of googles with no success. My kernel options are
grep DMA /usr/src/linux/.config
CONFIG_GENERIC_ISA_DMA=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_IEEE1394_SBP2_PHYS_DMA is not set
hdparm info ....
hdparm -I /dev/hda
/dev/hda:
ATA device, with non-removable media
Model Number: FUJITSU MHT2030AT
Serial Number: NN32T3A138H9
Firmware Revision: 849B
Standards:
Used: ATA/ATAPI-6 T13 1410D revision 3a
Supported: 6 5 4 3
Configuration:
Logical max current
cylinders 16383 16383
heads 15 15
sectors/track 63 63
--
CHS current addressable sectors: 15481935
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(cannot be disabled)
bytes avail on r/w long: 4 Queue depth: 1
Standby timer values: spec'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 16 Current = 16
Advanced power management level: 128 (0x80)
Recommended acoustic management value: 254, current value: 254
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
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
* Mandatory FLUSH CACHE command
* Device Configuration Overlay feature set
* Automatic Acoustic Management feature set
SET MAX security extension
Power-Up In Standby feature set
* Advanced Power Management feature set
* 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
30min for SECURITY ERASE UNIT.
HW reset results:
CBLID- above Vih
Device num = 0 determined by the jumper
Checksum: correct
lspci ...
lspci
0000:00:00.0 Host bridge: ATI Technologies Inc RS200/RS200M AGP Bridge [IGP 340M] (rev 02)
0000:00:01.0 PCI bridge: ATI Technologies Inc PCI Bridge [IGP 340M]
0000:00:02.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
0000:00:03.0 Modem: ALi Corporation M5457 AC'97 Modem Controller
0000:00:04.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link Controller Audio Device (rev 02)
0000:00:06.0 Bridge: ALi Corporation M7101 Power Management Controller [PMU]
0000:00:07.0 ISA bridge: ALi Corporation M1533 PCI to ISA Bridge [Aladdin IV]
0000:00:0b.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5901 100Base-TX (rev 01)
0000:00:0c.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller
0000:00:0f.0 IDE interface: ALi Corporation M5229 IDE (rev c4)
0000:01:05.0 VGA compatible controller: ATI Technologies Inc Radeon IGP 330M/340M/350M
0000:02:00.0 Network controller: Texas Instruments ACX 100 22Mbps Wireless Interface
any suggestions very welcomed |
|
Back to top |
|
 |
Raistlin l33t


Joined: 17 May 2004 Posts: 691 Location: Boston, MA
|
Posted: Sat Jul 30, 2005 12:47 pm Post subject: |
|
|
Hi,
did you compile the right ide-chipset for your motherboard into the kernel?
cheers, R. _________________ Zwei Was Eins Initially
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." |
|
Back to top |
|
 |
westam n00b

Joined: 13 Jul 2005 Posts: 8
|
Posted: Sat Jul 30, 2005 1:38 pm Post subject: |
|
|
Raistlin wrote: | Hi,
did you compile the right ide-chipset for your motherboard into the kernel?
cheers, R. |
I could not see the IDE chipset for the Ali controller in the kernel options. So maybe not?
Thanks |
|
Back to top |
|
 |
crazycat l33t


Joined: 26 Aug 2003 Posts: 838 Location: Hamburg, Germany
|
Posted: Sat Jul 30, 2005 1:50 pm Post subject: |
|
|
Quote: |
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
|
dma is already on. |
|
Back to top |
|
 |
westam n00b

Joined: 13 Jul 2005 Posts: 8
|
Posted: Sat Jul 30, 2005 4:44 pm Post subject: |
|
|
crazycat wrote: | Quote: |
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
|
dma is already on. |
I did wonder about that, but wasnt sure when the -ve response came back from hdparm
Thanks |
|
Back to top |
|
 |
CRIdpath n00b

Joined: 18 Jul 2005 Posts: 8
|
Posted: Tue Aug 02, 2005 5:28 pm Post subject: |
|
|
I checked my HDPARM info as well and it tells me that DMA is enabled like as in the 2nd previous post, however, I'm stll getting the "HDPARM operation not permitted" when trying to set enable DMA, there is something wrong because my DVD's play choppy and the FAQ's tell me DMA is not enable if this happens...HELP! _________________ Chris Ridpath |
|
Back to top |
|
 |
CRIdpath n00b

Joined: 18 Jul 2005 Posts: 8
|
Posted: Tue Aug 02, 2005 6:22 pm Post subject: |
|
|
Upon further research, I discoverd another forum that told me to diable the generic IDE settings in the config. This fixed my HDPARM error and now DVD's run smooth:D Thanks _________________ Chris Ridpath |
|
Back to top |
|
 |
westam n00b

Joined: 13 Jul 2005 Posts: 8
|
Posted: Tue Aug 02, 2005 7:56 pm Post subject: |
|
|
hhhmm, I tried this but the system would not boot afterwards. I always keep a knoppix CD nearby so I booted that and replaced the kernel on /boot. While I was in knoppix I tried hdparm -d 1 /dev/hda and that worked. So there must be something wrong with my config for the R40E (IBM Thinkpad) |
|
Back to top |
|
 |
spindle Apprentice

Joined: 01 Dec 2003 Posts: 245
|
Posted: Sat Jun 16, 2007 10:43 pm Post subject: |
|
|
I had this same DMA problem for a while. I was also experiencing odd read errors on cd's/dvd's sometimes from my backup media from the system but they were reading correctly on my windows system. Disabling CONFIG_IDE_GENERIC in the kernel fixed both of these issues for me. I think the trick of this is that you have to have your specific IDE controler selected in the kernel for this to work. On my motherboard, ABIT GD8, these were the PCI controller for Intel PIIXn for the "on board" controller and one for my Promise PDC20268 PCI IDE card, which I already had both configured before to get them to work at all but the generic IDE one was messing up the DMA thing. |
|
Back to top |
|
 |
|