]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
EDAC/amd64: Set grain per DIMM
authorYazen Ghannam <yazen.ghannam@amd.com>
Tue, 22 Oct 2019 20:35:14 +0000 (20:35 +0000)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 14:16:05 +0000 (08:16 -0600)
commit522e0f2643386ac69d6d0e2e1db1bf7a7753c9d6
tree772674256acb29d4ddfc01da23a2980905e025a5
parent59ab6fc6360626a071945f3c5bfcf7cd4c659841
EDAC/amd64: Set grain per DIMM

BugLink: https://bugs.launchpad.net/bugs/1858428
[ Upstream commit 466503d6b1b33be46ab87c6090f0ade6c6011cbc ]

The following commit introduced a warning on error reports without a
non-zero grain value.

  3724ace582d9 ("EDAC/mc: Fix grain_bits calculation")

The amd64_edac_mod module does not provide a value, so the warning will
be given on the first reported memory error.

Set the grain per DIMM to cacheline size (64 bytes). This is the current
recommendation.

Fixes: 3724ace582d9 ("EDAC/mc: Fix grain_bits calculation")
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: "linux-edac@vger.kernel.org" <linux-edac@vger.kernel.org>
Cc: James Morse <james.morse@arm.com>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Robert Richter <rrichter@marvell.com>
Cc: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20191022203448.13962-7-Yazen.Ghannam@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/edac/amd64_edac.c