Skip to content
Commit 0a46f60a authored by Li Ming's avatar Li Ming Committed by Dave Jiang
Browse files

cxl/edac: Fix using wrong repair type to check dram event record



cxl_find_rec_dram() is used to find a DRAM event record based on the
inputted attributes. Different repair_type of the inputted attributes
will check the DRAM event record in different ways.
When EDAC driver is performing a memory rank sparing, it should use
CXL_RANK_SPARING rather than CXL_BANK_SPARING as repair_type for DRAM
event record checking.

Fixes: 588ca944 ("cxl/edac: Add CXL memory device memory sparing control feature")
Signed-off-by: default avatarLi Ming <ming.li@zohomail.com>
Reviewed-by: Shiju Jose's avatarShiju Jose <shiju.jose@huawei.com>
Reviewed-by: default avatarJonathan Cameron <jonathan.cameron@huawei.com>
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Reviewed-by: default avatarFan Ni <fan.ni@samsung.com>
Link: https://patch.msgid.link/20250620052924.138892-1-ming.li@zohomail.com


Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
parent 3c70ec71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment