projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm/amdgpu: handle uvd pg flags properly
[deliverable/linux.git]
/
drivers
/
gpu
/
drm
/
amd
/
amdgpu
/
uvd_v5_0.c
diff --git
a/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
b/drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
index 38864f5629814c7782682b4b8436b67e30aede3a..b4623deac8eff6be287bd3d0c1fd5db0809f472f 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c
@@
-789,6
+789,9
@@
static int uvd_v5_0_set_powergating_state(void *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_v5_0_stop(adev);
return 0;
This page took
0.023774 seconds
and
5
git commands to generate.