]> git.ipfire.org Git - people/arne_f/kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Sep 2018 08:32:37 +0000 (10:32 +0200)
commitfbd0c9d27ccbb91c86df1f0ee453140caefea3d4
tree0ef973182ea389ca62782e2a78df730133210b99
parent27077422f9512f451e41f4c7d9e03fc6221ac202
xtensa: increase ranges in ___invalidate_{i,d}cache_all

commit fec3259c9f747c039f90e99570540114c8d81a14 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/include/asm/cacheasm.h