|
@@ -848,7 +848,10 @@ static int uvd_v4_2_set_powergating_state(void *handle,
|
|
|
* revisit this when there is a cleaner line between
|
|
|
* the smc and the hw blocks
|
|
|
*/
|
|
|
- struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
|
|
+ struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
|
|
+
|
|
|
+ if (!(adev->pg_flags & AMDGPU_PG_SUPPORT_UVD))
|
|
|
+ return 0;
|
|
|
|
|
|
if (state == AMD_PG_STATE_GATE) {
|
|
|
uvd_v4_2_stop(adev);
|