public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Roy Wright <royw@cisco.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] setting "using_dma" on a BenQ DVD/RW drive
Date: Mon, 08 Aug 2005 13:25:17 -0500	[thread overview]
Message-ID: <42F7A38D.8090705@cisco.com> (raw)
In-Reply-To: <42F79BE8.9060109@dir.bg>

Rumen Yotov wrote:

>Hi,
>First thing to do is to make sure you have support for your mobos'
>chipset into kernel-config.
>Then emerge/install hdparm and have a customized '/etc/conf.s/hdparm' file.
>Ex.(mine):
>hda_args="-d1 -A1 -m16 -u1 -a64" // this is for my hard disk
>all_args="-d1"                                 // this is for all other
>disks - DVD-R and DVD-RW
>Think i took this mainly from install-guide.2005.0. Don't forget to
>start "/etc/init.d/hdparm start" as root and if everything is OK,
>"rc-update add hdparm default" to always have this at boot time.
>Test with "hdparm -Tt /dev/hdX" X is a,b,c,d (for an IDE-disk) check
>again "man hdparm" for the options ;)
>HTH. Rumen
>  
>
Here's the details of what I'm seeing from a root shell:

royw-gentoo conf.d # hdparm -d1 /dev/dvd

/dev/dvd:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)

royw-gentoo conf.d # less /etc/conf.d/hdparm | grep -v \#

all_args="-d1"

royw-gentoo conf.d # /etc/init.d/hdparm start
 * Caching service dependencies 
...                                                                      
[ ok ]
 * Starting hdparm 
...                                                                                   
[ ok ]
 * Running hdparm on /dev/cdroms/cdrom0 ...
 HDIO_SET_DMA failed: Operation not permitted

royw-gentoo linux # hdparm -I /dev/dvd

/dev/dvd:

ATAPI CD-ROM, with removable media
        Model Number:       Memorex DVD+/-RW True-8X
        Serial Number:      DADC011844WL
        Firmware Revision:  1.06
Standards:
        Likely used CD-ROM ATAPI-1
Configuration:
        DRQ response: 50us.
        Packet size: 12 bytes
Capabilities:
        LBA, IORDY(can be disabled)
        Buffer size: 64.0kB
        DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2
             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:
           *    DEVICE RESET cmd
           *    PACKET command feature set
           *    Power Management feature set
HW reset results:
        CBLID- above Vih
        Device num = 0 determined by the jumper

royw-gentoo conf.d # lspci
0000:00:00.0 Host bridge: Intel Corporation 82875P/E7210 Memory 
Controller Hub (rev 02)
0000:00:01.0 PCI bridge: Intel Corporation 82875P Processor to AGP 
Controller (rev 02)
0000:00:03.0 PCI bridge: Intel Corporation 82875P/E7210 Processor to PCI 
to CSA Bridge (rev 02)
0000:00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) 
USB UHCI Controller #1 (rev 02)
0000:00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) 
USB UHCI Controller #2 (rev 02)
0000:00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) 
USB UHCI #3 (rev 02)
0000:00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) 
USB UHCI Controller #4 (rev 02)
0000:00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) 
USB2 EHCI Controller (rev 02)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
0000:00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC 
Interface Bridge (rev 02)
0000:00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA 
Controller (rev 02)
0000:00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus 
Controller (rev 02)
0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER 
(ICH5/ICH5R) AC'97 Audio Controller (rev 02)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV40 [GeForce 
6800 GT] (rev a1)
0000:02:01.0 Ethernet controller: Intel Corporation 82547EI Gigabit 
Ethernet Controller (LOM)

royw-gentoo linux # dmesg | grep -i dma
  DMA zone: 4096 pages, LIFO batch:1
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xF000 irq 14
ata1: dev 0 ATA, max UDMA/133, 145226112 sectors: lba48
ata1: dev 1 ATA, max UDMA/133, 145226112 sectors: lba48
ata1: dev 0 configured for UDMA/133
ata1: dev 1 configured for UDMA/133

royw-gentoo linux # less /usr/src/linux/.config | grep -i dma
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

I'm missing something simple, but just don't see it.

TIA,
Roy
-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2005-08-08 18:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-08 16:03 [gentoo-user] setting "using_dma" on a BenQ DVD/RW drive Joseph
2005-08-08 17:09 ` Joseph
2005-08-08 17:52   ` Rumen Yotov
2005-08-08 18:16     ` Joseph
2005-08-08 18:22       ` Luigi Pinna
2005-08-08 22:19       ` Matt Randolph
2005-08-08 18:25     ` Roy Wright [this message]
2005-08-08 18:51       ` Rumen Yotov
2005-08-08 19:19         ` Roy Wright
2005-08-08 22:26           ` Neil Bothwick
2005-08-08 22:46             ` Raymond Lillard
2005-08-08 23:47               ` Joseph
2005-08-09  1:07               ` [gentoo-user] [SOLVED] " Joseph
2005-08-08 19:18       ` [gentoo-user] " Joseph
2005-08-08 17:55   ` Roy Wright
2005-08-08 20:53     ` Norbert Kamenicky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42F7A38D.8090705@cisco.com \
    --to=royw@cisco.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox