Re: [GIT PULL 0/2] perf/urgent fixes

2016-03-30 Thread Ingo Molnar
pub/scm/linux/kernel/git/acme/linux into perf/urgent > (2016-03-30 12:31:03 +0200) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-urgent-for-mingo-20160330 > > for you to fetch changes up to 9

[PATCH] powerpc: Export thread_struct.used_vr/used_vsr to user space

2016-03-30 Thread Simon Guo
These 2 fields track whether user process has used Altivec/VSX registers or not. They are used by kernel to setup signal frame on user stack correctly regarding vector part. CRIU(Checkpoint and Restore In User space) builds signal frame for restored process. It will need this export information to

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

2016-03-30 Thread Gavin Shan
On Mon, Mar 28, 2016 at 12:48:27AM +1100, Gavin Shan wrote: >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 initializa

RE: [PATCH 4/5] fsl/qe: Add QE TDM lib

2016-03-30 Thread Qiang Zhao
On Wed, 2016-03-30 at 07:50PM, Joakim Tjernlund wrote: > -Original Message- > From: Joakim Tjernlund [mailto:joakim.tjernl...@infinera.com] > Sent: Wednesday, March 30, 2016 7:50 PM > To: da...@davemloft.net; Qiang Zhao > Cc: linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org; Xia

Re: [PATCH 04/65] powerpc/mm: Use pte_user instead of opencoding

2016-03-30 Thread Balbir Singh
On 27/03/16 19:23, Aneesh Kumar K.V wrote: > We have common declaration in pte-common.h Add book3s specific one > and switch to pte_user. In the later patch we will be switching > _PAGE_USER to _PAGE_PRIVILEGED > > Signed-off-by: Aneesh Kumar K.V > --- > arch/powerpc/include/asm/book3s/64/pgtab

Re: [PATCH 03/65] powerpc/mm/subpage: Clear RWX bit to indicate no access

2016-03-30 Thread Balbir Singh
On 27/03/16 19:23, Aneesh Kumar K.V wrote: > Subpage protection used to depend on _PAGE_USER bit to implement no > access mode. This patch switch that to use _PAGE_RWX. We clear READ, > Write and Execute access from pte instead of clearing _PAGE_USER now. > This was done so that we can switch to

Re: [PATCH 02/65] powerpc/mm: use _PAGE_READ to indicate Read access

2016-03-30 Thread Balbir Singh
On 27/03/16 19:23, Aneesh Kumar K.V wrote: > This split _PAGE_RW bit to _PAGE_READ and _PAGE_WRITE. It also remove > the dependency on _PAGE_USER for implying read only. Few things to note > here is that, we have read implied with write and execute permission. > Hence we should always find _PAGE_

Re: [v2] powerpc: mm: fixup preempt undefflow with huge pages

