Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp582428lqh; Tue, 7 May 2024 08:03:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXu9rEHijWvj5b/46WPCyYpKAErySSKi/Nv+0nW9UvULGLKm4/MYXcW37ipTMJeDn37yl9o8hGeneGc6NrA17HR/ULEj2QfbCFXEjQpGA== X-Google-Smtp-Source: AGHT+IEVIwN6ABCQIS7MFH+76X1N9pbKGI53v9tw+W0Q8GbI0s1JDMHRsuqCoQ+mC7EiTVyfDnpQ X-Received: by 2002:a50:d659:0:b0:572:a049:c4b3 with SMTP id c25-20020a50d659000000b00572a049c4b3mr7655586edj.32.1715094191135; Tue, 07 May 2024 08:03:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715094191; cv=pass; d=google.com; s=arc-20160816; b=RwkbpG0syfHrGiA1lk7ffF4to+0Ifjd5MAaTLjQSkTSkY8WVNbSF20tfRr73wIyB2e o/SoTaa2oK469zSjIebNT/zNA00W4PfliAY9tBNJF6ucA+SjyBXeySO75iTMWgirfglQ E5bFx6Av36tZWVRvVAa52NPBUwPNu9z9QfnYSLremgu0AEXn7GRee4uXYyfYVWojCqAR SXiC6PWiSn6I1nfE5SgK1IYcfU1bQGnFtO4qG7dLnpKG8cB7A090wTRA4so9aWFJyh5+ 9l+yL1X1vUZ39NgjUl6WM1cPLQHLqdhlgmu+7o/R/cJLcG4obzqJYCvswyS8TvUZSAIp KojA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3A8S06nAzUVedTReMiHv6BNDSr5Rx0H64J+DEO0cK9w=; fh=AlpG14Ei/zegrHew1EHvwDqPf3fbp/mMdWYJ1vsb4CY=; b=DPKRFPz3V6zbSZuRLCCJosmgDmOfv6fBmMf3xxIi7p7I2iLiXFU1LRSAS5c/mYgRPj WypXkysZrvPFkI7b3kUZLfUyPpJSOF440WMSQcK627j8qn+tPVQxlcW2HSUsnW5A2jk9 D2gxi8U22oiv2GoGESjR6G49Oc8zEKos3KDl0b8HjD/k+TewG6RMCBWNcORrcDQEnTDL rXUQu3OF6deOY+OZehz+DUhr2YqNJ87hVwTvjnCk0q5kXGMAeyvLZqJLtTbxLswev+U5 sdMKqH1V8jMqzrAG7McuI+RN3XZxJd31M9WmfIrjFUlcHzgNpir5gd8Ojx138nap7k2T hsmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MAtEwbjk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d12-20020a50fb0c000000b00572a170d1aasi5822944edq.546.2024.05.07.08.03.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 08:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MAtEwbjk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D42C91F23132 for ; Tue, 7 May 2024 15:03:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 61D9A161311; Tue, 7 May 2024 15:02:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MAtEwbjk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BC3E15F414; Tue, 7 May 2024 15:02:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715094172; cv=none; b=VA2rkXYSjKda4I0+v/TmeV5/Vu339vfLvLClGet9qKQIQWVxE3xi3rkoIc0BHjch8udMYXRl76xCgJH6F50HIDnWMcOXokLI89J0eSfC63jMEACIyHE5L9VhrydRfrfTSJ+fPD+xr3YftqqSrsQgL34n5bMhyZjmYiNbeAtMf9U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715094172; c=relaxed/simple; bh=gn0W/1EWIXO6epjS/6/rnHSMUoGl5NRWDPejbySshu0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ac8mBN8M1WPZxaoX5AMauvpjEix5fF2UHXySVXPE57jfQtnWaVH9eA3eQRzhjYD5sy+nrEt6Jt2vQlglzhxXz5kiJy6ks8e7/hNIG4j2nPdxrMCILyzYbtsaZ1C/uAqqctOtHUjjy52n0bi6reen2GjAM+dyeiLJbZBTZoL0Nd0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MAtEwbjk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4497C2BBFC; Tue, 7 May 2024 15:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715094172; bh=gn0W/1EWIXO6epjS/6/rnHSMUoGl5NRWDPejbySshu0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MAtEwbjkyVKi5gGkBXntmdl65SXUOd/ocHNPLfbZH0uu//BIdPEjMJl1iR9b8NFVv jyvQdQlNKHj2CbJ6aj/uRY8Na6DGekQyuOM0r5SQF5F1wVJkROMqLCRhV6ARHgf3x4 CncsB1TaB8SHoh0VMpHC+nyO7ck63NvE1fF4YESYTeQGofHStWAGlRKTIjYXbgxYB2 znJXYXv8S2aPWemIfg21ELrI7Fd2+lQKay7PwSpF8C4wpNyqmrcsLZXw7oppq5DDhu WS7+w9Q7SWyNmmJ+0Zp3O16EZcCnHss39qgzwLMNIC84zoXGgV6cHObNZ+V6j3L99A +dDTpk8a2teWQ== Date: Tue, 7 May 2024 09:02:50 -0600 From: Keith Busch To: Sean Anderson Cc: Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] nvme-pci: Add quirk for broken MSIs Message-ID: References: <20240422162822.3539156-1-sean.anderson@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240422162822.3539156-1-sean.anderson@linux.dev> On Mon, Apr 22, 2024 at 12:28:23PM -0400, Sean Anderson wrote: > Sandisk SN530 NVMe drives have broken MSIs. On systems without MSI-X > support, all commands time out resulting in the following message: > > nvme nvme0: I/O tag 12 (100c) QID 0 timeout, completion polled > > These timeouts cause the boot to take an excessively-long time (over 20 > minutes) while the initial command queue is flushed. > > Address this by adding a quirk for drives with buggy MSIs. The lspci > output for this device (recorded on a system with MSI-X support) is: > > 02:00.0 Non-Volatile memory controller: Sandisk Corp Device 5008 (rev 01) (prog-if 02 [NVM Express]) > Subsystem: Sandisk Corp Device 5008 > Flags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 0 > Memory at f7e00000 (64-bit, non-prefetchable) [size=16K] > Memory at f7e04000 (64-bit, non-prefetchable) [size=256] > Capabilities: [80] Power Management version 3 > Capabilities: [90] MSI: Enable- Count=1/32 Maskable- 64bit+ > Capabilities: [b0] MSI-X: Enable+ Count=17 Masked- > Capabilities: [c0] Express Endpoint, MSI 00 > Capabilities: [100] Advanced Error Reporting > Capabilities: [150] Device Serial Number 00-00-00-00-00-00-00-00 > Capabilities: [1b8] Latency Tolerance Reporting > Capabilities: [300] Secondary PCI Express > Capabilities: [900] L1 PM Substates > Kernel driver in use: nvme > Kernel modules: nvme > > Cc: > Signed-off-by: Sean Anderson Thanks, applied to nvme-6.9.