From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5701AC433DB for ; Fri, 26 Mar 2021 12:22:16 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D4B366191F for ; Fri, 26 Mar 2021 12:22:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D4B366191F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=Pa3EPhFkC4seKIT1mpoLqvidGZD2K9L5poOzYaMXT1M=; b=XPfqVfHWlKqhiUJnoT3hPXGhXJ otbzNU47dtoRdBzVrI7Q+xKv7t0fcDmHhLUAKz2kII2exv7J2xUpVjXi+5fa8unWdI8EF6mG4zrSf f1kPtFfrk+RQDQavpsw1kwuIhsdBw2C2lNBLXIKGVi5QwH3GJeklRVDCzBIExCawNwzHEq7+PviMZ 7QxTsNjRBmTw38ZuOANEQCYlyyn+RXVl2am5JMMUHWoOEmMARmdiOtt0a4EvT1opA6sCA+5m+RvHW +RWCsK6w7jFBKKW4ydZcPfwX0ik1uhTPmK6pV3aVL4hawwIM/rc2dcjxZgRmbfZGTxD1qh0pQW7TP YROr21bg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lPlSI-003VGq-J4; Fri, 26 Mar 2021 12:20:47 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lPlSE-003Uyr-Fw for linux-arm-kernel@lists.infradead.org; Fri, 26 Mar 2021 12:20:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dkK/gevkeDOI+Jkt3L86GdKoGNlYvvXguhv03SMf2kU=; b=eAm5XGEnjWfegsTveBszshjms zzTF5YBiD+Jla/iEpRbvnlCw91s4fKQb+Nm1IIYNPoiV26SKDTYFiHKjlBncGao6nJjKyt7BDBdnT Xh/yK/SdrFYkZdnK/mx9+yrQY9cO6eCKWsNdzcatSlDwUAhOLgxZ1zMMu6FV3xhqipunykaG6lUg4 s9Tc+is2FpZSaRO9XxdX9hhduRgW3cgF4zjp+m3VpsB0uU0Typ7oh/Udd8vJDzQVwwJ7cRF3yfYIo UG7yN3jtlw5aVXr9JBFmLe581w50GXNI5ImcaSO1ITGCgEiWsjmulW5H4HFTylxno+AOvZt77U7Ee mtbQptMeQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:51790) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lPlPE-0005dg-3N; Fri, 26 Mar 2021 12:17:36 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lPlPD-000770-K1; Fri, 26 Mar 2021 12:17:35 +0000 Date: Fri, 26 Mar 2021 12:17:35 +0000 From: Russell King - ARM Linux admin To: linux-arm-kernel@lists.infradead.org Cc: Arnd Bergmann , Rob Herring Subject: [PATCH 0/3] Fix Footbridge PCI I/O resources Message-ID: <20210326121735.GQ1463@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210326_122042_671127_AD462F21 X-CRM114-Status: GOOD ( 10.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series fixes the PCI I/O resources for the Footbridge platforms which were broken quite some time ago by misinterpretation of what pcibios_min_io actually means, and the introduction of bus level PCI I/O resources. The changes become a particular problem when a Southbridge is present on the PCI bus, which is a PCI-to-ISA bridge, and hence is where all the ISA resources live. It is made worse when you have an IDE controller which operates in legacy mode, with resources at the 0x170/0x1f0/0x376/0x3f6 addresses. Worse than that, the previous changes removed the CSR I/O resource allocation entirely, setting the 21285 to respond to I/O transactions at bus address 0, which may overlap ISA resources on the Southbridge. This series fixes the resource problems by restoring the old behaviour via a flag that omits the PCI I/O resource, enabling this flag for all footbridge platforms, and restoring the allocation of the CSR I/O resource. This approach offers minimal impact for other platforms. arch/arm/include/asm/mach/pci.h | 1 + arch/arm/kernel/bios32.c | 37 +++++++++++++++++++------------- arch/arm/mach-footbridge/cats-pci.c | 1 + arch/arm/mach-footbridge/dc21285.c | 15 ++++++++++++- arch/arm/mach-footbridge/ebsa285-pci.c | 1 + arch/arm/mach-footbridge/netwinder-pci.c | 1 + arch/arm/mach-footbridge/personal-pci.c | 1 + 7 files changed, 41 insertions(+), 16 deletions(-) -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel