From: Ian Campbell Subject: Re: [PATCH RESEND v9 02/14] arch/arm: let map_mmio_regions() take pfn as parameters Date: Fri, 18 Jul 2014 13:43:37 +0100 Message-ID: <1405687417.27855.9.camel@kazak.uk.xensource.com> References: <53BFEBFB.1090602@linaro.org> <1405299035-2988-1-git-send-email-avanzini.arianna@gmail.com> <1405299035-2988-3-git-send-email-avanzini.arianna@gmail.com> <1405601872.31127.18.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1405601872.31127.18.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Arianna Avanzini Cc: paolo.valente@unimore.it, keir@xen.org, stefano.stabellini@eu.citrix.com, tim@xen.org, dario.faggioli@citrix.com, Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org, julien.grall@citrix.com, etrudeau@broadcom.com, JBeulich@suse.com, andrew.cooper3@citrix.com, viktor.kleinik@globallogic.com List-Id: xen-devel@lists.xenproject.org On Thu, 2014-07-17 at 13:57 +0100, Ian Campbell wrote: > On Mon, 2014-07-14 at 02:50 +0200, Arianna Avanzini wrote: > > Currently, the map_mmio_regions() function, defined for the ARM > > architecture, has parameters with paddr_t type. This interface, > > however, needs caller functions to correctly page-align addresses > > given as parameters to map_mmio_regions(). This commit changes the > > function's interface to accept page frame numbers as parameters. > > This commit also modifies caller functions in an attempt to adapt > > them to the new interface. > > This commit is meant to produce the minimum indispensable needed > > changes; these are also instrumental to making the interface of > > map_mmio_regions() symmetric with the unmap_mmio_regions() function, > > that will be introduced in one of the next commits of the series > > and will feature a pfn-based interface. > > > > NOTE: platform-specific code has not been tested, save for the > > sunxi and the Arndale Exynos 5 platforms (see the Tested-by > > below for the latter). > > > > Signed-off-by: Arianna Avanzini > > Tested-by: Julien Grall > > Cc: Dario Faggioli > > Cc: Paolo Valente > > Cc: Stefano Stabellini > > Acked-by: Ian Campbell Since they represent an interface change which clashes with other upcoming series I've applied this patch and the next one (arch/arm: let map_mmio_regions() use start and count). I had to apply a simple fixlet to the second patch: diff --git a/xen/arch/arm/platforms/xgene-storm.c b/xen/arch/arm/platforms/xgene-storm.c index 2980c0d..29c4752 100644 --- a/xen/arch/arm/platforms/xgene-storm.c +++ b/xen/arch/arm/platforms/xgene-storm.c @@ -47,7 +47,7 @@ static int map_one_mmio(struct domain *d, const char *what, printk("Additional MMIO %"PRIpaddr"-%"PRIpaddr" (%s)\n", start, end, what); - ret = map_mmio_regions(d, start, end, end - start + 1, start); + ret = map_mmio_regions(d, start, end - start + 1, start); if ( ret ) printk("Failed to map %s @ %"PRIpaddr" to dom%d\n", what, start, d->domain_id); Ian.