drm/amdgpu: print a message if ATPX dGPU power control is missing
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Apr 2016 17:14:47 +0000 (13:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 Apr 2016 16:27:09 +0000 (12:27 -0400)
It will help identify problematic boards.

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

index fa948dcbdd5df368789d4a67621c95dc109deee7..35a1248aaa7778a04fa64957d4d2b65a3911ab9c 100644 (file)
@@ -144,7 +144,10 @@ static int amdgpu_atpx_validate(struct amdgpu_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.025724 seconds and 5 git commands to generate.