Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp720503lqh; Thu, 28 Mar 2024 14:23:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+fXmQzChB/kG+krOPsy4bWLfHUFTKvhjFciaA9oeBq02tcXgpM0CC+dS2oYwsO0GgYcbe5+VAFlsALrzjdelpUcFY30vM6yiaOc712w== X-Google-Smtp-Source: AGHT+IHYkZK5jXtUCd/ZkOY/T7aWis+tunDA/k7pn2VF/3eKAaC9kYLbbbMPUoCJAcXQMkqNGlLb X-Received: by 2002:a17:902:b08b:b0:1dd:bf6a:2b97 with SMTP id p11-20020a170902b08b00b001ddbf6a2b97mr542413plr.60.1711660994869; Thu, 28 Mar 2024 14:23:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711660994; cv=pass; d=google.com; s=arc-20160816; b=eZSbb06UPNS177kXSf+czZrN1eCmugwvEQnigbJ+/agPcBpSY3sB7s3YviO+XvvxTF wPwHmMzuv6xiXeA4pSYc/Ln6nHH+ZGwROUaf6HDfZAMz/EWe/zK/HTsJO8o6SKSPw89F ykBc3ogVXLWppzcOlf2GdzWCEQr4vFx2St5khL3xXhxlPvCj5BJcrFfgJbtDCshY/Lnv 0+4vVb8DvdUEP/pshvcq1dDsILu5VSOyxrS2l/NufDUNkHFsshTNzv3iiwASZIsO7WAz xw9q7i6TlqYua6vvT+vDC/P3tYpILsY+JV/+dtF1bqwGtBPJxGCDD/7YFSAQ2u2O7pEF tVpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=FWYgWU43mkufkd8+sz/QgspgBghvRHIVRHzNt4RGb6A=; fh=BbJDbIRjeEWQJCQcIuAQIBtBpeaEPgnaz9+PzVmHCxY=; b=rCiK2dUbwytV8qR2yMYyva25OsYnFqo8tDnkuaf2V39YEpVO/PBw2HY8HOYT8kyClh FGh81A3r71Atqgo6/MDA5qE1Oxw00LV4BbDfwc1Y41dWfb/XbxSq5Qr4duUOALC7zxjM 5ENPMa4AsShPnA33wGTZ3xPa+CUWqB/rZX5wjpGTUJlVp8Oz/6NW1oiWQZ5mxk4Mg2kF 3QDv0RfSO+KSFi/0PNzMkwUHooOtvJMuh7o2z+7FdNbhuBkyixLHwxNyS8tNw8Ibm+tU P5DiHnG0Bxq2i9us0BnW17TWR9QdUApW+h0iYbV2zXRxCE+1Wk6E8REzOLgwEcernUrJ xiWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="RqwhUh/o"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123673-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123673-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id mf15-20020a170902fc8f00b001e0bee74c2fsi2124401plb.68.2024.03.28.14.23.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 14:23:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123673-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="RqwhUh/o"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123673-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123673-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8999F28D8D5 for ; Thu, 28 Mar 2024 21:23:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CC5013AD12; Thu, 28 Mar 2024 21:23:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RqwhUh/o" 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 AFE3B40869; Thu, 28 Mar 2024 21:23:06 +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=1711660986; cv=none; b=iujWRabQrDeDuelHGgkM/wrbFZY+TF0FAQdRHdIoiIPVK9EIBNX7jNgBXeo/E49THNxg+0uiU3MRaFuKQbyt5O0Zh9vHlw++ucckRaLsTs7pErhajqAg8uy+wG2C/yCjcRxjTzsj2WHuPptRYRy0P1lf6PBic7jAWuNxdr3y3bQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711660986; c=relaxed/simple; bh=6uyEuz7uekBnhha4U4S1CwLDt+blkt9SneZjG9SA4/E=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Yx6GDzqNHFBnGrTbGLtPYSn5FQ8ULSPGArIWnZgbuMk62k7exDY2ROCHzHpssc9SGLOv4jA4GbSapUuQYmNLwdUF8bxNfb7gyV92rq/czK0bVhNc0cnnHMt4Jz159TZ4ADeASZrz/k84Dn8iI43wKdAtauVXWjgemFUSvwmQCbQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RqwhUh/o; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63365C433C7; Thu, 28 Mar 2024 21:23:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711660986; bh=6uyEuz7uekBnhha4U4S1CwLDt+blkt9SneZjG9SA4/E=; h=From:To:Cc:Subject:Date:From; b=RqwhUh/odbJ5s8t/G5PqQfAGzXnQj0rGFNJPuNhAkTn6S9mYHa5Tf5aP2rO8UiArc HalAga3kCXTYihP8x2pDaPBGxr48bIdndSFQoTsen0Pi6VBQiASjZ1AzvWWaZSpIC+ U0iyzm1tmJHIZ3QvC3ZPuMSy7JUDFt5Stg8+HHGQZpRbhJUsuIUSurJroMZQGoQGp/ KSCsi9C0OvMcsIEIlOVwDVLrzXVZknAsEqQUgdnxPQZ6eexutwkjtdCPgwcfuvUaFc T4IDCDR2TObmUF9OIFsIfXkz6nlU1kgB5JEam5dCUb6VIFzz9e2G66Ihx63HpFiZcV kBcHQLOlsV7Vg== From: Bjorn Helgaas To: linux-pci@vger.kernel.org Cc: Edmund Raile , Takashi Sakamoto , Alex Williamson , linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: [PATCH] Revert "PCI: Mark LSI FW643 to avoid bus reset" Date: Thu, 28 Mar 2024 16:23:02 -0500 Message-Id: <20240328212302.1582483-1-helgaas@kernel.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Bjorn Helgaas This reverts commit 29a43dc130ce65d365a8ea9e1cc4bc51005a353e. 29a43dc130ce ("PCI: Mark LSI FW643 to avoid bus reset") by Edmund was based on the assumption that the LSI / Agere FW643 has a defect such that it can't recover after a Secondary Bus Reset (SBR). But Takashi Sakamoto reported that SBR works fine on this same FW643 device in an AMD Ryzen 5 2400G system, so apparently there is some other aspect of Edmund's system that accounts for the issue. The down side of 29a43dc130ce is that when the FW643 is assigned to a VM, avoiding the SBR means we leak data out of the VM. Revert 29a43dc130ce until we figure out a better solution. In the meantime, we can use the sysfs "reset_method" interface to restrict the available reset methods. Fixes: 29a43dc130ce ("PCI: Mark LSI FW643 to avoid bus reset") Reported-by: Takashi Sakamoto Link: https://lore.kernel.org/r/20240325012135.36861-1-o-takashi@sakamocchi.jp Signed-off-by: Bjorn Helgaas --- drivers/pci/quirks.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index bf4833221816..eff7f5df08e2 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -3765,14 +3765,6 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x003e, quirk_no_bus_reset); */ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_CAVIUM, 0xa100, quirk_no_bus_reset); -/* - * Apparently the LSI / Agere FW643 can't recover after a Secondary Bus - * Reset and requires a power-off or suspend/resume and rescan. Prevent - * use of that reset. - */ -DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATT, 0x5900, quirk_no_bus_reset); -DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATT, 0x5901, quirk_no_bus_reset); - /* * Some TI KeyStone C667X devices do not support bus/hot reset. The PCIESS * automatically disables LTSSM when Secondary Bus Reset is received and -- 2.34.1