Subject: bin/22029: file avseq01.mpg yields avseq01.mpg: ERROR: Cannot read `avseq01.mpg' Invalid argument in IDE DVD drive, works fine in IDE CDROM
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ctribo@hopi.dtcc.edu>
List: netbsd-bugs
Date: 07/01/2003 19:43:25
>Number:         22029
>Category:       bin
>Synopsis:       file avseq01.mpg yields avseq01.mpg: ERROR: Cannot read `avseq01.mpg' Invalid argument in IDE DVD drive, works fine in IDE CDROM
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 01 19:44:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Chris Tribo
>Release:        1.6T
>Organization:
>Environment:
1.6T NetBSD 1.6T (atlantis) #1: Tue Jun 10 14:31:03 EDT
2003  root@atlantis.dtcc.edu:/m/obj/sys/arch/i386/compile/atlantis i386
>Description:
I'm split between bin and kern, so I put it in bin for starters, please transfer if this was the wrong move.

when I type file /mnt2/mpeg/avseq01.mpg which is an VCD in my DVD drive, I get:

avseq01.mpg: ERROR: Cannot read `avseq01.mpg' Invalid argument
atlantis[/mnt2/mpeg2] # Jul  1 15:21:52 atlantis /netbsd: cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00

stat ing the file on the same device doesn't show any problems

stat avseq01.mpg 
1539 41056 -r-xr-xr-x 1 root wheel 0 707983360 "Jul 13 20:00:00 1978" "Jul 13 20:00:00 1978" "Jul 13 20:00:00 1978" "Dec 31 19:00:01 1969" 2048 1382780 avseq01.mpg

When I put the disc in my CDROM drive, file works fine as well.

atlantis[/mnt2/mpeg2] # file avseq01.mpg 
avseq01.mpg: MPEG system stream data

mplayer seems to be able to read the CD fine in either drive, so I'm guessing it's a bug with file and DVD devices, but that doesn't make any sense. A userland application shouldn't be able to trigger something that abstract through a read request.

dmesg

NetBSD 1.6T (atlantis) #1: Tue Jun 10 14:31:03 EDT 2003
        root@atlantis.dtcc.edu:/m/obj/sys/arch/i386/compile/atlantis
total memory = 255 MB
avail memory = 234 MB
using 3297 buffers containing 13188 KB of memory
BIOS32 rev. 0 found at 0xfd790
PCI BIOS rev. 2.1 found at 0xfd993
pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xfdf20, size 192 bytes (10 entries)
PCI Interrupt Router at 000:07:0 (Intel 82371FB PCI-to-ISA Bridge (PIIX))
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:07:2 0x8086 0x7112   D  0x03   9  0    already assigned
000:13:0 0x10b7 0x9055   A  0x00  11  0    already assigned
000:16:0 0x1102 0x0002   A  0x03   9  0    already assigned
001:00:0 0x10de 0x0110   A  0x00  11  0    already assigned
------------------------------------------
snip'ed
--------------------------[  0 devices bogus]
 Physical memory end: 0x0fffc000
 PCI memory mapped I/O space start: 0x10000000
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 498.88 MHz, id 0x672
cpu0: features 387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 387f9ff<PGE,MCA,CMOV,PAT,PSE36,PN,MMX>
cpu0: features 387f9ff<FXSR,SSE>
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu0: L2 cache 512 KB 32b/line 4-way
cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
cpu0: 32 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
agp0 at pchb0: aperture at 0xec000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: Nvidia Corporation GeForce2 MX (rev. 0xa1)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371AB PCI-to-ISA Bridge (PIIX4) (rev. 0x02)
pciide0 at pci0 dev 7 function 1: Intel 82371AB IDE controller (PIIX4) (rev. 0x0
1)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <MAXTOR 4K020H1>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 19470 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 39876480 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1 at pciide0 channel 0 drive 1: <Maxtor 92048D8>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 19531 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40000464 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data 
transfers)
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data 
transfers)
pciide0: secondary channel wired to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <TOSHIBA DVD-ROM SD-M1202, 2900909316, 1020> cdrom rem
ovable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd1 at atapibus0 drive 1: <PLEXTOR CD-R   PX-W2410A, 820886, 1.03> cdrom removab
le
cd1: 32-bit data port
cd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data 
transfers)
uhci0 at pci0 dev 7 function 2: Intel 82371AB USB Host Controller (PIIX4) (rev. 
0x01)
uhci0: interrupting at irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revisio
n 0x02) at pci0 dev 7 function 3 not configured
ex0 at pci0 dev 13 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x34)
ex0: interrupting at irq 11
ex0: MAC address 00:50:04:62:e0:bf
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
emuxki0 at pci0 dev 16 function 0: Creative Labs SBLive! EMU 10000 (audio multim
edia, revision 0x07)
emuxki0: interrupting at irq 9
emuxki0: SigmaTel STAC9721/23 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at emuxki0: full duplex, mmap, independent
joy0 at pci0 dev 16 function 1: Creative Labs PCI Gameport Joystick (rev 0x07)
joy0: joystick not connected
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
IPsec: Initialized Security Association Processing.
boot device: wd0
root on wd0a dumps on wd0b
IP Filter: v3.4.29 initialized.  Default = pass all, Logging = enabled
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
XFree86 aperture driver version 2.0
Pentium Pro MTRR support enabled
cd0: no disk label
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 24 00 00 c0 00 06
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 24 00 00 c0 00 06
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 24 00 00 c0 00 06
cd1: no disk label
cd1(pciide0:1:1): illegal request, data = 00 00 00 00 24 00 00 00 00 00
cd1(pciide0:1:1): illegal request, data = 00 00 00 00 24 00 00 00 00 00
cd1(pciide0:1:1): illegal request, data = 00 00 00 00 24 00 00 00 00 00
cd0: no disk label
cd0(pciide0:1:0): illegal request, data = 00 00 00 00 64 00 00 00 00 00


also, from mplayer I see

Playing /dev/rcd0d
track 01:  adr=1  ctrl=4  format=2  00:02:00
track 02:  adr=1  ctrl=4  format=2  00:08:00
ioctl dif1: Invalid argument
Jul  1 15:42:10 atlantis last message repeated 3 times
scsi command failed: status 3 error 0
scsi command failed: status 3 error 0

>How-To-Repeat:
use a VCD in a DVD drive
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: