From nobody@FreeBSD.org  Wed Dec  8 15:00:37 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 219861065697
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Dec 2010 15:00:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 10F398FC2A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Dec 2010 15:00:37 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oB8F0aCc072104
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 8 Dec 2010 15:00:36 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oB8F0a7Z072103;
	Wed, 8 Dec 2010 15:00:36 GMT
	(envelope-from nobody)
Message-Id: <201012081500.oB8F0a7Z072103@red.freebsd.org>
Date: Wed, 8 Dec 2010 15:00:36 GMT
From: mike tancsa <mike@sentex.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: HiPoint Rocket Raid 622 AHCI driver patch
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152926
>Category:       kern
>Synopsis:       [ahci] [patch] HiPoint Rocket Raid 622 ahci(4) driver patch
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 08 15:10:08 UTC 2010
>Closed-Date:    Wed Dec 15 08:28:26 UTC 2010
>Last-Modified:  Wed Dec 15 08:30:13 UTC 2010
>Originator:     mike tancsa
>Release:        RELENG_8
>Organization:
Sentex Communications
>Environment:
8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #3: Thu Dec  2 19:57:55
>Description:
This small patch adds support for the highpoint 622 controller 
http://www.highpoint-tech.com/USA_new/series_r600.htm
It work well as a PMP with a drive cage attached to its external eSATA port

none5@pci0:1:0:0:       class=0x010400 card=0x00011103 chip=0x06221b4b rev=0x11 hdr=0x00
    class      = mass storage
    subclass   = RAID
    cap 01[40] = powerspec 3  supports D0 D3  current D0
    cap 05[50] = MSI supports 1 message 
    cap 10[70] = PCI-Express 2 legacy endpoint max data 128(512) link x1(x1)
ecap 0001[100] = AER 1 0 fatal 0 non-fatal 4 corrected

With patch,
ahci1@pci0:1:0:0:       class=0x010400 card=0x00011103 chip=0x06221b4b rev=0x11 hdr=0x00
    class      = mass storage
    subclass   = RAID
    cap 01[40] = powerspec 3  supports D0 D3  current D0
    cap 05[50] = MSI supports 1 message enabled with 1 message
    cap 10[70] = PCI-Express 2 legacy endpoint max data 128(512) link x1(x1)
ecap 0001[100] = AER 1 0 fatal 0 non-fatal 4 corrected

ahci1: <HiPoint 622-88SE9128 AHCI SATA controller> port 0xe090-0xe097,0xe080-0xe083,0xe070-0xe077,0xe060-0xe063,0xe050-0xe05f mem 0xfe521000-0xfe5217ff irq 16 at device 0.0 on pci1
ahci1: [ITHREAD]
ahci1: AHCI v1.00 with 2 6Gbps ports, Port Multiplier supported with FBS
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich0: [ITHREAD]
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich1: [ITHREAD]
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich2: [ITHREAD]
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich3: [ITHREAD]
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich4: [ITHREAD]
ahcich5: <AHCI channel> at channel 5 on ahci0
ahcich5: [ITHREAD]
ahcich6: <AHCI channel> at channel 0 on ahci1
ahcich6: [ITHREAD]
ahcich7: <AHCI channel> at channel 1 on ahci1
ahcich7: [ITHREAD]
pmp0 at ahcich6 bus 0 scbus6 target 15 lun 0
pmp0: <Port Multiplier 0325197b 000e> ATA-0 device
pmp0: 300.000MB/s transfers (SATA 2.x, NONE, PIO 8192bytes)
pmp0: 15 fan-out ports
ada0 at ahcich6 bus 0 scbus6 target 0 lun 0
ada0: <ST380811AS 0956> ATA-7 SATA 2.x device
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 512bytes)
ada0: 76319MB (156301488 512 byte sectors: 16H 63S/T 16383C)
ada1 at ahcich6 bus 0 scbus6 target 2 lun 0
ada1: <ST380811AS 3.AAE> ATA-7 SATA 2.x device
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 76319MB (156301488 512 byte sectors: 16H 63S/T 16383C)
ada2 at ahcich6 bus 0 scbus6 target 1 lun 0
ada2: <WDC WD5002ABYS-02B1B0 02.03B03> ATA-8 SATA 2.x device
ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada2: Command Queueing enabled
ada2: 476940MB (976773168 512 byte sectors: 16H 63S/T 16383C)
>How-To-Repeat:

