From owner-freebsd-scsi Sun Sep 15 6:54:32 2002 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 08BBB37B400 for ; Sun, 15 Sep 2002 06:54:31 -0700 (PDT) Received: from restricted.dyndns.org (12-248-252-90.client.attbi.com [12.248.252.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 486E843E42 for ; Sun, 15 Sep 2002 06:54:30 -0700 (PDT) (envelope-from neil-on-scsi@restricted.dyndns.org) Received: (qmail 729 invoked by uid 89); 15 Sep 2002 05:58:15 -0000 Message-ID: <20020915055815.728.qmail@ns1.onie.yi.org> From: "Neil" To: freebsd-scsi@freebsd.org Subject: help on aha1542 Date: Sun, 15 Sep 2002 00:58:15 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" 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 I am on FreeBSD 4.6 STABLE. I am running it on an IDE harddisk. No problems. Now, I connected my aha1542 scsi controller and my IBM DPES-31080 too. It sees the controller and the scsi device during cold-restart of the computer. I added the following and recompiled my kernel. device aha0 at isa? device scbus device da device sa device cd device pass During bootup of freebsd, it says this: aha0 at port 0x330-0x333 irq 11 drq 5 on isa0 aha0: AHA-1542CF FW Rev. B.0. (ID=45) SCSI Host Adapter, SCSI ID 7, 16 CCBs then after many other device lines, it says (probe0:aha0:0:0:0) CCB 0xc8230508 - timed out (probe0:aha0:0:0:0) CCB 0xc8230508 - timed out aha1: aha_cmd: Timed out waiting for adapter idle ahainitmboxes: Initialization command failed aha1: no longer in timeout (probe0:aha0:0:0:0) CCB 0xc8230508 - timed out (probe0:aha0:0:0:0) CCB 0xc8230508 - timed out aha1: aha_cmd: Timed out waiting for adapter idle ahainitmboxes: Initialization command failed aha1: no longer in timeout Can anyone help me fix this problem please? This scsi controller and IBM scsi disk works fine on my win95. And also, I tried connecting my scsi tape drive, it has the same behavior. Thanks. Neil To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sun Sep 15 7: 7:44 2002 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 1366937B400 for ; Sun, 15 Sep 2002 07:07:43 -0700 (PDT) Received: from restricted.dyndns.org (12-248-252-90.client.attbi.com [12.248.252.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E1EB43E3B for ; Sun, 15 Sep 2002 07:07:42 -0700 (PDT) (envelope-from neil-on-scsi@restricted.dyndns.org) Received: (qmail 4730 invoked by uid 89); 15 Sep 2002 14:07:41 -0000 Message-ID: <20020915140741.4729.qmail@restricted.dyndns.org> From: "Neil" To: freebsd-scsi@freebsd.org Subject: Help on AHA1542 controller Date: Sun, 15 Sep 2002 09:07:41 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" 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 I am sorry guys, I had weird problems with my qmail. I'm Sorry for posting this again. I am on FreeBSD 4.6 STABLE. I am running it on an IDE harddisk. No problems. Now, I connected my aha1542 scsi controller and my IBM DPES-31080 too. It sees the controller and the scsi device during cold-restart of the computer. I added the following and recompiled my kernel. device aha0 at isa? device scbus device da device sa device cd device pass During bootup of freebsd, it says this: aha0 at port 0x330-0x333 irq 11 drq 5 on isa0 aha0: AHA-1542CF FW Rev. B.0. (ID=45) SCSI Host Adapter, SCSI ID 7, 16 CCBs then after many other device lines, it says (probe0:aha0:0:0:0) CCB 0xc8230508 - timed out (probe0:aha0:0:0:0) CCB 0xc8230508 - timed out aha1: aha_cmd: Timed out waiting for adapter idle ahainitmboxes: Initialization command failed aha1: no longer in timeout (probe0:aha0:0:0:0) CCB 0xc8230508 - timed out (probe0:aha0:0:0:0) CCB 0xc8230508 - timed out aha1: aha_cmd: Timed out waiting for adapter idle ahainitmboxes: Initialization command failed aha1: no longer in timeout Can anyone help me fix this problem please? This scsi controller and IBM scsi disk works fine on my win95. And also, I tried connecting my scsi tape drive, it has the same behavior. Thanks. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sun Sep 15 9:26:24 2002 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 219D037B400 for ; Sun, 15 Sep 2002 09:26:24 -0700 (PDT) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BA5243E4A for ; Sun, 15 Sep 2002 09:26:23 -0700 (PDT) (envelope-from gibbs@scsiguy.com) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by aslan.scsiguy.com (8.12.5/8.12.5) with ESMTP id g8FGOWZY002384; Sun, 15 Sep 2002 10:24:33 -0600 (MDT) (envelope-from gibbs@scsiguy.com) Date: Sun, 15 Sep 2002 10:24:32 -0600 From: "Justin T. Gibbs" To: Lukas Ertl , freebsd-scsi@FreeBSD.ORG Subject: Re: ahc error messages Message-ID: <2651130000.1032107072@aslan.scsiguy.com> In-Reply-To: <20020915020641.Y48265-100000@leelou.in.tern> References: <20020915020641.Y48265-100000@leelou.in.tern> X-Mailer: Mulberry/3.0.0a4 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 > Well, one of the disks in this RAID box died. Shouldn't be a problem, the > hot spare disk jumped in. (We tested that when we first installed this > box: pulling disks out and putting them back in when the system was online > worked.) Nevertheless the server crashed. Although I think that it's the > fault of the RAID box (and the so-called "transparency" is just a > marketing-gag), I hope that someone can explain the errors I found in > /var/log/messages. Can you send me, in private mail, the full set of messages? It looks like we failed to negotiate anything other than async with the device, but it kept on using a sync transfer mode. The full set of messages should help me to know for sure. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sun Sep 15 14:48: 8 2002 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 4D96C37B400 for ; Sun, 15 Sep 2002 14:48:07 -0700 (PDT) Received: from innocence.interface-business.de (innocence.interface-business.de [193.101.57.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6765243E65 for ; Sun, 15 Sep 2002 14:48:05 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: from innocence.interface-business.de (localhost.interface-business.de [127.0.0.1]) by innocence.interface-business.de (8.12.5/8.12.5/ifb evision: 1.23 $) with ESMTP id g8FLm28q072536; Sun, 15 Sep 2002 23:48:02 +0200 (CEST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by innocence.interface-business.de (8.12.5/8.12.5/Submit) with UUCP id g8FLm2Op072535; Sun, 15 Sep 2002 23:48:02 +0200 (CEST) Received: from uriah.heep.sax.de (localhost.heep.sax.de [127.0.0.1]) by uriah.heep.sax.de (8.12.5/8.12.5) with ESMTP id g8FLl8dw031940; Sun, 15 Sep 2002 23:47:08 +0200 (MET DST) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.12.5/8.12.5/Submit) id g8FLl8X9031939; Sun, 15 Sep 2002 23:47:08 +0200 (MET DST) (envelope-from j) Date: Sun, 15 Sep 2002 23:47:08 +0200 (MET DST) Message-Id: <200209152147.g8FLl8X9031939@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: <20020915140741.4729.qmail@restricted.dyndns.org> From: j@uriah.heep.sax.de (Joerg Wunsch) Subject: Re: Help on AHA1542 controller X-Original-Newsgroups: local.freebsd.scsi To: freebsd-scsi@freebsd.org Cc: "Neil" 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 "Neil" wrote: > During bootup of freebsd, it says this: > > aha0 at port 0x330-0x333 irq 11 drq 5 on isa0 > aha0: AHA-1542CF FW Rev. B.0. (ID=45) SCSI Host Adapter, SCSI ID 7, 16 CCBs > > then after many other device lines, it says > > (probe0:aha0:0:0:0) CCB 0xc8230508 - timed out Are you sure irq 11 is the right one? Also, did you make sure irq 11 is not used by anyone else in the system? In particular, you need to tell your BIOS that it's not going to assign it to a PCI device. -- 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 Sun Sep 15 19:33:14 2002 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 6EC0537B400 for ; Sun, 15 Sep 2002 19:33:12 -0700 (PDT) Received: from restricted.dyndns.org (12-248-252-90.client.attbi.com [12.248.252.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3EE543E65 for ; Sun, 15 Sep 2002 19:33:11 -0700 (PDT) (envelope-from neil-on-scsi@restricted.dyndns.org) Received: (qmail 2328 invoked by uid 89); 16 Sep 2002 02:33:10 -0000 Message-ID: <20020916023310.2327.qmail@restricted.dyndns.org> References: <20020915140741.4729.qmail@restricted.dyndns.org> <200209152147.g8FLl8X9031939@uriah.heep.sax.de> In-Reply-To: <200209152147.g8FLl8X9031939@uriah.heep.sax.de> From: "Neil" To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Cc: freebsd-scsi@freebsd.org Subject: Re: Help on AHA1542 controller Date: Sun, 15 Sep 2002 21:33:10 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" 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 I actually got it fix this morning. And yes, it was using irq 11 on the scsi bios. But I also found out that USB was using it too. Thanks. Joerg Wunsch writes: > "Neil" wrote: > >> During bootup of freebsd, it says this: >> >> aha0 at port 0x330-0x333 irq 11 drq 5 on isa0 >> aha0: AHA-1542CF FW Rev. B.0. (ID=45) SCSI Host Adapter, SCSI ID 7, 16 CCBs >> >> then after many other device lines, it says >> >> (probe0:aha0:0:0:0) CCB 0xc8230508 - timed out > > Are you sure irq 11 is the right one? > > Also, did you make sure irq 11 is not used by anyone else in the > system? In particular, you need to tell your BIOS that it's not > going to assign it to a PCI device. > -- > 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 Mon Sep 16 11: 3:35 2002 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 6821337B400 for ; Mon, 16 Sep 2002 11:03:34 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9659643E75 for ; Mon, 16 Sep 2002 11:03:31 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8GI3VJU003213 for ; Mon, 16 Sep 2002 11:03:31 -0700 (PDT) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8GI3UAW003208 for scsi@freebsd.org; Mon, 16 Sep 2002 11:03:30 -0700 (PDT) Date: Mon, 16 Sep 2002 11:03:30 -0700 (PDT) Message-Id: <200209161803.g8GI3UAW003208@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: scsi@FreeBSD.org Subject: Current problem reports assigned to you 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 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2002/02/18] kern/35082 scsi IBM Intellistation will not reboot with S 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- s [2001/10/31] misc/31670 scsi Wide-Ultra 10k SCSI 3 drive is not recogn o [2002/04/21] kern/37332 scsi PATCH: add pen device to scsi_da.c o [2002/08/25] kern/41997 scsi Quirk entry for scsi_da.c for USB pen dri 3 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [1999/12/21] kern/15608 scsi acd0 / cd0 give inconsistent errors on em f [2002/03/16] kern/35999 scsi add support for general flash disks to sc a [2002/04/07] kern/36845 scsi Add ioctls CDRIOCREADSPEED/WRITESPEED to s [2002/04/23] kern/37378 scsi [PATCH] No 6-byte-read on Wincan USB pen 4 problems total. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Sep 17 17:53:55 2002 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 8DD4737B401; Tue, 17 Sep 2002 17:53:53 -0700 (PDT) Received: from newtrinity.default-network.net (newtrinity.default-network.net [62.159.128.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98E3D43E88; Tue, 17 Sep 2002 17:53:52 -0700 (PDT) (envelope-from corex@newtrinity.default-network.net) Received: from newtrinity.default-network.net (markus@localhost [127.0.0.1]) by newtrinity.default-network.net (8.12.3/8.12.3/DEFAULT-NETWORK.NET) with ESMTP id g8I0ro4H010203; Wed, 18 Sep 2002 02:53:50 +0200 (CEST) (envelope-from corex@newtrinity.default-network.net) Received: (from corex@localhost) by newtrinity.default-network.net (8.12.3/8.12.3/Submit) id g8I0rnMH010202; Wed, 18 Sep 2002 02:53:49 +0200 (CEST) (envelope-from corex) Date: Wed, 18 Sep 2002 02:53:49 +0200 From: marius@alchemy.franken.de To: freebsd-current@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: page fault while in kernel mode, cam related ? Message-ID: <20020918025349.C96711@newtrinity.default-network.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i 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 hi while trying to upgrade a -current box with an older scsi hd a scsi error seemed to have triggered a panic (actually the first ever on that box): (da0:ahc0:0:0:0): READ(10). CDB: 28 0 0 4b 94 df 0 0 20 0 (da0:ahc0:0:0:0): CAM Status: SCSI Status Error (da0:ahc0:0:0:0): SCSI Status: Check Condition (da0:ahc0:0:0:0): RECOVERED ERROR info:4b94f5 csi:b,b9,2,a2 asc:18,2 (da0:ahc0:0:0:0): Recovered data - data auto-reallocated field replaceable unit1 (da0:ahc0:0:0:0): No Recovery Action Needed Fatal trap 12: page fault while in kernel mode fault virtual address = 0x3e fault code = supervisor write, page not present instruction pointer = 0x8:0xc02d3241 stack pointer = 0x10:0xcfd2d954 frame pointer = 0x10:0xcfd2d96c code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 15268 (cpp0) kernel: type 12 trap, code=0 Stopped at vm_object_pip_add+0x21: addw %si,0x3e(%ebx) db> Context switches not allowed in the debugger. db> tr vm_object_pip_add(0,1,0,0,c1f1e000) at vm_object_pip_add+0x21 vm_fault(c0832000,c88c2000,2,0,c21b2b40) at vm_fault+0x212 trap_pfault(cfd2dab8,0,c88c2001) at trap_pfault+0x131 trap(18,10,10,c88c2001,c5c0add8) at trap+0x3ab calltrap() at calltrap+0x5 --- trap 0xc, eip = 0xc03025cf, esp = 0xcfd2daf8, ebp = 0xcfd2db44 --- generic_bzero(cfd2dba0,cfd2dbcc,c02be266,cfd2dba0,4) at generic_bzero+0xf spec_vnoperate(cfd2dba0) at spec_vnoperate+0x13 ffs_getpages(cfd2dbd8) at ffs_getpages+0x406 vnode_pager_getpages(c1fac708,cfd2dc8c,10,0) at vnode_pager_getpages+0x62 vm_fault(c27883fc,28304000,1,0,c21b2b40) at vm_fault+0x6d6 trap_pfault(cfd2dd48,1,28304000,28304000,0) at trap_pfault+0xed trap(2f,2f,2f,839e000,83a5008) at trap+0x22b calltrap() at calltrap+0x5 --- trap 0xc, eip = 0x806e373, esp = 0xbfbfeff0, ebp = 0xbfbff008 --- i don't know if fbsd is supposed to panic in case of such an error but i think to remember similar cam/scsi errors under 4-stable that didn't trigger a panic. btw, this box is connected via a serial console at 9600 bps and while typing at the ddb-prompt it swallowed most characters, i.e. i had to type single characters up to four times. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Sep 17 18: 4:56 2002 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 C3B0737B401; Tue, 17 Sep 2002 18:04:54 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id E63D643E81; Tue, 17 Sep 2002 18:04:52 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g8I13MKD099453; Tue, 17 Sep 2002 19:03:22 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g8I13M9i099452; Tue, 17 Sep 2002 19:03:22 -0600 (MDT) (envelope-from ken) Date: Tue, 17 Sep 2002 19:03:22 -0600 From: "Kenneth D. Merry" To: marius@alchemy.franken.de Cc: freebsd-current@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: Re: page fault while in kernel mode, cam related ? Message-ID: <20020917190321.A99415@panzer.kdm.org> References: <20020918025349.C96711@newtrinity.default-network.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: <20020918025349.C96711@newtrinity.default-network.net>; from marius@alchemy.franken.de on Wed, Sep 18, 2002 at 02:53:49AM +0200 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, Sep 18, 2002 at 02:53:49 +0200, marius@alchemy.franken.de wrote: > > hi > > while trying to upgrade a -current box with an older scsi hd a scsi error > seemed to have triggered a panic (actually the first ever on that box): > > (da0:ahc0:0:0:0): READ(10). CDB: 28 0 0 4b 94 df 0 0 20 0 > (da0:ahc0:0:0:0): CAM Status: SCSI Status Error > (da0:ahc0:0:0:0): SCSI Status: Check Condition > (da0:ahc0:0:0:0): RECOVERED ERROR info:4b94f5 csi:b,b9,2,a2 asc:18,2 > (da0:ahc0:0:0:0): Recovered data - data auto-reallocated field replaceable unit1 > (da0:ahc0:0:0:0): No Recovery Action Needed That's just an informative message, you had a bad block that was reallocated. > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x3e > fault code = supervisor write, page not present > instruction pointer = 0x8:0xc02d3241 > stack pointer = 0x10:0xcfd2d954 > frame pointer = 0x10:0xcfd2d96c > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 15268 (cpp0) > kernel: type 12 trap, code=0 > Stopped at vm_object_pip_add+0x21: addw %si,0x3e(%ebx) > db> Context switches not allowed in the debugger. > db> tr > vm_object_pip_add(0,1,0,0,c1f1e000) at vm_object_pip_add+0x21 > vm_fault(c0832000,c88c2000,2,0,c21b2b40) at vm_fault+0x212 > trap_pfault(cfd2dab8,0,c88c2001) at trap_pfault+0x131 > trap(18,10,10,c88c2001,c5c0add8) at trap+0x3ab > calltrap() at calltrap+0x5 > --- trap 0xc, eip = 0xc03025cf, esp = 0xcfd2daf8, ebp = 0xcfd2db44 --- > generic_bzero(cfd2dba0,cfd2dbcc,c02be266,cfd2dba0,4) at generic_bzero+0xf > spec_vnoperate(cfd2dba0) at spec_vnoperate+0x13 > ffs_getpages(cfd2dbd8) at ffs_getpages+0x406 > vnode_pager_getpages(c1fac708,cfd2dc8c,10,0) at vnode_pager_getpages+0x62 > vm_fault(c27883fc,28304000,1,0,c21b2b40) at vm_fault+0x6d6 > trap_pfault(cfd2dd48,1,28304000,28304000,0) at trap_pfault+0xed > trap(2f,2f,2f,839e000,83a5008) at trap+0x22b > calltrap() at calltrap+0x5 > --- trap 0xc, eip = 0x806e373, esp = 0xbfbfeff0, ebp = 0xbfbff008 --- > > > i don't know if fbsd is supposed to panic in case of such an error but i > think to remember similar cam/scsi errors under 4-stable that didn't > trigger a panic. > btw, this box is connected via a serial console at 9600 bps and while typing > at the ddb-prompt it swallowed most characters, i.e. i had to type single > characters up to four times. It doesn't look like the message above and the panic are related. The panic is in the VM code, I don't see any CAM functions in there. So my guess is that it's just a coincidence. You might try sending mail to the -current list and see if anyone has seen this sort of panic lately. 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 Tue Sep 17 18: 6:48 2002 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 4003237B401; Tue, 17 Sep 2002 18:06:46 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1713A43E3B; Tue, 17 Sep 2002 18:06:45 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g8I15NKD099488; Tue, 17 Sep 2002 19:05:23 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g8I15NR3099487; Tue, 17 Sep 2002 19:05:23 -0600 (MDT) (envelope-from ken) Date: Tue, 17 Sep 2002 19:05:23 -0600 From: "Kenneth D. Merry" To: marius@alchemy.franken.de Cc: freebsd-current@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: Re: page fault while in kernel mode, cam related ? Message-ID: <20020917190523.A99465@panzer.kdm.org> References: <20020918025349.C96711@newtrinity.default-network.net> <20020917190321.A99415@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020917190321.A99415@panzer.kdm.org>; from ken@kdm.org on Tue, Sep 17, 2002 at 07:03:22PM -0600 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, Sep 17, 2002 at 19:03:22 -0600, Kenneth D. Merry wrote: > On Wed, Sep 18, 2002 at 02:53:49 +0200, marius@alchemy.franken.de wrote: > > > > hi > > > > while trying to upgrade a -current box with an older scsi hd a scsi error > > seemed to have triggered a panic (actually the first ever on that box): > > > > (da0:ahc0:0:0:0): READ(10). CDB: 28 0 0 4b 94 df 0 0 20 0 > > (da0:ahc0:0:0:0): CAM Status: SCSI Status Error > > (da0:ahc0:0:0:0): SCSI Status: Check Condition > > (da0:ahc0:0:0:0): RECOVERED ERROR info:4b94f5 csi:b,b9,2,a2 asc:18,2 > > (da0:ahc0:0:0:0): Recovered data - data auto-reallocated field replaceable unit1 > > (da0:ahc0:0:0:0): No Recovery Action Needed > > That's just an informative message, you had a bad block that was > reallocated. > > > Fatal trap 12: page fault while in kernel mode > > fault virtual address = 0x3e > > fault code = supervisor write, page not present > > instruction pointer = 0x8:0xc02d3241 > > stack pointer = 0x10:0xcfd2d954 > > frame pointer = 0x10:0xcfd2d96c > > code segment = base 0x0, limit 0xfffff, type 0x1b > > = DPL 0, pres 1, def32 1, gran 1 > > processor eflags = interrupt enabled, resume, IOPL = 0 > > current process = 15268 (cpp0) > > kernel: type 12 trap, code=0 > > Stopped at vm_object_pip_add+0x21: addw %si,0x3e(%ebx) > > db> Context switches not allowed in the debugger. > > db> tr > > vm_object_pip_add(0,1,0,0,c1f1e000) at vm_object_pip_add+0x21 > > vm_fault(c0832000,c88c2000,2,0,c21b2b40) at vm_fault+0x212 > > trap_pfault(cfd2dab8,0,c88c2001) at trap_pfault+0x131 > > trap(18,10,10,c88c2001,c5c0add8) at trap+0x3ab > > calltrap() at calltrap+0x5 > > --- trap 0xc, eip = 0xc03025cf, esp = 0xcfd2daf8, ebp = 0xcfd2db44 --- > > generic_bzero(cfd2dba0,cfd2dbcc,c02be266,cfd2dba0,4) at generic_bzero+0xf > > spec_vnoperate(cfd2dba0) at spec_vnoperate+0x13 > > ffs_getpages(cfd2dbd8) at ffs_getpages+0x406 > > vnode_pager_getpages(c1fac708,cfd2dc8c,10,0) at vnode_pager_getpages+0x62 > > vm_fault(c27883fc,28304000,1,0,c21b2b40) at vm_fault+0x6d6 > > trap_pfault(cfd2dd48,1,28304000,28304000,0) at trap_pfault+0xed > > trap(2f,2f,2f,839e000,83a5008) at trap+0x22b > > calltrap() at calltrap+0x5 > > --- trap 0xc, eip = 0x806e373, esp = 0xbfbfeff0, ebp = 0xbfbff008 --- > > > > > > i don't know if fbsd is supposed to panic in case of such an error but i > > think to remember similar cam/scsi errors under 4-stable that didn't > > trigger a panic. > > btw, this box is connected via a serial console at 9600 bps and while typing > > at the ddb-prompt it swallowed most characters, i.e. i had to type single > > characters up to four times. > > It doesn't look like the message above and the panic are related. The > panic is in the VM code, I don't see any CAM functions in there. > > So my guess is that it's just a coincidence. You might try sending mail to > the -current list and see if anyone has seen this sort of panic lately. Oops, I missed that this was CCed to the current list, so never mind that. 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 Tue Sep 17 18:45:51 2002 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 36DE237B401; Tue, 17 Sep 2002 18:45:50 -0700 (PDT) Received: from newtrinity.default-network.net (newtrinity.default-network.net [62.159.128.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AD5D43E6A; Tue, 17 Sep 2002 18:45:49 -0700 (PDT) (envelope-from corex@newtrinity.default-network.net) Received: from newtrinity.default-network.net (markus@localhost [127.0.0.1]) by newtrinity.default-network.net (8.12.3/8.12.3/DEFAULT-NETWORK.NET) with ESMTP id g8I1jm4H011138; Wed, 18 Sep 2002 03:45:48 +0200 (CEST) (envelope-from corex@newtrinity.default-network.net) Received: (from corex@localhost) by newtrinity.default-network.net (8.12.3/8.12.3/Submit) id g8I1jmoG011137; Wed, 18 Sep 2002 03:45:48 +0200 (CEST) (envelope-from corex) Date: Wed, 18 Sep 2002 03:45:48 +0200 From: marius@alchemy.franken.de To: "Kenneth D. Merry" Cc: freebsd-current@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: Re: page fault while in kernel mode, cam related ? Message-ID: <20020918034548.T70075@newtrinity.default-network.net> References: <20020918025349.C96711@newtrinity.default-network.net> <20020917190321.A99415@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020917190321.A99415@panzer.kdm.org>; from ken@kdm.org on Tue, Sep 17, 2002 at 07:03:22PM -0600 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, Sep 17, 2002 at 07:03:22PM -0600, Kenneth D. Merry wrote: > On Wed, Sep 18, 2002 at 02:53:49 +0200, marius@alchemy.franken.de wrote: > > > > hi > > > > while trying to upgrade a -current box with an older scsi hd a scsi error > > seemed to have triggered a panic (actually the first ever on that box): > > > > (da0:ahc0:0:0:0): READ(10). CDB: 28 0 0 4b 94 df 0 0 20 0 > > (da0:ahc0:0:0:0): CAM Status: SCSI Status Error > > (da0:ahc0:0:0:0): SCSI Status: Check Condition > > (da0:ahc0:0:0:0): RECOVERED ERROR info:4b94f5 csi:b,b9,2,a2 asc:18,2 > > (da0:ahc0:0:0:0): Recovered data - data auto-reallocated field replaceable unit1 > > (da0:ahc0:0:0:0): No Recovery Action Needed > > That's just an informative message, you had a bad block that was > reallocated. > i know, just thought this could be somehow related, e.g. something in the vm-systems times out while the reallocation is taking place...whatever... but of course can be coincidence. maybe the "cam related" in the subject is unfortunate, i didn't mean a bug in cam but after/while the cam handled the error condition. thanks for having a look at it! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Tue Sep 17 19:49:15 2002 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 0954237B401; Tue, 17 Sep 2002 19:49:13 -0700 (PDT) Received: from newtrinity.default-network.net (newtrinity.default-network.net [62.159.128.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1125943E81; Tue, 17 Sep 2002 19:49:12 -0700 (PDT) (envelope-from corex@newtrinity.default-network.net) Received: from newtrinity.default-network.net (markus@localhost [127.0.0.1]) by newtrinity.default-network.net (8.12.3/8.12.3/DEFAULT-NETWORK.NET) with ESMTP id g8I2nA4H011778; Wed, 18 Sep 2002 04:49:10 +0200 (CEST) (envelope-from corex@newtrinity.default-network.net) Received: (from corex@localhost) by newtrinity.default-network.net (8.12.3/8.12.3/Submit) id g8I2nA0d011777; Wed, 18 Sep 2002 04:49:10 +0200 (CEST) (envelope-from corex) Date: Wed, 18 Sep 2002 04:49:10 +0200 From: marius@alchemy.franken.de To: "Kenneth D. Merry" Cc: freebsd-current@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: Re: page fault while in kernel mode, cam related ? Message-ID: <20020918044910.D96711@newtrinity.default-network.net> References: <20020918025349.C96711@newtrinity.default-network.net> <20020917190321.A99415@panzer.kdm.org> <20020918034548.T70075@newtrinity.default-network.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: <20020918034548.T70075@newtrinity.default-network.net>; from marius@alchemy.franken.de on Wed, Sep 18, 2002 at 03:45:48AM +0200 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 uhm, i just got another one. i guess the hd is broken and also managed to cause the previous panic. (da0:ahc0:0:0:0): SCB 0x27 - timed out ahc_pci0: Dumping Card State while idle, at SEQADDR 0x8 ACCUM = 0x47, SINDEX = 0x9e, DINDEX = 0x8c, ARG_2 = 0x0 HCNT = 0x0 SCBPTR = 0xb SCSISEQ = 0x12, SBLKCTL = 0x2 DFCNTRL = 0x0, DFSTATUS = 0x29 LASTPHASE = 0x1, SCSISIGI = 0x0, SXFRCTL0 = 0x80 SSTAT0 = 0x5, SSTAT1 = 0xa STACK == 0x3, 0x105, 0x160, 0x0 SCB count = 200 Kernel NEXTQSCB = 129 Card NEXTQSCB = 129 QINFIFO entries: Waiting Queue entries: Disconnected Queue entries: QOUTFIFO entries: Sequencer Free SCB List: 11 2 0 6 15 3 9 1 14 10 8 12 5 4 7 13 Sequencer SCB Info: 0(c 0x68, s 0x7, l 0, t 0xff) 1(c 0x68, s 0x7, l 0, t 0xff) Pending list: 140(c 0x68, s 0x7, l 0), 158(c 0x6c, s 0x7, l 0), 152(c 0x6c, s 0)Kernel Free SCB list: 165 61 101 184 98 88 178 123 176 26 83 62 197 170 8 112 4 sg[0] - Addr 0x52fe000 : Length 4096 sg[1] - Addr 0x71bf000 : Length 4096 sg[2] - Addr 0x6020000 : Length 4096 sg[3] - Addr 0xb441000 : Length 4096 sg[4] - Addr 0x30e2000 : Length 4096 sg[5] - Addr 0xa703000 : Length 4096 sg[6] - Addr 0x91a4000 : Length 4096 sg[7] - Addr 0x1f05000 : Length 4096 sg[8] - Addr 0x3f46000 : Length 4096 sg[9] - Addr 0x5787000 : Length 4096 sg[10] - Addr 0x80a8000 : Length 4096 sg[11] - Addr 0x1389000 : Length 4096 sg[12] - Addr 0xa9ca000 : Length 4096 sg[13] - Addr 0x6d8b000 : Length 4096 sg[14] - Addr 0x680c000 : Length 4096 sg[15] - Addr 0xa1cd000 : Length 4096 (da0:ahc0:0:0:0): Queuing a BDR SCB (da0:ahc0:0:0:0): Bus Device Reset Message Sent (da0:ahc0:0:0:0): no longer in timeout, status = 34b ahc_pci0: Bus Device Reset on A:0. 102 SCBs aborted (da0:ahc0:0:0:0): SCB 0x81 - timed out ahc_pci0: Dumping Card State while idle, at SEQADDR 0x7 ACCUM = 0xa0, SINDEX = 0x9f, DINDEX = 0x8c, ARG_2 = 0x0 HCNT = 0x0 SCBPTR = 0x7 SCSISEQ = 0x12, SBLKCTL = 0x2 DFCNTRL = 0x0, DFSTATUS = 0x29 LASTPHASE = 0x1, SCSISIGI = 0x0, SXFRCTL0 = 0x80 SSTAT0 = 0x5, SSTAT1 = 0xa STACK == 0x3, 0x105, 0x160, 0xe4 SCB count = 41 Kernel NEXTQSCB = 165 Card NEXTQSCB = 165 QINFIFO entries: Waiting Queue entries: Disconnected Queue entries: QOUTFIFO entries: Sequencer Free SCB List: 7 14 12 8 5 10 9 1 4 3 15 6 0 2 11 13 Sequencer SCB Info: 0(c 0x68, s 0x7, l 0, t 0xff) 1(c 0x68, s 0x7, l 0, t 0xff) Pending list: 159(c 0x6c, s 0x7, l 0), 40(c 0x6c, s 0x7, l 0), 43(c 0x6c, s 0x7) Kernel Free SCB list: Fatal trap 12: page fault while in kernel mode fault virtual address = 0x34737269 fault code = supervisor read, page not present instruction pointer = 0x8:0xc014b7d2 stack pointer = 0x10:0xcad87c80 frame pointer = 0x10:0xcad87c94 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 13 (swi6: tty:sio clock) kernel: type 12 trap, code=0 Stopped at ahc_dump_card_state+0x692: movl 0(%ebx),%eax db> tr ahc_dump_card_state(c1f1e000,c031d167,81) at ahc_dump_card_state+0x692 ahc_timeout(c10de098) at ahc_timeout+0xbb softclock(0) at softclock+0x152 ithread_loop(c0d5b800,cad87d48,c0d6acc0,c01c65c0,0) at ithread_loop+0x11c fork_exit(c01c65c0,c0d5b800,cad87d48) at fork_exit+0x92 fork_trampoline() at fork_trampoline+0x1a db> Context switches not allowed in the debugger. db> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Sep 18 6: 1:32 2002 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 149E837B401; Wed, 18 Sep 2002 06:01:31 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id E84AE43E7B; Wed, 18 Sep 2002 06:01:29 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id WAA19071; Wed, 18 Sep 2002 22:58:14 +1000 Date: Wed, 18 Sep 2002 23:06:46 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: marius@alchemy.franken.de Cc: freebsd-current@FreeBSD.ORG, Subject: Re: page fault while in kernel mode, cam related ? In-Reply-To: <20020918025349.C96711@newtrinity.default-network.net> Message-ID: <20020918225155.X15503-100000@gamplex.bde.org> 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 Wed, 18 Sep 2002 marius@alchemy.franken.de wrote: > btw, this box is connected via a serial console at 9600 bps and while typing > at the ddb-prompt it swallowed most characters, i.e. i had to type single > characters up to four times. That and the "Context switches not allowed in the debugger." message are just bugs in ddb. Interrupts are not enabled on all entries to ddb; in particular, they are not disabled when ddb is entered from trap_fatal(), unlike when ddb is entered from panic() (trap_fatal() calls ddb before panicing). Not disabling interrupts on entry to ddb is an old bug, but it is much more serious under -current since the kernel wants to switch contexts to handle some types of interrupts and it makes a mess attempting to do so. The characters are swallowed by the sio interrupt handler competing with the input polling loop. The sio interrupt handler uses fast interrupts so it can be reached without a context switch, and it _is_ reached since interrupts are enabled. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Sep 18 12:33:20 2002 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 D82C837B401 for ; Wed, 18 Sep 2002 12:33:18 -0700 (PDT) Received: from mgw1-out.MEIway.com (mgw1.meiway.com [212.73.210.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 512E243E3B for ; Wed, 18 Sep 2002 12:33:18 -0700 (PDT) (envelope-from LConrad@Go2France.com) Received: from VirusGate.MEIway.com (virus-gate.meiway.com [212.73.210.91]) by mgw1-out.MEIway.com (Postfix Relay Hub) with ESMTP id 1033DEF6A5 for ; Wed, 18 Sep 2002 21:19:16 +0200 (CEST) Received: from localhost (localhost.meiway.com [127.0.0.1]) by VirusGate.MEIway.com (Postfix) with SMTP id C0DD55D009 for ; Wed, 18 Sep 2002 21:38:48 +0200 (CEST) Received: from mail.Go2France.com (ms1.meiway.com [212.73.210.73]) by VirusGate.MEIway.com (Postfix) with ESMTP id 69F335D008 for ; Wed, 18 Sep 2002 21:38:48 +0200 (CEST) Received: from LenConrad.Go2France.com [66.64.14.18] by mail.Go2France.com with ESMTP (SMTPD32-6.06) id A6A93C98017A; Wed, 18 Sep 2002 21:40:25 +0200 Message-Id: <5.1.0.14.2.20020918143010.038b2eb8@mail.Go2France.com> X-Sender: LConrad@Go2France.com@mail.Go2France.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 18 Sep 2002 14:33:07 -0500 To: freebsd-scsi@freebsd.org From: Len Conrad Subject: can't write partition table to da1 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 fbsd 4.6.2 Waiting 15 seconds for SCSI devices to settle Mounting root from ufs:/dev/da0s1a da1 at ahc0 bus 0 target 6 lun 0 da1: Fixed Direct Access SCSI-3 device da1: 20.000MB/s transfers (10.000MHz, offset 8, 16bit), Tagged Queueing Enabled da1: 8750MB (17921835 512 byte sectors: 255H 63S/T 1115C) da0 at ahc0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 20.000MB/s transfers (10.000MHz, offset 8, 16bit), Tagged Queueing Enabled da0: 8678MB (17774160 512 byte sectors: 255H 63S/T 1106C) the da0 is cool, fbsd installed and booted. but when we run /stand/sysinstall to fdisk da1, and write the new partition, it says "fail". Any suggestions about how to proceed? Thanks Len ____________________________________________________________________ www.menandmice.com/DNS-training : DNS Training BIND8NT.MEIway.com: Secure config ; DNS and mail interactions IMGate.MEIway.com : Free, proven config for anti-mail-abuse gateways To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Wed Sep 18 13:47:48 2002 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 556E437B401 for ; Wed, 18 Sep 2002 13:47:47 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 8876743E42 for ; Wed, 18 Sep 2002 13:47:43 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 45064 invoked by uid 1000); 18 Sep 2002 20:47:37 -0000 Date: Wed, 18 Sep 2002 13:47:37 -0700 (PDT) From: Nate Lawson To: Len Conrad Cc: freebsd-scsi@freebsd.org Subject: Re: can't write partition table to da1 In-Reply-To: <5.1.0.14.2.20020918143010.038b2eb8@mail.Go2France.com> 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 This isn't a SCSI problem. One known bug in sysinstall is if it changes the partition type (vs. deleting and adding the partition), it won't write the disklabel. There is a patch for this in the pr database. Describe how you are partitioning and labeling the disk on freebsd-questions if you have further trouble. -Nate On Wed, 18 Sep 2002, Len Conrad wrote: > fbsd 4.6.2 > > Waiting 15 seconds for SCSI devices to settle > Mounting root from ufs:/dev/da0s1a > > da1 at ahc0 bus 0 target 6 lun 0 > da1: Fixed Direct Access SCSI-3 device > da1: 20.000MB/s transfers (10.000MHz, offset 8, 16bit), Tagged Queueing Enabled > da1: 8750MB (17921835 512 byte sectors: 255H 63S/T 1115C) > > da0 at ahc0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-2 device > da0: 20.000MB/s transfers (10.000MHz, offset 8, 16bit), Tagged Queueing Enabled > da0: 8678MB (17774160 512 byte sectors: 255H 63S/T 1106C) > > the da0 is cool, fbsd installed and booted. > > but when we run /stand/sysinstall to fdisk da1, and write the new > partition, it says "fail". > > Any suggestions about how to proceed? > > Thanks > Len > > > > > > > ____________________________________________________________________ > www.menandmice.com/DNS-training : DNS Training > BIND8NT.MEIway.com: Secure config ; DNS and mail interactions > IMGate.MEIway.com : Free, proven config for anti-mail-abuse gateways > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-scsi" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Sep 19 15:35:33 2002 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 D14DD37B401; Thu, 19 Sep 2002 15:35:32 -0700 (PDT) Received: from magic.adaptec.com (magic.adaptec.com [208.236.45.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D40743E3B; Thu, 19 Sep 2002 15:35:32 -0700 (PDT) (envelope-from gibbs@scsiguy.com) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11] (may be forged)) by magic.adaptec.com (8.10.2+Sun/8.10.2) with ESMTP id g8JMVTN10362; Thu, 19 Sep 2002 15:31:29 -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 PAA14868; Thu, 19 Sep 2002 15:31:28 -0700 (PDT) Received: from [10.100.253.70] (aslan [10.100.253.70]) by btc.btc.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id QAA24709; Thu, 19 Sep 2002 16:31:24 -0600 (MDT) Date: Thu, 19 Sep 2002 16:31:26 -0600 From: "Justin T. Gibbs" Reply-To: "Justin T. Gibbs" To: marius@alchemy.franken.de, "Kenneth D. Merry" Cc: freebsd-current@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: page fault while in kernel mode, cam related ? Message-ID: <1000070816.1032474686@aslan.btc.adaptec.com> In-Reply-To: <20020918044910.D96711@newtrinity.default-network.net> References: <20020918025349.C96711@newtrinity.default-network.net> <20020917190321.A99415@panzer.kdm.org> <20020918034548.T70075@newtrinity.default-network.net> <20020918044910.D96711@newtrinity.default-network.net> X-Mailer: Mulberry/3.0.0a4 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 > > uhm, i just got another one. i guess the hd is broken and also managed to > cause the previous panic. Can you do a: cd /usr/src/sys/i386/compile/MYKERNEL gdb -k kernel.debug l *(ahc_dump_card_state+0x692) and give me the output. Thanks, Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Sep 19 16:17:48 2002 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 2D05F37B401; Thu, 19 Sep 2002 16:17:47 -0700 (PDT) Received: from newtrinity.default-network.net (newtrinity.default-network.net [62.159.128.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E88E43E42; Thu, 19 Sep 2002 16:17:46 -0700 (PDT) (envelope-from corex@newtrinity.default-network.net) Received: from newtrinity.default-network.net (markus@localhost [127.0.0.1]) by newtrinity.default-network.net (8.12.3/8.12.3/DEFAULT-NETWORK.NET) with ESMTP id g8JNHi4H041416; Fri, 20 Sep 2002 01:17:44 +0200 (CEST) (envelope-from corex@newtrinity.default-network.net) Received: (from corex@localhost) by newtrinity.default-network.net (8.12.3/8.12.3/Submit) id g8JNHiau041415; Fri, 20 Sep 2002 01:17:44 +0200 (CEST) (envelope-from corex) Date: Fri, 20 Sep 2002 01:17:44 +0200 From: marius@alchemy.franken.de To: "Justin T. Gibbs" Cc: "Kenneth D. Merry" , freebsd-current@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: Re: page fault while in kernel mode, cam related ? Message-ID: <20020920011744.E96711@newtrinity.default-network.net> References: <20020918025349.C96711@newtrinity.default-network.net> <20020917190321.A99415@panzer.kdm.org> <20020918034548.T70075@newtrinity.default-network.net> <20020918044910.D96711@newtrinity.default-network.net> <1000070816.1032474686@aslan.btc.adaptec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <1000070816.1032474686@aslan.btc.adaptec.com>; from gibbs@scsiguy.com on Thu, Sep 19, 2002 at 04:31:26PM -0600 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, Sep 19, 2002 at 04:31:26PM -0600, Justin T. Gibbs wrote: > > > > uhm, i just got another one. i guess the hd is broken and also managed to > > cause the previous panic. > > Can you do a: > > cd /usr/src/sys/i386/compile/MYKERNEL > gdb -k kernel.debug > l *(ahc_dump_card_state+0x692) > > and give me the output. > I'm sorry but i replaced the hd and as it survided the buildworld discarded the old one. I still have the compile-directory of the kernel the old hd began to fail under but that's all. Would the output still be usefull ? If yes old kernel (-current as of Sep 2) or new kernel (-current as of yesterday) ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Sep 19 16:39:18 2002 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 1F6A337B401; Thu, 19 Sep 2002 16:39:17 -0700 (PDT) Received: from magic.adaptec.com (magic.adaptec.com [208.236.45.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91D5443E6A; Thu, 19 Sep 2002 16:39:16 -0700 (PDT) (envelope-from gibbs@scsiguy.com) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11] (may be forged)) by magic.adaptec.com (8.10.2+Sun/8.10.2) with ESMTP id g8JNZNN19370; Thu, 19 Sep 2002 16:35:23 -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 QAA24900; Thu, 19 Sep 2002 16:35:22 -0700 (PDT) Received: from [10.100.253.70] (aslan [10.100.253.70]) by btc.btc.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id RAA25521; Thu, 19 Sep 2002 17:35:19 -0600 (MDT) Date: Thu, 19 Sep 2002 17:35:20 -0600 From: "Justin T. Gibbs" Reply-To: "Justin T. Gibbs" To: marius@alchemy.franken.de Cc: "Kenneth D. Merry" , freebsd-current@freebsd.org, freebsd-scsi@freebsd.org Subject: Re: page fault while in kernel mode, cam related ? Message-ID: <1029280816.1032478520@aslan.btc.adaptec.com> In-Reply-To: <20020920011744.E96711@newtrinity.default-network.net> References: <20020918025349.C96711@newtrinity.default-network.net> <20020917190321.A99415@panzer.kdm.org> <20020918034548.T70075@newtrinity.default-network.net> <20020918044910.D96711@newtrinity.default-network.net> <1000070816.1032474686@aslan.btc.adaptec.com> <20020920011744.E96711@newtrinity.default-network.net> X-Mailer: Mulberry/3.0.0a4 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 >> Can you do a: >> >> cd /usr/src/sys/i386/compile/MYKERNEL >> gdb -k kernel.debug >> l *(ahc_dump_card_state+0x692) >> >> and give me the output. >> > > I'm sorry but i replaced the hd and as it survided the buildworld > discarded the old one. I still have the compile-directory of the > kernel the old hd began to fail under but that's all. > Would the output still be usefull ? Yes. > If yes old kernel (-current as > of Sep 2) or new kernel (-current as of yesterday) ? The kernel from when the failure occurred would be best, but even a more recent kernel should give similar results. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Thu Sep 19 20:52:23 2002 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 02B5537B401 for ; Thu, 19 Sep 2002 20:52:22 -0700 (PDT) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3321A43E3B for ; Thu, 19 Sep 2002 20:52:21 -0700 (PDT) (envelope-from gibbs@scsiguy.com) Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by aslan.scsiguy.com (8.12.5/8.12.5) with ESMTP id g8K3pnmo010528; Thu, 19 Sep 2002 21:52:03 -0600 (MDT) (envelope-from gibbs@scsiguy.com) Date: Thu, 19 Sep 2002 21:51:49 -0600 From: "Justin T. Gibbs" To: "=?gb2312?B?U1cgb3NjYXIo8VTS2Sk=?=" Cc: freebsd-scsi@freebsd.org Subject: Re: Page fault when rescan bus 0 again. Message-ID: <1009990000.1032493909@aslan.scsiguy.com> In-Reply-To: References: X-Mailer: Mulberry/3.0.0a4 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 > Hi All. > I've writen a driver for a scsi card. > > Things goes very well when I first time kldload my driver module, > camcontrol rescan 0, and kldunload, but when I kldload this driver again, > and do "camcontrol rescan 0", system will page fault, but it will > success if I rescan 1!! , why? Are you deregistering your SIM instances with CAM when your module is unloaded? Otherwise the first instance will still be known to CAM even though the code to handle it is gone. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Sep 21 10: 6:40 2002 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 40A8537B401 for ; Sat, 21 Sep 2002 10:06:39 -0700 (PDT) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 823F243E77 for ; Sat, 21 Sep 2002 10:06:38 -0700 (PDT) (envelope-from schweikh@schweikhardt.net) Received: from bremen.shuttle.de (localhost [127.0.0.1]) by bremen.shuttle.de (Postfix) with ESMTP id C191817D8C for ; Sat, 21 Sep 2002 19:06:36 +0200 (CEST) Received: (from uucp@localhost) by bremen.shuttle.de (8.12.3/8.12.3/Debian -4) with UUCP id g8LH6aag014308 for freebsd-scsi@freebsd.org; Sat, 21 Sep 2002 19:06:36 +0200 Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) by hal9000.schweikhardt.net (8.12.6/8.12.6) with ESMTP id g8LH7A4f026981 for ; Sat, 21 Sep 2002 19:07:10 +0200 (CEST) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.12.6/8.12.3/Submit) id g8LH7Agl026980 for freebsd-scsi@freebsd.org; Sat, 21 Sep 2002 19:07:10 +0200 (CEST) Date: Sat, 21 Sep 2002 19:07:10 +0200 From: Jens Schweikhardt To: FreeBSD SCSI Subject: Wiring down devices does not work Message-ID: <20020921190710.A12733@schweikhardt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i 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 I'm trying to wire down my devices according to LINT, on -current: # The syntax for wiring down devices is: # device scbus0 at ahc0 # Single bus device # device scbus1 at ahc1 bus 0 # Single bus device # device scbus3 at ahc2 bus 0 # Twin bus device # device scbus2 at ahc2 bus 1 # Twin bus device # device da0 at scbus0 target 0 unit 0 # device da1 at scbus3 target 1 # device da2 at scbus2 target 3 # device sa1 at scbus1 target 6 But if I write (yes, I've got an ahc, it works without wiring): ... device ahc device scbus0 at ahc0 # line 84 device da0 at scbus0 target 2 device da1 at scbus0 target 8 device da2 at scbus0 target 9 device da3 at scbus0 target 10 device da4 at scbus0 target 11 then what happens is $ make buildkernel KERNCONF=HAL -------------------------------------------------------------- >>> Kernel build for HAL started on Sat Sep 21 19:01:10 CEST 2002 -------------------------------------------------------------- ===> HAL mkdir -p /usr/obj/src/current/sys cd /src/current/sys/i386/conf; PATH=/usr/obj/src/current/i386/usr/sbin:/usr/obj/src/current/i386/usr/bin:/usr/obj/src/current/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin config -d /usr/obj/src/current/sys/HAL HAL config: line 84: ahc 0 not defined *** Error code 1 I've tried variations with ahc0 and "ahc 0" to no avail. What am I missing? 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 Sat Sep 21 14:29:56 2002 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 EBE2437B401 for ; Sat, 21 Sep 2002 14:29:54 -0700 (PDT) Received: from magic.adaptec.com (magic.adaptec.com [208.236.45.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6155143E4A for ; Sat, 21 Sep 2002 14:29:54 -0700 (PDT) (envelope-from scottl@btc.adaptec.com) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11] (may be forged)) by magic.adaptec.com (8.10.2+Sun/8.10.2) with ESMTP id g8LLToN13441; Sat, 21 Sep 2002 14:29:50 -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 OAA20589; Sat, 21 Sep 2002 14:29:45 -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 PAA22209; Sat, 21 Sep 2002 15:29:41 -0600 (MDT) Received: from hollin.btc.adaptec.com (localhost [127.0.0.1]) by hollin.btc.adaptec.com (8.12.5/8.12.5) with ESMTP id g8LLRPfM092621; Sat, 21 Sep 2002 15:27:25 -0600 (MDT) (envelope-from scottl@hollin.btc.adaptec.com) Received: (from scottl@localhost) by hollin.btc.adaptec.com (8.12.6/8.12.5/Submit) id g8LLRKDH092620; Sat, 21 Sep 2002 15:27:20 -0600 (MDT) Date: Sat, 21 Sep 2002 15:27:20 -0600 From: Scott Long To: Jens Schweikhardt Cc: FreeBSD SCSI , peter@wemm.org Subject: Re: Wiring down devices does not work Message-ID: <20020921212720.GA92567@hollin.btc.adaptec.com> References: <20020921190710.A12733@schweikhardt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020921190710.A12733@schweikhardt.net> User-Agent: Mutt/1.4i 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, Sep 21, 2002 at 07:07:10PM +0200, Jens Schweikhardt wrote: > hello, world\n > > I'm trying to wire down my devices according to LINT, on -current: > > # The syntax for wiring down devices is: > > # device scbus0 at ahc0 # Single bus device > # device scbus1 at ahc1 bus 0 # Single bus device > # device scbus3 at ahc2 bus 0 # Twin bus device > # device scbus2 at ahc2 bus 1 # Twin bus device > # device da0 at scbus0 target 0 unit 0 > # device da1 at scbus3 target 1 > # device da2 at scbus2 target 3 > # device sa1 at scbus1 target 6 > > > But if I write (yes, I've got an ahc, it works without wiring): > ... > device ahc > device scbus0 at ahc0 # line 84 > device da0 at scbus0 target 2 > device da1 at scbus0 target 8 > device da2 at scbus0 target 9 > device da3 at scbus0 target 10 > device da4 at scbus0 target 11 > > then what happens is > > $ make buildkernel KERNCONF=HAL > > -------------------------------------------------------------- > >>> Kernel build for HAL started on Sat Sep 21 19:01:10 CEST 2002 > -------------------------------------------------------------- > ===> HAL > mkdir -p /usr/obj/src/current/sys > cd /src/current/sys/i386/conf; PATH=/usr/obj/src/current/i386/usr/sbin:/usr/obj/src/current/i386/usr/bin:/usr/obj/src/current/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin config -d /usr/obj/src/current/sys/HAL HAL > config: line 84: ahc 0 not defined > *** Error code 1 > > I've tried variations with ahc0 and "ahc 0" to no avail. What am I > missing? > > Regards, > > Jens Yep, it looks like config(8) no longer accepts the syntax needed for wiring. This might be related to the elimination of count devices by Peter Wemm. In any case, can you try wiring by putting hints in /boot/device.hints? Examples for this are in /sys/conf/NOTES. If this too is broken, then we have a major regression to fix in 5.0. Scott To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message From owner-freebsd-scsi Sat Sep 21 14:39:14 2002 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 C85C437B401 for ; Sat, 21 Sep 2002 14:39:12 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 183BB43E7B for ; Sat, 21 Sep 2002 14:39:12 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.5/8.12.5) with ESMTP id g8LLdBKD029393; Sat, 21 Sep 2002 15:39:11 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.5/8.12.5/Submit) id g8LLdBMW029392; Sat, 21 Sep 2002 15:39:11 -0600 (MDT) (envelope-from ken) Date: Sat, 21 Sep 2002 15:39:10 -0600 From: "Kenneth D. Merry" To: Jens Schweikhardt Cc: FreeBSD SCSI Subject: Re: Wiring down devices does not work Message-ID: <20020921153910.A29363@panzer.kdm.org> References: <20020921190710.A12733@schweikhardt.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: <20020921190710.A12733@schweikhardt.net>; from schweikh@schweikhardt.net on Sat, Sep 21, 2002 at 07:07:10PM +0200 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, Sep 21, 2002 at 19:07:10 +0200, Jens Schweikhardt wrote: > hello, world\n > > I'm trying to wire down my devices according to LINT, on -current: > > # The syntax for wiring down devices is: > > # device scbus0 at ahc0 # Single bus device > # device scbus1 at ahc1 bus 0 # Single bus device > # device scbus3 at ahc2 bus 0 # Twin bus device > # device scbus2 at ahc2 bus 1 # Twin bus device > # device da0 at scbus0 target 0 unit 0 > # device da1 at scbus3 target 1 > # device da2 at scbus2 target 3 > # device sa1 at scbus1 target 6 > > > But if I write (yes, I've got an ahc, it works without wiring): > ... > device ahc > device scbus0 at ahc0 # line 84 > device da0 at scbus0 target 2 > device da1 at scbus0 target 8 > device da2 at scbus0 target 9 > device da3 at scbus0 target 10 > device da4 at scbus0 target 11 You need to look at sys/conf/NOTES. See the "SCSI DEVICE CONFIGURATION" section in NOTES for clues on how to hardware things in your hints file. (That's where the hardwiring information goes in -current.) 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 Sep 21 15: 1:29 2002 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 F103E37B401 for ; Sat, 21 Sep 2002 15:01:26 -0700 (PDT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C9AE43E6A for ; Sat, 21 Sep 2002 15:01:26 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 31A022A88D; Sat, 21 Sep 2002 15:01:26 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Scott Long Cc: Jens Schweikhardt , FreeBSD SCSI Subject: Re: Wiring down devices does not work In-Reply-To: <20020921212720.GA92567@hollin.btc.adaptec.com> Date: Sat, 21 Sep 2002 15:01:26 -0700 From: Peter Wemm Message-Id: <20020921220126.31A022A88D@canning.wemm.org> 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: > On Sat, Sep 21, 2002 at 07:07:10PM +0200, Jens Schweikhardt wrote: > > hello, world\n > > > > I'm trying to wire down my devices according to LINT, on -current: > > > > # The syntax for wiring down devices is: > > > > # device scbus0 at ahc0 # Single bus device > > # device scbus1 at ahc1 bus 0 # Single bus device > > # device scbus3 at ahc2 bus 0 # Twin bus device > > # device scbus2 at ahc2 bus 1 # Twin bus device > > # device da0 at scbus0 target 0 unit 0 > > # device da1 at scbus3 target 1 > > # device da2 at scbus2 target 3 > > # device sa1 at scbus1 target 6 > > > > > > But if I write (yes, I've got an ahc, it works without wiring): > > ... > > device ahc > > device scbus0 at ahc0 # line 84 > > device da0 at scbus0 target 2 > > device da1 at scbus0 target 8 > > device da2 at scbus0 target 9 > > device da3 at scbus0 target 10 > > device da4 at scbus0 target 11 > > > > then what happens is > > > > $ make buildkernel KERNCONF=HAL > > > > -------------------------------------------------------------- > > >>> Kernel build for HAL started on Sat Sep 21 19:01:10 CEST 2002 > > -------------------------------------------------------------- > > ===> HAL > > mkdir -p /usr/obj/src/current/sys > > cd /src/current/sys/i386/conf; PATH=/usr/obj/src/current/i386/usr/sbin:/us r/obj/src/current/i386/usr/bin:/usr/obj/src/current/i386/usr/games:/sbin:/b in:/usr/sbin:/usr/bin:/usr/local/bin config -d /usr/obj/src/current/sys/H AL HAL > > config: line 84: ahc 0 not defined > > *** Error code 1 > > > > I've tried variations with ahc0 and "ahc 0" to no avail. What am I > > missing? > > > > Regards, > > > > Jens > > Yep, it looks like config(8) no longer accepts the syntax needed for > wiring. This might be related to the elimination of count devices by > Peter Wemm. In any case, can you try wiring by putting hints in > /boot/device.hints? Examples for this are in /sys/conf/NOTES. If this > too is broken, then we have a major regression to fix in 5.0. It definatly works in 5.0. I was using this up till about a month ago: hint.scbus.0.at="ahc0" hint.scbus.0.bus="0" hint.scbus.1.at="ahc1" hint.scbus.1.bus="0" hint.da.4.at="scbus1" hint.da.4.target="0" hint.da.5.at="scbus1" hint.da.5.target="1" However, cam_periph.c on -current has a bugfix that doesn't appear to have been MFC'ed: revision 1.40 date: 2002/08/24 02:47:01; author: peter; state: Exp; lines: +9 -11 Fix unit wiring. Also, change the variable "hit" to "wired" so that it is more obvious. ie: wiring works better in -current than -stable. :-( Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message