Bug 51970

Summary: Adaptec AIC-7902 with HostRAID option enabled fails to be probed
Product: Base System Reporter: Seva Gluschenko <gvs>
Component: kernAssignee: Justin T. Gibbs <gibbs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Seva Gluschenko 2003-05-08 14:50:08 UTC
	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.

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.
How-To-Repeat: 	Configure your Adaptec SCSI Controller to enable HostRAID option and
	try booting FreeBSD on that. Obviously, you'll fail.
Comment 1 Justin T. Gibbs freebsd_committer freebsd_triage 2003-05-09 05:01:04 UTC
State Changed
From-To: open->closed

By design.  Host RAID is not supported under FreeBSD and attaching to 
controllers in HostRAID mode is a good recipe for foot shooting.
Comment 2 Justin T. Gibbs freebsd_committer freebsd_triage 2003-05-09 05:02:48 UTC
Responsible Changed
From-To: freebsd-bugs->gibbs

I'm the maintainer.