NetBSD Problem Report #36648

From sbowman@joimail.com  Sun Jul 15 01:03:53 2007
Return-Path: <sbowman@joimail.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 8E81663B93E
	for <gnats-bugs@gnats.netbsd.org>; Sun, 15 Jul 2007 01:03:53 +0000 (UTC)
Message-Id: <E1I9rTj-0001XL-00@blizzard>
Date: Sat, 14 Jul 2007 16:56:47 -0700
From: sbowman@joimail.com
Sender: Steve Bowman <sbowman@NetBSD.org>
Reply-To: sbowman@joimail.com
To: gnats-bugs@NetBSD.org
Subject: No SATA DVD on viaide, kernel hangs on repeated mount attempts
X-Send-Pr-Version: 3.95

>Number:         36648
>Category:       port-i386
>Synopsis:       No SATA DVD on viaide, kernel hangs on repeated mount attempts
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 15 01:05:00 +0000 2007
>Closed-Date:    
>Last-Modified:  Sun May 01 00:24:50 +0000 2011
>Originator:     Steve Bowman
>Release:        NetBSD 4.99.23, CVS date 20070713
>Organization:
>Environment:
System: NetBSD icicle 4.99.23 NetBSD 4.99.23 (GENERIC) #0: Fri Jul 13 03:13:39 MST 2007 root@glacier:/usr/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
SATA DVD LG model GSA-H62N fails to mount.  Repeated attempts cause
kernel hang.  Output from mount:
  mount -t cd9660 /dev/cd0a /mnt
  mount_cd9660: /dev/cd0a on /mnt: Input/output error
In /var/log/messages:
  /netbsd: viaide0:1:0: lost interrupt
  /netbsd: type: atapi tc_bcount: 32 tc_skip: 0
  /netbsd: viaide0:1:0: bus-master DMA error: missing interrupt, status=0x21
  /netbsd: viaide0:1:0: device timeout, c_bcount=32, c_skip=0
  /netbsd: cd0(viaide0:1:0): generic HBA error
Kernel is current GENERIC; however, both failure to mount and
  eventual hang also occurs with GENERIC.NOACPI and 3.1_STABLE and
  with current GENERIC and 3.1_STABLE with various options such as
  PCI_{ADDR,BUS,INTR}_FIXUP, PCIBIOS, etc. in assorted combinations.
  A few BIOS settings were also tested including BusMaster
  enable/disable.  The drive does work and is currently the boot
  device.  Motherboard is Soyo KT880.  Previous non-SATA DVDROM
  worked.
Dmesg output:
NetBSD 4.99.23 (GENERIC) #0: Fri Jul 13 03:13:39 MST 2007
	root@glacier:/usr/obj/sys/arch/i386/compile/GENERIC
