From: "Jiaxun Yang" <jiaxun.yang@flygoat.com>
To: "Rong Zhang" <rongrong@oss.cipunited.com>,
"Thomas Bogendoerfer" <tsbogend@alpha.franken.de>
Cc: "Rong Zhang" <i@rong.moe>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"linux-mips@vger.kernel.org" <linux-mips@vger.kernel.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/2] MIPS: Loongson2ef: Use pcibios_align_resource() to block io range
Date: Sat, 31 Jan 2026 21:41:29 +0000 [thread overview]
Message-ID: <83760d87-151f-4947-9af5-6b4572d5a5d4@app.fastmail.com> (raw)
In-Reply-To: <20260131214003.833520-1-rongrong@oss.cipunited.com>
On Sat, 31 Jan 2026, at 9:32 PM, Rong Zhang wrote:
> Loongson2ef reserves io range below 0x4000 (LOONGSON_PCI_IO_START) while
> ISA-mode only IDE controller on the south bridge still has a hard
> dependency on ISA IO ports.
>
> The reservation was done by lifting loongson_pci_io_resource.start onto
> 0x4000. Prior to commit ae81aad5c2e1 ("MIPS: PCI: Use
> pci_enable_resources()"), the arch specific pcibios_enable_resources()
> did not check if the resources were claimed, which diverges from what
> PCI core checks, effectively hiding the fact that IDE IO resources were
> not properly within the resource tree. After starting to use
> pcibios_enable_resources() from PCI core, enabling IDE controller fails:
>
> pata_cs5536 0000:00:0e.2: BAR 0 [io 0x01f0-0x01f7]: not claimed;
> can't enable device
> pata_cs5536 0000:00:0e.2: probe with driver pata_cs5536 failed with
> error -22
>
> MIPS PCI code already has support for enforcing lower bounds using
> PCIBIOS_MIN_IO in pcibios_align_resource() without altering the IO
> window start address itself. Register PCI controller in plat_mem_setup()
> instead of arch_initcall() to make it the root of other resources (e.g.,
> i8259) and prevent resource conflicts. Then, make Loongson2ef PCI code
> use PCIBIOS_MIN_IO too.
>
> Rong Zhang (2):
> MIPS: Loongson2ef: Register PCI controller in early stage
> MIPS: Loongson2ef: Use pcibios_align_resource() to block io range
Acked-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
>
> .../include/asm/mach-loongson2ef/loongson.h | 6 ++++++
> arch/mips/loongson2ef/common/pci.c | 18 +++++++++++-------
> arch/mips/loongson2ef/common/setup.c | 1 +
> 3 files changed, 18 insertions(+), 7 deletions(-)
>
>
> base-commit: ad9a728a3388dc5f66eab6b7135e0154249e9403
> --
> 2.51.0
--
- Jiaxun
next prev parent reply other threads:[~2026-01-31 21:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-31 21:32 Rong Zhang
2026-01-31 21:32 ` [PATCH 1/2] MIPS: Loongson2ef: Register PCI controller in early stage Rong Zhang
2026-01-31 21:32 ` [PATCH 2/2] MIPS: Loongson2ef: Use pcibios_align_resource() to block io range Rong Zhang
2026-01-31 21:41 ` Jiaxun Yang [this message]
2026-02-05 9:05 ` [PATCH 0/2] " Thomas Bogendoerfer
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=83760d87-151f-4947-9af5-6b4572d5a5d4@app.fastmail.com \
--to=jiaxun.yang@flygoat.com \
--cc=i@rong.moe \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=rongrong@oss.cipunited.com \
--cc=tsbogend@alpha.franken.de \
/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®