Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4544474pxb; Mon, 27 Sep 2021 20:59:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKMY6bCnvdC5LDqux6Pp4IRlKJJiAt26MmPswBshx95sGwipn/sSDu5/vV4oDC5bvMm6PP X-Received: by 2002:a17:906:520b:: with SMTP id g11mr4450293ejm.502.1632801584044; Mon, 27 Sep 2021 20:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632801584; cv=none; d=google.com; s=arc-20160816; b=hyDRB8Qrb1FriPW6yo69ls8kipZDtVCiGgAjUtmEZCKF2aPI9RxG332WXkKRlGN6h7 5oAFSFqAs3bKYtGgomoUwPSUpn6kIwtcJt2aP1vt9KmF5NzyNBAVMH3EO9JUYiFq/sSK ywsMSN7keSsCpbMgchIiJQLZhuJyHFv1IPe3NnOrbiG7Rac38+sx96l+F5n8SK1wCEoc 0KoMp+3Wcw9E2qdR8ouPwOKSaIrjVHKINuNbxdj6d5zB/5rSWds+xijUqEdqadpOIUKz fZlpaD2q0poiTNDJhwEV1Q8ZQSGeS3/WO9wDVHBfJXXiG3gR2zXpqKLzqYFBFeIqj4AU 0v0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=z1qNPQYLno566jNlHm1NK9hDE1ClX3aiY9sUnHP8IGA=; b=UH9UDHwRvQElYB/a0jMGR/iVvpUiyr1N8808/dqlOrJHhkS5FQntf2xyc89kbzt1xQ cmn52GPnnHggBIHVtu60ZVFbzg4lhxjgFVQWoR+QwVzy9kRrU+4gREyxXlA0E6z+JDxW tOXGvYzCZZ8QvST/vNygMrzVNetm/jPXY0JT1d/ZOdz5BEqsL+AgXANZajNL4glG3Gbg cTRqKe/Ihzdw39loLCiG/SVOUrJxGblmPBwGGm1F1NCL1GN42a9tG9lHdrd9/cPcuXU9 4B6Mi1y32fTBywiDqgZF48YZMCKitQZvvgfq9bwRLcgUSTMJQ41QPiAMyJEGaQcd5qqj 3bDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=FpyjKWYU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si19543284ejo.373.2021.09.27.20.59.17; Mon, 27 Sep 2021 20:59:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=FpyjKWYU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238869AbhI1D5b (ORCPT + 99 others); Mon, 27 Sep 2021 23:57:31 -0400 Received: from mail-4325.protonmail.ch ([185.70.43.25]:59541 "EHLO mail-4325.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238831AbhI1D5a (ORCPT ); Mon, 27 Sep 2021 23:57:30 -0400 Date: Tue, 28 Sep 2021 03:55:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1632801350; bh=z1qNPQYLno566jNlHm1NK9hDE1ClX3aiY9sUnHP8IGA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=FpyjKWYUTJZEzCBq/l98SDJXyUebazy9Isq1zrQEeV/tSAKAbZ24ol8uQng33ZeKe jvqQPcGb+vbQoCLw1b8s4I/4bbKqO1IFnzWlWpYDZIYX2bLsjTcY9gml0CxprwHIln sTMypClLOazy8Onpb6HLG+pqc42wYq4m0iUQkXcQ= To: Keith Busch , linux-nvme@lists.infradead.org, sagi@grimberg.me, hch@lst.de From: Orlando Chamberlain Cc: linux-kernel@vger.kernel.org, axboe@kernel.dk, Sven Peter , Aditya Garg Reply-To: Orlando Chamberlain Subject: Re: [PATCHv2] nvme: add command id quirk for apple controllers Message-ID: <38101793-e0b9-ecf4-d235-465cb8e334b3@protonmail.com> In-Reply-To: <20210927154306.387437-1-kbusch@kernel.org> References: <20210927154306.387437-1-kbusch@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >=20 > 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. >=20 > The quirk bit was selected so that it can readily apply to stable. >=20 > Link: https://bugzilla.kernel.org/show_bug.cgi?id=3D214509 > Cc: Sven Peter > Reported-by: Orlando Chamberlain > Reported-by: Aditya Garg > Signed-off-by: Keith Busch > --- > v1->v2: fixed logical bug checking the quirk setting >=20 > 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