[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Bringing up sequence for non-boot CPU fails
On Tue, Feb 18, 2014 at 8:33 PM, Julien Grall <julien.grall@xxxxxxxxxx> wrote: > On 02/18/2014 06:17 PM, Oleksandr Tyshchenko wrote: >> Ian, > > Hello Oleksandr, > >> I have checked your suggestion with full cache flush. >> For this purposes I have used ARMV7 specific function from our U-Boot. >> This function performs clean and invalidation of the entire data cache >> at all levels. > > Did you try to only clean the cache? When page table for the secondary > CPU is created Xen only clean the cache for the specific range. > I suspect it's not enough and we need to invalidate. I tried to invalidate too. Because this function performs a clean & invalidation. > > It should be easy to try with this small patch: > > diff --git a/xen/include/asm-arm/page.h b/xen/include/asm-arm/page.h > index e00be9e..5a8aba2 100644 > --- a/xen/include/asm-arm/page.h > +++ b/xen/include/asm-arm/page.h > @@ -234,7 +234,7 @@ static inline void clean_xen_dcache_va_range(void > *p, unsigned long size) > void *end; > dsb(); /* So the CPU issues all writes to the range */ > for ( end = p + size; p < end; p += cacheline_bytes ) > - asm volatile (__clean_xen_dcache_one(0) : : "r" (p)); > + asm volatile (__clean_and_invalidate_xen_dcache_one(0) : : "r" > (p)); > dsb(); /* So we know the flushes happen before continuing */ > } I will try. > > Regards, > > -- > Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |