OSDN Git Service

drm/amdgpu: add synchronization among waves in the same threadgroup
authorDennis Li <Dennis.Li@amd.com>
Sat, 8 May 2021 09:10:24 +0000 (17:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:29:17 +0000 (22:29 -0400)
commit1acbb613c445e35037a1ddd416cd697fc76143b5
tree9ef1f0311ed2d6cc30342344c29016dac24f3ff3
parentcbd4945ca5b88ed015ab61e70f788de1a71bf9cc
drm/amdgpu: add synchronization among waves in the same threadgroup

It is possible that the previous waves have exited before others are
created, so the other waves maybe reuse pyhsical resouces left by
previous ones. Therefore add barrier instruction to synchronize waves within
the same threadgroup.

Signed-off-by: Dennis Li <Dennis.Li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c