Gentoo Archives: gentoo-user

From: Roy Wright <royw@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] setting "using_dma" on a BenQ DVD/RW drive
Date: Mon, 08 Aug 2005 18:32:35
Message-Id: 42F7A38D.8090705@cisco.com
In Reply to: Re: [gentoo-user] setting "using_dma" on a BenQ DVD/RW drive by Rumen Yotov
1 Rumen Yotov wrote:
2
3 >Hi,
4 >First thing to do is to make sure you have support for your mobos'
5 >chipset into kernel-config.
6 >Then emerge/install hdparm and have a customized '/etc/conf.s/hdparm' file.
7 >Ex.(mine):
8 >hda_args="-d1 -A1 -m16 -u1 -a64" // this is for my hard disk
9 >all_args="-d1" // this is for all other
10 >disks - DVD-R and DVD-RW
11 >Think i took this mainly from install-guide.2005.0. Don't forget to
12 >start "/etc/init.d/hdparm start" as root and if everything is OK,
13 >"rc-update add hdparm default" to always have this at boot time.
14 >Test with "hdparm -Tt /dev/hdX" X is a,b,c,d (for an IDE-disk) check
15 >again "man hdparm" for the options ;)
16 >HTH. Rumen
17 >
18 >
19 Here's the details of what I'm seeing from a root shell:
20
21 royw-gentoo conf.d # hdparm -d1 /dev/dvd
22
23 /dev/dvd:
24 setting using_dma to 1 (on)
25 HDIO_SET_DMA failed: Operation not permitted
26 using_dma = 0 (off)
27
28 royw-gentoo conf.d # less /etc/conf.d/hdparm | grep -v \#
29
30 all_args="-d1"
31
32 royw-gentoo conf.d # /etc/init.d/hdparm start
33 * Caching service dependencies
34 ...
35 [ ok ]
36 * Starting hdparm
37 ...
38 [ ok ]
39 * Running hdparm on /dev/cdroms/cdrom0 ...
40 HDIO_SET_DMA failed: Operation not permitted
41
42 royw-gentoo linux # hdparm -I /dev/dvd
43
44 /dev/dvd:
45
46 ATAPI CD-ROM, with removable media
47 Model Number: Memorex DVD+/-RW True-8X
48 Serial Number: DADC011844WL
49 Firmware Revision: 1.06
50 Standards:
51 Likely used CD-ROM ATAPI-1
52 Configuration:
53 DRQ response: 50us.
54 Packet size: 12 bytes
55 Capabilities:
56 LBA, IORDY(can be disabled)
57 Buffer size: 64.0kB
58 DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2
59 Cycle time: min=120ns recommended=120ns
60 PIO: pio0 pio1 pio2 pio3 pio4
61 Cycle time: no flow control=240ns IORDY flow control=120ns
62 Commands/features:
63 Enabled Supported:
64 * DEVICE RESET cmd
65 * PACKET command feature set
66 * Power Management feature set
67 HW reset results:
68 CBLID- above Vih
69 Device num = 0 determined by the jumper
70
71 royw-gentoo conf.d # lspci
72 0000:00:00.0 Host bridge: Intel Corporation 82875P/E7210 Memory
73 Controller Hub (rev 02)
74 0000:00:01.0 PCI bridge: Intel Corporation 82875P Processor to AGP
75 Controller (rev 02)
76 0000:00:03.0 PCI bridge: Intel Corporation 82875P/E7210 Processor to PCI
77 to CSA Bridge (rev 02)
78 0000:00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R)
79 USB UHCI Controller #1 (rev 02)
80 0000:00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R)
81 USB UHCI Controller #2 (rev 02)
82 0000:00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R)
83 USB UHCI #3 (rev 02)
84 0000:00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R)
85 USB UHCI Controller #4 (rev 02)
86 0000:00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R)
87 USB2 EHCI Controller (rev 02)
88 0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
89 0000:00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC
90 Interface Bridge (rev 02)
91 0000:00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA
92 Controller (rev 02)
93 0000:00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus
94 Controller (rev 02)
95 0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER
96 (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
97 0000:01:00.0 VGA compatible controller: nVidia Corporation NV40 [GeForce
98 6800 GT] (rev a1)
99 0000:02:01.0 Ethernet controller: Intel Corporation 82547EI Gigabit
100 Ethernet Controller (LOM)
101
102 royw-gentoo linux # dmesg | grep -i dma
103 DMA zone: 4096 pages, LIFO batch:1
104 ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xF000 irq 14
105 ata1: dev 0 ATA, max UDMA/133, 145226112 sectors: lba48
106 ata1: dev 1 ATA, max UDMA/133, 145226112 sectors: lba48
107 ata1: dev 0 configured for UDMA/133
108 ata1: dev 1 configured for UDMA/133
109
110 royw-gentoo linux # less /usr/src/linux/.config | grep -i dma
111 CONFIG_GENERIC_ISA_DMA=y
112 CONFIG_BLK_DEV_IDEDMA_PCI=y
113 # CONFIG_BLK_DEV_IDEDMA_FORCED is not set
114 CONFIG_IDEDMA_PCI_AUTO=y
115 # CONFIG_IDEDMA_ONLYDISK is not set
116 CONFIG_BLK_DEV_IDEDMA=y
117 # CONFIG_IDEDMA_IVB is not set
118 CONFIG_IDEDMA_AUTO=y
119
120 I'm missing something simple, but just don't see it.
121
122 TIA,
123 Roy
124 --
125 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] setting "using_dma" on a BenQ DVD/RW drive Rumen Yotov <rumen_yotov@×××.bg>
Re: [gentoo-user] setting "using_dma" on a BenQ DVD/RW drive Joseph <syscon@×××××××××.com>