Received: by 10.213.65.68 with SMTP id h4csp1258367imn; Wed, 4 Apr 2018 15:51:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/M0ZyCgWvAsipiRM3P/kmOYRlFYnIe02AWn1jfubhqzGBMp3XWzp0/iy3Y8PefE+0DM937 X-Received: by 10.99.182.6 with SMTP id j6mr13144611pgf.122.1522882310806; Wed, 04 Apr 2018 15:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522882310; cv=none; d=google.com; s=arc-20160816; b=F+OpJM1rveMZ716Snm43EFPM3o1dLCfAAUxQue9x8fVxvgcBp+3Ww1ad+DHZc5cqX6 AefzIHW90WGxTKuZwlk4z0dXbeBlBiP22xltde9lcWeMHBYtEEFvRv7niJL4axtTBgrV GlGlMkC0u0JJlT7lLIxQt4VI7MRTwZgKDCSIyaw/hlZ7X3nIQc91tQl47hu2vYf152FF JzzDPrASogJ9QHy9SsCR6yugcabdS9XqdYqpog/P824+0qowjthCa4FdrmdIXS/8uNBO F7jJ6d4MInsEVwSxTyrwXLwayA0+LRuOIwgRmpKlbUexyjHnNdDzGjTZXvYx2y9pbKxw rmjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature :dkim-signature:arc-authentication-results; bh=qn7KmEjYy8PrRlZXheeOKxqlt+tUJsyVOKMdb1LbucM=; b=hH+OEv8uvodUoe7yhPTOFD6uThOb2fsjHPbOD9id1po0FQErB+y9a8ezF5GfiLX6Nn GWs+VemuY0hRNtxEnDuxWQI5Uugmg24XKQMQt61eH+zpXMIUs65RtWM6W12E/SxfEwt+ t0ne4zZsNcz7ZquCqGLNiNJy7QRTFOuRU0LaVMpwd9Y9QE/ocVHo9QUnVI2DUzTChl7J xamyIyKyeCjU8rFydxu1m2vFRz0EzDI14f3g3Xh4kTldd0mhlFElD8X8E0L6M5qMLI17 cKSkQ3AGwy7X56/m56tmsgDn4FuP5h2sUPXPjz4IBUy5myI5u29eDGY3YysVOYbBHAOS /lYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=CkyM6RGy; dkim=pass header.i=@codeaurora.org header.s=default header.b=CkyM6RGy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10si4353839pgv.539.2018.04.04.15.51.34; Wed, 04 Apr 2018 15:51:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=CkyM6RGy; dkim=pass header.i=@codeaurora.org header.s=default header.b=CkyM6RGy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752501AbeDDWuU (ORCPT + 99 others); Wed, 4 Apr 2018 18:50:20 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:59576 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752297AbeDDWuS (ORCPT ); Wed, 4 Apr 2018 18:50:18 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CE7846081A; Wed, 4 Apr 2018 22:50:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522882217; bh=BJXclVsMwXl7NA9q1+t3Hdqx2W817hV/F5f0Mv5e1zQ=; h=From:To:Cc:Subject:Date:From; b=CkyM6RGys8YuBiYEAMm130f4a/Da5pHmFdYLAAaCNlHDUkw/ic9/F80lRGo/S3BH/ 0q0Mwvps0yiXyM4WiOMM2nA7fr4OvK0lqXDlyiIF+fJsIdw+YC+hsfT6jzzIO3XIxX xCJDbVCjttbfU5BxMlG72pV2q5fdrVA8M77mUuSw= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from drakthul.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 79370602FC; Wed, 4 Apr 2018 22:50:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1522882217; bh=BJXclVsMwXl7NA9q1+t3Hdqx2W817hV/F5f0Mv5e1zQ=; h=From:To:Cc:Subject:Date:From; b=CkyM6RGys8YuBiYEAMm130f4a/Da5pHmFdYLAAaCNlHDUkw/ic9/F80lRGo/S3BH/ 0q0Mwvps0yiXyM4WiOMM2nA7fr4OvK0lqXDlyiIF+fJsIdw+YC+hsfT6jzzIO3XIxX xCJDbVCjttbfU5BxMlG72pV2q5fdrVA8M77mUuSw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 79370602FC Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org From: Sinan Kaya To: linux-pci@vger.kernel.org, sulrich@codeaurora.org, timur@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sinan Kaya , Bjorn Helgaas , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] PCI: quirk HT1100 & HT2000 and one HT2100 Root Ports for Extended Tags Date: Wed, 4 Apr 2018 18:50:09 -0400 Message-Id: <1522882209-9743-1-git-send-email-okaya@codeaurora.org> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Per PCIe r3.1, sec 2.2.6.2 and 7.8.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 Broadcom HT1100/HT2000/HT2100 seems to have issues with handling 8-bit tags. Mark it as broken. Fixes: 60db3a4d8cc9 ("PCI: Enable PCIe Extended Tags if supported") Link: https://bugzilla.kernel.org/show_bug.cgi?id=196197 Signed-off-by: Sinan Kaya --- drivers/pci/quirks.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 8b14bd3..f012742 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4813,9 +4813,13 @@ 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_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); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0142, quirk_no_ext_tags); DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0144, quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0420, quirk_no_ext_tags); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0422, quirk_no_ext_tags); #ifdef CONFIG_PCI_ATS /* -- 2.7.4