From nsayer@quack.kfu.com  Wed Jan  8 22:10:26 1997
Received: from quack.kfu.com (0@quack.kfu.com [204.147.226.1])
          by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id WAA09876
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 8 Jan 1997 22:10:25 -0800 (PST)
Received: from icarus.kfu.com (icarus.kfu.com [204.147.226.3]) by quack.kfu.com (8.6.12/8.6.12) with ESMTP id WAA26854 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 8 Jan 1997 22:10:24 -0800
Received: by icarus.kfu.com 
        (8.8.2//ident-1.0) id WAA00679; Wed, 8 Jan 1997 22:10:20 -0800 (PST) 
Message-Id: <199701090610.WAA00679@icarus.kfu.com>
Date: Wed, 8 Jan 1997 22:10:20 -0800 (PST)
From: nsayer@quack.kfu.com
Reply-To: nsayer@quack.kfu.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: amd driver does not reprobe devices.
X-Send-Pr-Version: 3.2

>Number:         2425
>Category:       kern
>Synopsis:       amd driver does not reprobe devices.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan  8 22:20:01 PST 1997
>Closed-Date:    Thu Nov 19 23:28:26 PST 1998
>Last-Modified:  Thu Nov 19 23:29:31 PST 1998
>Originator:     Nick Sayer
>Release:        FreeBSD 2.2-ALPHA i386
>Organization:
Just me
>Environment:

HP Omnibook 5000

amd0 <amd 53c974 scsi> rev 16 int a irq 15 on pci0:4

>Description:

scsi -f /dev/scsi -p does not reprobe for devices that were not present
at boot time.

>How-To-Repeat:

Boot with nothing attached to the SCSI bus.
Suspend the machine.
Attach 1 or more SCSI devices
Resume the machine
scsi -f /dev/scsi -p will say:
0: nothing.
1: nothing.
2: nothing.
3: nothing.
4: nothing.
5: nothing.
6: nothing.
7: nothing.

>Fix:
	
Somehow the scan_devices flag needs to be set when a reprobe is called
for. Perhaps calling DC390_init() would help somehow?

>Release-Note:
>Audit-Trail:

From: se@freebsd.org (Stefan Esser)
To: nsayer@quack.kfu.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/2425: amd driver does not reprobe devices.
Date: Thu, 9 Jan 1997 22:00:37 +0100

 On Jan 8, nsayer@quack.kfu.com wrote:
 > >Description:
 > 
 > scsi -f /dev/scsi -p does not reprobe for devices that were not present
 > at boot time.
 
 Well, do other drivers do ?
 
 > >How-To-Repeat:
 > 
 > Boot with nothing attached to the SCSI bus.
 > Suspend the machine.
 > Attach 1 or more SCSI devices
 > Resume the machine
 > scsi -f /dev/scsi -p will say:
 > 0: nothing.
 > 1: nothing.
 > 2: nothing.
 > 3: nothing.
 > 4: nothing.
 > 5: nothing.
 > 6: nothing.
 > 7: nothing.
 
 At least it didn't crash your system :)
 
 > >Fix:
 > 	
 > Somehow the scan_devices flag needs to be set when a reprobe is called
 > for. Perhaps calling DC390_init() would help somehow?
 
 Hmm, I don't have much time to spend on this,
 currently. SCSI bus resan is not supported,
 and I have no way to test AMD driver changes,
 since I got no such controller card (that is,
 why I needed a BETA tester :)
 
 The driver will need changes to work with the
 new generic SCSI code (from the SCSI branch),
 I think the "scan_devices" hack should be 
 removed, then. (I didn't like it at all, but
 didn't have time and test equipment to change
 that part of the code.)
 
 Regards, STefan
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Thu Nov 19 23:28:26 PST 1998 
State-Changed-Why:  
AMD chipset not supported in CAM.  2.2.x is at end-of-life and this isn't 
likely to ever get fixed there.  Reprobing SCSI devices isn't really supported 
in pre-CAM. 
. 
>Unformatted:
