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