Received: by 10.192.165.156 with SMTP id m28csp774947imm; Wed, 11 Apr 2018 07:06:16 -0700 (PDT) X-Google-Smtp-Source: AIpwx49PGUkFtLZ6TBJdHyeNgzZt+a6q5G1vQBOrE3U1l1K66c/8ZkYPD6DhNlkb4wQBRs2p8uPs X-Received: by 2002:a17:902:76c3:: with SMTP id j3-v6mr5232008plt.257.1523455576777; Wed, 11 Apr 2018 07:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523455576; cv=none; d=google.com; s=arc-20160816; b=jGdfql2wbN7TV9YesCwUB8A92IndrJ7PaOsH3g/Jb8bMDYkRwmM48m+VKAK6i+IWFh BjWUe0C5FwTyVYZWkvoFsx55L3CDZ+23RC27l6/KVC/SIEZTPP3m8Tgq6rYKI0XbrPLf kbd8pkNgp+tzhp1/ktgmMfx862O40QgCWmGWxJW3j3OJlF1MiktwuGYz0y+f9t40qYt5 mdl01YquBGHDs7hZwHIa6llbfi6vL3zEBBS8Q+hQCSFOOe2P6y4cBN9vCUP3hO7GQUGH lZ6jdm8jAyGyWts+QsPFw3wqAoM+lXg46aeGJWAbQ7GS2m8y5j90wmSsF6npgflKlf8r 08jg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=/vHKNYl0mVxa/A9jLRX+qDhnKEWJr6bqKGlVD43yBfA=; b=d1iTnY1TQtwoMNjCc7T/lEVd5pbbYBVJD+ekMXVLohwlkWJ5zhFExmFjj94OiZ95ft 0tt89eAniU2UUK0J27D5Nyv28UbPjA/uiL4Km8tm09DM5wPnC0+47pdUAZSZ794fzm8y 4TkM4GIdoN2lnL+aYCe0CLTPMibC7CZRiMQG7nNXqqU75HHhaiZiD+T/2RGdDd2/wn6J gPQ2rGk0GMbkwwKIcBsusmOkY5xZE0ONvWV7xX40NGfe6HfCNZWRoqhIZOuHrUCz6XhF DJV+MJoiJekQAORRHn5glTjAg7Az49d4QZUdW9JE9OCgbWmBg0Y06ZHY90tK4qKSItIx A3nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=k9Oj22UE; dkim=pass header.i=@codeaurora.org header.s=default header.b=k9Oj22UE; 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 o6si808305pgs.51.2018.04.11.07.05.38; Wed, 11 Apr 2018 07:06:16 -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=k9Oj22UE; dkim=pass header.i=@codeaurora.org header.s=default header.b=k9Oj22UE; 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 S1753153AbeDKOCO (ORCPT + 99 others); Wed, 11 Apr 2018 10:02:14 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:37708 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753056AbeDKOCK (ORCPT ); Wed, 11 Apr 2018 10:02:10 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E657460274; Wed, 11 Apr 2018 14:02:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523455329; bh=04hCzzuuUjW8PYR+DjtuKS42Q38oAK3mxSeoLc0eCPo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=k9Oj22UE6uZOT0RF5pJEF8pf1gV7vZ9DQfgfCwT0sFSZ/TYpY6IwdPMP5TnlRKUFS YEIRvuFdonfaXewOYmrH9gm5oIChnZ56EbsCdVj4mM7jWZVx+NVYtmuni+FRDKqRqw 6b6KRxHvWAiYzWsvYLrIlJUQxsEa+BpbE5IT3nfo= 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 [10.235.228.150] (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6CF2360386; Wed, 11 Apr 2018 14:02:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523455329; bh=04hCzzuuUjW8PYR+DjtuKS42Q38oAK3mxSeoLc0eCPo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=k9Oj22UE6uZOT0RF5pJEF8pf1gV7vZ9DQfgfCwT0sFSZ/TYpY6IwdPMP5TnlRKUFS YEIRvuFdonfaXewOYmrH9gm5oIChnZ56EbsCdVj4mM7jWZVx+NVYtmuni+FRDKqRqw 6b6KRxHvWAiYzWsvYLrIlJUQxsEa+BpbE5IT3nfo= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6CF2360386 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 Subject: Re: [PATCH] PCI: quirk HT1100 & HT2000 and one HT2100 Root Ports for Extended Tags To: Bjorn Helgaas 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, Greg Kroah-Hartman References: <1522882209-9743-1-git-send-email-okaya@codeaurora.org> <20180410194144.GD54986@bhelgaas-glaptop.roam.corp.google.com> <20180410195008.GE54986@bhelgaas-glaptop.roam.corp.google.com> <1c94361d-7a8d-ad18-12e5-1612326a54db@codeaurora.org> <20180411135151.GB91792@bhelgaas-glaptop.roam.corp.google.com> From: Sinan Kaya Message-ID: Date: Wed, 11 Apr 2018 10:02:07 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180411135151.GB91792@bhelgaas-glaptop.roam.corp.google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +GregKH On 4/11/2018 9:51 AM, Bjorn Helgaas wrote: > On Tue, Apr 10, 2018 at 04:18:01PM -0400, Sinan Kaya wrote: >> On 4/10/2018 3:50 PM, Bjorn Helgaas wrote: >>> 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. >>> >> >> I agree. It causes boot issues on some AMD Opteron machines. It should >> probably be back-ported too. > > We started enabling extended tags with 60db3a4d8cc9 ("PCI: Enable PCIe > Extended Tags if supported"), which appeared in v4.11. > > So I added these stable tags: > > CC: stable@vger.kernel.org # v4.11: 62ce94a7a5a5 PCI: Mark Broadcom HT2100 Root Port Extended Tags as broken > CC: stable@vger.kernel.org # v4.11 > > I'm not sure I'm using the stable request correctly, but my intent is: > > - 62ce94a7a5a5 appeared in v4.14, so cherry-pick 62ce94a7a5a5 to > v4.11 through v4.13 > - cherry-pick *this* patch on top of 62ce94a7a5a5 to v4.11 and later > -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.