Commit 2c060ca1 authored by Jordan Lazare's avatar Jordan Lazare Committed by Tim Gardner

drm/amdgpu: Allow the driver to load if amdgpu.powerplay=1 on asics without powerplay support

BugLink: http://bugs.launchpad.net/bugs/1546572

Avoid setting pp_enabled if there is no powerplay implementation.
Signed-off-by: default avatarJordan Lazare <Jordan.Lazare@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 3466904d)
Signed-off-by: default avatarAlberto Milone <alberto.milone@canonical.com>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent cda2df4a
...@@ -98,13 +98,24 @@ static int amdgpu_pp_early_init(void *handle) ...@@ -98,13 +98,24 @@ static int amdgpu_pp_early_init(void *handle)
#ifdef CONFIG_DRM_AMD_POWERPLAY #ifdef CONFIG_DRM_AMD_POWERPLAY
switch (adev->asic_type) { switch (adev->asic_type) {
case CHIP_TONGA: case CHIP_TONGA:
case CHIP_FIJI: case CHIP_FIJI:
adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false; adev->pp_enabled = (amdgpu_powerplay == 0) ? false : true;
break; break;
default: case CHIP_CARRIZO:
adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false; case CHIP_STONEY:
break; adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
break;
/* These chips don't have powerplay implemenations */
case CHIP_BONAIRE:
case CHIP_HAWAII:
case CHIP_KABINI:
case CHIP_MULLINS:
case CHIP_KAVERI:
case CHIP_TOPAZ:
default:
adev->pp_enabled = false;
break;
} }
#else #else
adev->pp_enabled = false; adev->pp_enabled = false;
......
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