[PATCH] powerpc/powernv: Initialise nest mmu

2016-08-14 Thread Alistair Popple
POWER9 contains an off core mmu called the nest mmu (NMMU). This is used by other hardware units on the chip to translate virtual addresses into real addresses. The unit attempting an address translation provides the majority of the context required for the translation request except for the base a

Re: [PATCH kernel 14/15] vfio/spapr_tce: Export container API for external users

2016-08-14 Thread Paul Mackerras
On Tue, Aug 09, 2016 at 06:16:30AM -0600, Alex Williamson wrote: > On Tue, 9 Aug 2016 15:19:39 +1000 > Alexey Kardashevskiy wrote: > > > On 09/08/16 02:43, Alex Williamson wrote: > > > > > > I think you need to take a closer look of the lifecycle of a container, > > > having a reference means th

Re: [PATCH] powerpc: populate the default bus with machine_arch_initcall

2016-08-14 Thread Benjamin Herrenschmidt
On Sun, 2016-08-14 at 17:42 -0500, Rob Herring wrote: > > Not fan of the hard #ifdef at all... it will make it hard to > convert > > platforms one by one. Why not an arch_want_default_of_probe() or > > something like this which we can then plumb into ppc_md. ? > > Yeah, I'm not either really. I di

Re: [PATCH] powerpc: populate the default bus with machine_arch_initcall

2016-08-14 Thread Rob Herring
On Sun, Aug 14, 2016 at 4:21 PM, Benjamin Herrenschmidt wrote: > On Fri, 2016-08-12 at 14:30 -0500, Rob Herring wrote: >> >> > With the commit 44a7185c2ae6 ("of/platform: Add common method to >> > populate default bus"), a default function is introduced to >> > populate >> > the default bus and th

Re: [PATCH] i2c: don't print error when adding adapter fails

2016-08-14 Thread Wolfram Sang
On Tue, Aug 09, 2016 at 01:36:16PM +0200, Wolfram Sang wrote: > Since v4.8-rc1, the I2C core will print detailed information when adding an > I2C > adapter fails. So, drivers can skip this now. > > I am still undecided if I apply this as a single patch or break it out. But > for > reviewing, avo

Re: [PATCH] powerpc: populate the default bus with machine_arch_initcall

2016-08-14 Thread Benjamin Herrenschmidt
On Fri, 2016-08-12 at 14:30 -0500, Rob Herring wrote: >  > > With the commit 44a7185c2ae6 ("of/platform: Add common method to > > populate default bus"), a default function is introduced to > > populate > > the default bus and this function is invoked at the > > arch_initcall_sync > > level. But a

[PATCH] powerpc: cputhreads: Add missing include file

2016-08-14 Thread Guenter Roeck
Powerpc builds may fail with the following build error. Error log: In file included from ./arch/powerpc/include/asm/mmu_context.h:11:0, from ./include/linux/mmu_context.h:4, from mm/mmu_context.c:8: ./arch/powerpc/include/asm/cputhreads.h: In function 'get_tensr':

[PATCH] drivers/macintosh: Delete owner assignment

2016-08-14 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 14 Aug 2016 21:42:17 +0200 The field "owner" is set by core. Thus delete an extra initialisation. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Markus Elfring --- drivers/macintosh/ams/ams-i2c.c| 1 - drivers/macintosh/windf

Re: [PATCH 1/6] powerpc: port 64 bits pgtable_cache to 32 bits

2016-08-14 Thread christophe leroy
Le 14/08/2016 à 16:17, Aneesh Kumar K.V a écrit : Christophe Leroy writes: Today powerpc64 uses a set of pgtable_caches while powerpc32 uses standard pages when using 4k pages and a single pgtable_cache if using other size pages. In addition powerpc32 uses another cache when handling huge pag

Re: [PATCH 6/6] powerpc/8xx: implementation of huge pages

2016-08-14 Thread christophe leroy
Le 14/08/2016 à 16:25, Aneesh Kumar K.V a écrit : Christophe Leroy writes: The 8xx has 512k and 8M pages. This patch implements hugepages using those sizes. On the 8xx, the size of pages is in the PGD entry, using PS field (bits 28-29): 00 : Small pages (4k or 16k) 01 : 512k pages 10 : rese

Re: [PATCH 0/6] powerpc/8xx: implementation of huge pages

2016-08-14 Thread christophe leroy
Le 14/08/2016 à 16:27, Aneesh Kumar K.V a écrit : Christophe Leroy writes: This set provides implementation of huge pages on the 8xx Christophe Leroy (6): powerpc: port 64 bits pgtable_cache to 32 bits powerpc: fix usage of _PAGE_RO in hugepage powerpc/8xx: use r3 to scratch CR in ITL

Linux 4.8: Reported regressions as of Sunday, 2016-08-14

2016-08-14 Thread Thorsten Leemhuis
Hi! Here is my first regression report for Linux 4.8. It lists 11 regressions. I was told or found about 10 more, but it turned out all of them were fixed already in the past few days. Nice, but this in one of the reasons why compiling this report took way more hours than the past few reports :-

Linux 4.7: Reported regressions as of Sunday, 2016-08-14

2016-08-14 Thread Thorsten Leemhuis
Hi! Here is my eight regression report for Linux 4.7. It lists 13 regressions I'm currently aware of. 6 of them are new; none were fixed. As usual: Please let me know about any regressions missing on the list or if it contains something which shouldn't be there. Since the release of 4.7 there were

Re: [PATCH 0/6] powerpc/8xx: implementation of huge pages

2016-08-14 Thread Aneesh Kumar K.V
Christophe Leroy writes: > This set provides implementation of huge pages on the 8xx > > Christophe Leroy (6): > powerpc: port 64 bits pgtable_cache to 32 bits > powerpc: fix usage of _PAGE_RO in hugepage > powerpc/8xx: use r3 to scratch CR in ITLBmiss > powerpc/8xx: Move additional DTLBM

Re: [PATCH 6/6] powerpc/8xx: implementation of huge pages

2016-08-14 Thread Aneesh Kumar K.V
Christophe Leroy writes: > The 8xx has 512k and 8M pages. This patch implements hugepages using > those sizes. > > On the 8xx, the size of pages is in the PGD entry, > using PS field (bits 28-29): > 00 : Small pages (4k or 16k) > 01 : 512k pages > 10 : reserved > 11 : 8M pages > > The implementat

Re: [PATCH 1/6] powerpc: port 64 bits pgtable_cache to 32 bits

2016-08-14 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Today powerpc64 uses a set of pgtable_caches while powerpc32 uses > standard pages when using 4k pages and a single pgtable_cache > if using other size pages. In addition powerpc32 uses another cache > when handling huge pages. > > In preparation of implementing huge pa

Re: [PATCH v2 18/20] powerpc: tm: Always use fp_state and vr_state to store live registers

2016-08-14 Thread Simon Guo
On Fri, Aug 12, 2016 at 09:28:17AM +1000, Cyril Bur wrote: > @@ -846,7 +834,9 @@ static void tm_reclaim_thread(struct thread_struct *thr, > if (!MSR_TM_SUSPENDED(mfmsr())) > return; > > - tm_reclaim(thr, thr->regs->msr, cause); > + giveup_all(container_of(thr, struct t

Re: Problem booting Kernel 4.8-rc1 on Sam460ex ( Canyonlands)

2016-08-14 Thread Julian Margetson
On 8/8/2016 4:19 PM, Rob Herring wrote: On Mon, Aug 8, 2016 at 2:25 PM, Julian Margetson wrote: On 8/8/2016 9:39 AM, Kefeng Wang wrote: +cc Rob On 2016/8/8 20:51, Julian Margetson wrote: On 8/8/2016 8:22 AM, Kefeng Wang wrote: On 2016/8/8 19:52, Julian Margetson wrote: Problem booting Kern