acpi: add kernel option to skip binding drivers to certain devices
Subsystems (2)
cover acpi: add kernel option to skip binding drivers to certain devices
Mini series to allow fine-grained platform device ownership in virtualized environment.
Patch 1: cleanup - replace an open-coded string with an existing symbol. Patch 2: introduce the acpi.skip_ids= boot parameter.
Tested on: Linux 6.12.
Denis Mukhin (2):
acpi: Use METHOD_NAME__UID instead of open-coded _UID
acpi: bus: Introduce acpi.skip_ids= boot parameter
.../admin-guide/kernel-parameters.txt | 5 ++ drivers/acpi/acpi_processor.c | 2 +- drivers/acpi/bus.c | 60 +++++++++++++++++-- 3 files changed, 62 insertions(+), 5 deletions(-)
Signature · 1 line
2.54.0
PATCH 1/2 acpi: Use METHOD_NAME__UID instead of open-coded _UID
From: Denis Mukhin <[email protected]>
--- drivers/acpi/acpi_processor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/acpi_processor.c +1 -1
@@ -739,7 +739,7 @@ static acpi_status __init acpi_processor_ids_walk(acpi_handle handle,break ;case ACPI_TYPE_DEVICE : - status =acpi_evaluate_integer (handle,"_UID" ,NULL , &uid); + status =acpi_evaluate_integer (handle,METHOD_NAME__UID ,NULL , &uid);if (ACPI_FAILURE (status)) goto err;break ;
Signature · 1 line
2.54.0
PATCH 2/2 acpi: bus: Introduce acpi.skip_ids= boot parameter
In reply to [email protected]From: Denis Mukhin <[email protected]>
In virtualized environments it is possible that a device managed by the hypervisor or another VM is described in the ACPI tables. In these cases, binding a device driver to it can cause functional issues.
To resolve device ownership conflicts, skip enumeration of ACPI devices whose ACPI IDs match entries specified via a new boot-time parameter:
acpi.skip_ids=<HID[:UID]>[,<HID[:UID]>...]
This parameter may also be used when a single kernel image must support both bare-metal and virtualized environments - for example, when the image is shared across multiple VMs and only selected platform devices are exposed through passthrough.
Note, a single driver may support multiple devices and only a subset of those devices may require exclusion (for example, ABCD0020:00 but not ABCD0020:01). As a result, existing 'initcall_blacklist=' is not an appropriate solution to resolve the ownership conflict.
Add brief explanation for apci.skip_ids= in the kernel command line documentation.
--- .../admin-guide/kernel-parameters.txt | 5 ++ drivers/acpi/bus.c | 60 +++++++++++++++++-- 2 files changed, 61 insertions(+), 4 deletions(-)
Documentation/admin-guide/kernel-parameters.txt +5 -0
@@ -195,6 +195,11 @@ Kernel parameters ACPI firmware problems, as the system might behave erratically after having encountered a fatal ACPI error. + acpi.skip_ids= [ACPI] Skip enumeration of ACPI devices whose HID[:UID] + matches an entry in the given comma-separated list + (up to 16 entries). + Format: HID[:UID][,HID[:UID]...] + acpi_enforce_resources= [ACPI] { strict | lax | no } Check for resource conflicts between native drivers
drivers/acpi/bus.c +56 -4
88 lines not on this page · raw message
Signature · 1 line
2.54.0
Rafael J. Wysocki (Intel)
maintainerRe: [PATCH 2/2] acpi: bus: Introduce acpi.skip_ids= boot parameter
Quoted 6 lines · On Thu, Aug 13, 2026 at 4:41 AM <[email protected]> wrote:
From: Denis Mukhin <[email protected]>
In virtualized environments it is possible that a device managed by the hypervisor or another VM is described in the ACPI tables. In these cases, binding a device driver to it can cause functional issues.
Examples, please.
Quoted 4 lines
To resolve device ownership conflicts, skip enumeration of ACPI devices whose ACPI IDs match entries specified via a new boot-time parameter:
acpi.skip_ids=<HID[:UID]>[,<HID[:UID]>...]
No, we are not adding this.
Re: [PATCH 2/2] acpi: bus: Introduce acpi.skip_ids= boot parameter
Quoted 9 lines · Rafael J. Wysocki (Intel)
Quoted 6 lines · On Thu, Aug 13, 2026 at 4:41 AM <[email protected]> wrote:
From: Denis Mukhin <[email protected]>
In virtualized environments it is possible that a device managed by the hypervisor or another VM is described in the ACPI tables. In these cases, binding a device driver to it can cause functional issues.
Examples, please.
One example would be a system with two MMIO-based UARTs described in ACPI tables. Both UARTs have the same _HID, but different _UIDs. One UART reserved for the hypervisor console, another is assigned to the guest.
Both devices reported as present and same platform driver may probe both device instances.
I understand that, ideally, guest ACPI tables should omit the unassigned device or report it unavailable via _STA.
The proposed parameter was intended for configurations where the device assignment varies between boot environments while the firmware-provided ACPI description remains common.
What would be the preferred way to prevent Linux from enumerating or probing one specific _HID/_UID instance in such a configuration?
Thanks,
Denis