diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2016-04-18 11:26:26 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-04-18 11:26:26 -0400 |
commit | dfc4f59d901bf72f93280b7c142c8ad846359c6f (patch) | |
tree | b11e9831ef27eea5b76e8c06f9c1b66da5865331 | |
parent | bfaddd9fc8ac048b99475f000dbef6f08297417f (diff) | |
download | linux-dfc4f59d901bf72f93280b7c142c8ad846359c6f.tar.bz2 |
drm/radeon: print a message if ATPX dGPU power control is missing
It will help identify problematic boards.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_atpx_handler.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atpx_handler.c b/drivers/gpu/drm/radeon/radeon_atpx_handler.c index 56482e35d43e..95f4fea89302 100644 --- a/drivers/gpu/drm/radeon/radeon_atpx_handler.c +++ b/drivers/gpu/drm/radeon/radeon_atpx_handler.c @@ -143,7 +143,10 @@ static int radeon_atpx_validate(struct radeon_atpx *atpx) { /* make sure required functions are enabled */ /* dGPU power control is required */ - atpx->functions.power_cntl = true; + if (atpx->functions.power_cntl == false) { + printk("ATPX dGPU power cntl not present, forcing\n"); + atpx->functions.power_cntl = true; + } if (atpx->functions.px_params) { union acpi_object *info; |