Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3461912ybd; Fri, 28 Jun 2019 09:02:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwk4yR6LsJms/sn5/ewmFai4RVsBgHZ1OPv6GnWql4HS05ruy+zteJWKTFRSZ9LNaGflgXh X-Received: by 2002:a63:6cc9:: with SMTP id h192mr9773883pgc.339.1561737774239; Fri, 28 Jun 2019 09:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561737774; cv=none; d=google.com; s=arc-20160816; b=fJU5XN7Ycecv/ziyX87I4Tvw/Mq2FJVRYa3mnSWcXTGQjMaurNtTHComhIJVrn2QDw a3Q49ICkE1aRIjRtlEkr+L3X/QgNZDU8Xa37uwuTlcOQcHydMBjewCTAF84ONqyuy17r DfoWuBlvFtFpk/eioMqjxTTREdRJqqFNKxUFNmIvo6fc5VbRYEsFS2snwpSMvFSaLtj1 sAgCPkVd7h3djnCg4oBtLkr/H2oRQnv0HG1uT6/79nCeJ7VxIh6mJlcNuj4/4Crmy5Re F06f+OV/R97m70EE4I8tjHIJroiUfVKfzwGPuZMrv4elMQOBwQGnr3GXAaygMW2Y4W7/ W/Yw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Z35VovcTGbry/ML/M8uRDz+8gFbHBN9+9w9objf0ZGA=; b=awkHJxwoyxOb4nj3m63bYAYnC8onpNAjl3XVtk3eDUFtohZWE+ymDPWYDZDyQFv6Gs gV9QdlKFE0PMs1Pthasn2la7un9Vu47G5NjgJLBvAWYFWzdsf4rziXNFkD7QYMzWLZ7Z OtHSnijkKU1rOF98ZfT5qY2UvnqriFT/XXwC387ZiL8ckmYkdO3iZfCyMiDhV0hgvVG2 fpgJVxeFLUEtKSopGcOilONDlGBOxKvtR/3DAYSkqpm5Meo6Ul6C9aSMUDfWG4UXBWth 93pCs0tDrDfhXpOqndMlo5pzkp9BTdyJOi2IMO+EOjqdm+oz8BjnBzg3tcB4fZlfblR5 pxWA== 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 w6si2607918pjr.100.2019.06.28.09.02.34; Fri, 28 Jun 2019 09:02:54 -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 S1726828AbfF1QCS (ORCPT + 99 others); Fri, 28 Jun 2019 12:02:18 -0400 Received: from foss.arm.com ([217.140.110.172]:50876 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726657AbfF1QCS (ORCPT ); Fri, 28 Jun 2019 12:02:18 -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 4A3B328; Fri, 28 Jun 2019 09:02:17 -0700 (PDT) Received: from e121166-lin.cambridge.arm.com (unknown [10.1.196.255]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4826E3F706; Fri, 28 Jun 2019 09:02:15 -0700 (PDT) Date: Fri, 28 Jun 2019 17:02:12 +0100 From: Lorenzo Pieralisi To: "Z.q. Hou" Cc: "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "l.subrahmanya@mobiveil.co.in" , "shawnguo@kernel.org" , Leo Li , "catalin.marinas@arm.com" , "will.deacon@arm.com" , Mingkai Hu , "M.h. Lian" , Xiaowei Bao Subject: Re: [PATCHv5 08/20] PCI: mobiveil: Use the 1st inbound window for MEM inbound transactions Message-ID: <20190628160212.GB21829@e121166-lin.cambridge.arm.com> References: <20190412083635.33626-1-Zhiqiang.Hou@nxp.com> <20190412083635.33626-9-Zhiqiang.Hou@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190412083635.33626-9-Zhiqiang.Hou@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 12, 2019 at 08:36:00AM +0000, Z.q. Hou wrote: > From: Hou Zhiqiang > > The inbound windows have independent register set against outbound windows. > This patch change the MEM inbound window to the first one. You mean that windows 0 can be used as well as window 1 for inbound windows so it is better to opt for window 0 for consistency ? Lorenzo > Signed-off-by: Hou Zhiqiang > Reviewed-by: Minghuan Lian > Reviewed-by: Subrahmanya Lingappa > --- > V5: > - Corrected and retouched the subject and changelog. > > drivers/pci/controller/pcie-mobiveil.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c > index df71c11b4810..e88afc792a5c 100644 > --- a/drivers/pci/controller/pcie-mobiveil.c > +++ b/drivers/pci/controller/pcie-mobiveil.c > @@ -616,7 +616,7 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie) > CFG_WINDOW_TYPE, resource_size(pcie->ob_io_res)); > > /* memory inbound translation window */ > - program_ib_windows(pcie, WIN_NUM_1, 0, MEM_WINDOW_TYPE, IB_WIN_SIZE); > + program_ib_windows(pcie, WIN_NUM_0, 0, MEM_WINDOW_TYPE, IB_WIN_SIZE); > > /* Get the I/O and memory ranges from DT */ > resource_list_for_each_entry(win, &pcie->resources) { > -- > 2.17.1 >