]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c15f2f10c3e64cbc0490c953d30758ceabc82ae
tree52d57576401d9f5f0d838752139fd61db3455914
parent1b056687328fc4bc2aa2cf418a943bee0a308679
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