Commit 74b2d582 authored by Yazen Ghannam's avatar Yazen Ghannam Committed by Pu Wen
Browse files

EDAC/amd64: Set memory type per DIMM

mainline inclusion
from mainline-v5.18-rc1
commit 75aeaaf2
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I7DX6V
CVE: NA

Reference: https://git.kernel.org/torvalds/c/75aeaaf23def967853c8d1cfb513a6842dbc232e



---------------------------

commit 75aeaaf2 upstream.

Current AMD systems allow mixing of DIMM types within a system. However,
DIMMs within a channel, i.e. managed by a single Unified Memory
Controller (UMC), must be of the same type.

Handle this possible configuration by checking and setting the memory
type for each individual "UMC" structure.

Signed-off-by: default avatarYazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Reviewed-by: default avatarWilliam Roche <william.roche@oracle.com>
Link: https://lore.kernel.org/r/20220202144307.2678405-2-yazen.ghannam@amd.com


[fix conflict during backport]
Signed-off-by: default avatarPu Wen <puwen@hygon.cn>
parent 8719fade
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment