Received: by 10.213.65.68 with SMTP id h4csp4318073imn; Tue, 10 Apr 2018 12:53:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+FIqZ6ko7DMiCX9dKWUcqlOm8GPKHuAGqv8fdliOI5FAHLNuTAXmkeigJzHtA4uKOX92ej X-Received: by 10.98.17.210 with SMTP id 79mr1460184pfr.65.1523390039297; Tue, 10 Apr 2018 12:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523390039; cv=none; d=google.com; s=arc-20160816; b=OeNQJKyarir+4uAbjqpc6sMCfhlPTW8davC1bfgUS6cWt7T+M+f9dRBeDc67QERFSt e20WYivDixF6ZqJjauR2XtqyXiC8fXn+CLTUev71r+pSEqt6yT8TxUKxh/QjJrDyAyK9 pSl+AeSpHAjBY8loTHzE3YzjjXrsmTqEGdW5NXJ7C1rD719ZSmPWU968liYVB6rO5ZJn 4hg1EE3ierY/V/KjUZ7V0TDm38944lql8qKjcl9YRqeiHMRUo08ce7mRAHP2sBJUZZer IsmK9HvH42VRwJrgAkUFe5wuYBrwS6sdYwLpisSEiWUvcsbYhEnxUSaCTfgmFEtQUwbb /5RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=LrkRBxb6DrM5RZ/SUYsX2AuSBeZ1VdrhP4BQK5iOqxU=; b=iYU7+B2+eyD3+QBF0bI/roScWxdNSf5yfF4Wmm/J2rKZdjNZFF5lSsH5CG1Em2+SJf eUYtARFSKhRZrQT5kBpbXypF6NcIT4Vjvlr5TfU5hC9xIvTL/sR4hqBmciPushRdeBf8 uK6Go5XA9XYhdZAOmw/6eNGtnX3+qh1nrmow5SDYAngoCUvKjnvrTR9ILgAdks0mrNTf j8s0I+oYgP8S2rHInXaJfIHKr+AHeDcxwu9Br6TlwBxzlkBnC2HEQ9uR9IsJwZoAc5N8 6mXYfLBxt28ZMqAin/z6TBe3O2EZAxCtmHk8FNpMWN1onXexqqKfCrP81lzZiELuod52 lzPw== ARC-Authentication-Results: i=1; mx.google.com; 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 w10si2198853pgr.660.2018.04.10.12.53.18; Tue, 10 Apr 2018 12:53:59 -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; 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 S1753210AbeDJTuM (ORCPT + 99 others); Tue, 10 Apr 2018 15:50:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:57548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753168AbeDJTuK (ORCPT ); Tue, 10 Apr 2018 15:50:10 -0400 Received: from localhost (50-81-22-222.client.mchsi.com [50.81.22.222]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F339721785; Tue, 10 Apr 2018 19:50:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F339721785 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Date: Tue, 10 Apr 2018 14:50:08 -0500 From: Bjorn Helgaas To: Sinan Kaya Cc: linux-pci@vger.kernel.org, sulrich@codeaurora.org, timur@codeaurora.org, linux-arm-msm@vger.kernel.org, Bjorn Helgaas , open list , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] PCI: quirk HT1100 & HT2000 and one HT2100 Root Ports for Extended Tags Message-ID: <20180410195008.GE54986@bhelgaas-glaptop.roam.corp.google.com> References: <1522882209-9743-1-git-send-email-okaya@codeaurora.org> <20180410194144.GD54986@bhelgaas-glaptop.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180410194144.GD54986@bhelgaas-glaptop.roam.corp.google.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 02:41:44PM -0500, Bjorn Helgaas wrote: > On Wed, Apr 04, 2018 at 06:50:09PM -0400, Sinan Kaya wrote: > > 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 > > Applied to pci/enumeration for v4.18, thanks! Actually, this is a really annoying issue and I think the fix is appropriate for v4.17, so I moved it to my for-linus branch. > > --- > > 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 > > > > > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel@lists.infradead.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel