Commit 47771669 authored by Alex Deucher's avatar Alex Deucher

drm/radeon/atpx: check for ATIF dGPU wake for display events support

Some ATPX laptops implement special circuitry to generate
display hotplug events via ACPI when the dGPU is powered off.
Check if this is supported.
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1b0f568d
...@@ -29,6 +29,7 @@ struct radeon_atpx { ...@@ -29,6 +29,7 @@ struct radeon_atpx {
acpi_handle handle; acpi_handle handle;
struct radeon_atpx_functions functions; struct radeon_atpx_functions functions;
bool is_hybrid; bool is_hybrid;
bool dgpu_req_power_for_displays;
}; };
static struct radeon_atpx_priv { static struct radeon_atpx_priv {
...@@ -72,6 +73,10 @@ bool radeon_is_atpx_hybrid(void) { ...@@ -72,6 +73,10 @@ bool radeon_is_atpx_hybrid(void) {
return radeon_atpx_priv.atpx.is_hybrid; return radeon_atpx_priv.atpx.is_hybrid;
} }
bool radeon_atpx_dgpu_req_power_for_displays(void) {
return radeon_atpx_priv.atpx.dgpu_req_power_for_displays;
}
/** /**
* radeon_atpx_call - call an ATPX method * radeon_atpx_call - call an ATPX method
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment