From nobody@FreeBSD.org  Tue Nov 25 00:29:20 2008
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 2BC871065675
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 25 Nov 2008 00:29:20 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 1EE878FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 25 Nov 2008 00:29:20 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mAP0TJ5L094298
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 25 Nov 2008 00:29:19 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id mAP0TJjK094297;
	Tue, 25 Nov 2008 00:29:19 GMT
	(envelope-from nobody)
Message-Id: <200811250029.mAP0TJjK094297@www.freebsd.org>
Date: Tue, 25 Nov 2008 00:29:19 GMT
From: Joo Barros <joao.barros@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Add support for Marvell PATA M88SX6121
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         129154
>Category:       kern
>Synopsis:       Add support for Marvell PATA M88SX6121
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rpaulo
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 25 00:30:06 UTC 2008
>Closed-Date:    Mon Jan 12 22:38:09 UTC 2009
>Last-Modified:  Mon Jan 12 22:40:04 UTC 2009
>Originator:     Joo Barros
>Release:        8-CURRENT
>Organization:
>Environment:
FreeBSD c64.localdomain 8.0-CURRENT FreeBSD 8.0-CURRENT #4: Sat Nov 22 22:54:58 WET 2008     root@c64.localdomain:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Correctly identify the Marvell M88SX6121 as a PATA controller with one channel.
This controller can be found and patch was tested on an Asus P5Q Pro motherboard.
>How-To-Repeat:
N/A
>Fix:
Apply the patch :-)

Patch attached with submission follows:

--- sys/dev/ata/ata-pci.h.original      2008-11-25 00:12:55.000000000 +0000
+++ sys/dev/ata/ata-pci.h       2008-11-25 00:13:36.000000000 +0000
@@ -216,6 +216,7 @@
 #define ATA_M88SX6041           0x604111ab
 #define ATA_M88SX6081           0x608111ab
 #define ATA_M88SX6101           0x610111ab
+#define ATA_M88SX6121           0x612111ab
 #define ATA_M88SX6145           0x614511ab

 #define ATA_MICRON_ID           0x1042
--- sys/dev/ata/chipsets/ata-marvell.c.original 2008-11-25 00:08:45.000000000 +0000
+++ sys/dev/ata/chipsets/ata-marvell.c  2008-11-25 00:12:28.000000000 +0000
@@ -103,6 +103,7 @@
      { ATA_M88SX6041, 0, 4, MV_60XX, ATA_SA300, "88SX6041" },
      { ATA_M88SX6081, 0, 8, MV_60XX, ATA_SA300, "88SX6081" },
      { ATA_M88SX6101, 0, 1, MV_61XX, ATA_UDMA6, "88SX6101" },
+     { ATA_M88SX6121, 0, 1, MV_61XX, ATA_UDMA6, "88SX6121" },
      { ATA_M88SX6145, 0, 2, MV_61XX, ATA_UDMA6, "88SX6145" },
      { 0, 0, 0, 0, 0, 0}};



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: rpaulo 
State-Changed-When: Tue Nov 25 15:46:19 UTC 2008 
State-Changed-Why:  
Committed, thanks. 


Responsible-Changed-From-To: freebsd-bugs->rpaulo 
Responsible-Changed-By: rpaulo 
Responsible-Changed-When: Tue Nov 25 15:46:19 UTC 2008 
Responsible-Changed-Why:  
Mine. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129154 
State-Changed-From-To: closed->patched 
State-Changed-By: rpaulo 
State-Changed-When: Sat Nov 29 14:14:32 UTC 2008 
State-Changed-Why:  
Should be patched instead of closed. Will close after MFC is done. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=129154 
State-Changed-From-To: patched->closed 
State-Changed-By: rpaulo 
State-Changed-When: Mon Jan 12 22:37:49 UTC 2009 
State-Changed-Why:  
MFCed to RELENG_7. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/129154: commit references a PR
Date: Mon, 12 Jan 2009 22:37:26 +0000 (UTC)

 Author: rpaulo
 Date: Mon Jan 12 22:37:05 2009
 New Revision: 187119
 URL: http://svn.freebsd.org/changeset/base/187119
 
 Log:
   MFC r185268:
   
   Add support for Marvell PATA M88SX6121.
   
   PR:		129154
   Submitted by:	João Barros <joao.barros at gmail.com>
 
 Modified:
   stable/7/sys/   (props changed)
   stable/7/sys/dev/ata/ata-chipset.c
   stable/7/sys/dev/ata/ata-pci.h
 
 Modified: stable/7/sys/dev/ata/ata-chipset.c
 ==============================================================================
 --- stable/7/sys/dev/ata/ata-chipset.c	Mon Jan 12 22:01:49 2009	(r187118)
 +++ stable/7/sys/dev/ata/ata-chipset.c	Mon Jan 12 22:37:05 2009	(r187119)
 @@ -2555,6 +2555,7 @@ ata_marvell_ident(device_t dev)
       { ATA_M88SX6041, 0, 4, MV60XX, ATA_SA300, "88SX6041" },
       { ATA_M88SX6081, 0, 8, MV60XX, ATA_SA300, "88SX6081" },
       { ATA_M88SX6101, 0, 1, MV61XX, ATA_UDMA6, "88SX6101" },
 +     { ATA_M88SX6121, 0, 1, MV_61XX, ATA_UDMA6, "88SX6121" },
       { ATA_M88SX6145, 0, 2, MV61XX, ATA_UDMA6, "88SX6145" },
       { 0, 0, 0, 0, 0, 0}};
  
 
 Modified: stable/7/sys/dev/ata/ata-pci.h
 ==============================================================================
 --- stable/7/sys/dev/ata/ata-pci.h	Mon Jan 12 22:01:49 2009	(r187118)
 +++ stable/7/sys/dev/ata/ata-pci.h	Mon Jan 12 22:37:05 2009	(r187119)
 @@ -211,6 +211,7 @@ struct ata_connect_task {
  #define ATA_M88SX6041           0x604111ab
  #define ATA_M88SX6081           0x608111ab
  #define ATA_M88SX6101           0x610111ab
 +#define ATA_M88SX6121           0x612111ab
  #define ATA_M88SX6145           0x614511ab
  
  #define ATA_MICRON_ID           0x1042
 _______________________________________________
 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:
