Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4C61C001DF for ; Thu, 3 Aug 2023 13:03:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KPaoKq3WlQR04ow133VcX/Nv/bl6maq4aeR++I7eaTQ=; b=kmiU9azCQqsB6xwB0hFa7cbHe6 OvWiszfa/QfWeUZtmPXvy5yMWmRgHBJbxd/LTo5qbp0W5+KhA7N02fZikNZHN1hYgYnXQn8S56D7Y 5XXb1M10ZGnB3R4FD7H0GgveeNYOWsaQ+9RG2DwnIrpybnzh87gqHiFbayIFr/wVdK1ex04EIx5oX V4vSu7T1r+CIXAt8ii9OauJyPf0XiMRF251PuGO58zg+D9HAmz8PN0dGfWWRksmqRfdpX1FBrjpVY +Q728KmYf/LWoonYzNVJFuNaiRY2xjBWN1NtVE2CG5EN29hk8EAPhxExxed367SBYSuvXb5Myt57m U6SxTONg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qRXzX-008kbW-0A; Thu, 03 Aug 2023 13:03:47 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qRXzT-008kYy-31 for linux-nvme@lists.infradead.org; Thu, 03 Aug 2023 13:03:45 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6DBDA61D95; Thu, 3 Aug 2023 13:03:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0A31C433CC; Thu, 3 Aug 2023 13:03:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691067822; bh=bW2UXFUR5kcz3dpgpTv5P0nicfE7LwKzR1CEdkRsiPE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QnEqr4+mZSlTJ3ZRywoUAlLdHfuFseTZAAWp83z9YBCoj5W1l7DY+mrrhRLhlSiMi X1QFXPCVok3QLnr69IT06kXw46IPr8fz72N35X3nE51YnYO06j/5yPGw5mPO+RU15b t5se7Tg5+Jduel69O2RHzmmUtQeEs3QTcCVviKidz9Vi9BcqSrY877Xh8dhapUqB/L NkgN/h7bzqKxho/mMP03mL+Ni9t9wp+joDHgx0LKMis0QEPtAt6QHDymhVEifSz8fE SZyV87S7AFZU+xUtm8A7x6jvIPIFC2rnLF2MVojHzjyS9rlGFyzSiasXrzokRHMiIJ fwTeTWFwiA7MQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Pankaj Raghav , Clemens Springsguth , Keith Busch , Sasha Levin , sagi@grimberg.me, linux-nvme@lists.infradead.org Subject: [PATCH AUTOSEL 6.1 5/5] nvme: add BOGUS_NID quirk for Samsung SM953 Date: Thu, 3 Aug 2023 09:03:33 -0400 Message-Id: <20230803130333.641625-5-sashal@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230803130333.641625-1-sashal@kernel.org> References: <20230803130333.641625-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.42 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230803_060344_577064_E547084C X-CRM114-Status: GOOD ( 11.50 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org From: Pankaj Raghav [ Upstream commit e5bb0988a5b622f58cc53dbdc044562229284d23 ] Add the quirk as SM953 is reporting bogus namespace ID. Link: https://bugzilla.kernel.org/show_bug.cgi?id=217593 Reported-by: Clemens Springsguth Tested-by: Clemens Springsguth Signed-off-by: Pankaj Raghav Signed-off-by: Keith Busch Signed-off-by: Sasha Levin --- drivers/nvme/host/pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 145fa7ef3f740..5dd79ab9ae80b 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3507,6 +3507,8 @@ static const struct pci_device_id nvme_id_table[] = { .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, }, { PCI_DEVICE(0x144d, 0xa809), /* Samsung MZALQ256HBJD 256G */ .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, }, + { PCI_DEVICE(0x144d, 0xa802), /* Samsung SM953 */ + .driver_data = NVME_QUIRK_BOGUS_NID, }, { PCI_DEVICE(0x1cc4, 0x6303), /* UMIS RPJTJ512MGE1QDY 512G */ .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, }, { PCI_DEVICE(0x1cc4, 0x6302), /* UMIS RPJTJ256MGE1QDY 256G */ -- 2.40.1