From bertram@gummo.bbb.sub.org Thu Oct 14 12:59:00 1999
Return-Path: <bertram@gummo.bbb.sub.org>
Received: from subnet.sub.net (subnet.sub.net [212.227.14.21])
	by hub.freebsd.org (Postfix) with ESMTP id 5E40615109
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Oct 1999 12:58:58 -0700 (PDT)
	(envelope-from bertram@gummo.bbb.sub.org)
Received: (from uucp@localhost)
	by subnet.sub.net (8.8.8/8.8.8/1.2subnet-linux) with UUCP id VAA22855
	for FreeBSD-gnats-submit@freebsd.org; Thu, 14 Oct 1999 21:54:39 +0200
Received: (from bertram@localhost)
	by gummo.bbb.sub.org (8.9.2/8.9.2) id VAA07049;
	Thu, 14 Oct 1999 21:53:43 +0200 (CEST)
	(envelope-from bertram)
Message-Id: <199910141953.VAA07049@gummo.bbb.sub.org>
Date: Thu, 14 Oct 1999 21:53:43 +0200 (CEST)
From: bertram@gummo.bbb.sub.org
Reply-To: bertram@gummo.bbb.sub.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: AHA-1542A not supported by FreeBSD 3.x ("compensating")
X-Send-Pr-Version: 3.2

>Number:         14334
>Category:       kern
>Synopsis:       [patch] AHA-1542A not supported by FreeBSD 3.x ("compensating")
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 14 13:00:01 PDT 1999
>Closed-Date:    Mon Jan 10 18:15:55 MST 2005
>Last-Modified:  Mon Jan 10 18:15:55 MST 2005
>Originator:     Bertram Barth
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
none/private
>Environment:

AHA-1542A from 1988, FreeBSD 3.3-RELEASE

>Description:

aha0 is found and probed correctly but fails when probing for
attached devices. Output during boot is:

aha0 at 0x330-0x333 irq 11 drq 5 on isa
aha0: AHA-1540/1542 64 head BIOS FW Rev. 0.6 (ID=41) SCSI Host Adapter, SCSI ID 
7, 16 CCBs
Waiting 15 seconds for SCSI devices to settle
aha0: AHA-1540A detected, compensating
aha0: AHA-1540A detected, compensating
aha0: AHA-1540A detected, compensating
aha0: AHA-1540A detected, compensating
aha0: AHA-1540A detected, compensating
aha0: AHA-1540A detected, compensating

then the machine just hangs.

works with FreeBSD 2.x, output of "boot -v" in 2.2.8:
aha0: Rev 41 (AHA-154x[AB]) V0.6, enabling residuals, target ops

>How-To-Repeat:

Boot with Install-floppies of FreeBSD 3.x or 4.0-current

>Fix:
	
disabling residuals in aha.c cured the problem on my machine.
I've no clue about the consequences of the modification I did,
but if possible I'd like to have this as the default for the
GENERIC kernel, since it make installation possible with this
controller. On the other hand residuals IMHO aren't the real
source of the problem since obviously they worked in 2.2.8.

Context diff of sources from 3.1-RELEASE follows:

*** aha.c       Wed Jan 20 07:21:26 1999
--- aha.c-orig  Thu Oct 14 20:55:46 1999
***************
*** 242,249 ****
        aha->unit = unit;
        aha->tag = tag;
        aha->bsh = bsh;
!       aha->ccb_sg_opcode = INITIATOR_SG_CCB_WRESID;
!       aha->ccb_ccb_opcode = INITIATOR_CCB_WRESID;
  
        if (aha->unit != AHA_TEMP_UNIT) {
                aha_softcs[unit] = aha;
--- 242,249 ----
        aha->unit = unit;
        aha->tag = tag;
        aha->bsh = bsh;
!       aha->ccb_ccb_opcode = INITIATOR_CCB;
!       aha->ccb_sg_opcode = INITIATOR_SG_CCB;
  
        if (aha->unit != AHA_TEMP_UNIT) {
                aha_softcs[unit] = aha;



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: ken 
Responsible-Changed-When: Thu Oct 14 22:36:08 PDT 1999 
Responsible-Changed-Why:  
Warner wrote the aha driver. 

From: "isometry" <isometry@bigfoot.com>
To: <freebsd-gnats-submit@FreeBSD.org>, <bertram@gummo.bbb.sub.org>
Cc:  
Subject: Re: i386/14334: AHA-1542A not supported by FreeBSD 3.x ("compensating")
Date: Tue, 14 Aug 2001 00:04:06 +0100

 Hi,
 
 I was wondering if you were ever planning to fix this bug?
 (http://www.freebsd.org/cgi/query-pr.cgi?pr=14334)
 Thanks in advance ;)
 
 Robin Breathe
 
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Mon Jan 10 18:15:36 MST 2005 
State-Changed-Why:  
MAde final attempt to compensate.  If it doesn't work, oh well. 


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