From owner-freebsd-current@FreeBSD.ORG Sun Jan 22 16:59:23 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 19CD916A41F for ; Sun, 22 Jan 2006 16:59:23 +0000 (GMT) (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 8ADA343D48 for ; Sun, 22 Jan 2006 16:59:21 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.14] (imini.samsco.home [192.168.254.14]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id k0MGpIbE004460; Sun, 22 Jan 2006 09:51:18 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <43D3B806.4020006@samsco.org> Date: Sun, 22 Jan 2006 09:51:18 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.7) Gecko/20050416 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Attila Nagy References: <43D3AA14.9090800@fsn.hu> In-Reply-To: <43D3AA14.9090800@fsn.hu> 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.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on pooker.samsco.org Cc: freebsd-current@freebsd.org Subject: Re: SCSI target mode LOR X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2006 16:59:23 -0000 Attila Nagy wrote: > Hello, > > I'm doing some experiments with FreeBSD target mode support on Fibre > Channel and thought that I should give CURRENT a try too. > > The machine itself is an HP BL25p with 8 GB of RAM (but hw.physmem set > to under 4G, it seems the isp driver needs this) and dual Opterons. > Running amd64 code. > > This is what I get after issuing > scsi_target -A -S -T -W 32 2:0:0 /data/file1 > > lock order reversal: (sleepable after non-sleepable) > 1st 0xffffffff808ce680 targ global (targ global) @ > /usr/src/sys/cam/scsi/scsi_target.c:418 > 2nd 0xffffffff808e98c0 kernel environment (kernel environment) @ > /usr/src/sys/kern/subr_hints.c:117 > KDB: stack backtrace: > witness_checkorder() at witness_checkorder+0x4f9 > _sx_slock() at _sx_slock+0x4d > res_find() at res_find+0x41a > resource_find() at resource_find+0x7e > resource_find_dev() at resource_find_dev+0x5f > cam_periph_alloc() at cam_periph_alloc+0x1df > targioctl() at targioctl+0x3a7 > giant_ioctl() at giant_ioctl+0x65 > devfs_ioctl_f() at devfs_ioctl_f+0x6f > ioctl() at ioctl+0x147 > syscall() at syscall+0x517 > Xfast_syscall() at Xfast_syscall+0xa8 > --- syscall (54, FreeBSD ELF64, ioctl), rip = 0x800909aac, rsp = > 0x7fffffffbb98, rbp = 0x7fffffffe700 --- > > Thanks, > Hi, Please file a PR on this and assign it to me. I'll be working in this area soon. Scott