All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Oleksandr Tyshchenko <oleksandr.tyshchenko@globallogic.com>,
	xen-devel@lists.xen.org
Cc: tim@xen.org, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH v1 2/2] xen/arm: Clean and invalidate dcache for boot pagetables
Date: Fri, 07 Mar 2014 12:16:37 +0800	[thread overview]
Message-ID: <53194825.8000809@linaro.org> (raw)
In-Reply-To: <1394113851-17321-3-git-send-email-oleksandr.tyshchenko@globallogic.com>

Hello Oleksandr,

On 06/03/14 21:50, Oleksandr Tyshchenko wrote:
> We need to invalidate dcache too after zeroing boot pagetables
> to avoid unpredictable behavior which may take place after
> non-boot CPUs enable their caches.
>
> So, replace clean_xen_dcache() macro by a clean_and_invalidate_xen_dcache()
> for boot pagetables.

This patch, and the previous one, might be a good candidate to backport 
for Xen 4.4.1.

> Signed-off-by: Julien Grall <julien.grall@linaro.org>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> Signed-off-by: Oleksandr Tyshchenko <oleksandr.tyshchenko@globallogic.com>

With the comment about "signed-off-by" made by Ian:

Reviewed-by: Julien Grall <julien.grall@linaro.org>

> ---
>   xen/arch/arm/mm.c |    6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c
> index 308a798..4422b67 100644
> --- a/xen/arch/arm/mm.c
> +++ b/xen/arch/arm/mm.c
> @@ -484,13 +484,13 @@ void __init setup_pagetables(unsigned long boot_phys_offset, paddr_t xen_paddr)
>       /* Clear the copy of the boot pagetables. Each secondary CPU
>        * rebuilds these itself (see head.S) */
>       memset(boot_pgtable, 0x0, PAGE_SIZE);
> -    clean_xen_dcache(boot_pgtable);
> +    clean_and_invalidate_xen_dcache(boot_pgtable);
>   #ifdef CONFIG_ARM_64
>       memset(boot_first, 0x0, PAGE_SIZE);
> -    clean_xen_dcache(boot_first);
> +    clean_and_invalidate_xen_dcache(boot_first);
>   #endif
>       memset(boot_second, 0x0, PAGE_SIZE);
> -    clean_xen_dcache(boot_second);
> +    clean_and_invalidate_xen_dcache(boot_second);
>
>       /* Break up the Xen mapping into 4k pages and protect them separately. */
>       for ( i = 0; i < LPAE_ENTRIES; i++ )
>

-- 
Julien Grall

  reply	other threads:[~2014-03-07  4:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-06 13:50 [PATCH v1 0/2] Clean and invalidate dcache for boot pagetables during setup Oleksandr Tyshchenko
2014-03-06 13:50 ` [PATCH v1 1/2] xen/arm: Introduce clean_and_invalidate_xen_dcache() macro Oleksandr Tyshchenko
2014-03-06 14:09   ` Andrew Cooper
2014-03-07 10:20     ` Oleksandr Tyshchenko
2014-03-07  3:40   ` Ian Campbell
2014-03-07 10:27     ` Oleksandr Tyshchenko
2014-03-06 13:50 ` [PATCH v1 2/2] xen/arm: Clean and invalidate dcache for boot pagetables Oleksandr Tyshchenko
2014-03-07  4:16   ` Julien Grall [this message]
2014-03-07  4:14 ` [PATCH v1 0/2] Clean and invalidate dcache for boot pagetables during setup Julien Grall
2014-03-07 10:46   ` Oleksandr Tyshchenko

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=53194825.8000809@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=ian.campbell@citrix.com \
    --cc=oleksandr.tyshchenko@globallogic.com \
    --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.