Date: Tue, 25 Feb 1997 22:33:38 -0800 (PST) From: Simon Shapiro <Shimon@i-Connect.Net> To: freebsd-hackers@freebsd.org Subject: FW: SCSI HBA QUESTION - IMPORTANT (long) Message-ID: <XFMail.970225223428.Shimon@i-Connect.Net> Resent-Message-ID: <199702260634.WAA26112@sendero.i-connect.net>
next in thread | raw e-mail | index | archive | help
----- Forwarded Message ----: SCSI HBA QUESTION - IMPORTANT (long)-----
Content-Type: text/plain; charset=iso-8859-8
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
Date: Tue, 25 Feb 1997 22:11:07 -0800 (PST)
Organization: iConnect Corp.
XFMstatus: 0400
From: Simon Shapiro <Shimon@i-Connect.Net>
To: freebsd-scsi@freebsd.org
Subject: SCSI HBA QUESTION - IMPORTANT (long)
Hi Y'all!
I am finally starting to debug the DPT driver. Here is what I have. There
is a question at the end:
The following is a trace of kernel messages. It has compiled with option
SCSIDEBUG, which does not seem to help me much :-(
chip2 <Intel 82371FB IDE interface> rev 2 on pci0:7:1 <-- Last before SCSI
dpt0 <DPT Caching SCSI RAID Controller> rev 2 int a irq 11 on pci0:17
dpt_alloc(0, ef80, 0xf148ac00) <-- Allocates a softc, etc. Seems OK.
get_board_data(ef80, 0) <-- Gets much infor from the DPT. Seems OK
dpt_intr_mode(0xef80, 1) <-- Disables interrupts from the DPT
dpt_send_immediate(ef80, 0, 4, 0, 0) <-- Sends immediate commands
dpt_send_eata_command(f10c7f00, ef80, ff, 0) <-- Sends regular commands
dpt_intr_mode(0xef80, 0) <-- Enables interrupts from the DPT
dpt_send_immediate(ef80, 0, 4, 1, 0) <-- Sends another immediate command
dpt_alloc_freelist(0xf148cc00) <-- Allocates a chunk of CCB's
dpt0: Total CCB's increased by 64 to 64 <-- From dpt_alloc_freelist
dpt_alloc(0, ef80, 0xf148ac00) <-- End of this function
dpt_attach(0xf148cc00) <-- Sets up the scsi_link
ndx = 0, channels = 1 <- This DPT has only one channel
[597] <-- Just before scbus = scsi_alloc_bus()
[600] <-- scsi_alloc_bus() returned non-zero
dpt0 waiting for scsi devices to settle <-- From scsi_alloc_bus??
[611] <-- Just after scsi_attachdevs(scbus) returned
[614] <-- the scsi-alloc_bus()/scsi_attachdevs() loop exited.
ahc0 <Adaptec 2940 Ultra SCSI host adapter> rev 0 int a irq 10 on pci0:18
ahc0: aic7880 Single Channel, SCSI Id=7, 16 SCBs
ahc0 waiting for scsi devices to settle
(ahc0:0:0): "SEAGATE ST51080N 0913" type 0 fixed SCSI 2
Now, the conf file for this kernel looks (for the DPT) like:
controller ahc0
controller scbus0 at ahc0
controller dpt0
controller scbus1 at dpt0
controller scbus2 at dpt0
controller scbus3 at dpt0
disk sd0 at scbus0 target 0 unit 0
disk sd1 at scbus0 target 1 unit 0
disk sd3 at scbus1 target 0 unit 0
QUESTION: Assuming someone can sort through this, what do I need to do to
convince scsi_attachdevs() to actually do something with the DPT?
It sees the Adaptec allright, but makes no attempt to call on the
DPT.
Thanx!
Simon
-------------End of forwarding message-------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.970225223428.Shimon>
