projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f29413
)
drm/amdgpu: No need support vcn decode
author
Emily Deng
<Emily.Deng@amd.com>
Thu, 26 Mar 2020 05:41:57 +0000
(13:41 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 1 Apr 2020 18:44:43 +0000
(14:44 -0400)
As no need to support vcn decode feature, so disable the
ring for SR-IOV.
Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
b/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
index
ec8091a
..
febd4c2
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
@@
-223,6
+223,10
@@
static int vcn_v2_0_hw_init(void *handle)
if (r)
goto done;
+ //Disable vcn decode for sriov
+ if (amdgpu_sriov_vf(adev))
+ ring->sched.ready = false;
+
for (i = 0; i < adev->vcn.num_enc_rings; ++i) {
ring = &adev->vcn.inst->ring_enc[i];
r = amdgpu_ring_test_helper(ring);