Re: [RFC PATCH 2/5] soc/fsl/qbman: Use shared-dma-pool for QMan private memory allocations

2017-03-31 Thread Robin Murphy
On 31/03/17 04:27, Michael Ellerman wrote: > Robin Murphy writes: > >> Hi Roy, >> >> On 29/03/17 22:13, Roy Pledge wrote: >>> Use the shared-memory-pool mechanism for frame queue descriptor and >>> packed frame descriptor record area allocations. >> >> Thanks for persevering with this - in my opi

Re: [PATCH v4 2/3] powerpc/xmon: drop the nobt option from xmon plus minor fixes

2017-03-31 Thread Guilherme G. Piccoli
On 03/30/2017 09:36 PM, Paul Mackerras wrote: > On Wed, Mar 22, 2017 at 04:27:50PM -0300, Guilherme G. Piccoli wrote: >> The xmon parameter nobt was added long time ago, by commit 26c8af5f01df >> ("[POWERPC] print backtrace when entering xmon"). The problem that time >> was that during a crash in a

Re: selftests/powerpc: Fix standalone powerpc build

2017-03-31 Thread Michael Ellerman
On Mon, 2017-03-27 at 04:19:47 UTC, Michael Ellerman wrote: > The changes to enable building with a separate output directory, in > commit a8ba798bc8ec ("selftests: enable O and KBUILD_OUTPUT") broke > building the powerpc selftests on their own, eg: > > $ cd tools/testing/selftests/powerpc; make

Re: [01/12] powerpc: Disable HFSCR:TM if TM not supported

2017-03-31 Thread Michael Ellerman
On Mon, 2017-03-20 at 06:49:03 UTC, Benjamin Herrenschmidt wrote: > Otherwise KVM guests might mess with it even when told not > to causing bad thing interrupts in the host > > Signed-off-by: Benjamin Herrenschmidt Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/7ed23e1bae8bf

Re: [v2] powerpc: make /proc/self/stack always print the current stack

2017-03-31 Thread Michael Ellerman
On Mon, 2017-03-27 at 19:32:33 UTC, Thadeu Lima de Souza Cascardo wrote: > For the current task, the kernel stack would only tell the last time the > process was rescheduled, if ever. Use the current stack pointer for the > current task. > > Otherwise, every once in a while, the stacktrace printed

Re: powerpc/powernv: Fix XSCOM address mangling for form 1 indirect

2017-03-31 Thread Michael Ellerman
On Fri, 2017-03-24 at 01:43:17 UTC, Michael Neuling wrote: > POWER9 adds form 1 scoms. The form of the indirection is specified in > the top nibble of the scom address. > > Currently we do some (ugly) bit mangling so that we can fit a 64 bit > scom address into the debugfs interface. The current c

Re: [v2] powerpc/powernv: de-deuplicate OPAL call wrappers

2017-03-31 Thread Michael Ellerman
On Thu, 2017-03-23 at 07:54:01 UTC, Oliver O'Halloran wrote: > Currently the code to perform an OPAL call is duplicated between the > normal path and path taken when tracepoints are enabled. There's no > real need for this and combining them makes opal_tracepoint_entry > considerably easier to unde

Re: [1/3] powerpc/configs: Re-enable ISO9660_FS as a built-in in 64 bit configs

2017-03-31 Thread Michael Ellerman
On Wed, 2017-03-22 at 21:21:59 UTC, Anton Blanchard wrote: > From: Anton Blanchard > > It turns out cloud-config uses ISO9660 filesystems to inject > configuration data into cloud images. The cloud-config failures when > ISO9660_FS is not enabled are cryptic, and building it in makes > mainline t

Re: [v4, 1/3] powerpc/xmon: Fix an unexpected xmon on/off state change

2017-03-31 Thread Michael Ellerman
On Wed, 2017-03-22 at 19:27:49 UTC, "Guilherme G. Piccoli" wrote: > From: Pan Xinhui > > Once xmon is triggered by sysrq-x, it is enabled always afterwards even > if it is disabled during boot. This will cause a system reset interrupt > fail to dump. So keep xmon in its original state after exit.

Re: powerpc/64: Don't use early_cpu_has_feature() in cpu_ready_for_interrupts()

2017-03-31 Thread Michael Ellerman
On Tue, 2017-03-21 at 05:24:38 UTC, Michael Ellerman wrote: > cpu_ready_for_interrupts() is called after feature patching, so there's > no need to use early_cpu_has_feature(). > > Signed-off-by: Michael Ellerman Applied to powerpc next. https://git.kernel.org/powerpc/c/5511a45fc134f0784c403ef34

Re: [v4] powernv/sensor: Handle OPAL_WRONG_STATE error return

2017-03-31 Thread Michael Ellerman
On Fri, 2017-03-10 at 11:57:32 UTC, Vipin K Parashar wrote: > OPAL returns OPAL_WRONG_STATE upon failing to provide > sensor data due to core sleeping/offline. Added check > in opal_get_sensor_data() for sensor read failure with > OPAL_WRONG_STATE return code and returned -EIO. > > Signed-off-by:

Re: [PATCH V3 5/7] cxl: Rename some psl8 specific functions

2017-03-31 Thread Andrew Donnellan
On 29/03/17 02:14, Christophe Lombard wrote: Rename a few functions, changing the '_psl' suffix to '_psl8', to make clear that the implementation is psl8 specific. Those functions will have an equivalent implementation for the psl9 in a later patch. Signed-off-by: Christophe Lombard Looks fin

Re: [PATCH V3 4/7] cxl: Update implementation service layer

2017-03-31 Thread Andrew Donnellan
On 29/03/17 02:14, Christophe Lombard wrote: The service layer API (in cxl.h) lists some low-level functions whose implementation is different on PSL8, PSL9 and XSL: - Init implementation for the adapter and the afu. - Invalidate TLB/SLB. - Attach process for dedicated/directed models. - Handle p