drm/amd/powerplay: avoid disabling ECC if RAS is enabled for VEGA20
authorLe Ma <le.ma@amd.com>
Fri, 11 Oct 2019 10:37:49 +0000 (18:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:44:07 +0000 (16:44 +0100)
commita6d47415fcd9472e2f02da9d2194a88845751031
tree4a09738b3a9df65f445867257f977ba99a4b0f96
parent48df48dc17b475c3664bc91f77f6641688b671d0
drm/amd/powerplay: avoid disabling ECC if RAS is enabled for VEGA20

[ Upstream commit df9331e561dab0a451cbd6a679ee88a95f306fd6 ]

Program THM_BACO_CNTL.SOC_DOMAIN_IDLE=1 will tell VBIOS to disable ECC when
BACO exit. This can save BACO exit time by PSP on none-ECC SKU. Drop the setting
for ECC supported SKU.

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_baco.c