Re: luoqi's aic driver problem

1999-10-20 Thread Ilya Naumov


On Tue, 19 Oct 1999, Luoqi Chen wrote:

  i've tried new "camfied" aic driver today and failed. here is a brief
  report.
  
  results:
  
  aic controller was successfully found by the kernel, but after "Waiting 15
  seconds for SCSI devices to settle" message it said the following:
 
 The request sense command clobbered the original command, I've changed the
 code from doing that, please download a new copy of aic.c file.

i have just tried it. the kernel boots successfully:

aic0 at port 0x340-0x35f irq 9 on isa0
...
Waiting 15 seconds for SCSI devices to settle
[here the CD-ROM drive flashes with its busy LED]
(probe0:aic0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:aic0:0:0:0): UNIT ATTENTION info?:1 asc:29,0
(probe0:aic0:0:0:0): Power on, reset, or bus device reset occurred
(probe0:aic0:0:0:1): INQUIRY. CDB: 12 20 0 0 24 0
(probe0:aic0:0:0:1): ILLEGAL REQUEST asc:25,0
(probe0:aic0:0:0:1): Logical unit not supported
(probe0:aic0:0:0:2): INQUIRY. CDB: 12 40 0 0 24 0
(probe0:aic0:0:0:2): ILLEGAL REQUEST asc:25,0
(probe0:aic0:0:0:2): Logical unit not supported
(probe0:aic0:0:0:3): INQUIRY. CDB: 12 60 0 0 24 0
(probe0:aic0:0:0:3): ILLEGAL REQUEST asc:25,0
(probe0:aic0:0:0:3): Logical unit not supported
(probe0:aic0:0:0:4): INQUIRY. CDB: 12 80 0 0 24 0
(probe0:aic0:0:0:4): ILLEGAL REQUEST asc:25,0
(probe0:aic0:0:0:4): Logical unit not supported
(probe0:aic0:0:0:5): INQUIRY. CDB: 12 a0 0 0 24 0
(probe0:aic0:0:0:5): ILLEGAL REQUEST asc:25,0
(probe0:aic0:0:0:5): Logical unit not supported
(probe0:aic0:0:0:6): INQUIRY. CDB: 12 c0 0 0 24 0
(probe0:aic0:0:0:6): ILLEGAL REQUEST asc:25,0
(probe0:aic0:0:0:6): Logical unit not supported
(probe0:aic0:0:0:7): INQUIRY. CDB: 12 e0 0 0 24 0
(probe0:aic0:0:0:7): ILLEGAL REQUEST asc:25,0
(probe0:aic0:0:0:7): Logical unit not supported
...
cd0 at aic0 bus 0 target 0 lun 0
cd0: PINNACLE RCD-1000 2.35 Removable Worm SCSI-2 device
cd0: 3.300MB/s transfers
cd0: cd present [1 x 77747 byte records]

but, unfortunately, scsi probe precedure seems to be relatively
unstable. _sometimes_ (often enough) the kernel doesn't boot with the
following diagnostics:

(probe0:aic0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:aic0:0:0:0): UNIT ATTENTION info?:1 asc:29,0
(probe0:aic0:0:0:0): Power on, reset, or bus device reset occured
(probe0:aic0:0:0:1): INQURY. CDB: 12 20 0 0 24 0
(probe0:aic0:0:0:1): ILLEGAL REQUEST asc:25,0
(probe0:aic0:0:0:1): Logical unit not supported
(probe0:aic0:0:0:2): INQURY. CDB: 12 40 0 0 24 0
(probe0:aic0:0:0:2): ILLEGAL REQUEST asc:25,0
(probe0:aic0:0:0:2): Logical unit not supported
ccb 0xc0a23400 - timed out
ccb 0xc0a23400 - timed out

however, even after successful boot, the kernel traps after attempts to
mount CD-ROM (mount_cd9660 /dev/cd0c /mnt). here is debug diags:

(cd0:aic0:0:0:0): Vendor Specific Command. CDB: 43 0 0 0 0 0 b5 0 64 0
(cd0:aic0:0:0:0): ILLEGAL REQUEST asc:25,0
(cd0:aic0:0:0:0): Logical unit not supported
(cd0:aic0:0:0:0): Vendor Specific Command. CDB: 43 0 0 0 0 0 b5 0 64 0
(cd0:aic0:0:0:0): ILLEGAL REQUEST asc:25,0
(cd0:aic0:0:0:0): Logical unit not supported
(cd0:aic0:0:0:0): ccb 0xc0a23400 - timed out
(cd0:aic0:0:0:0): ccb 0xc0a23400 - timed out

then mount_cd9660 dies (cannot be killed with kill -9).

  (probe0:aic0:0:0:2): ccb 0xc09c3000 - timed out
  (probe0:aic0:0:0:2): ccb 0xc09c3000 - timed out
 
 Was there a long period between these two messages and the previous ones?

yes, it was.

  what is possible reason of such behaviour and what should i try to do to
  make my aic/cdrom combination working?
  
 For now you could add a quirk entry for this drive to prevent multi-lun
 probing, 

ok, but how? :)


sincerely,
ilya naumov (at work)




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: luoqi's aic driver problem

1999-10-20 Thread Luoqi Chen

 cd0 at aic0 bus 0 target 0 lun 0
 cd0: PINNACLE RCD-1000 2.35 Removable Worm SCSI-2 device
 cd0: 3.300MB/s transfers
 cd0: cd present [1 x 77747 byte records]
   ^
These numbers don't look right...

 but, unfortunately, scsi probe precedure seems to be relatively
 unstable. _sometimes_ (often enough) the kernel doesn't boot with the
 following diagnostics:
 
I have fixed a few places that might have caused the timeout problem.
Could you download the new code and try again? Would you also add these
debug options to your config file?

options CAMDEBUG
options CAM_DEBUG_BUS=-1
options CAM_DEBUG_TARGET=-1
options CAM_DEBUG_LUN=-1
options CAM_DEBUG_FLAGS="CAM_DEBUG_INFO|CAM_DEBUG_TRACE|CAM_DEBUG_CDB"

   what is possible reason of such behaviour and what should i try to do to
   make my aic/cdrom combination working?
   
  For now you could add a quirk entry for this drive to prevent multi-lun
  probing, 
 
 ok, but how? :)
 
Add this entry to the xpt_quirk_table in cam/cam_xpt.c,
{
{ T_WORM, SIP_MEDIA_REMOVABLE, "PINNACLE", "RCD*", "*" },
CAM_QUIRK_NOLUNS, /*mintags*/0, /*maxtags*/0
},

 sincerely,
 ilya naumov (at work)
 
Thanks for trying the driver out, I really appreciate your patience. Since I
don't have the hardware myself, I have to rely on your help.

Thanks
-lq


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: luoqi's aic driver problem

1999-10-19 Thread Luoqi Chen

 i've tried new "camfied" aic driver today and failed. here is a brief
 report.
 
 my configuration:
 
 Chaintech 6BTM mainboard with Celeron 416A processor and 128 Mb of memory
 Adaptec AIC-6360 SCSI controller (port 0x340 irq 9), irq 9 is reserved for
 Legacy/ISA card in bios setup
 Pinnacle 1000 CD writer (with SCSI device ID set to 0)
 
 kernel settings:
 
 options "CD9660"
 options "CD9660_ROOT"
 options SCSI_DELAY=15000
 controller  scbus0
 controller  aic0 at isa? port 0x340 irq 9
 device  cd0  at aic?
should be just "device cd0"

 results:
 
 aic controller was successfully found by the kernel, but after "Waiting 15
 seconds for SCSI devices to settle" message it said the following:
 
 (probe0:aic0:0:0:0): REQUEST SENSE. CDB: 3 0 0 0 20 0
 (probe0:aic0:0:0:0): UNIT ATTENTION info?:1 asc:29,0
 (probe0:aic0:0:0:0): Power on, reset, or bus device reset occured
 (probe0:aic0:0:0:1): REQUEST SENSE. CDB: 3 4 0 0 12 0
 (probe0:aic0:0:0:1): ILLEGAL REQEST asc:25,0
 (probe0:aic0:0:0:1): Logical unit not supported

The request sense command clobbered the original command, I've changed the
code from doing that, please download a new copy of aic.c file.

 (probe0:aic0:0:0:2): ccb 0xc09c3000 - timed out
 (probe0:aic0:0:0:2): ccb 0xc09c3000 - timed out

Was there a long period between these two messages and the previous ones?
Please try the new aic.c file, it will print out if a different command
is holding up the scsi bus.

 
 after that my system just hangs.

The timeout handling code is flaky, I need to understand how it should work
a little better.

 
 what is possible reason of such behaviour and what should i try to do to
 make my aic/cdrom combination working?
 
For now you could add a quirk entry for this drive to prevent multi-lun
probing, until we figure out what went wrong.

 thank you in advance.
 
 
 sincerely,
 ilya naumov (at work)
 
-lq


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



RE: luoqi's aic driver problem

1999-10-19 Thread David Schwartz


Probably a Celeron 333a running at an 83.5Mhz FSB.

DS

 Ilya Naumov wrote in list.freebsd-current:
   Chaintech 6BTM mainboard with Celeron 416A processor and 128 
 Mb of memory
 
 Please excuse me -- what is a "Celeron 416A"?
 
 Regards
Oliver Fromme



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message