From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: What is the correct way to indicate an unassigned PCI resource ? Date: Mon, 04 Dec 2006 18:55:15 +0300 Message-ID: <457444E3.7030706@ru.mvista.com> 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> <45742253.1000807@ru.mvista.com> <20061204142201.68d9621f@localhost.localdomain> <457431FE.6040702@ru.mvista.com> <20061204144411.246f3700@localhost.localdomain> <45744159.8040301@ru.mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from gateway-1237.mvista.com ([63.81.120.155]:8185 "EHLO imap.sh.mvista.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S937044AbWLDPxo (ORCPT ); Mon, 4 Dec 2006 10:53:44 -0500 In-Reply-To: <45744159.8040301@ru.mvista.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Alan Cc: Olaf Hering , linuxppc-dev@ozlabs.org, greg@kroah.com, linux-ide@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz Hello. Sergei Shtylyov wrote: >>> When Linus remaps IRQ0 on x86, I'll follow that code as a testament. Until >>>this happens, I consider is just an opinion. Forcing every arch but x86 to >>>remap IRQ0 is an example of the double standards. >>Yawn.. x86 does not expose IRQ 0 outside of arch specific code. > Can you believe, some non-x86 platofrms also don't -- for example, IRQ0 > may be internal to SOC, not shareable or routable outside of it, BUT the SOC > device is driven by the standard driver (I'm minding 8250.c here). Yet we're > told that we should remap it, period... >>>>The checks need pushing upwards and removing from their current place - >>>>the pci layer should check the resource length, the isa pnp should I >>>>believe check for zero address etc. Although, I'm getting the point -- PCI is likely to return 0 for unassigned the interrupt line register (this isn't always true though). So, some mixup is possible in that regard. Well, then we're unlucky, and indeed remapping IRQ0 has sense... WBR, Sergei From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from imap.sh.mvista.com (unknown [63.81.120.155]) by ozlabs.org (Postfix) with ESMTP id 78BB367C47 for ; Tue, 5 Dec 2006 02:53:44 +1100 (EST) Message-ID: <457444E3.7030706@ru.mvista.com> Date: Mon, 04 Dec 2006 18:55:15 +0300 From: Sergei Shtylyov MIME-Version: 1.0 To: Alan Subject: Re: What is the correct way to indicate an unassigned PCI resource ? 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> <45742253.1000807@ru.mvista.com> <20061204142201.68d9621f@localhost.localdomain> <457431FE.6040702@ru.mvista.com> <20061204144411.246f3700@localhost.localdomain> <45744159.8040301@ru.mvista.com> In-Reply-To: <45744159.8040301@ru.mvista.com> Content-Type: text/plain; charset=us-ascii; format=flowed Cc: linux-ide@vger.kernel.org, linuxppc-dev@ozlabs.org, Olaf Hering , linux-pci@atrey.karlin.mff.cuni.cz, greg@kroah.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hello. Sergei Shtylyov wrote: >>> When Linus remaps IRQ0 on x86, I'll follow that code as a testament. Until >>>this happens, I consider is just an opinion. Forcing every arch but x86 to >>>remap IRQ0 is an example of the double standards. >>Yawn.. x86 does not expose IRQ 0 outside of arch specific code. > Can you believe, some non-x86 platofrms also don't -- for example, IRQ0 > may be internal to SOC, not shareable or routable outside of it, BUT the SOC > device is driven by the standard driver (I'm minding 8250.c here). Yet we're > told that we should remap it, period... >>>>The checks need pushing upwards and removing from their current place - >>>>the pci layer should check the resource length, the isa pnp should I >>>>believe check for zero address etc. Although, I'm getting the point -- PCI is likely to return 0 for unassigned the interrupt line register (this isn't always true though). So, some mixup is possible in that regard. Well, then we're unlucky, and indeed remapping IRQ0 has sense... WBR, Sergei