[PATCHv2] nvme: add command id quirk for apple controllers

Orlando Chamberlain redecorating at protonmail.com
Mon Sep 27 20:55:48 PDT 2021



On 28/9/21 01:43, Keith Busch wrote:
> Some apple controllers use the command id as an index to implementation
> specific data structures and will fail if the value is out of bounds.
> The nvme driver's recently introduced command sequence number breaks
> this controller.
> 
> Provide a quirk so these spec incompliant controllers can function as
> before. The driver will not have the ability to detect bad completions
> when this quirk is used, but we weren't previously checking this anyway.
> 
> The quirk bit was selected so that it can readily apply to stable.
> 
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=214509
> Cc: Sven Peter <sven at svenpeter.dev>
> Reported-by: Orlando Chamberlain <redecorating at protonmail.com>
> Reported-by: Aditya Garg <gargaditya08 at live.com>
> Signed-off-by: Keith Busch <kbusch at kernel.org>
> ---
> v1->v2: fixed logical bug checking the quirk setting
> 
>  drivers/nvme/host/core.c | 4 +++-
>  drivers/nvme/host/nvme.h | 6 ++++++
>  drivers/nvme/host/pci.c  | 3 ++-
>  3 files changed, 11 insertions(+), 2 deletions(-)

Works on my MacBookPro16,1.

Tested-by: Orlando Chamberlain <redecorating at protonmail.com>




More information about the Linux-nvme mailing list