drm/amdgpu: disable DRAM memory training when GECC is enabled
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 7 Jun 2021 05:22:08 +0000 (13:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Jun 2021 20:06:21 +0000 (16:06 -0400)
commit3a07101b0405c6137babd5f50ca6bdf2696d91c9
tree52d57576401d9f5f0d838752139fd61db3455914
parent8e6e054da6c72210966c82f7d3e7a3d014bd0b39
drm/amdgpu: disable DRAM memory training when GECC is enabled

GECC and G6 mem training are mutually exclusive
functionalities. VBIOS/PSP will set the flag
(BOOT_CFG_FEATURE_TWO_STAGE_DRAM_TRAINING) in
runtime database to indicate whether dram memory
training need to be disabled or not.

For Navi1x families, two stage mem training is always
enabled.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: John Clements <john.clements@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h