From owner-freebsd-scsi Tue Sep 22 19:31:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA02054 for freebsd-scsi-outgoing; Tue, 22 Sep 1998 19:31:05 -0700 (PDT) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from nomis.simon-shapiro.org (nomis.simon-shapiro.org [209.86.126.163]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id TAA02007 for ; Tue, 22 Sep 1998 19:30:59 -0700 (PDT) (envelope-from shimon@simon-shapiro.org) Received: (qmail 12363 invoked by uid 1000); 23 Sep 1998 03:06:48 -0000 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19980923003214.35208@follo.net> Date: Tue, 22 Sep 1998 23:06:48 -0400 (EDT) X-Face: (&r=uR0&yvh>h^ZL4"-TH61PD}/|Y'~58Z# Gz&BK'&uLAf:2wLb~L7YcWfau{;N(#LR2)\i.l8'ZqVhv~$rNx$]Om6Sv36S'\~5m/U'"i/L)&t$R0&?,)tm0l5xZ!\hZU^yMyCdt!KTcQ376cCkQ^Q_n.GH;Dd-q+ O51^+.K-1Kq?WsP9;cw-Ki+b.iY-5@3!YB5{I$h;E][Xlg*sPO61^5=:5k)JdGet,M|$"lq!1!j_>? $0Yc? Reply-To: shimon@simon-shapiro.org Organization: The Simon Shapiro Foundation From: Simon Shapiro To: Eivind Eklund Subject: RE: DPT boot Cc: scsi@FreeBSD.ORG Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Eivind Eklund, On 22-Sep-98 you wrote: > I just tried to boot my box with a CAMified kernel, and found that it > wouldn't. Everything probed fine, but after the NPX message it just > hung > for a long while. After a number of minutes (more than 2, as that was > what > I tried first, but less than 17, which was when I got back to the box) > it > spit out a message (something like "CCB (0:0:0:0:0) Timed out" - I > unfortunately didn't write it down). I get similar symptoms, but much shorter timeouts, like fraction of a second per CCB. Then I get the panic I reported. since there is no documentation for the driver layer, I can only guess at what I see; for each possible drive, there is a CCB. Probably to handle the Inquiry or some such. For non-existing drives, these indeed should timeout. > This is with the following DPT controller: > dpt0: rev 0x02 int a irq 10 on > pci0.11.0 > dpt0: DPT type 3, model PM3224W firmware 07H1, Protocol 0 > on port d810 with Write-Back cache. LED = 0000 0000 > dpt0: Enabled Options: > dpt0: waiting for scsi devices to settle > scbus0 at dpt0 bus 0 > ... and an Adaptec 2940: > ahc0: rev 0x00 int a irq 9 on > pci0.13.0 > ahc0: aic7880 Single Channel, SCSI Id=7, 16 SCBs > ahc0: waiting for scsi devices to settle > scbus1 at ahc0 bus 0 > > The CCB message was the only I got - no disk descriptions from either > controller (though I don't know if I should expect them - this is my > first > CAM experiement). I would imagine these should come later, once the CCBs are answered. > Any clues? Anything I should test? (I can hook up a pretty complete > debugging environment here, including doing remote kernel debugging if > necessary - at the moment I also have 'scratch' disks I can use for > testing, > though not having this controller operational means I my main > workstation is > not usable, so I'd prefer to avoid tests that take a long time). I assume this controller works on the pre-CAM driver... :-) > Oh, and while this was happening, the DPT kept a steady light #3 (as > counted > from the connector-less end of the DPT). On a 3224 it is bus transfer from adapter, or adapter reset (depends on how you look at it, and assuming first LED is 1). If it is a transfer LED, then the DMA engine is stuck. If it is a reset, that means the controller was reset and never released. In either case I would suspect the initialization code does not work correctly. I have some work-work emergencies to handle right now, but will start debugging this driver any day soon. ``...And Carthage shall fall..'' - Cicero ``Documentation would have been nice'' - Simon Sincerely Yours, Shimon@Simon-Shapiro.ORG 770.265.7340 Simon Shapiro Unwritten code has no bugs and executes at twice the speed of mouth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message