NetBSD Problem Report #18568
Received: (qmail 28864 invoked by uid 605); 7 Oct 2002 12:59:52 -0000
Message-Id: <20021007125928.8182B11122@narn.netbsd.org>
Date: Mon, 7 Oct 2002 05:59:28 -0700 (PDT)
From: teemu@rinta-aho.org
Sender: gnats-bugs-owner@netbsd.org
Reply-To: teemu@rinta-aho.org
To: gnats-bugs@gnats.netbsd.org
Subject: VIA VT8233A ATA133 controller transfer errors
X-Send-Pr-Version: www-1.0
>Number: 18568
>Category: kern
>Synopsis: VIA VT8233A ATA133 controller transfer errors
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bouyer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 07 13:00:01 +0000 2002
>Closed-Date: Sun Apr 06 19:05:47 +0000 2003
>Last-Modified: Sun Apr 06 19:05:47 +0000 2003
>Originator: Teemu Rinta-aho
>Release: 1.6
>Organization:
>Environment:
NetBSD n42 1.6 NetBSD 1.6 (N42) #0: Mon Oct 7 15:33:03 EEST 2002 root@n42:/usr/src/sys/arch/i386/compile/N42 i386
>Description:
I have a standard PC with Octek KT333-ASE motherboard, which has
the VIA KT333 chipset. I also have an IBM GXP120 80GB hard disk
connected to the motherboard with an Ultra-ATA cable. I am getting
similar problem as I had couple of years ago with the KT133 chipset
on an Asus motherboard and an older IBM disk... Here are some interesting parts of my dmesg:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: teemu@rinta-aho.org
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/18568: VIA VT8233A ATA133 controller transfer errors
Date: Mon, 7 Oct 2002 21:47:35 +0200
On Mon, Oct 07, 2002 at 05:59:28AM -0700, teemu@rinta-aho.org wrote:
> >Description:
> I have a standard PC with Octek KT333-ASE motherboard, which has
> the VIA KT333 chipset. I also have an IBM GXP120 80GB hard disk
> connected to the motherboard with an Ultra-ATA cable. I am getting
> similar problem as I had couple of years ago with the KT133 chipset
> on an Asus motherboard and an older IBM disk... Here are some interesting parts of my dmesg:
It seems your PR was trucated. Can you post the dmesg (complete, please) and
more details on the error ?
--
Manuel Bouyer <bouyer@antioche.eu.org>
--
From: "Teemu Rinta-aho" <teemu@rinta-aho.org>
To: "Manuel Bouyer" <bouyer@antioche.eu.org>
Cc: <gnats-bugs@gnats.netbsd.org>, <gnats-admin@gnats.netbsd.org>,
<kern-bug-people@netbsd.org>
Subject: Re: kern/18568: VIA VT8233A ATA133 controller transfer errors
Date: Mon, 7 Oct 2002 23:28:39 +0300
Hi,
I really don't have any more details, all I can see is what you can
see from the dmesg here. The hard disk is working fine, but not
at its full speed - there are no more errors after the DMA mode
downgrade.
My plans are to test the -current tomorrow and see if the
various patches in pci code there fix the problem. I will report when
I've done that.
By the way, the error appears also with the GENERIC kernel,
but here is the dmesg from my own kernel configuration:
NetBSD 1.6 (N42) #0: Mon Oct 7 15:33:03 EEST 2002
root@n42:/usr/src/sys/arch/i386/compile/N42
cpu0: AMD K7 (Athlon) (686-class), 1795.00 MHz
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 256 KB 64b/line 16-way
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
total memory = 511 MB
avail memory = 471 MB
using 6144 buffers containing 26292 KB of memory
BIOS32 rev. 0 found at 0xfb3f0
PCI BIOS rev. 2.1 found at 0xfb420
pcibios: config mechanism [1][x], special cycles [1][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xfdee0, size 144 bytes (7 entries)
PCI Interrupt Router at 000:17:0 (VIA Technologies VT82C596A (Apollo Pro)
PCI-ISA Bridge)
PCI Exclusive IRQs: 5 11
mainbus0 (root)
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: VIA Technologies VT8366 (Apollo KT266) CPU-PCI Bridge (rev. 0x00)
agp0 at pchb0: aperture at 0xe8000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT8366 CPU-AGP Bridge (rev.
0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: Nvidia Corporation GeForce2 MX [NV11] (rev.
0xb2)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ex0 at pci0 dev 9 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt
(rev. 0x78)
ex0: interrupting at irq 5
ex0: MAC address 00:04:75:c1:0b:db
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
eap0 at pci0 dev 10 function 0: Ensoniq CT5880 CT5880C (rev. 0x02)
eap0: interrupting at irq 11
eap0: SigmaTel STAC9708 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at eap0: full duplex, mmap, independent
pcib0 at pci0 dev 17 function 0
pcib0: VIA Technologies VT8233A PCI-ISA Bridge (rev. 0x00)
pciide0 at pci0 dev 17 function 1: VIA Technologies VT8233A ATA133
controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IC35L080AVVA07-0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 78533 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA
data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <HL-DT-STDVD-ROM GDR8161B, , 0100> type 5 cdrom
removable
cd0: 32-bit data port
cd0: 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, Ultra-DMA mode 2 (Ultra/33) (using DMA
data transfers)
uhci0 at pci0 dev 17 function 2: VIA Technologies VT83C572 USB Controller
(rev. 0x23)
uhci0: interrupting at irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologie UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 17 function 3: VIA Technologies VT83C572 USB Controller
(rev. 0x23)
uhci1: interrupting at irq 5
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologie UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: 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
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
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
apm0 at mainbus0: Power Management spec V1.2
biomask e765 netmask e765 ttymask f7e7
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wd0: transfer error, downgrading to Ultra-DMA mode 2
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA
data transfers)
wd0a: error writing fsbn 16 of 16-19 (wd0 bn 40960096; cn 40635 tn 0 sn 16),
retrying
wd0: (aborted command, interface CRC error)
wd0: soft error (corrected)
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)
----- Original Message -----
From: "Manuel Bouyer" <bouyer@antioche.eu.org>
To: <teemu@rinta-aho.org>
Cc: <gnats-bugs@gnats.netbsd.org>
Sent: Monday, October 07, 2002 10:47 PM
Subject: Re: kern/18568: VIA VT8233A ATA133 controller transfer errors
> On Mon, Oct 07, 2002 at 05:59:28AM -0700, teemu@rinta-aho.org wrote:
> > >Description:
> > I have a standard PC with Octek KT333-ASE motherboard, which has
> > the VIA KT333 chipset. I also have an IBM GXP120 80GB hard disk
> > connected to the motherboard with an Ultra-ATA cable. I am getting
> > similar problem as I had couple of years ago with the KT133 chipset
> > on an Asus motherboard and an older IBM disk... Here are some
interesting parts of my dmesg:
>
> It seems your PR was trucated. Can you post the dmesg (complete, please)
and
> more details on the error ?
>
> --
> Manuel Bouyer <bouyer@antioche.eu.org>
> --
>
>
From: Teemu Rinta-aho <teemu@rinta-aho.org>
To: Manuel Bouyer <bouyer@antioche.eu.org>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/18568: VIA VT8233A ATA133 controller transfer errors
Date: Tue, 8 Oct 2002 17:41:16 +0300 (EEST)
I booted up with a -current kernel, and the problem seems
to be gone...
Here is the dmesg crom -current (also see bottom of the message):
NetBSD 1.6I (N42) #0: Tue Oct 8 17:00:35 EEST 2002
root@n42:/usr/src/sys/arch/i386/compile/N42
total memory = 511 MB
avail memory = 471 MB
using 6144 buffers containing 26292 KB of memory
BIOS32 rev. 0 found at 0xfb3f0
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon XP 2200+ (686-class), 1795.01 MHz
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,FGPAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 256 KB 64b/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully
associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: 8 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: VIA Technologies VT8366 (Apollo KT266) CPU-PCI Bridge (rev. 0x00)
agp0 at pchb0: aperture at 0xe8000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT8366 CPU-AGP Bridge
(rev. 0x00
)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: Nvidia Corporation GeForce2 MX [NV11] (rev.
0xb2)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ex0 at pci0 dev 9 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt
(rev. 0x
78)
ex0: interrupting at irq 5
ex0: MAC address 00:04:75:c1:0b:db
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
eap0 at pci0 dev 10 function 0: Ensoniq CT5880 CT5880C (rev. 0x02)
eap0: interrupting at irq 11
eap0: SigmaTel STAC9708 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
eap0: surround DAC
audio0 at eap0: full duplex, mmap, independent
pcib0 at pci0 dev 17 function 0
pcib0: VIA Technologies VT8233A PCI-ISA Bridge (rev. 0x00)
pciide0 at pci0 dev 17 function 1: VIA Technologies VT8233A ATA133
controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <IC35L080AVVA07-0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 78533 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using
DMA data
transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <HL-DT-STDVD-ROM GDR8161B, , 0100> cdrom
removable
cd0: 32-bit data port
cd0: 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, Ultra-DMA mode 2 (Ultra/33) (using DMA
data
transfers)
uhci0 at pci0 dev 17 function 2: VIA Technologies VT83C572 USB Controller
(rev.
0x23)
uhci0: interrupting at irq 5
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologie UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 17 function 3: VIA Technologies VT83C572 USB Controller
(rev.
0x23)
uhci1: interrupting at irq 5
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologie UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: 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
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
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
apm0 at mainbus0: Power Management spec V1.2
biomask e765 netmask e765 ttymask f7e7
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
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)
I also tested the disk with the 1.6 and the 1.6I kernels
with 'dd if=/dev/zero of=/tmp/test bs=1024 count=500000'
Here are the results:
1.6 (ATA/33):
500000+0 records in
500000+0 records out
512000000 bytes transferred in 12.875 secs (39766990 bytes/sec)
1.6I (ATA/100):
500000+0 records in
500000+0 records out
512000000 bytes transferred in 14.012 secs (36540108 bytes/sec)
It is funny, that the 1.6 claims to have downgraded the
disk speed but this test shows that it is actually
faster. I don't know if that dd test is very accurate
or then there is something else above my understanding..
So, the problem has been fixed in -current but I can't
tell which of the patches does the trick. I will just
stick with the -current for now...
State-Changed-From-To: open->suspended
State-Changed-By: bouyer
State-Changed-When: Tue Oct 8 12:43:15 PDT 2002
State-Changed-Why:
This is probably fixed by rev 1.167 of pciide. A pullup request is in the
stalled queue.
Responsible-Changed-From-To: kern-bug-people->bouyer
Responsible-Changed-By: bouyer
Responsible-Changed-When: Tue Oct 8 12:43:15 PDT 2002
Responsible-Changed-Why:
I'll handle it.
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: Teemu Rinta-aho <teemu@rinta-aho.org>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/18568: VIA VT8233A ATA133 controller transfer errors
Date: Tue, 8 Oct 2002 21:44:20 +0200
On Tue, Oct 08, 2002 at 05:41:16PM +0300, Teemu Rinta-aho wrote:
> I booted up with a -current kernel, and the problem seems
> to be gone...
It's probably pciide.c rev 1.167:
Correct setup for Ultra133 capable VIA chipsets, From Matthias Drochner
on current-users, with cross-check and some improvement from linux-2.4.19
and FreeBSD-current.
Also don't set the APO_UDMA_CLK66 bit for Ultra/100 capable chipset, and
support Ultra/133 for the VT8233A.
There is a pullup to 1.6 requested, it's in the queue.
--
Manuel Bouyer <bouyer@antioche.eu.org>
--
State-Changed-From-To: suspended->closed
State-Changed-By: bouyer
State-Changed-When: Sun Apr 6 12:04:36 PDT 2003
State-Changed-Why:
Was waiting on pullup of pciide.c 1.167; this has been done.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.