mbox series

[v2,00/14] rasdaemon: cxl: Update CXL event logging and recording to CXL spec rev 3.1

Message ID 20250110122641.1668-1-shiju.jose@huawei.com
Headers show
Series rasdaemon: cxl: Update CXL event logging and recording to CXL spec rev 3.1 | expand

Message

Shiju Jose Jan. 10, 2025, 12:26 p.m. UTC
From: Shiju Jose <shiju.jose@huawei.com>

1. Update CXL event logging and recording for CXL spec rev 3.1 and for the
following and corresponding kernel CXL trace events changes.
https://lore.kernel.org/all/20250110115556.1654-1-shiju.jose@huawei.com/

2. Add following fixes.
 - Fix logging of memory event type field of DRAM trace event.
 - Fix mismatch in 'region' field's name with that in kernel DRAM trace
   event.
 - Fix for parsing error when trace event's format file is
    larger than PAGE_SIZE 

Shiju Jose (14):
  rasdaemon: Fix for parsing error when trace event's format file is
    larger than PAGE_SIZE
  rasdaemon: cxl: Fix logging of memory event type of DRAM trace event
  rasdaemon: cxl: Fix mismatch in region field's name with kernel DRAM
    trace event
  rasdaemon: cxl: Add automatic indexing for storing CXL fields in
    SQLite database
  rasdaemon: cxl: Update common event to CXL spec rev 3.1
  rasdaemon: cxl: Add Component Identifier formatting for CXL spec rev
    3.1
  rasdaemon: cxl: Update CXL general media event to CXL spec rev 3.1
  rasdaemon: cxl: Update CXL DRAM event to CXL spec rev 3.1
  rasdaemon: cxl: Update memory module event to CXL spec rev 3.1
  rasdaemon: ras-mc-ctl: Fix logging of memory event type in CXL DRAM
    error table
  rasdaemon: ras-mc-ctl: Update logging of common event data to align
    with CXL spec rev 3.1
  rasdaemon: ras-mc-ctl: Update logging of CXL general media event data
    to align with CXL spec rev 3.1
  rasdaemon: ras-mc-ctl: Update logging of CXL DRAM event data to align
    with CXL spec rev 3.1
  rasdaemon: ras-mc-ctl: Update logging of CXL memory module data to
    align with CXL spec rev 3.1

Changes
V1 -> V2
1. Fixed follwoing comments from Jonathan on V1,
   - Return negative error code in the patch
     rasdaemon: cxl: Add automatic indexing for storing CXL fields in SQLite database
   - Removed line break in the patch description rasdaemon: cxl: Fix mismatch
     in region field's name with kernel DRAM trace event.
2. Added fix for parsing error when trace event's format file is
    larger than PAGE_SIZE.
3. Rebased to latest code.

 ras-cxl-handler.c  | 262 ++++++++++++++++++++++++++++++++++++++++++---
 ras-events.c       |  21 ++--
 ras-record.c       | 192 ++++++++++++++++++++++-----------
 ras-record.h       |  21 ++++
 ras-report.c       |  30 ++++--
 util/ras-mc-ctl.in | 190 +++++++++++++++++++++++++++-----
 6 files changed, 600 insertions(+), 116 deletions(-)