Unsolved
This post is more than 5 years old
13 Posts
0
10368
August 13th, 2005 20:00
dma on /dev/dvd Latitude D810
root@kanlap1:/home/yazdzik# hdparm -d1 /dev/cdrom
/dev/cdrom:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
Dear Friends,
This obviously makes viewing or editing dvds impossible.
What gives?
root@kanlap1:/home/yazdzik# kudzu -p
-
class: OTHER
bus: PCI
detached: 0
driver: i2c-i801
desc: "Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller"
vendorId: 8086
deviceId: 266a
subVendorId: 1028
subDeviceId: 0186
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1f
pcifn: 3
-
class: OTHER
bus: PCI
detached: 0
driver: unknown
desc: "Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge"
vendorId: 8086
deviceId: 2641
subVendorId: 1028
subDeviceId: 0186
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1f
pcifn: 0
-
class: OTHER
bus: PCI
detached: 0
driver: hsfmc97ich
desc: "Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller"
vendorId: 8086
deviceId: 266d
subVendorId: 14f1
subDeviceId: 5423
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1e
pcifn: 3
-
class: OTHER
bus: PCI
detached: 0
driver: hw_random
desc: "Intel Corporation 82801 Mobile PCI Bridge"
vendorId: 8086
deviceId: 2448
subVendorId: 0000
subDeviceId: 0000
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1e
pcifn: 0
-
class: OTHER
bus: PCI
detached: 0
driver: unknown
desc: "Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1"
vendorId: 8086
deviceId: 2660
subVendorId: 0000
subDeviceId: 0000
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1c
pcifn: 0
-
class: OTHER
bus: PCI
detached: 0
driver: unknown
desc: "Intel Corporation Mobile 915GM/PM Express PCI Express Root Port"
vendorId: 8086
deviceId: 2591
subVendorId: 0000
subDeviceId: 0000
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1
pcifn: 0
-
class: OTHER
bus: PCI
detached: 0
driver: unknown
desc: "Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller"
vendorId: 8086
deviceId: 2590
subVendorId: 1028
subDeviceId: 0186
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 0
pcifn: 0
-
class: OTHER
bus: USB
detached: 0
driver: unknown
desc: "Linux 2.6.11-kanotix-11 ehci_hcd Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller"
usbclass: 9
usbsubclass: 0
usbprotocol: 0
usbbus: 5
usblevel: 0
usbport: 0
usbdev: 1
vendorId: 0000
deviceId: 0000
usbmfr: Linux 2.6.11-kanotix-11 ehci_hcd
usbprod: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller
-
class: OTHER
bus: USB
detached: 0
driver: unknown
desc: "Linux 2.6.11-kanotix-11 uhci_hcd Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1"
usbclass: 9
usbsubclass: 0
usbprotocol: 0
usbbus: 1
usblevel: 0
usbport: 0
usbdev: 1
vendorId: 0000
deviceId: 0000
usbmfr: Linux 2.6.11-kanotix-11 uhci_hcd
usbprod: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1
-
class: OTHER
bus: USB
detached: 0
driver: unknown
desc: "Linux 2.6.11-kanotix-11 uhci_hcd Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2"
usbclass: 9
usbsubclass: 0
usbprotocol: 0
usbbus: 2
usblevel: 0
usbport: 0
usbdev: 1
vendorId: 0000
deviceId: 0000
usbmfr: Linux 2.6.11-kanotix-11 uhci_hcd
usbprod: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2
-
class: OTHER
bus: USB
detached: 0
driver: unknown
desc: "Linux 2.6.11-kanotix-11 uhci_hcd Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3"
usbclass: 9
usbsubclass: 0
usbprotocol: 0
usbbus: 3
usblevel: 0
usbport: 0
usbdev: 1
vendorId: 0000
deviceId: 0000
usbmfr: Linux 2.6.11-kanotix-11 uhci_hcd
usbprod: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3
-
class: OTHER
bus: USB
detached: 0
driver: unknown
desc: "Linux 2.6.11-kanotix-11 uhci_hcd Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4"
usbclass: 9
usbsubclass: 0
usbprotocol: 0
usbbus: 4
usblevel: 0
usbport: 0
usbdev: 1
vendorId: 0000
deviceId: 0000
usbmfr: Linux 2.6.11-kanotix-11 uhci_hcd
usbprod: Intel Corp. 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4
-
class: OTHER
bus: PSAUX
detached: 0
driver: pcspkr
desc: "PC Speaker"
-
class: NETWORK
bus: PCI
detached: 0
device: eth1
driver: unknown
desc: "Broadcom Corporation BCM4309 802.11a/b/g"
vendorId: 14e4
deviceId: 4324
subVendorId: 1028
subDeviceId: 0003
pciType: 1
pcidom: 0
pcibus: 3
pcidev: 3
pcifn: 0
-
class: NETWORK
bus: PCI
detached: 0
device: eth0
driver: tg3
desc: "Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express"
network.hwaddr: 00:11:43:71:1E:49
vendorId: 14e4
deviceId: 1677
subVendorId: 1028
subDeviceId: 0186
pciType: 1
pcidom: 0
pcibus: 2
pcidev: 0
pcifn: 0
-
class: MOUSE
bus: PSAUX
detached: 0
device: input/mice
driver: synaptics
desc: "AlpsPS/2 ALPS TouchPad"
-
class: AUDIO
bus: PCI
detached: 0
driver: snd-intel8x0
desc: "Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller"
vendorId: 8086
deviceId: 266e
subVendorId: 1028
subDeviceId: 0186
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1e
pcifn: 2
-
class: CDROM
bus: IDE
detached: 0
device: hdc
driver: ignore
desc: "_NEC DVD+/-RW ND-6500A"
-
class: MODEM
bus: PCI
detached: 0
driver: unknown
desc: "Texas Instruments: Unknown device 8038"
vendorId: 104c
deviceId: 8038
subVendorId: 1028
subDeviceId: 0186
pciType: 1
pcidom: 0
pcibus: 3
pcidev: 1
pcifn: 5
-
class: VIDEO
bus: PCI
detached: 0
device: fb0
driver: Card:ATI Radeon Mobility X600
desc: "ATI Technologies Inc M24 1P [Radeon Mobility X600]"
vendorId: 1002
deviceId: 3150
subVendorId: 1028
subDeviceId: 2002
pciType: 1
pcidom: 0
pcibus: 1
pcidev: 0
pcifn: 0
-
class: VIDEO
bus: DDC
detached: 0
device: fb0
driver: unknown
desc: "ATI Technologies Inc. P24"
mem: 131008
-
class: HD
bus: SCSI
detached: 0
device: sda
driver: ignore
desc: "Ata HTS726060M9AT00"
host: 0
id: 0
channel: 0
lun: 0
generic: sg0
-
class: KEYBOARD
bus: PSAUX
detached: 0
driver: ignore
desc: "AT Translated Set 2 keyboard"
-
class: MONITOR
bus: DDC
detached: 0
driver: unknown
desc: "(null)"
id: SHP13b1
-
class: USB
bus: PCI
detached: 0
driver: ehci-hcd
desc: "Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller"
vendorId: 8086
deviceId: 265c
subVendorId: 1028
subDeviceId: 0186
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1d
pcifn: 7
-
class: USB
bus: PCI
detached: 0
driver: uhci-hcd
desc: "Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4"
vendorId: 8086
deviceId: 265b
subVendorId: 1028
subDeviceId: 0186
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1d
pcifn: 3
-
class: USB
bus: PCI
detached: 0
driver: uhci-hcd
desc: "Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3"
vendorId: 8086
deviceId: 265a
subVendorId: 1028
subDeviceId: 0186
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1d
pcifn: 2
-
class: USB
bus: PCI
detached: 0
driver: uhci-hcd
desc: "Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2"
vendorId: 8086
deviceId: 2659
subVendorId: 1028
subDeviceId: 0186
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1d
pcifn: 1
-
class: USB
bus: PCI
detached: 0
driver: uhci-hcd
desc: "Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1"
vendorId: 8086
deviceId: 2658
subVendorId: 1028
subDeviceId: 0186
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1d
pcifn: 0
-
class: SOCKET
bus: PCI
detached: 0
driver: yenta_socket
desc: "Texas Instruments: Unknown device 8036"
vendorId: 104c
deviceId: 8036
subVendorId: 1028
subDeviceId: 0186
pciType: 1
pcidom: 0
pcibus: 3
pcidev: 1
pcifn: 0
-
class: IDE
bus: PCI
detached: 0
driver: ata_piix
desc: "Intel Corporation 82801FBM (ICH6M) SATA Controller"
vendorId: 8086
deviceId: 2653
subVendorId: 1028
subDeviceId: 0186
pciType: 1
pcidom: 0
pcibus: 0
pcidev: 1f
pcifn: 2
[code]
Obviously, sata drives do not use dma, but I need to watch movies on the dvd player.
Any ideas?
mfg,
martin
No Events found!


dsbInspiron
222 Posts
0
August 15th, 2005 11:00
If I understand you correctly you want to enable DMA for DVD playback (probably to remove the choppyness)?
Type this in as root to enable DMA
hdparm -d 1 /dev/cdrom
I think I saw where cdrom was the name of your DVD drive, if not replace cdrom with the correct name. If you can find a start up script, like something.local, or whatever you can add this line to it so that DMA starts everytime.
yazdzik
13 Posts
0
August 15th, 2005 17:00
Actually, that command is what generated the error message.
hdparm will not work via a sata cotroller to an atapi drive without some issues.
The good news is that there is a workaround.
One must recompile the kernel and change undef to define atapi in the file /usr/src/kernel-source-2.6.x-blah/include/linux/libata.h:
Not a pretty thing to do, but currently the only way to enable the dma to work in the situation.
Some distros have this enabled by default, to wit SuSe 9.3, by the way.\
dsbInspiron
222 Posts
0
August 16th, 2005 11:00