]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: reset psp ring wptr during ring_create
authorYuBiao Wang <YuBiao.Wang@amd.com>
Wed, 9 Jun 2021 02:41:34 +0000 (10:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Jun 2021 20:03:26 +0000 (16:03 -0400)
commit11f0bc44bf4a11aa57832706b36070f389f0e1b8
treed2567ff439d937fc023b694d28e6d2598acc980e
parent461776c0d59491154b5791c7d6b94d9fd73a5fd1
drm/amdgpu: reset psp ring wptr during ring_create

[Why]
psp ring wptr is not initialized properly in ring_create,
which would lead to psp failure after several gpu reset.

[How]
Set ring_wptr to zero in psp_ring_create.

Signed-off-by: YuBiao Wang <YuBiao.Wang@amd.com>
Reviewed-by: Horace Chen <horace.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c