File 1005-mdadm-enable-Intel-Alderlake-RSTe-configuration.patch of Package mdadm
From b30b6e1c3ae6c3258ec7f6862d361842e4ec489f Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Tue, 19 Jul 2022 13:18:23 +0800 Subject: [PATCH 1005/1006] mdadm: enable Intel Alderlake RSTe configuration Alderlake has a slightly different RST configuration; the UEFI variable is name 'RstVmdV', and the AHCI controller shows up as a child device of the VMD bridge, but continues to use the 'AHCI HBA' PCI class (and not the RAID class as RSTe would normally do). Signed-off-by: Hannes Reinecke <hare@suse.de> Acked-by: Coly Li <colyli@suse.de> --- platform-intel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform-intel.c b/platform-intel.c index 95bc492..9a6f586 100644 --- a/platform-intel.c +++ b/platform-intel.c @@ -656,6 +656,7 @@ static const struct imsm_orom *find_imsm_hba_orom(struct sys_dev *hba) #define RST_VMD_PROP "RstVmdV" #define PCI_CLASS_RAID_CNTRL 0x010400 +#define PCI_CLASS_SATA_HBA 0x010601 /* GUID length in Bytes */ #define GUID_LENGTH 16 @@ -1049,7 +1050,8 @@ const struct imsm_orom *find_imsm_efi(struct sys_dev *hba) break; return NULL; case SYS_DEV_SATA: - if (hba->class != PCI_CLASS_RAID_CNTRL) + if (hba->class != PCI_CLASS_RAID_CNTRL && + hba->class != PCI_CLASS_SATA_HBA) return NULL; if (find_imsm_efi_orom(&orom, hba->type)) -- 2.48.1