Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp238837pxf; Wed, 10 Mar 2021 05:23:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAhKjKkarKNQSyfEusWpU1nHf0fPSGulueo5wyQqi9gScKxPBBM3n3ouR1WD+ijvo/NQDe X-Received: by 2002:a05:6402:646:: with SMTP id u6mr3318941edx.250.1615382635205; Wed, 10 Mar 2021 05:23:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382635; cv=none; d=google.com; s=arc-20160816; b=nmfb4gf6Fh+mTRwVIPD/5BPulj+b7Ae+Py5O3OobTc3QZ79T6lBgpztJlvf7AE33vW 37i947wa/2eraEi4mFNsJzbvReIT/pOLidLINzCHONx/DGoolxVd49wKiQCuiePpApKO 2UzV2VhcxMmDx40CQsaA+Xw4kFd2UGnP6ocf/HkFso6W/LIuvddckJCRXVUmLpB1qUQg ech2QjpwWz5+e3U1rrWwlYsRn/saXMPeuJo58oGdmeEyTIBQTYgon0GPwmJ137nrzYQV oUyPvq2yBRm2Mow5whXfnDnEVt7figGZAi7Aw192tm2QYALIUvsx7fbyMFH5OFDxqGD3 224w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=pFn8XaxXAVcanG4RmCAINUaT3FfFMvurpTMMBwyjhfw=; b=rCpli6UC4WF2OiKFhMsll+UvWZTmpePbaTngXI8yRT2wGyN4NxbT3EsHV0a+IseuXt hjCVQfvB8LZyxHrAYACC/Dm0u5our4vnaeUKXbpym1rC/ii4VI4C7eK63i+xNFvep6h/ P/ETk/P9UIfgNDUyJLvJsvVN8DWF/R9+hhDKLVj+AOCmRmf7zt17FG5CzBOzqKvs6Fth hsEW2iJMAZ+6RsQS0pRtRn5RsBJ+dw7OjOyCGEa1SP+UFRtwnAaZJfmpP45ih5yD2FY3 XKGoS5AFxt4EGAek5/etVEmYrDxC0pzf+xRgtUMzYBuNWFanoDAFFaDWhD8rnZJxPv6G 51Bw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bn5si11464170ejb.583.2021.03.10.05.23.31; Wed, 10 Mar 2021 05:23:55 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231922AbhCJNW2 (ORCPT + 99 others); Wed, 10 Mar 2021 08:22:28 -0500 Received: from verein.lst.de ([213.95.11.211]:36338 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231132AbhCJNV7 (ORCPT ); Wed, 10 Mar 2021 08:21:59 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 0FC3A68B05; Wed, 10 Mar 2021 14:21:57 +0100 (CET) Date: Wed, 10 Mar 2021 14:21:56 +0100 From: Christoph Hellwig To: Dmitry Monakhov Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, hch@lst.de, Chaitanya.Kulkarni@wdc.com Subject: Re: [PATCH 1/1] nvme-pci: add the DISABLE_WRITE_ZEROES quirk for a Samsung PM1725a Message-ID: <20210310132156.GA12145@lst.de> References: <1615377076-3251-1-git-send-email-dmtrmonakhov@yandex-team.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1615377076-3251-1-git-send-email-dmtrmonakhov@yandex-team.ru> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Can you try this patch instead? http://lists.infradead.org/pipermail/linux-nvme/2021-February/023183.html On Wed, Mar 10, 2021 at 02:51:16PM +0300, Dmitry Monakhov wrote: > This adds a quirk for Samsung PM1725a drive which fixes timeouts and > I/O errors due to the fact that the controller does not properly > handle the Write Zeroes command, dmesg log: > > nvme nvme0: I/O 528 QID 10 timeout, aborting > nvme nvme0: I/O 529 QID 10 timeout, aborting > nvme nvme0: I/O 530 QID 10 timeout, aborting > nvme nvme0: I/O 531 QID 10 timeout, aborting > nvme nvme0: I/O 532 QID 10 timeout, aborting > nvme nvme0: I/O 533 QID 10 timeout, aborting > nvme nvme0: I/O 534 QID 10 timeout, aborting > nvme nvme0: I/O 535 QID 10 timeout, aborting > nvme nvme0: Abort status: 0x0 > nvme nvme0: Abort status: 0x0 > nvme nvme0: Abort status: 0x0 > nvme nvme0: Abort status: 0x0 > nvme nvme0: Abort status: 0x0 > nvme nvme0: Abort status: 0x0 > nvme nvme0: Abort status: 0x0 > nvme nvme0: Abort status: 0x0 > nvme nvme0: I/O 528 QID 10 timeout, reset controller > nvme nvme0: controller is down; will reset: CSTS=0x3, PCI_STATUS=0x10 > nvme nvme0: Device not ready; aborting reset, CSTS=0x3 > nvme nvme0: Device not ready; aborting reset, CSTS=0x3 > nvme nvme0: Removing after probe failure status: -19 > nvme0n1: detected capacity change from 6251233968 to 0 > blk_update_request: I/O error, dev nvme0n1, sector 32776 op 0x1:(WRITE) flags 0x3000 phys_seg 6 prio class 0 > blk_update_request: I/O error, dev nvme0n1, sector 113319936 op 0x9:(WRITE_ZEROES) flags 0x800 phys_seg 0 prio class 0 > Buffer I/O error on dev nvme0n1p2, logical block 1, lost async page write > blk_update_request: I/O error, dev nvme0n1, sector 113319680 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0 > Buffer I/O error on dev nvme0n1p2, logical block 2, lost async page write > blk_update_request: I/O error, dev nvme0n1, sector 113319424 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0 > Buffer I/O error on dev nvme0n1p2, logical block 3, lost async page write > blk_update_request: I/O error, dev nvme0n1, sector 113319168 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0 > Buffer I/O error on dev nvme0n1p2, logical block 4, lost async page write > blk_update_request: I/O error, dev nvme0n1, sector 113318912 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0 > Buffer I/O error on dev nvme0n1p2, logical block 5, lost async page write > blk_update_request: I/O error, dev nvme0n1, sector 113318656 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0 > Buffer I/O error on dev nvme0n1p2, logical block 6, lost async page write > blk_update_request: I/O error, dev nvme0n1, sector 113318400 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0 > blk_update_request: I/O error, dev nvme0n1, sector 113318144 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0 > blk_update_request: I/O error, dev nvme0n1, sector 113317888 op 0x9:(WRITE_ZEROES) flags 0x0 phys_seg 0 prio class 0 > > Signed-off-by: Dmitry Monakhov > --- > drivers/nvme/host/pci.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c > index 17ab332..7249ae7 100644 > --- a/drivers/nvme/host/pci.c > +++ b/drivers/nvme/host/pci.c > @@ -3246,6 +3246,7 @@ static const struct pci_device_id nvme_id_table[] = { > .driver_data = NVME_QUIRK_DELAY_BEFORE_CHK_RDY, }, > { PCI_DEVICE(0x144d, 0xa822), /* Samsung PM1725a */ > .driver_data = NVME_QUIRK_DELAY_BEFORE_CHK_RDY | > + NVME_QUIRK_DISABLE_WRITE_ZEROES| > NVME_QUIRK_IGNORE_DEV_SUBNQN, }, > { PCI_DEVICE(0x1987, 0x5016), /* Phison E16 */ > .driver_data = NVME_QUIRK_IGNORE_DEV_SUBNQN, }, > -- > 2.7.4 ---end quoted text---