]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Correct the position in patch_cond_exec
authorJiadong.Zhu <Jiadong.Zhu@amd.com>
Thu, 15 Sep 2022 07:19:20 +0000 (15:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:41:46 +0000 (09:41 -0400)
commit9c167715dab83b07e19d115ec93f2ad0203b6f22
tree4cc2537573469c6b2ad58fc84e39967feacc20dd
parent908d63cca0dd016c1205a36250bb188d2c6e39c9
drm/amdgpu: Correct the position in patch_cond_exec

The current position calulated in gfx_v9_0_ring_emit_patch_cond_exec
underflows when the wptr is divisible by ring->buf_mask + 1.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jiadong.Zhu <Jiadong.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c