]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
s390/sclp: Allow user-space to provide PCI reports for NVMe SMART data
authorNiklas Schnelle <schnelle@linux.ibm.com>
Tue, 28 Apr 2026 13:38:30 +0000 (15:38 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 6 May 2026 11:18:17 +0000 (13:18 +0200)
The new SCLP action qualifier 4 is used by user-space code to provide
NVMe SMART log data to the platform.

Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/sclp.h
drivers/s390/char/sclp_pci.c

index 0f184dbdbe5e0748fcecbca38b9e55a56968dc79..d928a9ddfe40292eac3014fbc6b6643290602086 100644 (file)
@@ -20,6 +20,7 @@
 #define SCLP_ERRNOTIFY_AQ_REPAIR               1
 #define SCLP_ERRNOTIFY_AQ_INFO_LOG             2
 #define SCLP_ERRNOTIFY_AQ_OPTICS_DATA          3
+#define SCLP_ERRNOTIFY_AQ_NVME_SMART_LOG       4
 
 #ifndef __ASSEMBLER__
 #include <linux/uio.h>
index 899063e64aef0b7841e8b7ac49254ad2d8ff534e..d61a7fc0dd61096bd14f43ba9a1225b5f452533a 100644 (file)
@@ -98,6 +98,7 @@ static int sclp_pci_check_report(struct zpci_report_error_header *report)
        case SCLP_ERRNOTIFY_AQ_REPAIR:
        case SCLP_ERRNOTIFY_AQ_INFO_LOG:
        case SCLP_ERRNOTIFY_AQ_OPTICS_DATA:
+       case SCLP_ERRNOTIFY_AQ_NVME_SMART_LOG:
                break;
        default:
                return -EINVAL;