cper.c (bdae79651453df0bca20963fc2ab970146ef2a37) cper.c (ed27b5df3877458eb24615fd9c202178660db009)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * UEFI Common Platform Error Record (CPER) support
4 *
5 * Copyright (C) 2010, Intel Corp.
6 * Author: Huang Ying <ying.huang@intel.com>
7 *
8 * CPER is the format used to describe platform hardware error by

--- 223 unchanged lines hidden (view full) ---

232 case 24: return "Detection of a PATH_ERROR";
233 case 25: return "Bus operation timeout";
234 case 26: return "A read was issued to data that has been poisoned";
235 default: return "Reserved";
236 }
237}
238EXPORT_SYMBOL_GPL(cper_mem_err_status_str);
239
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * UEFI Common Platform Error Record (CPER) support
4 *
5 * Copyright (C) 2010, Intel Corp.
6 * Author: Huang Ying <ying.huang@intel.com>
7 *
8 * CPER is the format used to describe platform hardware error by

--- 223 unchanged lines hidden (view full) ---

232 case 24: return "Detection of a PATH_ERROR";
233 case 25: return "Bus operation timeout";
234 case 26: return "A read was issued to data that has been poisoned";
235 default: return "Reserved";
236 }
237}
238EXPORT_SYMBOL_GPL(cper_mem_err_status_str);
239
240static int cper_mem_err_location(struct cper_mem_err_compact *mem, char *msg)
240int cper_mem_err_location(struct cper_mem_err_compact *mem, char *msg)
241{
242 u32 len, n;
243
244 if (!msg)
245 return 0;
246
247 n = 0;
248 len = CPER_REC_LEN;

--- 37 unchanged lines hidden (view full) ---

286 mem->target_id);
287 if (mem->validation_bits & CPER_MEM_VALID_CHIP_ID)
288 n += scnprintf(msg + n, len - n, "chip_id: %d ",
289 mem->extended >> CPER_MEM_CHIP_ID_SHIFT);
290
291 return n;
292}
293
241{
242 u32 len, n;
243
244 if (!msg)
245 return 0;
246
247 n = 0;
248 len = CPER_REC_LEN;

--- 37 unchanged lines hidden (view full) ---

286 mem->target_id);
287 if (mem->validation_bits & CPER_MEM_VALID_CHIP_ID)
288 n += scnprintf(msg + n, len - n, "chip_id: %d ",
289 mem->extended >> CPER_MEM_CHIP_ID_SHIFT);
290
291 return n;
292}
293
294static int cper_dimm_err_location(struct cper_mem_err_compact *mem, char *msg)
294int cper_dimm_err_location(struct cper_mem_err_compact *mem, char *msg)
295{
296 u32 len, n;
297 const char *bank = NULL, *device = NULL;
298
299 if (!msg || !(mem->validation_bits & CPER_MEM_VALID_MODULE_HANDLE))
300 return 0;
301
302 len = CPER_REC_LEN;

--- 375 unchanged lines hidden ---
295{
296 u32 len, n;
297 const char *bank = NULL, *device = NULL;
298
299 if (!msg || !(mem->validation_bits & CPER_MEM_VALID_MODULE_HANDLE))
300 return 0;
301
302 len = CPER_REC_LEN;

--- 375 unchanged lines hidden ---