Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3841384rdb; Mon, 11 Dec 2023 01:12:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IESm4gtcw6QmEYHqPZt1/mJO5g7ahpDDAHWZXhffXjVn0yWhsF+zEPuqz007PdFBpJZPegT X-Received: by 2002:a05:6a00:a13:b0:6cd:f3f4:56c9 with SMTP id p19-20020a056a000a1300b006cdf3f456c9mr4630083pfh.17.1702285963125; Mon, 11 Dec 2023 01:12:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702285963; cv=none; d=google.com; s=arc-20160816; b=jKfcruHaFZDm/18IfvbrXZfGOx4JH4fZVf1jM4kUT+W0Go0dTi+9V0ooX+jvukoc3w HOlzFKnm0SW3NaocPoBhOdVfByKRWHO3lcNToq1fr0YW/8k3IVX4WQdByxgP55j9li7b wQoLRsdbOsHTQpv8MhFNN/ReUkKEKbTLGYcQYQMQOPqvAKIqJV+uhgjSk5PY/4o2gqMh di5IOVGxepAh8NFCtPiK27mUdHRYOtO72k0FdxobpaUEotVZ7wAB2fN239/uZ4wRmHFo IBtJSo/aKwPsJa7Y3gmWudzwvXBuS3tro6KGG4xrxIqXd4Fl6MTSDglAX0zaZ4JhnD2I QIFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=GmTCywm+nJ4eIKJP3xz1pTHUTKAagy0uKvUnb342+40=; fh=D+UlYEMtx6M2IhSoK5XsJ6IeweTCgjXJuJTyxk6HnhE=; b=uz9VCGm5fF+e2nLOjsRMlxnDfpkTDO006wh3Pjjvaodiob6MpbvjCdTqIWF0/ASXzt 3bgza6ug6hu0tV8wqhDLkQmrNsaEXKlC71La9SVHp59rZd4f/jPxGBGUULL0YoeO731T eu/drJnBnty/y1AhvF0mmy8SuaRCJxwmgSwKVmJwzHDGw1alknC6o42LHfJPkVqKWHFu c9DF5RV1l8+zEq9/FHVfVYKNsJOFIL+F5XooQ9ozfSARFxc5xKUo9g0+CYLrpOvKrC35 h1LSdVxr3zZg1D5OeLjff9phc8jby7cBJiqWUXJUrrsGGHbYOAfPgmPfb+iIeB+DKr/+ bb6g== 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:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id jc31-20020a056a006c9f00b006cded1e8135si5655426pfb.197.2023.12.11.01.12.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 01:12:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id BD71E8055ADB; Mon, 11 Dec 2023 01:12:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234156AbjLKJMP (ORCPT + 99 others); Mon, 11 Dec 2023 04:12:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234152AbjLKJMO (ORCPT ); Mon, 11 Dec 2023 04:12:14 -0500 Received: from mx2.zhaoxin.com (mx2.zhaoxin.com [203.110.167.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E60FDF for ; Mon, 11 Dec 2023 01:12:19 -0800 (PST) X-ASG-Debug-ID: 1702285935-1eb14e538e2fbd0001-xx1T2L Received: from ZXSHMBX2.zhaoxin.com (ZXSHMBX2.zhaoxin.com [10.28.252.164]) by mx2.zhaoxin.com with ESMTP id RYURT7GT3wc4xNmH (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 11 Dec 2023 17:12:15 +0800 (CST) X-Barracuda-Envelope-From: LeoLiu-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.164 Received: from ZXBJMBX03.zhaoxin.com (10.29.252.7) by ZXSHMBX2.zhaoxin.com (10.28.252.164) 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:12:08 +0800 Received: from [192.168.1.204] (125.76.214.122) 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:11:47 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.164 Message-ID: <7355325f-6038-49ca-8280-114352a5a4ac@zhaoxin.com> X-Barracuda-RBL-Trusted-Forwarder: 192.168.1.204 Date: Mon, 11 Dec 2023 17:11:21 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] PCI: Extend PCI root port device IDs for Zhaoxin platforms To: Bjorn Helgaas X-ASG-Orig-Subj: Re: [PATCH] PCI: Extend PCI root port device IDs for Zhaoxin platforms CC: , , , , , , References: <20231201155320.GA518898@bhelgaas> From: LeoLiu-oc In-Reply-To: <20231201155320.GA518898@bhelgaas> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [125.76.214.122] X-ClientProxiedBy: ZXSHCAS1.zhaoxin.com (10.28.252.161) To ZXBJMBX03.zhaoxin.com (10.29.252.7) X-Barracuda-Connect: ZXSHMBX2.zhaoxin.com[10.28.252.164] X-Barracuda-Start-Time: 1702285935 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: 1548 X-Barracuda-BRTS-Status: 1 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 howler.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 (howler.vger.email [0.0.0.0]); Mon, 11 Dec 2023 01:12:39 -0800 (PST) 在 2023/12/1 23:53, Bjorn Helgaas 写道: > On Fri, Dec 01, 2023 at 08:09:42PM +0800, LeoLiu-oc wrote: >> From: leoliu-oc >> >> Add more PCI root port device IDs to the >> pci_quirk_zhaoxin_pcie_ports_acs() for some new Zhaoxin platforms. > > Can you please add a note about the plan to deal with this for future > devices, e.g., something like "future Zhaoxin devices now in > development will advertise an ACS Capability as described in the > PCIe spec"? > > The point of quirks is to work around hardware that is broken or > doesn't conform to the spec in some way. We have to add quirks when > broken hardware is already in the field, but we should have a plan to > fix newer devices so they don't require quirks. > Okay, note will be added in the next version. Sincerely, Leoliu-oc >> Signed-off-by: leoliu-oc >> --- >> drivers/pci/quirks.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c >> index ea476252280a..db74f8f07096 100644 >> --- a/drivers/pci/quirks.c >> +++ b/drivers/pci/quirks.c >> @@ -4709,7 +4709,7 @@ static int pci_quirk_zhaoxin_pcie_ports_acs(struct pci_dev *dev, u16 acs_flags) >> switch (dev->device) { >> case 0x0710 ... 0x071e: >> case 0x0721: >> - case 0x0723 ... 0x0732: >> + case 0x0723 ... 0x073b: >> return pci_acs_ctrl_enabled(acs_flags, >> PCI_ACS_SV | PCI_ACS_RR | PCI_ACS_CR | PCI_ACS_UF); >> } >> -- >> 2.34.1 >>