From owner-freebsd-scsi Mon Nov 20 18:12:20 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA08375 for freebsd-scsi-outgoing; Mon, 20 Nov 1995 18:12:20 -0800 Received: from s1.GANet.NET (s1.GANet.NET [199.18.201.2]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id SAA08356 for ; Mon, 20 Nov 1995 18:12:02 -0800 Received: (from ec0@localhost) by s1.GANet.NET (8.6.11/8.6.11) id VAA02359; Mon, 20 Nov 1995 21:11:02 -0500 Date: Mon, 20 Nov 1995 21:11:02 -0500 (EST) From: Eric Chet To: freebsd-scsi@freebsd.org Subject: Tyan NCR 825 SCSI card Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk Hello I have a simple question. Is there anybody out there useing this NCR 825 Wide SCSI controller with FreeBSD? Has anybody tried to use it with FreeBSD? Thank you for your time. -- ejc work: ejc@nasvr1.cb.att.com home: ec0@ganet.net From owner-freebsd-scsi Tue Nov 21 18:32:01 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA20249 for freebsd-scsi-outgoing; Tue, 21 Nov 1995 18:32:01 -0800 Received: from ids.net (ids.net [155.212.1.2]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id SAA20227 for ; Tue, 21 Nov 1995 18:31:57 -0800 Date: Tue, 21 Nov 1995 21:29:09 -0500 (EST) From: "Andy Green, IDS World Network Internet Access Service, 401-885-6855" To: FREEBSD-SCSI@FREEBSD.ORG Message-Id: <951121212909.23951@ids.net> Subject: Quantum Atlas 2.1 Gigger Sender: owner-freebsd-scsi@FREEBSD.ORG Precedence: bulk Howdy! Does anyone have a disktab entry for a Quantum Atlas 2.1 gig fast wide SCSI 2 drive? I'm trying to hook one up to my current BSD system, (Pentium 100, 128Meg Ram, 9 gig fast-wide-SCSI-II hard drive), but it's giving me odd I/O errors and is basically unusable. Any clues? I've got an adaptec 2490w... Andy, green@ids.net From owner-freebsd-scsi Tue Nov 21 18:45:02 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA20959 for freebsd-scsi-outgoing; Tue, 21 Nov 1995 18:45:02 -0800 Received: from localhost.cdrom.com (localhost.cdrom.com [127.0.0.1]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id SAA20947 ; Tue, 21 Nov 1995 18:44:58 -0800 Message-Id: <199511220244.SAA20947@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: Host localhost.cdrom.com didn't use HELO protocol To: "Andy Green, IDS World Network Internet Access Service, 401-885-6855" cc: FREEBSD-SCSI@FREEBSD.ORG Subject: Re: Quantum Atlas 2.1 Gigger In-reply-to: Your message of "Tue, 21 Nov 1995 21:29:09 EST." <951121212909.23951@ids.net> Date: Tue, 21 Nov 1995 18:44:57 -0800 From: "Justin T. Gibbs" Sender: owner-freebsd-scsi@FREEBSD.ORG Precedence: bulk >Howdy! Does anyone have a disktab entry for a Quantum Atlas 2.1 gig fast >wide SCSI 2 drive? I'm trying to hook one up to my current BSD system, >(Pentium 100, 128Meg Ram, 9 gig fast-wide-SCSI-II hard drive), but it's >giving me odd I/O errors and is basically unusable. Any clues? > >I've got an adaptec 2490w... > >Andy, green@ids.net Either disable wide negotiation in SCSI-Select or upgrade to the driver in 2.1-Release. -- Justin T. Gibbs =========================================== FreeBSD: Turning PCs into workstations =========================================== From owner-freebsd-scsi Tue Nov 21 21:01:51 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA02011 for freebsd-scsi-outgoing; Tue, 21 Nov 1995 21:01:51 -0800 Received: from tellab5.lisle.tellabs.com (tellab5.lisle.tellabs.com [138.111.243.28]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id VAA02002 ; Tue, 21 Nov 1995 21:01:45 -0800 From: mikebo@tellabs.com Received: from tellabk.tellabs.com by tellab5.lisle.tellabs.com with smtp (Smail3.1.29.1 #4) id m0tI7J1-000jCRC; Tue, 21 Nov 95 23:01 CST Received: by tellabk.tellabs.com (4.1/1.9) id AA17789; Tue, 21 Nov 95 23:01:10 CST Message-Id: <9511220501.AA17789@tellabk.tellabs.com> Subject: 2.0.5R: SCSI hang and panic... HELP To: questions@freebsd.org Date: Tue, 21 Nov 1995 23:01:10 -0600 (CST) Cc: bugs@freebsd.org, freebsd-scsi@freebsd.org X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 3746 Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk Oh noooooo.... 2.1.0R is out, so I'm trying to back up my 2.0.5R machine to 8mm Exabyte, but every time I get close to finishing my tar backup, this happens: ahc0: target 0, lun 0 (sd0) timed out ahc0: target 0, lun 0 (sd0) timed out [total of six times] .. ahc_scsi_cmd0: more than 256 DMA segs sd0: oops not queued biodone: buffer already done /: bad dir ino 2 at offset 0: mangled entry panic: bad dir dumping to dev 40, offset 32768 ahc0: not responding SCSI bus busy light on... system hung. The machine is a 486DX50 EISA/VESA w/16MB, with an Adaptec 2742AT EISA SCSI card. Please find dmesg output below... The system kernel is all generic 2.0.5R EXCEPT it has an updated st.c: ($Id: st.c,v 1.38 1995/07/16 09:13:14 gibbs Exp $). Anyone see this before... know of a solution? Any suggestions would be most appreciated... Thanks! - Mike Included dmesg output: FreeBSD 2.0.5-RELEASE #0: Fri Sep 1 00:16:43 CDT 1995 kroot@timesink:/usr/src/sys/compile/TIMESINK CPU: i486DX (486-class CPU) real memory = 16384000 (4000 pages) avail memory = 14749696 (3601 pages) Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> ed0 at 0x280-0x29f irq 9 maddr 0xd4000 msize 16384 on isa ed0: address 00:00:c0:d1:09:2d, type WD8013EP (16 bit) bpf: ed0 attached sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface mse0 at 0x23c irq 3 on isa pca0 on motherboard pca0: PC speaker audio driver fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: NEC 72065B fd0: 1.44MB 3.5in fd1: 1.2MB 5.25in ahc0: reading board settings ahc0: 274x Twin Channel, A SCSI Id=7, B SCSI Id=7, aic7770 >= Rev E, 4 SCBs ahc0: Using Level Sensitive Interrupts ahc0: Downloading Sequencer Program...Done ahc0 at 0x5000-0x50ff irq 11 on eisa slot 5 ahc0: Probing channel A ahc0 waiting for scsi devices to settle ahc0: target 0 synchronous at 4.4MB/s, offset = 0xf (ahc0:0:0): "IMPRIMIS 94601-15 1250" type 0 fixed SCSI 1 sd0(ahc0:0:0): Direct-Access 989MB (2026965 512 byte sectors) ahc0: target 1 synchronous at 10.0MB/s, offset = 0xf (ahc0:1:0): "MAXTOR XT-4380S B5A" type 0 fixed SCSI 1 sd1(ahc0:1:0): Direct-Access 318MB (651630 512 byte sectors) (ahc0:2:0): "ARCHIVE VIPER 150 20000 -000" type 1 removable SCSI 1 st0(ahc0:2:0): Sequential-Access st0: Archive Viper 150 is a known rogue density code 0x0, drive empty (ahc0:5:0): "EXABYTE EXB-8200 4.25" type 1 removable SCSI 1 st1(ahc0:5:0): Sequential-Access density code 0x0, drive empty (ahc0:6:0): "NEC CD-ROM DRIVE:501 2.2" type 5 removable SCSI 2 cd0(ahc0:6:0): CD-ROM cd present.[313218 x 2048 byte records] ahc0: Probing Channel B ahc0 waiting for scsi devices to settle ahb0 not found aha0 not found at 0x330 npx0 on motherboard npx0: INT 16 interface sb0 at 0x220 irq 5 drq 1 on isa sb0: opl0 at 0x388 on isa opl0: bpf: lo0 attached bpf: ppp0 attached bpf: sl0 attached -- -------------------------------------------------------------------------- Michael Borowiec - mikebo@tellabs.com - Tellabs Operations Inc. Senior Member of Technical Staff 4951 Indiana Avenue, MS 63 708-512-8211 FAX: 708-512-7099 Lisle, IL 60532 USA -------------------------------------------------------------------------- -- -------------------------------------------------------------------------- Michael Borowiec - mikebo@tellabs.com - Tellabs Operations Inc. Senior Member of Technical Staff 4951 Indiana Avenue, MS 63 708-512-8211 FAX: 708-512-7099 Lisle, IL 60532 USA -------------------------------------------------------------------------- From owner-freebsd-scsi Wed Nov 22 02:03:23 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id CAA23351 for freebsd-scsi-outgoing; Wed, 22 Nov 1995 02:03:23 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id CAA23316 for ; Wed, 22 Nov 1995 02:02:47 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id LAA20591; Wed, 22 Nov 1995 11:02:32 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id LAA27217; Wed, 22 Nov 1995 11:02:32 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id KAA21515; Wed, 22 Nov 1995 10:30:02 +0100 From: J Wunsch Message-Id: <199511220930.KAA21515@uriah.heep.sax.de> Subject: Re: Anyone keen to help me get a Phillips CDD 521 Recorder working? To: jkh@time.cdrom.com (Jordan K. Hubbard) Date: Wed, 22 Nov 1995 10:30:02 +0100 (MET) Cc: dufault@hda.com, julian@ref.tfs.com, freebsd-scsi@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <1054.816987570@time.cdrom.com> from "Jordan K. Hubbard" at Nov 21, 95 12:59:30 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 965 Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk (I've moved this off -hackers) As Jordan K. Hubbard wrote: > > Well, here's what the replacement drive says now: > > ahc0:A:4: refuses syncronous negotiation. Using asyncronous transfers > (ahc0:4:0): "JVC WCD-ROM XR-W1001 GBBF" type 4 removable SCSI 1 > uk0(ahc0:4:0): Unknown > I guess you haven't configured the worm0 device, have you? If i remember well, i've forced worm-type devices to respond only to LUN 0. The Yamaha CDR100 i've got for some time did also respond on all LUNs, see the entry in scsiconf.c. Ähem, "options NEW_SCSI_CONF" is also your friend. (Recompile from scratch after this.) I'm highly interested in all your results, i think i can still lay my hands on a Yamaha device for a couple of days once i know how to handle it. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-scsi Wed Nov 22 08:52:22 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA25705 for freebsd-scsi-outgoing; Wed, 22 Nov 1995 08:52:22 -0800 Received: from time.cdrom.com (time.cdrom.com [192.216.222.226]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id IAA25667 for ; Wed, 22 Nov 1995 08:52:16 -0800 Received: from localhost (localhost [127.0.0.1]) by time.cdrom.com (8.6.12/8.6.9) with SMTP id IAA03181; Wed, 22 Nov 1995 08:47:59 -0800 To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) cc: dufault@hda.com, julian@ref.tfs.com, freebsd-scsi@freebsd.org Subject: Re: Anyone keen to help me get a Phillips CDD 521 Recorder working? In-reply-to: Your message of "Wed, 22 Nov 1995 10:30:02 +0100." <199511220930.KAA21515@uriah.heep.sax.de> Date: Wed, 22 Nov 1995 08:47:59 -0800 Message-ID: <3179.817058879@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk > I guess you haven't configured the worm0 device, have you? I have now, actaully, but it never does anything but give me "oops: not queued!" and go offline permanantly until the next reboot.. ;-) > The Yamaha CDR100 i've got for some time did also respond on all LUNs, > see the entry in scsiconf.c. > > Ähem, "options NEW_SCSI_CONF" is also your friend. (Recompile from > scratch after this.) Erm. In 2.1? I don't run 2.2 on this box, nor can I really. Jordan From owner-freebsd-scsi Wed Nov 22 12:52:47 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA10356 for freebsd-scsi-outgoing; Wed, 22 Nov 1995 12:52:47 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id MAA10346 for ; Wed, 22 Nov 1995 12:52:36 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id VAA06878; Wed, 22 Nov 1995 21:52:21 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id VAA06875; Wed, 22 Nov 1995 21:52:20 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id VAA23283; Wed, 22 Nov 1995 21:09:26 +0100 From: J Wunsch Message-Id: <199511222009.VAA23283@uriah.heep.sax.de> Subject: Re: Anyone keen to help me get a Phillips CDD 521 Recorder working? To: jkh@time.cdrom.com (Jordan K. Hubbard) Date: Wed, 22 Nov 1995 21:09:26 +0100 (MET) Cc: joerg_wunsch@uriah.heep.sax.de, dufault@hda.com, julian@ref.tfs.com, freebsd-scsi@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <3179.817058879@time.cdrom.com> from "Jordan K. Hubbard" at Nov 22, 95 08:47:59 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 750 Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk As Jordan K. Hubbard wrote: > > > Ähem, "options NEW_SCSI_CONF" is also your friend. (Recompile from > > scratch after this.) > > Erm. In 2.1? I don't run 2.2 on this box, nor can I really. Yes, in 2.1. It has been lurking around for too long, but i've been fixing the worm recognition only in the NEW_SCSICONF case (i think). At least, that's what i've been running by the time i had that burner on my machine. I've got it to the point where a dd(1) command caused the device to issue an "Incorrect command sequence" error, basically proving the driver could talk to the burner. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-scsi Wed Nov 22 13:07:15 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA11405 for freebsd-scsi-outgoing; Wed, 22 Nov 1995 13:07:15 -0800 Received: from time.cdrom.com (time.cdrom.com [192.216.222.226]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id NAA11392 for ; Wed, 22 Nov 1995 13:07:07 -0800 Received: from localhost (localhost [127.0.0.1]) by time.cdrom.com (8.6.12/8.6.9) with SMTP id NAA00669; Wed, 22 Nov 1995 13:05:01 -0800 To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) cc: dufault@hda.com, julian@ref.tfs.com, freebsd-scsi@freebsd.org Subject: Re: Anyone keen to help me get a Phillips CDD 521 Recorder working? In-reply-to: Your message of "Wed, 22 Nov 1995 21:09:26 +0100." <199511222009.VAA23283@uriah.heep.sax.de> Date: Wed, 22 Nov 1995 13:05:00 -0800 Message-ID: <667.817074300@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk > As Jordan K. Hubbard wrote: > > > > > Ähem, "options NEW_SCSI_CONF" is also your friend. (Recompile from > > > scratch after this.) > > > > Erm. In 2.1? I don't run 2.2 on this box, nor can I really. > > Yes, in 2.1. It has been lurking around for too long, but i've been > fixing the worm recognition only in the NEW_SCSICONF case (i think). Agh! Not NEW_SCSI_CONF he says now, it's NEW_SCSICONF. Aha, yes, that's why my greps failed before! Here I was thinking "What are they *talking* about? There's no NEW_SCSI_CONF ifdefs anywhere IN the SCSI code?!" ;-) Jordan From owner-freebsd-scsi Fri Nov 24 14:35:40 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA27735 for freebsd-scsi-outgoing; Fri, 24 Nov 1995 14:35:40 -0800 Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id OAA27725 for ; Fri, 24 Nov 1995 14:35:27 -0800 Received: (from julian@localhost) by ref.tfs.com (8.6.12/8.6.9) id OAA13797; Fri, 24 Nov 1995 14:34:36 -0800 From: Julian Elischer Message-Id: <199511242234.OAA13797@ref.tfs.com> Subject: Re: Getting an optical drive to work To: charlie_conklin@il.us.swissbank.com (Charlie Conklin) Date: Fri, 24 Nov 1995 14:34:36 -0800 (PST) Cc: charlie_conklin@il.us.swissbank.com, freebsd-scsi@freebsd.org In-Reply-To: <9511241010.AA01239@ln1d422iwk> from "Charlie Conklin" at Nov 24, 95 10:10:10 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 4795 Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk > > The first thing I did was add entries to the knowndevs[] of scsiconf.c which > looked like this: > /* Added this one to force my fuji m2521A to device sd */ > { > T_OPTICAL, T_REMOV, "*", "*", "*", > "sd", SC_ONE_LU > }, > and this: > /* Added this one to force my fuji m2521A to device sd */ > { > T_OPTICAL, T_REMOV, "FUJITSU", "any" > ,"any", "sd", SC_ONE_LU > }, > correct > for each of the defines (it turns out my kernel is compling with > NEW_SCSICONF undefined). > yes > This resulted in no change of behavior :-( So I added a few printf in > to see what was going on, and the problem is that when > scsi_device_lookup(int type) is called, it checks the type of the device > (T_OPTICAL in my case) against the type specified for the particular > driver (T_DIRECT in the case of the sd driver). Since they never match, > the uk driver is always defaulted to. eh? this has been changed by someone.....! I originally wrote it to specifically over-ride the default type if the tables said to! damn! thanks for pointing this out.! > > What I did was cheat, and make scsi_device_lookup() look like this... > > static struct scsi_device * > scsi_device_lookup(int type) > { > struct scsi_device *sd; > > printf("scsi_device_lookup for type:%d\n", type); > for (sd = device_list; sd; sd = sd->next) { > printf("scsi_device_lookup:%s:%s:%d to %d\n", > sd->name, > sd->desc, > sd->type, type); > if (sd->type == type || > (sd->type == T_DIRECT && type == T_OPTICAL)) { > return sd; > } > } > > return &uk_switch; > } heh heh! great to have you aboard! welcome to the kernel-hacker's club! > > This successfully (kindof) found the optical, and assigned it to sd2. > > Then my boot messages looked like this: > > ahc0 rev 0 int a irq 9 on pci0:6 > ahc0: reading board settings > ahc0: 294x Single Channel, SCSI Id=7, aic7870, 16 SCBs > ahc0: Downloading Sequencer Program...Done > ahc0: Probing channel A > ahc0 waiting for scsi devices to settle > ahc0: target 0 synchronous at 10.0MB/s, offset = 0x8 > (ahc0:0:0): "COMPAQ C2490A 3184" type 0 fixed SCSI 2 > > standard- > COMPAQ- > MAXTOR - > COMPAQ-scsi_device_lookup for type:0 > scsi_device_lookup:cd:CD-ROM:5 to 0 > scsi_device_lookup:st:Sequential-Access:1 to 0 > scsi_device_lookup:sd:Direct-Access:0 to 0 > sd0(ahc0:0:0): Direct-Access 2006MB (4110000 512 byte sectors) > ahc0: target 2 synchronous at 4.4MB/s, offset = 0x8 > (ahc0:2:0): "FUJITSU M2266S-1024 0014" type 0 fixed SCSI 1 > > standard- > FUJITSU- > MAXTOR - > FUJITSU-scsi_device_lookup for type:0 > scsi_device_lookup:cd:CD-ROM:5 to 0 > scsi_device_lookup:st:Sequential-Access:1 to 0 > scsi_device_lookup:sd:Direct-Access:0 to 0 > sd1(ahc0:2:0): Direct-Access 1087MB (1113504 1024 byte sectors) > ahc0: target 6 synchronous at 5.0MB/s, offset = 0x8 > (ahc0:6:0): "FUJITSU M2512A 1314" type 7 removable SCSI 2 > > FUJITSU- > FUJITSU- > any- > M2512A-scsi_device_lookup for type:7 > scsi_device_lookup:cd:CD-ROM:5 to 7 > scsi_device_lookup:st:Sequential-Access:1 to 7 > scsi_device_lookup:sd:Direct-Access:0 to 7 > sd2(ahc0:6:0): Direct-Access > sd2(ahc0:6:0): ILLEGAL REQUEST asc:24,0 Invalid field in CDB sks:c0,4 > sd2 could not mode sense (4). Using ficticious geometry > 217MB (446325 512 byte sectors) > vga0 rev 1 on pci0:14 > > There is a little cruft there due to my debugging printfs that > you can ignore. The main thing is that the device was found, > and assigned, but that it came up with some kind of error. Do > you have any idea what that means? yes, it couldn't figure out the geometry, so it decided to make one up this is ok, because the SCSI code doesn't USE geometry.. you should now be able to use 'disklabel' on your drive (disklabel -w -r .........) > > Also, for the heck of it, I tried to mount one of the opticals that > had a working dos filesystem on it (formatted under Windows NT > with the DOS FAT filesystem). When I executed the mount: > mount -t msdos /dev/sd2 /mnt > I could see the optical light go on as it tried to mount it, but it came > back with: > mount: Invalid argument The Geometry is important to DOSFdo you know the geometry the BIOS uses? what does 'fdisk sd2' say? and disklabel sd2? (on that platter) (and for that matter, on a platter which is blank,) > > Any ideas? > > Thanks... > > - Charlie conklic@swissbank.com > > From owner-freebsd-scsi Fri Nov 24 19:09:12 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id TAA18713 for freebsd-scsi-outgoing; Fri, 24 Nov 1995 19:09:12 -0800 Received: from linus.demon.co.uk (linus.demon.co.uk [158.152.10.220]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id TAA18442 for ; Fri, 24 Nov 1995 19:03:15 -0800 Received: (from mark@localhost) by linus.demon.co.uk (8.7.1/8.7.1) id CAA00258; Sat, 25 Nov 1995 02:59:21 GMT Date: Sat, 25 Nov 1995 02:59:21 GMT From: Mark Valentine Message-Id: <199511250259.CAA00258@linus.demon.co.uk> In-Reply-To: Mark Valentine's message of Nov 14, 12:43am X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: Julian Elischer , joerg_wunsch@uriah.heep.sax.de Subject: Re: kern/820: scsi tape problems Cc: freebsd-scsi@freebsd.org Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk A little more on the SCSI tape timeout problems I reported in the PR reproduced below... After noticing that an ASPI version of GNU tar under DOS would eventually get past the troublesome spot on my tape, I grubbed around in st.c and bumped up a couple of hard-wired timeouts passed to scsi_scsi_cmd() - there were two which looked likely, both set to 100000 - I added a significant zero to both. This allowed to me to successfully read the tape (yes, my tape drive really did take >100s to read that block!). It looks like the code should recover at this point - tar indeed gets an I/O error, but the aha_timeout() sets a 4 second timeout on the abort, and this seems to end me up in a call to Debugger("1542"), having erroneously diagnosed my adapter as frozen... Mark. > >Number: 820 > >Category: kern > >Synopsis: scsi tape problems > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-bugs > >State: open > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sun Nov 12 15:50:01 PST 1995 > >Last-Modified: Mon Nov 13 00:00:01 PST 1995 > >Originator: Mark Valentine > >Organization: > >Release: FreeBSD 2.2-CURRENT i386 > >Environment: > > FreeBSD 2.2-CURRENT #2: Sun Nov 12 19:29:29 GMT 1995 > mark@linus.demon.co.uk:/usr/src/sys/compile/LINUS > CPU: i486 DX2 (486-class CPU) > Origin = "GenuineIntel" Id = 0x435 Stepping=5 > Features=0x3 > real memory = 16777216 (16384K bytes) > avail memory = 14868480 (14520K bytes) > Probing for devices on the ISA bus: > sc0 at 0x60-0x6f irq 1 on motherboard > sc0: VGA color <16 virtual consoles, flags=0x0> > sio0 at 0x3f8-0x3ff irq 4 on isa > sio0: type 16450 > sio1 at 0x2f8-0x2ff irq 3 on isa > sio1: type 16550A > sio2 not found at 0x3e8 > lpt0 at 0x378-0x37f irq 7 on isa > lpt0: Interrupt-driven port > lp0: TCP/IP capable interface > pca0 on motherboard > pca0: PC speaker audio driver > fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa > fdc0: NEC 72065B > fd0: 1.44MB 3.5in > wdc0 at 0x1f0-0x1f7 irq 14 on isa > wdc0: unit 0 (wd0): > wd0: 814MB (1667232 sectors), 1654 cyls, 16 heads, 63 S/T, 512 B/S > aha0 at 0x334-0x337 irq 11 drq 5 on isa > aha0 waiting for scsi devices to settle > (aha0:0:0): "QUANTUM PD1050iS 3072" type 0 fixed SCSI 2 > sd0(aha0:0:0): Direct-Access 1003MB (2055096 512 byte sectors) > sd0(aha0:0:0): with 2448 cyls, 12 heads, and an average 69 sectors/track > (aha0:4:0): "WANGTEK 5525ES SCSI M74H 11" type 1 removable SCSI 1 > st0(aha0:4:0): Sequential-Access density code 0xf, 512-byte blocks, write-enabled > (aha0:6:0): "TOSHIBA CD-ROM XM-3401TA 2873" type 5 removable SCSI 2 > cd0(aha0:6:0): CD-ROM > cd0(aha0:6:0): NOT READY asc:3a,0 Medium not present > can't get the size > > npx0 on motherboard > npx0: INT 16 interface > sb0 at 0x220 irq 5 drq 1 on isa > sb0: > opl0 at 0x388 on isa > opl0: > uart0 at 0x330 irq 9 on isa > uart0: <6850 Midi Interface> > joy0 at 0x201 on isa > joy0: joystick > RTC BIOS diagnostic error 16 > new masks: bio c0004840, tty c003009a, net c003009a > WARNING: / was not properly dismounted. > > [The Adaptec is a 1542C (an early one, but all devices are internal) - > SCSI_DELAY=15.] > > >Description: > > (1) I had a system hang while reading a QIC-120 tape (co-inciding with > the timeout shown below). > > Nov 12 20:02:54 linus /kernel: st0(aha0:4:0): MEDIUM ERROR info:11 field replaceable unit: 1 > Nov 12 20:18:21 linus /kernel: st0(aha0:4:0): timed out > > The first error seems to be unrelated, since it didn't show up on > subsequent attempts, but the problem occurs repeatably at the same > place on the tape (about two thirds through). > > The tape error isn't a simple retry - the head shuffles about on > the tape considerably. The tape wasn't written on this drive. > (Could this be a tape drive problem?) > > On my third attempt I came out of X, and this time the system timed > out and trapped into DDB ("adapter not taking commands.. frozen?!"). > > (2) The system doesn't like to be rebooted while the tape is rewinding; > SCSI_DELAY=15 is nowhere near enough here! The system panics in the > usual way after a SCSI timeout. > > Is this just because the probe isn't clever enough to delay talking > to the SCSI device, or should it be able to find out what it needs > from the device even while rewinding? > > >How-To-Repeat: > > Happens at the same position on my tape each time. > > >Fix: > > >Audit-Trail: > > From: J Wunsch > To: mark@linus.demon.co.uk > Cc: FreeBSD-gnats-submit@FreeBSD.org > Subject: Re: kern/820: scsi tape problems > Date: Mon, 13 Nov 1995 08:47:42 +0100 (MET) > > As Mark Valentine wrote: > > > Nov 12 20:02:54 linus /kernel: st0(aha0:4:0): MEDIUM ERROR info:11 field replaceable unit: 1 > > This is clearly a problem with your tape (and/or drive). > > > Nov 12 20:18:21 linus /kernel: st0(aha0:4:0): timed out > > This looks like a subsequent problem in the driver (since your tape > drive did lengthy attempts to recover from the above error). I've > once been discussing the problems of adapter timeouts with Peter > Dufault. I think we came to the conclusion to make something else > than now, but i forgot what it was. :-) > > -- > cheers, J"org > > joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-) > >Unformatted: -- "Tigers will do ANYTHING for a tuna fish sandwich." "We're kind of stupid that way." *munch* *munch* From owner-freebsd-scsi Fri Nov 24 19:36:30 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id TAA20733 for freebsd-scsi-outgoing; Fri, 24 Nov 1995 19:36:30 -0800 Received: from hda.com (hda.com [199.232.40.182]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id TAA20702 for ; Fri, 24 Nov 1995 19:36:17 -0800 Received: (from dufault@localhost) by hda.com (8.6.11/8.6.9) id WAA06923; Fri, 24 Nov 1995 22:40:29 -0500 From: Peter Dufault Message-Id: <199511250340.WAA06923@hda.com> Subject: Re: Getting an optical drive to work To: julian@ref.tfs.com (Julian Elischer) Date: Fri, 24 Nov 1995 22:40:28 -0500 (EST) Cc: charlie_conklin@il.us.swissbank.com, freebsd-scsi@freebsd.org In-Reply-To: <199511242234.OAA13797@ref.tfs.com> from "Julian Elischer" at Nov 24, 95 02:34:36 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1164 Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk > > > This resulted in no change of behavior :-( So I added a few printf in > > to see what was going on, and the problem is that when > > scsi_device_lookup(int type) is called, it checks the type of the device > > (T_OPTICAL in my case) against the type specified for the particular > > driver (T_DIRECT in the case of the sd driver). Since they never match, > > the uk driver is always defaulted to. > eh? this has been changed by someone.....! > I originally wrote it to specifically over-ride the default > type if the tables said to! > damn! I don't know if I'm the culprit or not, but scsi_probedev is using scsi_selectdev to find the bestmatch in the scsi_devs table, and then it uses the type field in scsi_devs to override the type returned by the device. Look at the very end of scsi_probedev. So if you change "T_OPTICAL" to "T_DIRECT" to fake your device out as a direct device and hook your device up to the sd driver. The "mx1" entries in scsiconf can't be working correctly. -- Peter Dufault Real Time Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 dufault@hda.com Fax: 508 433 5267 From owner-freebsd-scsi Fri Nov 24 19:57:47 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id TAA22442 for freebsd-scsi-outgoing; Fri, 24 Nov 1995 19:57:47 -0800 Received: from mailhost.ecn.uoknor.edu (root@exmidway.ecn.uoknor.edu [129.15.112.41]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id TAA22417 ; Fri, 24 Nov 1995 19:57:24 -0800 Received: from vinson.ecn.uoknor.edu by mailhost.ecn.uoknor.edu with smtp (Smail3.1.28.1 #20) id m0tJBgF-000DKFC; Fri, 24 Nov 95 21:53 CST Date: Fri, 24 Nov 1995 21:54:05 -0600 (CST) From: "Mandar M. Mirashi" X-Sender: mandar@vinson.ecn.uoknor.edu To: SCSI@freebsd.org cc: questions@freebsd.org Subject: PCI SCSI support? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk Heya, Which PCI SCSI (fast and wide SCSI) adapters does FreeBSD support? We have a Western Digital WD7197 adapter (32-bit PCI to fast wide SCSI-3) and were wondering if anyone has tested this board or found a way to get it to work :-). In case we can't get this work, is there support for the Buslogic 956C (fast and wide) SCSI adapter or the Adaptec PCI SCSI 2940W adapter? Thanks Mandar Mandar Mirashi, | Std. Disclaimer: All opinions expressed Systems Support Programmer, | belong solely to myself and in no Engineering Computer Network| way reflect those of my employers. University of Oklahoma (OU).| mandar@ou.edu, Mmmm@alias.undernet.org From owner-freebsd-scsi Fri Nov 24 23:30:31 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id XAA08304 for freebsd-scsi-outgoing; Fri, 24 Nov 1995 23:30:31 -0800 Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id XAA08280 ; Fri, 24 Nov 1995 23:30:27 -0800 Received: (from julian@localhost) by ref.tfs.com (8.6.12/8.6.9) id XAA14726; Fri, 24 Nov 1995 23:30:12 -0800 From: Julian Elischer Message-Id: <199511250730.XAA14726@ref.tfs.com> Subject: Re: PCI SCSI support? To: mandar@mailhost.ecn.uoknor.edu (Mandar M. Mirashi) Date: Fri, 24 Nov 1995 23:30:12 -0800 (PST) Cc: SCSI@freebsd.org, questions@freebsd.org In-Reply-To: from "Mandar M. Mirashi" at Nov 24, 95 09:54:05 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 797 Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk > > Heya, > > Which PCI SCSI (fast and wide SCSI) adapters does FreeBSD support? > We have a Western Digital WD7197 adapter (32-bit PCI to fast wide > SCSI-3) and were wondering if anyone has tested this board or found > a way to get it to work :-). no support unless you get the specs and write one.. > > In case we can't get this work, is there support for the Buslogic > 956C (fast and wide) SCSI adapter or the Adaptec PCI SCSI 2940W > adapter? yes and yes > > Thanks > > Mandar > > Mandar Mirashi, | Std. Disclaimer: All opinions expressed > Systems Support Programmer, | belong solely to myself and in no > Engineering Computer Network| way reflect those of my employers. > University of Oklahoma (OU).| mandar@ou.edu, Mmmm@alias.undernet.org >