>Fix:
# diff -u sys/dev/ahci/ahci.c sys/dev/ahci/ahci.c.p
--- sys/dev/ahci/ahci.c 2010-11-19 04:14:53.000000000 -0500
+++ sys/dev/ahci/ahci.c.p       2010-12-08 09:52:20.000000000 -0500
@@ -170,6 +170,7 @@
        {0x612111ab, 0x00, "Marvell 88SX6121",  AHCI_Q_NOFORCE|AHCI_Q_2CH|AHCI_Q_EDGEIS},
        {0x614111ab, 0x00, "Marvell 88SX6141",  AHCI_Q_NOFORCE|AHCI_Q_4CH|AHCI_Q_EDGEIS},
        {0x614511ab, 0x00, "Marvell 88SX6145",  AHCI_Q_NOFORCE|AHCI_Q_4CH|AHCI_Q_EDGEIS},
+       {0x06221b4b, 0x00, "HiPoint 622-88SE9128",   AHCI_Q_NOBSYRES},
        {0x91231b4b, 0x11, "Marvell 88SE912x",  AHCI_Q_NOBSYRES},
        {0x91231b4b, 0x00, "Marvell 88SE912x",  AHCI_Q_EDGEIS|AHCI_Q_SATA2|AHCI_Q_NOBSYRES},
        {0x044c10de, 0x00, "NVIDIA MCP65",      AHCI_Q_NOAA},

Patch attached with submission follows:

--- sys/dev/ahci/ahci.c 2010-11-19 04:14:53.000000000 -0500
+++ sys/dev/ahci/ahci.c.p       2010-12-08 09:52:20.000000000 -0500
@@ -170,6 +170,7 @@
        {0x612111ab, 0x00, "Marvell 88SX6121",  AHCI_Q_NOFORCE|AHCI_Q_2CH|AHCI_Q_EDGEIS},
        {0x614111ab, 0x00, "Marvell 88SX6141",  AHCI_Q_NOFORCE|AHCI_Q_4CH|AHCI_Q_EDGEIS},
        {0x614511ab, 0x00, "Marvell 88SX6145",  AHCI_Q_NOFORCE|AHCI_Q_4CH|AHCI_Q_EDGEIS},
+       {0x06221b4b, 0x00, "HiPoint 622-88SE9128",   AHCI_Q_NOBSYRES},
        {0x91231b4b, 0x11, "Marvell 88SE912x",  AHCI_Q_NOBSYRES},
        {0x91231b4b, 0x00, "Marvell 88SE912x",  AHCI_Q_EDGEIS|AHCI_Q_SATA2|AHCI_Q_NOBSYRES},
        {0x044c10de, 0x00, "NVIDIA MCP65",      AHCI_Q_NOAA},


