summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlazej Kucman <blazej.kucman@intel.com>2024-11-20 16:50:25 +0100
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-11-27 09:10:53 +0100
commit8032700b7a44df2dd54af478940938958c08dcf0 (patch)
treee60dac8417cbe1a6747f43d65c38fcf7d92a510b
parenttests: fix "foreign" verification for nameing tests. (diff)
downloadmdadm-8032700b7a44df2dd54af478940938958c08dcf0.tar.xz
mdadm-8032700b7a44df2dd54af478940938958c08dcf0.zip
imsm: fix tpv drvies check in add_to_super
Before the mentioned patch, the check to verify if IMSM on current platform supports a use of TPV (other than Intel) disk, was only performed for non-Intel disks, after it is performed for all. This change causes inability to use any disk when platform does not support TPV drives, attempt results in the following error. mdadm: Platform configuration does not support non-Intel NVMe drives. Please refer to Intel(R) RSTe/VROC user guide. This change restores the check if the disk is non-Intel. Fixes: 734e7db4dfc5 ("imsm: Remove warning and refactor add_to_super_imsm code") Signed-off-by: Blazej Kucman <blazej.kucman@intel.com>
-rw-r--r--super-intel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c
index 9c464945..7e3c5f2b 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -6121,7 +6121,8 @@ static int add_to_super_imsm(struct supertype *st, mdu_disk_info_t *dk,
pr_err("%s controller supports Multi-Path I/O, Intel (R) VROC does not support multipathing\n",
basename(cntrl_path));
- if (super->orom && !imsm_orom_has_tpv_support(super->orom)) {
+ if (super->orom && devpath_to_vendor(pci_dev_path) != 0x8086 &&
+ !imsm_orom_has_tpv_support(super->orom)) {
pr_err("\tPlatform configuration does not support non-Intel NVMe drives.\n"
"\tPlease refer to Intel(R) RSTe/VROC user guide.\n");
goto error;