From gvs@road.demos.su  Thu May  8 06:48:06 2003
Return-Path: <gvs@road.demos.su>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F283337B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  8 May 2003 06:48:05 -0700 (PDT)
Received: from road.demos.su (road.demos.su [194.87.2.211])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D5ED543F93
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  8 May 2003 06:48:04 -0700 (PDT)
	(envelope-from gvs@road.demos.su)
Received: from road.demos.su (localhost [127.0.0.1])
	by road.demos.su (8.12.8/8.12.8) with ESMTP id h48Ds7ww077143
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 8 May 2003 17:54:07 +0400 (MSD)
	(envelope-from gvs@road.demos.su)
Received: (from gvs@localhost)
	by road.demos.su (8.12.8/8.12.8/Submit) id h48Ds78l077142;
	Thu, 8 May 2003 17:54:07 +0400 (MSD)
Message-Id: <200305081354.h48Ds78l077142@road.demos.su>
Date: Thu, 8 May 2003 17:54:07 +0400 (MSD)
From: Seva Gluschenko <gvs@rinet.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Adaptec AIC-7902 with HostRAID option enabled fails to be probed
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         51970
>Category:       kern
>Synopsis:       Adaptec AIC-7902 with HostRAID option enabled fails to be probed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gibbs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 08 06:50:08 PDT 2003
>Closed-Date:    Thu May 08 21:02:38 PDT 2003
>Last-Modified:  Thu May 08 21:03:46 PDT 2003
>Originator:     Seva Gluschenko
>Release:        FreeBSD 4.8-RC i386
>Organization:
JSC Demos-Internet
>Environment:
System: FreeBSD road.demos.su 4.8-RC FreeBSD 4.8-RC #2: Tue Mar 4 15:43:13 MSK 2003 gvs@road.demos.su:/usr/local/obj/usr/local/src/sys/ROAD i386


	
>Description:
	When booting with FreeBSD installation CD on ServerWorks machine with
	AIC-7902 SCSI controller on-board with HostRAID option is turned on,
	the controller fails to be detected by FreeBSD driver and is reported
	as unknown device.
>How-To-Repeat:
	Configure your Adaptec SCSI Controller to enable HostRAID option and
	try booting FreeBSD on that. Obviously, you'll fail.
>Fix:

	In /usr/src/sys/dev/aic7xxx/aic79xx_pci.c, line 69:

	#define ID_9005_GENERIC_MASK	0xFFF0FFFF00000000ull

	this line breaks successful AIC-7902 detection with HostRAID option
	turned on because it reports itself as another device ID (809F vs.
	801F with disabled HostRAID). So change the mask to be
	0xFF70FFFF00000000ull (don't care about the specified bit) and thus
	the detection problem is solved.

	BEWARE: while our HostRAID has been configured for mirroring, both
	disks were seen by FreeBSD (da0 and da1), so maybe different
	communication method should be used. I failed to find any contact
	addresses of driver developer from Adaptec, so I can't verify that.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: gibbs 
State-Changed-When: Thu May 8 21:01:04 PDT 2003 
State-Changed-Why:  
By design.  Host RAID is not supported under FreeBSD and attaching to 
controllers in HostRAID mode is a good recipe for foot shooting. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=51970 
Responsible-Changed-From-To: freebsd-bugs->gibbs 
Responsible-Changed-By: gibbs 
Responsible-Changed-When: Thu May 8 21:02:48 PDT 2003 
Responsible-Changed-Why:  
I'm the maintainer. 

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