From mboxrd@z Thu Jan 1 00:00:00 1970 From: Segher Boessenkool Subject: Re: [PATCH] mark PCI resource with start 0 as unassigned Date: Mon, 6 Aug 2007 20:04:17 +0200 Message-ID: <04ce93c63dfaa543b4068d448c8115d8@kernel.crashing.org> References: <20061130165202.GA23205@aepfle.de> <20061204123854.GA28159@aepfle.de> <4574197A.2020204@ru.mvista.com> <4FC2EBCF-C927-435A-9BE3-E4403AFC042D@kernel.crashing.org> <45741DDE.4080509@ru.mvista.com> <20061204132124.4f7c50a9@localhost.localdomain> <52F5B831-5B40-4D40-A77F-4D7484692CAE@kernel.crashing.org> <46B0972C.3020000@ru.mvista.com> <20070801165140.3e176cd1@the-village.bc.nu> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from gate.crashing.org ([63.228.1.57]:54502 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758862AbXHFSEi (ORCPT ); Mon, 6 Aug 2007 14:04:38 -0400 In-Reply-To: <20070801165140.3e176cd1@the-village.bc.nu> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Alan Cox Cc: Olaf Hering , linuxppc-dev@ozlabs.org, Sergei Shtylyov , linux-ide@vger.kernel.org >>> But 0 _is_ a valid PCI I/O address. Do we now have to start >> >> I wasn't in PCI 2.1 (later the corresponding passage have >> disppeared). > > SFF controllers often use 0 to indicate a channel isn't configured and > present. Libata and old IDE both assume these semantics for an SFF > IDE device reporting address zero. It matches the hardware behaviour. > > I would suggest you don't map one at I/O zero on your PCI. That's of course the smarter choice, _if_ we have a choice at all -- on PowerPC, the PCI setup on certain platforms is done by the firmware (and we don't want to mess with it for various reasons), and some _do_ map PCI legacy I/O at 0. Not in this case though, so let's just ignore that possibility until it hits us in the face :-) Segher