Re: [PATCH] MIPS: KASLR: Fix sync_icache() trapped in loop when synci_step is zero

From: Maciej W. Rozycki
Date: Mon Dec 07 2020 - 10:36:18 EST


On Wed, 2 Dec 2020, Thomas Bogendoerfer wrote:

> PS: Does anybody know a reason, why this code doesn't use an old fashioned
> dache/icache flushing, which might be slower but would work also on
> legecy cores ?

Hmm, this was contributed by ImgTec in 2016 only, so I guess there was no
reason as such but merely the lack of care about older systems (mind that
those people really didn't have any at that point). The option to enable
this code is only available for R2 and newer CPUs so at least we are safe.

Maciej