[RFC v2 3/3] Enable soft nmi handler

2017-01-02 Thread Balbir Singh
a. On decrementer interrupt, instead of setting dec to maximum and returning, we do the following i. Call a function handle_nmi_dec, which in turn calls handle_soft_nmi ii. handle_soft_nmi sets the decrementer value to 1 second and checks if more than 30 seconds have passed

[RFC v2 2/3] Keep interrupts enabled even on soft disable

2017-01-02 Thread Balbir Singh
This patch removes the disabling of interrupts in soft-disable mode, when interrupts are received (in lazy mode). The new scheme keeps the interrupts enabled when we receive an interrupt and does the following: When an external interrupt is received, we store the interrupt in local_paca via

[RFC v2 1/3] Merge IPI and DEFAULT priorities

2017-01-02 Thread Balbir Singh
We merge IPI and DEFAULT priorities to the same value. The idea is to keep interrupts enabled even in lazy soft-disabled mode. Instead of storing the IPI and irq separately, we keep the levels same so that we deal with only one of them Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mac

[RFC v2 0/3] Support Soft NMI

2017-01-02 Thread Balbir Singh
This patch is based on suggestions from paulus and benh. The bugs are all mine. The idea was to implement soft NMI(s) by keeping interrupts enabled in the soft-disabled state, but to use the interrupt controller to gate posting of new interrupts to the processor. This is still work in progress and

mpic IRQ_TYPE_BOTH handling

2017-01-02 Thread Gregory Fong
Hi all, In arch/powerpc/sysdev/mpic.c , it looks like IRQ_TYPE_EDGE_BOTH is handled the same way as IRQ_TYPE_EDGE_FALLING: static unsigned int mpic_type_to_vecpri(struct mpic *mpic, unsigned int type) { /* Now convert sense value */ switch(type & IRQ_TYPE_SENSE_MASK) { cas

Re: [PATCH RESEND 10/10] m68k/mac: Replace via-maciisi driver with via-cuda driver

2017-01-02 Thread Finn Thain
On Mon, 2 Jan 2017, Geert Uytterhoeven wrote: > Hi Finn, Ben, > > On Sun, Jan 1, 2017 at 1:56 AM, Finn Thain > wrote: > > Change the device probe test in the via-cuda.c driver so it will load > > on Egret-based machines too. Remove the now redundant via-maciisi.c > > driver. > > > > Tested-b

[PATCH v3 5/5] powerpc/fadump: update documentation about crashkernel parameter reuse

2017-01-02 Thread Hari Bathini
As we are reusing crashkernel parameter instead of fadump_reserve_mem parameter to specify the memory to reserve for fadump's crash kernel, update the documentation accordingly. Signed-off-by: Hari Bathini --- Documentation/powerpc/firmware-assisted-dump.txt | 23 ++ 1 file

[PATCH v3 4/5] powerpc/fadump: reuse crashkernel parameter for fadump memory reservation

2017-01-02 Thread Hari Bathini
fadump supports specifying memory to reserve for fadump's crash kernel with fadump_reserve_mem kernel parameter. This parameter currently supports passing a fixed memory size, like fadump_reserve_mem= only. This patch aims to add support for other syntaxes like range-based memory size :[,:,:,...] w

[PATCH v3 3/5] powerpc/fadump: remove dependency with CONFIG_KEXEC

2017-01-02 Thread Hari Bathini
Now that crashkernel parameter parsing and vmcoreinfo related code is moved under CONFIG_CRASH_CORE instead of CONFIG_KEXEC_CORE, remove dependency with CONFIG_KEXEC for CONFIG_FA_DUMP. While here, get rid of definitions of fadump_append_elf_note() & fadump_final_note() functions to reuse similar f

[PATCH v3 2/5] ia64: reuse append_elf_note() and final_note() functions

2017-01-02 Thread Hari Bathini
Get rid of multiple definitions of append_elf_note() & final_note() functions. Reuse these functions compiled under CONFIG_CRASH_CORE Also, define Elf_Word and use it instead of generic u32 or the more specific Elf64_Word. Signed-off-by: Hari Bathini --- Changes from v2: * Added a definition for

[PATCH v3 1/5] crash: move crashkernel parsing and vmcore related code under CONFIG_CRASH_CORE

2017-01-02 Thread Hari Bathini
Traditionally, kdump is used to save vmcore in case of a crash. Some architectures like powerpc can save vmcore using architecture specific support instead of kexec/kdump mechanism. Such architecture specific support also needs to reserve memory, to be used by dump capture kernel. crashkernel param

[PATCH v3 0/5] kexec/fadump: remove dependency with CONFIG_KEXEC and reuse crashkernel parameter for fadump

2017-01-02 Thread Hari Bathini
Traditionally, kdump is used to save vmcore in case of a crash. Some architectures like powerpc can save vmcore using architecture specific support instead of kexec/kdump mechanism. Such architecture specific support also needs to reserve memory, to be used by dump capture kernel. crashkernel param

Re: [PATCH RESEND 10/10] m68k/mac: Replace via-maciisi driver with via-cuda driver

2017-01-02 Thread Geert Uytterhoeven
Hi Finn, Ben, On Sun, Jan 1, 2017 at 1:56 AM, Finn Thain wrote: > Change the device probe test in the via-cuda.c driver so it will load on > Egret-based machines too. Remove the now redundant via-maciisi.c driver. > > Tested-by: Stan Johnson > Signed-off-by: Finn Thain Acked-by: Geert Uytterho

Re: [RFC 1/4] mm: remove unused TASK_SIZE_OF()

2017-01-02 Thread Kirill A. Shutemov
On Fri, Dec 30, 2016 at 06:56:31PM +0300, Dmitry Safonov wrote: > All users of TASK_SIZE_OF(tsk) have migrated to mm->task_size or > TASK_SIZE_MAX since: > commit d696ca016d57 ("x86/fsgsbase/64: Use TASK_SIZE_MAX for > FSBASE/GSBASE upper limits"), > commit a06db751c321 ("pagemap: check permissions