]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: bugfix: missed cache flush of TLB refill handler
authorLeonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Fri, 11 Jul 2014 22:18:05 +0000 (15:18 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 16:52:16 +0000 (18:52 +0200)
commit79b12b5241322e2eaf29008e389eb65339523595
tree6042a763266cf9e1d444ce263e11df2ca74c9a4d
parent6f28f6a215948b36f84b80371f349eaef89b1fd7
MIPS: bugfix: missed cache flush of TLB refill handler

Commit

    Commit d0178ff7e920853eb7da83a5e80d3799e300ce9c
    Author: Ralf Baechle <ralf@linux-mips.org>
    Date:   Fri Jul 15 15:23:23 2005 +0000

    Avoid SMP cacheflushes.  This is a minor optimization of startup but
    will also avoid smp_call_function from doing stupid things when called
    from a CPU that is not yet marked online.

missed an appropriate cache flush of TLB refill handler because that time it was
at fixed location CAC_BASE. After years the refill handler in EBASE vector
is not at that location and can be allocated in some another memory and needs
I-cache sync as other TLB exception vectors.

Besides that, the new function - local_flash_icache_range() was introduced
to avoid SMP cacheflushes.

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: paul.gortmaker@windriver.com
Cc: jchandra@broadcom.com
Cc: linux-kernel@vger.kernel.org
Cc: david.daney@cavium.com
Patchwork: https://patchwork.linux-mips.org/patch/7312/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/tlbex.c