From owner-freebsd-bugs Sun Dec 2 15: 0:26 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CEA7437B41A for ; Sun, 2 Dec 2001 15:00:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fB2N01K59072; Sun, 2 Dec 2001 15:00:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 11F3337B419 for ; Sun, 2 Dec 2001 14:58:18 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fB2MwI158943; Sun, 2 Dec 2001 14:58:18 -0800 (PST) (envelope-from nobody) Message-Id: <200112022258.fB2MwI158943@freefall.freebsd.org> Date: Sun, 2 Dec 2001 14:58:18 -0800 (PST) From: Craig Reyenga To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: i386/32447: Data corruption when reading from ATAPI CD-ROMs Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 32447 >Category: i386 >Synopsis: Data corruption when reading from ATAPI CD-ROMs >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 02 15:00:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Craig Reyenga >Release: FreeBSD 4.4-STABLE >Organization: None >Environment: FreeBSD fireball.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Sat Dec 1 18:57:48 PST 2001 root@fireball.net:/usr/obj/usr/source/src-4.4S/src/sys/K7KERN i386 >Description: With the VIA VT8233's onboard ATA100 controller, there is data corruption when reading from CDROM. The CDs will mount just fine, but when data is read, it is corrupted. Portions remain intact, however. This has been verified with clean regular CDs, CD-Rs and CD-RWs, all producing the same result. It has not been verified with CD-audio. There are actually two CD-ROMs on the second IDE channel, and the problem exists whether both are connected or just one. The Toshiba CD-ROM is worse than the Ricoh CD-Writer, but both are affected. Both also work perfectly in Windows 98 with or without VIA chipset patches. The mainboard is an EPoX EP-8KHA+ with an AMD processor. Verbose dmesg output: Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.4-STABLE #0: Sat Dec 1 18:57:48 PST 2001 root@fireball.tornado:/usr/obj/usr/source/src-4.4S/src/sys/K7KERN Calibrating clock(s) ... TSC clock: 1403287668 Hz, i8254 clock: 1193272 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method CPU: AMD Athlon(tm) XP 1600+ (1403.19-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383f9ff AMD Features=0xc0480000<,AMIE,DSP,3DNow!> Data TLB: 32 entries, fully associative Instruction TLB: 16 entries, fully associative L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative L2 internal cache: 256 kbytes, 64 bytes/line, 1 lines/tag, 8-way associative real memory = 268369920 (262080K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x003b0000 - 0x0ffe7fff, 264470528 bytes (64568 pages) avail memory = 257519616 (251484K bytes) bios32: Found BIOS32 Service Directory header at 0xc00fafc0 bios32: Entry = 0xfb430 (c00fb430) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0xb460 pnpbios: Found PnP BIOS data at 0xc00fbec0 pnpbios: Entry = f0000:bef0 Rev = 1.0 Other BIOS signatures found: ACPI: 000f70d0 Preloaded elf kernel "kernel" at 0xc0389000. VESA: information block 56 45 53 41 00 03 00 01 00 01 01 00 00 00 17 01 00 01 00 01 01 02 5b 01 00 01 72 01 00 01 83 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 VESA: 33 mode(s) found VESA: v3.0, 16384k memory, flags:0x1, mode table:0xc031b657 (1000117) VESA: 3dfx Interactive, Inc. VESA: 3dfx Interactive, Inc. Voodoo3 3500 TV 210-0371-00X netsmb_dev: loaded Pentium Pro MTRR support enabled pci_open(1): mode 1 addr port (0x0cf8) is 0x80010014 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=30991106) Using $PIR table, 7 entries at 0xc00fde70 apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard found-> vendor=0x1106, dev=0x3099, revid=0x00 class=06-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[10]: type 1, range 32, base e0000000, size 26 found-> vendor=0x1106, dev=0xb099, revid=0x00 class=06-04-00, hdrtype=0x01, mfdev=0 subordinatebus=1 secondarybus=1 found-> vendor=0x10ec, dev=0x8139, revid=0x10 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=11 map[10]: type 1, range 32, base 0000d000, size 8 map[14]: type 1, range 32, base eb000000, size 8 found-> vendor=0x109e, dev=0x036e, revid=0x02 class=04-00-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 intpin=a, irq=11 map[10]: type 1, range 32, base eb001000, size 12 found-> vendor=0x109e, dev=0x0878, revid=0x02 class=04-80-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 intpin=a, irq=11 map[10]: type 1, range 32, base eb002000, size 12 found-> vendor=0x1102, dev=0x0002, revid=0x07 class=04-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 intpin=a, irq=11 map[10]: type 1, range 32, base 0000d400, size 5 found-> vendor=0x1102, dev=0x7002, revid=0x07 class=09-80-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 map[10]: type 1, range 32, base 0000d800, size 3 found-> vendor=0x1106, dev=0x3074, revid=0x00 class=06-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x1106, dev=0x0571, revid=0x06 class=01-01-8a, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=255 map[20]: type 1, range 32, base 0000dc00, size 4 found-> vendor=0x1106, dev=0x3038, revid=0x1b class=0c-03-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=d, irq=11 map[20]: type 1, range 32, base 0000e000, size 5 found-> vendor=0x1106, dev=0x3038, revid=0x1b class=0c-03-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=d, irq=11 map[20]: type 1, range 32, base 0000e800, size 5 pci0: on pcib0 agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 agp0: allocating GATT for aperture of size 256M pcib1: at device 1.0 on pci0 found-> vendor=0x121a, dev=0x0005, revid=0x01 class=03-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=11 map[10]: type 1, range 32, base e4000000, size 25 map[14]: type 1, range 32, base e8000000, size 25 map[18]: type 1, range 32, base 0000c000, size 8 pci1: on pcib1 pci1: <3Dfx Voodoo 3 graphics accelerator> (vendor=0x121a, dev=0x0005) at 0.0 irq 11 rl0: port 0xd000-0xd0ff mem 0xeb000000-0xeb0000ff irq 11 at device 10.0 on pci0 rl0: Ethernet address: 00:50:bf:5a:eb:bd miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: rl0 attached bktr0: mem 0xeb001000-0xeb001fff irq 11 at device 11.0 on pci0 using shared irq11. iicbb0: on bti2c0 iicbus0: on iicbb0 master-only iicbus: iic devclass not found smbus0: on bti2c0 smbus: smb devclass not found brooktree0: PCI bus latency is 32. bktr0: buffer size 3555328, addr 0x5000000 bktr0: GPIO is 0x00fff7c3 bktr0: subsystem 0x1461 0x0002 bktr0: AVer Media TV/FM, Philips NTSC tuner. pci0: (vendor=0x109e, dev=0x0878) at 11.1 irq 11 pcm0: port 0xd400-0xd41f irq 11 at device 13.0 on pci0 emu: setmap (5d000, 800), nseg=1, error=0 emu: setmap (3b0000, 1000), nseg=1, error=0 pcm0: ac97 codec id 0x54524123 (TriTech TR28602) pcm0: ac97 codec features 5 bit master volume, no 3D Stereo Enhancement emu: setmap (3f0000, 1000), nseg=1, error=0 emu: setmap (430000, 1000), nseg=1, error=0 emu: setmap (470000, 1000), nseg=1, error=0 emu: setmap (4b0000, 1000), nseg=1, error=0 pcm: setmap 4f0000, 1000; 0xd0696000 -> 4f0000 pcm: setmap 530000, 1000; 0xd06d6000 -> 530000 pcm: setmap 570000, 1000; 0xd0716000 -> 570000 isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port 0xdc00-0xdc0f at device 17.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0xdc00 ata0: mask=03 status0=50 status1=00 ata0: mask=03 ostat0=50 ostat2=00 ata0-master: ATAPI probe a=00 b=00 ata0-slave: ATAPI probe a=00 b=00 ata0: mask=03 status0=50 status1=00 ata0-master: ATA probe a=01 b=a5 ata0: devices=01 ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0xdc08 ata1: mask=03 status0=50 status1=50 ata1: mask=03 ostat0=50 ostat2=50 ata1-master: ATAPI probe a=14 b=eb ata1-slave: ATAPI probe a=14 b=eb ata1: mask=03 status0=00 status1=00 ata1: devices=0c ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xe000-0xe01f irq 11 at device 17.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xe800-0xe81f irq 11 at device 17.4 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices orm0: