From owner-svn-src-stable-9@FreeBSD.ORG Fri May 4 16:32:19 2012 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE028106566B; Fri, 4 May 2012 16:32:19 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 924708FC08; Fri, 4 May 2012 16:32:18 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 269758721; Fri, 04 May 2012 18:27:09 +0200 From: Hans Petter Selasky To: John Baldwin Date: Fri, 4 May 2012 18:26:19 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.3-STABLE; KDE/4.4.5; amd64; ; ) References: <201205041538.q44FclqK010547@svn.freebsd.org> <201205041214.16342.jhb@freebsd.org> In-Reply-To: <201205041214.16342.jhb@freebsd.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Message-Id: <201205041826.19435.hselasky@c2i.net> Cc: "svn-src-stable@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" , "svn-src-stable-9@freebsd.org" Subject: Re: svn commit: r235007 - stable/9/sys/dev/pci X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2012 16:32:19 -0000 On Friday 04 May 2012 18:14:16 John Baldwin wrote: > On Friday, May 04, 2012 11:38:47 am Hans Petter Selasky wrote: > > Author: hselasky > > Date: Fri May 4 15:38:47 2012 > > New Revision: 235007 > > URL: http://svn.freebsd.org/changeset/base/235007 > > > > Log: > > MFC r233662, r233677 and r233678: > > > > Writing zero to BAR actually does not disable it and > > it is even harmful as hselasky found out. Historically, > > this code was originated from (OLDCARD) CardBus driver and later leaked > > into PCI driver when CardBus was newbus'ified and refactored with PCI > > driver. However, it is not really necessary even for CardBus. > > FYI, I've got one bug report on HEAD where these changes broke a machine's > ATA controller. Have you considered adding code to disable the I/O or memory range instead of writing 0 to the bar in this case? --HPS