OSDN Git Service

drm/amdgpu/sriov: add ring_stop before ring_create in psp v11 code
authorJack Zhang <Jack.Zhang1@amd.com>
Tue, 10 Sep 2019 04:29:14 +0000 (12:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2019 15:11:28 +0000 (10:11 -0500)
commit51c0f58e9f6af3a387d14608033e6796a7ad90ee
tree63288c67f70132736148b07abe6cc2d52452d528
parentf7e3a5776fa6d2d4376c59c7e1d5b3454745c865
drm/amdgpu/sriov: add ring_stop before ring_create in psp v11 code

psp  v11 code missed ring stop in ring create function(VMR)
while psp v3.1 code had the code. This will cause VM destroy1
fail and psp ring create fail.

For SIOV-VF, ring_stop should not be deleted in ring_create
function.

Signed-off-by: Jack Zhang <Jack.Zhang1@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c