From owner-freebsd-scsi Sun Jun 2 0:58:53 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 5718637B404 for ; Sun, 2 Jun 2002 00:58:49 -0700 (PDT) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.3/8.12.3) with ESMTP id g527weHc081176 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sun, 2 Jun 2002 09:58:42 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g527wkSA034144 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 2 Jun 2002 09:58:46 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g527wjeh034143; Sun, 2 Jun 2002 09:58:45 +0200 (CEST)?g (envelope-from ticso) Date: Sun, 2 Jun 2002 09:58:45 +0200 From: Bernd Walter To: David Powers Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: scsi aic7899 weirdness Message-ID: <20020602075844.GH16695@cicely5.cicely.de> Reply-To: ticso@cicely.de References: <001e01c207fb$f865ebd0$0b00000a@david> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001e01c207fb$f865ebd0$0b00000a@david> User-Agent: Mutt/1.3.26i X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, May 30, 2002 at 01:03:50PM -0400, David Powers wrote: > I have a new disk server with a SuperMicro P4SBR motherboard with an > on-board aic7899 controller. When I boot the machine with either > 4.5-RELEASE or 4-STABLE I get the attached set of lengthy messages. The DLT > drive attached to the controller detects, but any attempt to access it with > mt fails with "mt: /dev/sa0: Input/output error". Any help on figuring out > what is going on would be greatly appreciated. > > -David Powers > > Copyright (c) 1992-2002 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD 4.6-RC #1: Tue May 28 21:23:01 EDT 2002 > dpowers@disk2.cornerstonecapitalpartners.com:/usr/obj/usr/src/sys/DISK > Timecounter "i8254" frequency 1193182 Hz > CPU: Pentium 4 (1799.81-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf24 Stepping = 4 [...] > ahc0: port 0x9000-0x90ff mem > 0xe8200000-0xe8200fff irq 10 at device 5.0 on pci2 > aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs > ahc1: port 0x9400-0x94ff mem > 0xe8202000-0xe8202fff irq 11 at device 5.1 on pci2 > aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs [...] > Waiting 15 seconds for SCSI devices to settle > ahc0:A:5: Missed busfree. Lastphase = 0xe0, Curphase = 0x0 > ahc0: Missing case in ahc_handle_scsiint. status = 8 > (probe34:ahc0:0:6:0): SCB 0x3 - timed out Your device at ID 6 timed out before that you missed a busfree. Most likely a cabeling or termination error. Later on there are timeouts on other devices too. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Jun 3 21:52:37 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from smtp2.mivlmd.cablespeed.com (smtp2.mivlmd.cablespeed.com [216.45.64.147]) by hub.freebsd.org (Postfix) with SMTP id 0B29937B403 for ; Mon, 3 Jun 2002 21:52:34 -0700 (PDT) Received: (qmail 27386 invoked by uid 0); 4 Jun 2002 04:52:03 -0000 Received: from unknown (HELO cablespeed.com) (216.45.72.227) by 0 with SMTP; 4 Jun 2002 04:52:03 -0000 Message-ID: <3CFC4770.B70D34F8@cablespeed.com> Date: Tue, 04 Jun 2002 00:52:00 -0400 From: Chuck McCrobie X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Subject: Support for Fujitsu MB89352 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I have a Fujitsu PCMCIA SCSI card which identifies itself as "EIGER LAB EPX-SS1000". Having no success identifying a driver, I took the card apart and found a "Fujitsu MB89352" SCSI controller chip. Evidently, NetBSD has support for this chip and presumbly, the card. My question is this: 1. Is anyone working on support for the Fujitsu MB89352 chip? 2. How hard is it to port the NetBSD driver over? a. Are host bus adapter drivers compatible between NetBSD and FreeBSD? b. What would be a good driver to get the skeleton of a host bus adapter can "drop-in" the MB89352 support? My ultimate goal is to get a Linux (ugh!) driver for this chip so I can use it with my Sharp Zaurus ;) So, my next questions: 1. Is anyone here familiar with the Linux SCSI host adapter drivers? 2. Which is an easier port - if there is such a thing: a. FreeBSD -> Linux b. NetBSD -> Linux Chuck McCrobie -- ­ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Mon Jun 3 22: 8:20 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from magic.adaptec.com (magic.adaptec.com [208.236.45.80]) by hub.freebsd.org (Postfix) with ESMTP id B78DC37B401 for ; Mon, 3 Jun 2002 22:08:16 -0700 (PDT) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11]) by magic.adaptec.com (8.10.2+Sun/8.10.2) with ESMTP id g5458Bj20125; Mon, 3 Jun 2002 22:08:11 -0700 (PDT) Received: from btc.btc.adaptec.com (btc.btc.adaptec.com [10.100.0.52]) by redfish.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id WAA29287; Mon, 3 Jun 2002 22:08:11 -0700 (PDT) Received: from hollin.btc.adaptec.com (hollin [10.100.253.56]) by btc.btc.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id XAA16939; Mon, 3 Jun 2002 23:08:09 -0600 (MDT) Received: from hollin.btc.adaptec.com (localhost [127.0.0.1]) by hollin.btc.adaptec.com (8.12.3/8.12.3) with ESMTP id g5455QrP012427; Mon, 3 Jun 2002 23:05:26 -0600 (MDT) (envelope-from scottl@hollin.btc.adaptec.com) Received: (from scottl@localhost) by hollin.btc.adaptec.com (8.12.3/8.12.3/Submit) id g5455QIG012426; Mon, 3 Jun 2002 23:05:26 -0600 (MDT) Date: Mon, 3 Jun 2002 23:05:26 -0600 From: Scott Long To: Chuck McCrobie Cc: freebsd-scsi@freebsd.org Subject: Re: Support for Fujitsu MB89352 Message-ID: <20020604050526.GC12360@hollin.btc.adaptec.com> References: <3CFC4770.B70D34F8@cablespeed.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CFC4770.B70D34F8@cablespeed.com> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Jun 04, 2002 at 12:52:00AM -0400, Chuck McCrobie wrote: > I have a Fujitsu PCMCIA SCSI card which identifies itself as "EIGER LAB > EPX-SS1000". Having no success identifying a driver, I took the card > apart and found a "Fujitsu MB89352" SCSI controller chip. > > Evidently, NetBSD has support for this chip and presumbly, the card. My > question is this: > > 1. Is anyone working on support for the Fujitsu MB89352 chip? Cannot say. I didn't know that such a beast existed. > 2. How hard is it to port the NetBSD driver over? > a. Are host bus adapter drivers compatible between NetBSD and FreeBSD? Not in the least, tiniest bit. The biggest difference is in the SCSI layers of the two. Porting it would not be a trivial task. Your best bet is to start a new driver, and use the NetBSD one as a reference. > b. What would be a good driver to get the skeleton of a host bus > adapter > can "drop-in" the MB89352 support? There are no skeleton drivers out there that I know of. Daemonnews had an article two years ago about how to write a CAM driver (CAM is the SCSI layer in FreeBSD), but I can't find the link at the moment. There are several well-written drivers in the tree right now that can be used as reference, like the aic7xxx driver. > > My ultimate goal is to get a Linux (ugh!) driver for this chip so I can > use it with my Sharp Zaurus ;) > > So, my next questions: > > 1. Is anyone here familiar with the Linux SCSI host adapter drivers? You don't want to get involved with Linux SCSI drivers. The Linux SCSI layer is very poorly designed and written, even by Linux standards. > 2. Which is an easier port - if there is such a thing: > a. FreeBSD -> Linux > b. NetBSD -> Linux All three OS's are very different beasts. Porting to Linux will be the most frustrating task by a large margin. You'll be much happier sticking to filesystems =-) Scott To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Jun 4 11:20:13 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (Postfix) with ESMTP id 224EE37B404 for ; Tue, 4 Jun 2002 11:20:08 -0700 (PDT) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id UAA00128 for freebsd-scsi@freebsd.org; Tue, 4 Jun 2002 20:20:06 +0200 (CEST) Received: (from j@localhost) by uriah.heep.sax.de (8.11.6/8.11.6) id g54IA8894333; Tue, 4 Jun 2002 20:10:08 +0200 (MET DST) (envelope-from j) Date: Tue, 4 Jun 2002 20:10:08 +0200 (MET DST) Message-Id: <200206041810.g54IA8894333@uriah.heep.sax.de> Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Organization: Private BSD site, Dresden X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E References: <3CFC4770.B70D34F8@cablespeed.com> <20020604050526.GC12360@hollin.btc.adaptec.com> From: j@uriah.heep.sax.de (Joerg Wunsch) Subject: Re: Support for Fujitsu MB89352 X-Original-Newsgroups: local.freebsd.scsi To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Scott Long wrote: >> 2. How hard is it to port the NetBSD driver over? >> a. Are host bus adapter drivers compatible between NetBSD >> and FreeBSD? > Not in the least, tiniest bit. The biggest difference is in the > SCSI layers of the two. Porting it would not be a trivial task. PAO once imported a number of (PCMCIA) drivers that use the NetBSD "scsi_low" API. Perhaps it's not all that hard to setup the new driver on top of that? -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Jun 4 22:36:44 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by hub.freebsd.org (Postfix) with ESMTP id CB78637B400 for ; Tue, 4 Jun 2002 22:36:40 -0700 (PDT) Received: from bremen.shuttle.de (localhost [127.0.0.1]) by bremen.shuttle.de (Postfix) with ESMTP id D1A6917DD8 for ; Wed, 5 Jun 2002 07:36:38 +0200 (CEST) Received: (from uucp@localhost) by bremen.shuttle.de (8.12.3/8.12.3/Debian -4) with UUCP id g555ac63023276 for freebsd-scsi@freebsd.org; Wed, 5 Jun 2002 07:36:38 +0200 Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) by hal9000.schweikhardt.net (8.12.3/8.12.3) with ESMTP id g555Z53J001030 for ; Wed, 5 Jun 2002 07:35:05 +0200 (CEST) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.12.3/8.12.3/Submit) id g555Z4Z1001029 for freebsd-scsi@freebsd.org; Wed, 5 Jun 2002 07:35:04 +0200 (CEST) Date: Wed, 5 Jun 2002 07:35:04 +0200 From: Jens Schweikhardt To: FreeBSD SCSI Subject: Fujitsu MAN SCSI specs Message-ID: <20020605073504.A641@schweikhardt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hello, world\n in order to read the hd temperature from my IBM DDYS I use #!/bin/sh # Read Log Sense Page 2F, # Byte 10 and 11 (starting at 0) are the # 10: Most recent temperature reading # 11: Vendor HDA Temperature trip point camcontrol cmd da2 -v -c "4D 00 6F 00 00 00 00 00 0C 00" -i 12 "s10 i1 i1" I couldn't find the SCSI commands specs for my new Fujitsu MAN3367 drives on the Fujitsu web. Does anybody know where I can obtain them? Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Jun 5 19:16:48 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from portrait.com (mail.portrait.com [64.171.32.68]) by hub.freebsd.org (Postfix) with ESMTP id DB2FA37B406 for ; Wed, 5 Jun 2002 19:16:45 -0700 (PDT) Received: from webvolution.net (teko.portrait.com [64.171.32.36]) by portrait.com (8.9.3/8.9.3) with ESMTP id SAA15890 for ; Wed, 5 Jun 2002 18:58:00 -0700 Message-ID: <3CFEC5F4.2070003@webvolution.net> Date: Wed, 05 Jun 2002 19:16:20 -0700 From: Joao Pedras User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.9) Gecko/20020406 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Subject: sync cache Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greetings all! I have a couple of systems with a similar scsi disk sub-system. When I shutdown (and only then, since I haven't noticed this in any other ocasion) I get : SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0 error code 0 after the syncing disks stuff. Is there a problem here ? The host controllers are Adaptecs 29160 and they are connected to a OpenRAID (FlashDisk) from Winchester Systems. Please cc: you reply to me since I am not in this list. Thanks for your time! Joao To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Jun 6 4: 0:58 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 6B3AC37B401 for ; Thu, 6 Jun 2002 04:00:54 -0700 (PDT) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.3/8.12.3) with ESMTP id g56B0nHc041037 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 6 Jun 2002 13:00:51 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g56B14SA078154 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 6 Jun 2002 13:01:04 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g56B12R0078153; Thu, 6 Jun 2002 13:01:02 +0200 (CEST)?g (envelope-from ticso) Date: Thu, 6 Jun 2002 13:01:02 +0200 From: Bernd Walter To: Joao Pedras Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: sync cache Message-ID: <20020606110101.GU66505@cicely5.cicely.de> Reply-To: ticso@cicely.de References: <3CFEC5F4.2070003@webvolution.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CFEC5F4.2070003@webvolution.net> User-Agent: Mutt/1.3.26i X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Jun 05, 2002 at 07:16:20PM -0700, Joao Pedras wrote: > Greetings all! > > I have a couple of systems with a similar scsi disk sub-system. > > When I shutdown (and only then, since I haven't noticed this in any > other ocasion) I get : > > SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0 > error code 0 > > after the syncing disks stuff. > > Is there a problem here ? The drive did not implement the sync cache command, which is used to flush out the write cache. Unless you have enabled write cache and turn off the machine right after shutting down there is no problem. Normaly only older SCSI-1 drives do not implement the command. > The host controllers are Adaptecs 29160 and they are connected to a > OpenRAID (FlashDisk) from Winchester Systems. Even if they do not need the command they should have implemented it as a nop. Possibly this command is even required in recent SCSI specs. Such a lousy implementation does not create trust in firmware. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Jun 7 8: 2:26 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from ns2.webvolution.net (ns2.webvolution.net [64.173.23.218]) by hub.freebsd.org (Postfix) with ESMTP id 507A337B407 for ; Fri, 7 Jun 2002 08:02:08 -0700 (PDT) Received: from ns2.webvolution.net (localhost [127.0.0.1]) by ns2.webvolution.net (8.12.2/8.12.2) with ESMTP id g57F0ILm001500 for ; Fri, 7 Jun 2002 08:00:19 -0700 (PDT) (envelope-from jpedras@webvolution.net) Received: (from jpedras@localhost) by ns2.webvolution.net (8.12.2/8.12.2/Submit) id g57F0If6001499 for freebsd-scsi@freebsd.org; Fri, 7 Jun 2002 08:00:18 -0700 (PDT) X-Authentication-Warning: ns2.webvolution.net: jpedras set sender to jpedras@webvolution.net using -f Date: Fri, 7 Jun 2002 08:00:18 -0700 From: Joao Pedras To: freebsd-scsi@freebsd.org Subject: Re: sync cache Message-ID: <20020607080018.D1398@webvolution.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Organization: Portrait Displays Inc. Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org :) Now thia is where it gets confusing : root@athena ~ # camcontrol modepage -n da -u 0 -m8 IC: 0 ABPF: 0 CAP: 0 DISC: 1 SIZE: 0 WCE: 0 MF: 0 RCD: 0 Demand Retention Priority: 0 Write Retention Priority: 0 Disable Pre-fetch Transfer Length: 65535 Minimum Pre-fetch: 0 Maximum Pre-fetch: 65535 Maximum Pre-fetch Ceiling: 65535 WCE is set to zero. My last message is still valid. I keep getting that I cannot edit it... On Thu, Jun 06, 2002 at 05:43:50PM +0200, Bernd Walter wrote: > > camcontrol modepage -n da -u $danumber -m 8 -e -P 3 > Just set WCE (write cache enable) to zero. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Jun 7 9: 1: 9 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 2C68A37B407 for ; Fri, 7 Jun 2002 09:01:03 -0700 (PDT) Received: (from ken@localhost) by panzer.kdm.org (8.11.6/8.9.1) id g57G10M98565; Fri, 7 Jun 2002 10:01:00 -0600 (MDT) (envelope-from ken) Date: Fri, 7 Jun 2002 10:01:00 -0600 From: "Kenneth D. Merry" To: Joao Pedras Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: sync cache Message-ID: <20020607100100.A98478@panzer.kdm.org> References: <20020607080018.D1398@webvolution.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020607080018.D1398@webvolution.net>; from jpedras@webvolution.net on Fri, Jun 07, 2002 at 08:00:18AM -0700 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Jun 07, 2002 at 08:00:18 -0700, Joao Pedras wrote: > > :) > > Now thia is where it gets confusing : > > root@athena ~ # camcontrol modepage -n da -u 0 -m8 > IC: 0 > ABPF: 0 > CAP: 0 > DISC: 1 > SIZE: 0 > WCE: 0 > MF: 0 > RCD: 0 > Demand Retention Priority: 0 > Write Retention Priority: 0 > Disable Pre-fetch Transfer Length: 65535 > Minimum Pre-fetch: 0 > Maximum Pre-fetch: 65535 > Maximum Pre-fetch Ceiling: 65535 > > WCE is set to zero. > > My last message is still valid. I keep getting that I cannot edit it... Try the following: camcontrol modepage da0 -m 8 -P 1 If WCE is set to 0, you can't edit the value. If it is set to 1, you can edit the value. (When the page control field is set to 1, you get a bitmask back of the parameters that can be changed. That is what camcontrol uses to figure out whether the field can be changed.) > On Thu, Jun 06, 2002 at 05:43:50PM +0200, Bernd Walter wrote: > > > > camcontrol modepage -n da -u $danumber -m 8 -e -P 3 > > Just set WCE (write cache enable) to zero. > > Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Jun 7 9: 8:23 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from misery.sdf.com (misery.sdf.com [207.200.153.226]) by hub.freebsd.org (Postfix) with ESMTP id 595DE37B405 for ; Fri, 7 Jun 2002 09:08:17 -0700 (PDT) Received: from tom (helo=localhost) by misery.sdf.com with local-esmtp (Exim 2.12 #1) id 17GLM7-00064x-00; Fri, 7 Jun 2002 08:08:47 -0700 Date: Fri, 7 Jun 2002 08:08:45 -0700 (PDT) From: Tom Samplonius To: ticso@cicely.de Cc: Joao Pedras , freebsd-scsi@FreeBSD.ORG Subject: Re: sync cache In-Reply-To: <20020606110101.GU66505@cicely5.cicely.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 6 Jun 2002, Bernd Walter wrote: > Even if they do not need the command they should have implemented > it as a nop. I don't think that is a good idea for a device to lie about what it supports. The illegal command response is an appropriate response for an unimplemented command, so OS knows that the command did not work. FreeBSD simply logs it to the console, and it is harmless. BTW, most SCSI-SCSI RAID boxes don't implement the cache flush command. > Possibly this command is even required in recent SCSI specs. > Such a lousy implementation does not create trust in firmware. > > -- > B.Walter COSMO-Project http://www.cosmo-project.de > ticso@cicely.de Usergroup info@cosmo-project.de > Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Jun 7 9:19:34 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id 49E0337B405 for ; Fri, 7 Jun 2002 09:19:29 -0700 (PDT) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.3/8.12.3) with ESMTP id g57GJKHc062996 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 7 Jun 2002 18:19:22 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g57GJLSA091506 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 7 Jun 2002 18:19:21 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g57GJLYg091505; Fri, 7 Jun 2002 18:19:21 +0200 (CEST)?g (envelope-from ticso) Date: Fri, 7 Jun 2002 18:19:20 +0200 From: Bernd Walter To: Tom Samplonius Cc: ticso@cicely.de, Joao Pedras , freebsd-scsi@FreeBSD.ORG Subject: Re: sync cache Message-ID: <20020607161919.GO66505@cicely5.cicely.de> Reply-To: ticso@cicely.de References: <20020606110101.GU66505@cicely5.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.26i X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Jun 07, 2002 at 08:08:45AM -0700, Tom Samplonius wrote: > > On Thu, 6 Jun 2002, Bernd Walter wrote: > > > Even if they do not need the command they should have implemented > > it as a nop. > > I don't think that is a good idea for a device to lie about what it > supports. The illegal command response is an appropriate response for an > unimplemented command, so OS knows that the command did not work. FreeBSD > simply logs it to the console, and it is harmless. If the device has nvram based cache it's completely legal to implement sync cache as a nop, as there realy is nothing to do. In short: it does not lie when doing it. And the OS/User knows it's save to power off. In the current situation noone really knows if there is unsave data. It *does* harm if I don't know when I can savely power down. > BTW, most SCSI-SCSI RAID boxes don't implement the cache flush command. Many RAID boxes have questionable command support. But that doesn't mean it's a good choice after all. They havn't thought about that simple command, which realy gives a bad taste. How could I beleave they have thought about the real critical commands? -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Fri Jun 7 21:20:34 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from misery.sdf.com (misery.sdf.com [207.200.153.226]) by hub.freebsd.org (Postfix) with ESMTP id 5C49737B404 for ; Fri, 7 Jun 2002 21:20:29 -0700 (PDT) Received: from tom (helo=localhost) by misery.sdf.com with local-esmtp (Exim 2.12 #1) id 17GWmf-0002Kd-00; Fri, 7 Jun 2002 20:20:57 -0700 Date: Fri, 7 Jun 2002 20:20:55 -0700 (PDT) From: Tom Samplonius To: ticso@cicely.de Cc: Joao Pedras , freebsd-scsi@FreeBSD.ORG Subject: Re: sync cache In-Reply-To: <20020607161919.GO66505@cicely5.cicely.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 7 Jun 2002, Bernd Walter wrote: > > I don't think that is a good idea for a device to lie about what it > > supports. The illegal command response is an appropriate response for an > > unimplemented command, so OS knows that the command did not work. FreeBSD > > simply logs it to the console, and it is harmless. > > If the device has nvram based cache it's completely legal to implement > sync cache as a nop, as there realy is nothing to do. I believe the spec says the command must flush to disk, not battery backed RAM. Most of these systems only have retention for a few days. That isn't permenent storage. Not only that, you wouldn't know the battery backed RAM had data on it, as the device lied to you and told you it was written to disk! Bad, bad, bad. > In short: it does not lie when doing it. > And the OS/User knows it's save to power off. > In the current situation noone really knows if there is unsave data. > It *does* harm if I don't know when I can savely power down. Same difference. Either you lie, and the data may really not be on the disk, or you report an error and know for sure that data may not be on the disk. The latter is better. > > BTW, most SCSI-SCSI RAID boxes don't implement the cache flush command. > > Many RAID boxes have questionable command support. > But that doesn't mean it's a good choice after all. > They havn't thought about that simple command, which realy gives a bad > taste. > How could I beleave they have thought about the real critical commands? Seems the correct behaviour: not implemented -> return error. That is the safest choice. I don't want my hardware to lie to me about what it is doing, when my data is at stake. > -- > B.Walter COSMO-Project http://www.cosmo-project.de > ticso@cicely.de Usergroup info@cosmo-project.de > > > Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Jun 8 13:30:37 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from piglet.theeirons.org (dsl-64-195-193-89.telocity.com [64.195.193.89]) by hub.freebsd.org (Postfix) with ESMTP id 34C9737B400 for ; Sat, 8 Jun 2002 13:30:32 -0700 (PDT) Received: from piglet.theeirons.org (localhost.my.domain [127.0.0.1]) by piglet.theeirons.org (8.12.2/8.12.2) with ESMTP id g58KSj3B015606 for ; Sat, 8 Jun 2002 13:28:45 -0700 (PDT) (envelope-from nadav@TheEirons.org) Received: from localhost (nadav@localhost) by piglet.theeirons.org (8.12.2/8.12.2/Submit) with ESMTP id g58KSil3015603 for ; Sat, 8 Jun 2002 13:28:44 -0700 (PDT) X-Authentication-Warning: piglet.theeirons.org: nadav owned process doing -bs Date: Sat, 8 Jun 2002 13:28:44 -0700 (PDT) From: Nadav Eiron To: freebsd-scsi@freebsd.org Subject: Problems using cdrecord and a Yamaha CRW4416S CD-RW drive Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greetings, I have a SCSI-only machine (AHA-2940U2 controller), running 4.5-STABLE from early April. It has a Yamaha 4x4x16 CD-RW drive, that I can use fine for reading (as /dev/cd1c), but I cannot get cdrecord to recognize. I.e., camcontrol shows it: piglet# camcontrol devlist at scbus0 target 0 lun 0 (pass0,da0) at scbus0 target 2 lun 0 (pass1,da1) at scbus0 target 3 lun 0 (pass2,da2) at scbus0 target 5 lun 0 (pass3,cd0) at scbus0 target 6 lun 0 (pass4,cd1) at scbus1 target 0 lun 0 (da3,pass5) But cdrecord -scanbus doesn't: piglet# cdrecord -scanbus Cdrecord 1.11a19 (i386-unknown-freebsd4.5) Copyright (C) 1995-2002 J=F6rg Schilling Using libscg version 'schily-0.6' scsibus0: 0,0,0 0) 'IBM ' 'DDRS-39130D ' 'DC1B' Disk 0,1,0 1) * 0,2,0 2) 'IBM ' 'DDRS-39130D ' 'DC1B' Disk 0,3,0 3) 'IBM ' 'DRVS09D ' '0100' Disk 0,4,0 4) * cdrecord: Warning: controller returns zero sized CD capabilities page. cdrecord: Warning: controller returns wrong size for CD capabilities page. cdrecord: Warning: controller returns wrong page 0 for CD capabilities page (2A). 0,5,0 5) 'TEAC ' 'CD-ROM CD-532S ' '1.0A' Removable CD-ROM 0,6,0 6) * 0,7,0 7) * There has been a similar problem reported to questions@ in January (see http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=3D5958+8394+/usr/local/www/db/t= ext/2002/freebsd-questions/20020120.freebsd-questions ) but it seems to have not been resolved. I don't know if the warnings cdrecord gives for the TEAC CD-ROM have anything to do with it. FWIW, the guy who reported the similar problem to questions didn't have any warnings from cdrecord. The CD-RW drive works fine on the same machine with WNT, and it also used to work long ago (I haven't used it for a year, at least), with FreeBSD 3.4 and the then-current cdrecord from ports. It may even have worked with FreeBSD 4.2, but I'm not sure about that. Any and all suggestions welcome, Nadav To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Jun 8 13:37:43 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 2C24537B403 for ; Sat, 8 Jun 2002 13:37:39 -0700 (PDT) Received: (from ken@localhost) by panzer.kdm.org (8.11.6/8.9.1) id g58KbH912948; Sat, 8 Jun 2002 14:37:17 -0600 (MDT) (envelope-from ken) Date: Sat, 8 Jun 2002 14:37:17 -0600 From: "Kenneth D. Merry" To: Nadav Eiron Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Problems using cdrecord and a Yamaha CRW4416S CD-RW drive Message-ID: <20020608143717.A12905@panzer.kdm.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from nadav@TheEirons.org on Sat, Jun 08, 2002 at 01:28:44PM -0700 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sat, Jun 08, 2002 at 13:28:44 -0700, Nadav Eiron wrote: > Greetings, > > I have a SCSI-only machine (AHA-2940U2 controller), running 4.5-STABLE > from early April. It has a Yamaha 4x4x16 CD-RW drive, that I can use fine > for reading (as /dev/cd1c), but I cannot get cdrecord to recognize. I.e., > camcontrol shows it: > > piglet# camcontrol devlist > at scbus0 target 0 lun 0 (pass0,da0) > at scbus0 target 2 lun 0 (pass1,da1) > at scbus0 target 3 lun 0 (pass2,da2) > at scbus0 target 5 lun 0 (pass3,cd0) > at scbus0 target 6 lun 0 (pass4,cd1) > at scbus1 target 0 lun 0 (da3,pass5) Can you talk to it directly with camcontrol? e.g.: camcontrol tur cd1 -v camcontrol inquiry cd1 > But cdrecord -scanbus doesn't: > piglet# cdrecord -scanbus > Cdrecord 1.11a19 (i386-unknown-freebsd4.5) Copyright (C) 1995-2002 JZrg > Schilling > Using libscg version 'schily-0.6' > scsibus0: > 0,0,0 0) 'IBM ' 'DDRS-39130D ' 'DC1B' Disk > 0,1,0 1) * > 0,2,0 2) 'IBM ' 'DDRS-39130D ' 'DC1B' Disk > 0,3,0 3) 'IBM ' 'DRVS09D ' '0100' Disk > 0,4,0 4) * > cdrecord: Warning: controller returns zero sized CD capabilities page. > cdrecord: Warning: controller returns wrong size for CD capabilities page. > cdrecord: Warning: controller returns wrong page 0 for CD capabilities > page (2A). > 0,5,0 5) 'TEAC ' 'CD-ROM CD-532S ' '1.0A' Removable CD-ROM > 0,6,0 6) * > 0,7,0 7) * > > There has been a similar problem reported to questions@ in January (see > http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=5958+8394+/usr/local/www/db/text/2002/freebsd-questions/20020120.freebsd-questions > ) but it seems to have not been resolved. I don't know if the warnings > cdrecord gives for the TEAC CD-ROM have anything to do with it. FWIW, the > guy who reported the similar problem to questions didn't have any > warnings from cdrecord. > > The CD-RW drive works fine on the same machine with WNT, and it also used > to work long ago (I haven't used it for a year, at least), with FreeBSD > 3.4 and the then-current cdrecord from ports. It may even have worked with > FreeBSD 4.2, but I'm not sure about that. My guess is that you haven't made enough pass(4) devices in /dev. By default, I think there are 4 pass devices created, and since cd1 uses the 5th pass device (pass4), it wouldn't have been created on install. So go into /dev, and type: su ./MAKEDEV pass10 That will make 10 pass devices. (pass0 through pass9) Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Jun 8 13:55:51 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from piglet.theeirons.org (dsl-64-195-193-89.telocity.com [64.195.193.89]) by hub.freebsd.org (Postfix) with ESMTP id 2C6DB37B401 for ; Sat, 8 Jun 2002 13:55:48 -0700 (PDT) Received: from piglet.theeirons.org (localhost.my.domain [127.0.0.1]) by piglet.theeirons.org (8.12.2/8.12.2) with ESMTP id g58Ks13B015764; Sat, 8 Jun 2002 13:54:01 -0700 (PDT) (envelope-from nadav@TheEirons.org) Received: from localhost (nadav@localhost) by piglet.theeirons.org (8.12.2/8.12.2/Submit) with ESMTP id g58Ks1cf015761; Sat, 8 Jun 2002 13:54:01 -0700 (PDT) X-Authentication-Warning: piglet.theeirons.org: nadav owned process doing -bs Date: Sat, 8 Jun 2002 13:54:01 -0700 (PDT) From: Nadav Eiron To: "Kenneth D. Merry" Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: Problems using cdrecord and a Yamaha CRW4416S CD-RW drive In-Reply-To: <20020608143717.A12905@panzer.kdm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > The CD-RW drive works fine on the same machine with WNT, and it also used > > to work longago (I haven't used it for a year, at least), with FreeBSD > > 3.4 and the then-current cdrecord from ports. It may even have worked with > > FreeBSD 4.2, but I'm not sure about that. > > My guess is that you haven't made enough pass(4) devices in /dev. > > By default, I think there are 4 pass devices created, and since cd1 uses > the 5th pass device (pass4), it wouldn't have been created on install. > > So go into /dev, and type: > > su > ./MAKEDEV pass10 > > That will make 10 pass devices.(pass0 through pass9) Hmm... So simple! This was indeed the problem. So silly of me to not have checked that... I guess back when I used it before I had one hard disk less... Thanks alot for the quick response! > > Ken > -- > Kenneth Merry > ken@kdm.org > Nadav To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message