Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#926717: linux-image-4.19.0-4-amd64: Size of DVD in external drive not recognised properly

207 views
Skip to first unread message

Jan

unread,
Apr 9, 2019, 11:10:03 AM4/9/19
to
Package: src:linux
Version: 4.19.28-2
Severity: normal

Dear Maintainer,

I recently got an external (USB) DVD drive, an LG GP57EB40. It seems to
works well with CDs. For DVDs, however, the capacity is wrong/too small
and the sector size is reported to be 512 Bytes. This problem does *not*
occur with another USB DVD drive (Panasonic/Matshita) or when using the
the LG drive under Windows. This should rule out HW defects of the drive
or the DVDs. More details below.

A very similar bug report was filed in Ubuntu
(https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.15/+bug/42023 comment 30)
but remained unresolved. JFTR: I do not have 'udftools' installed.


Below are all details I figured out up to this point, a few logs I
deem related, and the information collected by 'reportbug'. If any
additional info is required/useful, I'll try to provide it (though it
might take some time). I'd also appreciate suggestions of how to
further investigate this problem.

Best regards, Jan

Details
~~~~~~~
Connecting the LG drive to the laptop (direct connection, no hubs
involved) and inserting a DVD will report that DVD's total size to
be about 1GiB. This is also the amount of data after which 'dd' fails
to read from the drive. In 'dmesg' errors like the following appear

[900560.169677] attempt to access beyond end of device
[900560.169680] sr0: rw=0, want=9118156, limit=2097151

Even before that failure I see unhealthy messages

[899894.336095] print_req_error: I/O error, dev sr0, sector 2096864
[899894.336101] Buffer I/O error on dev sr0, logical block 2096864, async page read
[899894.336128] sr 6:0:0:0: [sr0] tag#0 unaligned transfer


'blockdev --report' yields

RO RA SSZ BSZ StartSec Size Device
rw 256 512 512 0 1073741312 /dev/sr0

Note the wrong sector wize which should be 2048 for CD/DVD. Those
numbers remain the same for all DVDs I tried (all larger than 1Gib).
The very same DVD on the same machine but in the Panasonic drive works
and gives this output instead

RO RA SSZ BSZ StartSec Size Device
rw 256 2048 4096 0 3978297344 /dev/sr1


The LG drive works well so far for CDs. But if I insert a CD first, use it
and replace it with a DVD, the output of 'blockdev' still shows the
values it had for the CD and the “available size” of the DVD is limited to
that of the CD.

Logs
~~~~
1a) 'dmesg' when connecting the LG drive

[899344.817878] usb 2-1: new high-speed USB device number 21 using xhci_hcd
[899344.971970] usb 2-1: New USB device found, idVendor=0e8d, idProduct=1887, bcdDevice= 0.00
[899344.971980] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[899344.971985] usb 2-1: Product: Portable Super Multi Drive
[899344.971989] usb 2-1: Manufacturer: Hitachi-LG Data Storage Inc
[899344.971993] usb 2-1: SerialNumber: K50IAFC2428
[899344.975740] usb-storage 2-1:1.0: USB Mass Storage device detected
[899344.976051] scsi host6: usb-storage 2-1:1.0
[899346.013443] scsi 6:0:0:0: CD-ROM HL-DT-ST DVDRAM GP57EB40 PF01 PQ: 0 ANSI: 0
[899346.022425] sr 6:0:0:0: Power-on or device reset occurred
[899346.037139] sr 6:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[899346.037676] sr 6:0:0:0: Attached scsi CD-ROM sr0
[899346.038083] sr 6:0:0:0: Attached scsi generic sg1 type 5

1b) 'dmesg' when connecting the Panasonic drive

[927228.600264] usb 2-2: new high-speed USB device number 31 using xhci_hcd
[927228.749230] usb 2-2: New USB device found, idVendor=13fd, idProduct=0840, bcdDevice= 1.12
[927228.749240] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[927228.749244] usb 2-2: Product: External
[927228.749248] usb 2-2: Manufacturer: Generic
[927228.749252] usb 2-2: SerialNumber: 554834332020353639363234
[927228.749850] usb-storage 2-2:1.0: USB Mass Storage device detected
[927228.750119] scsi host7: usb-storage 2-2:1.0
[927229.778136] scsi 7:0:0:0: CD-ROM MATSHITA DVD-RAM UJ890AS 1.00 PQ: 0 ANSI: 0
[927229.780495] sr 7:0:0:0: Power-on or device reset occurred
[927229.784165] sr 7:0:0:0: [sr1] scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[927229.784716] sr 7:0:0:0: Attached scsi CD-ROM sr1
[927229.785046] sr 7:0:0:0: Attached scsi generic sg2 type 5


