From nobody@FreeBSD.org  Thu May 24 22:11:18 2012
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 3188C1065675
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 May 2012 22:11:18 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 1BD938FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 May 2012 22:11:18 +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 q4OMBHBu007766
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 24 May 2012 22:11:17 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q4OMBHDd007765;
	Thu, 24 May 2012 22:11:17 GMT
	(envelope-from nobody)
Message-Id: <201205242211.q4OMBHDd007765@red.freebsd.org>
Date: Thu, 24 May 2012 22:11:17 GMT
From: Richard <eaglebird42@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: hptiop driver should support the RR4310 controller card.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         168320
>Category:       kern
>Synopsis:       [hptiop] [patch] make the hptiop driver support the RR4310 controller card
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    delphij
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 24 22:20:05 UTC 2012
>Closed-Date:    Tue Nov 13 20:25:52 UTC 2012
>Last-Modified:  Tue Nov 13 20:25:52 UTC 2012
>Originator:     Richard
>Release:        8.2
>Organization:
>Environment:
FreeBSD Filenest.eagleserv.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
The RocketRaid 4310 controller card from HighPoint Technologies is not
recognized by the hptiop driver. This is due to the source code lacking
the correct case(s) for the 4310 (and also lacking for the 4322). After
adding in the case in the correct switch statement, the controller should
be recognized and the driver attached.
>How-To-Repeat:
Build the hptiop.ko module from the current source using hptiop.c and the
Makefile found in the dev environment at '/usr/src/sys/modules/hptiop/Makefile'
and specify it to load at boot. With the 4310 controller card installed, boot
the machine with the module installed and see that it is recognized by
pciconf and the driver is loaded, but dmesg reports "pci1: <mass storage,
RAID> at device 0.0 (no driver attached)", and any array or disks attached
to the controller are not shown in /dev/.
>Fix:
In the source code hptiop.c, find the "switch (id) {" statement which is
followed by the case "case 0x4320:". In new lines, add "case 0x4322:"
and "case 0x4310:" prior to the statement "sas = 1;", and recompile. Upon
repeating the test in "How to repeat the problem", it should be found
that the driver is attached for the controller and any arrays or disks
show up in /dev/. dmesg will also report:

"
hptiop0: adapter at PCI 1:0:0, IRQ 16
hptiop0: <RocketRAID 4310 SAS Controller
> mem 0xe1000000-0xe17fffff irq 16 at device 0.0 on pci1
hptiop0: 0 RocketRAID 3xxx/4xxx controller driver v1.3 (010208)
hptiop0: Reserved 0x800000 bytes for rid 0x10 type 3 at 0xe1000000
ioapic0: routing intpin 16 (PCI IRQ 16) to lapic 0 vector 49
hptiop0: [GIANT-LOCKED]
hptiop0: [ITHREAD]
"

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 28 02:28:16 UTC 2012 
Responsible-Changed-Why:  
reclassify. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168320 
State-Changed-From-To: open->closed 
State-Changed-By: eadler 
State-Changed-When: Tue Nov 13 20:25:49 UTC 2012 
State-Changed-Why:  
committed a while ago by  delphij according to svn blame 


Responsible-Changed-From-To: freebsd-bugs->delphij 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Tue Nov 13 20:25:49 UTC 2012 
Responsible-Changed-Why:  
committed a while ago by  delphij according to svn blame 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168320 
>Unformatted:
