ARCv2: smp-boot: wake_flag polling by non-Masters needs to be uncached
authorVineet Gupta <vgupta@synopsys.com>
Tue, 21 Jun 2016 08:54:33 +0000 (14:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:57 +0000 (06:41 +0200)
commit2552e2c11575c72114a2f8902a7488c810c41691
treed29459310c83fef87ca65bf7fd6b4a18af9b1976
parent8cb6045ec40d90d8074dd072c2ec9d0fc7b91956
ARCv2: smp-boot: wake_flag polling by non-Masters needs to be uncached

[ Upstream commit 78f824d4312a8944f5340c6b161bba3bf2c81096 ]

This is needed on HS38 cores, for setting up IO-Coherency aperture properly

The polling could perturb the caches and coherecy fabric which could be
wrong in the small window when Master is setting up IOC aperture etc
in arc_cache_init()

We do it only for ARCv2 based builds to not affect EZChip ARCompact
based platform.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arc/kernel/smp.c