Explorar el Código

drm/amdgpu: enable iceland powerplay manually

It's able to enable iceland powerplay manually via the module
parameter. The default state is disabled.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Huang Rui hace 9 años
padre
commit
54c825a916
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c

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

@@ -112,13 +112,15 @@ static int amdgpu_pp_early_init(void *handle)
 	case CHIP_STONEY:
 	case CHIP_STONEY:
 		adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
 		adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
 		break;
 		break;
+	case CHIP_TOPAZ:
+		adev->pp_enabled = (amdgpu_powerplay > 0) ? true : false;
+		break;
 	/* These chips don't have powerplay implemenations */
 	/* These chips don't have powerplay implemenations */
 	case CHIP_BONAIRE:
 	case CHIP_BONAIRE:
 	case CHIP_HAWAII:
 	case CHIP_HAWAII:
 	case CHIP_KABINI:
 	case CHIP_KABINI:
 	case CHIP_MULLINS:
 	case CHIP_MULLINS:
 	case CHIP_KAVERI:
 	case CHIP_KAVERI:
-	case CHIP_TOPAZ:
 	default:
 	default:
 		adev->pp_enabled = false;
 		adev->pp_enabled = false;
 		break;
 		break;