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

Commit a135cef7 authored by Borislav Petkov's avatar Borislav Petkov
Browse files

amd64_edac: Disable DRAM ECC injection on K8



K8 does not allow for an atomic RMW to a cacheline as F10h does so
disable the error injection interface for it.

Signed-off-by: default avatarBorislav Petkov <borislav.petkov@amd.com>
parent 39094443
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2466,6 +2466,7 @@ static void set_mc_sysfs_attrs(struct mem_ctl_info *mci)
	for (; i < ARRAY_SIZE(amd64_dbg_attrs); i++)
		sysfs_attrs[i] = amd64_dbg_attrs[i];

	if (boot_cpu_data.x86 >= 0x10)
		for (j = 0; j < ARRAY_SIZE(amd64_inj_attrs); j++, i++)
			sysfs_attrs[i] = amd64_inj_attrs[j];