Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2490284lqp; Sun, 24 Mar 2024 23:18:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlCc2jINeqLybpo81nTJp7PW5M5TsJjZbvJQurdQJ8Zxya7eL3dgaZiy6W6N33TvqHDfvxrfGQd1aHKO7TGQEFiJuK3zu1ZNzlSOHAfQ== X-Google-Smtp-Source: AGHT+IFWv+5kIA3MGFYs2nXmx5eQEDzTi/jVwiffPavKQscbVMHplBC6aILlnbUKT36oWowtRvaD X-Received: by 2002:a17:903:445:b0:1dd:878d:9dca with SMTP id iw5-20020a170903044500b001dd878d9dcamr7562994plb.48.1711347527365; Sun, 24 Mar 2024 23:18:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711347527; cv=pass; d=google.com; s=arc-20160816; b=PpvlHEP9Pu7tRWEoNQre12JzhaEXPtHzoFx+udstN1jo/fck/YfT4k3xaoxU/jcLm8 4XjuoVjFEbXVAcYFfl11VPik/ejGB0FJAaIyAN+QV5s5MSeR0I77Jh8KfUV7p675c8VH IwaofeRlba/F6v+0MMW2bGvoO6RsSQCXRFnGWiby3StyQyhhLjueSwgOI+U5SOK+8Mc9 8FLo8hLhP7T/NPkkgyof0Cfg9MS4Fq9N/sMF26WWe6+JB6W0gMDsccmaDuRT/xO3LbnZ FkKV4IqBwXW3ztZUE8QbOMUlJq7U6wdUAArN4qw9/T/iV4jHbAQslE0y1r1ntx514Z3g cPAg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=cnqg3qd6kIjKLB4GLj+6BjhZZZfu+kCccHmCjFpuiOo=; fh=GY+rq80PW5p4AjzPu5MN1xhO32CWE0M2ydDybaxr8po=; b=YEUN+LU7pt95mo64JkKNUix6MkCc5lXCIxiYkgDUq4Mx9lrf3lqXd9gW0k1HfCqrJV 225X1yaRw+nPv4qicostyxjCeYwy7L8rtX2rZtpIq76GfqFqMe19G311A7NxDh/PibBc NOIeVR9XDZxPWiIPs/jocddY5dhWoFTLlN/zoPjK6X8+NJaj0/JTSzbKGLK7kUE9LEyP +AWF5gaDFVy/nmULxfpECujv7uWyxkRPxX2btAfbLS5J8ciNHtqM3GxaWhqwQN8KHjbM s1aOSx78ZlUdUlrLF5RZE90CK0CNzMLSAqeWP5PHkeqhcoFfVTOVFFRqs+z1KEoQHe8w dXeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=T5xxeUJm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114583-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114583-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 q8-20020a170902788800b001e00adb94b9si4368189pll.608.2024.03.24.23.18.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 23:18:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-114583-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=T5xxeUJm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-114583-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-114583-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 0FD18286567 for ; Mon, 25 Mar 2024 06:18:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0CF001FDA21; Sun, 24 Mar 2024 23:53:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T5xxeUJm" 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 CC14914C580; Sun, 24 Mar 2024 23:17: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=1711322227; cv=none; b=u88eilGeSAK4Ubq2oPTvVaLf8j27lGKC4BMfaeTR8FgQJ9sLvFmBCkLeo65JWTneaOIpGsSgWfMkGx8BqYGG8Q5HeKx5+4ruH8QpDUaWhmbYKnHN2yGmwFynP2uj6gXOIlNN1BH4LcTvfuYtm2TYjlATYkLycP8199d/4WjGsq8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322227; c=relaxed/simple; bh=Z/mlgY4VXogCly0KBDlMulkMi09u0VClrfmIPZj5Bik=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CruhT9MBhyRzWIVkOOLeofPnDD7XkhUfQ46C8N7WSrKFpZSsurE6BIVvouqQXgr7mKX63mbw68QthCe7i0Ruq0I9fv7nuFln7+IeSwHNw7Rk0Gta28glvpyByx1A+GzyHcFmu/fkwnd7HfKEO2LClS4Lt2mBtJc64QLmtG/4bL8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T5xxeUJm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19B82C43390; Sun, 24 Mar 2024 23:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322226; bh=Z/mlgY4VXogCly0KBDlMulkMi09u0VClrfmIPZj5Bik=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T5xxeUJm5DKlcXUdGbt2QSJt2JqKjAZPJ3PoHvPi9KlHAlE4aaDN9ZxsHDomyUnfa CPiC2jOAYAyRDP5vpB4FjpeukOFjGqjF2Vjz5Ht2+dJC2OYVU9wI918KdGcZFae4fm Lo06HOoRzn8VCQZMNv9nAHs8GOJweruDG+G6B8PmCS/mbE0hS5InBOjAQAiUWrVXcA WcDXzdMbQUm4jRx2If176ymMfgtbfPcgh1JCoP8eMCYNNAV17ZfiZeWoQqZ7h2D5Wd Wv1FWVntR7XKy9EBye6Nz277UKZC3Gk1GnyUBX7TVejnxa6iATA7SLuVbtYcGee1xS NBa21CgpfPiyg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?J=C3=B6rg=20Wedekind?= , Bjorn Helgaas , Sasha Levin Subject: [PATCH 6.1 307/451] PCI: Mark 3ware-9650SE Root Port Extended Tags as broken Date: Sun, 24 Mar 2024 19:09:43 -0400 Message-ID: <20240324231207.1351418-308-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-1-sashal@kernel.org> 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=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Jörg Wedekind [ Upstream commit baf67aefbe7d7deafa59ca49612d163f8889934c ] Per PCIe r6.1, sec 2.2.6.2 and 7.5.3.4, a Requester may not use 8-bit Tags unless its Extended Tag Field Enable is set, but all Receivers/Completers must handle 8-bit Tags correctly regardless of their Extended Tag Field Enable. Some devices do not handle 8-bit Tags as Completers, so add a quirk for them. If we find such a device, we disable Extended Tags for the entire hierarchy to make peer-to-peer DMA possible. The 3ware 9650SE seems to have issues with handling 8-bit tags. Mark it as broken. This fixes PCI Parity Errors like : 3w-9xxx: scsi0: ERROR: (0x06:0x000C): PCI Parity Error: clearing. 3w-9xxx: scsi0: ERROR: (0x06:0x000D): PCI Abort: clearing. 3w-9xxx: scsi0: ERROR: (0x06:0x000E): Controller Queue Error: clearing. 3w-9xxx: scsi0: ERROR: (0x06:0x0010): Microcontroller Error: clearing. Link: https://lore.kernel.org/r/20240219132811.8351-1-joerg@wedekind.de Fixes: 60db3a4d8cc9 ("PCI: Enable PCIe Extended Tags if supported") Closes: https://bugzilla.kernel.org/show_bug.cgi?id=202425 Signed-off-by: Jörg Wedekind Signed-off-by: Bjorn Helgaas Signed-off-by: Sasha Levin --- drivers/pci/quirks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 51d634fbdfb8e..c175b70a984c6 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -5415,6 +5415,7 @@ static void quirk_no_ext_tags(struct pci_dev *pdev) pci_walk_bus(bridge->bus, pci_configure_extended_tags, NULL); } +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_3WARE, 0x1004, quirk_no_ext_tags); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0132, quirk_no_ext_tags); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0140, quirk_no_ext_tags); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0141, quirk_no_ext_tags); -- 2.43.0