Re: [PATCH 2/5] powerpc: Fix vDSO clock_getres()

2019-04-01 Thread Christophe Leroy
On 04/01/2019 11:51 AM, Vincenzo Frascino wrote: clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depends on the enablement of the

Re: linux-next: build failure after merge of the sound-asoc tree

2019-04-01 Thread Mark Brown
On Mon, Apr 01, 2019 at 10:11:44PM +1100, Michael Ellerman wrote: > Anyway I think what you've done in next, make the code depend on > COMMON_CLOCK, is the best option. If anyone cares about that driver on > powerpc platforms that don't support COMMON_CLOCK they should speak up. It's probably

[PATCH kernel] powerpc/mm_iommu: Allow pinning large regions

2019-04-01 Thread Alexey Kardashevskiy
When called with vmas_arg==NULL, get_user_pages_longterm() allocates an array of nr_pages*8 which can easily get greater that the max order, for example, registering memory for a 256GB guest does this and fails in __alloc_pages_nodemask(). This adds a loop over chunks of entries to fit the max

Re: [PATCH 2/2] powerpc/perf: Add generic compat mode pmu driver

2019-04-01 Thread Madhavan Srinivasan
On 01/04/19 4:00 PM, kbuild test robot wrote: Hi Madhavan, Thank you for the patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.1-rc3 next-20190401] [if your patch is applied to the wrong git tree, please drop us a note to help improve

Re: [PATCH 06/13] soc/fsl/qbman_portals: add APIs to retrieve the probing status

2019-04-01 Thread Li Yang
On Fri, Mar 29, 2019 at 9:03 AM wrote: > > From: Laurentiu Tudor > > Add a couple of new APIs to check the probing status of the required > cpu bound qman and bman portals: > 'int bman_portals_probed()' and 'int qman_portals_probed()'. > They return the following values. > * 1 if qman/bman

Re: [PATCH] ASoC: fsl_esai: Support synchronous mode

2019-04-01 Thread Nicolin Chen
Shengjiu, On Mon, Apr 01, 2019 at 11:39:10AM +, S.j. Wang wrote: > In ESAI synchronous mode, the clock is generated by Tx, So > we should always set registers of Tx which relate with the > bit clock and frame clock generation (TCCR, TCR, ECR), even > there is only Rx is working. > >

[PATCH 5/5] kselftest: Extend vDSO selftest to clock_getres

2019-04-01 Thread Vincenzo Frascino
The current version of the multiarch vDSO selftest verifies only gettimeofday. Extend the vDSO selftest to clock_getres, to verify that the syscall and the vDSO library function return the same information. The extension has been used to verify the hrtimer_resoltion fix. Cc: Shuah Khan

[PATCH 4/5] nds32: Fix vDSO clock_getres()

2019-04-01 Thread Vincenzo Frascino
clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depends on the enablement of the high resolution timers that can happen either at compile

[PATCH 3/5] s390: Fix vDSO clock_getres()

2019-04-01 Thread Vincenzo Frascino
clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depends on the enablement of the high resolution timers that can happen either at compile

[PATCH 2/5] powerpc: Fix vDSO clock_getres()

2019-04-01 Thread Vincenzo Frascino
clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depends on the enablement of the high resolution timers that can happen either at compile

[PATCH 1/5] arm64: Fix vDSO clock_getres()

2019-04-01 Thread Vincenzo Frascino
clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depends on the enablement of the high resolution timers that can happen either at compile

[PATCH 0/5] Fix vDSO clock_getres()

2019-04-01 Thread Vincenzo Frascino
clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depends on the enablement of the high resolution timers that can happen either at compile

Re: [PATCH v2 1/5] arch/arc: unwind.c: replace swap function with built-in one

2019-04-01 Thread Vineet Gupta
On 3/31/19 11:31 AM, Andrey Abramov wrote: > Replace swap_eh_frame_hdr_table_entries with built-in one, because > swap_eh_frame_hdr_table_entries does a simple byte to byte swap. > > Since Spectre mitigations have made indirect function calls more > expensive, and the default simple byte copies

[PATCH 5/6 v3] syscalls: Remove start and number from syscall_get_arguments() args

2019-04-01 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" At Linux Plumbers, Andy Lutomirski approached me and pointed out that the function call syscall_get_arguments() implemented in x86 was horribly written and not optimized for the standard case of passing in 0 and 6 for the starting index and the number of system

[PATCH 6/6 v3] syscalls: Remove start and number from syscall_set_arguments() args

2019-04-01 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" After removing the start and count arguments of syscall_get_arguments() it seems reasonable to remove them from syscall_set_arguments(). Note, as of today, there are no users of syscall_set_arguments(). But we are told that there will be soon. But for now, at

Re: [PATCH 03/12] PowerPC-83xx: add missing of_node_put after of_device_is_available

2019-04-01 Thread Mukesh Ojha
On 2/23/2019 6:50 PM, Julia Lawall wrote: Add an of_node_put when a tested device node is not available. The semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ identifier f; local idexpression e; expression x; @@ e = f(...); ... when != of_node_put(e)

[PATCH] ASoC: fsl_esai: Support synchronous mode

2019-04-01 Thread S.j. Wang
In ESAI synchronous mode, the clock is generated by Tx, So we should always set registers of Tx which relate with the bit clock and frame clock generation (TCCR, TCR, ECR), even there is only Rx is working. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_esai.c | 28

RE: [PATCH 02/13] soc/fsl/bman: map FBPR area in the iommu

2019-04-01 Thread Laurentiu Tudor
Hi Leo, > -Original Message- > From: Li Yang [mailto:leoyang...@nxp.com] > Sent: Friday, March 29, 2019 11:16 PM > > On Fri, Mar 29, 2019 at 9:03 AM wrote: > > > > From: Laurentiu Tudor > > > > Add a one-to-one iommu mapping for bman private data memory (FBPR). > > This is required for

Re: [PATCH] powerpc/rtas: fix early boot failure.

2019-04-01 Thread Christophe Leroy
Michael, Looks like you missed this fix for rc3. Christophe Le 25/03/2019 à 09:43, Christophe Leroy a écrit : Commit 0df977eafc79 ("powerpc/6xx: Don't use SPRN_SPRG2 for storing stack pointer while in RTAS") changes the code to use a field in thread struct to store the stack pointer while in

Re: linux-next: build failure after merge of the sound-asoc tree

2019-04-01 Thread Michael Ellerman
Mark Brown writes: > On Wed, Mar 27, 2019 at 03:29:55PM +1100, Michael Ellerman wrote: >> Mark Brown writes: > >> > Hrm, seems PowerPC is still not using the common clock API - is there >> > any plan for that? There are some ASoC PowerPC uses so it's going to be >> > a bit of an issue as we

Re: [PATCH v2 2/5] powerpc: module_[32|64].c: replace swap function with built-in one

2019-04-01 Thread Michael Ellerman
Andrey Abramov writes: > Replace relaswap with built-in one, because relaswap > does a simple byte to byte swap. I replied to v1 with an ack, which stands, this is just a clarification. > Since Spectre mitigations have made indirect function calls more > expensive, and the default simple byte

RE: [PATCH 02/13] soc/fsl/bman: map FBPR area in the iommu

2019-04-01 Thread Laurentiu Tudor
Hi Robin, > -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Friday, March 29, 2019 4:51 PM > > On 29/03/2019 14:00, laurentiu.tu...@nxp.com wrote: > > From: Laurentiu Tudor > > > > Add a one-to-one iommu mapping for bman private data memory (FBPR). > > This

RE: [PATCH 13/13] dpaa_eth: fix SG frame cleanup

2019-04-01 Thread Laurentiu Tudor
Hi Joakim, > -Original Message- > From: Joakim Tjernlund [mailto:joakim.tjernl...@infinera.com] > Sent: Friday, March 29, 2019 5:25 PM> > > Should this one go stable 4.14/4.19 too? Good point. I also think it makes sense to cc: stable. --- Best Regards, Laurentiu > On Fri, 2019-03-29

Re: [PATCH 2/2] powerpc/perf: Add generic compat mode pmu driver

2019-04-01 Thread kbuild test robot
Hi Madhavan, Thank you for the patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.1-rc3 next-20190401] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH v2 5/5] Lib: sort.h: replace int size with size_t size in the swap function

