linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kinga Tanska <kinga.tanska@linux.intel.com>
To: Coly Li <colyli@suse.de>, Hannes Reinecke <hare@suse.de>
Cc: jes@trained-monkey.org, linux-raid@vger.kernel.org
Subject: Re: [PATCH 19/23] mdadm: enable Intel Alderlake RSTe configuration
Date: Fri, 5 Aug 2022 12:02:53 +0200	[thread overview]
Message-ID: <20220805120119.00000087@intel.linux.com> (raw)
In-Reply-To: <20220728122101.28744-20-colyli@suse.de>

On Thu, 28 Jul 2022 20:20:57 +0800
Coly Li <colyli@suse.de> wrote:

> From: Hannes Reinecke <hare@suse.de>
> 
> 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 | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 
> diff --git a/platform-intel.c b/platform-intel.c
> index 5a8729e7..a4d55a38 100644
> --- a/platform-intel.c
> +++ b/platform-intel.c
> @@ -512,12 +512,14 @@ static const struct imsm_orom
> *find_imsm_hba_orom(struct sys_dev *hba) #define AHCI_PROP "RstSataV"
>  #define AHCI_SSATA_PROP "RstsSatV"
>  #define AHCI_TSATA_PROP "RsttSatV"
> +#define AHCI_RST_PROP "RstVmdV"
>  #define VMD_PROP "RstUefiV"
>  
>  #define VENDOR_GUID \
>  	EFI_GUID(0x193dfefa, 0xa445, 0x4302, 0x99, 0xd8, 0xef, 0x3a,
> 0xad, 0x1a, 0x04, 0xc6) 
>  #define PCI_CLASS_RAID_CNTRL 0x010400
> +#define PCI_CLASS_SATA_HBA 0x010601
>  
>  static int read_efi_var(void *buffer, ssize_t buf_size,
>  			const char *variable_name, struct efi_guid
> guid) @@ -604,7 +606,8 @@ const struct imsm_orom
> *find_imsm_efi(struct sys_dev *hba) struct imsm_orom orom;
>  	struct orom_entry *ret;
>  	static const char * const sata_efivars[] = {AHCI_PROP,
> AHCI_SSATA_PROP,
> -						    AHCI_TSATA_PROP};
> +						    AHCI_TSATA_PROP,
> +						    AHCI_RST_PROP};
>  	unsigned long i;
>  
>  	if (check_env("IMSM_TEST_AHCI_EFI") ||
> check_env("IMSM_TEST_SCU_EFI")) @@ -622,7 +625,8 @@ const struct
> imsm_orom *find_imsm_efi(struct sys_dev *hba) 
>  		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;
>  
>  		for (i = 0; i < ARRAY_SIZE(sata_efivars); i++) {


Hi,

This patch causes a regression. I've checked how SATA controllers will
be visible in --detail-platform output for IMSM. If RAID mode will be
turned on for one of the SATA controllers, rest of them will be also
visible as supported ones.
Please analyze this scenario.

Regards,
Kinga Tanska

  reply	other threads:[~2022-08-05 10:03 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-28 12:20 [PATCH 00/23] mdadm-CI for-jes/20220728: patches for merge Coly Li
2022-07-28 12:20 ` [PATCH 01/23] Makefile: Don't build static build with everything and everything-test Coly Li
2022-07-28 12:20 ` [PATCH 02/23] DDF: Cleanup validate_geometry_ddf_container() Coly Li
2022-07-28 12:20 ` [PATCH 03/23] DDF: Fix NULL pointer dereference in validate_geometry_ddf() Coly Li
2022-07-28 12:20 ` [PATCH 04/23] mdadm/Grow: Fix use after close bug by closing after fork Coly Li
2022-07-28 12:20 ` [PATCH 05/23] monitor: Avoid segfault when calling NULL get_bad_blocks Coly Li
2022-07-28 12:20 ` [PATCH 06/23] mdadm: Fix mdadm -r remove option regression Coly Li
2022-07-28 12:20 ` [PATCH 07/23] mdadm: Fix optional --write-behind parameter Coly Li
2022-07-28 12:20 ` [PATCH 08/23] tests/00raid0: add a test that validates raid0 with layout fails for 0.9 Coly Li
2022-07-28 12:20 ` [PATCH 09/23] tests: fix raid0 tests for 0.90 metadata Coly Li
2022-07-28 12:20 ` [PATCH 10/23] tests/04update-metadata: avoid passing chunk size to raid1 Coly Li
2022-07-28 12:20 ` [PATCH 11/23] tests/02lineargrow: clear the superblock at every iteration Coly Li
2022-07-28 12:20 ` [PATCH 12/23] mdadm/test: Add a mode to repeat specified tests Coly Li
2022-07-28 12:20 ` [PATCH 13/23] mdadm/test: Mark and ignore broken test failures Coly Li
2022-07-28 12:20 ` [PATCH 14/23] tests: Add broken files for all broken tests Coly Li
2022-07-28 12:20 ` [PATCH 15/23] Grow: Split Grow_reshape into helper function Coly Li
2022-07-28 12:20 ` [PATCH 16/23] super1: report truncated device Coly Li
2022-07-28 12:20 ` [PATCH 17/23] Assemble: check if device is container before scheduling force-clean update Coly Li
2022-07-28 12:20 ` [PATCH 18/23] mdadm: replace container level checking with inline Coly Li
2022-07-28 12:20 ` [PATCH 19/23] mdadm: enable Intel Alderlake RSTe configuration Coly Li
2022-08-05 10:02   ` Kinga Tanska [this message]
2022-07-28 12:20 ` [PATCH 20/23] tests: add test for names Coly Li
2022-07-28 12:20 ` [PATCH 21/23] mdadm: remove symlink option Coly Li
2022-07-28 12:21 ` [PATCH 22/23] mdadm: move data_offset to struct shape Coly Li
2022-07-28 12:21 ` [PATCH 23/23] tests/00readonly: Run udevadm settle before setting ro Coly Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220805120119.00000087@intel.linux.com \
    --to=kinga.tanska@linux.intel.com \
    --cc=colyli@suse.de \
    --cc=hare@suse.de \
    --cc=jes@trained-monkey.org \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).