>Release-Note:
>Audit-Trail:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/152926: commit references a PR
Date: Wed,  8 Dec 2010 20:35:25 +0000 (UTC)

 Author: mav
 Date: Wed Dec  8 20:35:20 2010
 New Revision: 216309
 URL: http://svn.freebsd.org/changeset/base/216309
 
 Log:
   Add IDs of HighPoint RocketRAID 62x cards (Marvell 88SE9128 chips).
   
   PR:		kern/152926
   Submitted by:	Mike Tancsa <mike@sentex.net>
   MFC after:	1 week
 
 Modified:
   head/sys/dev/ahci/ahci.c
 
 Modified: head/sys/dev/ahci/ahci.c
 ==============================================================================
 --- head/sys/dev/ahci/ahci.c	Wed Dec  8 20:20:10 2010	(r216308)
 +++ head/sys/dev/ahci/ahci.c	Wed Dec  8 20:35:20 2010	(r216309)
 @@ -172,6 +172,10 @@ static struct {
  	{0x614511ab, 0x00, "Marvell 88SX6145",	AHCI_Q_NOFORCE|AHCI_Q_4CH|AHCI_Q_EDGEIS},
  	{0x91231b4b, 0x11, "Marvell 88SE912x",	AHCI_Q_NOBSYRES},
  	{0x91231b4b, 0x00, "Marvell 88SE912x",	AHCI_Q_EDGEIS|AHCI_Q_SATA2|AHCI_Q_NOBSYRES},
 +	{0x06201103, 0x00, "HighPoint RocketRAID 620",	AHCI_Q_NOBSYRES},
 +	{0x06201b4b, 0x00, "HighPoint RocketRAID 620",	AHCI_Q_NOBSYRES},
 +	{0x06221103, 0x00, "HighPoint RocketRAID 622",	AHCI_Q_NOBSYRES},
 +	{0x06221b4b, 0x00, "HighPoint RocketRAID 622",	AHCI_Q_NOBSYRES},
  	{0x044c10de, 0x00, "NVIDIA MCP65",	AHCI_Q_NOAA},
  	{0x044d10de, 0x00, "NVIDIA MCP65",	AHCI_Q_NOAA},
  	{0x044e10de, 0x00, "NVIDIA MCP65",	AHCI_Q_NOAA},
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: mav 
State-Changed-When: Wed Dec 15 08:27:42 UTC 2010 
State-Changed-Why:  
Improved patch committed and merged to 8-STABLE. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152926 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/152926: commit references a PR
Date: Wed, 15 Dec 2010 08:27:22 +0000 (UTC)

 Author: mav
 Date: Wed Dec 15 08:27:17 2010
 New Revision: 216452
 URL: http://svn.freebsd.org/changeset/base/216452
 
 Log:
   MFC r216309:
   Add IDs of HighPoint RocketRAID 62x cards (Marvell 88SE9128 chips).
   
   PR:             kern/152926
   Submitted by:   Mike Tancsa <mike@sentex.net>
   Approved by:	re (kib)
 
 Modified:
   stable/8/sys/dev/ahci/ahci.c
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/amd64/include/xen/   (props changed)
   stable/8/sys/cddl/contrib/opensolaris/   (props changed)
   stable/8/sys/contrib/dev/acpica/   (props changed)
   stable/8/sys/contrib/pf/   (props changed)
 
 Modified: stable/8/sys/dev/ahci/ahci.c
 ==============================================================================
 --- stable/8/sys/dev/ahci/ahci.c	Wed Dec 15 01:19:14 2010	(r216451)
 +++ stable/8/sys/dev/ahci/ahci.c	Wed Dec 15 08:27:17 2010	(r216452)
 @@ -172,6 +172,10 @@ static struct {
  	{0x614511ab, 0x00, "Marvell 88SX6145",	AHCI_Q_NOFORCE|AHCI_Q_4CH|AHCI_Q_EDGEIS},
  	{0x91231b4b, 0x11, "Marvell 88SE912x",	AHCI_Q_NOBSYRES},
  	{0x91231b4b, 0x00, "Marvell 88SE912x",	AHCI_Q_EDGEIS|AHCI_Q_SATA2|AHCI_Q_NOBSYRES},
 +	{0x06201103, 0x00, "HighPoint RocketRAID 620",	AHCI_Q_NOBSYRES},
 +	{0x06201b4b, 0x00, "HighPoint RocketRAID 620",	AHCI_Q_NOBSYRES},
 +	{0x06221103, 0x00, "HighPoint RocketRAID 622",	AHCI_Q_NOBSYRES},
 +	{0x06221b4b, 0x00, "HighPoint RocketRAID 622",	AHCI_Q_NOBSYRES},
  	{0x044c10de, 0x00, "NVIDIA MCP65",	AHCI_Q_NOAA},
  	{0x044d10de, 0x00, "NVIDIA MCP65",	AHCI_Q_NOAA},
  	{0x044e10de, 0x00, "NVIDIA MCP65",	AHCI_Q_NOAA},
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