2016-03-30 Thread Michael Ellerman
On Tue, 2016-08-03 at 09:03:56 UTC, Sebastian Siewior wrote: > hugepd_free() used __get_cpu_var() once. Nothing ensured that the code > accessing the variable did not migrate from one CPU to another and soon > this was noticed by Tiejun Chen in 94b09d755462 ("powerpc/hugetlb: > Replace __get_cpu_va

Re: powerpc: correct VSX used_vsr comment

2016-03-30 Thread Michael Ellerman
On Thu, 2016-24-03 at 17:12:21 UTC, Simon Guo wrote: > used_vsr flag is set if process has used VSX register, > instead of Altivec register. > This patch corrects the wrong comment. > > Signed-off-by: Simon Guo Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/71528d8bd7a8aa9

Re: powerpc/process: fix altivec SPR not being saved

2016-03-30 Thread Michael Ellerman
On Mon, 2016-07-03 at 22:08:47 UTC, Oliver O'Halloran wrote: > In save_sprs() in process.c contains the following test: > > if (cpu_has_feature(cpu_has_feature(CPU_FTR_ALTIVEC))) > t->vrsave = mfspr(SPRN_VRSAVE); > > CPU feature with the mask 0x1 is CPU_FTR_COHERENT_ICACHE so

Re: [PATCH] perf jit: genelf makes assumptions about endian

2016-03-30 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 30, 2016 at 01:38:20PM +1100, Michael Ellerman escreveu: > On Tue, 2016-03-29 at 17:59 +1100, Anton Blanchard wrote: > > > Commit 9b07e27f88b9 ("perf inject: Add jitdump mmap injection support") > > incorrectly assumed that PowerPC is big endian only. > > > > Simplify things by consol

[PATCH 2/2] perf jit: genelf makes assumptions about endian

2016-03-30 Thread Arnaldo Carvalho de Melo
From: Anton Blanchard Commit 9b07e27f88b9 ("perf inject: Add jitdump mmap injection support") incorrectly assumed that PowerPC is big endian only. Simplify things by consolidating the define of GEN_ELF_ENDIAN and checking for __BYTE_ORDER == __BIG_ENDIAN. The PowerPC checks were also incorrect,

[GIT PULL 0/2] perf/urgent fixes

2016-03-30 Thread Arnaldo Carvalho de Melo
0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-20160330 for you to fetch changes up to 9f56c092b99b40ce3cf4c6d0134ff7e513c9f1a6: perf jit: genelf makes assumptions about endian (2016-03-30 18:1

Re: [PATCH][v3] mtd/ifc: Add support for IFC controller version 2.0

2016-03-30 Thread Li Yang
Hi Brian, Could you help to review and pull in this patch and the Kconfig update after this patch(https://patchwork.ozlabs.org/patch/557389/)? It stated a dependency in the notes, but actually it should be applied cleanly without that patch. These patches are critical to make NAND mtd feature wo

Re: [PATCH] Remove kretprobe_trampoline_holder.

2016-03-30 Thread Thiago Jung Bauermann
Am Mittwoch, 30 März 2016, 20:09:36 schrieb Michael Ellerman: > On Wed, 2016-03-30 at 13:34 +0530, Naveen N. Rao wrote: > > On 2016/03/29 08:35PM, Thiago Jung Bauermann wrote: > > > Am Dienstag, 29 März 2016, 14:31:34 schrieb Michael Ellerman: > > > > On Mon, 2016-03-28 at 17:06 -0300, Thiago Jung

[PATCH v3] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-03-30 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: [v2] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-03-30 Thread Hari Bathini
On 03/30/2016 04:47 PM, Michael Ellerman wrote: On Wed, 2016-03-30 at 13:14 +0530, Hari Bathini wrote: Alternatively, how about moving the OOLs handlers that can't be branched with LOAD_HANDLER under __end_interrupts. This way we won't be copying more than a few absolutely needed handlers. ST

[RFC PATCH 2/2] tools/perf: Change how probe offsets are handled

2016-03-30 Thread Naveen N. Rao
While trying to address the kallsyms perf test failure on ppc64le, Ananth noticed that we were not necessarily probing at the expected address when an offset to the function was specified. So far, we used to treat probe point offsets as being offset from the LEP. However, userspace applications (o

[RFC PATCH 1/2] tools/perf: Change how ppc64le symbols are fixed up

2016-03-30 Thread Naveen N. Rao
Reference: http://thread.gmane.org/gmane.linux.ports.ppc.embedded/93611/focus=93746 ppc64le functions have a Global Entry Point (GEP) and a Local Entry Point (LEP). While placing a probe, we always prefer the LEP since it catches function calls through both the GEP and the LEP. In order to do this

Re: [PATCH v4 5/5] printk/nmi: flush NMI messages on the system panic

2016-03-30 Thread kbuild test robot
Hi Petr, [auto build test ERROR on v4.6-rc1] [cannot apply to tip/x86/core next-20160330] [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-ci/linux/commits/Petr-Mladek/Cleaning-printk-stuff-in-NMI-context

[PATCH v4 5/5] printk/nmi: flush NMI messages on the system panic

2016-03-30 Thread Petr Mladek
In NMI context, printk() messages are stored into per-CPU buffers to avoid a possible deadlock. They are normally flushed to the main ring buffer via an IRQ work. But the work is never called when the system calls panic() in the very same NMI handler. This patch tries to flush NMI buffers before

[PATCH v4 4/5] printk/nmi: increase the size of NMI buffer and make it configurable

2016-03-30 Thread Petr Mladek
Testing has shown that the backtrace sometimes does not fit into the 4kB temporary buffer that is used in NMI context. The warnings are gone when I double the temporary buffer size. This patch doubles the buffer size and makes it configurable. Note that this problem existed even in the x86-speci

[PATCH v4 3/5] printk/nmi: warn when some message has been lost in NMI context

2016-03-30 Thread Petr Mladek
We could not resize the temporary buffer in NMI context. Let's warn if a message is lost. This is rather theoretical. printk() should not be used in NMI. The only sensible use is when we want to print backtrace from all CPUs. The current buffer should be enough for this purpose. [a...@linux-f

[PATCH v4 2/5] printk/nmi: use IRQ work only when ready

2016-03-30 Thread Petr Mladek
NMIs could happen at any time. This patch makes sure that the safe printk() in NMI will schedule IRQ work only when the related structs are initialized. All pending messages are flushed when the IRQ work is being initialized. Signed-off-by: Petr Mladek Cc: Jan Kara Cc: Peter Zijlstra Cc: Stev

[PATCH v4 1/5] printk/nmi: generic solution for safe printk in NMI

2016-03-30 Thread Petr Mladek
printk() takes some locks and could not be used a safe way in NMI context. The chance of a deadlock is real especially when printing stacks from all CPUs. This particular problem has been addressed on x86 by the commit a9edc8809328 ("x86/nmi: Perform a safe NMI stack trace on all CPUs"). The pat

[PATCH v4 0/5] Cleaning printk stuff in NMI context

2016-03-30 Thread Petr Mladek
This patch set generalizes the already existing solution for printing NMI messages. The main idea comes from Peter Zijlstra. v4 adds one more patch that flushes NNI buffers when the system is panicing. Otherwise, it is almost the same as the last version in the -mm tree, see changes below for more

Re: [PATCH 4/5] fsl/qe: Add QE TDM lib

2016-03-30 Thread Joakim Tjernlund
On Wed, 2016-03-30 at 16:50 +0800, Zhao Qiang wrote: > QE has module to support TDM, some other protocols > supported by QE are based on TDM. > add a qe-tdm lib, this lib provides functions to the protocols > using TDM to configurate QE-TDM. > > Signed-off-by: Zhao Qiang > --- >  drivers/soc/fsl/

Re: [PATCH 5/5] drivers/net: support hdlc function for QE-UCC

2016-03-30 Thread kbuild test robot
Hi Zhao, [auto build test ERROR on net/master] [also build test ERROR on v4.6-rc1 next-20160330] [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-ci/linux/commits/Zhao-Qiang/fsl-qe-add-rx_sync-and-tx_sync-for

Re: [PATCH 5/5] drivers/net: support hdlc function for QE-UCC

2016-03-30 Thread kbuild test robot
Hi Zhao, [auto build test WARNING on net/master] [also build test WARNING on v4.6-rc1 next-20160330] [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-ci/linux/commits/Zhao-Qiang/fsl-qe-add-rx_sync-and-tx_sync

[PATCH] powerpc: Export thread_struct.used_vr/used_vsr to user space

2016-03-30 Thread Simon Guo
These 2 fields track whether user process has used Altivec/VSX registers or not. They are used by kernel to setup signal frame on user stack correctly regarding vector part. CRIU(Checkpoint and Restore In User space) builds signal frame for restored process. It will need this export information to

Re: [v2] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-03-30 Thread Michael Ellerman
On Wed, 2016-03-30 at 12:44 +0530, Hari Bathini wrote: > On 03/30/2016 05:55 AM, Michael Ellerman wrote: > > On Tue, 2016-29-03 at 18:34:37 UTC, Hari Bathini wrote: > > > @@ -1244,6 +1235,16 @@ __end_handlers: > > > STD_RELON_EXCEPTION_PSERIES_OOL(0xf60, facility_unavailable) > > >

Re: [v2] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-03-30 Thread Michael Ellerman
On Wed, 2016-03-30 at 13:14 +0530, Hari Bathini wrote: > > Alternatively, how about moving the OOLs handlers that can't be branched with > LOAD_HANDLER under __end_interrupts. This way we won't be copying more than a > few absolutely needed handlers. > > STD_RELON_EXCEPTION_HV_OOL(0xe40, emulatio

Re: [PATCH 01/65] powerpc/mm: Use big endian page table for book3s 64

2016-03-30 Thread Balbir Singh
On 27/03/16 19:23, Aneesh Kumar K.V wrote: > This enables us to share the same page table code for > both radix and hash. Radix use a hardware defined big endian > page table > > Signed-off-by: Aneesh Kumar K.V > --- > arch/powerpc/include/asm/book3s/64/hash.h | 16 +++-- > arch/powerpc/inclu

Re: [PATCH 5/5] drivers/net: support hdlc function for QE-UCC

2016-03-30 Thread kbuild test robot
Hi Zhao, [auto build test WARNING on net/master] [also build test WARNING on v4.6-rc1 next-20160330] [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-ci/linux/commits/Zhao-Qiang/fsl-qe-add-rx_sync-and-tx_sync

Re: [PATCH] Remove kretprobe_trampoline_holder.

2016-03-30 Thread Michael Ellerman
On Wed, 2016-03-30 at 13:34 +0530, Naveen N. Rao wrote: > On 2016/03/29 08:35PM, Thiago Jung Bauermann wrote: > > Am Dienstag, 29 März 2016, 14:31:34 schrieb Michael Ellerman: > > > On Mon, 2016-03-28 at 17:06 -0300, Thiago Jung Bauermann wrote: > > > > With this patch, all vmlinux symbols match /p

Re: mailman From rewriting [was perf jit: genelf makes assumptions about endian]

2016-03-30 Thread Michael Ellerman
On Wed, 2016-03-30 at 13:30 +0800, Jeremy Kerr wrote: > > > Do you know why mailman would be re-writing From: there? It's confusing > > > patchwork, as multiple mails are now coming from that address. > > > > Yep, Anton posts from samba.org. They publish a DMARC policy that > > breaks mailing list

Re: mailman From rewriting [was perf jit: genelf makes assumptions about endian]

2016-03-30 Thread Michael Ellerman
On Wed, 2016-03-30 at 13:30 +0800, Jeremy Kerr wrote: > > > Do you know why mailman would be re-writing From: there? It's confusing > > > patchwork, as multiple mails are now coming from that address. > > > > Yep, Anton posts from samba.org. They publish a DMARC policy that > > breaks mailing list

[PATCH 5/5] drivers/net: support hdlc function for QE-UCC

2016-03-30 Thread Zhao Qiang
The driver add hdlc support for Freescale QUICC Engine. It support NMSI and TSA mode. Signed-off-by: Zhao Qiang --- MAINTAINERS|6 + drivers/net/wan/Kconfig| 12 + drivers/net/wan/Makefile |1 + drivers/net/wan/fsl_ucc_hdlc.c | 1339 +++

[PATCH 4/5] fsl/qe: Add QE TDM lib

2016-03-30 Thread Zhao Qiang
QE has module to support TDM, some other protocols supported by QE are based on TDM. add a qe-tdm lib, this lib provides functions to the protocols using TDM to configurate QE-TDM. Signed-off-by: Zhao Qiang --- drivers/soc/fsl/qe/Kconfig| 4 + drivers/soc/fsl/qe/Makefile | 1 + drivers

[PATCH 3/5] fsl/qe: Make regs resouce_size_t

2016-03-30 Thread Zhao Qiang
Signed-off-by: Zhao Qiang --- include/soc/fsl/qe/ucc_fast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/soc/fsl/qe/ucc_fast.h b/include/soc/fsl/qe/ucc_fast.h index b2633b7..e898895 100644 --- a/include/soc/fsl/qe/ucc_fast.h +++ b/include/soc/fsl/qe/ucc_fast.h @@ -1

[PATCH 2/5] fsl/qe: setup clock source for TDM mode

2016-03-30 Thread Zhao Qiang
Add tdm clock configuration in both qe clock system and ucc fast controller. Signed-off-by: Zhao Qiang --- drivers/soc/fsl/qe/ucc.c | 450 ++ drivers/soc/fsl/qe/ucc_fast.c | 36 include/soc/fsl/qe/qe.h | 16 ++ include/soc/fsl/qe/ucc.h

[PATCH 1/5] fsl/qe: add rx_sync and tx_sync for TDM mode

2016-03-30 Thread Zhao Qiang
Rx_sync and tx_sync are used by QE-TDM mode, add them to struct ucc_fast_info. Signed-off-by: Zhao Qiang --- drivers/soc/fsl/qe/qe.c | 6 ++ include/soc/fsl/qe/qe.h | 2 ++ include/soc/fsl/qe/ucc_fast.h | 2 ++ 3 files changed, 10 insertions(+) diff --git a/drivers/soc/fsl/qe/qe

Re: [PATCH] Remove kretprobe_trampoline_holder.

2016-03-30 Thread Naveen N. Rao
On 2016/03/30 01:34PM, Naveen N Rao wrote: > On 2016/03/29 08:35PM, Thiago Jung Bauermann wrote: > > Am Dienstag, 29 März 2016, 14:31:34 schrieb Michael Ellerman: > > > On Mon, 2016-03-28 at 17:06 -0300, Thiago Jung Bauermann wrote: > > So at first glance, it looks like perf is better off using sym

Re: [PATCH v2] powerpc: mm: fixup preempt undefflow with huge pages

2016-03-30 Thread Sebastian Andrzej Siewior
On 03/30/2016 02:41 AM, Michael Ellerman wrote: > The merge window just closed, I'm still recovering. > > I've got it in my fixes branch locally, I'll probably push that today to > linux-next. Thank you. > > cheers > Sebastian ___ Linuxppc-dev mailin

Re: [PATCH] Remove kretprobe_trampoline_holder.

2016-03-30 Thread Naveen N. Rao
On 2016/03/29 08:35PM, Thiago Jung Bauermann wrote: > Am Dienstag, 29 März 2016, 14:31:34 schrieb Michael Ellerman: > > On Mon, 2016-03-28 at 17:06 -0300, Thiago Jung Bauermann wrote: > > > With this patch, all vmlinux symbols match /proc/kallsyms and the > > > testcase passes. > > > > Have you te

Re: [v2] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-03-30 Thread Hari Bathini
On 03/30/2016 12:44 PM, Hari Bathini wrote: On 03/30/2016 05:55 AM, Michael Ellerman wrote: On Tue, 2016-29-03 at 18:34:37 UTC, Hari Bathini wrote: diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 7716ceb..e598580 100644 --- a/arch/powerpc/kern

Re: [v2] ppc64/book3s: fix branching to out of line handlers in relocation kernel

2016-03-30 Thread Hari Bathini
On 03/30/2016 05:55 AM, Michael Ellerman wrote: On Tue, 2016-29-03 at 18:34:37 UTC, Hari Bathini wrote: diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 7716ceb..e598580 100644 --- a/arch/powerpc/kernel/exceptions-64s.S +++ b/arch/powerpc/kernel/e