[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aO1sWdliSd03a2WC@alpha.franken.de>
Date: Mon, 13 Oct 2025 23:17:13 +0200
From: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
To: Guenter Roeck <linux@...ck-us.net>
Cc: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
Bjorn Helgaas <bhelgaas@...gle.com>, linux-pci@...r.kernel.org,
linux-kernel@...r.kernel.org, macro@...am.me.uk
Subject: Re: [PATCH v2 03/24] MIPS: PCI: Use pci_enable_resources()
On Mon, Oct 13, 2025 at 12:54:25PM -0700, Guenter Roeck wrote:
> Hi,
>
> On Fri, Aug 29, 2025 at 04:10:52PM +0300, Ilpo Järvinen wrote:
> > pci-legacy.c under MIPS has a copy of pci_enable_resources() named as
> > pcibios_enable_resources(). Having own copy of same functionality could
> > lead to inconsistencies in behavior, especially now as
> > pci_enable_resources() and the bridge window resource flags behavior are
> > going to be altered by upcoming changes.
> >
> > The check for !r->start && r->end is already covered by the more generic
> > checks done in pci_enable_resources().
> >
> > Call pci_enable_resources() from MIPS's pcibios_enable_device() and remove
> > pcibios_enable_resources().
> >
> > Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
> > Acked-by: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
>
> This patch causes boot failures when trying to boot mips images from
> ide drive in qemu. As far as I can see the interface no longer instantiates.
>
> Reverting this patch fixes the problem. Bisect log attached for reference.
Patch below fixes my qemu malta setup. Now I'm wondering, why this is
needed. It was added with commit
aa0980b80908 ("Fixes for system controllers for Atlas/Malta core cards.")
Maciej, do you remember why this is needed ?
Thomas.
diff --git a/arch/mips/pci/pci-malta.c b/arch/mips/pci/pci-malta.c
index 6aefdf20ca05..e0270b818b03 100644
--- a/arch/mips/pci/pci-malta.c
+++ b/arch/mips/pci/pci-malta.c
@@ -229,10 +229,6 @@ void __init mips_pcibios_init(void)
return;
}
- /* PIIX4 ACPI starts at 0x1000 */
- if (controller->io_resource->start < 0x00001000UL)
- controller->io_resource->start = 0x00001000UL;
-
iomem_resource.end &= 0xfffffffffULL; /* 64 GB */
ioport_resource.end = controller->io_resource->end;
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
Powered by blists - more mailing lists