NetBSD Problem Report #37826

From martin@duskware.de  Mon Jan 21 03:08:19 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id B17B563BB1C
	for <gnats-bugs@gnats.netbsd.org>; Mon, 21 Jan 2008 03:08:19 +0000 (UTC)
Message-Id: <20080121025337.C0DA663BB1C@narn.NetBSD.org>
Date: Mon, 21 Jan 2008 02:53:37 +0000 (UTC)
From: develunix@gmail.com
Reply-To: develunix@gmail.com
To: netbsd-bugs-owner@NetBSD.org
Subject: Kernel sees only one SATA channel (out of four) on Abit AN52 motherboard (nvidia nf520__single chip)
X-Send-Pr-Version: www-1.0

>Number:         37826
>Category:       kern
>Synopsis:       Kernel sees only one SATA channel (out of four) on Abit AN52 motherboard (nvidia nf520__single chip)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 21 03:10:00 +0000 2008
>Closed-Date:    Tue Mar 31 06:07:53 +0000 2009
>Last-Modified:  Tue Mar 31 06:07:53 +0000 2009
>Originator:     Art Lemasters
>Release:        4.0 stable but also tried to boot a current kernel.
>Organization:
>Environment:
NetBSD 4.99.49 (MORDECHAI) #0: Thu Jan 10 21:27:07 MST 2008
	elijah@noah:/usr/obj/sys/arch/i386/compile/MORDECHAI

(That's with a 4.0 userland...also tried a 4.0 stable kernel with same results on the SATA problem)

>Description:
NetBSD only sees one SATA channel out of four. The BIOS sees the two hard drives plugged into two of the four hardware interfaces.

Further information that might be helpful:

  FreeBSD (7.0--live CD) sees both drives (the two drives plugged into two of the four SATA interfaces on the motherboard).

  NetBSD dmesg
  http://mail-index.netbsd.org/current-users/2008/01/11/0010.html

  FreeBSD dmesg
  http://mail-index.netbsd.org/current-users/2008/01/12/0018.html


>How-To-Repeat:
Try to boot NetBSD with SATA drive(s) plugged into any of the last three interfaces on an Abit AN52 motherboard with nvidia nf520 single chip. NetBSD can only see a drive on the first interface.


>Fix:
See the message posted by Jonathan Kollasch for a possible solution.

http://mail-index.netbsd.org/current-users/2008/01/12/0020.html


>Release-Note:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, develunix@gmail.com
Subject: Re: kern/37826: Kernel sees only one SATA channel (out of four) on Abit AN52 motherboard (nvidia nf520__single chip)
Date: Sun, 13 Apr 2008 02:43:37 +0000

 On Mon, Jan 21, 2008 at 03:10:00AM +0000, develunix@gmail.com wrote:
  > NetBSD only sees one SATA channel out of four. The BIOS sees the
  > two hard drives plugged into two of the four hardware interfaces.

 Possibly, duplicate of 38011 - does the patch therein help?

 -- 
 David A. Holland
 dholland@netbsd.org

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, develunix@gmail.com
Subject: Re: kern/37826: Kernel sees only one SATA channel (out of four) on
	Abit AN52 motherboard (nvidia nf520__single chip)
Date: Thu, 15 May 2008 00:04:50 +0000

 On Sun, Apr 13, 2008 at 02:43:37AM +0000, David Holland wrote:
  > On Mon, Jan 21, 2008 at 03:10:00AM +0000, develunix@gmail.com wrote:
  >  > NetBSD only sees one SATA channel out of four. The BIOS sees the
  >  > two hard drives plugged into two of the four hardware interfaces.
  > 
  > Possibly, duplicate of 38011 - does the patch therein help?

 For the record, it appears that it isn't and it doesn't, respectively;
 I have a machine with the same viaide (nForce MCP65) and I've finally
 had some time to tinker with it, without result.

 -- 
 David A. Holland
 dholland@netbsd.org

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org, develunix@gmail.com
Subject: Re: kern/37826: Kernel sees only one SATA channel (out of four) on
	Abit AN52 motherboard (nvidia nf520__single chip)
Date: Tue, 20 May 2008 03:35:58 +0000

 On Thu, May 15, 2008 at 12:04:50AM +0000, David Holland wrote:
  > On Sun, Apr 13, 2008 at 02:43:37AM +0000, David Holland wrote:
  >  > On Mon, Jan 21, 2008 at 03:10:00AM +0000, develunix@gmail.com wrote:
  >  >  > NetBSD only sees one SATA channel out of four. The BIOS sees the
  >  >  > two hard drives plugged into two of the four hardware interfaces.
  >  > 
  >  > Possibly, duplicate of 38011 - does the patch therein help?
  > 
  > For the record, it appears that it isn't and it doesn't, respectively;
  > I have a machine with the same viaide (nForce MCP65) and I've finally
  > had some time to tinker with it, without result.

 The solution to this problem (and also the interrupt routing/ACPI
 problems I've been having with the same viaide) is to run it in AHCI
 mode. Setting it in the BIOS and including ahcisata(4) in the kernel
 JFW.

 (Well, except that it has the problem where occasionally one of the
 disks probes as a few kilobytes long, but I think that's a known issue
 with ahcisata.)

 I have my doubts as to whether MCP65 (and later, too) will ever work
 properly except as AHCI; the Linux and FreeBSD drivers both probe it
 and immediately enable AHCI mode. I suspect, for people who don't have
 a BIOS setting, that we ought to teach ahcisata_pci.c to do that, and
 take the PCI ids out of viaide.c so we don't try to run it as viaide.

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 22 Feb 2009 06:42:10 +0000
State-Changed-Why:
This should be fixed in current and 5.0; the controller should attach as
ahcisata rather than viaide regardless of BIOS setting.

Does it?


From: Art <develunix@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, netbsd-bugs@netbsd.org, gnats-admin@netbsd.org,  dholland@NetBSD.org
Subject: Re: kern/37826 (Kernel sees only one SATA channel (out of four) on
	Abit AN52 motherboard (nvidia nf520__single chip))
Date: Wed, 25 Feb 2009 15:24:29 -0700

 On Sun, 2009-02-22 at 06:42 +0000, dholland@NetBSD.org wrote:
 > Synopsis: Kernel sees only one SATA channel (out of four) on Abit AN52 motherboard (nvidia nf520__single chip)
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Sun, 22 Feb 2009 06:42:10 +0000
 > State-Changed-Why:
 > This should be fixed in current and 5.0; the controller should attach as
 > ahcisata rather than viaide regardless of BIOS setting.
 > 
 > Does it?
 > 

 Here's the dmesg after an update to 5.0_RC2 (from 4.0), a reboot
 with the Generic kernel only (no new userland, yet) and the
 relevant parts shown. The second drive does not have a NetBSD
 disklabel on it for now. I'll trim the kernel config, do some
 probing, sort some of the mess out and get back to you.

 Art

 NetBSD 5.0_RC2 (GENERIC) #0: Wed Feb 25 14:25:13 MST 2009

 [...]

 cpu0 at mainbus0 apid 0: AMD 686-class, 2109MHz, id 0x60fb1
 cpu0: AMD PowerNow! Technology 2100 MHz
 cpu0: available frequencies (Mhz): 1000 1800 2000 2100
 cpu1 at mainbus0 apid 1: AMD 686-class, 2109MHz, id 0x60fb1

 [...]

 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 vendor 0x10de product 0x0444 (RAM memory, revision 0xa3) at pci0 dev 0
 function 0 not configured
 pcib0 at pci0 dev 1 function 0
 pcib0: vendor 0x10de product 0x0441 (rev. 0xa3)

 [...]

 ppb0 at pci0 dev 8 function 0: vendor 0x10de product 0x0449 (rev. 0xa1)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled

 [...]

 viaide0 at pci0 dev 9 function 0
 viaide0: NVIDIA MCP65 IDE Controller (rev. 0xa1)
 viaide0: bus-master DMA support present
 viaide0: primary channel configured to compatibility mode
 viaide0: primary channel interrupting at ioapic0 pin 14
 atabus0 at viaide0 channel 0
 viaide0: secondary channel configured to compatibility mode
 viaide0: secondary channel ignored (disabled)
 viaide1 at pci0 dev 10 function 0
 viaide1: NVIDIA MCP65 Serial ATA Controller (rev. 0xa3)
 viaide1: bus-master DMA support present
 viaide1: primary channel wired to native-PCI mode
 APSI: Picked IRQ 23 with weight 0
 viaide1: using ioapic0 pin 23 for native-PCI interrupt
 atabus1 at viaide1 channel 0
 viaide1: secondary channel wired to native-PCI mode
 atabus2 at viaide1 channel 1
 ppb1 at pci0 dev 11 function 0: vendor 0x10de product 0x045b (rev. 0xa1)
 pci2 at ppb1 bus 2
 pci2: i/o space, memory space enabled, rd/line, wr/inv ok

 [...]

 ppb2 at pci0 dev 12 function 0: vendor 0x10de product 0x045a (rev. 0xa1)
 pci3 at ppb2 bus 3
 pci3: i/o space, memory space enabled, rd/line, wr/inv ok
 ppb3 at pci0 dev 13 function 0: vendor 0x10de product 0x0458 (rev. 0xa1)
 pci4 at ppb3 bus 4
 pci4: i/o space, memory space enabled, rd/line, wr/inv ok

 [...]

 ppb4 at pci0 dev 14 function 0: vendor 0x10de product 0x0459 (rev. 0xa1)
 pci5 at ppb4 bus 5
 pci5: i/o space, memory space enabled, rd/line, wr/inv ok

 [...]

 cd0 at atapibus0 drive 0: <LITE-ON DVDRW SOHW-1673S, , JS07> cdrom
 removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
 cd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using
 DMA)
 viaide1 port 0: device present, speed: <unknown 8>
 wd0 at atabus1 drive 0: <HDS728080PLA380>
 wd0: drive supports 16-sector PIO transfers, LBA48 addressing
 wd0: 78533 MB, 159560 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 6 (Ultra/133)
 wd0(viaide1:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using
 DMA)

 [...]



From: Art <develunix@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, netbsd-bugs@netbsd.org, gnats-admin@netbsd.org,  dholland@NetBSD.org
Subject: Re: kern/37826 (Kernel sees only one SATA channel (out of four) on
	Abit AN52 motherboard (nvidia nf520__single chip))
Date: Thu, 26 Feb 2009 05:30:13 -0700

 On Sun, 2009-02-22 at 06:42 +0000, dholland@NetBSD.org wrote:
 > Synopsis: Kernel sees only one SATA channel (out of four) on Abit AN52 motherboard (nvidia nf520__single chip)
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Sun, 22 Feb 2009 06:42:10 +0000
 > State-Changed-Why:
 > This should be fixed in current and 5.0; the controller should attach as
 > ahcisata rather than viaide regardless of BIOS setting.
 > 
 > Does it?

   It appears that it does! See wd1, below. The following resulted after
 I commented the "viaide*" line out in the GENERIC kernel
 configuration file and recompiled. The rest of the configuration file is
 original as issued. I might try a fresh amd64 install and update to
 5.0RC2 (amd64) with that now, to see if it works.  ;-)

 ================

 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 2005,
    2006, 2007, 2008
    The NetBSD Foundation, Inc.  All rights reserved.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

 NetBSD 5.0_RC2 (GENERIC) #0: Thu Feb 26 03:53:42 MST 2009
        elijah@noah:/usr/obj/sys/arch/i386/compile/GENERIC
 total memory = 2046 MB
 avail memory = 1999 MB
 timecounter: Timecounters tick every 10.000 msec
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 Unknow Unknow (Unknow)
 mainbus0 (root)
 cpu0 at mainbus0 apid 0: AMD 686-class, 2109MHz, id 0x60fb1
 cpu0: AMD PowerNow! Technology 2100 MHz
 cpu0: available frequencies (Mhz): 1000 1800 2000 2100
 cpu1 at mainbus0 apid 1: AMD 686-class, 2109MHz, id 0x60fb1
 ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 11, 24 pins
 acpi0 at mainbus0: Intel ACPICA 20080321
 acpi0: X/RSDT: OemId <Nvidia,NVDAACPI,42302e31>, AslId <NVDA,00000000>
 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
 acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
 attimer1 at acpi0 (TMR, PNP0100): AT Timer
 attimer1: io 0x40-0x43
 hpet0 at acpi0 (HPET, PNP0103)
 hpet0: mem 0xfeff0000-0xfeff03ff irq 0,8
 timecounter: Timecounter "hpet0" frequency 25000000 Hz quality 2000
 pcppi1 at acpi0 (SPKR, PNP0800)
 pcppi1: io 0x61
 midi0 at pcppi1: PC speaker (CPU-intensive output)
 sysbeep0 at pcppi1
 npx1 at acpi0 (COPR, PNP0C04)
 npx1: io 0xf0-0xff irq 13
 npx1: reported by CPUID; using exception 16
 FDC0 (PNP0700) at acpi0 not configured
 UAR1 (PNP0501) at acpi0 not configured
 pckbc1 at acpi0 (PS2M, PNP0F13): aux port
 pckbc1: irq 12
 pckbc2 at acpi0 (PS2K, PNP0303): kbd port
 pckbc2: io 0x60,0x64 irq 1
 FAN (PNP0C0B) at acpi0 not configured
 acpitz0 at acpi0 (THRM): active cooling level 0: 48.0C critical 60.0C
 passive 42.0C
 apm0 at acpi0: Power Management spec V1.2
 attimer1: attached to pcppi1
 pckbd0 at pckbc2 (kbd slot)
 pckbc2: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 pms0 at pckbc2 (aux slot)
 pckbc2: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 vendor 0x10de product 0x0444 (RAM memory, revision 0xa3) at pci0 dev 0
 function 0 not configured
 pcib0 at pci0 dev 1 function 0
 pcib0: vendor 0x10de product 0x0441 (rev. 0xa3)
 nfsmbc0 at pci0 dev 1 function 1: vendor 0x10de product 0x0446 (rev.
 0xa1)
 nfsmb0 at nfsmbc0 SMBus 1
 iic0 at nfsmb0: I2C bus
 nfsmb1 at nfsmbc0 SMBus 2
 iic1 at nfsmb1: I2C bus
 vendor 0x10de product 0x0445 (RAM memory, revision 0xa1) at pci0 dev 1
 function 2 not configured
 ohci0 at pci0 dev 2 function 0: vendor 0x10de product 0x0454 (rev. 0xa3)
 AUBA: Picked IRQ 20 with weight 0
 ohci0: interrupting at ioapic0 pin 20
 ohci0: OHCI version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 ehci0 at pci0 dev 2 function 1: vendor 0x10de product 0x0455 (rev. 0xa3)
 AUB2: Picked IRQ 21 with weight 0
 ehci0: interrupting at ioapic0 pin 21
 ehci0: EHCI version 1.0
 ehci0: companion controller, 10 ports each: ohci0
 usb1 at ehci0: USB revision 2.0
 azalia0 at pci0 dev 7 function 0: Generic High Definition Audio
 Controller
 AAZA: Picked IRQ 22 with weight 0
 azalia0: interrupting at ioapic0 pin 22
 azalia0: host: 0x10de/0x044a (rev. 161), HDA rev. 1.0
 ppb0 at pci0 dev 8 function 0: vendor 0x10de product 0x0449 (rev. 0xa1)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled
 bktr0 at pci1 dev 10 function 0
 APC3: Picked IRQ 18 with weight 0
 bktr0: interrupting at ioapic0 pin 18
 bktr0: Warning - card vendor 0x0000 (model 0x0000) unknown.
 bktr0: Detected a DPL34-1@-@0 at 0x84
 bktr0: Intel Smart Video III/VideoLogic Captivator PCI, <no> tuner,
 dpl3518a dolby.
 vendor 0x109e product 0x0878 (miscellaneous multimedia, revision 0x11)
 at pci1 dev 10 function 1 not configured
 pciide0 at pci0 dev 9 function 0
 pciide0: vendor 0x10de product 0x0448 (rev. 0xa1)
 pciide0: bus-master DMA support present, but unused (no driver support)
 pciide0: primary channel configured to compatibility mode
 pciide0: primary channel interrupting at ioapic0 pin 14
 atabus0 at pciide0 channel 0
 pciide0: secondary channel configured to compatibility mode
 pciide0: secondary channel ignored (not responding; disabled or no
 drives?)
 pciide1 at pci0 dev 10 function 0
 pciide1: vendor 0x10de product 0x045d (rev. 0xa3)
 pciide1: bus-master DMA support present, but unused (no driver support)
 pciide1: primary channel wired to native-PCI mode
 APSI: Picked IRQ 23 with weight 0
 pciide1: using ioapic0 pin 23 for native-PCI interrupt
 atabus1 at pciide1 channel 0
 pciide1: secondary channel wired to native-PCI mode
 atabus2 at pciide1 channel 1
 ppb1 at pci0 dev 11 function 0: vendor 0x10de product 0x045b (rev. 0xa1)
 pci2 at ppb1 bus 2
 pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 mskc0 at pci2 dev 0 function 0APC6: Picked IRQ 16 with weight 0
 mskc0: interrupt moderation is 0 us
 , Yukon-2 EC Ultra rev. B0 (0x3): ioapic0 pin 16
 msk0 at mskc0 port A: Ethernet address 00:50:8d:b0:b4:ef
 ukphy0 at msk0 phy 0: Generic IEEE 802.3u media interface
 ukphy0: OUI 0x000ac2, model 0x000b, rev. 1
 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
 1000baseT-FDX, auto
 ppb2 at pci0 dev 12 function 0: vendor 0x10de product 0x045a (rev. 0xa1)
 pci3 at ppb2 bus 3
 pci3: i/o space, memory space enabled, rd/line, wr/inv ok
 ppb3 at pci0 dev 13 function 0: vendor 0x10de product 0x0458 (rev. 0xa1)
 pci4 at ppb3 bus 4
 pci4: i/o space, memory space enabled, rd/line, wr/inv ok
 vga1 at pci4 dev 0 function 0: vendor 0x1002 product 0x5b62 (rev. 0x00)
 vga1: WARNING: ignoring 64-bit BAR @ 0x10
 vga1: WARNING: ignoring 64-bit BAR @ 0x18
 wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using
 wskbd0
 wsmux1: connecting to wsdisplay0
 drm at vga1 not configured
 vendor 0x1002 product 0x5b72 (miscellaneous display) at pci4 dev 0
 function 1 not configured
 ppb4 at pci0 dev 14 function 0: vendor 0x10de product 0x0459 (rev. 0xa1)
 pci5 at ppb4 bus 5
 pci5: i/o space, memory space enabled, rd/line, wr/inv ok
 pchb0 at pci0 dev 24 function 0
 pchb0: vendor 0x1022 product 0x1100 (rev. 0x00)
 pchb1 at pci0 dev 24 function 1
 pchb1: vendor 0x1022 product 0x1101 (rev. 0x00)
 pchb2 at pci0 dev 24 function 2
 pchb2: vendor 0x1022 product 0x1102 (rev. 0x00)
 amdtemp0 at pci0 dev 24 function 3
 amdtemp0: AMD CPU Temperature Sensors (K8: core rev BH-G1, socket AM2)
 isa0 at pcib0
 com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 azalia0: codec[0]: Realtek ALC883 (rev. 0.2), HDA rev. 1.0
 audio0 at azalia0: full duplex, independent
 atapibus0 at atabus0: 2 targets
 uhub0 at usb0: vendor 0x10de OHCI root hub, class 9/0, rev 1.00/1.00,
 addr 1
 uhub0: 10 ports with 10 removable, self powered
 uhub1 at usb1: vendor 0x10de EHCI root hub, class 9/0, rev 2.00/1.00,
 addr 1
 uhub1: 10 ports with 10 removable, self powered
 cd0 at atapibus0 drive 0: <LITE-ON DVDRW SOHW-1673S, , JS07> cdrom
 removable
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
 wd0 at atabus1 drive 0: <HDS728080PLA380>
 wd0: drive supports 16-sector PIO transfers, LBA48 addressing
 wd0: 78533 MB, 159560 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480
 sectors
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 wd1 at atabus2 drive 0: <HDS728080PLA380>
 wd1: drive supports 16-sector PIO transfers, LBA48 addressing
 wd1: 78533 MB, 159560 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480
 sectors
 wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 Kernelized RAIDframe activated
 pad0: outputs: 44100Hz, 16-bit, stereo
 audio1 at pad0: half duplex
 raid0: RAID Level 1
 raid0: Components: /dev/wd0a component1[**FAILED**]
 raid0: Total Sectors: 160836096 (78533 MB)
 boot device: raid0
 root on raid0a dumps on raid0b
 root file system type: ffs
 mskc0: interrupt moderation is 1000 us
 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)
 raid0: Error re-writing parity!



From: Art <develunix@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, netbsd-bugs@netbsd.org, dholland@NetBSD.org
Subject: Re: kern/37826 (Kernel sees only one SATA channel (out of four) on
	Abit AN52 motherboard (nvidia nf520__single chip))
Date: Thu, 26 Feb 2009 06:20:17 -0700

 On Thu, 2009-02-26 at 05:30 -0700, Art wrote:
 > On Sun, 2009-02-22 at 06:42 +0000, dholland@NetBSD.org wrote:
 > > Synopsis: Kernel sees only one SATA channel (out of four) on Abit AN52 motherboard (nvidia nf520__single chip)
 > > 
 > > State-Changed-From-To: open->feedback
 > > State-Changed-By: dholland@NetBSD.org
 > > State-Changed-When: Sun, 22 Feb 2009 06:42:10 +0000
 > > State-Changed-Why:
 > > This should be fixed in current and 5.0; the controller should attach as
 > > ahcisata rather than viaide regardless of BIOS setting.
 > > 
 > > Does it?

   Maybe it doesn't after all. I'm sorry about the premature
 announcement. It appears that it's attaching as pciide, although it
 is seeing both drives (one on the first interface and the other on
 the third). I'll make a 5.0RC2, i386 install disk with a GENERIC
 kernel and try that as soon as possible.

 >   It appears that it does! See wd1, below. The following resulted after
 > I commented the "viaide*" line out in the GENERIC kernel
 > configuration file and recompiled. The rest of the configuration file is
 > original as issued. I might try a fresh amd64 install and update to
 > 5.0RC2 (amd64) with that now, to see if it works.  ;-)
 > 
 > ================
 > 
 > Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 > 2005,
 >    2006, 2007, 2008
 >    The NetBSD Foundation, Inc.  All rights reserved.
 > Copyright (c) 1982, 1986, 1989, 1991, 1993
 >    The Regents of the University of California.  All rights reserved.
 > 
 > NetBSD 5.0_RC2 (GENERIC) #0: Thu Feb 26 03:53:42 MST 2009
 >        elijah@noah:/usr/obj/sys/arch/i386/compile/GENERIC
 > total memory = 2046 MB
 > avail memory = 1999 MB
 > timecounter: Timecounters tick every 10.000 msec
 > timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 > Unknow Unknow (Unknow)
 > mainbus0 (root)
 > cpu0 at mainbus0 apid 0: AMD 686-class, 2109MHz, id 0x60fb1
 > cpu0: AMD PowerNow! Technology 2100 MHz
 > cpu0: available frequencies (Mhz): 1000 1800 2000 2100
 > cpu1 at mainbus0 apid 1: AMD 686-class, 2109MHz, id 0x60fb1
 > ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 11, 24 pins
 > acpi0 at mainbus0: Intel ACPICA 20080321
 > acpi0: X/RSDT: OemId <Nvidia,NVDAACPI,42302e31>, AslId <NVDA,00000000>
 > 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
 > acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
 > attimer1 at acpi0 (TMR, PNP0100): AT Timer
 > attimer1: io 0x40-0x43
 > hpet0 at acpi0 (HPET, PNP0103)
 > hpet0: mem 0xfeff0000-0xfeff03ff irq 0,8
 > timecounter: Timecounter "hpet0" frequency 25000000 Hz quality 2000
 > pcppi1 at acpi0 (SPKR, PNP0800)
 > pcppi1: io 0x61
 > midi0 at pcppi1: PC speaker (CPU-intensive output)
 > sysbeep0 at pcppi1
 > npx1 at acpi0 (COPR, PNP0C04)
 > npx1: io 0xf0-0xff irq 13
 > npx1: reported by CPUID; using exception 16
 > FDC0 (PNP0700) at acpi0 not configured
 > UAR1 (PNP0501) at acpi0 not configured
 > pckbc1 at acpi0 (PS2M, PNP0F13): aux port
 > pckbc1: irq 12
 > pckbc2 at acpi0 (PS2K, PNP0303): kbd port
 > pckbc2: io 0x60,0x64 irq 1
 > FAN (PNP0C0B) at acpi0 not configured
 > acpitz0 at acpi0 (THRM): active cooling level 0: 48.0C critical 60.0C
 > passive 42.0C
 > apm0 at acpi0: Power Management spec V1.2
 > attimer1: attached to pcppi1
 > pckbd0 at pckbc2 (kbd slot)
 > pckbc2: using irq 1 for kbd slot
 > wskbd0 at pckbd0: console keyboard
 > pms0 at pckbc2 (aux slot)
 > pckbc2: using irq 12 for aux slot
 > wsmouse0 at pms0 mux 0
 > pci0 at mainbus0 bus 0: configuration mode 1
 > pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 > vendor 0x10de product 0x0444 (RAM memory, revision 0xa3) at pci0 dev 0
 > function 0 not configured
 > pcib0 at pci0 dev 1 function 0
 > pcib0: vendor 0x10de product 0x0441 (rev. 0xa3)
 > nfsmbc0 at pci0 dev 1 function 1: vendor 0x10de product 0x0446 (rev.
 > 0xa1)
 > nfsmb0 at nfsmbc0 SMBus 1
 > iic0 at nfsmb0: I2C bus
 > nfsmb1 at nfsmbc0 SMBus 2
 > iic1 at nfsmb1: I2C bus
 > vendor 0x10de product 0x0445 (RAM memory, revision 0xa1) at pci0 dev 1
 > function 2 not configured
 > ohci0 at pci0 dev 2 function 0: vendor 0x10de product 0x0454 (rev. 0xa3)
 > AUBA: Picked IRQ 20 with weight 0
 > ohci0: interrupting at ioapic0 pin 20
 > ohci0: OHCI version 1.0, legacy support
 > usb0 at ohci0: USB revision 1.0
 > ehci0 at pci0 dev 2 function 1: vendor 0x10de product 0x0455 (rev. 0xa3)
 > AUB2: Picked IRQ 21 with weight 0
 > ehci0: interrupting at ioapic0 pin 21
 > ehci0: EHCI version 1.0
 > ehci0: companion controller, 10 ports each: ohci0
 > usb1 at ehci0: USB revision 2.0
 > azalia0 at pci0 dev 7 function 0: Generic High Definition Audio
 > Controller
 > AAZA: Picked IRQ 22 with weight 0
 > azalia0: interrupting at ioapic0 pin 22
 > azalia0: host: 0x10de/0x044a (rev. 161), HDA rev. 1.0
 > ppb0 at pci0 dev 8 function 0: vendor 0x10de product 0x0449 (rev. 0xa1)
 > pci1 at ppb0 bus 1
 > pci1: i/o space, memory space enabled
 > bktr0 at pci1 dev 10 function 0
 > APC3: Picked IRQ 18 with weight 0
 > bktr0: interrupting at ioapic0 pin 18
 > bktr0: Warning - card vendor 0x0000 (model 0x0000) unknown.
 > bktr0: Detected a DPL34-1@-@0 at 0x84
 > bktr0: Intel Smart Video III/VideoLogic Captivator PCI, <no> tuner,
 > dpl3518a dolby.
 > vendor 0x109e product 0x0878 (miscellaneous multimedia, revision 0x11)
 > at pci1 dev 10 function 1 not configured
 > pciide0 at pci0 dev 9 function 0
 > pciide0: vendor 0x10de product 0x0448 (rev. 0xa1)
 > pciide0: bus-master DMA support present, but unused (no driver support)
 > pciide0: primary channel configured to compatibility mode
 > pciide0: primary channel interrupting at ioapic0 pin 14
 > atabus0 at pciide0 channel 0
 > pciide0: secondary channel configured to compatibility mode
 > pciide0: secondary channel ignored (not responding; disabled or no
 > drives?)
 > pciide1 at pci0 dev 10 function 0
 > pciide1: vendor 0x10de product 0x045d (rev. 0xa3)
 > pciide1: bus-master DMA support present, but unused (no driver support)
 > pciide1: primary channel wired to native-PCI mode
 > APSI: Picked IRQ 23 with weight 0
 > pciide1: using ioapic0 pin 23 for native-PCI interrupt
 > atabus1 at pciide1 channel 0
 > pciide1: secondary channel wired to native-PCI mode
 > atabus2 at pciide1 channel 1
 > ppb1 at pci0 dev 11 function 0: vendor 0x10de product 0x045b (rev. 0xa1)
 > pci2 at ppb1 bus 2
 > pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 > mskc0 at pci2 dev 0 function 0APC6: Picked IRQ 16 with weight 0
 > mskc0: interrupt moderation is 0 us
 > , Yukon-2 EC Ultra rev. B0 (0x3): ioapic0 pin 16
 > msk0 at mskc0 port A: Ethernet address 00:50:8d:b0:b4:ef
 > ukphy0 at msk0 phy 0: Generic IEEE 802.3u media interface
 > ukphy0: OUI 0x000ac2, model 0x000b, rev. 1
 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
 > 1000baseT-FDX, auto
 > ppb2 at pci0 dev 12 function 0: vendor 0x10de product 0x045a (rev. 0xa1)
 > pci3 at ppb2 bus 3
 > pci3: i/o space, memory space enabled, rd/line, wr/inv ok
 > ppb3 at pci0 dev 13 function 0: vendor 0x10de product 0x0458 (rev. 0xa1)
 > pci4 at ppb3 bus 4
 > pci4: i/o space, memory space enabled, rd/line, wr/inv ok
 > vga1 at pci4 dev 0 function 0: vendor 0x1002 product 0x5b62 (rev. 0x00)
 > vga1: WARNING: ignoring 64-bit BAR @ 0x10
 > vga1: WARNING: ignoring 64-bit BAR @ 0x18
 > wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using
 > wskbd0
 > wsmux1: connecting to wsdisplay0
 > drm at vga1 not configured
 > vendor 0x1002 product 0x5b72 (miscellaneous display) at pci4 dev 0
 > function 1 not configured
 > ppb4 at pci0 dev 14 function 0: vendor 0x10de product 0x0459 (rev. 0xa1)
 > pci5 at ppb4 bus 5
 > pci5: i/o space, memory space enabled, rd/line, wr/inv ok
 > pchb0 at pci0 dev 24 function 0
 > pchb0: vendor 0x1022 product 0x1100 (rev. 0x00)
 > pchb1 at pci0 dev 24 function 1
 > pchb1: vendor 0x1022 product 0x1101 (rev. 0x00)
 > pchb2 at pci0 dev 24 function 2
 > pchb2: vendor 0x1022 product 0x1102 (rev. 0x00)
 > amdtemp0 at pci0 dev 24 function 3
 > amdtemp0: AMD CPU Temperature Sensors (K8: core rev BH-G1, socket AM2)
 > isa0 at pcib0
 > com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 > fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
 > timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 > azalia0: codec[0]: Realtek ALC883 (rev. 0.2), HDA rev. 1.0
 > audio0 at azalia0: full duplex, independent
 > atapibus0 at atabus0: 2 targets
 > uhub0 at usb0: vendor 0x10de OHCI root hub, class 9/0, rev 1.00/1.00,
 > addr 1
 > uhub0: 10 ports with 10 removable, self powered
 > uhub1 at usb1: vendor 0x10de EHCI root hub, class 9/0, rev 2.00/1.00,
 > addr 1
 > uhub1: 10 ports with 10 removable, self powered
 > cd0 at atapibus0 drive 0: <LITE-ON DVDRW SOHW-1673S, , JS07> cdrom
 > removable
 > cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
 > wd0 at atabus1 drive 0: <HDS728080PLA380>
 > wd0: drive supports 16-sector PIO transfers, LBA48 addressing
 > wd0: 78533 MB, 159560 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480
 > sectors
 > wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 > wd1 at atabus2 drive 0: <HDS728080PLA380>
 > wd1: drive supports 16-sector PIO transfers, LBA48 addressing
 > wd1: 78533 MB, 159560 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480
 > sectors
 > wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 > Kernelized RAIDframe activated
 > pad0: outputs: 44100Hz, 16-bit, stereo
 > audio1 at pad0: half duplex
 > raid0: RAID Level 1
 > raid0: Components: /dev/wd0a component1[**FAILED**]
 > raid0: Total Sectors: 160836096 (78533 MB)
 > boot device: raid0
 > root on raid0a dumps on raid0b
 > root file system type: ffs
 > mskc0: interrupt moderation is 1000 us
 > 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)
 > raid0: Error re-writing parity!
 > 
 > 

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 27 Feb 2009 06:49:06 +0000
State-Changed-Why:
It is still attaching as viaide, and therefore still not working.


From: Kurt Schreiner <ks@ub.uni-mainz.de>
To: "gnats-bugs@NetBSD.org" <gnats-bugs@NetBSD.org>
Cc: "kern-bug-people@netbsd.org" <kern-bug-people@NetBSD.org>,
   "netbsd-bugs@netbsd.org" <netbsd-bugs@NetBSD.org>,
   "gnats-admin@netbsd.org" <gnats-admin@NetBSD.org>,
   "dholland@NetBSD.org" <dholland@NetBSD.org>,
   "develunix@gmail.com" <develunix@gmail.com>
Subject: Re: kern/37826 (Kernel sees only one SATA channel (out of four) on
	Abit AN52 motherboard (nvidia nf520__single chip))
Date: Fri, 27 Feb 2009 09:36:44 +0100

 On Fri, Feb 27, 2009 at 07:49:07AM +0100, dholland@NetBSD.org wrote:
 > Synopsis: Kernel sees only one SATA channel (out of four) on Abit AN52 motherboard (nvidia nf520__single chip)
 > 
 > State-Changed-From-To: feedback->open
 > State-Changed-By: dholland@NetBSD.org
 > State-Changed-When: Fri, 27 Feb 2009 06:49:06 +0000
 > State-Changed-Why:
 > It is still attaching as viaide, and therefore still not working.

 Just another data point: I'm running with the patch^Whack below "for ages"
 on my Sun Ultra 40's. That's nforce4 resp nforcePro2000, but the symptoms
 had been the same...

 kurt

 >-1119: (cd /usr/src && cvs diff sys/dev/pci/viaide.c)
 Index: sys/dev/pci/viaide.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/pci/viaide.c,v
 retrieving revision 1.58
 diff -r1.58 viaide.c
 855a856,870
 >       /*
 >        * enable memory-space access. sometimes memory space is
 >        * _not_ enabled so "just do it" to get things going!
 >        */
 >       {
 >       pcireg_t csr;
 >       if (pa->pa_memt) {
 >           pa->pa_flags |= PCI_FLAGS_MEM_ENABLED;
 >           sc->sc_ba5_st = pa->pa_memt;
 >       }
 >       csr = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);
 >       pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG,
 >           csr | PCI_COMMAND_MEM_ENABLE);
 >       }
 > 
 Relavant excerpts from dmesg:

 ...
 viaide0 at pci0 dev 6 function 0
 viaide0: NVIDIA nForce4 IDE Controller (rev. 0xf2)
 viaide0: bus-master DMA support present
 viaide0: primary channel configured to compatibility mode
 viaide0: primary channel interrupting at ioapic0 pin 14
 atabus0 at viaide0 channel 0
 viaide0: secondary channel configured to compatibility mode
 viaide0: secondary channel interrupting at ioapic0 pin 15
 atabus1 at viaide0 channel 1
 viaide1 at pci0 dev 7 function 0
 viaide1: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
 viaide1: bus-master DMA support present
 viaide1: primary channel wired to native-PCI mode
 LSI1: Picked IRQ 23 with weight 0
 viaide1: using ioapic0 pin 23 for native-PCI interrupt
 atabus2 at viaide1 channel 0
 viaide1: secondary channel wired to native-PCI mode
 atabus3 at viaide1 channel 1
 viaide2 at pci0 dev 8 function 0
 viaide2: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
 viaide2: bus-master DMA support present
 viaide2: primary channel wired to native-PCI mode
 LTID: Picked IRQ 20 with weight 1
 viaide2: using ioapic0 pin 20 for native-PCI interrupt
 atabus4 at viaide2 channel 0
 viaide2: secondary channel wired to native-PCI mode
 atabus5 at viaide2 channel 1

 ...

 pci4 at mainbus0 bus 128
 pci4: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 NVIDIA nForce4 Memory Controller (miscellaneous memory, revision 0xa3) at pci4 dev 0 function 0 not 
 configured
 NVIDIA product 0x00d3 (miscellaneous memory, revision 0xf3) at pci4 dev 1 function 0 not configured
 viaide3 at pci4 dev 7 function 0
 viaide3: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
 viaide3: bus-master DMA support present
 viaide3: primary channel wired to native-PCI mode
 LTID: Picked IRQ 44 with weight 0
 viaide3: using ioapic1 pin 20 for native-PCI interrupt
 atabus6 at viaide3 channel 0
 viaide3: secondary channel wired to native-PCI mode
 atabus7 at viaide3 channel 1
 viaide4 at pci4 dev 8 function 0
 viaide4: NVIDIA nForce4 Serial ATA Controller (rev. 0xf3)
 viaide4: bus-master DMA support present
 viaide4: primary channel wired to native-PCI mode
 LSI1: Picked IRQ 45 with weight 0
 viaide4: using ioapic1 pin 21 for native-PCI interrupt
 atabus8 at viaide4 channel 0
 viaide4: secondary channel wired to native-PCI mode
 atabus9 at viaide4 channel 1

 ...

 viaide2 port 0: device present, speed: 3.0Gb/s
 viaide1 port 0: device present, speed: 1.5Gb/s
 viaide1 port 1: device present, speed: 3.0Gb/s
 viaide2 port 1: device present, speed: 3.0Gb/s
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 wd0 at atabus2 drive 0: <ST3250823AS>
 wd0: quirks 0x2<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(viaide1:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
 wd1 at atabus3 drive 0: <HITACHI HDS7225SBSUN250G 0548N68BPE>
 wd1: drive supports 16-sector PIO transfers, LBA48 addressing
 wd1: 232 GB, 484514 cyl, 16 head, 63 sec, 512 bytes/sect x 488390625 sectors
 wd1: 32-bit data port
 wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 wd1(viaide1:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
 wd2 at atabus4 drive 0: <SEAGATE ST32500NSSUN250G 0740B56A8Y>
 wd2: drive supports 16-sector PIO transfers, LBA48 addressing
 wd2: 232 GB, 484514 cyl, 16 head, 63 sec, 512 bytes/sect x 488390625 sectors
 wd2: 32-bit data port
 wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 wd2(viaide2:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
 wd3 at atabus5 drive 0: <SEAGATE ST32500NSSUN250G 0740B56AAZ>
 wd3: drive supports 16-sector PIO transfers, LBA48 addressing
 wd3: 232 GB, 484514 cyl, 16 head, 63 sec, 512 bytes/sect x 488390625 sectors
 wd3: 32-bit data port
 wd3: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 wd3(viaide2:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)




From: David Holland <dholland-bugs@netbsd.org>
To: Kurt Schreiner <ks@ub.uni-mainz.de>
Cc: "gnats-bugs@NetBSD.org" <gnats-bugs@NetBSD.org>,
	"kern-bug-people@netbsd.org" <kern-bug-people@NetBSD.org>,
	"netbsd-bugs@netbsd.org" <netbsd-bugs@NetBSD.org>,
	"gnats-admin@netbsd.org" <gnats-admin@NetBSD.org>,
	"dholland@NetBSD.org" <dholland@NetBSD.org>,
	"develunix@gmail.com" <develunix@gmail.com>
Subject: Re: kern/37826 (Kernel sees only one SATA channel (out of four) on
	Abit AN52 motherboard (nvidia nf520__single chip))
Date: Tue, 24 Mar 2009 20:54:43 +0000

 On Fri, Feb 27, 2009 at 09:36:44AM +0100, Kurt Schreiner wrote:
  > Just another data point: I'm running with the patch^Whack below "for ages"
  > on my Sun Ultra 40's. That's nforce4 resp nforcePro2000, but the symptoms
  > had been the same...

 Those are different hw though and it's a different problem.

 -- 
 David A. Holland
 dholland@netbsd.org

From: David Holland <dholland-bugs@netbsd.org>
To: Art Lemasters <develunix@gmail.com>
Cc: kern-bug-people@netbsd.org, netbsd-bugs@netbsd.org,
	gnats-admin@netbsd.org, dholland@NetBSD.org, gnats-bugs@netbsd.org
Subject: Re: kern/37826 (Kernel sees only one SATA channel (out of four) on
	Abit AN52 motherboard (nvidia nf520__single chip))
Date: Tue, 24 Mar 2009 21:12:25 +0000

 On Mon, Mar 09, 2009 at 11:46:11PM -0600, Art Lemasters wrote:
  > > It is still attaching as viaide, and therefore still not working.
  > 
  >   The following was done with a fresh amd64 system (netbsd-5-0-RC2
  > only a few days old) with the NetBSD drive on the first channel and
  > a Linux drive plugged in on the third. Is that alright? Is the same
  > work occuring with amd64, as I assume?

 The IDE drivers are machine-independent, yes.

 I think I see what the problem likely is: there are four PCI IDs for
 the MCP65 SATA controller, and only one of them is listed in
 ahcisata_pci.c.

 Try the following patch (with GENERIC):

 Index: pci/ahcisata_pci.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/pci/ahcisata_pci.c,v
 retrieving revision 1.13
 diff -u -p -r1.13 ahcisata_pci.c
 --- pci/ahcisata_pci.c	8 Dec 2008 15:35:23 -0000	1.13
 +++ pci/ahcisata_pci.c	24 Mar 2009 21:06:33 -0000
 @@ -54,6 +54,12 @@ __KERNEL_RCSID(0, "$NetBSD: ahcisata_pci
  static const struct pci_quirkdata ahci_pci_quirks[] = {
  	{ PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA,
  	    AHCI_PCI_QUIRK_FORCE },
 +	{ PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA2,
 +	    AHCI_PCI_QUIRK_FORCE },
 +	{ PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA3,
 +	    AHCI_PCI_QUIRK_FORCE },
 +	{ PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA4,
 +	    AHCI_PCI_QUIRK_FORCE },
  	{ PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP67_SATA,
  	    AHCI_PCI_QUIRK_FORCE },
  	{ PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP73_AHCI_1,

 If that doesn't work, what we'll need to know is what the PCI ID you
 actually have is, which you can get via lspci or equivalent.

  >   The RC50.2 GENERIC, INSTALL with ACPI, INSTALL no ACPI and custom
  > dmesg files are below. There were some "NoMatch" lines after doing
  > the adjustkernel--some lines that I haven't noticed before. I don't
  > know whether they are of any consequence to any of your work, but
  > just in case,...

 I don't think adjustkernel is expected to work on any currently
 supported versions.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Art Lemasters <develunix@gmail.com>
To: David Holland <dholland-bugs@netbsd.org>
Cc: kern-bug-people@netbsd.org, netbsd-bugs@netbsd.org, gnats-admin@netbsd.org, 
	dholland@netbsd.org, gnats-bugs@netbsd.org
Subject: Re: kern/37826 (Kernel sees only one SATA channel (out of four) on 
	Abit AN52 motherboard (nvidia nf520__single chip))
Date: Thu, 26 Mar 2009 21:03:24 -0600

 On Tue, Mar 24, 2009 at 3:12 PM, David Holland <dholland-bugs@netbsd.org> wrote:
 > The IDE drivers are machine-independent, yes.
 >
 > I think I see what the problem likely is: there are four PCI IDs for
 > the MCP65 SATA controller, and only one of them is listed in
 > ahcisata_pci.c.
 >
 > Try the following patch (with GENERIC):
 >
 > Index: pci/ahcisata_pci.c
 > ===================================================================
 > RCS file: /cvsroot/src/sys/dev/pci/ahcisata_pci.c,v
 > retrieving revision 1.13
 > diff -u -p -r1.13 ahcisata_pci.c
 > --- pci/ahcisata_pci.c  8 Dec 2008 15:35:23 -0000       1.13
 > +++ pci/ahcisata_pci.c  24 Mar 2009 21:06:33 -0000
 > @@ -54,6 +54,12 @@ __KERNEL_RCSID(0, "$NetBSD: ahcisata_pci
 >  static const struct pci_quirkdata ahci_pci_quirks[] = {
 >        { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA,
 >            AHCI_PCI_QUIRK_FORCE },
 > +       { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA2,
 > +           AHCI_PCI_QUIRK_FORCE },
 > +       { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA3,
 > +           AHCI_PCI_QUIRK_FORCE },
 > +       { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA4,
 > +           AHCI_PCI_QUIRK_FORCE },
 >        { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP67_SATA,
 >            AHCI_PCI_QUIRK_FORCE },
 >        { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP73_AHCI_1,

 It appears to have made a positive difference! See the kernel messages
 below for the new bus and drive information.

 The patch did not apply, maybe because I didn't update 5-0-RC2, yet.
 I added the new ("+") lines from the diff to the ahci.sata_pci.c file
 with vi. ...will do the update and make sure that the dmesg file is
 the same after sending this reply. Here's the resulting dmesg file
 after cleaning the src tree, manually inserting your additions to the
 source file and recompiling. Is it what we'd hoped to see? If not,
 I'll show more info after the update.

 NetBSD 5.0_RC2 (GENERIC) #0: Thu Mar 26 20:24:29 MDT 2009
 	derrick@paradise:/usr/obj/sys/arch/amd64/compile/GENERIC
 total memory = 2046 MB
 avail memory = 1968 MB
 timecounter: Timecounters tick every 10.000 msec
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 SMBIOS rev. 2.4 @ 0xf0000 (41 entries)
 Unknow Unknow (Unknow)
 mainbus0 (root)
 cpu0 at mainbus0 apid 0: AMD 686-class, 2109MHz, id 0x60fb1
 cpu0: AMD PowerNow! Technology 2100 MHz
 cpu0: available frequencies (Mhz): 1000 1800 2000 2100
 cpu1 at mainbus0 apid 1: AMD 686-class, 2109MHz, id 0x60fb1
 ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 11, 24 pins
 acpi0 at mainbus0: Intel ACPICA 20080321
 acpi0: X/RSDT: OemId <Nvidia,NVDAACPI,42302e31>, AslId <NVDA,00000000>
 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
 acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
 attimer1 at acpi0 (TMR, PNP0100): AT Timer
 attimer1: io 0x40-0x43
 hpet0 at acpi0 (HPET, PNP0103)
 hpet0: mem 0xfeff0000-0xfeff03ff irq 0,8
 timecounter: Timecounter "hpet0" frequency 25000000 Hz quality 2000
 pcppi1 at acpi0 (SPKR, PNP0800)
 pcppi1: io 0x61
 midi0 at pcppi1: PC speaker (CPU-intensive output)
 sysbeep0 at pcppi1
 UAR1 (PNP0501) at acpi0 not configured
 pckbc1 at acpi0 (PS2M, PNP0F13): aux port
 pckbc1: irq 12
 pckbc2 at acpi0 (PS2K, PNP0303): kbd port
 pckbc2: io 0x60,0x64 irq 1
 FAN (PNP0C0B) at acpi0 not configured
 acpitz0 at acpi0 (THRM): active cooling level 0: 48.0C critical 60.0C
 passive 40.0C
 attimer1: attached to pcppi1
 pckbd0 at pckbc2 (kbd slot)
 pckbc2: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 pms0 at pckbc2 (aux slot)
 pckbc2: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 pci0 at mainbus0 bus 0: configuration mode 1
 pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 vendor 0x10de product 0x0444 (RAM memory, revision 0xa3) at pci0 dev 0
 function 0 not configured
 pcib0 at pci0 dev 1 function 0
 pcib0: vendor 0x10de product 0x0441 (rev. 0xa3)
 nfsmbc0 at pci0 dev 1 function 1: vendor 0x10de product 0x0446 (rev. 0xa1)
 nfsmb0 at nfsmbc0 SMBus 1
 iic0 at nfsmb0: I2C bus
 nfsmb1 at nfsmbc0 SMBus 2
 iic1 at nfsmb1: I2C bus
 vendor 0x10de product 0x0445 (RAM memory, revision 0xa1) at pci0 dev 1
 function 2 not configured
 ohci0 at pci0 dev 2 function 0: vendor 0x10de product 0x0454 (rev. 0xa3)
 AUBA: Picked IRQ 20 with weight 0
 ohci0: interrupting at ioapic0 pin 20
 ohci0: OHCI version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 ehci0 at pci0 dev 2 function 1: vendor 0x10de product 0x0455 (rev. 0xa3)
 AUB2: Picked IRQ 21 with weight 0
 ehci0: interrupting at ioapic0 pin 21
 ehci0: EHCI version 1.0
 ehci0: companion controller, 10 ports each: ohci0
 usb1 at ehci0: USB revision 2.0
 azalia0 at pci0 dev 7 function 0: Generic High Definition Audio Controller
 AAZA: Picked IRQ 22 with weight 0
 azalia0: interrupting at ioapic0 pin 22
 azalia0: host: 0x10de/0x044a (rev. 161), HDA rev. 1.0
 ppb0 at pci0 dev 8 function 0: vendor 0x10de product 0x0449 (rev. 0xa1)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled
 bktr0 at pci1 dev 10 function 0
 APC3: Picked IRQ 18 with weight 0
 bktr0: interrupting at ioapic0 pin 18
 bktr0: Warning - card vendor 0x0000 (model 0x0000) unknown.
 bktr0: Detected a DPL34-1@-@0 at 0x84
 bktr0: Intel Smart Video III/VideoLogic Captivator PCI, <no> tuner,
 dpl3518a dolby.
 vendor 0x109e product 0x0878 (miscellaneous multimedia, revision 0x11)
 at pci1 dev 10 function 1 not configured
 viaide0 at pci0 dev 9 function 0
 viaide0: NVIDIA MCP65 IDE Controller (rev. 0xa1)
 viaide0: bus-master DMA support present
 viaide0: primary channel configured to compatibility mode
 viaide0: primary channel interrupting at ioapic0 pin 14
 atabus0 at viaide0 channel 0
 viaide0: secondary channel configured to compatibility mode
 viaide0: secondary channel ignored (disabled)
 ahcisata0 at pci0 dev 10 function 0: vendor 0x10de product 0x045d
 APSI: Picked IRQ 23 with weight 0
 ahcisata0: interrupting at ioapic0 pin 23
 ahcisata0: AHCI revision 1.1, 4 ports, 32 command slots, features 0xe3228080
 atabus1 at ahcisata0 channel 0
 atabus2 at ahcisata0 channel 1
 atabus3 at ahcisata0 channel 2
 atabus4 at ahcisata0 channel 3
 ppb1 at pci0 dev 11 function 0: vendor 0x10de product 0x045b (rev. 0xa1)
 pci2 at ppb1 bus 2
 pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 mskc0 at pci2 dev 0 function 0APC6: Picked IRQ 16 with weight 0
 mskc0: interrupt moderation is 0 us
 , Yukon-2 EC Ultra rev. B0 (0x3): ioapic0 pin 16
 msk0 at mskc0 port A: Ethernet address 00:50:8d:b0:b4:ef
 ukphy0 at msk0 phy 0: Generic IEEE 802.3u media interface
 ukphy0: OUI 0x000ac2, model 0x000b, rev. 1
 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
 1000baseT-FDX, auto
 ppb2 at pci0 dev 12 function 0: vendor 0x10de product 0x045a (rev. 0xa1)
 pci3 at ppb2 bus 3
 pci3: i/o space, memory space enabled, rd/line, wr/inv ok
 ppb3 at pci0 dev 13 function 0: vendor 0x10de product 0x0458 (rev. 0xa1)
 pci4 at ppb3 bus 4
 pci4: i/o space, memory space enabled, rd/line, wr/inv ok
 vga0 at pci4 dev 0 function 0: vendor 0x1002 product 0x5b62 (rev. 0x00)
 wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
 wsmux1: connecting to wsdisplay0
 drm at vga0 not configured
 vendor 0x1002 product 0x5b72 (miscellaneous display) at pci4 dev 0
 function 1 not configured
 ppb4 at pci0 dev 14 function 0: vendor 0x10de product 0x0459 (rev. 0xa1)
 pci5 at ppb4 bus 5
 pci5: i/o space, memory space enabled, rd/line, wr/inv ok
 pchb0 at pci0 dev 24 function 0
 pchb0: vendor 0x1022 product 0x1100 (rev. 0x00)
 pchb1 at pci0 dev 24 function 1
 pchb1: vendor 0x1022 product 0x1101 (rev. 0x00)
 pchb2 at pci0 dev 24 function 2
 pchb2: vendor 0x1022 product 0x1102 (rev. 0x00)
 amdtemp0 at pci0 dev 24 function 3
 amdtemp0: AMD CPU Temperature Sensors (K8: core rev BH-G1, socket AM2)
 isa0 at pcib0
 com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 azalia0: codec[0]: Realtek ALC883 (rev. 0.2), HDA rev. 1.0
 audio0 at azalia0: full duplex, independent
 atapibus0 at atabus0: 2 targets
 uhub0 at usb0: vendor 0x10de OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 10 ports with 10 removable, self powered
 uhub1 at usb1: vendor 0x10de EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
 uhub1: 10 ports with 10 removable, self powered
 cd0 at atapibus0 drive 0: <LITE-ON DVDRW SOHW-1673S, , JS07> cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
 cd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA)
 ahcisata0 port 0: device present, speed: 1.5Gb/s
 ahcisata0 port 1: device present, speed: 1.5Gb/s
 wd0 at atabus1 drive 0: <HDS728080PLA380>
 wd0: drive supports 16-sector PIO transfers, LBA48 addressing
 wd0: 78533 MB, 159560 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480 sectors
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
 (Ultra/133) (using DMA)
 wd1 at atabus2 drive 0: <HDS728080PLA380>
 wd1: drive supports 16-sector PIO transfers, LBA48 addressing
 wd1: 78533 MB, 159560 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480 sectors
 wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 wd1(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
 (Ultra/133) (using DMA)
 Kernelized RAIDframe activated
 pad0: outputs: 44100Hz, 16-bit, stereo
 audio1 at pad0: half duplex
 boot device: wd0
 root on wd0a dumps on wd0b
 root file system type: ffs
 mskc0: interrupt moderation is 1000 us
 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)

From: David Holland <dholland-bugs@netbsd.org>
To: Art Lemasters <develunix@gmail.com>
Cc: gnats-bugs@netbsd.org
Subject: Re: kern/37826 (Kernel sees only one SATA channel (out of four) on
	Abit AN52 motherboard (nvidia nf520__single chip))
Date: Fri, 27 Mar 2009 03:32:32 +0000

 On Thu, Mar 26, 2009 at 09:03:24PM -0600, Art Lemasters wrote:
  > It appears to have made a positive difference! See the kernel messages
  > below for the new bus and drive information.
  > 
  > The patch did not apply, maybe because I didn't update 5-0-RC2, yet.

 I guess so. Looking at it, I would have thought the patch would
 probably apply anyway, but it's not a big deal.

  > I added the new ("+") lines from the diff to the ahci.sata_pci.c file
  > with vi. ...will do the update and make sure that the dmesg file is
  > the same after sending this reply. Here's the resulting dmesg file
  > after cleaning the src tree, manually inserting your additions to the
  > source file and recompiling. Is it what we'd hoped to see? If not,
  > I'll show more info after the update.

 Yes.

  > ahcisata0 at pci0 dev 10 function 0: vendor 0x10de product 0x045d
  > APSI: Picked IRQ 23 with weight 0
  > ahcisata0: interrupting at ioapic0 pin 23
  > ahcisata0: AHCI revision 1.1, 4 ports, 32 command slots, features 0xe3228080
  > atabus1 at ahcisata0 channel 0
  > atabus2 at ahcisata0 channel 1
  > atabus3 at ahcisata0 channel 2
  > atabus4 at ahcisata0 channel 3
  > [...]
  > ahcisata0 port 0: device present, speed: 1.5Gb/s
  > ahcisata0 port 1: device present, speed: 1.5Gb/s
  > wd0 at atabus1 drive 0: <HDS728080PLA380>
  > wd0: drive supports 16-sector PIO transfers, LBA48 addressing
  > wd0: 78533 MB, 159560 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480 sectors
  > wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
  > wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
  > (Ultra/133) (using DMA)
  > wd1 at atabus2 drive 0: <HDS728080PLA380>
  > wd1: drive supports 16-sector PIO transfers, LBA48 addressing
  > wd1: 78533 MB, 159560 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480 sectors
  > wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
  > wd1(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)

 There's both your drives.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Art Lemasters <develunix@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, netbsd-bugs@netbsd.org, 
 David Holland <dholland-bugs@netbsd.org>
Subject: Re: kern/37826 (Kernel sees only one SATA channel (out of four) on
 Abit AN52 motherboard (nvidia nf520__single chip))
Date: Thu, 26 Mar 2009 23:10:02 -0600

 David Holland wrote:
 > The following reply was made to PR kern/37826; it has been noted by GNATS.
 > 
 > From: David Holland <dholland-bugs@netbsd.org>
 > To: Art Lemasters <develunix@gmail.com>
 > Cc: gnats-bugs@netbsd.org
 > Subject: Re: kern/37826 (Kernel sees only one SATA channel (out of four) on
 > 	Abit AN52 motherboard (nvidia nf520__single chip))
 > Date: Fri, 27 Mar 2009 03:32:32 +0000
 > 
 >   > ahcisata0 at pci0 dev 10 function 0: vendor 0x10de product 0x045d
 >   > APSI: Picked IRQ 23 with weight 0
 >   > ahcisata0: interrupting at ioapic0 pin 23
 >   > ahcisata0: AHCI revision 1.1, 4 ports, 32 command slots, features 0xe3228080
 >   > atabus1 at ahcisata0 channel 0
 >   > atabus2 at ahcisata0 channel 1
 >   > atabus3 at ahcisata0 channel 2
 >   > atabus4 at ahcisata0 channel 3
 >   > [...]
 >   > ahcisata0 port 0: device present, speed: 1.5Gb/s
 >   > ahcisata0 port 1: device present, speed: 1.5Gb/s
 >   > wd0 at atabus1 drive 0: <HDS728080PLA380>
 >   > wd0: drive supports 16-sector PIO transfers, LBA48 addressing
 >   > wd0: 78533 MB, 159560 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480 sectors
 >   > wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 >   > wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6
 >   > (Ultra/133) (using DMA)
 >   > wd1 at atabus2 drive 0: <HDS728080PLA380>
 >   > wd1: drive supports 16-sector PIO transfers, LBA48 addressing
 >   > wd1: 78533 MB, 159560 cyl, 16 head, 63 sec, 512 bytes/sect x 160836480 sectors
 >   > wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
 >   > wd1(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
 >  
 >  There's both your drives.

   Thanks to you, David, and to all for the great work! That's it,
 then. There are no drive read or write errors here, even after
 another kernel build. The second drive (first interface on the
 second bus) also mounts fine.

   The patch problem was probably my error. I'll find more documentation
 and read it.

 Art


From: Christoph Egger <Christoph_Egger@gmx.de>
To: Art Lemasters <develunix@gmail.com>
Cc: David Holland <dholland-bugs@netbsd.org>, kern-bug-people@netbsd.org, 
 netbsd-bugs@netbsd.org, gnats-admin@netbsd.org, dholland@netbsd.org, 
 gnats-bugs@netbsd.org
Subject: Re: kern/37826 (Kernel sees only one SATA channel (out of four) on
 	Abit AN52 motherboard (nvidia nf520__single chip))
Date: Fri, 27 Mar 2009 06:40:15 +0100

 Art Lemasters wrote:
 > On Tue, Mar 24, 2009 at 3:12 PM, David Holland <dholland-bugs@netbsd.org> wrote:
 >> The IDE drivers are machine-independent, yes.
 >>
 >> I think I see what the problem likely is: there are four PCI IDs for
 >> the MCP65 SATA controller, and only one of them is listed in
 >> ahcisata_pci.c.
 >>
 >> Try the following patch (with GENERIC):
 >>
 >> Index: pci/ahcisata_pci.c
 >> ===================================================================
 >> RCS file: /cvsroot/src/sys/dev/pci/ahcisata_pci.c,v
 >> retrieving revision 1.13
 >> diff -u -p -r1.13 ahcisata_pci.c
 >> --- pci/ahcisata_pci.c  8 Dec 2008 15:35:23 -0000       1.13
 >> +++ pci/ahcisata_pci.c  24 Mar 2009 21:06:33 -0000
 >> @@ -54,6 +54,12 @@ __KERNEL_RCSID(0, "$NetBSD: ahcisata_pci
 >>  static const struct pci_quirkdata ahci_pci_quirks[] = {
 >>        { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA,
 >>            AHCI_PCI_QUIRK_FORCE },
 >> +       { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA2,
 >> +           AHCI_PCI_QUIRK_FORCE },
 >> +       { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA3,
 >> +           AHCI_PCI_QUIRK_FORCE },
 >> +       { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP65_SATA4,
 >> +           AHCI_PCI_QUIRK_FORCE },
 >>        { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP67_SATA,
 >>            AHCI_PCI_QUIRK_FORCE },
 >>        { PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP73_AHCI_1,

 Hey, this is great! I have a HP Pavilion 9700 laptop which
 has exactly this MCP65 controller and two internal disks.
 With this diff, netbsd finds the second disk and is usable
 for me, too.

 Now, I also have a wd0 and wd1.

 Christoph

From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/37826 CVS commit: src/sys/dev/pci
Date: Fri, 27 Mar 2009 06:36:49 +0000

 Module Name:	src
 Committed By:	dholland
 Date:		Fri Mar 27 06:36:49 UTC 2009

 Modified Files:
 	src/sys/dev/pci: ahcisata_pci.c

 Log Message:
 Add the other three PCI ids for the nvidia MCP65 SATA controller to
 the quirk table. This way they attach as ahcisata and work, instead of
 attaching as viaide and failing miserably.

 Fixes PR kern/37826.

 XXX: There are a bunch of additional MCP67 and MCP73 PCI ids that
 XXX: should probably be added also, but I don't want to do that without
 XXX: further investigation and testing.


 To generate a diff of this commit:
 cvs rdiff -u -r1.13 -r1.14 src/sys/dev/pci/ahcisata_pci.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->pending-pullups
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 27 Mar 2009 08:59:36 +0000
State-Changed-Why:
pullup-5 #616 in the queue


From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/37826 CVS commit: [netbsd-5] src/sys/dev/pci
Date: Mon, 30 Mar 2009 16:49:26 +0000

 Module Name:	src
 Committed By:	snj
 Date:		Mon Mar 30 16:49:26 UTC 2009

 Modified Files:
 	src/sys/dev/pci [netbsd-5]: ahcisata_pci.c

 Log Message:
 Pull up following revision(s) (requested by dholland in ticket #616):
 	sys/dev/pci/ahcisata_pci.c: revision 1.14
 Add the other three PCI ids for the nvidia MCP65 SATA controller to
 the quirk table. This way they attach as ahcisata and work, instead of
 attaching as viaide and failing miserably.
 Fixes PR kern/37826.
 XXX: There are a bunch of additional MCP67 and MCP73 PCI ids that
 XXX: should probably be added also, but I don't want to do that without
 XXX: further investigation and testing.


 To generate a diff of this commit:
 cvs rdiff -u -r1.12.4.1 -r1.12.4.2 src/sys/dev/pci/ahcisata_pci.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 31 Mar 2009 06:07:53 +0000
State-Changed-Why:
Fixed, finally.


>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.