Message ID | 20221124081221.1206167-6-mranostay@ti.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3261251wrr; Thu, 24 Nov 2022 00:21:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf69A8qO/ds2PY+dunDhDUs9xJMGCzu1wVg8m2u1OcJHRi0SrLw2mQ8GrI0HUDMjNCfAk6RD X-Received: by 2002:a63:548:0:b0:477:b4f4:84c with SMTP id 69-20020a630548000000b00477b4f4084cmr7421364pgf.24.1669278091922; Thu, 24 Nov 2022 00:21:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669278091; cv=none; d=google.com; s=arc-20160816; b=xc0EVjIEx2B7R7cUMi1eQcXS30bphUHcevmbpLPF4ots5R8/1291++Gh2LgJFgakkX PJYRQB4IX9kvFDQWHPNjypv/PJsAkcScFW3OY2eNqb7Zx7p8DFnpsM7Yb6oEnFAiV6r2 BGei/a8bjPPXQ1TEAfF+q8DjKT7Mz/UO9BR4Gd5AxCBnpdN9pLlT5NVddGn08cRiwDDl kYWWNKFLx03osD6GZccjzvM/PS70BWov7v0TZpwujv9CK7L7HNdIPei8jRS48lYLr4rM HB4opcN0d/R3l+hx0w2kxExuNOca8y0RIMgATWN7UrQLPtJ+R0TUxdI6mT0PpwOX0XRd p+6A== 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 :dkim-signature; bh=pQRNSGirOQXjd3vm3b5fncqcHi4AeVKpPaZV1zeypiI=; b=uAvXRfcsD/eCmv6Ipth3b4ZLQrhiI1peAJl/7GGsg5QWb85Q0utVmoXO1tiZy+cRR3 jllTio+FSuOS9Owx37XcfKr2BvhFGv4hPh3Pjxj4BnyDvT2r5SbwPOH5QJR3ITDlKwe5 YnMgzlyefLE7IXsLysofz/ibYez5iKksFP8OsLIlp0CkHcuzgPs2wwy2BNRnKCiZC6Y2 k8s6Bny2rM7KzggazXm4e71d92ezqoKQGcH1yZdJ8nZFLWbiFq+p4pVKFcRs/wotr1PA BEbATdYCKgLtdxUv5I7b6+IaHliBaMvF+csqIgu6piyJRP0mCsDFkct20HoUqURCdV1/ ouMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="cNqv/qkf"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020a170902c74500b0018927073070si334333plq.589.2022.11.24.00.21.09; Thu, 24 Nov 2022 00:21:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="cNqv/qkf"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229878AbiKXIOt (ORCPT <rfc822;fengqi706@gmail.com> + 99 others); Thu, 24 Nov 2022 03:14:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230009AbiKXIOI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 24 Nov 2022 03:14:08 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22F0991C2B; Thu, 24 Nov 2022 00:13:13 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AO8CvFH028202; Thu, 24 Nov 2022 02:12:57 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1669277577; bh=pQRNSGirOQXjd3vm3b5fncqcHi4AeVKpPaZV1zeypiI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=cNqv/qkfAfNjBdcTYA/5r4/6cQa59T0HTvpNacBRLazkMGNWIEO+hDP84Ti1rJd6V osB5tJKGP0Mp27hhZsPjwQk4fqmwjD/ne28eV7+UBGRgohCGr6v4d8cnhCTBwhvbUF 9E7NxVVnUKVH5h9Vr3mgFat+TrNCOFqk/W2FahTw= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AO8Cvx2021586 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Nov 2022 02:12:57 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Thu, 24 Nov 2022 02:12:57 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Thu, 24 Nov 2022 02:12:57 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AO8Cs01010102; Thu, 24 Nov 2022 02:12:56 -0600 From: Matt Ranostay <mranostay@ti.com> To: <rogerq@kernel.org>, <lpieralisi@kernel.org>, <robh@kernel.org>, <kw@linux.com>, <bhelgaas@google.com>, <krzysztof.kozlowski@linaro.org>, <vigneshr@ti.com>, <tjoseph@cadence.com>, <sergio.paracuellos@gmail.com>, <pthombar@cadence.com>, <linux-pci@vger.kernel.org> CC: <devicetree@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-omap@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Matt Ranostay <mranostay@ti.com>, Achal Verma <a-verma1@ti.com> Subject: [PATCH v7 5/5] PCI: j721e: add j784s4 PCIe configuration Date: Thu, 24 Nov 2022 00:12:21 -0800 Message-ID: <20221124081221.1206167-6-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221124081221.1206167-1-mranostay@ti.com> References: <20221124081221.1206167-1-mranostay@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750364944398687111?= X-GMAIL-MSGID: =?utf-8?q?1750364944398687111?= |
Series |
PCI: add 4x lane support for pci-j721e controllers
|
|
Commit Message
Matt Ranostay
Nov. 24, 2022, 8:12 a.m. UTC
Add PCIe configuration for j784s4 platform which has 4x lane support. Tested-by: Achal Verma <a-verma1@ti.com> Signed-off-by: Matt Ranostay <mranostay@ti.com> --- drivers/pci/controller/cadence/pci-j721e.c | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+)
Comments
On 24/11/2022 10:12, Matt Ranostay wrote: > Add PCIe configuration for j784s4 platform which has 4x lane support. > > Tested-by: Achal Verma <a-verma1@ti.com> > Signed-off-by: Matt Ranostay <mranostay@ti.com> Reviewed-by: Roger Quadros <rogerq@kernel.org> > --- > drivers/pci/controller/cadence/pci-j721e.c | 23 ++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c > index dab3db9be6d8..c484d658c18a 100644 > --- a/drivers/pci/controller/cadence/pci-j721e.c > +++ b/drivers/pci/controller/cadence/pci-j721e.c > @@ -330,6 +330,21 @@ static const struct j721e_pcie_data am64_pcie_ep_data = { > .max_lanes = 1, > }; > > +static const struct j721e_pcie_data j784s4_pcie_rc_data = { > + .mode = PCI_MODE_RC, > + .quirk_retrain_flag = true, > + .is_intc_v1 = true, > + .byte_access_allowed = false, > + .linkdown_irq_regfield = LINK_DOWN, > + .max_lanes = 4, > +}; > + > +static const struct j721e_pcie_data j784s4_pcie_ep_data = { > + .mode = PCI_MODE_EP, > + .linkdown_irq_regfield = LINK_DOWN, > + .max_lanes = 4, > +}; > + > static const struct of_device_id of_j721e_pcie_match[] = { > { > .compatible = "ti,j721e-pcie-host", > @@ -355,6 +370,14 @@ static const struct of_device_id of_j721e_pcie_match[] = { > .compatible = "ti,am64-pcie-ep", > .data = &am64_pcie_ep_data, > }, > + { > + .compatible = "ti,j784s4-pcie-host", > + .data = &j784s4_pcie_rc_data, > + }, > + { > + .compatible = "ti,j784s4-pcie-ep", > + .data = &j784s4_pcie_ep_data, > + }, > {}, > }; > -- cheers, -roger
Hi Matt, I love your patch! Yet something to improve: [auto build test ERROR on helgaas-pci/next] [also build test ERROR on next-20221125] [cannot apply to helgaas-pci/for-linus linus/master v6.1-rc6] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Matt-Ranostay/PCI-add-4x-lane-support-for-pci-j721e-controllers/20221124-161712 base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next patch link: https://lore.kernel.org/r/20221124081221.1206167-6-mranostay%40ti.com patch subject: [PATCH v7 5/5] PCI: j721e: add j784s4 PCIe configuration config: i386-randconfig-a015 compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/ee3fcfcf1caaa25a9ba8ccceaf917e0bd43c38a4 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Matt-Ranostay/PCI-add-4x-lane-support-for-pci-j721e-controllers/20221124-161712 git checkout ee3fcfcf1caaa25a9ba8ccceaf917e0bd43c38a4 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <lkp@intel.com> All errors (new ones prefixed by >>): >> drivers/pci/controller/cadence/pci-j721e.c:336:3: error: field designator 'is_intc_v1' does not refer to any field in type 'const struct j721e_pcie_data' .is_intc_v1 = true, ^ 1 error generated. vim +336 drivers/pci/controller/cadence/pci-j721e.c 332 333 static const struct j721e_pcie_data j784s4_pcie_rc_data = { 334 .mode = PCI_MODE_RC, 335 .quirk_retrain_flag = true, > 336 .is_intc_v1 = true, 337 .byte_access_allowed = false, 338 .linkdown_irq_regfield = LINK_DOWN, 339 .max_lanes = 4, 340 }; 341
diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c index dab3db9be6d8..c484d658c18a 100644 --- a/drivers/pci/controller/cadence/pci-j721e.c +++ b/drivers/pci/controller/cadence/pci-j721e.c @@ -330,6 +330,21 @@ static const struct j721e_pcie_data am64_pcie_ep_data = { .max_lanes = 1, }; +static const struct j721e_pcie_data j784s4_pcie_rc_data = { + .mode = PCI_MODE_RC, + .quirk_retrain_flag = true, + .is_intc_v1 = true, + .byte_access_allowed = false, + .linkdown_irq_regfield = LINK_DOWN, + .max_lanes = 4, +}; + +static const struct j721e_pcie_data j784s4_pcie_ep_data = { + .mode = PCI_MODE_EP, + .linkdown_irq_regfield = LINK_DOWN, + .max_lanes = 4, +}; + static const struct of_device_id of_j721e_pcie_match[] = { { .compatible = "ti,j721e-pcie-host", @@ -355,6 +370,14 @@ static const struct of_device_id of_j721e_pcie_match[] = { .compatible = "ti,am64-pcie-ep", .data = &am64_pcie_ep_data, }, + { + .compatible = "ti,j784s4-pcie-host", + .data = &j784s4_pcie_rc_data, + }, + { + .compatible = "ti,j784s4-pcie-ep", + .data = &j784s4_pcie_ep_data, + }, {}, };