From owner-cvs-all@FreeBSD.ORG Tue Jan 9 17:22:14 2007 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 68FCF16A407; Tue, 9 Jan 2007 17:22:14 +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 10B5713C45D; Tue, 9 Jan 2007 17:22:11 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id l09HM8sQ077062; Tue, 9 Jan 2007 12:22:08 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: pyunyh@gmail.com Date: Tue, 9 Jan 2007 11:17:54 -0500 User-Agent: KMail/1.9.1 References: <200701080019.l080Js9g077860@repoman.freebsd.org> <200701081135.59717.jhb@freebsd.org> <20070109002450.GA24958@cdnetworks.co.kr> In-Reply-To: <20070109002450.GA24958@cdnetworks.co.kr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701091117.55545.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 09 Jan 2007 12:22:08 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2429/Tue Jan 9 09:23:53 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org, Pyun YongHyeon Subject: Re: cvs commit: src/sys/dev/msk if_msk.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 17:22:14 -0000 On Monday 08 January 2007 19:24, Pyun YongHyeon wrote: > On Mon, Jan 08, 2007 at 11:35:59AM -0500, John Baldwin wrote: > > On Sunday 07 January 2007 19:19, Pyun YongHyeon wrote: > > > yongari 2007-01-08 00:19:53 UTC > > > > > > FreeBSD src repository > > > > > > Modified files: > > > sys/dev/msk if_msk.c > > > Log: > > > Initialize legacy SYS_RES_IRQ resources before attempting to use MSI. > > > This fixes legacy SYS_RES_IRQ resource allocation failure when MSI is > > > disabled. > > > > > > Reported by: rrs > > > Tested by: rrs > > > > Gah, my bad. I would prefer to set it down before the 'if (msic == 2...)' so > > all the logic for it is in one place, but anyways, you should remove the > > At first I thought that too. But mskc_attach() checks chip id and > then exits if the chip is not supported one. If that happens > mskc_detach() will call bus_release_resources() with invalid > SYS_RES_IRQ resources. Ah, ok. -- John Baldwin