mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-11 00:04:33 +08:00
drm/amdgpu: No need support vcn decode
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>
This commit is contained in:
parent
2f2941324c
commit
ad31da434e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user