Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1d1a772 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu/gmc9: disable partial wr rmw if ECC is not enabled



The vbios mistakenly sets this bit on some boards without ECC.
This can lead to reduced performance in some workloads.  Disable
the bit if the board does not have ECC.

Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: default avatarJunwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1ca2393b
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -675,6 +675,7 @@ static int gmc_v9_0_late_init(void *handle)
			DRM_INFO("ECC is active.\n");
			DRM_INFO("ECC is active.\n");
		} else if (r == 0) {
		} else if (r == 0) {
			DRM_INFO("ECC is not present.\n");
			DRM_INFO("ECC is not present.\n");
			adev->df_funcs->enable_ecc_force_par_wr_rmw(adev, false);
		} else {
		} else {
			DRM_ERROR("gmc_v9_0_ecc_available() failed. r: %d\n", r);
			DRM_ERROR("gmc_v9_0_ecc_available() failed. r: %d\n", r);
			return r;
			return r;