From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v9 02/14] arch/arm: let map_mmio_regions() take pfn as parameters Date: Thu, 03 Jul 2014 11:26:31 +0100 Message-ID: <53B52FD7.7030003@linaro.org> References: <1404326543-16875-1-git-send-email-avanzini.arianna@gmail.com> <1404326543-16875-3-git-send-email-avanzini.arianna@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1404326543-16875-3-git-send-email-avanzini.arianna@gmail.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 , xen-devel@lists.xen.org Cc: julien.grall@citrix.com, paolo.valente@unimore.it, keir@xen.org, stefano.stabellini@eu.citrix.com, tim@xen.org, dario.faggioli@citrix.com, Ian.Jackson@eu.citrix.com, Ian.Campbell@eu.citrix.com, etrudeau@broadcom.com, JBeulich@suse.com, andrew.cooper3@citrix.com, viktor.kleinik@globallogic.com List-Id: xen-devel@lists.xenproject.org Hi Arianna, On 07/02/2014 07:42 PM, 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 > Cc: Ian Campbell > Cc: Jan Beulich > Cc: Keir Fraser > Cc: Tim Deegan > Cc: Ian Jackson > Cc: Andrew Cooper > Cc: Eric Trudeau > Cc: Viktor Kleinik > > --- > > v7: > - Remove useless decrements when using paddr_to_pfn_aligned(). > > v5: > - Add a macro for the paddr_to_pfn(PAGE_ALIGN(...)) pattern. > - Hopefully improve commit description. > > --- > xen/arch/arm/domain_build.c | 7 ++++--- > xen/arch/arm/gic.c | 20 +++++++++++--------- For this patch and the following (#3), the code has heavily change in gic.c. Everything related to the mapping for GICv2 is now done in a separate file gic-v2.c (see the function gicv_v2_init). So both patches won't apply cleanly on the latest branch. Regards, -- Julien Grall