Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Hans de Goede <hansg@kernel.org>
To: Niklas Cassel <cassel@kernel.org>, Damien Le Moal <dlemoal@kernel.org>
Cc: stable@vger.kernel.org, Andy Yang <andyybtc79@gmail.com>,
	linux-ide@vger.kernel.org
Subject: Re: [PATCH] ata: ahci: Use correct DMI identifier for ASUSPRO-D840SA LPM quirk
Date: Mon, 23 Jun 2025 20:23:00 +0200	[thread overview]
Message-ID: <df05fc95-84e5-4287-a5bd-f4ea081dd47f@kernel.org> (raw)
In-Reply-To: <20250623162710.917979-2-cassel@kernel.org>

Hi,

On 23-Jun-25 6:27 PM, Niklas Cassel wrote:
> While most entries in ahci_broken_lpm(), for Lenovo based boards,

Note the Lenovo matching is done on Lenovo laptop model / product
names not on the (mother/main)board names.

> match on
> DMI_PRODUCT_VERSION, ASUS apparently store the board name in
> DMI_PRODUCT_NAME rather than DMI_PRODUCT_VERSION.

Actually Lenovo is the weird one here, all other vendors store
the laptop model-name in PRODUCT_NAME rather then in PRODUCT_VERSION.

For motherboards the motherboard modelnr is typically stored
in BOARD_NAME and what is in PRODUCT_NAME varies.

E.g. my MSI B550M PRO-VDH desktop motherboard has:

DMI_BOARD_NAME    "B550M PRO-VDH WIFI (MS-7C95)"
DMI_PRODUCT_NAME  "MS-7C95"

So you may want to reword the commit message a bit.

Either way the patch contents looks good to me:

Reviewed-by: Hans de Goede <hansg@kernel.org>

Regards,

Hans






> 
> Use the correct DMI identifier (DMI_PRODUCT_NAME) to match the
> ASUSPRO-D840SA board, such that the quirk will actually get applied.
> 
> Cc: stable@vger.kernel.org
> Reported-by: Andy Yang <andyybtc79@gmail.com>
> Closes: https://lore.kernel.org/linux-ide/aFb3wXAwJSSJUB7o@ryzen/
> Fixes: b5acc3628898 ("ata: ahci: Disallow LPM for ASUSPRO-D840SA motherboard")
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
> ---
>  drivers/ata/ahci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
> index e5e5c2e81d09..aa93b0ecbbc6 100644
> --- a/drivers/ata/ahci.c
> +++ b/drivers/ata/ahci.c
> @@ -1450,7 +1450,7 @@ static bool ahci_broken_lpm(struct pci_dev *pdev)
>  		{
>  			.matches = {
>  				DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
> -				DMI_MATCH(DMI_PRODUCT_VERSION, "ASUSPRO D840MB_M840SA"),
> +				DMI_MATCH(DMI_PRODUCT_NAME, "ASUSPRO D840MB_M840SA"),
>  			},
>  			/* 320 is broken, there is no known good version. */
>  		},


      reply	other threads:[~2025-06-23 18:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-23 16:27 [PATCH] ata: ahci: Use correct DMI identifier for ASUSPRO-D840SA LPM quirk Niklas Cassel
2025-06-23 18:23 ` Hans de Goede [this message]

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=df05fc95-84e5-4287-a5bd-f4ea081dd47f@kernel.org \
    --to=hansg@kernel.org \
    --cc=andyybtc79@gmail.com \
    --cc=cassel@kernel.org \
    --cc=dlemoal@kernel.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=stable@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