2a) 'lsusb -vvv' for the LG drive

Bus 002 Device 030: ID 0e8d:1887 MediaTek Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0e8d MediaTek Inc.
idProduct 0x1887
bcdDevice 0.00
iManufacturer 1 Hitachi-LG Data Storage Inc
iProduct 2 Portable Super Multi Drive
iSerial 3 K50IAFC2428
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0020
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 Default
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 2 SFF-8020i, MMC-2 (ATAPI)
bInterfaceProtocol 80
iInterface 5 6238--Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval can't get debug descriptor: Resource temporarily unavailable
can't get device qualifier: Resource temporarily unavailable
can't get debug descriptor: Resource temporarily unavailable
0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)


2b) 'lsusb -vvv' for the Panasonic drive

Bus 002 Device 031: ID 13fd:0840 Initio Corporation INIC-1618L SATA
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUcan't get debug descriptor: Resource temporarily unavailable
SB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x13fd Initio Corporation
idProduct 0x0840 INIC-1618L SATA
bcdDevice 1.12
iManufacturer 1 Generic
iProduct 2 External
iSerial 3 554834332020353639363234
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0020
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 2 SFF-8020i, MMC-2 (ATAPI)
bInterfaceProtocol 80
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0001
Self Powered

-- Package-specific info:
** Kernel log: boot messages should be attached

** Model information
sys_vendor: LENOVO
product_name: 2325AJG
product_version: ThinkPad X230
chassis_vendor: LENOVO
chassis_version: Not Available
bios_vendor: LENOVO
bios_version: G2ETB4WW (2.74 )
board_vendor: LENOVO
board_name: 2325AJG
board_version: Win8 Pro DPK TPG

** PCI devices:
00:00.0 Host bridge [0600]: Intel Corporation 3rd Gen Core processor DRAM Controller [8086:0154] (rev 09)
Subsystem: Lenovo 3rd Gen Core processor DRAM Controller [17aa:21fa]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
Latency: 0
Capabilities: <access denied>
Kernel driver in use: ivb_uncore

00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
Subsystem: Lenovo 3rd Gen Core processor Graphics Controller [17aa:21fa]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 31
Region 0: Memory at f0000000 (64-bit, non-prefetchable) [size=4M]
Region 2: Memory at e0000000 (64-bit, prefetchable) [size=256M]
Region 4: I/O ports at 5000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915

00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04) (prog-if 30 [XHCI])
Subsystem: Lenovo 7 Series/C210 Series Chipset Family USB xHCI Host Controller [17aa:21fa]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 29
Region 0: Memory at f1520000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci

00:16.0 Communication controller [0780]: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 [8086:1e3a] (rev 04)
Subsystem: Lenovo 7 Series/C216 Chipset Family MEI Controller [17aa:21fa]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 27
Region 0: Memory at f1535000 (64-bit, non-prefetchable) [size=16]
Capabilities: <access denied>
Kernel driver in use: mei_me
Kernel modules: mei_me

00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Connection [8086:1502] (rev 04)
Subsystem: Lenovo 82579LM Gigabit Network Connection (Lewisville) [17aa:21f3]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 32
Region 0: Memory at f1500000 (32-bit, non-prefetchable) [size=128K]
Region 1: Memory at f153b000 (32-bit, non-prefetchable) [size=4K]
Region 2: I/O ports at 5080 [size=32]
Capabilities: <access denied>
Kernel driver in use: e1000e
Kernel modules: e1000e

00:1a.0 USB controller [0c03]: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 [8086:1e2d] (rev 04) (prog-if 20 [EHCI])
Subsystem: Lenovo 7 Series/C216 Chipset Family USB Enhanced Host Controller [17aa:21fa]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 16
Region 0: Memory at f153a000 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci

00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
Subsystem: Lenovo 7 Series/C216 Chipset Family High Definition Audio Controller [17aa:21fa]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 28
Region 0: Memory at f1530000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel

00:1c.0 PCI bridge [0604]: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 [8086:1e10] (rev c4) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 16
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00004000-00004fff
Memory behind bridge: f0d00000-f14fffff
Prefetchable memory behind bridge: 00000000f0400000-00000000f0bfffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport

00:1c.1 PCI bridge [0604]: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 [8086:1e12] (rev c4) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin B routed to IRQ 17
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
Memory behind bridge: f0c00000-f0cfffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA- VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport

00:1d.0 USB controller [0c03]: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 [8086:1e26] (rev 04) (prog-if 20 [EHCI])
Subsystem: Lenovo 7 Series/C216 Chipset Family USB Enhanced Host Controller [17aa:21fa]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 23
Region 0: Memory at f1539000 (32-bit, non-prefetchable) [size=1K]
Capabilities: <access denied>
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci

00:1f.0 ISA bridge [0601]: Intel Corporation QM77 Express Chipset LPC Controller [8086:1e55] (rev 04)
Subsystem: Lenovo QM77 Express Chipset LPC Controller [17aa:21fa]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Capabilities: <access denied>
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich

00:1f.2 SATA controller [0106]: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] [8086:1e03] (rev 04) (prog-if 01 [AHCI 1.0])
Subsystem: Lenovo 7 Series Chipset Family 6-port SATA Controller [AHCI mode] [17aa:21fa]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin B routed to IRQ 26
Region 0: I/O ports at 50a8 [size=8]
Region 1: I/O ports at 50b4 [size=4]
Region 2: I/O ports at 50a0 [size=8]
Region 3: I/O ports at 50b0 [size=4]
Region 4: I/O ports at 5060 [size=32]
Region 5: Memory at f1538000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: ahci
Kernel modules: ahci

00:1f.3 SMBus [0c05]: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller [8086:1e22] (rev 04)
Subsystem: Lenovo 7 Series/C216 Chipset Family SMBus Controller [17aa:21fa]
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin C routed to IRQ 18
Region 0: Memory at f1534000 (64-bit, non-prefetchable) [size=256]
Region 4: I/O ports at efa0 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801

02:00.0 System peripheral [0880]: Ricoh Co Ltd PCIe SDXC/MMC Host Controller [1180:e823] (rev 07) (prog-if 01)
Subsystem: Lenovo PCIe SDXC/MMC Host Controller [17aa:21fa]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 16
Region 0: Memory at f0d00000 (32-bit, non-prefetchable) [size=256]
Capabilities: <access denied>
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pci

03:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] [8086:0085] (rev 34)
Subsystem: Intel Corporation Centrino Advanced-N 6205 AGN [8086:1311]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 30
Region 0: Memory at f0c00000 (64-bit, non-prefetchable) [size=8K]
Capabilities: <access denied>
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi


** USB devices:
Bus 004 Device 107: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse (M-BT58)
Bus 004 Device 103: ID 17ef:100a Lenovo ThinkPad Mini Dock Plus Series 3
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 042: ID 0bdb:1926 Ericsson Business Mobile Networks BV H5321 gw Mobile Broadband Driver
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


-- System Information:
Debian Release: buster/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages linux-image-4.19.0-4-amd64 depends on:
ii initramfs-tools [linux-initramfs-tool] 0.133
ii kmod 26-1
ii linux-base 4.5

Versions of packages linux-image-4.19.0-4-amd64 recommends:
ii apparmor 2.13.2-10
pn firmware-linux-free <none>
ii irqbalance 1.5.0-3

Versions of packages linux-image-4.19.0-4-amd64 suggests:
pn debian-kernel-handbook <none>
ii grub-pc 2.02+dfsg1-16
pn linux-doc-4.19 <none>

Versions of packages linux-image-4.19.0-4-amd64 is related to:
pn firmware-amd-graphics <none>
pn firmware-atheros <none>
pn firmware-bnx2 <none>
pn firmware-bnx2x <none>
pn firmware-brcm80211 <none>
pn firmware-cavium <none>
pn firmware-intel-sound <none>
pn firmware-intelwimax <none>
pn firmware-ipw2x00 <none>
pn firmware-ivtv <none>
pn firmware-iwlwifi <none>
pn firmware-libertas <none>
pn firmware-linux-nonfree <none>
pn firmware-misc-nonfree <none>
pn firmware-myricom <none>
pn firmware-netxen <none>
pn firmware-qlogic <none>
pn firmware-realtek <none>
pn firmware-samsung <none>
pn firmware-siano <none>
pn firmware-ti-connectivity <none>
pn xen-hypervisor <none>

