From: Greg KH <gregkh@linuxfoundation.org>
To: Erpeng Xu <xuerpeng@uniontech.com>
Cc: stable@vger.kernel.org, sashal@kernel.org, shyjumon.n@intel.com,
kbusch@kernel.org, axboe@kernel.dk, hch@lst.de, sagi@grimberg.me,
linux-kernel@vger.kernel.org, jonathan.derrick@intel.com,
wangyuli@uniontech.com
Subject: Re: [PATCH 4.19] nvme/pci: Add sleep quirk for Samsung and Toshiba drives
Date: Thu, 15 Aug 2024 10:32:42 +0200 [thread overview]
Message-ID: <2024081527-barbell-game-545a@gregkh> (raw)
In-Reply-To: <87182CEADE011558+20240731075113.51089-1-xuerpeng@uniontech.com>
On Wed, Jul 31, 2024 at 03:50:46PM +0800, Erpeng Xu wrote:
> From: Shyjumon N <shyjumon.n@intel.com>
>
> commit 1fae37accfc5872af3905d4ba71dc6ab15829be7 upstream
>
> The Samsung SSD SM981/PM981 and Toshiba SSD KBG40ZNT256G on the Lenovo
> C640 platform experience runtime resume issues when the SSDs are kept in
> sleep/suspend mode for long time.
>
> This patch applies the 'Simple Suspend' quirk to these configurations.
> With this patch, the issue had not been observed in a 1+ day test.
>
> Reviewed-by: Jon Derrick <jonathan.derrick@intel.com>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> Signed-off-by: Shyjumon N <shyjumon.n@intel.com>
> Signed-off-by: Keith Busch <kbusch@kernel.org>
> Signed-off-by: Erpeng Xu <xuerpeng@uniontech.com>
> ---
> drivers/nvme/host/pci.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
> index 9c80f9f08149..b0434b687b17 100644
> --- a/drivers/nvme/host/pci.c
> +++ b/drivers/nvme/host/pci.c
> @@ -2747,6 +2747,18 @@ static unsigned long check_vendor_combination_bug(struct pci_dev *pdev)
> (dmi_match(DMI_BOARD_NAME, "PRIME B350M-A") ||
> dmi_match(DMI_BOARD_NAME, "PRIME Z370-A")))
> return NVME_QUIRK_NO_APST;
> + } else if ((pdev->vendor == 0x144d && (pdev->device == 0xa801 ||
> + pdev->device == 0xa808 || pdev->device == 0xa809)) ||
> + (pdev->vendor == 0x1e0f && pdev->device == 0x0001)) {
> + /*
> + * Forcing to use host managed nvme power settings for
> + * lowest idle power with quick resume latency on
> + * Samsung and Toshiba SSDs based on suspend behavior
> + * on Coffee Lake board for LENOVO C640
> + */
> + if ((dmi_match(DMI_BOARD_VENDOR, "LENOVO")) &&
> + dmi_match(DMI_BOARD_NAME, "LNVNB161216"))
> + return NVME_QUIRK_SIMPLE_SUSPEND;
> }
>
This breaks the build, how did you test this?
thanks,
greg k-h
prev parent reply other threads:[~2024-08-15 8:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-31 7:50 [PATCH 4.19] nvme/pci: Add sleep quirk for Samsung and Toshiba drives Erpeng Xu
2024-08-15 8:32 ` Greg KH [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=2024081527-barbell-game-545a@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=axboe@kernel.dk \
--cc=hch@lst.de \
--cc=jonathan.derrick@intel.com \
--cc=kbusch@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sagi@grimberg.me \
--cc=sashal@kernel.org \
--cc=shyjumon.n@intel.com \
--cc=stable@vger.kernel.org \
--cc=wangyuli@uniontech.com \
--cc=xuerpeng@uniontech.com \
/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