From owner-freebsd-current@FreeBSD.ORG Sun Mar 29 00:03:38 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A280106564A for ; Sun, 29 Mar 2009 00:03:38 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from web63902.mail.re1.yahoo.com (web63902.mail.re1.yahoo.com [69.147.97.117]) by mx1.freebsd.org (Postfix) with SMTP id 3496B8FC15 for ; Sun, 29 Mar 2009 00:03:38 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: (qmail 49451 invoked by uid 60001); 29 Mar 2009 00:03:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1238285017; bh=RNzvGuuKNF8AF+cradZdKEMnTdhFk9RTYADj7Go7JQ0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=MFDbMmd4b8Bfa0iVZ7X1X31NF5pDio3R877LbFxNr0RiRZDGW/WronMqkIRfFrpvI+/BtGO6bZAAYBazvP8awVHhjziZ3DFS8/I951geqxTX8FEnjCPzaFQixmP+xnqtuvrlKzXcbSV4X8aaxNmo1c7P1XuIOX3lbw3j3Pircow= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=l5wtrq4AMQGcdJi/qB3Hzd6+9ueYC+uD7QLAnajePjAb62acgmTMoktAYsL9r8A/+4asCpiiO5E8BUgwiTJs+tRGiPAWUFHejdScevabaq/1oPZUTdNIWVB7/GAkTH3vQ37H3tb8+90GGEQL7jEPu3aa0CxCYkYgRiSBAzsKqcg=; Message-ID: <706191.48959.qm@web63902.mail.re1.yahoo.com> X-YMail-OSG: SWmdGXAVM1n9kydxAtEWH5G46hMgj0gKl68Agyu3szW.uaUMxcRtD5wIIpXOEe.giscStSa0CcKFFy_niYl4KaThJYI9ykLgLEnG62EU388TxxvgUlDBL7UjVW6H5n2frykNMXXsCOhAplt24y2rnoHirZoB.g5SkPD9GxPeI6YK4LUiE6.h09Nq4gY95LDG9FtIVXmHRsdLverlIf2C85fNCaVMK6HTn0soNjXw27wWsQ7_.NQ- Received: from [98.242.222.229] by web63902.mail.re1.yahoo.com via HTTP; Sat, 28 Mar 2009 17:03:37 PDT X-Mailer: YahooMailWebService/0.7.289.1 Date: Sat, 28 Mar 2009 17:03:37 -0700 (PDT) From: Barney Cordoba To: current@freebsd.org In-Reply-To: <848052.92716.qm@web63907.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: Bus Resource busy panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: barney_cordoba@yahoo.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2009 00:03:38 -0000 --- On Sat, 3/28/09, Barney Cordoba wrote: > From: Barney Cordoba > Subject: Bus Resource busy panic > To: current@freebsd.org > Date: Saturday, March 28, 2009, 6:35 PM > I have a situation that results in a panic in 8 that runs > happily in 7. > Its a bus_alloc_resource of type SYS_RES_MEMORY that is > used by 2 > separate devices. > > I see there is an RF_SHAREABLE flag. That flag hadn't > been set, but is there > something in 8 that now requires it? > > As a side question, should a bus_alloc_resource call panic > the system just > because the resource is busy? > > Barney Some more info on this. The panic is in resource_list_alloc() and setting SHAREABLE doesn't fix it. I see the same code in 7 so I'm not sure why it would work in 7 and not 8. Basically there are 2 devices that need to do IO on a board, and they are both doing bus_alloc_resource_any(dev, SYS_RES_MEMORY,&rid, RF_ACTIVE); Barney