Bug 25850

Summary: apparent scsi errors when X is entered and there is no CD in drive
Product: [Retired] Red Hat Linux Reporter: Chris Runge <crunge>
Component: kernelAssignee: Doug Ledford <dledford>
Status: CLOSED CURRENTRELEASE QA Contact: Brock Organ <borgan>
Severity: high Docs Contact:
Priority: high    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-06-05 23:33:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Runge 2001-02-03 13:31:34 UTC
beta 3 (Fisher)

as soon as I startx I get the following in /var/log/messages and printed
out
to the root console:

Feb  2 15:33:34 rockne kernel: (scsi1:A:3): async, 16bit
Feb  2 15:33:34 rockne kernel: (scsi1:A:3): synchronous at 20.0MHz, offset
0xf,
16bit
Feb  2 15:33:34 rockne kernel: (scsi1:A:3): async, 16bit
Feb  2 15:33:34 rockne kernel: (scsi1:A:3): synchronous at 20.0MHz, offset
0xf,
16bit
Feb  2 15:33:34 rockne kernel: (scsi1:A:3): async, 16bit
Feb  2 15:33:34 rockne kernel: (scsi1:A:3): synchronous at 20.0MHz, offset
0xf,
16bit

There are also strange sounds coming from the computer when these messages
are printed. This is the part that concerns me and the main reason I marked
priority/severity as high.

More info:

# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: SEAGATE  Model: ST318404LW       Rev: 0006
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 03 Lun: 00
  Vendor: PLEXTOR  Model: CD-ROM PX-40TW   Rev: 1.04
  Type:   CD-ROM                           ANSI SCSI revision: 02

The SCSI controller is an on-board Adaptec 7899 dual-channel Ultra/160
controller

The CD-ROM drive was empty. If the drive has a CD in it there are no
problems. If I exit X the problem goes away.

This is with the default GNOME desktop. I noticed that if I change the CD
properties under the Control Panel so that it doesn't try to automount or
autoplay CDs then the problem appears to go away as well.

Comment 1 Michael K. Johnson 2001-02-08 21:36:32 UTC
Doug, this looks like Justin's beta driver -- see if this information
is still useful to him.

Comment 2 Doug Ledford 2001-02-09 11:08:44 UTC
This would be a description of what happens when magicdev (part of the gnome
desktop) is querying the CD-ROM drive every so often to see if there is a CD in
the drive.  Obviously, it's causing a lot of renegotiations in the driver (my
driver was having the same problem so I modified it to only renegotiate if the
returned SENSE info included something about a parity error or similar).  The
part about making noise is likely something to do with the CD-ROM drive itself
and probably doesn't matter which driver you are using (unless there are a lot
of bus device resets being delivered).  I'll forward to Justin Gibbs at Adaptec.

Comment 3 Justin T. Gibbs 2001-02-12 19:34:26 UTC
Version 6.1.1 of the aic7xxx driver will now only report negotiation messages
if the result of the negotiation differs from that last reported (unless you
have verbose messages turned on in the driver).  This will remove the messages
but, as Doug mentioned, the sound your CD drive makes when the system queries
it for media is something you'll have to take up with the hardware vendor.

Doug's change to his driver to only do the negotiation if sense data indicates
a pariticular type of error sounds dangerous.  The sense retrieval may hang the
bus if, for instance, the target has been power cycled or reset by another
initiator prior to reporting the check condition.  If that is the case, our
prior negotiation status has been invalidated and attempting to transfer at
the certainly require recovery.  If the recovery results in a bus reset, then
some operations on "innocent targets" (tape writes, a cd burning session) will
be uncorrectably terminated.