]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/gfx10: set SH_MEM_CONFIG.INITIAL_INST_PREFETCH
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 16 Jul 2019 18:11:22 +0000 (13:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Jul 2019 19:49:57 +0000 (14:49 -0500)
commit69a82f3408147f9a568c5f0a279813f54e009e91
tree29f01c6dc00d3d8e5b8266d489b5cd56765aa88c
parent575d0faaed105950be8a92051399cd8d7fee8c3e
drm/amdgpu/gfx10: set SH_MEM_CONFIG.INITIAL_INST_PREFETCH

Prefetch mode 0 is not supported and can lead to hangs with certain very
specific code patterns. Set a sound prefetch mode for all VMIDs rather
than forcing all shaders to set the prefetch mode at the beginning.

Reduce code duplication a bit while we're at it. Note that the 64-bit
address mode enum and the retry all enum are both 0, so the only
functional change is in the INITIAL_INST_PREFETCH field.

Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c