Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp803188ybl; Tue, 13 Aug 2019 02:54:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyu7HUKGSalvIPPPK7OHBHC4PoXsOTzPptDuhqL90ldO/hi7roHiVUFC748OIYI7+jxvaWk X-Received: by 2002:a17:90a:fd8c:: with SMTP id cx12mr1417031pjb.95.1565690043298; Tue, 13 Aug 2019 02:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565690043; cv=none; d=google.com; s=arc-20160816; b=NLJhAMU+MRvbVXQFDBqhzCPJk9TmERTbU8azQoM8qu8UZtznpOGvlW2EA9P0F422MM 2fCEBtNyzbOTZVb3R13Jb9+UHb35D1O/khEwcAFYn0BrAVnWH8I3nUGrFPTCYnTxBhs1 7Pxea8t5g1aLKQq08aVGf07wowhEgi+wsR4lXte3cBEUMp7U5dRaUYUD7n+lxOCngMTw 0XE871ffBJFHlLkhBP3Odx9Ru0f+SYRP66470w/RssdUW/IH/oHnQokvVVzsg6xYOB8y GY/U+84w3kPXobanYPt+iSHJl551N8gxdOEOFB9uTpPhQj+MGEALzTPRF2J8SUBY8DTP XFZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=RktcR0tr6CqEw3bQCOkKwld4el550PJVKSFNthYoieA=; b=KIfn2g4wSK0UCLuDBhrBQQDrRiiTrjwqYaAj0fo51LIQlbzM9Gn+MaMfXSNLgViOrx ARD/18FrCjYKeLnU+SnIYBBAPAxSMJVI3ZokTnmIe7IRmDUiqTIo78lO1m1zzkFoc0BQ Ya7amcEFNeyuIPhXxbZsyFisED1aURrhKJyGfTK8iDKvyxv28luEb+dtzz2H8NoCitsr F2hxk3kR+XVdnLUc9XlrpRDXdsoqXfm6CRd1KnnH1gL8qbubS52V2s+a8nts3/HFras2 X7xgOerGhoCCnbAJupaUDnv4yZfG8jYAqQQTYy7iN1Wvnke33NUNa8sf1+vXnaLZ0hhb tvvw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g21si23584286pgk.293.2019.08.13.02.53.47; Tue, 13 Aug 2019 02:54:03 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728479AbfHMJvr (ORCPT + 99 others); Tue, 13 Aug 2019 05:51:47 -0400 Received: from foss.arm.com ([217.140.110.172]:32866 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728466AbfHMJvq (ORCPT ); Tue, 13 Aug 2019 05:51:46 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3AC3A337; Tue, 13 Aug 2019 02:51:46 -0700 (PDT) Received: from red-moon (red-moon.cambridge.arm.com [10.1.197.39]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 026FC3F706; Tue, 13 Aug 2019 02:51:43 -0700 (PDT) Date: Tue, 13 Aug 2019 10:51:51 +0100 From: Lorenzo Pieralisi To: Xiaowei Bao Cc: Kishon Vijay Abraham I , "bhelgaas@google.com" , "M.h. Lian" , Mingkai Hu , Roy Zang , "l.stach@pengutronix.de" , "tpiepho@impinj.com" , Leonard Crestez , "andrew.smirnov@gmail.com" , "yue.wang@amlogic.com" , "hayashi.kunihiko@socionext.com" , "dwmw@amazon.co.uk" , "jonnyc@amazon.com" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [EXT] Re: [PATCHv5 1/2] PCI: layerscape: Add the bar_fixed_64bit property in EP driver. Message-ID: <20190813095151.GA10070@red-moon> References: <20190813062840.2733-1-xiaowei.bao@nxp.com> <61e6df1c-a0dc-8f05-f74a-85a3cac9823f@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org You should fix your email client set-up to avoid sticking an [EXT] tag to your emails $SUBJECT. On Tue, Aug 13, 2019 at 07:39:48AM +0000, Xiaowei Bao wrote: > > > > -----Original Message----- > > From: Kishon Vijay Abraham I > > Sent: 2019年8月13日 15:30 > > To: Xiaowei Bao ; lorenzo.pieralisi@arm.com; > > bhelgaas@google.com; M.h. Lian ; Mingkai Hu > > ; Roy Zang ; > > l.stach@pengutronix.de; tpiepho@impinj.com; Leonard Crestez > > ; andrew.smirnov@gmail.com; > > yue.wang@amlogic.com; hayashi.kunihiko@socionext.com; > > dwmw@amazon.co.uk; jonnyc@amazon.com; linux-pci@vger.kernel.org; > > linux-kernel@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; > > linux-arm-kernel@lists.infradead.org > > Subject: [EXT] Re: [PATCHv5 1/2] PCI: layerscape: Add the bar_fixed_64bit > > property in EP driver. > > > > Caution: EXT Email See above, this "Caution" stuff should disappear. Also, quoting the email header is useless, please configure your email client to remove it. Thanks, Lorenzo > > On 13/08/19 11:58 AM, Xiaowei Bao wrote: > > > The PCIe controller of layerscape just have 4 BARs, BAR0 and BAR1 is > > > 32bit, BAR2 and BAR4 is 64bit, this is determined by hardware, so set > > > the bar_fixed_64bit with 0x14. > > > > > > Signed-off-by: Xiaowei Bao > > > > Acked-by: Kishon Vijay Abraham I > > > --- > > > v2: > > > - Replace value 0x14 with a macro. > > > v3: > > > - No change. > > > v4: > > > - send the patch again with '--to'. > > > v5: > > > - fix the commit message. > > > > > > drivers/pci/controller/dwc/pci-layerscape-ep.c | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/pci/controller/dwc/pci-layerscape-ep.c > > > b/drivers/pci/controller/dwc/pci-layerscape-ep.c > > > index be61d96..ca9aa45 100644 > > > --- a/drivers/pci/controller/dwc/pci-layerscape-ep.c > > > +++ b/drivers/pci/controller/dwc/pci-layerscape-ep.c > > > @@ -44,6 +44,7 @@ static const struct pci_epc_features > > ls_pcie_epc_features = { > > > .linkup_notifier = false, > > > .msi_capable = true, > > > .msix_capable = false, > > > + .bar_fixed_64bit = (1 << BAR_2) | (1 << BAR_4), > > > }; > > > > > > static const struct pci_epc_features* > I check other platforms, it is 'static const struct pci_epc_features', I can get the correct > Value use this define way in pci-epf-test.c file. > > >