public inbox for linux-efi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/7] acpi/ghes, cper, cxl: Process CXL CPER Protocol errors
@ 2024-11-19  0:39 Smita Koralahalli
  2024-11-19  0:39 ` [PATCH v3 1/7] efi/cper, cxl: Prefix protocol error struct and function names with cxl_ Smita Koralahalli
                   ` (6 more replies)
  0 siblings, 7 replies; 25+ messages in thread
From: Smita Koralahalli @ 2024-11-19  0:39 UTC (permalink / raw)
  To: linux-efi, linux-kernel, linux-cxl
  Cc: Ard Biesheuvel, Alison Schofield, Vishal Verma, Ira Weiny,
	Dan Williams, Jonathan Cameron, Yazen Ghannam, Terry Bowman,
	Smita Koralahalli

This patchset adds logging support for CXL CPER endpoint and port protocol
errors.

The first 5 patches update the existing codebase to support CXL CPER
Protocol error reporting.

The last 2 patches introduce recognizing and reporting CXL CPER Protocol
errors.

Should be based on top of:
https://lore.kernel.org/linux-cxl/20241113215429.3177981-1-terry.bowman@amd.com

Link to v2:
https://lore.kernel.org/linux-cxl/20241001005234.61409-1-Smita.KoralahalliChannabasappa@amd.com/

Changes in v2 -> v3:
[Dan]: Define a new workqueue for CXL CPER Protocol errors and avoid
reusing existing workqueue which handles CXL CPER events.
[Dan] Update function and struct names.
[Ira] Don't define common function get_cxl_devstate().
[Dan] Use switch cases rather than defining array of structures.
[Dan] Pass the entire cxl_cper_prot_err struct for CXL subsystem.
[Dan] Use pr_err_ratelimited().
[Dan] Use AER_ severities directly. Don't define CXL_ severities.
[Dan] Limit either to Device ID or Agent Info check.
[Dan] Validate size of RAS field matches expectations.

Changes in v2 -> v1:
[Jonathan] Refactor code for trace support. Rename get_cxl_dev()
to get_cxl_devstate().
[Jonathan] Cleanups for get_cxl_devstate().
[Alison, Jonathan]: Define array of structures for Device ID and Serial
number comparison.
[Dave] p_err -> rec/p_rec.
[Jonathan] Remove pr_warn.

Smita Koralahalli (7):
  efi/cper, cxl: Prefix protocol error struct and function names with
    cxl_
  efi/cper, cxl: Make definitions and structures global
  efi/cper, cxl: Remove cper_cxl.h
  acpi/ghes, cxl: Rename cxl_cper_register_work to
    cxl_cper_register_event_work
  acpi/ghes, cxl: Refactor work registration functions to support
    multiple workqueues
  acpi/ghes, cper: Recognize and cache CXL Protocol errors
  acpi/ghes, cxl/pci: Process CXL CPER Protocol Errors

 drivers/acpi/apei/ghes.c        | 129 +++++++++++++++++++++++++++++---
 drivers/cxl/core/pci.c          |  50 +++++++++++++
 drivers/cxl/cxlpci.h            |   6 ++
 drivers/cxl/pci.c               |  59 ++++++++++++++-
 drivers/firmware/efi/cper.c     |   6 +-
 drivers/firmware/efi/cper_cxl.c |  39 +---------
 drivers/firmware/efi/cper_cxl.h |  66 ----------------
 include/cxl/event.h             | 109 ++++++++++++++++++++++++++-
 include/linux/cper.h            |   8 ++
 9 files changed, 351 insertions(+), 121 deletions(-)
 delete mode 100644 drivers/firmware/efi/cper_cxl.h

-- 
2.17.1


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2024-12-06 16:29 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-19  0:39 [PATCH v3 0/7] acpi/ghes, cper, cxl: Process CXL CPER Protocol errors Smita Koralahalli
2024-11-19  0:39 ` [PATCH v3 1/7] efi/cper, cxl: Prefix protocol error struct and function names with cxl_ Smita Koralahalli
2024-11-26 15:05   ` Jonathan Cameron
2024-12-02 18:12   ` Ira Weiny
2024-11-19  0:39 ` [PATCH v3 2/7] efi/cper, cxl: Make definitions and structures global Smita Koralahalli
2024-11-26 15:09   ` Jonathan Cameron
2024-12-02 18:15   ` Ira Weiny
2024-11-19  0:39 ` [PATCH v3 3/7] efi/cper, cxl: Remove cper_cxl.h Smita Koralahalli
2024-11-26 15:51   ` Jonathan Cameron
2024-11-27 19:36     ` Smita Koralahalli
2024-12-02 18:15   ` Ira Weiny
2024-11-19  0:39 ` [PATCH v3 4/7] acpi/ghes, cxl: Rename cxl_cper_register_work to cxl_cper_register_event_work Smita Koralahalli
2024-11-26 15:53   ` Jonathan Cameron
2024-11-19  0:39 ` [PATCH v3 5/7] acpi/ghes, cxl: Refactor work registration functions to support multiple workqueues Smita Koralahalli
2024-11-26 15:57   ` Jonathan Cameron
2024-11-27 19:46     ` Smita Koralahalli
2024-11-19  0:39 ` [PATCH v3 6/7] acpi/ghes, cper: Recognize and cache CXL Protocol errors Smita Koralahalli
2024-11-26 16:05   ` Jonathan Cameron
2024-12-02 18:41   ` Ira Weiny
2024-12-06 16:16     ` Koralahalli Channabasappa, Smita
2024-11-19  0:39 ` [PATCH v3 7/7] acpi/ghes, cxl/pci: Process CXL CPER Protocol Errors Smita Koralahalli
2024-11-26 16:05   ` Jonathan Cameron
2024-11-27 20:35     ` Smita Koralahalli
2024-12-02 18:48       ` Ira Weiny
2024-12-06 16:29         ` Koralahalli Channabasappa, Smita

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox