Bug 22733

Summary: RELENG_4 aic SCSI driver hangs up during disk detection on AVA-1505
Product: Base System Reporter: kng <kng>
Component: kernAssignee: Kenneth D. Merry <ken>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1.1-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
cam_xpt.c.period.20010313.stable none

Description kng 2000-11-10 06:40:01 UTC
	I've cvsupped my system first to 4.1.1-STABLE (20001013) from
4.1-STABLE (20000804) and to 4.2-BETA (20001108), have maked
buildworld-installworld-buildkernel-installkernel.

	During startup aic0 is succesfully detected, but during SCSI disk
detect phase kernel stops forever and if I'll try this moment to enter
something on keyboard, keyboard freezes.

	If I'd disable aic0 in kernel config file or in boot -c editor,
system starts OK and works. Without aic0.

	On the same box Windows98 works with this SCSI card without any
problem, and SCSI card (and all other cards) configuration is the same.

	Adaptec AVA1505 hardware is configured at port 0x340, irq 11. In
BIOS option "IRQ11 is used by ISA device" is checked.

	Before upgrade I've used 4.1-STABLE (20000804) with the same kernel
config and driver aic without any problem.

	Current kernel config (SCSI dependant portion):

device		aic0	at isa? irq 11 port 0x340

device		scbus			#base SCSI code
device		da			#SCSI direct access devices (aka disks)
device		cd			#SCSI CD-ROMs
device		pass			#CAM passthrough driver
device		pt			#SCSI processor type

Fix: 

Unknown.
How-To-Repeat: 
	Take AVA-1505, put it in the box, make cvsup and upgrade
system/kernel, try to boot.
Comment 1 Chris D.Faulhaber freebsd_committer freebsd_triage 2000-11-11 17:42:55 UTC
Responsible Changed
From-To: gnats-admin->freebsd-bugs

Misfiled PR
Comment 2 DiethelmW 2001-03-03 19:03:51 UTC
I can give a hint to the problem.
The bug seems to hide in the file  src/sys/cam/cam_xpt.c .
Replacing this file by an older version , created by the command
                        cvs co -r 1.80.2.6  src/sys/cam/cam_xpt.c ,
and compiling a new kernel  may serve as a provisional fix .
Version 1.80.2.7 of the file mentioned above is faulty .
I have a strong guess what  the fault is , but the author of  the
changes
made (responsible  gibbs@FreeBSD.org)  should find more competent
answers than I can do.

..--
Diethelm Wildförster





Comment 3 ken 2001-03-13 22:40:18 UTC
On Sat, Mar 03, 2001 at 10:10:45 -0800, Diethelm Wildförster wrote:
> The following reply was made to PR kern/22733; it has been noted by GNATS.
> 
> From: DiethelmW@t-online.de (Diethelm =?iso-8859-1?Q?Wildf=F6rster?=)
> To: freebsd-gnats-submit@FreeBSD.org, kng@sc.ru
> Cc:  
> Subject: Re: kern/22733: RELENG_4 aic SCSI driver hangs up during disk detection 
>  on AVA-1505
> Date: Sat, 03 Mar 2001 19:03:51 +0000
> 
>  --------------F0C41593FD934743ADA1930F
>  Content-Type: text/plain; charset=iso-8859-1
>  Content-Transfer-Encoding: 8bit
>  
>  I can give a hint to the problem.
>  The bug seems to hide in the file  src/sys/cam/cam_xpt.c .
>  Replacing this file by an older version , created by the command
>                          cvs co -r 1.80.2.6  src/sys/cam/cam_xpt.c ,
>  and compiling a new kernel  may serve as a provisional fix .
>  Version 1.80.2.7 of the file mentioned above is faulty .
>  I have a strong guess what  the fault is , but the author of  the
>  changes
>  made (responsible  gibbs@FreeBSD.org)  should find more competent
>  answers than I can do.
>  
>  ..--
>  Diethelm Wildförster

I think the attached patch will fix the problem.

Please let me know whether it works for you two.

Ken
-- 
Kenneth Merry
ken@kdm.org
Comment 4 Kenneth D. Merry freebsd_committer freebsd_triage 2001-03-13 23:29:31 UTC
State Changed
From-To: open->feedback

I sent a potential fix, let's see if this works for the submitter and 
Diethelm.
Comment 5 Kenneth D. Merry freebsd_committer freebsd_triage 2001-03-18 00:18:59 UTC
State Changed
From-To: feedback->closed

Should be fixed as of rev 1.108 of cam_xpt in -current and rev 1.80.2.12 
of cam_xpt.c in RELENG_4. 


Comment 6 Kenneth D. Merry freebsd_committer freebsd_triage 2001-03-18 00:18:59 UTC
Responsible Changed
From-To: freebsd-bugs->ken

I fixed it and I'm closing it.
Comment 7 sokolov 2002-10-05 20:29:46 UTC
Dear Sirs, i have a problem, that is very similar to Konstantin
Gusenko:
During startup aic0 is succesfully detected, but when
"waiting 15 seconds for SCSI Devices to settle" message appears,
nothig happens then and system freeze.

If I'd disable aic0 in kernel config file or in boot -c editor,
system starts OK and works. Without aic0.

On the same box Windows98 works with this SCSI card without any
problem, and SCSI card (and all other cards) configuration is the same.

Environment

FreeBSD-4.6-RELEASE

AMD K6-2 300,
Lucky Star VIAMVP3,
64Mb SDRAM PC-100,
IDE WDC AC2420F HDD,
Adaptec AVA1505 SCSI Adapter (6360 based, no EPROM),
SMC8216/SMC8216C (16 bit) NET ed0,
S3Virge 2mb,

-- 
Best regards,
 Michael                          mailto:sokolov@sigma-soft.spb.su