Commit 0e5ee33d authored by James Zhu's avatar James Zhu Committed by Alex Deucher

drm/amdgpu:Correct max uvd handles

Max uvd handles should use adev->uvd.max_handles instead of
AMDGPU_MAX_UVD_HANDLES here.
Signed-off-by: default avatarJames Zhu <James.Zhu@amd.com>
Reviewed-by: default avatarLeo Liu <leo.liu@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent abca2400
...@@ -303,7 +303,7 @@ int amdgpu_uvd_suspend(struct amdgpu_device *adev) ...@@ -303,7 +303,7 @@ int amdgpu_uvd_suspend(struct amdgpu_device *adev)
if (atomic_read(&adev->uvd.handles[i])) if (atomic_read(&adev->uvd.handles[i]))
break; break;
if (i == AMDGPU_MAX_UVD_HANDLES) if (i == adev->uvd.max_handles)
return 0; return 0;
size = amdgpu_bo_size(adev->uvd.vcpu_bo); size = amdgpu_bo_size(adev->uvd.vcpu_bo);
......
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