Re: [PATCH v7 00/12] implement KASLR for powerpc/fsl_booke/32

2019-10-08 Thread Jason Yan
Hi Scott, Would you please take sometime to test this? Thank you so much. On 2019/9/24 13:52, Jason Yan wrote: Hi Scott, Can you test v7 to see if it works to load a kernel at a non-zero address? Thanks, On 2019/9/20 17:45, Jason Yan wrote: This series implements KASLR for powerpc/fsl_book

Re: [PATCH 1/3] powerpc/book3s64/hash/4k: 4k supports only 16TB linear mapping

2019-10-08 Thread Michael Ellerman
Samuel Holland writes: > Hello, > > On 9/17/19 9:57 AM, Aneesh Kumar K.V wrote: >> With commit: 0034d395f89d ("powerpc/mm/hash64: Map all the kernel regions in >> the >> same 0xc range"), we now split the 64TB address range into 4 contexts each of >> 16TB. That implies we can do only 16TB linear

[PATCH] spufs: fix a crash in spufs_create_root()

2019-10-08 Thread Emmanuel Nicolet
The spu_fs_context was not set in fc->fs_private, this caused a crash when accessing ctx->mode in spufs_create_root(). Signed-off-by: Emmanuel Nicolet --- arch/powerpc/platforms/cell/spufs/inode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/ar

Re: [PATCH v5 02/11] powerpc/mm: Adds counting method to monitor lockless pgtable walks

2019-10-08 Thread Christopher Lameter
On Tue, 8 Oct 2019, Leonardo Bras wrote: > So you say that the performance impact of using my approach is the same > as using locks? (supposing that lock never waits) > > So, there are 'lockless pagetable walks' only for the sake of better > performance? I thought that was the major motivation

Re: [PATCH v5 02/11] powerpc/mm: Adds counting method to monitor lockless pgtable walks

2019-10-08 Thread Leonardo Bras
On Tue, 2019-10-08 at 17:43 +, Christopher Lameter wrote: > On Tue, 8 Oct 2019, Leonardo Bras wrote: > > > > You are creating contention on a single exclusive cacheline. Doesnt this > > > defeat the whole purpose of the lockless page table walk? Use mmap_sem or > > > so should cause the same p

Re: [PATCH v5 02/11] powerpc/mm: Adds counting method to monitor lockless pgtable walks

2019-10-08 Thread Christopher Lameter
On Tue, 8 Oct 2019, Leonardo Bras wrote: > > You are creating contention on a single exclusive cacheline. Doesnt this > > defeat the whole purpose of the lockless page table walk? Use mmap_sem or > > so should cause the same performance regression? > > Sorry, I did not understand that question. >

Re: [PATCH v5 02/11] powerpc/mm: Adds counting method to monitor lockless pgtable walks

2019-10-08 Thread Leonardo Bras
On Tue, 2019-10-08 at 15:11 +, Christopher Lameter wrote: > > On Wed, 2 Oct 2019, Leonardo Bras wrote: > > > + > > +inline unsigned long __begin_lockless_pgtbl_walk(struct mm_struct *mm, > > +bool disable_irq) > > +{ > > + unsigned long irq_mask =

Re: [PATCH] spufs: fix a crash in spufs_create_root()

2019-10-08 Thread Arnd Bergmann
On Tue, Oct 8, 2019 at 4:13 PM Emmanuel Nicolet wrote: > > The spu_fs_context was not set in fc->fs_private, this caused a crash > when accessing ctx->mode in spufs_create_root(). > > Signed-off-by: Emmanuel Nicolet Fixes: d2e0981c3b9a ("vfs: Convert spufs to use the new mount API") Acked-by: Ar

Re: [PATCH v5 02/11] powerpc/mm: Adds counting method to monitor lockless pgtable walks

2019-10-08 Thread Christopher Lameter
On Wed, 2 Oct 2019, Leonardo Bras wrote: > + > +inline unsigned long __begin_lockless_pgtbl_walk(struct mm_struct *mm, > + bool disable_irq) > +{ > + unsigned long irq_mask = 0; > + > + if (IS_ENABLED(CONFIG_LOCKLESS_PAGE_TABLE_WALK_TRACKING)

Re: [PATCH v5 01/11] asm-generic/pgtable: Adds generic functions to monitor lockless pgtable walks

2019-10-08 Thread Kirill A. Shutemov
On Sat, Oct 05, 2019 at 02:05:29PM +0530, Aneesh Kumar K.V wrote: > MADV_DONTNEED has caused us multiple issues due to the fact that it can run > in parallel to page fault. I am not sure whether we have a known/noticeable > performance gain in allowing that with mmap_sem held in read mode. Yes we

[PATCH] hvc: dcc: Add earlycon support

2019-10-08 Thread Michal Simek
Add DCC earlycon support for early printks. The patch is useful for SoC bringup where HW serial console is broken. Signed-off-by: Michal Simek --- I have this patch in Xilinx tree for quite a long time and it was develop as preparation work for SoC bringup where jtag is functional and get inform

Re: [PATCH v6 3/9] powerpc: add support to initialize ima policy rules

2019-10-08 Thread Nayna
On 10/02/2019 05:49 PM, Mimi Zohar wrote: On Tue, 2019-10-01 at 12:07 -0400, Nayna wrote: On 09/30/2019 09:04 PM, Thiago Jung Bauermann wrote: Hello, Hi, diff --git a/arch/powerpc/kernel/ima_arch.c b/arch/powerpc/kernel/ima_arch.c new file mode 100644 index ..39401b67f19e ---

Re: [PATCH v6] numa: make node_to_cpumask_map() NUMA_NO_NODE aware

2019-10-08 Thread Yunsheng Lin
On 2019/9/25 18:41, Peter Zijlstra wrote: > On Wed, Sep 25, 2019 at 05:14:20PM +0800, Yunsheng Lin wrote: >> From the discussion above, It seems making the node_to_cpumask_map() >> NUMA_NO_NODE aware is the most feasible way to move forwad. > > That's still wrong. Hi, Peter It seems this has tra

Re: [PATCH V4 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-10-08 Thread Anshuman Khandual
On 10/07/2019 07:30 PM, Kirill A. Shutemov wrote: > On Mon, Oct 07, 2019 at 03:51:58PM +0200, Ingo Molnar wrote: >> >> * Kirill A. Shutemov wrote: >> >>> On Mon, Oct 07, 2019 at 03:06:17PM +0200, Ingo Molnar wrote: * Anshuman Khandual wrote: > This adds a test module which w

Re: [PATCH V4 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-10-08 Thread Anshuman Khandual
On 10/07/2019 06:36 PM, Ingo Molnar wrote: > > * Anshuman Khandual wrote: > >> This adds a test module which will validate architecture page table helpers >> and accessors regarding compliance with generic MM semantics expectations. >> This will help various architectures in validating changes

RE: [PATCH v6 3/3] PCI: layerscape: Add LS1028a support

2019-10-08 Thread Xiaowei Bao
> -Original Message- > From: Shawn Guo > Sent: 2019年10月3日 17:11 > To: Xiaowei Bao > Cc: robh...@kernel.org; mark.rutl...@arm.com; Leo Li > ; M.h. Lian ; Mingkai Hu > ; Roy Zang ; > lorenzo.pieral...@arm.com; linux-...@vger.kernel.org; > devicet...@vger.kernel.org; linux-ker...@vger.kern