ACK: [PATCH 3/3] [SRU Y/Z] APST gets enabled against explicit kernel option
Stefan Bader
stefan.bader at canonical.com
Tue Jul 11 15:20:55 UTC 2017
On 29.06.2017 11:59, Kai-Heng Feng wrote:
> BugLink: https://bugs.launchpad.net/bugs/1699004
>
> [Impact]
> The NVMe driver doesn't set APSTE on APST quirked devices at initialization.
> If the BIOS or NVMe enables APST before driver loading, APST will never be
> disabled, it also ignores explicit kernel option as result.
> So the faulty NVMe may not work as intended.
>
> [Test Case]
> $ sudo nvme get-feature -f 0x0c -H /dev/nvme0
> ...will show APST is "Disabled" instead of "Enabled"
>
> [Fix]
> Originally, APSTA is used to determined whether APST should be enabled or not,
> but it actually means hardware support instead of APST enabled/disabled.
> Separate the logic "apst is supported" and "to enable apst", so we can
> use the latter one to explicitly disable APST at initialiaztion.
>
> [Regression Potential]
> Very low.
> This SRU didn't change anything really - it just explicitly set APSTE at
> initialization.
>
> Andy Lutomirski (2):
> nvme: Display raw APST configuration via DYNAMIC_DEBUG
> nvme: Add nvme_core.force_apst to ignore the NO_APST quirk
>
> Kai-Heng Feng (1):
> nvme: explicitly disable APST on quirked devices
>
> drivers/nvme/host/core.c | 47 +++++++++++++++++++++++++++++++++++++++++------
> drivers/nvme/host/nvme.h | 1 +
> 2 files changed, 42 insertions(+), 6 deletions(-)
>
Acked-by: Stefan Bader <stefan.bader at canonical.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20170711/b5e9aa0b/attachment.sig>
More information about the kernel-team
mailing list