diff options
author | 2019-07-16 13:11:22 -0500 | |
---|---|---|
committer | 2019-07-16 14:49:57 -0500 | |
commit | 08473888e09b0136ceb4d65784b02b537d977a2a (patch) | |
tree | 29f01c6dc00d3d8e5b8266d489b5cd56765aa88c /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c | |
parent | drm/amd/powerplay: enable fw ctf,apcc dfll and gfx ss (diff) | |
download | linux-dev-08473888e09b0136ceb4d65784b02b537d977a2a.tar.xz linux-dev-08473888e09b0136ceb4d65784b02b537d977a2a.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions