From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC642C04A6A for ; Thu, 3 Aug 2023 13:04:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236018AbjHCNE0 (ORCPT ); Thu, 3 Aug 2023 09:04:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235904AbjHCNDx (ORCPT ); Thu, 3 Aug 2023 09:03:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC1453AAC; Thu, 3 Aug 2023 06:03:43 -0700 (PDT) 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 6A4C861D69; 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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