[PATCH] ppc64/book3s: copy interrupts till __end_handlers marker instead of __end_interrupts

2016-03-28 Thread Hari Bathini
Some of the interrupt vectors on 64-bit POWER server processors are only 32 bytes long (8 instructions), which is not enough for the full first-level interrupt handler. For these we need to branch to an out- of-line (OOL) handler. But when we are running a relocatable kernel, interrupt vectors til

Re: [PATCH 1/1] perf tools: Fix build break on powerpc

2016-03-28 Thread Arnaldo Carvalho de Melo
Em Sat, Mar 26, 2016 at 11:01:47AM -0700, Sukadev Bhattiprolu escreveu: > From 502e8236082412db1d33abfad95aaf14b539502e Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Sat, 26 Mar 2016 17:31:39 -0400 > Subject: [PATCH 1/1] perf tools: Fix build break on powerpc > MIME-Version: 1.0 > C

Re: [PATCH 1/1] perf tools: Fix build break on powerpc

2016-03-28 Thread Arnaldo Carvalho de Melo
Em Sun, Mar 27, 2016 at 01:19:03PM +0200, Jiri Olsa escreveu: > On Sat, Mar 26, 2016 at 11:01:47AM -0700, Sukadev Bhattiprolu wrote: > > From 502e8236082412db1d33abfad95aaf14b539502e Mon Sep 17 00:00:00 2001 > > From: Sukadev Bhattiprolu > > Date: Sat, 26 Mar 2016 17:31:39 -0400 > > Subject: [PATC

Re: [v4] powerpc/pci: Assign fixed PHB number based on device-tree properties

2016-03-28 Thread Guilherme G. Piccoli
On 03/25/2016 06:33 AM, Michael Ellerman wrote: Hi Guilherme, Some comments below ... Hi Michael, thanks for the comments. +/* For dynamic PHB numbering on get_phb_number(): max number of PHBs. */ +#defineMAX_PHBS8192 Did we just make that up? It seems like a lot, but then

Re: [PATCH 1/1] perf tools: Fix build break on powerpc

2016-03-28 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 28, 2016 at 09:35:31AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Sun, Mar 27, 2016 at 01:19:03PM +0200, Jiri Olsa escreveu: > > On Sat, Mar 26, 2016 at 11:01:47AM -0700, Sukadev Bhattiprolu wrote: > > > From 502e8236082412db1d33abfad95aaf14b539502e Mon Sep 17 00:00:00 2001 > > > Fr

Re: [PATCH 1/1] perf tools: Fix build break on powerpc

2016-03-28 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 28, 2016 at 10:21:45AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Mar 28, 2016 at 09:35:31AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Sun, Mar 27, 2016 at 01:19:03PM +0200, Jiri Olsa escreveu: > > > On Sat, Mar 26, 2016 at 11:01:47AM -0700, Sukadev Bhattiprolu wrote: >

Re: cxl: fix setting of _PAGE_USER bit when handling page faults

2016-03-28 Thread Aneesh Kumar K.V
Michael Ellerman writes: > [ text/plain ] > On Fri, 2016-18-03 at 04:01:21 UTC, Andrew Donnellan wrote: >> When handling page faults, cxl_handle_page_fault() checks whether the page >> should be accessible by userspace and have its _PAGE_USER access bit set. >> _PAGE_USER should be set if the con

Re: [RFC] mm: Fix memory corruption caused by deferred page initialization

2016-03-28 Thread Aneesh Kumar K.V
Gavin Shan writes: > [ text/plain ] > On Sat, Mar 26, 2016 at 08:47:17PM +1100, Michael Ellerman wrote: >>Hi Gavin, >> >>On Fri, 2016-25-03 at 16:05:29 UTC, Gavin Shan wrote: >>> During deferred page initialization, the pages are moved from memblock >>> or bootmem to buddy allocator without check

Re: [PATCH 2/3] powerpc: make kernel/nvram_64.c explicitly non-modular

2016-03-28 Thread Nathan Fontenot
On 03/27/2016 05:08 PM, Paul Gortmaker wrote: > The Makefile/Kconfig currently controlling compilation of this code is: > > obj-$(CONFIG_PPC64) += setup_64.o sys_ppc32.o \ >signal_64.o ptrace32.o \ >paca.o nvram_64

Re: [PATCH 37/65] powerpc/mm/radix: Add tlbflush routines

2016-03-28 Thread Aneesh Kumar K.V
kbuild test robot writes: > [ text/plain ] > Hi Aneesh, > > [auto build test ERROR on powerpc/next] > [also build test ERROR on v4.6-rc1 next-20160324] > [if your patch is applied to the wrong git tree, please drop us a note to > help improving the system] > > url: > https://github.com/0day-

Re: cxl: fix setting of _PAGE_USER bit when handling page faults

2016-03-28 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > [ text/plain ] > Michael Ellerman writes: > >> [ text/plain ] >> On Fri, 2016-18-03 at 04:01:21 UTC, Andrew Donnellan wrote: >>> When handling page faults, cxl_handle_page_fault() checks whether the page >>> should be accessible by userspace and have its _PAGE_USER a

Re: [PATCH 2/3] swiotlb: prefix dma_to_phys and phys_to_dma functions

2016-03-28 Thread Konrad Rzeszutek Wilk
On Fri, Mar 18, 2016 at 11:00 AM, Sinan Kaya wrote: > On 3/18/2016 8:12 AM, Robin Murphy wrote: >> Since we know for sure that swiotlb_to_phys is a no-op on arm64, it might be >> cleaner to simply not reference it at all. I suppose we could have some >> private local wrappers, e.g.: >> >> #defin

[PATCH] Remove kretprobe_trampoline_holder.

2016-03-28 Thread Thiago Jung Bauermann
Fixes the following testsuite failure: $ sudo ./perf test -v kallsyms 1: vmlinux symtab matches kallsyms : --- start --- test child forked, pid 12489 Using /proc/kcore for kernel object code Looking at the vmlinux_path (8 entries long) Using /boot/vmlinux for symbols 0xc0

Re: [PATCH] Remove kretprobe_trampoline_holder.

2016-03-28 Thread Thiago Jung Bauermann
Am Montag, 28 März 2016, 17:06:32 schrieb Thiago Jung Bauermann: > /home/bauermann/src/linux/tools/testing/selftests/ftrace/test.d/kprobe/kp > robe_ftrace.tc: line 9: echo: write error: Invalid argument > > But even without my patch that testcase fails in the same way, so this > is not a probl

Re: [PATCH] Remove kretprobe_trampoline_holder.

2016-03-28 Thread Michael Ellerman
On Mon, 2016-03-28 at 17:29 -0300, Thiago Jung Bauermann wrote: > Am Montag, 28 März 2016, 17:06:32 schrieb Thiago Jung Bauermann: > > /home/bauermann/src/linux/tools/testing/selftests/ftrace/test.d/kprobe/kp > > robe_ftrace.tc: line 9: echo: write error: Invalid argument > > > > But even wit

Re: [RFC] mm: Fix memory corruption caused by deferred page initialization

2016-03-28 Thread Gavin Shan
On Sun, Mar 27, 2016 at 12:37:09AM +1100, Gavin Shan wrote: >On Sat, Mar 26, 2016 at 08:47:17PM +1100, Michael Ellerman wrote: >>Hi Gavin, >> >>On Fri, 2016-25-03 at 16:05:29 UTC, Gavin Shan wrote: >>> During deferred page initialization, the pages are moved from memblock >>> or bootmem to buddy al

Re: [PATCH 5/6] powerpc/livepatch: Add livepatch stack to struct thread_info

2016-03-28 Thread Balbir Singh
On 24/03/16 22:04, Michael Ellerman wrote: > In order to support live patching we need to maintain an alternate > stack of TOC & LR values. We use the base of the stack for this, and > store the "live patch stack pointer" in struct thread_info. > > Unlike the other fields of thread_info, we can n

Re: [PATCH v2 0/2] Fix regression and performance issue in cxlflash

2016-03-28 Thread Martin K. Petersen
> "Uma" == Uma Krishnan writes: Hey Uma, Uma> This series has a couple of patches in cxlflash. The first patch Uma> is critical as it fixes a regression that was introduced by Commit Uma> 6ded8b3cbd9a ("cxlflash: Unmap problem state area before detaching Uma> master context") as part of the

[v2 PATCH 1/2] powerpc/pagetable: Add option to dump the linux pagetables

2016-03-28 Thread Rashmica Gupta
Useful to be able to dump the kernels page tables to check permissions and memory types - derived from arm64's implementation. Add a debugfs file to check the page tables. To use this the PPC_PTDUMP config option must be selected. Signed-off-by: Rashmica Gupta --- Do not check for COMBO pages if

[PATCH 2/2] powerpc/pagetable: Add option to dump kernel hashpagetable

2016-03-28 Thread Rashmica Gupta
Useful to be able to dump the kernel hash page table to check which pages are hashed along with their sizes and other details. Add a debugfs file to check the page tables. To use this the PPC_PTDUMP config option must be selected. Signed-off-by: Rashmica Gupta --- arch/powerpc/mm/Makefile

[PATCH V2 1/2] pseries/eeh: Refactor the configure bridge RTAS tokens

2016-03-28 Thread Russell Currey
The RTAS calls configure-pe and configure-bridge perform the same actions, however the former can skip configuration if unnecessary. The existing code treats them as different tokens even though only one will ever be called. Refactor this by making a single token that is assigned during init. Cc

[PATCH V2 2/2] pseries/eeh: Handle RTAS delay requests in configure_bridge

2016-03-28 Thread Russell Currey
In the configure_pe and configure_bridge RTAS calls, the spec states that values of 9900-9905 can be returned, indicating that software should delay for 10^x (where x is the last digit, i.e. 990x) milliseconds and attempt the call again. Currently, the kernel doesn't know about this, and respecting

Re: [PATCH] Remove kretprobe_trampoline_holder.

2016-03-28 Thread Michael Ellerman
On Mon, 2016-03-28 at 17:06 -0300, Thiago Jung Bauermann wrote: > Fixes the following testsuite failure: > > $ sudo ./perf test -v kallsyms > 1: vmlinux symtab matches kallsyms : > --- start --- > test child forked, pid 12489 > Using /proc/kcore for kernel object code >

Re: [RFC] mm: Fix memory corruption caused by deferred page initialization

2016-03-28 Thread Li Zhang
A problem is found by back porting page parallel initialisation for RHEL7.2. And CONFIG_NO_BOOTMEM = n. If kernel old version with page parallel needs to work well, it still needs to fix with BOOTMEM as this patch looks like. There are some potential bugs with page parallel in RHEL7.2. I will cont

Re: [PATCH 5/6] powerpc/livepatch: Add livepatch stack to struct thread_info

2016-03-28 Thread Michael Ellerman
On Tue, 2016-03-29 at 10:58 +1100, Balbir Singh wrote: > On 24/03/16 22:04, Michael Ellerman wrote: > > diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c > > index 290559df1e8b..3cb46a3b1de7 100644 > > --- a/arch/powerpc/kernel/irq.c > > +++ b/arch/powerpc/kernel/irq.c > > @@ -66,6

Re: [PATCH V2 1/2] pseries/eeh: Refactor the configure bridge RTAS tokens

2016-03-28 Thread Gavin Shan
On Tue, Mar 29, 2016 at 12:51:50PM +1000, Russell Currey wrote: >The RTAS calls configure-pe and configure-bridge perform the same >actions, however the former can skip configuration if unnecessary. The >existing code treats them as different tokens even though only one will >ever be called. Refa

Re: [PATCH 6/6] powerpc/livepatch: Add live patching support on ppc64le

2016-03-28 Thread Michael Ellerman
On Thu, 2016-03-24 at 14:42 +0100, Torsten Duwe wrote: > On Thu, Mar 24, 2016 at 10:04:05PM +1100, Michael Ellerman wrote: > > +livepatch_handler: > > + CURRENT_THREAD_INFO(r12, r1) > [...] > > + /* Put ctr in r12 for global entry and branch there */ > > + mfctr r12 > > + bctrl >

Re: [PATCH 5/6] powerpc/livepatch: Add livepatch stack to struct thread_info

2016-03-28 Thread Balbir Singh
>> At this point ti->livepatch_sp points to the next CPUs thread_info for >> softirq_ctx? > Sorry I'm not sure what you mean. > > None of this relates to the current CPUs thread info. Oh! I meant that klp_init_thread_info points to the end of (struct thread_info {} + 1) in the stack of the threa

Re: [PATCH V2 1/2] pseries/eeh: Refactor the configure bridge RTAS tokens

2016-03-28 Thread Russell Currey
On Tue, 2016-03-29 at 16:26 +1100, Gavin Shan wrote: > On Tue, Mar 29, 2016 at 12:51:50PM +1000, Russell Currey wrote: > > /* > > * Necessary sanity check. We needn't check "get-config-addr-info" > > @@ -93,8 +98,7 @@ static int pseries_eeh_init(void) > > (ibm_read_slot_reset_stat

[PATCH] fsl/qe_ic: move qe_ic to drivers/irqchip

2016-03-28 Thread Zhao Qiang
qe_ic was put in drivers/soc/fsl/qe, but it should be in drivers/irqchip. Signed-off-by: Zhao Qiang --- drivers/irqchip/Makefile| 1 + drivers/{soc/fsl/qe => irqchip}/qe_ic.c | 0 drivers/{soc/fsl/qe => irqchip}/qe_ic.h | 0 drivers/soc/fsl/qe/Makefile | 2 +- 4 files