Re: [PATCH] kernel: resourse: Add conditional handling for ACPI device

Szuying Chen
2025-10-23T08:05:09Z

On Sun, Oct 19, 2025 at 03:07AM, Andy Shevchenko wrote:
> On Fri, Oct 17, 2025 at 10:35:31AM +0800, Szuying Chen wrote:
> > To avoid address conflicts and related errors, specific checks for
> > the ACPI device "AMDIF031" should be bypassed.
>
> TL;DR: NAK.
>
> No, this is not how we should do the quirks (besides the use of CamelCase).
> Also, please provide more info why firmware may not be fixed properly at
> the same time, so we won't need this on an updated version?
>
> --
> With Best Regards,
> Andy Shevchenko

The ACPI device AMDIF031 is a virtual (non-PCI) device located on the PCI
upstream port. Its memory resource is assigned by the BIOS within the bridge
windows of the PCI upstream port.

When the kernel creates ACPI/AMDIF031 and verifies memory resources, it may
detect an address conflict between AMDIF031 and the PCI upstream port. The
kernel then attempts to reassign resources for the PCI upstream port tree,
causing AMDIF031's memory resource to fall outside the bridge windows. This
makes the device inaccessible.

To prevent this and allow AMDIF031 to use the BIOS-assigned memory range,
skip resource reallocation when an address conflict is detected for this
device.

Thanks
Chloe