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 05644C433EF for ; Tue, 21 Jun 2022 20:58:57 +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=eAfC71dmqciOoHgltz9JjcoYksirYGXd+0Jk/I1tUmw=; b=Azh+79jV/7O1eJuu+g3ju6GZu5 qZmknV2lyQ8LBBiXvydDgkfjCOdm0L6C1awGEzIuvWoZLPZamecqFn679JHcUKzxzun8lUVJDDLgq zA+cR4l2HgB8yXaT9E+rUjKimWOe8stAlbX9G4FajGn8je/pDuleeXjGEIBC7Dd4r+1mp1M/WsM7z +dxfa7dk6/cESodPf8x3uSNRnoX0aGaKhjC5+X6k00FmEVs/p3ITauxvcefaWfkjfLFPmR03Lqa7s H31EAE8HwB90G/S5nZB43k3d00qdKreInIkezi0JFB2kTB6K3UIma68GU0x2Cstmsgula29FCBwe/ FMSE731Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3kxZ-007AaC-O3; Tue, 21 Jun 2022 20:58:53 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3kpw-0076me-A5 for linux-nvme@lists.infradead.org; Tue, 21 Jun 2022 20:51:01 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0004CB81B4D; Tue, 21 Jun 2022 20:50:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 563A2C385A2; Tue, 21 Jun 2022 20:50:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655844658; bh=Ys4344i7yl5IrKH8TEcfIDgjDtLHOs/OfwvRmh0U35E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PO0noLBq6y2iP6gy5TR+ZLnL0QVkwMvclN1nPaRsHvlh2lseB6yjuFQX+X1cQfDRC PTkoFnydye/Ts+vrbSqXXM4zkPyjB5GV3OxQ0MAAGWx6/El3w6ydKyO+BuVrL7k5WN KhwKBxpNApJPY7qILH3pokvf4+EaI420EiVOBSmqQ7PIO7NOspLJuX/nSH0qHu6iyI rm3dCEZa+A3flXg5Aq8HxV/Pvfp6ieu/BNCgnjdAXlI9Mg5hyUJjpR8BOQlE50ZkpA Y8idE3YvTtrR88cRbX3liZlgBWAkdSesJo684jcxza6WT+X3I1EGLPw94xHhRnMqMS 5jFQ3TIZkXLDg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: "rasheed.hsueh" , Chaitanya Kulkarni , Christoph Hellwig , Sasha Levin , kbusch@kernel.org, axboe@fb.com, sagi@grimberg.me, linux-nvme@lists.infradead.org Subject: [PATCH AUTOSEL 5.15 11/17] nvme-pci: disable write zeros support on UMIC and Samsung SSDs Date: Tue, 21 Jun 2022 16:50:34 -0400 Message-Id: <20220621205041.250426-11-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220621205041.250426-1-sashal@kernel.org> References: <20220621205041.250426-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220621_135100_539069_1F053174 X-CRM114-Status: GOOD ( 12.73 ) 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: "rasheed.hsueh" [ Upstream commit 43047e082b90ead395c44b0e8497bc853bd13845 ] Like commit 5611ec2b9814 ("nvme-pci: prevent SK hynix PC400 from using Write Zeroes command"), UMIS and Samsung has the same issue: [ 6305.633887] blk_update_request: operation not supported error, dev nvme0n1, sector 340812032 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0 So also disable Write Zeroes command on UMIS and Samsung. Signed-off-by: rasheed.hsueh Reviewed-by: Chaitanya Kulkarni Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin --- drivers/nvme/host/pci.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 9847a20f9623..4a07fb8bacfb 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -3365,6 +3365,14 @@ static const struct pci_device_id nvme_id_table[] = { .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, }, { PCI_DEVICE(0x1d97, 0x2263), /* SPCC */ .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, }, + { PCI_DEVICE(0x144d, 0xa80b), /* Samsung PM9B1 256G and 512G */ + .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, }, + { PCI_DEVICE(0x144d, 0xa809), /* Samsung MZALQ256HBJD 256G */ + .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, }, + { PCI_DEVICE(0x1cc4, 0x6303), /* UMIS RPJTJ512MGE1QDY 512G */ + .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, }, + { PCI_DEVICE(0x1cc4, 0x6302), /* UMIS RPJTJ256MGE1QDY 256G */ + .driver_data = NVME_QUIRK_DISABLE_WRITE_ZEROES, }, { PCI_DEVICE(0x2646, 0x2262), /* KINGSTON SKC2000 NVMe SSD */ .driver_data = NVME_QUIRK_NO_DEEPEST_PS, }, { PCI_DEVICE(0x2646, 0x2263), /* KINGSTON A2000 NVMe SSD */ -- 2.35.1