[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211130131648.85860-1-xueshuai@linux.alibaba.com>
Date: Tue, 30 Nov 2021 21:16:48 +0800
From: Shuai Xue <xueshuai@...ux.alibaba.com>
To: mchehab@...nel.org, bp@...en8.de, tony.luck@...el.com,
james.morse@....com, rric@...nel.org, linux-edac@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: xueshuai@...ux.alibaba.com, zhangliguang@...ux.alibaba.com,
zhuo.song@...ux.alibaba.com
Subject: [PATCH] edac,ghes,cper: Add device to Memory Error Record
If Bit 7 of Validation Bits is valid, the device number of the memory
associated with errors should be reported to Memory Error Record.
Signed-off-by: Shuai Xue <xueshuai@...ux.alibaba.com>
---
drivers/edac/ghes_edac.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c
index a918ca93e4f7..cf98b270d6f7 100644
--- a/drivers/edac/ghes_edac.c
+++ b/drivers/edac/ghes_edac.c
@@ -378,6 +378,8 @@ void ghes_edac_report_mem_error(int sev, struct cper_sec_mem_err *mem_err)
if (mem_err->validation_bits & CPER_MEM_VALID_BANK_ADDRESS)
p += sprintf(p, "bank_address:%d ",
mem_err->bank & CPER_MEM_BANK_ADDRESS_MASK);
+ if (mem_err->validation_bits & CPER_MEM_VALID_DEVICE)
+ p += sprintf(p, "device:%d ", mem_err->device);
if (mem_err->validation_bits & (CPER_MEM_VALID_ROW | CPER_MEM_VALID_ROW_EXT)) {
u32 row = mem_err->row;
--
2.20.1.12.g72788fdb
Powered by blists - more mailing lists