* can't read DVD (under 2.4.[12] & 2.2.17)
@ 2001-03-07 20:03 Pozsar Balazs
2001-03-07 20:08 ` Jens Axboe
0 siblings, 1 reply; 10+ messages in thread
From: Pozsar Balazs @ 2001-03-07 20:03 UTC (permalink / raw)
To: linux-kernel
hi all,
Whatever I tried, I couldn't get my DVDs read. I get:
sr0: CDROM (ioctl) reports ILLEGAL REQUEST.
or, I don't use ide-scsi, i get the ATAPI equivalent.
I have udf support compiled in, i have successfully authenticated the
disk(s), but lo luck.
The drive is:
Vendor: PIONEER Model: DVD-ROM DVD-105 Rev: 1.22
I tried 2.2.17, 2.4.1 & 2.4.2 (and a few different compiled versions of
them)
What might be the problem?
Balazs Pozsar.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: can't read DVD (under 2.4.[12] & 2.2.17)
2001-03-07 20:03 can't read DVD (under 2.4.[12] & 2.2.17) Pozsar Balazs
@ 2001-03-07 20:08 ` Jens Axboe
2001-03-07 20:32 ` Pozsar Balazs
0 siblings, 1 reply; 10+ messages in thread
From: Jens Axboe @ 2001-03-07 20:08 UTC (permalink / raw)
To: Pozsar Balazs; +Cc: linux-kernel
On Wed, Mar 07 2001, Pozsar Balazs wrote:
>
> hi all,
>
> Whatever I tried, I couldn't get my DVDs read. I get:
> sr0: CDROM (ioctl) reports ILLEGAL REQUEST.
> or, I don't use ide-scsi, i get the ATAPI equivalent.
> I have udf support compiled in, i have successfully authenticated the
> disk(s), but lo luck.
>
> The drive is:
> Vendor: PIONEER Model: DVD-ROM DVD-105 Rev: 1.22
>
> I tried 2.2.17, 2.4.1 & 2.4.2 (and a few different compiled versions of
> them)
>
> What might be the problem?
I don't know, you provide virtually no information. Use the ATAPI
driver, and dump dmesg info when this happens. Then send that along.
--
Jens Axboe
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: can't read DVD (under 2.4.[12] & 2.2.17)
2001-03-07 20:08 ` Jens Axboe
@ 2001-03-07 20:32 ` Pozsar Balazs
2001-03-07 20:36 ` Jens Axboe
0 siblings, 1 reply; 10+ messages in thread
From: Pozsar Balazs @ 2001-03-07 20:32 UTC (permalink / raw)
To: Jens Axboe; +Cc: linux-kernel
Details: (dmesg)
Linux version 2.4.2-3mdk (jgarzik@no.mandrakesoft.com) (gcc version
egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #1 Tue Feb 27 02:14:17
CET 2001
...
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
VP_IDE: IDE controller on PCI bus 00 dev 39
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:07.1
ide0: BM-DMA at 0xc000-0xc007, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xc008-0xc00f, BIOS settings: hdc:pio, hdd:DMA
HPT370: IDE controller on PCI bus 00 dev 70
PCI: Found IRQ 11 for device 00:0e.0
HPT370: chipset revision 3
HPT370: not 100% native mode: will probe irqs later
ide2: BM-DMA at 0xec00-0xec07, BIOS settings: hde:pio, hdf:pio
ide3: BM-DMA at 0xec08-0xec0f, BIOS settings: hdg:DMA, hdh:pio
hdd: Pioneer DVD-ROM ATAPIModel DVD-105S 012, ATAPI CD/DVD-ROM drive
hdg: QUANTUM FIREBALLlct20 20, ATA DISK drive
ide1 at 0x170-0x177,0x376 on irq 15
ide3 at 0xe400-0xe407,0xe802 on irq 11
hdg: 39876480 sectors (20417 MB) w/418KiB Cache, CHS=39560/16/63,
UDMA(100)
hdd: ATAPI 40X DVD-ROM drive, 512kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
Partition check:
hdg: hdg1 hdg2 hdg3 hdg4
...
When I run "dvdinfo /dev/hdd" I get:
Disc is encrypted.
Layer 0[3]
Book Version: 0
Book Type: 13
Min Rate: 0
Disc Size: 0
Layer Type: 0
Track Path: 1
Num Layers: 2
Track Density: 0
Linear Density: 0
BCA: 1
Start Sector 0xd000
End Sector 0xd000
End Sector L0 0xd000
Layer 1[3]
Book Version: 0
Book Type: 13
Min Rate: 0
Disc Size: 0
Layer Type: 0
Track Path: 1
Num Layers: 2
Track Density: 0
Linear Density: 0
BCA: 1
Start Sector 0xd000
End Sector 0x1d000
End Sector L0 0xd000
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x50
ATAPI device hdd:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Send DVD Structure" packet command was:
"ad 00 00 00 00 00 02 00 00 54 00 00 "
Could not read Physical layer 2
Copyright: CPST=1, RMI=0xfd
I also get this in syslog:
hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
hdd: packet command error: error=0x50
ATAPI device hdd:
Error: Illegal request -- (Sense key=0x05)
Invalid field in command packet -- (asc=0x24, ascq=0x00)
The failed "Send DVD Structure" packet command was:
"ad 00 00 00 00 00 02 00 00 54 00 00 "
Tell me i can give you any more info.
Balazs Pozsar.
On Wed, 7 Mar 2001, Jens Axboe wrote:
> On Wed, Mar 07 2001, Pozsar Balazs wrote:
> >
> > hi all,
> >
> > Whatever I tried, I couldn't get my DVDs read. I get:
> > sr0: CDROM (ioctl) reports ILLEGAL REQUEST.
> > or, I don't use ide-scsi, i get the ATAPI equivalent.
> > I have udf support compiled in, i have successfully authenticated the
> > disk(s), but lo luck.
> >
> > The drive is:
> > Vendor: PIONEER Model: DVD-ROM DVD-105 Rev: 1.22
> >
> > I tried 2.2.17, 2.4.1 & 2.4.2 (and a few different compiled versions of
> > them)
> >
> > What might be the problem?
>
> I don't know, you provide virtually no information. Use the ATAPI
> driver, and dump dmesg info when this happens. Then send that along.
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: can't read DVD (under 2.4.[12] & 2.2.17)
2001-03-07 20:32 ` Pozsar Balazs
@ 2001-03-07 20:36 ` Jens Axboe
2001-03-07 21:36 ` Derek Fawcus
0 siblings, 1 reply; 10+ messages in thread
From: Jens Axboe @ 2001-03-07 20:36 UTC (permalink / raw)
To: Pozsar Balazs
On Wed, Mar 07 2001, Pozsar Balazs wrote:
> Details: (dmesg)
>
> Linux version 2.4.2-3mdk (jgarzik@no.mandrakesoft.com) (gcc version
> egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #1 Tue Feb 27 02:14:17
> CET 2001
> ...
> Uniform Multi-Platform E-IDE driver Revision: 6.31
> ide: Assuming 33MHz system bus speed for PIO modes; override with
> idebus=xx
> VP_IDE: IDE controller on PCI bus 00 dev 39
> VP_IDE: chipset revision 6
> VP_IDE: not 100% native mode: will probe irqs later
> ide: Assuming 33MHz system bus speed for PIO modes; override with
> idebus=xx
> VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:07.1
> ide0: BM-DMA at 0xc000-0xc007, BIOS settings: hda:pio, hdb:pio
> ide1: BM-DMA at 0xc008-0xc00f, BIOS settings: hdc:pio, hdd:DMA
> HPT370: IDE controller on PCI bus 00 dev 70
> PCI: Found IRQ 11 for device 00:0e.0
> HPT370: chipset revision 3
> HPT370: not 100% native mode: will probe irqs later
> ide2: BM-DMA at 0xec00-0xec07, BIOS settings: hde:pio, hdf:pio
> ide3: BM-DMA at 0xec08-0xec0f, BIOS settings: hdg:DMA, hdh:pio
> hdd: Pioneer DVD-ROM ATAPIModel DVD-105S 012, ATAPI CD/DVD-ROM drive
> hdg: QUANTUM FIREBALLlct20 20, ATA DISK drive
> ide1 at 0x170-0x177,0x376 on irq 15
> ide3 at 0xe400-0xe407,0xe802 on irq 11
> hdg: 39876480 sectors (20417 MB) w/418KiB Cache, CHS=39560/16/63,
> UDMA(100)
> hdd: ATAPI 40X DVD-ROM drive, 512kB Cache, UDMA(33)
> Uniform CD-ROM driver Revision: 3.12
> Partition check:
> hdg: hdg1 hdg2 hdg3 hdg4
> ...
>
>
>
> When I run "dvdinfo /dev/hdd" I get:
> Disc is encrypted.
> Layer 0[3]
> Book Version: 0
> Book Type: 13
> Min Rate: 0
> Disc Size: 0
> Layer Type: 0
> Track Path: 1
> Num Layers: 2
> Track Density: 0
> Linear Density: 0
> BCA: 1
> Start Sector 0xd000
> End Sector 0xd000
> End Sector L0 0xd000
> Layer 1[3]
> Book Version: 0
> Book Type: 13
> Min Rate: 0
> Disc Size: 0
> Layer Type: 0
> Track Path: 1
> Num Layers: 2
> Track Density: 0
> Linear Density: 0
> BCA: 1
> Start Sector 0xd000
> End Sector 0x1d000
> End Sector L0 0xd000
> hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
> hdd: packet command error: error=0x50
> ATAPI device hdd:
> Error: Illegal request -- (Sense key=0x05)
> Invalid field in command packet -- (asc=0x24, ascq=0x00)
> The failed "Send DVD Structure" packet command was:
> "ad 00 00 00 00 00 02 00 00 54 00 00 "
> Could not read Physical layer 2
> Copyright: CPST=1, RMI=0xfd
I don't know the program you mention, but it's definitely buggy. It
sets byte 6 to 0x02 which is not valid at all. Byte 7 is the format
code, but 0x02 is reserved there too. Who wrote this program? Tell
him it's buggy, it's not the driver.
--
Jens Axboe
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: can't read DVD (under 2.4.[12] & 2.2.17)
2001-03-07 20:36 ` Jens Axboe
@ 2001-03-07 21:36 ` Derek Fawcus
2001-03-07 21:44 ` Jens Axboe
0 siblings, 1 reply; 10+ messages in thread
From: Derek Fawcus @ 2001-03-07 21:36 UTC (permalink / raw)
To: Jens Axboe, Pozsar Balazs; +Cc: linux-kernel
On Wed, Mar 07, 2001 at 09:36:32PM +0100, Jens Axboe wrote:
> On Wed, Mar 07 2001, Pozsar Balazs wrote:
> > Details: (dmesg)
> >
> > When I run "dvdinfo /dev/hdd" I get:
> > Disc is encrypted.
> > Layer 0[3]
> > Num Layers: 2
> > Start Sector 0xd000
> > End Sector 0xd000
> > End Sector L0 0xd000
> > Layer 1[3]
> > Num Layers: 2
> > Start Sector 0xd000
> > End Sector 0x1d000
> > End Sector L0 0xd000
> > hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
> > hdd: packet command error: error=0x50
> > ATAPI device hdd:
> > Error: Illegal request -- (Sense key=0x05)
> > Invalid field in command packet -- (asc=0x24, ascq=0x00)
> > The failed "Send DVD Structure" packet command was:
> > "ad 00 00 00 00 00 02 00 00 54 00 00 "
> > Could not read Physical layer 2
> > Copyright: CPST=1, RMI=0xfd
>
> I don't know the program you mention, but it's definitely buggy. It
> sets byte 6 to 0x02 which is not valid at all.
The program is attempting to read from the third layer! Thats why it
fails. This value gets set from the .layer_num element supplied
in the struct dvd_physical supplied to the ioctl call.
> Byte 7 is the format code, but 0x02 is reserved there too. Who wrote
> this program? Tell him it's buggy, it's not the driver.
Originally me (a couple of years ago), and I'm not supprised at it
being buggy, it was a simple program to explore a couple of the
ioctl calls. I never got particularly sensible data from a multi-layer
DVD (maybe the firmware in my drives is dodgy).
the original code was something like:
dvd_struct d;
int layer, layers = 4;
d.physical.type = DVD_STRUCT_PHYSICAL;
for (layer = 0; layer < layers; ++layer) {
d.physical.layer_num = layer;
ioctl(fd, DVD_READ_STRUCT, &d);
printf("Layer %d[%d]\n", layer, layers);
display data in d.physical.layer[layer]
layers = d.physical.layer[layer].nlayers + 1;
}
This was from observations of the data returned by my DVD drive, where
the .nlayers was always returned as 0 or 1 for single or dual layer
discs, and always as 0 for flippers. Having a drive return the number
of layers as 2 doesn't agree with this. Unless his drive is simply
returning 1 based numbers, whereas mine returned 0 based numbers.
Actually I never forund the API especially sensible - this could just be
due to the data I saw back from my DVD drive.
The way I interpreted this API is that one requests the layer number to
read the data from, and that index in the array would be filled in with
data. However this seems a bit pointless - if only one layers worth of
data will be returned at a time, then why have an array of 4 entries?
Or is it intended that you should be able to read identical data from
either layer (on either side). That all layers on the disk would have
had this structure physically recorded identically, and that for a
disk with n 'layers', n elements of the array will be filled as
appropriate.
On my drive for array indicies > 0 the data in the structure elements
is always 0. It also makes no difference which layer I read (assuming
that its actually dual layer), the results of the 2 ioctl calls are
identical.
DF
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: can't read DVD (under 2.4.[12] & 2.2.17)
2001-03-07 21:36 ` Derek Fawcus
@ 2001-03-07 21:44 ` Jens Axboe
2001-03-07 21:46 ` Jens Axboe
0 siblings, 1 reply; 10+ messages in thread
From: Jens Axboe @ 2001-03-07 21:44 UTC (permalink / raw)
To: Derek Fawcus; +Cc: Pozsar Balazs, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2337 bytes --]
On Wed, Mar 07 2001, Derek Fawcus wrote:
> > > hdd: packet command error: status=0x51 { DriveReady SeekComplete Error }
> > > hdd: packet command error: error=0x50
> > > ATAPI device hdd:
> > > Error: Illegal request -- (Sense key=0x05)
> > > Invalid field in command packet -- (asc=0x24, ascq=0x00)
> > > The failed "Send DVD Structure" packet command was:
> > > "ad 00 00 00 00 00 02 00 00 54 00 00 "
> > > Could not read Physical layer 2
> > > Copyright: CPST=1, RMI=0xfd
> >
> > I don't know the program you mention, but it's definitely buggy. It
> > sets byte 6 to 0x02 which is not valid at all.
>
> The program is attempting to read from the third layer! Thats why it
> fails. This value gets set from the .layer_num element supplied
> in the struct dvd_physical supplied to the ioctl call.
>
> > Byte 7 is the format code, but 0x02 is reserved there too. Who wrote
> > this program? Tell him it's buggy, it's not the driver.
>
> Originally me (a couple of years ago), and I'm not supprised at it
> being buggy, it was a simple program to explore a couple of the
> ioctl calls. I never got particularly sensible data from a multi-layer
> DVD (maybe the firmware in my drives is dodgy).
The report sense was buggy, and that fooled me. The cdb is not wrong
at all, apart from the length which you mention further on. It's a
READ_DVD_STRUCTURE command, not a SEND_DVD_STRUCTURE.
> the original code was something like:
>
> dvd_struct d;
> int layer, layers = 4;
>
> d.physical.type = DVD_STRUCT_PHYSICAL;
>
> for (layer = 0; layer < layers; ++layer) {
> d.physical.layer_num = layer;
>
> ioctl(fd, DVD_READ_STRUCT, &d);
>
> printf("Layer %d[%d]\n", layer, layers);
> display data in d.physical.layer[layer]
>
> layers = d.physical.layer[layer].nlayers + 1;
> }
Much the same today, the program was forwarded to me ;-)
> The way I interpreted this API is that one requests the layer number to
> read the data from, and that index in the array would be filled in with
> data. However this seems a bit pointless - if only one layers worth of
> data will be returned at a time, then why have an array of 4 entries?
Really good question, I sent this patch in the private thread between
me and Pozsar just in case the length is what the drive complains about.
--
Jens Axboe
[-- Attachment #2: dvd-read-phys-1 --]
[-- Type: text/plain, Size: 410 bytes --]
--- /opt/kernel/linux-2.4.3-pre2/drivers/cdrom/cdrom.c Thu Feb 22 14:55:22 2001
+++ drivers/cdrom/cdrom.c Wed Mar 7 22:25:14 2001
@@ -1172,7 +1172,7 @@
static int dvd_read_physical(struct cdrom_device_info *cdi, dvd_struct *s)
{
int ret, i;
- u_char buf[4 + 4 * 20], *base;
+ u_char buf[20], *base;
struct dvd_layer *layer;
struct cdrom_generic_command cgc;
struct cdrom_device_ops *cdo = cdi->ops;
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: can't read DVD (under 2.4.[12] & 2.2.17)
2001-03-07 21:44 ` Jens Axboe
@ 2001-03-07 21:46 ` Jens Axboe
2001-03-07 22:26 ` Jens Axboe
0 siblings, 1 reply; 10+ messages in thread
From: Jens Axboe @ 2001-03-07 21:46 UTC (permalink / raw)
To: Derek Fawcus; +Cc: Pozsar Balazs, linux-kernel
On Wed, Mar 07 2001, Jens Axboe wrote:
> Really good question, I sent this patch in the private thread between
> me and Pozsar just in case the length is what the drive complains about.
Agrh, that's not all. I will fix this properly, sorry about the noise.
--
Jens Axboe
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: can't read DVD (under 2.4.[12] & 2.2.17)
2001-03-07 21:46 ` Jens Axboe
@ 2001-03-07 22:26 ` Jens Axboe
2001-03-07 22:58 ` Pozsar Balazs
0 siblings, 1 reply; 10+ messages in thread
From: Jens Axboe @ 2001-03-07 22:26 UTC (permalink / raw)
To: Derek Fawcus; +Cc: Pozsar Balazs, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 575 bytes --]
On Wed, Mar 07 2001, Jens Axboe wrote:
> On Wed, Mar 07 2001, Jens Axboe wrote:
> > Really good question, I sent this patch in the private thread between
> > me and Pozsar just in case the length is what the drive complains about.
>
> Agrh, that's not all. I will fix this properly, sorry about the noise.
This should work. Pozsar, could you test?
I suspect that Derik is right though, that the 05/24/00 is because
the dvdinfo is requesting info for a non-existant physical layer.
I've attempted to quiet that error. You dvdinfo output did look
very odd.
--
Jens Axboe
[-- Attachment #2: dvd-read-phys-2 --]
[-- Type: text/plain, Size: 2886 bytes --]
--- /opt/kernel/linux-2.4.3-pre3/drivers/cdrom/cdrom.c Thu Feb 22 14:55:22 2001
+++ drivers/cdrom/cdrom.c Wed Mar 7 23:25:52 2001
@@ -1171,42 +1171,50 @@
static int dvd_read_physical(struct cdrom_device_info *cdi, dvd_struct *s)
{
- int ret, i;
- u_char buf[4 + 4 * 20], *base;
+ unsigned char buf[20], *base;
struct dvd_layer *layer;
struct cdrom_generic_command cgc;
struct cdrom_device_ops *cdo = cdi->ops;
+ int ret, layer_num = s->physical.layer_num;
+
+ if (layer_num >= DVD_LAYERS)
+ return -EINVAL;
init_cdrom_command(&cgc, buf, sizeof(buf), CGC_DATA_READ);
cgc.cmd[0] = GPCMD_READ_DVD_STRUCTURE;
- cgc.cmd[6] = s->physical.layer_num;
+ cgc.cmd[6] = layer_num;
cgc.cmd[7] = s->type;
cgc.cmd[9] = cgc.buflen & 0xff;
+ /*
+ * refrain from reporting errors on non-existing layers (mainly)
+ */
+ cgc.quiet = 1;
+
if ((ret = cdo->generic_packet(cdi, &cgc)))
return ret;
base = &buf[4];
- layer = &s->physical.layer[0];
+ layer = &s->physical.layer[layer_num];
- /* place the data... really ugly, but at least we won't have to
- worry about endianess in userspace or here. */
- for (i = 0; i < 4; ++i, base += 20, ++layer) {
- memset(layer, 0, sizeof(*layer));
- layer->book_version = base[0] & 0xf;
- layer->book_type = base[0] >> 4;
- layer->min_rate = base[1] & 0xf;
- layer->disc_size = base[1] >> 4;
- layer->layer_type = base[2] & 0xf;
- layer->track_path = (base[2] >> 4) & 1;
- layer->nlayers = (base[2] >> 5) & 3;
- layer->track_density = base[3] & 0xf;
- layer->linear_density = base[3] >> 4;
- layer->start_sector = base[5] << 16 | base[6] << 8 | base[7];
- layer->end_sector = base[9] << 16 | base[10] << 8 | base[11];
- layer->end_sector_l0 = base[13] << 16 | base[14] << 8 | base[15];
- layer->bca = base[16] >> 7;
- }
+ /*
+ * place the data... really ugly, but at least we won't have to
+ * worry about endianess in userspace.
+ */
+ memset(layer, 0, sizeof(*layer));
+ layer->book_version = base[0] & 0xf;
+ layer->book_type = base[0] >> 4;
+ layer->min_rate = base[1] & 0xf;
+ layer->disc_size = base[1] >> 4;
+ layer->layer_type = base[2] & 0xf;
+ layer->track_path = (base[2] >> 4) & 1;
+ layer->nlayers = (base[2] >> 5) & 3;
+ layer->track_density = base[3] & 0xf;
+ layer->linear_density = base[3] >> 4;
+ layer->start_sector = base[5] << 16 | base[6] << 8 | base[7];
+ layer->end_sector = base[9] << 16 | base[10] << 8 | base[11];
+ layer->end_sector_l0 = base[13] << 16 | base[14] << 8 | base[15];
+ layer->bca = base[16] >> 7;
return 0;
}
--- /opt/kernel/linux-2.4.3-pre3/include/linux/cdrom.h Tue Jan 30 08:24:56 2001
+++ include/linux/cdrom.h Wed Mar 7 23:00:07 2001
@@ -524,10 +524,12 @@
__u32 end_sector_l0;
};
+#define DVD_LAYERS 4
+
struct dvd_physical {
__u8 type;
__u8 layer_num;
- struct dvd_layer layer[4];
+ struct dvd_layer layer[DVD_LAYERS];
};
struct dvd_copyright {
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: can't read DVD (under 2.4.[12] & 2.2.17)
2001-03-07 22:26 ` Jens Axboe
@ 2001-03-07 22:58 ` Pozsar Balazs
2001-03-07 23:22 ` Jens Axboe
0 siblings, 1 reply; 10+ messages in thread
From: Pozsar Balazs @ 2001-03-07 22:58 UTC (permalink / raw)
To: Jens Axboe; +Cc: Derek Fawcus, linux-kernel
Adding the
cgc.buflen = 20;
line into drivers/cdrom/cdrom.c: dvd_read_physical(...)
solves my problem.
I don't know the difference, but first you mentioned
cgc.buflen = 16;
so i tried that also, and it worked the same.
I'll write again if i'm having problems. :)
Thanks for the fast patch.
I think you should also check 2.2.
Balazs Pozsar.
On Wed, 7 Mar 2001, Jens Axboe wrote:
> On Wed, Mar 07 2001, Jens Axboe wrote:
> > On Wed, Mar 07 2001, Jens Axboe wrote:
> > > Really good question, I sent this patch in the private thread between
> > > me and Pozsar just in case the length is what the drive complains about.
> >
> > Agrh, that's not all. I will fix this properly, sorry about the noise.
>
> This should work. Pozsar, could you test?
>
> I suspect that Derik is right though, that the 05/24/00 is because
> the dvdinfo is requesting info for a non-existant physical layer.
> I've attempted to quiet that error. You dvdinfo output did look
> very odd.
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: can't read DVD (under 2.4.[12] & 2.2.17)
2001-03-07 22:58 ` Pozsar Balazs
@ 2001-03-07 23:22 ` Jens Axboe
0 siblings, 0 replies; 10+ messages in thread
From: Jens Axboe @ 2001-03-07 23:22 UTC (permalink / raw)
To: Pozsar Balazs; +Cc: Derek Fawcus, linux-kernel
On Wed, Mar 07 2001, Pozsar Balazs wrote:
>
> Adding the
> cgc.buflen = 20;
> line into drivers/cdrom/cdrom.c: dvd_read_physical(...)
> solves my problem.
>
> I don't know the difference, but first you mentioned
> cgc.buflen = 16;
> so i tried that also, and it worked the same.
>
> I'll write again if i'm having problems. :)
> Thanks for the fast patch.
Great, it worked out in the end :-)
> I think you should also check 2.2.
Definitely, 2.2 and 2.4 are 100% similar in this regard.
--
Jens Axboe
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2001-03-07 23:23 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-07 20:03 can't read DVD (under 2.4.[12] & 2.2.17) Pozsar Balazs
2001-03-07 20:08 ` Jens Axboe
2001-03-07 20:32 ` Pozsar Balazs
2001-03-07 20:36 ` Jens Axboe
2001-03-07 21:36 ` Derek Fawcus
2001-03-07 21:44 ` Jens Axboe
2001-03-07 21:46 ` Jens Axboe
2001-03-07 22:26 ` Jens Axboe
2001-03-07 22:58 ` Pozsar Balazs
2001-03-07 23:22 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox