]> 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>
Tue, 27 Sep 2022 22:02:58 +0000 (18:02 -0400)
commit02f2df9cf64c9de58896b18aa05c9e152b39a5d0
treef8cdd0fa3818f93432ee73db759a9424d5f037f2
parent15922932c8390f61e5720becbfd593b97ee8ff49
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