Browse Source

drm/amd/powerplay: enable powerplay as default on CZ/ST

Enable powerplay as default on Carrizo and Stoney. And it can be
disabled with amdgpu.powerplay=0.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Cc: Rex Zhu <Rex.Zhu@amd.com>
Cc: Flora Cui <Flora.Cui@amd.com>
Cc: Ken Wang <Qingqing.Wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Huang Rui 9 years ago
parent
commit
fad2af195f
1 changed files with 1 additions and 3 deletions
  1. 1 3
      drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c

+ 1 - 3
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c

@@ -109,11 +109,9 @@ static int amdgpu_pp_early_init(void *handle)
 	case CHIP_TONGA:
 	case CHIP_TONGA:
 	case CHIP_FIJI:
 	case CHIP_FIJI:
 	case CHIP_TOPAZ:
 	case CHIP_TOPAZ:
-		adev->pp_enabled = (amdgpu_powerplay == 0) ? false : true;
-		break;
 	case CHIP_CARRIZO:
 	case CHIP_CARRIZO:
 	case CHIP_STONEY:
 	case CHIP_STONEY:
-		adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
+		adev->pp_enabled = (amdgpu_powerplay == 0) ? false : true;
 		break;
 		break;
 	/* These chips don't have powerplay implemenations */
 	/* These chips don't have powerplay implemenations */
 	case CHIP_BONAIRE:
 	case CHIP_BONAIRE: