All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: stefano.stabellini@eu.citrix.com, julien.grall@linaro.org,
	tim@xen.org, xen-devel@lists.xen.org,
	Clark Laughlin <clark.laughlin@linaro.org>,
	Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Subject: Re: [PATCH for-4.5 2/4] xen: arm: correct off by one in xgene-storm's map_one_mmio
Date: Wed, 19 Nov 2014 16:11:32 -0500	[thread overview]
Message-ID: <20141119211132.GG20440@laptop.dumpdata.com> (raw)
In-Reply-To: <1416329088-23328-2-git-send-email-ian.campbell@citrix.com>

On Tue, Nov 18, 2014 at 04:44:46PM +0000, Ian Campbell wrote:
> The callers pass the end as the pfn immediately *after* the last page to be
> mapped, therefore adding one is incorrect and causes an additional page to be
> mapped.
> 
> At the same time correct the printing of the mfn values, zero-padding them to
> 16 digits as for a paddr when they are frame numbers is just confusing.

HA! I was just looking at that today and thought it was odd.

Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> 
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> ---
>  xen/arch/arm/platforms/xgene-storm.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/xen/arch/arm/platforms/xgene-storm.c b/xen/arch/arm/platforms/xgene-storm.c
> index 29c4752..38674cd 100644
> --- a/xen/arch/arm/platforms/xgene-storm.c
> +++ b/xen/arch/arm/platforms/xgene-storm.c
> @@ -45,9 +45,9 @@ static int map_one_mmio(struct domain *d, const char *what,
>  {
>      int ret;
>  
> -    printk("Additional MMIO %"PRIpaddr"-%"PRIpaddr" (%s)\n",
> +    printk("Additional MMIO %lx-%lx (%s)\n",
>             start, end, what);
> -    ret = map_mmio_regions(d, start, end - start + 1, start);
> +    ret = map_mmio_regions(d, start, end - start, start);
>      if ( ret )
>          printk("Failed to map %s @ %"PRIpaddr" to dom%d\n",
>                 what, start, d->domain_id);
> -- 
> 1.7.10.4
> 

  parent reply	other threads:[~2014-11-19 21:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-18 16:44 [PATCH 0/4 for-4.5] xen: arm: xgene bug fixes + support for McDivitt Ian Campbell
2014-11-18 16:44 ` [PATCH for-4.5 1/4] xen: arm: Add earlyprintk " Ian Campbell
2014-11-18 16:59   ` Julien Grall
2014-11-19  9:54     ` Ian Campbell
2014-11-19 10:02       ` Julien Grall
2014-11-18 16:44 ` [PATCH for-4.5 2/4] xen: arm: correct off by one in xgene-storm's map_one_mmio Ian Campbell
2014-11-18 17:01   ` Julien Grall
2014-11-19  9:54     ` Ian Campbell
2014-11-19 21:11   ` Konrad Rzeszutek Wilk [this message]
2014-11-18 16:44 ` [PATCH for-4.5 3/4] xen: arm: correct specific mappings for PCIE0 on X-Gene Ian Campbell
2014-11-18 17:04   ` Julien Grall
2014-11-18 16:44 ` [PATCH for-4.5 4/4] xen: arm: Support the other 4 PCI buses on Xgene Ian Campbell
2014-11-18 17:15   ` Julien Grall
2014-11-19  9:56     ` Ian Campbell
2014-11-19 10:06       ` Julien Grall
2014-11-19 10:18         ` Ian Campbell
2014-11-19 10:30           ` Julien Grall
2014-11-18 16:51 ` [PATCH 0/4 for-4.5] xen: arm: xgene bug fixes + support for McDivitt Ian Campbell
2014-11-19 21:18   ` Konrad Rzeszutek Wilk
2014-11-20  9:02     ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141119211132.GG20440@laptop.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=clark.laughlin@linaro.org \
    --cc=ian.campbell@citrix.com \
    --cc=julien.grall@linaro.org \
    --cc=pranavkumar@linaro.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.