]> 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)
commitaaae08defbf1ed4a961018a445838ca013caecba
tree52d57576401d9f5f0d838752139fd61db3455914
parent8b691fc1b15a6f461e4a43dee217fe616bf0cb2a
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