[PATCH 05/23] powerpc/pmem: Include pmem prototypes

2020-12-20 Thread Cédric Le Goater
It fixes this W=1 compile error : ../arch/powerpc/lib/pmem.c:51:6: error: no previous prototype for ‘arch_wb_cache_pmem’ [-Werror=missing-prototypes] 51 | void arch_wb_cache_pmem(void *addr, size_t size) | ^~ ../arch/powerpc/lib/pmem.c:58:6: error: no previous

[PATCH 18/23] KVM: PPC: Make the VMX instruction emulation routines static

2020-12-20 Thread Cédric Le Goater
It fixes these W=1 compile errors : ../arch/powerpc/kvm/powerpc.c:1521:5: error: no previous prototype for ‘kvmppc_get_vmx_dword’ [-Werror=missing-prototypes] 1521 | int kvmppc_get_vmx_dword(struct kvm_vcpu *vcpu, int index, u64 *val) | ^~~~

[PATCH 02/23] powerpc/pseries/ras: Remove unused variable 'status'

2020-12-20 Thread Cédric Le Goater
The last use of 'status' was removed in 2012. Remove the variable to fix this W=1 compile error. ../arch/powerpc/platforms/pseries/ras.c: In function ‘ras_epow_interrupt’: ../arch/powerpc/platforms/pseries/ras.c:318:6: error: variable ‘status’ set but not used [-Werror=unused-but-set-variable]

[PATCH 06/23] powerpc/setup_64: Make some routines static

2020-12-20 Thread Cédric Le Goater
Fixes these W=1 errors : ../arch/powerpc/kernel/setup_64.c:261:13: error: no previous prototype for ‘record_spr_defaults’ [-Werror=missing-prototypes] 261 | void __init record_spr_defaults(void) | ^~~ ../arch/powerpc/kernel/setup_64.c:1011:6: error: no

[PATCH 01/23] powerpc/mm: Include __find_linux_pte() prototype

2020-12-20 Thread Cédric Le Goater
It fixes this W=1 compile error : ../arch/powerpc/mm/pgtable.c:337:8: error: no previous prototype for ‘__find_linux_pte’ [-Werror=missing-prototypes] 337 | pte_t *__find_linux_pte(pgd_t *pgdir, unsigned long ea, |^~~~ Cc: "Aneesh Kumar K.V" Signed-off-by: Cédric Le

[PATCH 13/23] powerpc/mm: Move hpte_insert_repeating() prototype

2020-12-20 Thread Cédric Le Goater
It fixes this W=1 compile error : ../arch/powerpc/mm/book3s64/hash_utils.c:1867:6: error: no previous prototype for ‘hpte_insert_repeating’ [-Werror=missing-prototypes] 1867 | long hpte_insert_repeating(unsigned long hash, unsigned long vpn, | ^ Cc: "Aneesh Kumar

[PATCH 12/23] powerpc/mm: Declare some prototypes

2020-12-20 Thread Cédric Le Goater
It fixes this W=1 compile error : ../arch/powerpc/mm/book3s64/hash_utils.c:1515:5: error: no previous prototype for ‘__hash_page’ [-Werror=missing-prototypes] 1515 | int __hash_page(unsigned long trap, unsigned long ea, unsigned long dsisr, | ^~~

[PATCH 08/23] powerpc/smp: Include tick_broadcast() prototype

2020-12-20 Thread Cédric Le Goater
It fixes this W=1 compile error : ../arch/powerpc/kernel/smp.c:569:6: error: no previous prototype for ‘tick_broadcast’ [-Werror=missing-prototypes] 569 | void tick_broadcast(const struct cpumask *mask) | ^~ Cc: "Gautham R. Shenoy" Signed-off-by: Cédric Le Goater ---

[PATCH 00/23] powerpc: Fix W=1 compile errors

2020-12-20 Thread Cédric Le Goater
Hello, Here is an assorted collection of fixes for W=1. Cheers, C. Cédric Le Goater (23): powerpc/mm: Include __find_linux_pte() prototype powerpc/pseries/ras: Remove unused variable 'status' powerpc/pseries/eeh: Make pseries_pcibios_bus_add_device() static powerpc/pseries/ras: Make

[PATCH 03/23] powerpc/pseries/eeh: Make pseries_pcibios_bus_add_device() static

2020-12-20 Thread Cédric Le Goater
It fixes this W=1 compile error: ../arch/powerpc/platforms/pseries/eeh_pseries.c:46:6: error: no previous prototype for ‘pseries_pcibios_bus_add_device’ [-Werror=missing-prototypes] 46 | void pseries_pcibios_bus_add_device(struct pci_dev *pdev) | ^~

[PATCH] powerpc/smp: Add __init to init_big_cores()

2020-12-20 Thread Cédric Le Goater
It fixes this link warning: WARNING: modpost: vmlinux.o(.text.unlikely+0x2d98): Section mismatch in reference from the function init_big_cores.isra.0() to the function .init.text:init_thread_group_cache_map() The function init_big_cores.isra.0() references the function __init

unsubscribe

2020-12-20 Thread Shawn Landden
-- Shawn Landden

[PATCH] powerpc/32: Fix vmap stack - Properly set r1 before activating MMU on syscall too

2020-12-20 Thread Christophe Leroy
We need r1 to be properly set before activating MMU, otherwise any new exception taken while saving registers into the stack in syscall prologs will use the user stack, which is wrong and will even lockup or crash when KUAP is selected. Do that by switching the meaning of r11 and r1 until we have

Re: [PATCH] powerpc: always enable queued spinlocks for 64s, disable for others

2020-12-20 Thread Christophe Leroy
Le 21/12/2020 à 04:22, Nicholas Piggin a écrit : Queued spinlocks have shown to have good performance and fairness properties even on smaller (2 socket) POWER systems. This selects them automatically for 64s. For other platforms they are de-selected, the standard spinlock is far simpler and

Re: [PATCH 01/23] kernel: irq: irqdescs: warn on spurious IRQ

2020-12-20 Thread Michael Ellerman
Andy Shevchenko writes: > On Fri, Dec 18, 2020 at 4:37 PM Enrico Weigelt, metux IT consult > wrote: > >> + if (printk_ratelimit()) >> + pr_warn("spurious IRQ: irq=%d hwirq=%d nr_irqs=%d\n", >> + irq, hwirq, nr_irqs); > > Perhaps

Re: [PATCH v2] powerpc/perf/hv-24x7: Dont create sysfs event files for dummy events

2020-12-20 Thread Michael Ellerman
Kajol Jain writes: > hv_24x7 performance monitoring unit creates list of supported events > from the event catalog obtained via HCALL. hv_24x7 catalog could also > contain invalid or dummy events (with names like FREE_* or CPM_FREE_* > and RESERVED*). These events do not have any hardware

[PATCH] powerpc:Don't print raw EIP/LR hex values in dump_stack() and show_regs()

2020-12-20 Thread Xiaoming Ni
Since the commit 2b0e86cc5de6 ("powerpc/fsl_booke/32: implement KASLR infrastructure"), the powerpc system is ready to support KASLR. To reduces the risk of invalidating address randomization, don't print the EIP/LR hex values in dump_stack() and show_regs(). This patch follows x86 and arm64's

[PATCH] powerpc: always enable queued spinlocks for 64s, disable for others

2020-12-20 Thread Nicholas Piggin
Queued spinlocks have shown to have good performance and fairness properties even on smaller (2 socket) POWER systems. This selects them automatically for 64s. For other platforms they are de-selected, the standard spinlock is far simpler and smaller code, and single chips with a handful of cores

[PATCH] powerpc/time: Force inlining of get_tb()

2020-12-20 Thread Christophe Leroy
Force inlining of get_tb() in order to avoid getting following function in vdso32, leading to suboptimal performance in clock_gettime() 0688 <.get_tb>: 688: 7c 6d 42 a6 mftbu r3 68c: 7c 8c 42 a6 mftbr4 690: 7d 2d 42 a6 mftbu r9 694: 7c 03 48 40 cmplw

Re: [RFC PATCH 3/5] powerpc/64s: add CONFIG_PPC_NMMU for nest MMU support

2020-12-20 Thread Christophe Leroy
Le 20/12/2020 à 00:48, Nicholas Piggin a écrit : This allows some nest MMU features to be compiled away if coprocessor support is not selected. Signed-off-by: Nicholas Piggin --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/book3s/64/mmu.h | 2 ++

Re: [RFC PATCH 1/5] powerpc/64s: update_mmu_cache inline the radix test

2020-12-20 Thread Christophe Leroy
Le 20/12/2020 à 00:48, Nicholas Piggin a écrit : This allows the function to be entirely noped if hash support is compiled out (not possible yet). Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/book3s/pgtable.h | 11 ++- arch/powerpc/mm/book3s32/mmu.c| 4