|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 7/7] xen/arm: disable CPUs with different dcache line sizes
Hi Stefano,Something is wrong with your threading again. Patch #2-7 have "In-Reply-To" matching patch #1 and not the cover letter. On 02/03/18 19:06, Stefano Stabellini wrote: Even different cpus in big.LITTLE systems are expected to have the same dcache line size. Unless the minimum of all dcache line sizes is used across all cpu cores, cache coherency protocols can go wrong. Instead, for now, just disable any cpu with a different dcache line size. This check is not covered by the hmp-unsafe option, because even with the correct scheduling and vcpu pinning in place, the system breaks if dcache line sizes differ across cores. We don't believe it is a problem for most big.LITTLE systems. This patch moves the implementation of setup_cache to a static inline, still setting dcache_line_bytes at the beginning of start_xen as before. In start_secondary we check that the dcache level 1 line sizes match, otherwise we disable the cpu. Suggested-by: Julien Grall <julien.grall@xxxxxxx> Signed-off-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> --- Changes in v4: - improve commit message - use %zu --- xen/arch/arm/setup.c | 14 +------------- xen/arch/arm/smpboot.c | 8 ++++++++ xen/include/asm-arm/page.h | 11 +++++++++++ 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index fced75a..6ccfdab 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -682,18 +682,6 @@ static void __init setup_mm(unsigned long dtb_paddr, size_t dtb_size)size_t __read_mostly dcache_line_bytes; -/* Very early check of the CPU cache properties */ It feels a bit odd to have one call dcache_line_bytes and the other call read_dcache_line_size. Would it be possible to uniformize the name? With that: Reviewed-by: Julien Grall <julien.grall@xxxxxxx> Cheers, percpu_init_areas(); Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |