NetBSD Problem Report #40134

From zza@serpens.de  Mon Dec  8 12:45:48 2008
Return-Path: <zza@serpens.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 6ACA763B121
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  8 Dec 2008 12:45:48 +0000 (UTC)
Message-Id: <20081208124516.GA2826@serpens.de>
Date: Mon, 8 Dec 2008 13:45:16 +0100
From: Bernhard Moellemann <zza@serpens.de>
Reply-To: zza@serpens.de
To: gnats-bugs@gnats.NetBSD.org
Subject: AHCI SATA on nForce MCP73 not recognized - including patch
X-Send-Pr-Version: 3.95

>Number:         40134
>Category:       kern
>Synopsis:       AHCI SATA on nForce MCP73 not recognized - falls back to PIO
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tron
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 08 12:50:00 +0000 2008
>Closed-Date:    Thu Dec 11 08:45:35 +0000 2008
>Last-Modified:  Thu Dec 11 08:45:35 +0000 2008
>Originator:     Bernhard Moellemann
>Release:        NetBSD 5.0_BETA
>Organization:
	<organization of PR author (multiple lines)>
>Environment:
System: NetBSD arcanic 5.0_BETA NetBSD 5.0_BETA (ARCANIC) #0: Sun Dec 7 18:07:15 CET 2008 root@arcanic:/mnt/top/src/src-5/obj/sys/arch/i386/compile/ARCANIC i386
Architecture: i386
Machine: i386
>Description:
The nVidia chipset AHCI-SATA-Interface nForce 630i MCP73 (Product-ID: 0x07f0)
is not recognized as ahcisata. So the kernel falls back to pciide with PIO.

Patching the ahcisata quirktable gives the desired result and it uses DMA.
>How-To-Repeat:
Boot NetBSD 5.0_BETA (or 5.99.1) with the above chipset.
>Fix:

Following a hint from tron@ this patch fixed the issue:

*** /usr/common/dosic/netbsd/src-5/sys/dev/pci/ahcisata_pci.c	Fri Aug  1 19:17:35 2008
--- /usr/src//src-5/sys/dev/pci/ahcisata_pci.c	Sun Dec  7 17:55:56 2008
*************** static const struct pci_quirkdata ahci_p
*** 56,61 ****
--- 56,63 ----
  	    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,