-- no debconf information

Jan

unread,
Apr 25, 2019, 10:40:03 AM4/25/19
to
Short addendum after additional tests:

Apr 9, 2019, 5:00 PM by bug-re...@tuta.io:

> Connecting the LG drive to the laptop (direct connection, no hubs
> involved) and inserting a DVD will report that DVD's total size to
> be about 1GiB.
>
This applies only to *video* DVDs, no matter whether they are tainted by DRM or not. Data DVDs work without problems so far.


> The LG drive works well so far for CDs. But if I insert a CD first, use it
> and replace it with a DVD, the output of 'blockdev' still shows the
> values it had for the CD and the “available size” of the DVD is limited to
> that of the CD.
>
Here as well, replace “CD” with “data DVD”. That means after inserting (mounting or reading is irrelevant), Video DVDs also work if the previously inserted DVD was as large or larger. While this provides some workaround that original problem persists.

I'm at a loss of ideas what the trigger could be. AFAIK video DVD *are* ordinary data DVDs with some predefined file layout.


Regards, Jan

Jan

unread,
Apr 28, 2019, 7:40:02 PM4/28/19
to
Another update:
The also works with FreeBSD. I only checked in a VM but since the USB device is passed through that should not affect the result. FreeBSD provides the following information when connection the DVD drive

> ugen1.2: <Hitachi-LG Data Storage Inc Portable Super Multi Drive> at usbus1
> umass0 on uhub0
> umass0: <6238--Storage> on usbus1
> umass0:  8070i (ATAPI) over Bulk-Only; quirks = 0x0100
> umass0:2:0: Attached to scbus2
> cd0 at umass-sim0 bus 0 scbus2 target 0 lun 0
> cd0: <HL-DT-ST DVDRAM GP57EB40 PF01> Removable CD-ROM SCSI device
> cd0: 40.000MB/s transfers
> cd0: 3794MB (1942528 2048 byte sectors)
> cd0: quirks=0x10<10_BYTE_ONLY>

These test also lead to another interesting observation: Assigning the drive to a VirtualBox VM (FreeBSD in this case) and then giving it back it to the native Linux, will make it properly recognize the DVD currently in the drive. Unloading and reloading the 'usb-storage' kernel module has a similar effect. I tried the available quirks of the 'usb-storage' module (especially 'US_FL_INITIAL_READ10' looked promising), but to no avail.

Regards, Jan

Steve Cotton

unread,
Nov 7, 2019, 3:20:02 PM11/7/19
to
On Tue, Apr 09, 2019 at 05:00:49PM +0200, Jan wrote:
> JFTR: I do not have 'udftools' installed.

Hi Jan,

Is there any mention of pktsetup or pktcdvd in dmesg? Although you don't have
udftools installed, it seems most of the implementation is in the kernel;
udftools's pktsetup is just a userland tool for running modprobe, sending a
couple of ioctls, and printing status.

BTW, thanks for the hint about udftools, it solved my problem if not yours.

BR,
Steve

Jan

unread,
Nov 17, 2019, 5:20:02 PM11/17/19
to
Hi!

Sorry, forgot to also send the answer to the bug tracker. So here's an updated version:

Nov 7, 2019, 20:57 by st...@s.cotton.clara.co.uk:

> Is there any mention of pktsetup or pktcdvd in dmesg? Although you don't have
> udftools installed, it seems most of the implementation is in the kernel;
> udftools's pktsetup is just a userland tool for running modprobe, sending a
> couple of ioctls, and printing status.
>
Thanks for the hint. I just rechecked with the current Bullseye kernel
$ uname -a
Linux aurora 5.2.0-3-amd64 #1 SMP Debian 5.2.17-1 (2019-09-26) x86_64 GNU/Linux

All symptoms described in this bug report remain and there's no mention of pktsetup or pktcdvd in 'journalctl'
# journalctl | grep pkt
<nothing>

Regards, Jan
0 new messages