total memory = 510 MB
rbus: rbus_min_start set to 0x40000000
avail memory = 491 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xf0010
mainbus0 (root)
cpu0 at mainbus0 apid 0: (boot processor)
cpu0: AMD Athlon XP 3200+ (686-class), 2205.16 MHz, id 0x6a0
cpu0: features c3c3fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features c3c3fbff<PGE,MCA,CMOV,PAT,PSE36,MMXX,MMX>
cpu0: features c3c3fbff<FXSR,SSE,3DNOW2,3DNOW>
cpu0: "AMD Athlon(tm) XP 3200+"
cpu0: I-cache 64 KB 64B/line 2-way, D-cache 64 KB 64B/line 2-way
cpu0: L2 cache 512 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: AMD Power Management features: 1<TS>
cpu0: calibrating local timer
cpu0: apic clock running at 400 MHz
cpu0: 8 page colors
ioapic0 at mainbus0 apid 1
ioapic0: pa 0xfec00000, version 3, 24 pins
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: using Intel ACPI CA subsystem version 20060217
acpi0: X/RSDT: OemId <A M I ,OEMRSDT ,10000410>, AslId <MSFT,00000097>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 24-bit timer
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
PNP0A03 [PCI/PCI-X Host Bridge] at acpi0 not configured
PNP0000 [AT Interrupt Controller] at acpi0 not configured
PNP0200 [AT DMA Controller] at acpi0 not configured
attimer1 at acpi0 (PNP0100): AT Timer
attimer1: io 0x40-0x43 irq 0
PNP0B00 [AT Real-Time Clock] at acpi0 not configured
pckbc1 at acpi0 (PNP0303): kbd port
pckbc1: io 0x60,0x64 irq 1
pckbc2 at acpi0 (PNP0F03): aux port
pckbc2: irq 12
pcppi1 at acpi0 (PNP0800)
pcppi1: io 0x61
midi0 at pcppi1: PC speaker (CPU-intensive output)
sysbeep0 at pcppi1
npx1 at acpi0 (PNP0C04)
npx1: io 0xf0-0xff irq 13
npx1: reported by CPUID; using exception 16
com3 at acpi0 (PNP0501-1)
com3: io 0x3f8-0x3ff irq 4
com3: ns16550a, working fifo
PNP0700 [PC standard floppy disk controller] at acpi0 not configured
lpt3 at acpi0 (PNP0400)
lpt3: io 0x378-0x37f irq 7
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0C01 [System Board] at acpi0 not configured
acpibut0 at acpi0 (PNP0C0C-170): ACPI Power Button
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
acpibut1 at acpi0 (PNP0C0E): ACPI Sleep Button
apm0 at acpi0: Power Management spec V1.2
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi1: attached to attimer1
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 KT880 CPU to PCI Bridge (rev. 0x00)
agp0 at pchb0 (v3): aperture at 0xe0000000, size 0xf000000
pchb1 at pci0 dev 0 function 1
pchb1: VIA Technologies KT880 CPU to PCI Bridge (rev. 0x00)
pchb2 at pci0 dev 0 function 2
pchb2: VIA Technologies KT880 CPU to PCI Bridge (rev. 0x00)
pchb3 at pci0 dev 0 function 3
pchb3: VIA Technologies KT880 CPU to PCI bridge (rev. 0x00)
pchb4 at pci0 dev 0 function 4
pchb4: VIA Technologies KT880 CPU to PCI Bridge (rev. 0x00)
pchb5 at pci0 dev 0 function 7
pchb5: VIA Technologies KT880 CPU to PCI Bridge (rev. 0x00)
ppb0 at pci0 dev 1 function 0: VIA Technologies VT8377CE CPU-AGP Bridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: NVIDIA product 0x00f3 (rev. 0xa2)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
direct rendering for vga1 unsupported
vge0 at pci0 dev 7 function 0: VIA VT612X Gigabit Ethernet (rev. 0x11)
vge0: interrupting at ioapic0 pin 17 (irq 5)
vge0: Ethernet address: 00:50:2c:0a:4b:ba
ciphy0 at vge0 phy 1: Cicada CS8201 10/100/1000TX PHY, rev. 1
ciphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
fwohci0 at pci0 dev 13 function 0: VIA Technologies VT6306 IEEE 1394 Host Controller (rev. 0x80)
fwohci0: interrupting at ioapic0 pin 19 (irq 3)
fwohci0: OHCI version 1.10 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:50:2c:00:00:0a:3b:2f
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
Acer Labs product 0x5281 (miscellaneous mass storage, interface 0x85, revision 0xa1) at pci0 dev 14 function 0 not configured
Acer Labs product 0x5228 (miscellaneous mass storage, interface 0x85, revision 0xc6) at pci0 dev 14 function 1 not configured
viaide0 at pci0 dev 15 function 0
viaide0: VIA Technologies VT8237 SATA Controller (rev. 0x80)
viaide0: bus-master DMA support present
viaide0: primary channel configured to native-PCI mode
viaide0: using ioapic0 pin 20 (irq 10) for native-PCI interrupt
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to native-PCI mode
atabus1 at viaide0 channel 1
viaide1 at pci0 dev 15 function 1
viaide1: VIA Technologies VT8237 ATA133 controller
viaide1: bus-master DMA support present
viaide1: primary channel configured to compatibility mode
viaide1: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus2 at viaide1 channel 0
viaide1: secondary channel configured to compatibility mode
viaide1: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus3 at viaide1 channel 1
uhci0 at pci0 dev 16 function 0: VIA Technologies VT83C572 USB Controller (rev. 0x81)
uhci0: interrupting at ioapic0 pin 21 (irq 11)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologies 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 16 function 1: VIA Technologies VT83C572 USB Controller (rev. 0x81)
uhci1: interrupting at ioapic0 pin 21 (irq 11)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x81)
uhci2: interrupting at ioapic0 pin 21 (irq 5)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 16 function 3: VIA Technologies VT83C572 USB Controller (rev. 0x81)
uhci3: interrupting at ioapic0 pin 21 (irq 5)
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 4: VIA Technologies VT8237 EHCI USB Controller (rev. 0x86)
ehci0: interrupting at ioapic0 pin 21 (irq 10)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: VIA Technologies EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib0 at pci0 dev 17 function 0
pcib0: VIA Technologies VT8237 (Apollo KT600) PCI-ISA Bridge (rev. 0x00)
auvia0 at pci0 dev 17 function 5: VIA Technologies VT8237 AC'97 Audio (rev 0x60)
auvia0: interrupting at ioapic0 pin 22 (irq 10)
auvia0: ac97: Avance Logic ALC850 codec; no 3D stereo
auvia0: ac97: ext id 9c6<AC97_23,LDAC,SDAC,CDAC,SPDIF,DRA>
audio0 at auvia0: full duplex, independent
isa0 at pcib0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
viaide0 port 0: device present, speed: 1.5Gb/s
viaide0 port 1: device present, speed: 1.5Gb/s
wd0 at atabus0 drive 0: <ST3250823AS>
wd0: quirks 2<FORCE_LBA48>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 232 GB, 484521 cyl, 16 head, 63 sec, 512 bytes/sect x 488397168 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <HL-DT-ST DVDRAM GSA-H62N, K6974GE1051, CL00> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
cd0(viaide0:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
wd1 at atabus2 drive 0: <Maxtor 92049U6>
wd1: drive supports 16-sector PIO transfers, LBA addressing
wd1: 19473 MB, 39566 cyl, 16 head, 63 sec, 512 bytes/sect x 39882528 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd2 at atabus2 drive 1: <IC35L040AVER07-0>
wd2: drive supports 16-sector PIO transfers, LBA addressing
wd2: 39266 MB, 79780 cyl, 16 head, 63 sec, 512 bytes/sect x 80418240 sectors
wd2: 32-bit data port
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(viaide1:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
wd2(viaide1:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
atapibus1 at atabus3: 2 targets
Kernelized RAIDframe activated
viaide1:1:1: lost interrupt
	type: ata tc_bcount: 512 tc_skip: 0
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)
>How-To-Repeat:
Attempt to mount /dev/cd0a.
>Fix:
No fix nor workaround known.

>Release-Note:

>Audit-Trail:
From: Steve Bowman <sbowman@joimail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-i386/36648: No SATA DVD on viaide, kernel hangs on
	repeated mount attempts
Date: Sun, 24 Aug 2008 08:18:23 -0700

 I haven't looked at this for awhile, but I just found a workaround:
 disable viaide.  On kernel 4.99.72, pciide works fine.  Viaide still
 has the same problem already reported.

 Steve

From: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/36648
Date: Fri, 20 Nov 2009 21:42:14 +0000

 Could you try a kernel with src/sys/dev/pci/viaide.c r1.63
 (or at least with the 1.62->1.63 change)?

State-Changed-From-To: open->feedback
State-Changed-By: jakllsch@NetBSD.org
State-Changed-When: Fri, 20 Nov 2009 21:47:40 +0000
State-Changed-Why:
there's a possibility this has been fixed
.


State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 01 May 2011 00:24:50 +0000
State-Changed-Why:
Feedback timeout. Unless someone else has seen this problem and knows for
sure that it is (or isn't) fixed, or has the exact same hardware, we're
not likely to get anywhere, unfortunately.

The problem is "generic HBA error" on a DVD drive attached to viaide,
namely viaide0: VIA Technologies VT8237 SATA Controller (rev. 0x80)


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.