From owner-freebsd-amd64@FreeBSD.ORG Thu May 24 22:20:06 2012 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A4D61065677 for ; Thu, 24 May 2012 22:20:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E887F8FC1A for ; Thu, 24 May 2012 22:20:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q4OMK5EQ054073 for ; Thu, 24 May 2012 22:20:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q4OMK5re054072; Thu, 24 May 2012 22:20:05 GMT (envelope-from gnats) Resent-Date: Thu, 24 May 2012 22:20:05 GMT Resent-Message-Id: <201205242220.q4OMK5re054072@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-amd64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Richard Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3188C1065675 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 X-Mailman-Approved-At: Fri, 25 May 2012 01:14:08 +0000 Cc: Subject: amd64/168320: hptiop driver should support the RR4310 controller card. X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2012 22:20:06 -0000 >Number: 168320 >Category: amd64 >Synopsis: hptiop driver should support the RR4310 controller card. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-amd64 >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu May 24 22:20:05 UTC 2012 >Closed-Date: >Last-Modified: >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: 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: 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: >Unformatted: