From owner-freebsd-scsi@FreeBSD.ORG Mon Apr 17 09:14:13 2006 Return-Path: X-Original-To: freebsd-scsi@hub.freebsd.org Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BE1C16A401; Mon, 17 Apr 2006 09:14:13 +0000 (UTC) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C11DE43D55; Mon, 17 Apr 2006 09:14:12 +0000 (GMT) (envelope-from maxim@FreeBSD.org) Received: from freefall.freebsd.org (maxim@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3H9EC5L033253; Mon, 17 Apr 2006 09:14:12 GMT (envelope-from maxim@freefall.freebsd.org) Received: (from maxim@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3H9ECsZ033249; Mon, 17 Apr 2006 09:14:12 GMT (envelope-from maxim) Date: Mon, 17 Apr 2006 09:14:12 GMT From: Maxim Konovalov Message-Id: <200604170914.k3H9ECsZ033249@freefall.freebsd.org> To: Andre.Albsmeier@siemens.com, maxim@FreeBSD.org, freebsd-scsi@FreeBSD.org, maxim@FreeBSD.org Cc: Subject: Re: kern/95707: [cam] [patch] iostat's transfer rate for cdroms is wrong X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Apr 2006 09:14:13 -0000 Synopsis: [cam] [patch] iostat's transfer rate for cdroms is wrong State-Changed-From-To: open->patched State-Changed-By: maxim State-Changed-When: Mon Apr 17 09:13:22 UTC 2006 State-Changed-Why: Fixed in HEAD. Thanks for the patch! Responsible-Changed-From-To: freebsd-scsi->maxim Responsible-Changed-By: maxim Responsible-Changed-When: Mon Apr 17 09:13:22 UTC 2006 Responsible-Changed-Why: Feedbacks trap. http://www.freebsd.org/cgi/query-pr.cgi?pr=95707 From owner-freebsd-scsi@FreeBSD.ORG Wed Apr 19 02:02:22 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F16D16A400 for ; Wed, 19 Apr 2006 02:02:22 +0000 (UTC) (envelope-from john@essenz.com) Received: from beck.quonix.net (beck.quonix.net [146.145.66.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBE3743D46 for ; Wed, 19 Apr 2006 02:02:21 +0000 (GMT) (envelope-from john@essenz.com) Received: from [192.168.1.100] (pool-68-238-239-26.phlapa.east.verizon.net [68.238.239.26]) by beck.quonix.net (8.13.4/8.13.4) with ESMTP id k3J22BVp067996 for ; Tue, 18 Apr 2006 22:02:11 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v623) Content-Transfer-Encoding: 7bit Message-Id: <2bb01d48bf4c064c6bb51fb6d34fd6d0@essenz.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-scsi@freebsd.org From: John Von Essen Date: Tue, 18 Apr 2006 22:02:15 -0400 X-Mailer: Apple Mail (2.623) X-Spamassassin-Score: 0.428/5.8 AWL,BAYES_00,RCVD_IN_NJABL_DUL,SPF_SOFTFAIL X-Mimedefang: beck.quonix.net X-Scanned-By: MIMEDefang 2.51 on 146.145.66.90 Subject: Problems with SCSI and Tyan S5350... X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 02:02:22 -0000 I sure hope I am not alone in this... I have a Tyan S5350 motherboard, EM64T Nocona, 7320 chipset. I am having great difficulty getting it to work with SCSI drives. I have tried both Adaptec 19160 and 2120S SCSI-RAID. Basically, when I get to "Waiting for scsi devices to settle".... about 30 seconds goes by, then I get a bunch of COMMAND TIMEOUTS (either ahc0 or aac0). Eventually, the card dumps, and I get some stuff about SCB timeout, SCB reset, then Infinite interrupt loop, INTSTAT = 0ahc0: Timedout SCBs already completed, interrupts may not be functioning. I'm sorry I dont have the exact output, but it is tough to jot everything down by hand. Tomorrow I can put a console on it, and paste the errors. I saw some similar output in the archives. Some of the resolution was disabling ACPI, but it was for a different motherboard. I have tried to disable ACPI, no effect. I have also tried playing with int13 enable/disable, no luck. I have tried multiple cards, multiple cables, and multiple disks. Is this just a bad compatibility issue between FreeBSD and the Tyan board? The Bios does complain about "no int13 drive support" after the 2120S initialize, not sure what that is all about. Any thoughts would be appreciated. Thanks John From owner-freebsd-scsi@FreeBSD.ORG Wed Apr 19 16:21:59 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29A0E16A407 for ; Wed, 19 Apr 2006 16:21:59 +0000 (UTC) (envelope-from john@essenz.com) Received: from beck.quonix.net (beck.quonix.net [146.145.66.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0873C43D62 for ; Wed, 19 Apr 2006 16:21:55 +0000 (GMT) (envelope-from john@essenz.com) Received: from beck.quonix.net (localhost [127.0.0.1]) by beck.quonix.net (8.13.4/8.13.4) with ESMTP id k3JGLqiG002232 for ; Wed, 19 Apr 2006 12:21:52 -0400 (EDT) Received: from localhost (essenz@localhost) by beck.quonix.net (8.13.4/8.13.4/Submit) with ESMTP id k3JGLqer002229 for ; Wed, 19 Apr 2006 12:21:52 -0400 (EDT) X-Authentication-Warning: beck.quonix.net: essenz owned process doing -bs Date: Wed, 19 Apr 2006 12:21:52 -0400 (EDT) From: John Von Essen X-X-Sender: essenz@beck.quonix.net To: freebsd-scsi@freebsd.org Message-ID: <20060419121902.T1185@beck.quonix.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spamassassin-Score: -4.399/5.8 ALL_TRUSTED,BAYES_00 X-Mimedefang: beck.quonix.net X-Scanned-By: MIMEDefang 2.51 on 146.145.66.90 Subject: Tyan S5350 and SCSI Command Timeouts... X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 16:21:59 -0000 I posted an email about this yesterday, the more I think about, it probably is a compatibility issue with my motherboard and the freebsd scsi drivers. In which case, there is going to be little I can do about it. To sort of switch gears, I dont have a problem with simply getting another Xeon motherboard (Lindhurst, to support EM64T 800MHz Xeons), however, I want to make sure I get one that FreeBSD will run on. Any recommendations? Thanks John From owner-freebsd-scsi@FreeBSD.ORG Thu Apr 20 04:47:19 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5003F16A40A for ; Thu, 20 Apr 2006 04:47:19 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id B092E43D6A for ; Thu, 20 Apr 2006 04:47:18 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id k3K4lE7k016684; Wed, 19 Apr 2006 22:47:15 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <44471248.2090803@samsco.org> Date: Wed, 19 Apr 2006 22:47:04 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051230 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Von Essen References: <2bb01d48bf4c064c6bb51fb6d34fd6d0@essenz.com> In-Reply-To: <2bb01d48bf4c064c6bb51fb6d34fd6d0@essenz.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org Cc: freebsd-scsi@freebsd.org Subject: Re: Problems with SCSI and Tyan S5350... X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Apr 2006 04:47:19 -0000 John Von Essen wrote: > I sure hope I am not alone in this... > > I have a Tyan S5350 motherboard, EM64T Nocona, 7320 chipset. I am having > great difficulty getting it to work with SCSI drives. I have tried both > Adaptec 19160 and 2120S SCSI-RAID. > > Basically, when I get to "Waiting for scsi devices to settle".... about > 30 seconds goes by, then I get a bunch of COMMAND TIMEOUTS (either ahc0 > or aac0). Eventually, the card dumps, and I get some stuff about SCB > timeout, SCB reset, then Infinite interrupt loop, INTSTAT = 0ahc0: > Timedout SCBs already completed, interrupts may not be functioning. > > I'm sorry I dont have the exact output, but it is tough to jot > everything down by hand. Tomorrow I can put a console on it, and paste > the errors. > > I saw some similar output in the archives. Some of the resolution was > disabling ACPI, but it was for a different motherboard. > > I have tried to disable ACPI, no effect. I have also tried playing with > int13 enable/disable, no luck. I have tried multiple cards, multiple > cables, and multiple disks. Is this just a bad compatibility issue > between FreeBSD and the Tyan board? > > The Bios does complain about "no int13 drive support" after the 2120S > initialize, not sure what that is all about. > > Any thoughts would be appreciated. > > Thanks > John > You don't say which version of FreeBSD you're trying. In any case, I don't have much experience with the 7320 chipset, just the 7520. There might be something weird about the interrupt routing on those. Scott From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 21 09:48:54 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACB2416A401 for ; Fri, 21 Apr 2006 09:48:54 +0000 (UTC) (envelope-from jhs@flat.berklix.net) Received: from thin.berklix.org (thin.berklix.org [194.246.123.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D17643D46 for ; Fri, 21 Apr 2006 09:48:53 +0000 (GMT) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (p549A7571.dip.t-dialin.net [84.154.117.113]) (authenticated bits=128) by thin.berklix.org (8.12.11/8.12.11) with ESMTP id k3L9mole064191; Fri, 21 Apr 2006 11:48:51 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id k3L9mm3o050898; Fri, 21 Apr 2006 11:48:49 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (localhost.jhs.private [127.0.0.1]) by fire.jhs.private (8.13.1/8.13.1) with ESMTP id k3L9nclw002552; Fri, 21 Apr 2006 11:49:38 +0200 (CEST) (envelope-from jhs@fire.jhs.private) Received: (from jhs@localhost) by fire.jhs.private (8.13.1/8.13.1/Submit) id k3L9nbDu002551; Fri, 21 Apr 2006 11:49:37 +0200 (CEST) (envelope-from jhs) Date: Fri, 21 Apr 2006 11:49:37 +0200 (CEST) Message-Id: <200604210949.k3L9nbDu002551@fire.jhs.private> To: freebsd-scsi@freebsd.org From: "Julian Stacey" Organization: http://berklix.com Munich Unix, BSD, Internet Consultancy Fcc: sent-mail User-agent: EXMH http://beedub.com/exmh/ on FreeBSD http://freebsd.org X-URL: http://berklix.com/~jhs/cv/ Cc: jhs@berklix.com Subject: USB Ram Stick X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 09:48:54 -0000 Hi freebsd-scsi@freebsd.org My new USB, 2 Gig Sony Memory stick seems to have failed. Could I / FreeBSD have screwed the USB device command block ? Or might it be that eg the USB chip works, but the RAM is blown ? Any chance / ideas how to fix it with FreeBSD ? or should I replace it fast ? (I recall that eg real scsi disks can be set to eg 512 or 1K blocks, & then need a reformat, & wondering what else I might try ?) The rest of this mail lists what I did: On FreeBSD-6.0-RELEASE I took a friend's 2G stick containing the usual MBR with one partition allocated as aprox. 2 Gig of DOS file system, & read the entire raw stick onto hard disc. (I still have that image BTW, 2138177536 Apr 3 01:40 sony-stick-da0 , but I dont care about the data, I care about the expensive stick!) I wrote the image back to my identical stick (with dd), it wouldn't continue writing after a while, (cant remember exact message). Now /dev/da0* is just da0 , no other entries. I've tried creating a new MBR with fdisk, but failed. Ive tried creating a raw BSD FS on whole stick, & failed. I've tried copying just the first 512 bytes of the 2G image & failed. /var/log/messages: kernel: (da0:umass-sim0:0:0:0): Cannot read medium - incompatible format kernel: (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) kernel: (da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 0 0 0 0 0 0 1 0 kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition kernel: (da0:umass-sim0:0:0:0): MEDIUM ERROR asc:30,2 camcontrol modepage da0 -l 0x00 Vendor-Specific camcontrol modepage da0 -m 0x00 -b bf 01 f8 43 07 28 80 c0 07 28 00 00 00 00 34 e0 bf bf 19 ba 05 28 eb 8b 04 08 5c 9b ab 07 00 b3 07 28 01 00 00 00 80 c0 07 28 00 b3 07 28 54 e0 bf 01 f8 43 07 28 01 00 00 00 98 86 04 08 b4 e0 bf bf 51 b8 05 28 eb 8b 04 08 5c 9b ab 07 10 30 07 28 88 e0 bf bf 01 00 00 00 8c e0 bf bf 84 e0 bf bf 19 ba 05 28 7f 8c 04 08 00 b0 07 28 00 b1 07 28 00 b2 07 28 00 b3 07 28 00 b1 07 28 00 b1 07 01 6e b7 05 28 00 b3 07 28 3c cb 09 28 04 e1 bf 01 00 b3 07 28 60 e0 bf bf 04 00 00 00 04 00 00 00 d8 e0 bf bf 01 00 00 00 dc e0 bf bf 00 10 00 01 f8 43 07 28 01 00 00 00 98 86 04 08 f4 e0 bf bf 26 9a 05 28 eb 8b 04 08 5c 9b ab 07 00 b0 07 28 e4 e0 bf bf 01 00 00 00 b4 1b 08 28 14 e1 camcontrol format da0 -w You are about to REMOVE ALL DATA from the following device: pass0: Removable Direct Access SCSI-2 device pass0: Serial Number pass0: 1.000MB/s transfers Are you SURE you want to do this? (yes/no) Formatting...Format Complete disklabel -r -w -B /dev/da0 disklabel: /dev/da0 read: Input/output error disklabel -w -r da0 auto usbd -d -v -v usbd: device-attach event at 1145610707.335556000, Flash Disk, Generic: vndr=0x1043 prdct=0x8012 rlse=0x0100 clss=0x0000 subclss=0x0000 prtcl=0x0000 device names: umass0 === match attempt: umass0 usbd: Found action 'jhs Sony 2 gig' for Flash Disk, Generic at umass0 usbd: action 0: jhs Sony 2 gig vndr=0x1043 prdct=0x8012 rlse=0x0100 clss=0x0000 subclss=0x0000 prtcl=0x0000 attach='sleep 2;mount -t msdos /dev/da0s1 /usb/sony' usbd: Setting DEVNAME='umass0' usbd: Executing 'sleep 2;mount -t msdos /dev/da0s1 /usb/sony' mount_msdosfs: /dev/da0s1: No such file or directory usbd: 'sleep 2;mount -t msdos /dev/da0s1 /usb/sony' returned 71 Julian -- Julian Stacey. Consultant Unix Net & Sys. Eng., Munich. http://berklix.com Mail in Ascii, HTML=spam. Ihr Rauch = mein allergischer Kopfschmerz. From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 21 10:50:24 2006 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.ORG Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94A8416A405 for ; Fri, 21 Apr 2006 10:50:24 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC3FC43D48 for ; Fri, 21 Apr 2006 10:50:23 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (nwluzy@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k3LAoHx7097326 for ; Fri, 21 Apr 2006 12:50:22 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k3LAoHsf097325; Fri, 21 Apr 2006 12:50:17 +0200 (CEST) (envelope-from olli) Date: Fri, 21 Apr 2006 12:50:17 +0200 (CEST) Message-Id: <200604211050.k3LAoHsf097325@lurza.secnetix.de> From: Oliver Fromme To: freebsd-scsi@FreeBSD.ORG In-Reply-To: <200604210949.k3L9nbDu002551@fire.jhs.private> X-Newsgroups: list.freebsd-scsi User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 21 Apr 2006 12:50:22 +0200 (CEST) Cc: Subject: Re: USB Ram Stick X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-scsi@FreeBSD.ORG List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 10:50:24 -0000 Julian Stacey wrote: > On FreeBSD-6.0-RELEASE I took a friend's 2G stick containing the > usual MBR with one partition allocated as aprox. 2 Gig of DOS > file system, & read the entire raw stick onto hard disc. > > (I still have that image BTW, 2138177536 Apr 3 01:40 sony-stick-da0 , > but I dont care about the data, I care about the expensive stick!) > > I wrote the image back to my identical stick (with dd), it wouldn't continue > writing after a while, (cant remember exact message). The exact message would be very useful to know. Are you absolutely sure that your stick is really identical, including the size? The sizes sometimes seem to differ by small amounts, even between sticks of the exact same brand and model. For example, a shop here recently sold 1GB sticks for 25 EUR so a friend of mine bought two of them. I tried them both: one had 2096640 blocks, the other had 2096768 blocks. I'm not an expert, but my guess is that the manufacturer tests the chips and excludes bad areas, so the capacities vary. Maybe your image was a little too big for the second stick. > Now /dev/da0* is just da0 , no other entries. > > I've tried creating a new MBR with fdisk, but failed. Did you try to clean it before? i.e. dd if=/dev/zero of=/dev/da0 count=100 (See the example in the bsdlabel(8) manpage.) > camcontrol format da0 -w > You are about to REMOVE ALL DATA from the following device: > pass0: Removable Direct Access SCSI-2 device > pass0: Serial Number > pass0: 1.000MB/s transfers > Are you SURE you want to do this? (yes/no) > Formatting...Format Complete I assume that didn't do anything at all. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "A language that doesn't have everything is actually easier to program in than some that do." -- Dennis M. Ritchie From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 21 14:28:18 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 702CE16A401; Fri, 21 Apr 2006 14:28:18 +0000 (UTC) (envelope-from os@rsu.ru) Received: from mail.r61.net (mail.r61.net [195.208.245.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABCD443D46; Fri, 21 Apr 2006 14:28:17 +0000 (GMT) (envelope-from os@rsu.ru) Received: from brain.cc.rsu.ru (brain.cc.rsu.ru [195.208.252.154]) (authenticated bits=0) by mail.r61.net (8.13.6/8.13.6) with ESMTP id k3LESB32066617 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 21 Apr 2006 18:28:11 +0400 (MSD) (envelope-from os@rsu.ru) Date: Fri, 21 Apr 2006 18:28:11 +0400 (MSD) From: Oleg Sharoiko To: John Baldwin In-Reply-To: <200604101401.12479.jhb@freebsd.org> Message-ID: <20060421180944.H841@brain.cc.rsu.ru> References: <20060215102749.D58480@brain.cc.rsu.ru> <20060328201134.S763@brain.cc.rsu.ru> <20060406223724.S1099@wolf.os.rsu.ru> <200604101401.12479.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: ClamAV version 0.88.1, clamav-milter version 0.88.1 on asterix.r61.net X-Virus-Status: Clean Cc: freebsd-scsi@freebsd.org, Andrey Beresovsky Subject: Re: Boot hangs on ips0: resetting adapter, this may take up to 5 minutes X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 14:28:18 -0000 On Mon, 10 Apr 2006, John Baldwin wrote: JB>Well, the vectors is the wrong thing to mess with as vector's are IDT JB>entries. Yes, I'm aware of this. The only reason I touched vectors was to further debug the problem. JB>One thing you can do w/o hacking the code is to reroute ips0 to IRQ 16. JB>Find the dmesg line for ips0, it should say something like: JB> JB>ips0 <...> ... at device 4.0 on pci2 JB> JB>These numbers (4 from '4.0' and 2 from 'pci2') are the slot and bus JB>for ips0. We'll assume INTA is being used as single function cards JB>using INTA. Then, set a tunable like so in the loader to force ips0 to JB>use IRQ 16: JB> JB>'set hw.pci2.4.INTA.irq=16' John, it works! Thank you! Thank you very much! That's great. Now I've got those boxes up and running. I had to specify IRQ 16 for all devices on pci3 and pci4, actually 2 and 1 devices accordingly. I guess I should expect some performance degradation? Will it have sence enabling device polling for bge which is also on IRQ 16? Just for information: I've also tried 64bit version of windows server and it looks that somehow windows uses correct IRQs. Though I'm not sure if it displays correct information on device properties page in device manager. -- Oleg Sharoiko. Software and Network Engineer Computer Center of Rostov State University. From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 21 14:30:27 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D469D16A402; Fri, 21 Apr 2006 14:30:27 +0000 (UTC) (envelope-from os@rsu.ru) Received: from mail.r61.net (mail.r61.net [195.208.245.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D87143D45; Fri, 21 Apr 2006 14:30:24 +0000 (GMT) (envelope-from os@rsu.ru) Received: from brain.cc.rsu.ru (brain.cc.rsu.ru [195.208.252.154]) (authenticated bits=0) by mail.r61.net (8.13.6/8.13.6) with ESMTP id k3LEUN6k066820 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 21 Apr 2006 18:30:23 +0400 (MSD) (envelope-from os@rsu.ru) Date: Fri, 21 Apr 2006 18:30:23 +0400 (MSD) From: Oleg Sharoiko To: Scott Long In-Reply-To: <443AA752.3070304@samsco.org> Message-ID: <20060421182821.L841@brain.cc.rsu.ru> References: <20060215102749.D58480@brain.cc.rsu.ru> <20060328201134.S763@brain.cc.rsu.ru> <20060406223724.S1099@wolf.os.rsu.ru> <200604101401.12479.jhb@freebsd.org> <443AA752.3070304@samsco.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: ClamAV version 0.88.1, clamav-milter version 0.88.1 on asterix.r61.net X-Virus-Status: Clean Cc: freebsd-scsi@freebsd.org, Andrey Beresovsky , John Baldwin Subject: Re: Boot hangs on ips0: resetting adapter, this may take up to 5 minutes X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 14:30:27 -0000 Scott, just a short question about ips driver (man page states you're one of it's authors): is it possible to use non disk devices with ips? I suppose not, but maybe I've missed something. On Mon, 10 Apr 2006, Scott Long wrote: SL>John Baldwin wrote: SL>> On Thursday 06 April 2006 15:07, Oleg Sharoiko wrote: SL>> SL>> > Hi, that's me again. SL>> > SL>> > John, I've got more information on my problem: SL>> > SL>> > It looks like the mis-routed interrupt is the one from ips. In my kernel SL>> > ips is on vector 49 and bge is on vector 60. I've added SL>> > if (vector == 60) SL>> > vector = 49; SL>> > SL>> > to sys/amd64/amd64/local_apic.c and I have no more interrupt storm until SL>> > bge really generates interrupt. Am I right with my conclusion about ips SL>> > interrupt being mis-directed to bge? SL>> SL>> SL>> Well, the vectors is the wrong thing to mess with as vector's are IDT SL>> entries. SL>> SL>> SL>> > There's also another interesting point: it looks like ips triggers SL>> > interrupt on both vectors (49 and 60 - irq 28 and irq 16). Why do I think SL>> > so? SL>> SL>> SL>> This happens in several machines with Intel server chipsets due to a bug SL>> in the PXH host bridges with no real workaround. SL>> SL> SL>Well, the work around is to not mask the APIC and instead let the driver SL>handle masking or ACKing the interrupt =-) It sucks that there are SL>undocumented gotchas like this in the PC platform, but it is important SL>to acknowledge them. SL> SL>Scott SL> SL> SL> -- Oleg Sharoiko. Software and Network Engineer Computer Center of Rostov State University. From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 21 16:38:11 2006 Return-Path: X-Original-To: freebsd-scsi@hub.freebsd.org Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50AA816A402; Fri, 21 Apr 2006 16:38:11 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E512743D48; Fri, 21 Apr 2006 16:38:10 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3LGcABD078282; Fri, 21 Apr 2006 16:38:10 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3LGcAx2078278; Fri, 21 Apr 2006 16:38:10 GMT (envelope-from linimon) Date: Fri, 21 Apr 2006 16:38:10 GMT From: Mark Linimon Message-Id: <200604211638.k3LGcAx2078278@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-scsi@FreeBSD.org Cc: Subject: Re: kern/96133: [scsi] [patch] add scsi quirk for joyfly 128mb flash usb stick X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 16:38:11 -0000 Old Synopsis: add scsi quirk for joyfly 128mb flash usb stick New Synopsis: [scsi] [patch] add scsi quirk for joyfly 128mb flash usb stick Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi Responsible-Changed-By: linimon Responsible-Changed-When: Fri Apr 21 16:37:26 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=96133 From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 21 18:15:22 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC3D616A51B for ; Fri, 21 Apr 2006 18:15:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC23B43D67 for ; Fri, 21 Apr 2006 18:15:17 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k3LIFA9C027410; Fri, 21 Apr 2006 14:15:15 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Oleg Sharoiko Date: Fri, 21 Apr 2006 14:13:32 -0400 User-Agent: KMail/1.9.1 References: <20060215102749.D58480@brain.cc.rsu.ru> <200604101401.12479.jhb@freebsd.org> <20060421180944.H841@brain.cc.rsu.ru> In-Reply-To: <20060421180944.H841@brain.cc.rsu.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604211413.35338.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1411/Thu Apr 20 18:23:28 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.1 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: freebsd-scsi@freebsd.org, Andrey Beresovsky Subject: Re: Boot hangs on ips0: resetting adapter, this may take up to 5 minutes X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Apr 2006 18:15:23 -0000 On Friday 21 April 2006 10:28, Oleg Sharoiko wrote: > > On Mon, 10 Apr 2006, John Baldwin wrote: > > JB>Well, the vectors is the wrong thing to mess with as vector's are IDT > JB>entries. > > Yes, I'm aware of this. The only reason I touched vectors was to > further debug the problem. > > JB>One thing you can do w/o hacking the code is to reroute ips0 to IRQ 16. > JB>Find the dmesg line for ips0, it should say something like: > JB> > JB>ips0 <...> ... at device 4.0 on pci2 > JB> > JB>These numbers (4 from '4.0' and 2 from 'pci2') are the slot and bus > JB>for ips0. We'll assume INTA is being used as single function cards > JB>using INTA. Then, set a tunable like so in the loader to force ips0 to > JB>use IRQ 16: > JB> > JB>'set hw.pci2.4.INTA.irq=16' > > John, it works! Thank you! Thank you very much! That's great. Now I've > got those boxes up and running. I had to specify IRQ 16 for all > devices on pci3 and pci4, actually 2 and 1 devices accordingly. I > guess I should expect some performance degradation? Will it have sence > enabling device polling for bge which is also on IRQ 16? I'm not sure if you will see a performance degradation or not. On the one hand, you no longer have interrupt aliasing, but on the other hand you are now sharing the interrupt among several devices. > Just for information: I've also tried 64bit version of windows server > and it looks that somehow windows uses correct IRQs. Though I'm not > sure if it displays correct information on device properties page in > device manager. Windows doesn't mask interrupts in the APIC. Instead, a Windows ISR is required to shut the hardware up and defer any complicated work to a separate DPC routine which is sort of like a per-cpu taskqueue, but more like a per-cpu AST. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-scsi@FreeBSD.ORG Sat Apr 22 06:44:23 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A07016A403 for ; Sat, 22 Apr 2006 06:44:23 +0000 (UTC) (envelope-from ehrhard.herbst@sz-online.de) Received: from smtp.sz-online.de (smtp.sz-online.de [193.98.117.121]) by mx1.FreeBSD.org (Postfix) with SMTP id ADA0543D45 for ; Sat, 22 Apr 2006 06:44:22 +0000 (GMT) (envelope-from ehrhard.herbst@sz-online.de) Received: (qmail 7808 invoked from network); 22 Apr 2006 06:44:10 -0000 Received: from smtp.sz-online.de (HELO webmail.sz-online.de) (193.98.117.121) by smtp.sz-online.de with SMTP; 22 Apr 2006 06:44:10 -0000 Received: from 145.254.75.180 (SquirrelMail authenticated user ehrhard.herbst) by webmail.sz-online.de with HTTP; Sat, 22 Apr 2006 08:44:10 +0200 (CEST) Message-ID: <50440.145.254.75.180.1145688250.squirrel@webmail.sz-online.de> In-Reply-To: <20060422000626.79040.qmail@web37310.mail.mud.yahoo.com> References: <20060422000626.79040.qmail@web37310.mail.mud.yahoo.com> Date: Sat, 22 Apr 2006 08:44:10 +0200 (CEST) From: ehrhard.herbst@sz-online.de To: "Eric De La Cruz Lugo" User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Cc: freebsd-scsi@freebsd.org Subject: Re: Hi about SCSI problem installing FreeBSD X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Apr 2006 06:44:23 -0000 Hello Eric, up to now I don't have a solution for the problem. I didn't receive an answer from freebsd-scsi@freebsd.org to solve the problem. I could not find any reason for the changes in the SCSI driver between versions 5.2 and 6.0. Sorry, that the situation is still the same. It would be nice if you keep me informed if you got an solution as I will do. Best regards E. Herbst. > Hi E. Herbst. > > I have the same problem, with a Proliant ML150 G2 with > Adaptec AIC-7901A it complains with TimeOuts, and am > unable to install FreeBSD, did you solve your problem? > if so, please send me your solution, or URL or any > hint to solve this. > > It will be greatly appreciated. > > Thanks in advance. > > Eric De La Cruz Lugo > Merida Yucatan Mexico. > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com >