Re: [PATCH 03/13] powerpc/eeh: Fix use-after-release of EEH driver

2018-05-06 Thread Sam Bobroff
On Fri, May 04, 2018 at 12:56:55PM +1000, Michael Ellerman wrote: > Sam Bobroff writes: > > > Correct two cases where eeh_pcid_get() is used to reference the driver's > > module but the reference is dropped before the driver pointer is used. > > > > In eeh_rmv_device()

Re: [PATCH 02/13] powerpc/eeh: Add final message for successful recovery

2018-05-06 Thread Sam Bobroff
On Fri, May 04, 2018 at 04:08:28PM +1000, Russell Currey wrote: > On Fri, 2018-05-04 at 12:55 +1000, Michael Ellerman wrote: > > Sam Bobroff writes: > > > > > Add a single log line at the end of successful EEH recovery, so > > > that > > > it's clear that event processing

Re: [PATCH 02/13] powerpc/eeh: Add final message for successful recovery

2018-05-06 Thread Sam Bobroff
On Fri, May 04, 2018 at 12:55:42PM +1000, Michael Ellerman wrote: > Sam Bobroff writes: > > > Add a single log line at the end of successful EEH recovery, so that > > it's clear that event processing has finished. > > > > Signed-off-by: Sam Bobroff

Re: [RFC PATCH 1/2] powerpc/kbuild: Use flags variables rather than overriding LD/CC/AS

2018-05-06 Thread Masahiro Yamada
Hi. 2018-04-30 10:23 GMT+09:00 Nicholas Piggin : > The powerpc toolchain can compile combinations of 32/64 bit and > big/little endian, so it's convenient to consider, e.g., > > CC -m64 -mbig-endian > > To be the C compiler for the purpose of invoking it to build > target

Re: [PATCH 13/13] powerpc/eeh: Refactor report functions

2018-05-06 Thread Sam Bobroff
On Thu, May 03, 2018 at 11:27:12PM +1000, Michael Ellerman wrote: > Sam Bobroff writes: > > diff --git a/arch/powerpc/kernel/eeh_driver.c > > b/arch/powerpc/kernel/eeh_driver.c > > index eb4feee81ff4..1c4336dcf9f5 100644 > > --- a/arch/powerpc/kernel/eeh_driver.c > > +++

Re: [PATCH 06/10] powerpc/mm/radix: implement LPID based TLB flushes to be used by KVM

2018-05-06 Thread Paul Mackerras
On Sun, May 06, 2018 at 05:37:27PM +1000, Nicholas Piggin wrote: > Implement a local TLB flush for invalidating an LPID with variants for > process or partition scope. And a global TLB flush for invalidating > a partition scoped page of an LPID. > > These will be used by KVM in subsequent

Re: [PATCH 1/6] powerpc/syscalls: Switch trivial cases to SYSCALL_DEFINE

2018-05-06 Thread Michael Ellerman
"Naveen N. Rao" writes: > Michael Ellerman wrote: >> From: Al Viro >> >> Signed-off-by: Al Viro >> --- >> arch/powerpc/kernel/pci_32.c | 6 +++--- >> arch/powerpc/kernel/pci_64.c |

Re: [PATCH 4/4] powerpc/xive: prepare all hcalls to support long busy delays

2018-05-06 Thread Michael Ellerman
Benjamin Herrenschmidt writes: > On Fri, 2018-05-04 at 20:42 +1000, Michael Ellerman wrote: >> Cédric Le Goater writes: >> >> > This is not the case for the moment, but future releases of pHyp might >> > need to introduce some synchronisation routines

Re: [PATCH 4/4] powerpc: Allow LD_DEAD_CODE_DATA_ELIMINATION to be selected

2018-05-06 Thread Masahiro Yamada
Hi Nicholas, 2018-04-20 19:41 GMT+09:00 Nicholas Piggin : > On Fri, 20 Apr 2018 12:00:49 +0200 > Mathieu Malaterre wrote: > >> On Fri, Apr 20, 2018 at 9:34 AM, Nicholas Piggin wrote: >> > This requires further changes to linker script to

Re: [PATCH v3] powerpc, pkey: make protection key 0 less special

2018-05-06 Thread Ram Pai
On Sat, May 05, 2018 at 02:39:56PM +0200, Michal Suchánek wrote: > On Fri, 4 May 2018 14:45:07 -0700 > Ram Pai wrote: > > > On Fri, May 04, 2018 at 02:31:10PM -0700, Dave Hansen wrote: > > > On 05/04/2018 02:26 PM, Michal Suchánek wrote: > > > > If it is not ok to change

Re: [Skiboot] [PATCH 1/2] SLW: Remove stop1_lite and stop0 stop states

2018-05-06 Thread Stewart Smith
Michael Ellerman writes: > Stewart Smith writes: > ... >> >> Slightly stupid question: should we be disabling these here or should >> Linux be better and deciding what states to use? >> >> I'm inclined to say this is a Linux problem as it should

[PATCH 0/9] tree-wide: fix typo 'can by' to 'can be'

2018-05-06 Thread Wolfram Sang
I found this kind of typo when reading the documentation for device_remove(). So, I checked the tree for it. CCing all the subsystems directly, and I'd think the leftover ones could be picked up by the trivial tree. Or would it be more convenient if trivial would pick up all? I don't mind. Based

[PATCH 2/9] powerpc/watchdog: fix typo 'can by' to 'can be'

2018-05-06 Thread Wolfram Sang
Signed-off-by: Wolfram Sang --- arch/powerpc/kernel/watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/watchdog.c b/arch/powerpc/kernel/watchdog.c index 6256dc3b0087d2..591f7c3af4ffcd 100644 ---

[PATCH 06/10] powerpc/mm/radix: implement LPID based TLB flushes to be used by KVM

2018-05-06 Thread Nicholas Piggin
Implement a local TLB flush for invalidating an LPID with variants for process or partition scope. And a global TLB flush for invalidating a partition scoped page of an LPID. These will be used by KVM in subsequent patches. Signed-off-by: Nicholas Piggin ---

[PATCH QEMU] osdep: powerpc64 align memory to allow 2MB radix THP page tables

2018-05-06 Thread Nicholas Piggin
This allows KVM with the Book3S radix MMU mode to take advantage of THP and install larger pages in the partition scope page tables (the host translation). Signed-off-by: Nicholas Piggin --- include/qemu/osdep.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff