Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3160921ybi; Thu, 18 Jul 2019 22:12:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQvUJH+JnLQ0Y9SIw6BLjW9XJKdHOfQ5q6XkdDqZ7FwW5yHSTPUEuhgT2Ux4cbyqCYIfVV X-Received: by 2002:a17:902:1aa:: with SMTP id b39mr5541303plb.333.1563513174300; Thu, 18 Jul 2019 22:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563513174; cv=none; d=google.com; s=arc-20160816; b=0GxcW+ZGaF9zqBSff9iAQqrPQ1LRA+hGYPkqnTHDnxJz03Vuke94bEZld4zsLo+4ek QcvnmKcki5rGhoTnhaWOnImI+GZGJAc8Zs3nPsy0Pds8HsXKKAP4u1SUp0uFjkt4NTTY e6MPY56v2exgqO+fl5Pi3bFGUuFVHWoTsDPWMBt3BSXnAGGV9IgViajaRpf1xnzKB8dy Cm32OjVPWOcfHk5kOR8e96vDGY8B0M3mKVy3TTyeEs/J6ez1lQqbOam9Ljw7wiW4cMxh irFplyDoUxuAZlYmPRGtsrVEhSjH/MDScYAHn75PNx4nuw4abne/aL17bm3CnnyriXQa CWqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=5BPKxKwyy70E0PWgzsROKgpqugf7Uqe2CNIzljoE6II=; b=wfsoInoOMqyCUL5EZcZKM6+9chnQAR8oRQC6UvqeGELKnyFaDGT+qWDqLGok4Doa6+ birt5soG+p/2xdRP3kUaqxCmG4TtFLenMyNIjpollu/oe2eKI1a7O1QC934JEDmqx+p7 f4eqfu/jq7INqNKIj6nMe9Dv24qR2uUhsumF3fBeK+ALl9h2TJVZ3OpA1SDa8V/IRJK/ ReNEqoyoSMieCnAbonhFXGffoUiz0TPgh1IlmcenKtEiggT9gf+E03997FcNhEJ/slG8 YIfUqI/PWqCTO+C+Q9gcBdm9tBiJiRJt7YVJaWGe593Xoh8l7O8GVvptZGpCWigEfepV 1t2A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba-inc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q32si290980pjc.2.2019.07.18.22.12.38; Thu, 18 Jul 2019 22:12:54 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba-inc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726667AbfGSFMV (ORCPT + 99 others); Fri, 19 Jul 2019 01:12:21 -0400 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:39976 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725794AbfGSFMV (ORCPT ); Fri, 19 Jul 2019 01:12:21 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=shannon.zhao@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0TXG4GTe_1563513118; Received: from localhost(mailfrom:shannon.zhao@linux.alibaba.com fp:SMTPD_---0TXG4GTe_1563513118) by smtp.aliyun-inc.com(127.0.0.1); Fri, 19 Jul 2019 13:12:17 +0800 From: Shannon Zhao To: linux-kernel@vger.kernel.org, jnair@marvell.com, bhelgaas@google.com, linux-pci@vger.kernel.org, gduan@marvell.com Subject: [PATCH] PCI: Add ACS quirk for Cavium ThunderX 2 root port devices Date: Fri, 19 Jul 2019 21:10:35 +0800 Message-Id: <1563541835-141011-1-git-send-email-shenglong.zsl@alibaba-inc.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shannon Zhao Like commit f2ddaf8(PCI: Apply Cavium ThunderX ACS quirk to more Root Ports), it should apply ACS quirk to ThunderX 2 root port devices. Signed-off-by: Shannon Zhao --- drivers/pci/quirks.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 28c64f8..ea7848b 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4224,10 +4224,12 @@ static bool pci_quirk_cavium_acs_match(struct pci_dev *dev) * family by 0xf800 mask (which represents 8 SoCs), while the lower * bits of device ID are used to indicate which subdevice is used * within the SoC. + * Effectively selects the ThunderX 2 root ports whose device ID + * is 0xaf84. */ return (pci_is_pcie(dev) && (pci_pcie_type(dev) == PCI_EXP_TYPE_ROOT_PORT) && - ((dev->device & 0xf800) == 0xa000)); + ((dev->device & 0xf800) == 0xa000 || dev->device == 0xaf84)); } static int pci_quirk_cavium_acs(struct pci_dev *dev, u16 acs_flags) -- 1.8.3.1