Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3842836rdb; Mon, 11 Dec 2023 01:16:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3lWNIQOu8/mJIiJY4nrtIIIPCryawmMBy/2d4vY3YsadMAYwrsD9GpDLY/4P57jw0juhZ X-Received: by 2002:a17:902:8498:b0:1d0:6ffd:6e91 with SMTP id c24-20020a170902849800b001d06ffd6e91mr1531806plo.137.1702286175153; Mon, 11 Dec 2023 01:16:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702286175; cv=none; d=google.com; s=arc-20160816; b=odqk98EOtO4nV6uvjOzz+jW7QAoZkBzpWtdv3+3gGZ+1MsHFl7SuDrU1Il1jHGXnEJ E3+LvWVE7SIkyE4cNWvTWice53xV3xsJf/pKWraFBs3s4HLwjnYdzXp+kLoheyTXWZ5Y z+0IXeZmZUUUZ+8p+DqOeASNcS0K3mvPXKkQmcbqE7Zxbn9UuTGhydJvEtHzMQyuhOGY BERDJ9hsUsRiKAVCafmdVDSlNTqw17kglQnW6M0s1i4JgeO8ymuzjNRXZ/ZJ/Ef4z+5p X4jQVOh2EGjxVJEZ1twbvp/rPcFzhXfTFOx6GS7meqDFQERy8zmtarSzZzk/hMxQfiC/ Ix0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=nsgLOOVUy97JD61+9dBsupH4RkHvaasygnxeORgoah0=; fh=Z4yKzCmgYREqoYTNz+A+L8FZP0Rx6/6WxgGL2aBeipk=; b=mMRb+XUwfL2CYCy+Ue+q8Z1IY1zXRpVrhg5rca/lMNJvmqdCUq+Pj0xeb/9XPjVPz3 37Jk1ml5fB5xmxjVB4el8XlGRZ7FddeeKiwgZQbjNplfNUPjxMnV+xIrZ7IZr/x0uam0 Lnz3deoKELkNSuVEkN+fE2Rt8ineAVnrCRDiyzS+EI5nONC4kpgBy85/JGGjCQWvWvqC CzzmdrlzsxmLn/NfUHWCcJ65dykOj7IxeCCp2LYtlp0GVs1rFYUdGLi3j3ELXpPVWuBm cHIM3PI1GGAABaq9zXm1DxamxbWWuPNpOFXPqNrEv9M7IU7fSPLIeFRKsGCBi5Bxt6Ds CnZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id y8-20020a17090322c800b001cfb316a183si5929176plg.141.2023.12.11.01.16.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 01:16:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id E695A807E425; Mon, 11 Dec 2023 01:16:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234471AbjLKJP4 (ORCPT + 99 others); Mon, 11 Dec 2023 04:15:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234105AbjLKJPy (ORCPT ); Mon, 11 Dec 2023 04:15:54 -0500 Received: from mx2.zhaoxin.com (mx2.zhaoxin.com [203.110.167.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68658DF for ; Mon, 11 Dec 2023 01:16:00 -0800 (PST) X-ASG-Debug-ID: 1702286158-1eb14e538c2fb40001-xx1T2L Received: from ZXSHMBX1.zhaoxin.com (ZXSHMBX1.zhaoxin.com [10.28.252.163]) by mx2.zhaoxin.com with ESMTP id tlsxMCEnclsgaayR (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 11 Dec 2023 17:15:58 +0800 (CST) X-Barracuda-Envelope-From: LeoLiu-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.163 Received: from ZXBJMBX03.zhaoxin.com (10.29.252.7) by ZXSHMBX1.zhaoxin.com (10.28.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 11 Dec 2023 17:15:47 +0800 Received: from xin.lan (10.32.64.1) by ZXBJMBX03.zhaoxin.com (10.29.252.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 11 Dec 2023 17:15:44 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.163 From: LeoLiu-oc X-Barracuda-RBL-Trusted-Forwarder: 10.29.252.7 To: , , CC: , , , , LeoLiuoc Subject: [PATCH v2] PCI: Extend PCI root port device IDs for Zhaoxin platforms Date: Mon, 11 Dec 2023 17:15:43 +0800 X-ASG-Orig-Subj: [PATCH v2] PCI: Extend PCI root port device IDs for Zhaoxin platforms Message-ID: <20231211091543.735903-1-LeoLiu-oc@zhaoxin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231201120942.680075-1-LeoLiu-oc@zhaoxin.com> References: <20231201120942.680075-1-LeoLiu-oc@zhaoxin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.32.64.1] X-ClientProxiedBy: zxbjmbx1.zhaoxin.com (10.29.252.163) To ZXBJMBX03.zhaoxin.com (10.29.252.7) X-Barracuda-Connect: ZXSHMBX1.zhaoxin.com[10.28.252.163] X-Barracuda-Start-Time: 1702286158 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://10.28.252.36:4443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at zhaoxin.com X-Barracuda-Scan-Msg-Size: 1227 X-Barracuda-BRTS-Status: 0 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.117936 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 11 Dec 2023 01:16:12 -0800 (PST) From: LeoLiuoc Add more PCI root port device IDs to the pci_quirk_zhaoxin_pcie_ports_acs() for some new Zhaoxin platforms. v1 -> v2: 1. Add a note to indicate future Zhaoxin devices will implement ACS Capability based on the PCIe Spec. 2. Includes DID of more Zhaoxin devices that have not yet implemented ACS Capability. Signed-off-by: LeoLiuoc --- drivers/pci/quirks.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index ea476252280a..f4546590d9e3 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -4706,10 +4706,14 @@ static int pci_quirk_zhaoxin_pcie_ports_acs(struct pci_dev *dev, u16 acs_flags) (pci_pcie_type(dev) != PCI_EXP_TYPE_DOWNSTREAM))) return -ENOTTY; + /* + * Future Zhaoxin Root Ports and Switch Downstream Ports will implement ACS + * capability in accordance with the PCIe Spec. + */ switch (dev->device) { case 0x0710 ... 0x071e: case 0x0721: - case 0x0723 ... 0x0732: + case 0x0723 ... 0x0752: return pci_acs_ctrl_enabled(acs_flags, PCI_ACS_SV | PCI_ACS_RR | PCI_ACS_CR | PCI_ACS_UF); } -- 2.34.1