Re: [PATCH 1/1] cxl/edac: Fix using wrong repair type to check dram event record

From: Jonathan Cameron
Date: Tue Jun 24 2025 - 10:53:13 EST


On Fri, 20 Jun 2025 13:29:24 +0800
Li Ming <ming.li@xxxxxxxxxxxx> wrote:

> 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: 588ca944c277 ("cxl/edac: Add CXL memory device memory sparing control feature")
> Signed-off-by: Li Ming <ming.li@xxxxxxxxxxxx>
Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>