+ 	    AHCI_PCI_QUIRK_FORCE },
  };

  struct ahci_pci_softc {


    Bernhard  //
            \X/

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: kern-bug-people->tron
Responsible-Changed-By: tron@NetBSD.org
Responsible-Changed-When: Mon, 08 Dec 2008 15:18:09 +0000
Responsible-Changed-Why:
I'll handle this PR.


From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/40134 CVS commit: src/sys/dev/pci
Date: Mon,  8 Dec 2008 15:35:23 +0000 (UTC)

 Module Name:	src
 Committed By:	tron
 Date:		Mon Dec  8 15:35:23 UTC 2008

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

 Log Message:
 Force the nVidia nForce 630i MCP73 to attach to ahcisata(4) as well.
 It would otherwise attach to pciide(4) and use PIO mode.

 Patch submitted by Bernhard Moellemann in PR kern/40134.


 To generate a diff of this commit:
 cvs rdiff -r1.12 -r1.13 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: tron@NetBSD.org
State-Changed-When: Mon, 08 Dec 2008 15:43:41 +0000
State-Changed-Why:
Pullup into the "netbsd-5" branch has been requested:

http://releng.netbsd.org/cgi-bin/req-5.cgi?show=170


From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: kern/40134: AHCI SATA on nForce MCP73 not recognized - including patch
Date: Mon, 8 Dec 2008 20:16:57 +0100

 On Mon, Dec 08, 2008 at 12:50:00PM +0000, Bernhard Moellemann wrote:
 > >Description:
 > The nVidia chipset AHCI-SATA-Interface nForce 630i MCP73 (Product-ID: 0x07f0)
 > is not recognized as ahcisata. So the kernel falls back to pciide with PIO.
 > Patching the ahcisata quirktable gives the desired result and it uses DMA.

 Isn't there a BIOS option to switch between pciide and ahci modes ?

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: Bernhard Moellemann <zza@serpens.de>
To: gnats-bugs@NetBSD.org
Cc: tron@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: kern/40134: AHCI SATA on nForce MCP73 not recognized -
	including patch
Date: Mon, 8 Dec 2008 21:13:40 +0100

 On Mon, Dec 08, 2008 at 07:20:04PM +0000, Manuel Bouyer wrote:

 >  Isn't there a BIOS option to switch between pciide and ahci modes ?

 In this AMI-BIOS unfortunately not. I can only select to use any
 SATA-port in the nVidia-RAID.

     Bernhard  //
             \X/

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: Bernhard Moellemann <zza@serpens.de>
Cc: gnats-bugs@NetBSD.org, tron@NetBSD.org, gnats-admin@NetBSD.org,
        netbsd-bugs@NetBSD.org
Subject: Re: kern/40134: AHCI SATA on nForce MCP73 not recognized - including patch
Date: Mon, 8 Dec 2008 21:20:25 +0100

 On Mon, Dec 08, 2008 at 09:13:40PM +0100, Bernhard Moellemann wrote:
 > On Mon, Dec 08, 2008 at 07:20:04PM +0000, Manuel Bouyer wrote:
 > 
 > >  Isn't there a BIOS option to switch between pciide and ahci modes ?
 > 
 > In this AMI-BIOS unfortunately not. I can only select to use any
 > SATA-port in the nVidia-RAID.

 OK, so no other way than forcing it to ahci in the driver then ...

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: Manuel Bouyer <bouyer@antioche.eu.org>
To: Bernhard Moellemann <zza@serpens.de>
Cc: gnats-bugs@NetBSD.org, tron@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org
Subject: Re: kern/40134: AHCI SATA on nForce MCP73 not recognized - including patch
Date: Mon, 8 Dec 2008 21:20:25 +0100

 On Mon, Dec 08, 2008 at 09:13:40PM +0100, Bernhard Moellemann wrote:
 > On Mon, Dec 08, 2008 at 07:20:04PM +0000, Manuel Bouyer wrote:
 > 
 > >  Isn't there a BIOS option to switch between pciide and ahci modes ?
 > 
 > In this AMI-BIOS unfortunately not. I can only select to use any
 > SATA-port in the nVidia-RAID.

 OK, so no other way than forcing it to ahci in the driver then ...

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

From: Bernhard Moellemann <zza@serpens.de>
To: gnats-bugs@NetBSD.org
Cc: tron@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: kern/40134: AHCI SATA on nForce MCP73 not recognized -
	including patch
Date: Mon, 8 Dec 2008 21:13:40 +0100

 On Mon, Dec 08, 2008 at 07:20:04PM +0000, Manuel Bouyer wrote:

 >  Isn't there a BIOS option to switch between pciide and ahci modes ?

 In this AMI-BIOS unfortunately not. I can only select to use any
 SATA-port in the nVidia-RAID.

     Bernhard  //
             \X/

From: Soren Jacobsen <snj@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/40134 CVS commit: [netbsd-5] src/sys/dev/pci
Date: Wed, 10 Dec 2008 21:55:27 +0000 (UTC)

 Module Name:	src
 Committed By:	snj
 Date:		Wed Dec 10 21:55:27 UTC 2008

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

 Log Message:
 Pull up following revision(s) (requested by tron in ticket #170):
 	sys/dev/pci/ahcisata_pci.c: revision 1.13
 Force the nVidia nForce 630i MCP73 to attach to ahcisata(4) as well.
 It would otherwise attach to pciide(4) and use PIO mode.
 Patch submitted by Bernhard Moellemann in PR kern/40134.


 To generate a diff of this commit:
 cvs rdiff -r1.12 -r1.12.4.1 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: tron@NetBSD.org
State-Changed-When: Thu, 11 Dec 2008 08:45:35 +0000
State-Changed-Why:
Your patch has been committed and pullep up into the "netbsd-5" branch.
Thanks a lot for your contribution.


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