]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: set COMPUTE_PGM_RSRC1 for SGPR/VGPR clearing shaders
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 12 Apr 2018 14:34:19 +0000 (16:34 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 25 Apr 2018 03:19:57 +0000 (22:19 -0500)
commite693ccf4c120db1a4113f40e340b634dc27e2884
treeb708625a4b942dbae4028c465076a18006faa070
parentb4eed380aee4bbe3a2e93c144845a0695d2bb08d
drm/amdgpu: set COMPUTE_PGM_RSRC1 for SGPR/VGPR clearing shaders

Otherwise, the SQ may skip some of the register writes, or shader waves may
be allocated where we don't expect them, so that as a result we don't actually
reset all of the register SRAMs. This can lead to spurious ECC errors later on
if a shader uses an uninitialized register.

Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c