xtensa: increase ranges in ___invalidate_{i,d}cache_all
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 11 Aug 2018 05:21:22 +0000 (22:21 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 14 Aug 2018 03:08:01 +0000 (20:08 -0700)
commitfec3259c9f747c039f90e99570540114c8d81a14
treeb1a20998343a7dc9c17f2dad91bffdf30849ab96
parentbe75de25251f7cf3e399ca1f584716a95510d24a
xtensa: increase ranges in ___invalidate_{i,d}cache_all

Cache invalidation macros use cache line size to iterate over
invalidated cache lines, assuming that all cache ways are invalidated by
single instruction, but xtensa ISA recommends to not assume that for
future compatibility:
  In some implementations all ways at index Addry-1..z are invalidated
  regardless of the specified way, but for future compatibility this
  behavior should not be assumed.

Iterate over all cache ways in ___invalidate_icache_all and
___invalidate_dcache_all.

Cc: stable@vger.kernel.org
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/cacheasm.h