From 6bfa2ec7a7f424b018fd2e21a70e9d2f04041832 Mon Sep 17 00:00:00 2001 From: Barnali Guha Thakurata Date: Tue, 22 Oct 2024 12:05:39 +0530 Subject: [PATCH] Added Power11 support for diag_nvme Git-commit: 6bfa2ec7a7f424b018fd2e21a70e9d2f04041832 Without Patch: # diag_nvme nvme0 diag_nvme is only supported in PowerVM LPARs and at least Power10 processors With Patch: # diag_nvme nvme0 Running diagnostics for nvme0 NVMe diag command completed successfully Signed-off-by: Barnali Guha Thakurata Signed-off-by: Nilay Shroff Reviewed-by: Sathvika Vasireddy Tested-by: Sathvika Vasireddy --- common/platform.c | 3 +++ common/platform.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/common/platform.c b/common/platform.c index 1359adb82101..801b9247be2a 100644 --- a/common/platform.c +++ b/common/platform.c @@ -96,6 +96,9 @@ get_processor(void) case PVR_POWER10: rc = POWER10; break; + case PVR_POWER11: + rc = POWER11; + break; default: rc = PROCESSOR_UNKNOWN; break; diff --git a/common/platform.h b/common/platform.h index b265d1e0937b..ae3ea21d80ed 100644 --- a/common/platform.h +++ b/common/platform.h @@ -36,6 +36,7 @@ #define PVR_POWER8 0x004D #define PVR_POWER9 0x004E #define PVR_POWER10 0x0080 +#define PVR_POWER11 0x0082 enum { PLATFORM_UNKNOWN = 0, @@ -56,6 +57,7 @@ enum { POWER8, POWER9, POWER10, + POWER11, }; extern const char *__platform_name[]; -- 2.47.1