diff options
| author | Alex Deucher <alexander.deucher@amd.com> | 2016-04-25 13:14:47 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2016-04-27 12:27:09 -0400 |
| commit | c8791a13d28161a1fa1138112dfe1f986a1358cf (patch) | |
| tree | 2929ea6f50186474a4a0617ba53af876e2504024 /drivers/gpu | |
| parent | e9bef455af8eb0e837e179aab8988ae2649fd8d3 (diff) | |
drm/amdgpu: 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>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c index fa948dcbdd5d..35a1248aaa77 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | |||
| @@ -144,7 +144,10 @@ static int amdgpu_atpx_validate(struct amdgpu_atpx *atpx) | |||
| 144 | { | 144 | { |
| 145 | /* make sure required functions are enabled */ | 145 | /* make sure required functions are enabled */ |
| 146 | /* dGPU power control is required */ | 146 | /* dGPU power control is required */ |
| 147 | atpx->functions.power_cntl = true; | 147 | if (atpx->functions.power_cntl == false) { |
| 148 | printk("ATPX dGPU power cntl not present, forcing\n"); | ||
| 149 | atpx->functions.power_cntl = true; | ||
| 150 | } | ||
| 148 | 151 | ||
| 149 | if (atpx->functions.px_params) { | 152 | if (atpx->functions.px_params) { |
| 150 | union acpi_object *info; | 153 | union acpi_object *info; |
