Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp37159lqh; Fri, 3 May 2024 12:32:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXjOu5PjyLPdrpugSkWTNNUKfg1BDcrFmVKXaGoDHzzdUIEQTFfI8QNHAjptCvZI7/JAs5rbnxbMS0Sd4WUS0HNwun9FoywNAr4Gzljcg== X-Google-Smtp-Source: AGHT+IEtjLFFnju6AAO8jFXrzIk5K7DI5z+jmfUGdQ2ZUsn5zSi+4RouSs/nr/RmCLESP9dI63BZ X-Received: by 2002:a05:6512:2eb:b0:51d:70d9:ece0 with SMTP id m11-20020a05651202eb00b0051d70d9ece0mr2600329lfq.6.1714764777299; Fri, 03 May 2024 12:32:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714764777; cv=pass; d=google.com; s=arc-20160816; b=xNJFIBxWi8mORWAoSmUmhL2IKxRvRgdYeFD6R2dj9aUh0raRWI5tH56bNkTo8+MMMn 1Qf64hOEWBMSLIr5aMfB+TyT58md8lybh/cZCH2h1L4+Pfj82GpVK3ZCnTAMn0GusZ9r /JUEjzQpjzjRA0TusXX9kyK8haub/p8aBs9MQtyt5H0/WdNPgTLaQed9+IOS2b2r0kWr Hw9u2mg6cQSERXgDvJrjqB8weqKSraTDpt6Qm3hFWx+zsdEW2ldvce9jXZRniuLjNz4J bz30KgkFyuoZPLNcCD46VSUm14ilyQ8VQSR6g6Thc9/8MeggOH4942+ds5a+frRdR9jB 5Z+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:date:dkim-signature:message-id; bh=y1oIMl8WbrPn3vhHIGpaNgf49/6UPOvNrGm1EXjpmcc=; fh=1OhJChnDVGQUyhsJJLtg5ecWs7GtxL1h2qKwXW0jPGY=; b=BFQIptSIEzVTxe50bdwmYB9N7Kz7I3B1gtL/XOgpNFxJo04ClJ/YO77NvutIxc3VEx TxG9Y1u0A8gdu6ZOhCzTUUECmmaiO4uFKCaE3UBIQd2K9+JtFXMeFOb1KceKYg/G9//0 1N5XYurTbdJIjC3MDmjuykvK6BG5tpOuS1j4nKZJ/hxu/R9eOaX3Ii3oOhgYDepNj/a0 Oy/nNoUjvdPiLetzsbZqS2pi5WSzRMGISgl6aSPAJ05AWBeGM7hOyw0AM8qj1dnV+ctj Lrb+CXwNjZRrrV6t5YX7mJ/CxQT5RZnwijHssPkTbmw0fAVbZxYuJhnCzqjA3CbjdkeA OXwQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=FAIxbpGs; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-168135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168135-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bh6-20020a170906a0c600b00a58dfb0a4a1si1841485ejb.80.2024.05.03.12.32.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 12:32:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168135-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=@linux.dev header.s=key1 header.b=FAIxbpGs; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-168135-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168135-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 078321F218D5 for ; Fri, 3 May 2024 19:32:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EABE339A1; Fri, 3 May 2024 19:32:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="FAIxbpGs" Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (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 4C84863CF for ; Fri, 3 May 2024 19:32:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714764769; cv=none; b=ldphPb25H0UV2VrhWJBErZp3KH/bIRORaTgBQ/W9cbi6EK266zRV1IArYMNN7TRLf+G16HNvlr8XFvsp5nNVqgtU5ew60o/ODcBS86FAM4vuLSB7DdOUdpMlNIIq9MWYqu6KKWC3CbblZNE6ZJVH5Q6x5SPmvRwwn+VE0qDpWmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714764769; c=relaxed/simple; bh=pQZGSI3aJEy2zlBw78TT0e8lBxySC7j1UGKGotHcUoQ=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=gNsxkFc6hZ4gtHnSPIvOP6+zClwZWINT5MY5NqKgMR6jbmVXfOp8EbQ8bxzHNxCSO5LYpFKiYYufAc6U/z+/qimw+IPISw/cbS+8XjXFv3iDXmq9VVKwMKAtLhC7/HW+gH9bhG61KieCEKVgsb9U8YKrgTYENAZggyxU+cD/4Hs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=FAIxbpGs; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: <334617fa-71c2-40a9-9c6f-d5f56c11448c@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714764766; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y1oIMl8WbrPn3vhHIGpaNgf49/6UPOvNrGm1EXjpmcc=; b=FAIxbpGsFB8+hDiycUmcDDDpjn0XWNq06ICBKUiW6G642mFuP0IM1nOSmXSzNK+f4Nn7Uq eqqQwVvgHphCpn+hPyMfBudvHw3aLtkUd5YnPZ2lcddwK8C0z+a10lbUcLYJuCK/YkIJQH GH8ub1+fMRUXrATuQbyJ9r2+hv12w10= Date: Fri, 3 May 2024 15:32:41 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] nvme-pci: Add quirk for broken MSIs X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sean Anderson To: Keith Busch Cc: Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <20240422162822.3539156-1-sean.anderson@linux.dev> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 4/22/24 13:15, Sean Anderson wrote: > On 4/22/24 12:49, Keith Busch wrote: >> 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: >> >> Based on your description, the patch looks good. This will fallback to >> legacy emulated pin interrupts, and that's better than timeout polling, >> but will still appear sluggish compared to MSI's. Is there an errata >> from the vendor on this? I'm just curious if the bug is at the Device ID >> level, and not something we could constrain to a particular model or >> firmware revision. > > I wasn't able to find any errata for this drive. I wasn't able to > determine if there are any firmware updates for this drive (FWIW I have > version "21160001"). I'll contact WD and see if they know about this > issue. Well, the response from WD support was "we don't support Linux, and if we did there aren't any bugs in the drive anyway". --Sean