Re: Is controlling DVD speeds via SET_STREAMING supported?

From: Pasi Savolainen
Date: Sun Nov 28 2004 - 16:02:58 EST


On Sun, 28 Nov 2004 19:53:30 +0100, Jens Axboe <axboe@xxxxxxx> wrote:
> > (under 2.6.10-rc2-mm1)
> > I ran speed-1.0 program as root and also modified to open the device
> > file as O_RDWR. This didn't help, it still reports same error.
>
> Ehm I don't see how that is possible, since that kernel definitely
> contains SET_STREAMING as a write safe command. Are you 110% sure you
> are running the kernel you think you are?

I was talking about 'feature not suppoerted by device' -error.
Got uptodate to 2.6.10-rc2-mm3, ran following:
- -
tienel:~# whoami
root
tienel:~# uname -a
Linux tienel 2.6.10-rc2-mm3 #1 SMP Sun Nov 28 22:28:17 EET 2004 i686 GNU/Linux
tienel:~# wget -q http://noto.de/speed/speedcontrol.c
tienel:~# gcc -o speedcontrol speedcontrol.c
tienel:~# ./speedcontrol -x 1 /dev/dvd
Command failed: b6 00 00 00 00 00 00 00 00 00 1c 00 - sense: 05.20.00
ERROR.
tienel:~# tail /var/log/messages
...
Nov 28 22:50:04 tienel kernel: hdb: packet command error: status=0x51
{ DriveReady SeekComplete Error }
Nov 28 22:50:04 tienel kernel: hdb: packet command error: error=0x54
Nov 28 22:50:04 tienel kernel: ide: failed opcode was 100
tienel:~# hdparm -I /dev/dvd

/dev/dvd:

ATAPI CD-ROM, with removable media
Model Number: SAMSUNG DVD-ROM SD-616E
Serial Number:
Firmware Revision: F506
Standards:
Used: ATAPI for CD-ROMs, SFF-8020i, r2.5
Supported: CD-ROM ATAPI-2
Configuration:
DRQ response: 50us.
Packet size: 12 bytes
Capabilities:
LBA, IORDY(can be disabled)
DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 *udma2
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns

- -

When I'm running these, I have a single-sided stamped DVD in drive.
These tend to make an awfull noise of hoovering when viewed (and
really need speed adjustment to 1-2x)

> > Booted into 2.4.28, speed-1.0 didn't do the trick there either. 'sense'
> > reported was 00.00.00 though.
>
> Any dmesg errors from 2.4.28? The sense reporting might be a bit broken
> there, but if you don't set cgc->quiet it should report the error in the
> kernel ring buffer at least.

No errors in dmesg. speedcontrol.c only reported that same error that
this current kernel did, but with sense 00.00.00.


--
psi -- http://iki.fi/psavo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/