[ltp] idectl and dma

Reed Gregory linux-thinkpad@linux-thinkpad.org
Fri, 27 Feb 2004 22:24:08 -0500


--Boundary-02=_cnAQAI2NibvFagn
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Ok, so i did get the ultrabay to give me hotswap support in linux using=20
the idectl script that comes with hdparm.  Now the problem is that when=20
the bus is rescanned, or turned off, then back on with the idectl=20
script.  The device (my dvd/cd-rw drive) no longer shows dma as being=20
enabled.  And when I try to enable it, I get the following error:

hdparm -d1 /dev/hdc

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

The plain output of hdparm is this:

/dev/hdc:
 HDIO_GET_MULTCOUNT failed: Invalid argument
 IO_support   =3D  0 (default 16-bit)
 unmaskirq    =3D  0 (off)
 using_dma    =3D  0 (off)
 keepsettings =3D  0 (off)
 readonly     =3D  1 (on)
 readahead    =3D 256 (on)
 HDIO_GETGEO failed: Invalid argument

Any ideas or anyone with success getting the idectl script to give me=20
dma support when I rescan that channel.  Also noticed that=20
in /proc/ide/ I now have this:

=2Dr--r--r--    1 root     root            0 Feb 27 22:23 drivers
lrwxrwxrwx    1 root     root            8 Feb 27 22:23 hda -> ide0/hda
lrwxrwxrwx    1 root     root            8 Feb 27 22:23 hdc -> ide1/hdc
dr-xr-xr-x    3 root     root            0 Feb 27 22:23 ide0
dr-xr-xr-x    3 root     root            0 Feb 27 22:23 ide1
dr-xr-xr-x    3 root     root            0 Feb 27 22:23 ide1
dr-xr-xr-x    3 root     root            0 Feb 27 22:23 ide1
dr-xr-xr-x    3 root     root            0 Feb 27 22:23 ide1
=2Dr--r--r--    1 root     root            0 Feb 27 22:23 piix


=2D-=20
Reed Gregory
reed@progoth.com

--Boundary-02=_cnAQAI2NibvFagn
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAQAncfFAOxUmysXgRAqNoAJ9N9yxZ7lIL6CSjSPFgNkfx8Nv2xwCeLVGI
WeIaBxGWbIDm+0EbjbGmxJc=
=zzer
-----END PGP SIGNATURE-----

--Boundary-02=_cnAQAI2NibvFagn--