Re: [PATCH 11/16] powerpc: vio_cmo: use dev_groups and not dev_attrs for bus_type

2017-06-12 Thread Greg Kroah-Hartman
On Fri, Jun 09, 2017 at 09:23:10PM +1000, Michael Ellerman wrote: > Greg Kroah-Hartman writes: > > > On Fri, Jun 09, 2017 at 08:53:22AM +1000, Michael Ellerman wrote: > >> Greg Kroah-Hartman writes: > >> > >> > On Thu, Jun 08, 2017 at 11:12:10PM +1000, Michael Ellerman wrote: > >> >> Greg Kroah

Re: [BUG][next-20170606][bisected 411fe24e6b] WARNING: CPU: 10 PID: 0 at kernel/time/tick-sched.c:791

2017-06-12 Thread Abdul Haleem
On Fri, 2017-06-09 at 15:09 +0200, Frederic Weisbecker wrote: > On Wed, Jun 07, 2017 at 12:56:53PM +0530, Abdul Haleem wrote: > > Hi, > > > > Test: Trinity (https://github.com/kernelslacker/trinity) > > Machine : Power 8 PowerVM LPAR > > Kernel : 4.12.0-rc4-next-20170606 > > gcc : version 5.2.1 >

[PATCH v1] net/phy: Make phy_ethtool_ksettings_get return void

2017-06-12 Thread Yuval Shaia
Make return value void since function never return meaningfull value Signed-off-by: Yuval Shaia Acked-by: Sergei Shtylyov --- Re-sending since last time forgot to add netdev-list v0 ->v1: * These files were missing in v0 * drivers/net/ethernet/renesas/ravb_main.c

Re: [PATCH] cxl: Fixes for Coherent Accelerator Interface Architecture 2.0

2017-06-12 Thread christophe lombard
Le 09/06/2017 à 18:12, Frederic Barrat a écrit : Salut Christophe, It looks pretty good, but checkpatch complains about 1 or 2 items worth fixing. 2 small remarks below. Le 09/06/2017 à 12:09, Christophe Lombard a écrit : A previous set of patches "cxl: Add support for Coherent Accelerator

Re: [next-20170609][bisected 4d72ba0] WARNING: CPU: 8 PID: 11043 at lib/vsprintf.c:1945 set_precision

2017-06-12 Thread Joe Perches
On Mon, 2017-06-12 at 13:23 +0530, Abdul Haleem wrote: > Hi Rasmus, > > With commit (4d72ba0-lib/vsprintf.c: warn about too large precisions..) > > WARN_ONCE is being triggered while running trinity > $ git clone https://github.com/kernelslacker/trinity.git > $ cd trinity;./configure;make > $ .

Re: [PATCH 01/14] powerpc/64s: idle move soft interrupt mask logic into C code

2017-06-12 Thread Gautham R Shenoy
Hi Nick, (Added Paul Mackerass to the Cc) On Mon, Jun 12, 2017 at 09:58:22AM +1000, Nicholas Piggin wrote: > This simplifies the asm and fixes irq-off tracing over sleep > instructions. > > Also move powersave_nap check for POWER8 into C code, and move > PSSCR register value calculation for POWER

Re: [PATCH 03/14] powerpc/64s: idle provide a default idle for POWER9

2017-06-12 Thread Gautham R Shenoy
Hi Nick, On Mon, Jun 12, 2017 at 09:58:24AM +1000, Nicholas Piggin wrote: > Before the cpuidle driver is enabled, provide a default idle > function similarly to POWER7/8. > > This should not have much effect, because the cpuidle driver > for powernv is mandatory, but if that changes we should hav

Re: [PATCH 04/14] powerpc/64s: idle process interrupts from system reset wakeup

2017-06-12 Thread Gautham R Shenoy
Hi Nick, On Mon, Jun 12, 2017 at 09:58:25AM +1000, Nicholas Piggin wrote: > When the CPU wakes from low power state, it begins at the system reset > interrupt with the exception that caused the wakeup encoded in SRR1. > > Today, powernv idle wakeup ignores the wakeup reason (except a special > ca

Re: [PATCH 27/44] sparc: remove leon_dma_ops

2017-06-12 Thread Andreas Larsson
On 2017-06-08 15:25, Christoph Hellwig wrote: We can just use pci32_dma_ops. Btw, given that leon is 32-bit and appears to be PCI based, do even need the special case for it in get_arch_dma_ops at all? Hi! Yes, it is needed. LEON systems are AMBA bus based. The common case here is DMA over A

Re: [PATCH 00/35] defconfig: Cleanup from old entries

2017-06-12 Thread Arnd Bergmann
On Sat, Jun 10, 2017 at 6:43 PM, Krzysztof Kozlowski wrote: > On Fri, Jun 09, 2017 at 09:59:48PM +0200, Arnd Bergmann wrote: >> On Thu, Jun 8, 2017 at 6:08 PM, Krzysztof Kozlowski wrote: >> > Hi, >> > >> > While cleaning Samsung ARM defconfigs with savedefconfig, I encountered >> > similar obsole

Re: [PATCH] macintosh: move mac_hid driver to input/mouse.

2017-06-12 Thread Michal Suchánek
On Sat, 10 Jun 2017 12:00:22 +1000 Peter Hutterer wrote: > On Fri, Jun 09, 2017 at 01:39:53PM +0200, Michal Suchánek wrote: > > On Thu, 8 Jun 2017 16:18:28 -0700 > > Dmitry Torokhov wrote: > > > > > On Thu, Jun 8, 2017 at 4:07 PM, Peter Hutterer > > > wrote: > > > > On Thu, Jun 08, 2017 at

Re: [PATCH v2] perf: libdw support for powerpc [ping]

2017-06-12 Thread Ravi Bangoria
Hi Paolo, Thanks for the patch and really sorry for being late. I was quite busy with few other things. On Friday 09 June 2017 06:00 PM, Paolo Bonzini wrote: > > On 01/06/2017 12:24, Paolo Bonzini wrote: >> Porting PPC to libdw only needs an architecture-specific hook to move >> the register stat

[PATCH V2] cxl: Fixes for Coherent Accelerator Interface Architecture 2.0

2017-06-12 Thread Christophe Lombard
A previous set of patches "cxl: Add support for Coherent Accelerator Interface Architecture 2.0" has introduced a new support for the CAPI cards. These patches have been tested on Simulation environment and quite a bit of them have been tested on real hardware. This patch brings new fixes after a

Re: [PATCH] macintosh: move mac_hid driver to input/mouse.

2017-06-12 Thread Michal Suchánek
On Mon, 12 Jun 2017 13:40:07 +0200 Michal Suchánek wrote: > On Sat, 10 Jun 2017 12:00:22 +1000 > Peter Hutterer wrote: > > > On Fri, Jun 09, 2017 at 01:39:53PM +0200, Michal Suchánek wrote: > > > On Thu, 8 Jun 2017 16:18:28 -0700 > > > Dmitry Torokhov wrote: > > > > > > > On Thu, Jun 8,

Re: [PATCH v1] net/phy: Make phy_ethtool_ksettings_get return void

2017-06-12 Thread David Miller
From: Yuval Shaia Date: Mon, 12 Jun 2017 10:42:33 +0300 > Make return value void since function never return meaningfull value > > Signed-off-by: Yuval Shaia > Acked-by: Sergei Shtylyov > --- > Re-sending since last time forgot to add netdev-list > v0 ->v1: > * These files were missing i

patch "TTY: hvc: convert to use DRIVER_ATTR_RW" added to driver-core-testing

2017-06-12 Thread gregkh
This is a note to let you know that I've just added the patch titled TTY: hvc: convert to use DRIVER_ATTR_RW to my driver-core git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git in the driver-core-testing branch. The patch will show up in

[PATCH v2] net: phy: Make phy_ethtool_ksettings_get return void

2017-06-12 Thread Yuval Shaia
Make return value void since function never return meaningfull value Signed-off-by: Yuval Shaia Acked-by: Sergei Shtylyov --- v0 ->v1: * These files were missing in v0 * drivers/net/ethernet/renesas/ravb_main.c * drivers/net/ethernet/renesas/sh_eth.c

patch "powerpc: vio: use dev_groups and not dev_attrs for bus_type" added to driver-core-testing

2017-06-12 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc: vio: use dev_groups and not dev_attrs for bus_type to my driver-core git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git in the driver-core-testing branch. The p

patch "powerpc: vio_cmo: use dev_groups and not dev_attrs for bus_type" added to driver-core-testing

2017-06-12 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc: vio_cmo: use dev_groups and not dev_attrs for bus_type to my driver-core git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git in the driver-core-testing branch. T

Re: [PATCH v2] net: phy: Make phy_ethtool_ksettings_get return void

2017-06-12 Thread David Miller
From: Yuval Shaia Date: Mon, 12 Jun 2017 17:15:08 +0300 > Make return value void since function never return meaningfull value > > Signed-off-by: Yuval Shaia > Acked-by: Sergei Shtylyov > --- > v0 ->v1: > * These files were missing in v0 > * drivers/net/ethernet/renesas/rav

Re: [PATCH 05/14] powerpc/64s: msgclr when handling doorbell exceptions

2017-06-12 Thread Gautham R Shenoy
On Mon, Jun 12, 2017 at 09:58:26AM +1000, Nicholas Piggin wrote: > msgsnd doorbell exceptions are cleared when the doorbell interrupt is > taken. However if a doorbell exception causes a system reset interrupt > wake from power saving state, the message is not cleared. Processing > the doorbell fro

Re: [PATCH 06/14] powerpc/64s: interrupt replay balance the return branch predictor

2017-06-12 Thread Gautham R Shenoy
On Mon, Jun 12, 2017 at 09:58:27AM +1000, Nicholas Piggin wrote: > The __replay_interrupt code is branched to with bl, but the caller is > returned to directly with rfid from the interrupt. > > Instead return to a return stub that returns to the caller with blr, > which should do better with the r

[next-20170609] WARNING: CPU: 3 PID: 71167 at lib/idr.c:157 idr_replace

2017-06-12 Thread Abdul Haleem
Hi, WARN_ON_ONCE is being called from idr_replace() function in file lib/idr.c at line 157 struct radix_tree_node *node; void __rcu **slot = NULL; void *entry; if (WARN_ON_ONCE(id < 0)) return ERR_PTR(-EINVAL); if (WARN_ON_ONCE(radix_tree_is_internal_node(ptr)))

Re: [PATCH 01/14] powerpc/64s: idle move soft interrupt mask logic into C code

2017-06-12 Thread Nicholas Piggin
Hi Gautham, Thanks for the reviews. On Mon, 12 Jun 2017 14:07:27 +0530 Gautham R Shenoy wrote: > Hi Nick, > > (Added Paul Mackerass to the Cc) > On Mon, Jun 12, 2017 at 09:58:22AM +1000, Nicholas Piggin wrote: > > This simplifies the asm and fixes irq-off tracing over sleep > > instructions. >

Re: [PATCH 03/14] powerpc/64s: idle provide a default idle for POWER9

2017-06-12 Thread Nicholas Piggin
On Mon, 12 Jun 2017 14:23:16 +0530 Gautham R Shenoy wrote: > Hi Nick, > > On Mon, Jun 12, 2017 at 09:58:24AM +1000, Nicholas Piggin wrote: > > Before the cpuidle driver is enabled, provide a default idle > > function similarly to POWER7/8. > > > > This should not have much effect, because the c

Re: [PATCH 04/14] powerpc/64s: idle process interrupts from system reset wakeup

2017-06-12 Thread Nicholas Piggin
On Mon, 12 Jun 2017 15:11:06 +0530 Gautham R Shenoy wrote: > Hi Nick, > > On Mon, Jun 12, 2017 at 09:58:25AM +1000, Nicholas Piggin wrote: > > When the CPU wakes from low power state, it begins at the system reset > > interrupt with the exception that caused the wakeup encoded in SRR1. > > > >

Re: [PATCH v2] net: phy: Make phy_ethtool_ksettings_get return void

2017-06-12 Thread David Miller
From: David Miller Date: Mon, 12 Jun 2017 10:25:25 -0400 (EDT) > From: Yuval Shaia > Date: Mon, 12 Jun 2017 17:15:08 +0300 > >> Make return value void since function never return meaningfull value >> >> Signed-off-by: Yuval Shaia >> Acked-by: Sergei Shtylyov >> --- >> v0 ->v1: >> * Thes

Re: [PATCH 09/14] powerpc/64s: idle hmi wakeup is unlikely

2017-06-12 Thread Gautham R Shenoy
On Mon, Jun 12, 2017 at 09:58:30AM +1000, Nicholas Piggin wrote: > In a busy system, idle wakeups can be expected from IPIs and device > interrupts. > > Signed-off-by: Nicholas Piggin Reviewed-by: Gautham R. Shenoy > --- > arch/powerpc/kernel/idle_book3s.S | 2 +- > 1 file changed, 1 insertion

Re: [PATCH 10/14] powerpc/64s: cpuidle set polling before enabling irqs

2017-06-12 Thread Gautham R Shenoy
On Mon, Jun 12, 2017 at 09:58:31AM +1000, Nicholas Piggin wrote: > local_irq_enable can cause interrupts to be taken which could > take significant amount of processing time. The idle process > should set its polling flag before this, so another process that > wakes it during this time will not hav

Re: [PATCH 10/14] powerpc/64s: cpuidle set polling before enabling irqs

2017-06-12 Thread Nicholas Piggin
On Mon, 12 Jun 2017 20:40:25 +0530 Gautham R Shenoy wrote: > On Mon, Jun 12, 2017 at 09:58:31AM +1000, Nicholas Piggin wrote: > > local_irq_enable can cause interrupts to be taken which could > > take significant amount of processing time. The idle process > > should set its polling flag before t

Re: [PATCH 11/14] powerpc/64s: cpuidle read mostly for common globals

2017-06-12 Thread Gautham R Shenoy
On Mon, Jun 12, 2017 at 09:58:32AM +1000, Nicholas Piggin wrote: > Ensure these don't get put into bouncing cachelines. > > Signed-off-by: Nicholas Piggin Reviewed-by: Gautham R. Shenoy > --- > drivers/cpuidle/cpuidle-powernv.c | 10 +- > drivers/cpuidle/cpuidle-pseries.c | 8 ---

Re: [PATCH 14/14] powerpc/64s: idle runlatch switch is done with MSR[EE]=0

2017-06-12 Thread Vaidyanathan Srinivasan
* Nicholas Piggin [2017-06-12 09:58:35]: > 2*mfmsr and 2*mtmsr can be avoided in the idle sleep/wake code > because we know the MSR[EE] is clear. Good optimization for powernv. > Signed-off-by: Nicholas Piggin Acked-by: Vaidyanathan Srinivasan > --- > arch/powerpc/platforms/powernv/idle.c

Re: [PATCH 13/14] powerpc/64: runlatch CTRL[RUN] set optimisation

2017-06-12 Thread Vaidyanathan Srinivasan
* Nicholas Piggin [2017-06-12 09:58:34]: > The CTRL register is read-only except bit 63 which is the run latch > control. This means it can be updated with a mtspr rather than > mfspr/mtspr. > > Signed-off-by: Nicholas Piggin Reviewed-by: Vaidyanathan Srinivasan > --- > arch/powerpc/kernel/

Re: [PATCH 12/14] powerpc/64s: cpuidle no memory barrier after break from idle

2017-06-12 Thread Vaidyanathan Srinivasan
* Nicholas Piggin [2017-06-12 09:58:33]: > A memory barrier is not required after the task wakes up, > only if we clear the polling flag before waking. The case > where we have work to do is the important one, so optimise > for it. > > Signed-off-by: Nicholas Piggin Reviewed-by: Vaidyanathan S

Re: [PATCH 11/14] powerpc/64s: cpuidle read mostly for common globals

2017-06-12 Thread Vaidyanathan Srinivasan
* Gautham R Shenoy [2017-06-12 21:00:27]: > On Mon, Jun 12, 2017 at 09:58:32AM +1000, Nicholas Piggin wrote: > > Ensure these don't get put into bouncing cachelines. > > > > Signed-off-by: Nicholas Piggin > > Reviewed-by: Gautham R. Shenoy Reviewed-by: Vaidyanathan Srinivasan > > --- > >

Re: [PATCH v2] net: phy: Make phy_ethtool_ksettings_get return void

2017-06-12 Thread kbuild test robot
Hi Yuval, [auto build test ERROR on net-next/master] [also build test ERROR on next-20170609] [cannot apply to v4.12-rc5] [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/commits/Yuval-Shaia/net-phy-Make-

Re: [PATCH v2 2/3] EDAC: altera: simplify calculation of total memory

2017-06-12 Thread Thor Thayer
On 06/06/2017 06:54 PM, Chris Packham wrote: Use of_address_to_resource() and resource_size() instead of manually parsing the "reg" property from the "memory" node(s). Signed-off-by: Chris Packham --- Changes in v2: - New drivers/edac/altera_edac.c | 24 1 file chan

Re: [RFC PATCH 1/7 v1]powerpc: Free up four PTE bits to accommodate memory keys

2017-06-12 Thread Ram Pai
On Mon, Jun 12, 2017 at 12:27:44PM +0530, Aneesh Kumar K.V wrote: > Ram Pai writes: > > > Rearrange PTE bits to free up bits 3, 4, 5 and 6 for > > memory keys. Bit 3, 4, 5, 6 and 57 shall be used for memory > > keys. > > > > The patch does the following change to the 64K PTE format > >

Re: [PATCH v9 07/10] powerpc/perf: PMU functions for Core IMC and hotplugging

2017-06-12 Thread Thomas Gleixner
On Wed, 7 Jun 2017, Anju T Sudhakar wrote: > On Tuesday 06 June 2017 03:39 PM, Thomas Gleixner wrote: > > On Mon, 5 Jun 2017, Anju T Sudhakar wrote: > > > +static void cleanup_all_core_imc_memory(struct imc_pmu *pmu_ptr) > > > +{ > > > + struct imc_mem_info *ptr = pmu_ptr->mem_info; > > > + > > > +

Re: [PATCH] PCI: dwc: Constify dw_pcie_host_ops structures

2017-06-12 Thread Bjorn Helgaas
On Mon, Jun 05, 2017 at 04:53:46PM +0800, Jisheng Zhang wrote: > The dw_pcie_host_ops structures are never modified. Constify these > structures such that these can be write-protected. > > Signed-off-by: Jisheng Zhang Applied with Jingoo's ack to pci/host-designware for v4.13, thanks! > --- >

Re: [RFC PATCH 1/7 v1]powerpc: Free up four PTE bits to accommodate memory keys

2017-06-12 Thread Aneesh Kumar K.V
Ram Pai writes: > On Mon, Jun 12, 2017 at 12:27:44PM +0530, Aneesh Kumar K.V wrote: >> Ram Pai writes: >> >> > Rearrange PTE bits to free up bits 3, 4, 5 and 6 for >> > memory keys. Bit 3, 4, 5, 6 and 57 shall be used for memory >> > keys. >> > >> > The patch does the following chang

Re: [PATCH V2] cxl: Fixes for Coherent Accelerator Interface Architecture 2.0

2017-06-12 Thread Andrew Donnellan
On 12/06/17 22:45, Christophe Lombard wrote: A previous set of patches "cxl: Add support for Coherent Accelerator Interface Architecture 2.0" has introduced a new support for the CAPI cards. These patches have been tested on Simulation environment and quite a bit of them have been tested on real

Re: [PATCH 01/14] powerpc/64s: idle move soft interrupt mask logic into C code

2017-06-12 Thread Gautham R Shenoy
On Tue, Jun 13, 2017 at 12:46:02AM +1000, Nicholas Piggin wrote: > Hi Gautham, > > Thanks for the reviews. > > On Mon, 12 Jun 2017 14:07:27 +0530 > Gautham R Shenoy wrote: > > > Hi Nick, > > > > (Added Paul Mackerass to the Cc) > > On Mon, Jun 12, 2017 at 09:58:22AM +1000, Nicholas Piggin wrot

Re: [RFC PATCH 1/7 v1]powerpc: Free up four PTE bits to accommodate memory keys

2017-06-12 Thread Aneesh Kumar K.V
Ram Pai writes: > Rearrange PTE bits to free up bits 3, 4, 5 and 6 for > memory keys. Bit 3, 4, 5, 6 and 57 shall be used for memory > keys. > > The patch does the following change to the 64K PTE format > > H_PAGE_BUSY moves from bit 3 to bit 7 > H_PAGE_F_SECOND which occupied bit 4 mo

patch "TTY: hvc: convert to use DRIVER_ATTR_RW" added to driver-core-next

2017-06-12 Thread gregkh
This is a note to let you know that I've just added the patch titled TTY: hvc: convert to use DRIVER_ATTR_RW to my driver-core git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git in the driver-core-next branch. The patch will show up in th

patch "powerpc: vio: use dev_groups and not dev_attrs for bus_type" added to driver-core-next

2017-06-12 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc: vio: use dev_groups and not dev_attrs for bus_type to my driver-core git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git in the driver-core-next branch. The patc

patch "powerpc: vio_cmo: use dev_groups and not dev_attrs for bus_type" added to driver-core-next

2017-06-12 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc: vio_cmo: use dev_groups and not dev_attrs for bus_type to my driver-core git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git in the driver-core-next branch. The

[PATCH] recordmcount.pl: Add ppc64le to list of supported architectures

2017-06-12 Thread Kamalesh Babulal
Module make on ppc64le, fails with: make -C /root/kernel/linux M=/root/.kpatch/tmp/patch kpatch-data-read-mostly.ko make[1]: Entering directory '/root/kernel/linux' CC [M] /root/.kpatch/tmp/patch/patch-hook.o Arch ppc64le is not supported with CONFIG_FTRACE_MCOUNT_RECORD at ./scripts/recordmco

[PATCH] powerpc/modules: Introduce new stub code for SHN_LIVEPATCH symbols

2017-06-12 Thread Kamalesh Babulal
R_PPC64_REL24 relocation type is used for a function call, where the function symbol address is resolved and stub code (a.k.a trampoline) is constructed to jump into the global entry of the function. The caller is responsible for setting up the TOC of the called function before branching and NOP is