Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1134014rdb; Fri, 1 Dec 2023 07:53:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFR9YC/FjSE8TJRoHZYnwkhB+pzR1b/czEqx7nTmHGaukPRAXoa3AK1Glz+AN2gaiC1jdnU X-Received: by 2002:a17:90b:4a03:b0:283:21d3:11eb with SMTP id kk3-20020a17090b4a0300b0028321d311ebmr22321903pjb.3.1701446013974; Fri, 01 Dec 2023 07:53:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701446013; cv=none; d=google.com; s=arc-20160816; b=uTmg5r0OR5hqXVrqveWi1XW6YgOiaMzrERCOepKwIJsQG0ecVz0VfgtoUfLDfW+o+C XL4XbAnSivgCPlCQo0iY1wrcoZfpT3DfrLI56oT+ewtf/AinV/sL/HmtY2AYkrEeQMIX LJBXTdvdGZgiDRuM6H6lZyP2cJO9hHq28KEdmVUKm5IQdTsdkvpOsbZRB4ZmbaOo928g IhjVwGiUCA0zo5PmPjqui2O98qKLJu1zvpa93nsnwoW+aFq9lx5OcyiHvwKum7Fa3Si+ XLa+ByET0LHEYasFG6utKbA5x0cDHoGXeeT1+x+QkCkljL9U+YQ7pdiHfELkVSoKAPwm vWfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=XZ0j+lrDdeWIQA+XW7VBsdAF+h7cNbWwEwNJQGKInrQ=; fh=A5LnFD/VO9GCKfL+mD+pegdHwPJyaMD9Xzclqj1uuhs=; b=VGsSS3bl9poNXws5HJPCBF8FeqDhFmt3map5h9T+G8xwXtSsitQRHy1B5n3PqbDWFR EHCmy9tG6YdpZwk+QyFJQu3zGAom5f6GvmZV0bj1NsCreQjtxa5mAasguoTkPRowvnh6 RkEA8urkeo2fzi0XbjUU801rxgYFqSESvofOJDLPtB21c+eyvvE3XeD5D1mmh6xEmohV /PUAJyTuzhE+4LsEmzTWDrOcIxtuoh28PqAeUsQc97yaOAVKjs+GNfIG+cIauCMLcXNH VcK0r2CQeaQ7nB1jMoG5nIV1gBq6dpC23Oy+t3x+BnUfb84/jzYrG65tTQebIurbB/Iq OIjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Of7zrhHZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id v1-20020a17090a7c0100b00285a0b546eesi3442509pjf.155.2023.12.01.07.53.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 07:53:33 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Of7zrhHZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id D3ADD8375E8A; Fri, 1 Dec 2023 07:53:31 -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 S1379489AbjLAPxS (ORCPT + 99 others); Fri, 1 Dec 2023 10:53:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379471AbjLAPxR (ORCPT ); Fri, 1 Dec 2023 10:53:17 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F00419E for ; Fri, 1 Dec 2023 07:53:24 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB7D5C433C7; Fri, 1 Dec 2023 15:53:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701446004; bh=Z0b5BVslyfrqgtbZ4YRuZ38WQuFzRRb7gFv+mS/ELXI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Of7zrhHZR3zdxbtwFj8w34us/XZGonkVZ/fs9bneTntO9uhsXiCFrRvxdW/Rg5s03 GOo5jrIiVMBqPXHNhL6acynkOhY5UcwdFkn+DZM+fADd70DPOhi3ptTbRF6rJQ1VMD ge/NiHq+q1zm2REY4ynj2v8//wjdsIZJiXoYwkDKZZfWgmG+eJGfWc937bbhpP73dH 83T0HaWcXr0paSmHw5rv03VsTRcWA3+4me/W1Z132BiR9abcAEoHjP/OAMmCBF+Eqq fyX2H72S63kQvmHc/rIVlpUBkQQXx5UhaGPMHBxqWOVD3gtTU5gCiXb8KLH3LaJYwR a7OXWIciSztsw== Date: Fri, 1 Dec 2023 09:53:20 -0600 From: Bjorn Helgaas To: LeoLiu-oc Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, CobeChen@zhaoxin.com, TonyWWang@zhaoxin.com, YeeLi@zhaoxin.com, Leoliu@zhaoxin.com Subject: Re: [PATCH] PCI: Extend PCI root port device IDs for Zhaoxin platforms Message-ID: <20231201155320.GA518898@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231201120942.680075-1-LeoLiu-oc@zhaoxin.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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]); Fri, 01 Dec 2023 07:53:31 -0800 (PST) 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. > 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 >