Skip to contentSkip to conversation

acpi resource reservation

DISCUSSION matthieu castet 2 participants 2 messages Sep 24, 2008 ACPI

lore
Share & tools
lore
#0 lore raw

Hi,

I wonder why acpi doesn't use request_region/request_mem_region on the resource used by the interpreter.

For example ioport resource are declared in dsdt with OperationRegion.

A good place to do that could be acpi_os_validate_address.

I believe by doing that acpi will avoid that other drivers try to use the same r esource. And it will avoid the acpi_check_region hack that need to be added in e ach driver instead of relying with the standard request_region/request_mem_region mecanism.

Matthieu

#1 lore raw
Quoted 4 lines · matthieu castet

I believe by doing that acpi will avoid that other drivers try to use the same r esource. And it will avoid the acpi_check_region hack that need to be added in e ach driver instead of relying with the standard request_region/request_mem_region mecanism.

It was attempted, but you hit a huge number of cases where ACPI has reserved resources that are required by other drivers. We could whitelist them, but it doesn't seem to buy a great deal.

Signature · 1 line
Matthew Garrett | [email protected]