From 753b3873ce4af5c8c73e1a61a998780772ef8324 Mon Sep 17 00:00:00 2001 From: Niklas Schnelle Date: Fri, 24 Jul 2026 14:23:01 +0200 Subject: [PATCH] s390/sclp: Allow SCLP Action Qualifiers for Spyre card status reporting Add SCLP Action Qualifiers used by the Spyre stack for reporting of the card's initialization status, recoverable errors, and telemetry data. Co-developed-by: Andreas Krebbel Signed-off-by: Andreas Krebbel Signed-off-by: Niklas Schnelle Reviewed-by: Benjamin Block Signed-off-by: Vasily Gorbik --- arch/s390/include/asm/sclp.h | 3 +++ drivers/s390/char/sclp_pci.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/arch/s390/include/asm/sclp.h b/arch/s390/include/asm/sclp.h index f2d490558054..44066550b9b1 100644 --- a/arch/s390/include/asm/sclp.h +++ b/arch/s390/include/asm/sclp.h @@ -21,6 +21,9 @@ #define SCLP_ERRNOTIFY_AQ_INFO_LOG 2 #define SCLP_ERRNOTIFY_AQ_OPTICS_DATA 3 #define SCLP_ERRNOTIFY_AQ_NVME_SMART_LOG 4 +#define SCLP_ERRNOTIFY_AQ_ADAPTER_INITIALIZED 5 +#define SCLP_ERRNOTIFY_AQ_RECOVERABLE_ERROR 6 +#define SCLP_ERRNOTIFY_AQ_TELEMETRY_DATA 7 #ifndef __ASSEMBLER__ #include diff --git a/drivers/s390/char/sclp_pci.c b/drivers/s390/char/sclp_pci.c index d61a7fc0dd61..b79ef7006e46 100644 --- a/drivers/s390/char/sclp_pci.c +++ b/drivers/s390/char/sclp_pci.c @@ -99,6 +99,9 @@ static int sclp_pci_check_report(struct zpci_report_error_header *report) case SCLP_ERRNOTIFY_AQ_INFO_LOG: case SCLP_ERRNOTIFY_AQ_OPTICS_DATA: case SCLP_ERRNOTIFY_AQ_NVME_SMART_LOG: + case SCLP_ERRNOTIFY_AQ_ADAPTER_INITIALIZED: + case SCLP_ERRNOTIFY_AQ_RECOVERABLE_ERROR: + case SCLP_ERRNOTIFY_AQ_TELEMETRY_DATA: break; default: return -EINVAL;