drm/radeon: print a message if ATPX dGPU power control is missing
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Apr 2016 15:26:26 +0000 (11:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Apr 2016 15:26:26 +0000 (11:26 -0400)
It will help identify problematic boards.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_atpx_handler.c

index 56482e35d43e334d7b2a8bc170a241f4a5643d96..95f4fea893021cb8f233244404fed6878742dd3b 100644 (file)
@@ -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;
This page took 0.040203 seconds and 5 git commands to generate.