From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Florian Fainelli <f.fainelli@gmail.com>
Cc: linux-mips@vger.kernel.org, macro@orcam.me.uk,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"open list" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] MIPS: Cobalt: Include legacy IDE ports in the PCI I/O window
Date: Thu, 5 Nov 2026 16:21:33 +0100 [thread overview]
Message-ID: <auye_XP-CKkZ16kd@alpha.franken.de> (raw)
In-Reply-To: <20261022163106.1410595-1-f.fainelli@gmail.com>
On Thu, Oct 22, 2026 at 09:31:00AM -0700, Florian Fainelli wrote:
> The Cobalt PCI I/O window starts at 0x1000, excluding the VIA IDE
> controller's fixed compatibility-mode ports at 0x170, 0x1f0, 0x376 and
> 0x3f6. Since pcibios_enable_device() was converted to
> pci_enable_resources(), these unclaimed resources cause pata_via to
> fail to probe with -EINVAL.
>
> Start the PCI I/O window at zero to cover the southbridge legacy ports,
> retaining 0x1000 as the allocation minimum via PCIBIOS_MIN_IO. Register
> the PCI controller from plat_mem_setup(), before the VIA reservations
> and i8259 initialization, so the legacy resources do not conflict with
> the host bridge window and prevent PCI bus scanning.
>
> Keep the VIA resource reservations in plat_mem_setup() after the PCI
> controller registration and use insert_resource() to nest them beneath
> the PCI window. The i8259 and RTC resources are also claimed beneath it.
>
> Boot-tested on a Qube2 with a MIPS64 kernel. All seven PCI functions
> enumerate, both tulip devices bind, and pata_via initializes both ATA
> hosts and detects the ST380012A 80 GB disk. All 18 boot checks pass,
> including a read-only disk test and Ethernet ping.
>
> Fixes: ae81aad5c2e1 ("MIPS: PCI: Use pci_enable_resources()")
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> Changes in v2:
>
> - implement Maciej's suggestion to reserve PCI resources first
> and then the rest of the peripherals
>
> arch/mips/cobalt/pci.c | 11 +++++------
> arch/mips/cobalt/setup.c | 4 +++-
> arch/mips/include/asm/mach-cobalt/cobalt.h | 1 +
> 3 files changed, 9 insertions(+), 7 deletions(-)
applied to mips-next
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
prev parent reply other threads:[~2026-11-05 15:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-22 16:31 Florian Fainelli
2026-10-25 2:55 ` Maciej W. Rozycki
2026-10-25 19:16 ` Florian Fainelli
2026-10-25 19:19 ` Florian Fainelli
2026-10-26 4:38 ` Maciej W. Rozycki
2026-11-05 15:21 ` Thomas Bogendoerfer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=auye_XP-CKkZ16kd@alpha.franken.de \
--to=tsbogend@alpha.franken.de \
--cc=bhelgaas@google.com \
--cc=f.fainelli@gmail.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=macro@orcam.me.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®