2019-04-01 Thread Andy Shevchenko
On Mon, Apr 01, 2019 at 09:56:07AM +, George Spelvin wrote: > On Mon, 1 Apr 2019 at 12:35:55 +0300, Andy Shevchenko wrote: > > Hmm... If (*swap)() is called recursively it means the change might increase > > stack usage on 64-bit platforms. > > > > Am I missing something? > > Under what

RE: [PATCH 01/13] soc/fsl/qman: fixup liodns only on ppc targets

2019-04-01 Thread Laurentiu Tudor
Hi Leo, > -Original Message- > From: Li Yang [mailto:leoyang...@nxp.com] > Sent: Friday, March 29, 2019 11:50 PM > To: Laurentiu Tudor > Cc: Netdev ; Madalin-cristian Bucur > ; Roy Pledge ; Camelia > Alexandra Groza ; David Miller > ; Linux IOMMU ; > moderated list:ARM/FREESCALE IMX /

RE: [PATCH 05/13] soc/fsl/bqman: page align iommu mapping sizes

2019-04-01 Thread Laurentiu Tudor
Hi Leo, > -Original Message- > From: Li Yang [mailto:leoyang...@nxp.com] > Sent: Saturday, March 30, 2019 12:07 AM > To: Laurentiu Tudor > Cc: Netdev ; Madalin-cristian Bucur > ; Roy Pledge ; Camelia > Alexandra Groza ; David Miller > ; Linux IOMMU ; > moderated list:ARM/FREESCALE IMX /

Re: [PATCH 2/5] powerpc: module_[32|64].c: replace swap function with built-in one

