Skip to content

Commit 0ad875f

Browse files
qzhuo2aegl
authored andcommitted
EDAC/igen6: Fix conversion of system address to physical memory address
The conversion of system address to physical memory address (as viewed by the memory controller) by igen6_edac is incorrect when the system address is above the TOM (Total amount Of populated physical Memory) for Elkhart Lake and Ice Lake (Neural Network Processor). Fix this conversion. Fixes: 10590a9 ("EDAC/igen6: Add EDAC driver for Intel client SoCs using IBECC") Signed-off-by: Qiuxu Zhuo <[email protected]> Signed-off-by: Tony Luck <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/stable/20240814061011.43545-1-qiuxu.zhuo%40intel.com
1 parent 8400291 commit 0ad875f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/edac/igen6_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ static u64 ehl_err_addr_to_imc_addr(u64 eaddr, int mc)
316316
if (igen6_tom <= _4GB)
317317
return eaddr + igen6_tolud - _4GB;
318318

319-
if (eaddr < _4GB)
319+
if (eaddr >= igen6_tom)
320320
return eaddr + igen6_tolud - igen6_tom;
321321

322322
return eaddr;

0 commit comments

Comments
 (0)