Re: STRICT_KERNEL_RWX on PPC32 is broken on PowerMac G4

2017-11-17 Thread Meelis Roos
> > > How early does it hang ? Any oops or trace ? > > > > Very early - instead oif kernel emssages, I see some repeated gibberish > > of some characteers, and the background turns white. > > I am booting from yaboot, background is normally black. > > Ok, could you try by replacing #ifdef CONFIG_

Re: [PATCH] [net] ibmvnic: fix dma_mapping_error call

2017-11-17 Thread David Miller
From: Desnes Augusto Nunes do Rosario Date: Fri, 17 Nov 2017 09:09:04 -0200 > This patch fixes the dma_mapping_error call to use the correct dma_addr > which is inside the ibmvnic_vpd struct. Moreover, it fixes an uninitialized > warning regarding a local dma_addr variable which is not used anymo

[PATCH v3] powerpc/powernv: Add ppc_pci_reset_phbs parameter to issue a PHB reset

2017-11-17 Thread Guilherme G. Piccoli
During a kdump kernel boot in PowerPC, we request a reset of the PHBs to the FW. It makes sense, since if we are booting a kdump kernel it means we had some trouble before and we cannot rely in the adapters' health; they could be in a bad state, hence the reset is needed. But this reset is useful

Re: [PATCH v3] ppc64 boot: Wait for boot cpu to show up if nr_cpus limit is about to hit.

2017-11-17 Thread Guilherme G. Piccoli
On 11/17/2017 03:26 PM, Thadeu Lima de Souza Cascardo wrote: > On Thu, Nov 16, 2017 at 07:26:43PM -0200, Guilherme G. Piccoli wrote: >> On 11/06/2017 03:34 PM, Thadeu Lima de Souza Cascardo wrote: >>> From: Mahesh Salgaonkar >>> >>> The kernel boot parameter 'nr_cpus=' allows one to specify numb

Re: [PATCH v3] ppc64 boot: Wait for boot cpu to show up if nr_cpus limit is about to hit.

2017-11-17 Thread Thadeu Lima de Souza Cascardo
On Thu, Nov 16, 2017 at 07:26:43PM -0200, Guilherme G. Piccoli wrote: > On 11/06/2017 03:34 PM, Thadeu Lima de Souza Cascardo wrote: > > From: Mahesh Salgaonkar > > > > The kernel boot parameter 'nr_cpus=' allows one to specify number of > > possible cpus in the system. In the normal scenario the

Re: [Intel-wired-lan] [PATCH 0/7] [RESEND] [net] intel: Use smp_rmb rather than read_barrier_depends

2017-11-17 Thread Duyck, Alexander H
On Fri, 2017-11-17 at 10:16 -0600, Brian King wrote: > On 11/16/2017 04:57 PM, Michael Ellerman wrote: > > Brian King writes: > > > > > On 11/16/2017 01:33 PM, Jesse Brandeburg wrote: > > > > On Thu, 16 Nov 2017 09:37:48 -0600 > > > > Brian King wrote: > > > > > > > > > Resending as the first a

Re: [Intel-wired-lan] [PATCH 0/7] [RESEND] [net] intel: Use smp_rmb rather than read_barrier_depends

2017-11-17 Thread Brian King
On 11/16/2017 04:57 PM, Michael Ellerman wrote: > Brian King writes: > >> On 11/16/2017 01:33 PM, Jesse Brandeburg wrote: >>> On Thu, 16 Nov 2017 09:37:48 -0600 >>> Brian King wrote: >>> Resending as the first attempt is not showing up in the list archive. This patch converts seve

Re: STRICT_KERNEL_RWX on PPC32 is broken on PowerMac G4

2017-11-17 Thread LEROY Christophe
Meelis Roos a écrit : Meelis Roos a écrit : > > > For me, 4.13 worked and 4.14 hangs early during boot. Bisecting led to > > > the following commit. I had STRICT_KERNEL_RWX enabled when I met the > > > option. When I disabled STRICT_KERNEL_RWX, the same kernel booted fine. > > > > Can you

[PATCH 3/3] powerpc/64s/idle: POWER9 ESL=0 stop avoid save/restore overhead

2017-11-17 Thread Nicholas Piggin
When stop is executed with EC=ESL=0, it appears to execute like a normal instruction (resuming from NIP when woken by interrupt). So all the save/restore handling can be avoided completely. In particular NV GPRs do not have to be saved, and MSR does not have to be switched back to kernel MSR. So m

[PATCH 2/3] powerpc/64s/idle: avoid sync for KVM state when waking from idle

2017-11-17 Thread Nicholas Piggin
When waking from a CPU idle instruction (e.g., nap or stop), the sync for ordering the KVM secondary thread state can be avoided if there wakeup is coming from a kernel context rather than KVM context. This improves performance for ping-pong benchmark with the stop0 idle state by 0.46% for 2 threa

[PATCH 1/3] powerpc/64s/idle: POWER9 implement a separate idle stop function for hotplug

2017-11-17 Thread Nicholas Piggin
Implement a new function to invoke stop, power9_offline_stop, which is like power9_idle_stop but used by the cpu hotplug code. Move KVM secondary state manipulation code to the offline case. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/processor.h | 1 + arch/powerpc/kernel/idl

[PATCH 0/3] one more try at idle improvements

2017-11-17 Thread Nicholas Piggin
The recent KVM work clashed with a couple of my patches, so they were reverted/dropped for this merge window. I've made another attempt at them, hopefully done in a way that is more compatible with KVM requirements and in a bit nicer way (POWER8 contex switching should speed up a bit too). I'm not

Re: STRICT_KERNEL_RWX on PPC32 is broken on PowerMac G4

2017-11-17 Thread Meelis Roos
> Meelis Roos a écrit : > > > > > For me, 4.13 worked and 4.14 hangs early during boot. Bisecting led to > > > > the following commit. I had STRICT_KERNEL_RWX enabled when I met the > > > > option. When I disabled STRICT_KERNEL_RWX, the same kernel booted fine. > > > > > > Can you please check t

[PATCH] powerpc: Check DAWR before setting watchpoint

2017-11-17 Thread pedromfc
Parse the PVR to check if DAWR was disabled by firmware for POWER9 DD2.0 and if so return in error from ptrace. Based on initial code provided by Michael Neuling . Suggested-by: Ananth N Mavinakayanahalli Signed-off-by: Pedro Franco de Carvalho --- arch/powerpc/include/asm/debug.h| 1 + a

[PATCH] [net] ibmvnic: fix dma_mapping_error call