2019-04-01 Thread Michael Ellerman
Andrey Abramov writes: > Replace relaswap with built-in one, because of relaswap > does a simple byte to byte swap. > > Signed-off-by: Andrey Abramov > --- > arch/powerpc/kernel/module_32.c | 17 + > arch/powerpc/kernel/module_64.c | 17 + > 2 files changed, 2

Re: [PATCH 1/8] PCI: dwc: pci-dra7xx: fix a leaked reference by adding missing of_node_put

2019-04-01 Thread Lorenzo Pieralisi
On Wed, Feb 27, 2019 at 12:40:36PM +0800, Wen Yang wrote: > The call to of_get_next_child returns a node pointer with refcount > incremented thus it must be explicitly decremented after the last > usage. > irq_domain_add_linear also calls of_node_get to increase refcount, > so irq_domain will not

Re: [PATCH v2 5/5] Lib: sort.h: replace int size with size_t size in the swap function

2019-04-01 Thread George Spelvin
On Mon, 1 Apr 2019 at 12:35:55 +0300, Andy Shevchenko wrote: > Hmm... If (*swap)() is called recursively it means the change might increase > stack usage on 64-bit platforms. > > Am I missing something? Under what conceivable circumstance would someone write a recursive (*swap)() function?

Re: [PATCH 1/2] powerpc/perf: init platform pmu driver from core-book3s

2019-04-01 Thread kbuild test robot
Hi Madhavan, Thank you for the patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.1-rc3 next-20190401] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH v2 5/5] Lib: sort.h: replace int size with size_t size in the swap function

2019-04-01 Thread Andy Shevchenko
On Sun, Mar 31, 2019 at 09:52:50PM +0300, Andrey Abramov wrote: > Replace int type with size_t type of the size argument > in the swap function, also affect all its dependencies. > > It's always been weird that sort() takes a size_t element size, > but passes an int size to (*swap)(). Not a bug

Applied "ASoC: fsl: fix spelling mistake: "missign" -> "missing"" to the asoc tree

2019-04-01 Thread Mark Brown
The patch ASoC: fsl: fix spelling mistake: "missign" -> "missing" has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

Re: [Qemu-ppc] pseries on qemu-system-ppc64le crashes in doorbell_core_ipi()

2019-04-01 Thread Peter Zijlstra
+ fweisbec, who did the remote bits On Sat, Mar 30, 2019 at 01:10:28PM +1000, Nicholas Piggin wrote: > Something like this? > > kernel/irq_work: Do not raise an IPI when queueing work on the local CPU > > The QEMU powerpc/pseries machine model was not expecting a self-IPI, > and it may be a

Re: [PATCH 2/2] arch: add pidfd and io_uring syscalls everywhere

2019-04-01 Thread Geert Uytterhoeven
On Mon, Mar 25, 2019 at 3:48 PM Arnd Bergmann wrote: > Add the io_uring and pidfd_send_signal system calls to all architectures. > > These system calls are designed to handle both native and compat tasks, > so all entries are the same across architectures, only arm-compat and > the generic tale

Re: [PATCH] mm: Fix modifying of page protection by insert_pfn_pmd()

2019-04-01 Thread Jan Kara
On Sat 30-03-19 11:11:21, Aneesh Kumar K.V wrote: > With some architectures like ppc64, set_pmd_at() cannot cope with > a situation where there is already some (different) valid entry present. > > Use pmdp_set_access_flags() instead to modify the pfn which is built to > deal with modifying

Re: [PATCH] Documentation: powerpc: Expand the DAWR acronym

2019-04-01 Thread Michael Neuling
On Mon, 2019-04-01 at 16:41 +1030, Joel Stanley wrote: > Those not of us not drowning in POWER might not know what this means. Hehe... thanks! > Signed-off-by: Joel Stanley Acked-by: Michael Neuling > --- > Documentation/powerpc/DAWR-POWER9.txt | 8 > 1 file changed, 4

[PATCH] powerpc/perf: Remove PM_BR_CMPL_ALT from power9 event list

2019-04-01 Thread Madhavan Srinivasan
PM_BR_CMPL_ALT event is not supported and remove from the power9 event list Fixes: 24bedcb7c811 ('powerpc/perf: Fix branch event code for power9') Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/power9-events-list.h | 2 -- 1 file changed, 2 deletions(-) diff --git

[PATCH] Documentation: powerpc: Expand the DAWR acronym

2019-04-01 Thread Joel Stanley
Those not of us not drowning in POWER might not know what this means. Signed-off-by: Joel Stanley --- Documentation/powerpc/DAWR-POWER9.txt | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/powerpc/DAWR-POWER9.txt b/Documentation/powerpc/DAWR-POWER9.txt

[PATCH v2] powerpc: Add force enable of DAWR on P9 option

2019-04-01 Thread Michael Neuling
This adds a flag so that the DAWR can be enabled on P9 via: echo Y > /sys/kernel/debug/powerpc/dawr_enable_dangerous The DAWR was previously force disabled on POWER9 in: 9654153158 powerpc: Disable DAWR in the base POWER9 CPU features Also see Documentation/powerpc/DAWR-POWER9.txt This is a