Re: [PATCH v3 3/5] powerpc/mm: add radix__create_section_mapping()

2016-12-20 Thread Anshuman Khandual
On 12/19/2016 02:34 PM, Aneesh Kumar K.V wrote: > Reza Arbab writes: > >> > Add the linear page mapping function for radix, used by memory hotplug. >> > This is similar to vmemmap_populate(). >> > > Ok with this patch your first patch becomes useful. Can you merge that

Re: [PATCH v3 0/5] powerpc/mm: enable memory hotplug on radix

2016-12-20 Thread Anshuman Khandual
On 12/19/2016 11:28 PM, Reza Arbab wrote: > On Sat, Dec 17, 2016 at 01:38:40AM +1100, Balbir Singh wrote: >> Do we care about alt maps yet? > > Good question. I'll try to see if/how altmaps might need special > consideration here. vmemmap alt-map should be enabled separately and should not be

Re: [PATCH v4 07/12] powerpc: Add support to take additional parameter in MASKABLE_* macro

2016-12-20 Thread Madhavan Srinivasan
On Tuesday 20 December 2016 08:06 AM, Nicholas Piggin wrote: On Mon, 19 Dec 2016 13:37:03 +0530 Madhavan Srinivasan wrote: To support addition of "bitmask" to MASKABLE_* macros, factor out the EXCPETION_PROLOG_1 macro. Currently soft_enabled is used as the flag to

[RFC PATCH] powerpc/powernv: report error messages from opal

2016-12-20 Thread Oliver O'Halloran
Recent versions of skiboot will raise an OPAL event (read: interrupt) when firmware writes an error message to its internal console. In conjunction they provide an OPAL call that the kernel can use to extract these messages from the OPAL log to allow them to be written into the kernel's log buffer

Re: [PATCH] powernv/opal: Handle OPAL_WRONG_STATE error from OPAL fails

2016-12-20 Thread Mukesh Ojha
On Tuesday 20 December 2016 07:46 PM, Vipin K Parashar wrote: Added check for OPAL_WRONG_STATE error code returned from OPAL. Currently Linux flashes "unexpected error" over console for this error. This will avoid throwing such message and return I/O error for such OPAL failures.

Re: [PATCH kernel v2 05/11] KVM: PPC: Use preregistered memory API to access TCE list

2016-12-20 Thread David Gibson
On Sun, Dec 18, 2016 at 12:28:54PM +1100, Alexey Kardashevskiy wrote: > VFIO on sPAPR already implements guest memory pre-registration > when the entire guest RAM gets pinned. This can be used to translate > the physical address of a guest page containing the TCE list > from H_PUT_TCE_INDIRECT. >

Re: [PATCH v4 02/12] powerpc: move set_soft_enabled() and rename

2016-12-20 Thread Madhavan Srinivasan
On Tuesday 20 December 2016 02:33 PM, Balbir Singh wrote: On 19/12/16 19:06, Madhavan Srinivasan wrote: Move set_soft_enabled() from powerpc/kernel/irq.c to asm/hw_irq.c, to force updates to paca-soft_enabled done via these access function. Add "memory" clobber to hint compiler since

Re: [PATCH v4 01/12] powerpc: Add #defs for paca->soft_enabled flags

2016-12-20 Thread Madhavan Srinivasan
On Tuesday 20 December 2016 01:01 PM, Balbir Singh wrote: +/* + * flags for paca->soft_enabled + */ +#define IRQ_DISABLE_MASK_NONE1 +#define IRQ_DISABLE_MASK_LINUX0 + Isn't one just the complement of the other? Yes. But these are initial cleanup patchs and in subsequent patches

Re: [PATCH] powerpc/64: Don't try to use radix MMU under a hypervisor

2016-12-20 Thread Suraj Jitindar Singh
On Tue, 2016-12-20 at 22:40 +1100, Paul Mackerras wrote: > Currently, if the kernel is running on a POWER9 processor under a > hypervisor, it will try to use the radix MMU even though it doesn't > have the necessary code to use radix under a hypervisor (it doesn't > negotiate use of radix, and it

Re: [PATCH] drivers/pci/hotplug: Handle presence detection change properly

2016-12-20 Thread Gavin Shan
On Tue, Dec 20, 2016 at 10:37:09AM +0100, Greg KH wrote: >On Tue, Dec 20, 2016 at 05:49:33PM +1100, Gavin Shan wrote: >> The surprise hotplug is driven by interrupt in PowerNV PCI hotplug >> driver. In the interrupt handler, pnv_php_interrupt(), we bail when >> pnv_pci_get_presence_state() returns

Re: [PATCH v3 01/15] stacktrace/x86: add function for detecting reliable stack traces

2016-12-20 Thread Josh Poimboeuf
On Tue, Dec 20, 2016 at 10:39:16AM +0100, Petr Mladek wrote: > On Mon 2016-12-19 11:25:49, Josh Poimboeuf wrote: > > 3) probably some kind of runtime NMI stack checking feature to > >complement objtool, along with a lot of burn time to ensure there are > >no issues, particularly in entry

Re: [PATCH] powerpc/64: Don't try to use radix MMU under a hypervisor

2016-12-20 Thread Paul Mackerras
On Tue, Dec 20, 2016 at 08:19:02PM +0530, Aneesh Kumar K.V wrote: > Paul Mackerras writes: > > > Currently, if the kernel is running on a POWER9 processor under a > > hypervisor, it will try to use the radix MMU even though it doesn't > > have the necessary code to use radix

Re: [GIT PULL 00/29] perf/core improvements and fixes

2016-12-20 Thread Ingo Molnar
-12-12 21:58:13 -0800) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-core-for-mingo-20161220 > > for you to fetch changes up to 9899694a7f67714216665b87318eb367e2c5c901: >

Re: [PATCH net v4 0/4] fsl/fman: fixes for ARM

2016-12-20 Thread David Miller
From: Madalin Bucur Date: Mon, 19 Dec 2016 22:42:42 +0200 > The patch set fixes advertised speeds for QSGMII interfaces, disables > A007273 erratum workaround on non-PowerPC platforms where it does not > apply, enables compilation on ARM64 and addresses a probing issue on

Re: [PATCH v3 13/15] livepatch: change to a per-task consistency model

2016-12-20 Thread Petr Mladek
On Thu 2016-12-08 12:08:38, Josh Poimboeuf wrote: > Change livepatch to use a basic per-task consistency model. This is the > foundation which will eventually enable us to patch those ~10% of > security patches which change function or data semantics. This is the > biggest remaining piece needed

[GIT PULL 00/29] perf/core improvements and fixes

2016-12-20 Thread Arnaldo Carvalho de Melo
-20161220 for you to fetch changes up to 9899694a7f67714216665b87318eb367e2c5c901: samples/bpf: Move open_raw_sock to separate header (2016-12-20 12:00:40 -0300) perf/core improvements and fixes: New features: - Introduce 'perf

[PATCH 23/29] perf annotate: Don't throw error for zero length symbols

2016-12-20 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria 'perf report --tui' exits with error when it finds a sample of zero length symbol (i.e. addr == sym->start == sym->end). Actually these are valid samples. Don't exit TUI and show report with such symbols. Reported-and-Tested-by: Anton

[PATCH 15/29] perf annotate: Fix jump target outside of function address range

2016-12-20 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria If jump target is outside of function range, perf is not handling it correctly. Especially when target address is lesser than function start address, target offset will be negative. But, target address declared to be unsigned, converts

[PATCH 14/29] perf annotate: Support jump instruction with target as second operand

2016-12-20 Thread Arnaldo Carvalho de Melo
From: Ravi Bangoria Architectures like PowerPC have jump instructions that includes a target address as a second operand. For example, 'bne cr7,0xc00f6154'. Add support for such instruction in perf annotate. objdump o/p: c00f6140: ld

Re: [PATCH v3 3/5] powerpc/mm: add radix__create_section_mapping()

2016-12-20 Thread Reza Arbab
On Tue, Dec 20, 2016 at 05:28:40PM +1100, Balbir Singh wrote: +#ifdef CONFIG_MEMORY_HOTPLUG +int radix__create_section_mapping(unsigned long start, unsigned long end) +{ + unsigned long page_size = 1 << mmu_psize_defs[mmu_linear_psize].shift; Can we refactor bits from

Re: [PATCH] powerpc/64: Don't try to use radix MMU under a hypervisor

2016-12-20 Thread Aneesh Kumar K.V
Paul Mackerras writes: > Currently, if the kernel is running on a POWER9 processor under a > hypervisor, it will try to use the radix MMU even though it doesn't > have the necessary code to use radix under a hypervisor (it doesn't > negotiate use of radix, and it doesn't do

[PATCH] powernv/opal: Handle OPAL_WRONG_STATE error from OPAL fails

2016-12-20 Thread Vipin K Parashar
Added check for OPAL_WRONG_STATE error code returned from OPAL. Currently Linux flashes "unexpected error" over console for this error. This will avoid throwing such message and return I/O error for such OPAL failures. Signed-off-by: Vipin K Parashar ---

[PATCH] powerpc/perf/24x7: use rb_entry

2016-12-20 Thread Geliang Tang
To make the code clearer, use rb_entry() instead of container_of() to deal with rbtree. Signed-off-by: Geliang Tang --- arch/powerpc/perf/hv-24x7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/perf/hv-24x7.c

Re: [PATCH v4 02/12] powerpc: move set_soft_enabled() and rename

2016-12-20 Thread Balbir Singh
On 20/12/16 20:32, Benjamin Herrenschmidt wrote: > On Tue, 2016-12-20 at 20:03 +1100, Balbir Singh wrote: >> >> On 19/12/16 19:06, Madhavan Srinivasan wrote: >>> Move set_soft_enabled() from powerpc/kernel/irq.c to >>> asm/hw_irq.c, to force updates to paca-soft_enabled >>> done via these access

[PATCH] powerpc/64: Don't try to use radix MMU under a hypervisor

2016-12-20 Thread Paul Mackerras
Currently, if the kernel is running on a POWER9 processor under a hypervisor, it will try to use the radix MMU even though it doesn't have the necessary code to use radix under a hypervisor (it doesn't negotiate use of radix, and it doesn't do the H_REGISTER_PROC_TBL hcall). The result is that

Re: [PATCH v3 01/15] stacktrace/x86: add function for detecting reliable stack traces

2016-12-20 Thread Petr Mladek
On Mon 2016-12-19 11:25:49, Josh Poimboeuf wrote: > On Mon, Dec 19, 2016 at 05:25:19PM +0100, Miroslav Benes wrote: > > On Thu, 8 Dec 2016, Josh Poimboeuf wrote: > > > > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > > > index 215612c..b4a6663 100644 > > > --- a/arch/x86/Kconfig > > > +++

Re: [PATCH] drivers/pci/hotplug: Handle presence detection change properly

2016-12-20 Thread Greg KH
On Tue, Dec 20, 2016 at 05:49:33PM +1100, Gavin Shan wrote: > The surprise hotplug is driven by interrupt in PowerNV PCI hotplug > driver. In the interrupt handler, pnv_php_interrupt(), we bail when > pnv_pci_get_presence_state() returns zero wrongly. It causes the > presence change event is

Re: [PATCH v4 02/12] powerpc: move set_soft_enabled() and rename

2016-12-20 Thread Benjamin Herrenschmidt
On Tue, 2016-12-20 at 20:03 +1100, Balbir Singh wrote: > > On 19/12/16 19:06, Madhavan Srinivasan wrote: > > Move set_soft_enabled() from powerpc/kernel/irq.c to > > asm/hw_irq.c, to force updates to paca-soft_enabled > > done via these access function. Add "memory" clobber > > to hint compiler

Re: [PATCH v4 02/12] powerpc: move set_soft_enabled() and rename

2016-12-20 Thread Balbir Singh
On 19/12/16 19:06, Madhavan Srinivasan wrote: > Move set_soft_enabled() from powerpc/kernel/irq.c to > asm/hw_irq.c, to force updates to paca-soft_enabled > done via these access function. Add "memory" clobber > to hint compiler since paca->soft_enabled memory is the target > here > +static