Skip to content

Commit 0a46f60

Browse files
MingLi-4davejiang
authored andcommitted
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: 588ca94 ("cxl/edac: Add CXL memory device memory sparing control feature") Signed-off-by: Li Ming <[email protected]> Reviewed-by: Shiju Jose <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Reviewed-by: Fan Ni <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Dave Jiang <[email protected]>
1 parent 3c70ec7 commit 0a46f60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cxl/core/edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ cxl_mem_get_rec_dram(struct cxl_memdev *cxlmd,
13231323
attrbs.bank = ctx->bank;
13241324
break;
13251325
case EDAC_REPAIR_RANK_SPARING:
1326-
attrbs.repair_type = CXL_BANK_SPARING;
1326+
attrbs.repair_type = CXL_RANK_SPARING;
13271327
break;
13281328
default:
13291329
return NULL;

0 commit comments

Comments
 (0)