Merge tag 'powerpc-4.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux
Pull powerpc fixes from Michael Ellerman: "A small batch of fixes, about 50% tagged for stable and the rest for recently merged code. There's one more fix for the >128T handling on hash. Once a process had requested a single mmap above 128T we would then always search above 128T. The correct behaviour is to consider the hint address in isolation for each mmap request. Then a couple of fixes for the IMC PMU, a missing EXPORT_SYMBOL in VAS, a fix for STRICT_KERNEL_RWX on 32-bit, and a fix to correctly identify P9 DD2.1 but in code that is currently not used by default. Thanks to: Aneesh Kumar K.V, Christophe Leroy, Madhavan Srinivasan, Sukadev Bhattiprolu" * tag 'powerpc-4.15-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: powerpc/64s: Fix Power9 DD2.1 logic in DT CPU features powerpc/perf: Fix IMC_MAX_PMU macro powerpc/perf: Fix pmu_count to count only nest imc pmus powerpc: Fix boot on BOOK3S_32 with CONFIG_STRICT_KERNEL_RWX powerpc/perf/imc: Use cpu_to_node() not topology_physical_package_id() powerpc/vas: Export chip_to_vas_id() powerpc/64s/slice: Use addr limit when computing slice mask
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include <asm/tlbflush.h>
|
||||
#include <asm/page.h>
|
||||
#include <asm/code-patching.h>
|
||||
#include <asm/setup.h>
|
||||
|
||||
static int __patch_instruction(unsigned int *addr, unsigned int instr)
|
||||
{
|
||||
@@ -146,11 +147,8 @@ int patch_instruction(unsigned int *addr, unsigned int instr)
|
||||
* During early early boot patch_instruction is called
|
||||
* when text_poke_area is not ready, but we still need
|
||||
* to allow patching. We just do the plain old patching
|
||||
* We use slab_is_available and per cpu read * via this_cpu_read
|
||||
* of text_poke_area. Per-CPU areas might not be up early
|
||||
* this can create problems with just using this_cpu_read()
|
||||
*/
|
||||
if (!slab_is_available() || !this_cpu_read(text_poke_area))
|
||||
if (!this_cpu_read(*PTRRELOC(&text_poke_area)))
|
||||
return __patch_instruction(addr, instr);
|
||||
|
||||
local_irq_save(flags);
|
||||
|
Reference in New Issue
Block a user