Re: LS120, ATANg and Atapicam

2003-09-07 Thread Bruce Evans
On Sun, 7 Sep 2003, Mark Dixon wrote:

 I'm not sure if this is a known problem, but I don't see any references
 to it. I've gone from 5.1-RELEASE to todays CURRENT to try to get rid of
 a different panic (no news on that yet), but I have hit this one.

 If I boot my system with no floppy in the LS-120, the system panics
 where atapicam creates da0 for it. If there is a disk in the drive, it
 works fine.

 As yet, I havn't got the details of the panic, but if this is of
 interest to anyone here, I will be willing to provide them with them
 (they wil have to be be copied out by hand, so I'm lothe to do it if
 nobody is interested).

I see similar bugs for a 1 ZIP drive 2 CDROM drives.  The panic is mostly
for division by 0 in cam_calc_geometry(), but sometimes there is division
by a garbage value and the error is detected before it causes a panic.
Debugging one of the CDROM drives shows that all SCSI commands done as
part of cdopen() succeed although there is no disk in the drive!   Most of
the commands are reads and the reads are apparently null, leaving garbage
in the buffers.  In particular, the disk geometry is garbage and dividing
by a garbage sector size of 0 causes the panic.  The SCSI commands get
at least as far as ata_completed() (via ata_command() and ata_interrupt()
so they apparently get sent to the drive, but no errors are detected.

For ATAPI drives, there are no problems unless the drives are explicitly
accessed since GEOM doesn't probe them unconditonally.  Panics for the
ZIP drive are deterministic here since GEOM accesses it unconditionally
at boot time when the garbage is more likely to be 0.

Bruce
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


LS120, ATANg and Atapicam

2003-09-07 Thread David Gilbert
 Mark == Mark Dixon [EMAIL PROTECTED] writes:

Mark Hi, I'm not sure if this is a known problem, but I don't see any
Mark references to it. I've gone from 5.1-RELEASE to todays CURRENT
Mark to try to get rid of a different panic (no news on that yet),
Mark but I have hit this one.

Mark If I boot my system with no floppy in the LS-120, the system
Mark panics where atapicam creates da0 for it. If there is a disk in
Mark the drive, it works fine.

Mark As yet, I havn't got the details of the panic, but if this is of
Mark interest to anyone here, I will be willing to provide them with
Mark them (they wil have to be be copied out by hand, so I'm lothe to
Mark do it if nobody is interested).

Mark Sorry if this email is a little vague, its been a long week.

I'm just about to try to reproduce a panic along the same lines.  My
laptop has two ide channels with the hard drive on one and the DVD+R
drive on the other.  With yesterday's cvsup, it somehow finds a
phantom ad3 _only_ if the DVD+R is in it's bay.  With the DVD+R
removed, the system is still functional (luckily).

More info to follow as I get a kernel with debugging symbols in it.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: LS120, ATANg and Atapicam

2003-09-07 Thread Josh Elsasser
On Sun, Sep 07, 2003 at 12:18:56AM +, Mark Dixon wrote:
 Hi,
 
 I'm not sure if this is a known problem, but I don't see any references 
 to it. I've gone from 5.1-RELEASE to todays CURRENT to try to get rid of 
 a different panic (no news on that yet), but I have hit this one.
 
 If I boot my system with no floppy in the LS-120, the system panics 
 where atapicam creates da0 for it. If there is a disk in the drive, it 
 works fine.
 
 As yet, I havn't got the details of the panic, but if this is of 
 interest to anyone here, I will be willing to provide them with them 
 (they wil have to be be copied out by hand, so I'm lothe to do it if 
 nobody is interested).
 
 Sorry if this email is a little vague, its been a long week.

Just want to add a me too here.  I have what looks like the same
problem with an atapi zip drive.  I can set up a serial cable and try
to get a backtrace if that would help.

 -jre
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


LS120, ATANg and Atapicam

2003-09-06 Thread Mark Dixon
Hi,

I'm not sure if this is a known problem, but I don't see any references 
to it. I've gone from 5.1-RELEASE to todays CURRENT to try to get rid of 
a different panic (no news on that yet), but I have hit this one.

If I boot my system with no floppy in the LS-120, the system panics 
where atapicam creates da0 for it. If there is a disk in the drive, it 
works fine.

As yet, I havn't got the details of the panic, but if this is of 
interest to anyone here, I will be willing to provide them with them 
(they wil have to be be copied out by hand, so I'm lothe to do it if 
nobody is interested).

Sorry if this email is a little vague, its been a long week.

Mark

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]