2017-11-17 Thread Desnes Augusto Nunes do Rosario
This patch fixes the dma_mapping_error call to use the correct dma_addr which is inside the ibmvnic_vpd struct. Moreover, it fixes an uninitialized warning regarding a local dma_addr variable which is not used anymore. Fixes: 4e6759be28e4 ("ibmvnic: Feature implementation of VPD for the ibmvnic d

Re: [PATCH 0/9] posix_clocks: Prepare syscalls for 64 bit time_t conversion

2017-11-17 Thread Arnd Bergmann
On Fri, Nov 17, 2017 at 11:40 AM, Thomas Gleixner wrote: > On Fri, 17 Nov 2017, Arnd Bergmann wrote: >> On Fri, Nov 17, 2017 at 10:54 AM, Thomas Gleixner wrote: >> > On Fri, 17 Nov 2017, Arnd Bergmann wrote: >> >> On Fri, Nov 17, 2017 at 9:58 AM, Thomas Gleixner >> >> wrote: >> >> >> >> No, sys

Re: [PATCH 0/9] posix_clocks: Prepare syscalls for 64 bit time_t conversion

2017-11-17 Thread Thomas Gleixner
On Fri, 17 Nov 2017, Arnd Bergmann wrote: > On Fri, Nov 17, 2017 at 10:54 AM, Thomas Gleixner wrote: > > On Fri, 17 Nov 2017, Arnd Bergmann wrote: > >> On Fri, Nov 17, 2017 at 9:58 AM, Thomas Gleixner > >> wrote: > >> > >> No, syscall that existing 32-bit user space enters would be handled by >

Re: [PATCH 0/9] posix_clocks: Prepare syscalls for 64 bit time_t conversion

2017-11-17 Thread Arnd Bergmann
On Fri, Nov 17, 2017 at 10:54 AM, Thomas Gleixner wrote: > On Fri, 17 Nov 2017, Arnd Bergmann wrote: >> On Fri, Nov 17, 2017 at 9:58 AM, Thomas Gleixner wrote: >> >> No, syscall that existing 32-bit user space enters would be handled by >> compat_sys_nanosleep() on both 32-bit and 64-bit kernels

[PATCH 2/6] media: rc keymaps: add SPDX identifiers to the code I wrote

2017-11-17 Thread Mauro Carvalho Chehab
As we're now using SPDX identifiers, on the several RC keymap files I wrote, add the proper SPDX, identifying the license I meant. As we're now using the short license, it doesn't make sense to keep the original license text. Also, fix MODULE_LICENSE to identify GPL v2, as this is the minimal lic

Re: [PATCH 0/9] posix_clocks: Prepare syscalls for 64 bit time_t conversion

2017-11-17 Thread Thomas Gleixner
On Fri, 17 Nov 2017, Arnd Bergmann wrote: > On Fri, Nov 17, 2017 at 9:58 AM, Thomas Gleixner wrote: > > On Fri, 17 Nov 2017, Arnd Bergmann wrote: > >> On Thu, Nov 16, 2017 at 10:04 AM, Thomas Gleixner > >> wrote: > >> > On Wed, 15 Nov 2017, Deepa Dinamani wrote: > >> >> Would this work for every

Re: [PATCH 0/9] posix_clocks: Prepare syscalls for 64 bit time_t conversion

2017-11-17 Thread Arnd Bergmann
On Fri, Nov 17, 2017 at 9:58 AM, Thomas Gleixner wrote: > On Fri, 17 Nov 2017, Arnd Bergmann wrote: >> On Thu, Nov 16, 2017 at 10:04 AM, Thomas Gleixner wrote: >> > On Wed, 15 Nov 2017, Deepa Dinamani wrote: >> >> Would this work for everyone? >> > >> > Having extra config switches which are sele

Re: [PATCH 0/9] posix_clocks: Prepare syscalls for 64 bit time_t conversion

2017-11-17 Thread Thomas Gleixner
On Fri, 17 Nov 2017, Arnd Bergmann wrote: > On Thu, Nov 16, 2017 at 10:04 AM, Thomas Gleixner wrote: > > On Wed, 15 Nov 2017, Deepa Dinamani wrote: > >> Would this work for everyone? > > > > Having extra config switches which are selectable by architectures and > > removed when everything is conve

Re: [PATCH v4.2] powerpc/modules: Don't try to restore r2 after a sibling call

2017-11-17 Thread Kamalesh Babulal
On Thursday 16 November 2017 11:15 PM, Josh Poimboeuf wrote: On Thu, Nov 16, 2017 at 06:39:03PM +0530, Naveen N. Rao wrote: Josh Poimboeuf wrote: On Wed, Nov 15, 2017 at 02:58:33PM +0530, Naveen N. Rao wrote: +int instr_is_link_branch(unsigned int instr) +{ + return (instr_is_branch_ifor

Re: STRICT_KERNEL_RWX on PPC32 is broken on PowerMac G4

2017-11-17 Thread LEROY Christophe
Meelis Roos a écrit : > For me, 4.13 worked and 4.14 hangs early during boot. Bisecting led to > the following commit. I had STRICT_KERNEL_RWX enabled when I met the > option. When I disabled STRICT_KERNEL_RWX, the same kernel booted fine. Can you please check that 4.13 boots properly with 'no