]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix no full coverage issue for gprs initialization
authorDennis Li <Dennis.Li@amd.com>
Tue, 27 Apr 2021 14:21:03 +0000 (22:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Apr 2021 03:36:05 +0000 (23:36 -0400)
commit1c4c01318536f86acc4b5073af01fcdaae75d7b5
treefddc3ae9b30160ec7f8b087c540f2a584492b6af
parentfd875388bce1a0214c0161df8f20f803ad198816
drm/amdgpu: fix no full coverage issue for gprs initialization

The wave's number per simd in aldebaran is changed to 8, so it is
impossible to use old algorithm to initiate all sgprs with one
threadgroup. The new algorithm firstly use three threadgroups to
initiate most sgprs simultaneously and then use another threadgroup with
4 waves to cover other uninitiated sgprs.

v2:
Add more description about the new algorithm to clear sgprs and add some
comment for shader binaries

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/amdgpu_ib.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c