Re: [PATCH v4 2/5] drivers/of: do not add memory for unavailable nodes

2016-10-21 Thread Alistair Popple
Hi Reza, On Thu, 6 Oct 2016 01:36:32 PM Reza Arbab wrote: > Respect the standard dt "status" property when scanning memory nodes in > early_init_dt_scan_memory(), so that if the node is unavailable, no > memory will be added. What happens if a kernel without this patch is booted on a system with

Re: [PATCH] kernel: irq: fix build failure

2016-10-21 Thread Thomas Gleixner
On Fri, 21 Oct 2016, Stephen Rothwell wrote: > On Thu, 20 Oct 2016 14:55:45 +0200 (CEST) Thomas Gleixner > wrote: > > I know. This is under discussion with the driver folks as we are not going > > to blindly export stuff just because someone slapped a irq_set_parent() > > into the code w/o knowin

[PATCH v2 5/6] dt: booting-without-of: DT fix s/#interrupt-cell/#interrupt-cells/

2016-10-21 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven Acked-by: Rob Herring --- v2: - Add Acked-by. --- Documentation/devicetree/booting-without-of.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/booting-without-of.txt b/Documentation/devicetree/booting-without-of

[PATCH v2 6/6] powerpc: dts: acadia: DT fix s/#interrupts-parent/#interrupt-parent/

2016-10-21 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven Acked-by: Rob Herring --- v2: - Add Acked-by. --- arch/powerpc/boot/dts/acadia.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/dts/acadia.dts b/arch/powerpc/boot/dts/acadia.dts index 57291f61ffe7021a..86266159521edac2

[PATCH v2 2/6] arm64: dts: lg1312: DT fix s/#interrupts-cells/#interrupt-cells/

2016-10-21 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven Acked-by: Rob Herring --- v2: - Add Acked-by, - Rebased. --- arch/arm64/boot/dts/lg/lg1312.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/lg/lg1312.dtsi b/arch/arm64/boot/dts/lg/lg1312.dtsi index fbafa24cd5335b9

[PATCH v2 1/6] ARM: dts: STiH407: DT fix s/interrupts-names/interrupt-names/

2016-10-21 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven Acked-by: Rob Herring --- v2: - Add Acked-by. --- arch/arm/boot/dts/stih407-pinctrl.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stih407-pinctrl.dtsi b/arch/arm/boot/dts/stih407-pinctrl.dtsi index c325cc059ae4bc80

[PATCH v2 0/6] DT: Fix spelling of standard properties

2016-10-21 Thread Geert Uytterhoeven
Hi all, This patch series fixes misspellings of various standard DT properties in DT binding documentation, DTS files, and error messages. While most of these are harmless, some of them may cause hard-to-debug failures. Changes compared to v2: - Dropped patches that have been applied al

[PATCH v2 4/6] ASoC: davinci-mcbsp: DT fix s/interrupts-names/interrupt-names/

2016-10-21 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven Acked-by: Rob Herring --- v2: - Add Acked-by, - Split off from a completely unrelated patch. --- Documentation/devicetree/bindings/sound/davinci-mcbsp.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/s

[PATCH v2 3/6] arm64: dts: lg1313: DT fix s/#interrupts-cells/#interrupt-cells/

2016-10-21 Thread Geert Uytterhoeven
Signed-off-by: Geert Uytterhoeven --- v2: - New. --- arch/arm64/boot/dts/lg/lg1313.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/lg/lg1313.dtsi b/arch/arm64/boot/dts/lg/lg1313.dtsi index e703e1149c757082..abb2162228e82d39 100644 --- a/arch/arm64/b

[PATCH 1/2] powerpc/64: Re-fix race condition between going idle and entering guest

2016-10-21 Thread Paul Mackerras
Commit 8117ac6a6c2f ("powerpc/powernv: Switch off MMU before entering nap/sleep/rvwinkle mode", 2014-12-10) fixed a race condition where one thread entering a KVM guest could switch the MMU context to the guest while another thread was still in host kernel context with the MMU on. That commit moved

[PATCH 2/2] powerpc/64: Fix race condition in setting lock bit in idle/wakeup code

2016-10-21 Thread Paul Mackerras
This fixes a race condition where one thread that is entering or leaving a power-saving state can inadvertently ignore the lock bit that was set by another thread, and potentially also clear it. The core_idle_lock_held function is called when the lock bit is seen to be set. It polls the lock bit u

[RESEND PATCH] cxl: Fix leaking pid refs in some error paths

2016-10-21 Thread Vaibhav Jain
In some error paths in functions cxl_start_context and afu_ioctl_start_work pid references to the current & group-leader tasks can leak after they are taken. This patch fixes these error paths to release these pid references before exiting the error path. Fixes: 7b8ad495("cxl: Fix DSI misses when

Re: [Patch v5 04/12] irqchip: xilinx: Add support for parent intc

2016-10-21 Thread Marc Zyngier
On 17/10/16 17:52, Zubair Lutfullah Kakakhel wrote: > The MIPS based xilfpga platform has the following IRQ structure > > Peripherals --> xilinx_intcontroller -> mips_cpu_int controller > > Add support for the driver to chain the irq handler > > Signed-off-by: Zubair Lutfullah Kakakhel > > ---

Re: [STLinux Kernel] [PATCH v2 1/6] ARM: dts: STiH407: DT fix s/interrupts-names/interrupt-names/

2016-10-21 Thread Peter Griffin
On Fri, 21 Oct 2016, Geert Uytterhoeven wrote: > Signed-off-by: Geert Uytterhoeven > Acked-by: Rob Herring > --- > v2: > - Add Acked-by. > --- Acked-by: Peter Griffin

Re: [PATCH] kernel: irq: fix build failure

2016-10-21 Thread Stephen Rothwell
Hi Thomas, On Fri, 21 Oct 2016 10:07:41 +0200 (CEST) Thomas Gleixner wrote: > > On Fri, 21 Oct 2016, Stephen Rothwell wrote: > > On Thu, 20 Oct 2016 14:55:45 +0200 (CEST) Thomas Gleixner > > wrote: > > > I know. This is under discussion with the driver folks as we are not going > > > to blin

Canyonlands oops with m41t80

2016-10-21 Thread Julian Margetson
Been having an oops since kernel 4.6 with m41t80 on Sam460ex canyonlands board . Regards Julian Margetson [7.543123] usbserial: USB Serial support registered for generic [7.567065] mousedev: PS/2 mouse device common for all mice [7.590510] i2c /dev entries driver [7.614508] Un

RE: [PATCH v5 9/9] Documentation: virtual: kvm: Support vcpu preempted check

2016-10-21 Thread David Laight
From: Pan Xinhui > Sent: 20 October 2016 22:28 > Commit ("x86, kvm: support vcpu preempted check") add one field "__u8 > preempted" into struct kvm_steal_time. This field tells if one vcpu is > running or not. > > It is zero if 1) some old KVM deos not support this filed. 2) the vcpu is > preempte

Re: Canyonlands oops at Shutdown

2016-10-21 Thread Julian Margetson
On 08-May-16 10:12 AM, Julian Margetson wrote: CONFIG_PPC44x_SIMPLE=y CONFIG_POWER_RESET=y CONFIG_POWER_RESET_GPIO is not set # CONFIG_POWER_RESET_GPIO_RESTART is not set # CONFIG_POWER_RESET_LTC2952 is not set # CONFIG_POWER_RESET_RESTART is not set # CONFIG_POWER_RESET_SYSCON is not set # CONF

[PATCH 4/5] Remove cpu_relax_lowlatency users

2016-10-21 Thread Christian Borntraeger
With the s390 special case of a yielding cpu_relax implementation gone, we can now remove all users of cpu_relax_lowlatency. Signed-off-by: Christian Borntraeger --- drivers/gpu/drm/i915/i915_gem_request.c | 2 +- drivers/vhost/net.c | 4 ++-- kernel/locking/mcs_spinlock.h

[PATCH 1/5] processor.h: introduce cpu_relax_yield

2016-10-21 Thread Christian Borntraeger
For spinning loops people did often use barrier() or cpu_relax(). For most architectures cpu_relax and barrier are the same, but on some architectures cpu_relax can add some latency. For example on s390 cpu_relax gives up the time slice to the hypervisor. On power cpu_relax tries to give some of th

[PATCH/RFC 0/5] cpu_relax: introduce yield, remove lowlatency

2016-10-21 Thread Christian Borntraeger
For spinning loops people did often use barrier() or cpu_relax(). For most architectures cpu_relax and barrier are the same, but on some architectures cpu_relax can add some latency. For example on s390 cpu_relax gives up the time slice to the hypervisor. On power cpu_relax tries to give some of th

[PATCH 5/5] remove cpu_relax_lowlatency

2016-10-21 Thread Christian Borntraeger
As there are no users left, we can remove cpu_relax_lowlatency. Signed-off-by: Christian Borntraeger --- arch/alpha/include/asm/processor.h | 1 - arch/arm/include/asm/processor.h| 1 - arch/arm64/include/asm/processor.h | 1 - arch/avr32/include/asm/processor.h | 1 - arc

[PATCH 3/5] s390: make cpu_relax a barrier again

2016-10-21 Thread Christian Borntraeger
stop_machine seems to be the only important place for yielding during cpu_relax. This was fixed by using cpu_relax_yield. Therefore, we can now redefine cpu_relax to be a barrier instead. (With the option to do some SMT tuning later on) Signed-off-by: Christian Borntraeger --- arch/s390/include/

[PATCH 2/5] stop_machine: yield CPU during stop machine

2016-10-21 Thread Christian Borntraeger
stop_machine can take a very long time if the hypervisor does overcommitment for guest CPUs. When waiting for "the one", lets give up our CPU by using the new cpu_relax_yield. Signed-off-by: Christian Borntraeger --- kernel/stop_machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

Re: [PATCH 2/5] stop_machine: yield CPU during stop machine

2016-10-21 Thread Peter Zijlstra
On Fri, Oct 21, 2016 at 01:58:55PM +0200, Christian Borntraeger wrote: > stop_machine can take a very long time if the hypervisor does > overcommitment for guest CPUs. When waiting for "the one", lets > give up our CPU by using the new cpu_relax_yield. This seems something that would apply to most

Re: [PATCH/RFC 0/5] cpu_relax: introduce yield, remove lowlatency

2016-10-21 Thread Peter Zijlstra
On Fri, Oct 21, 2016 at 01:58:53PM +0200, Christian Borntraeger wrote: > Christian Borntraeger (5): > processor.h: introduce cpu_relax_yield > stop_machine: yield CPU during stop machine > s390: make cpu_relax a barrier again > Remove cpu_relax_lowlatency users > remove cpu_relax_lowlaten

Re: [STLinux Kernel] [PATCH v2 1/6] ARM: dts: STiH407: DT fix s/interrupts-names/interrupt-names/

2016-10-21 Thread Patrice Chotard
On 10/21/2016 12:11 PM, Peter Griffin wrote: > On Fri, 21 Oct 2016, Geert Uytterhoeven wrote: > >> Signed-off-by: Geert Uytterhoeven >> Acked-by: Rob Herring >> --- >> v2: >> - Add Acked-by. >> --- > > Acked-by: Peter Griffin > applied with Peter Acked-by Thanks Geert

Re: [PATCH/RFC 0/5] cpu_relax: introduce yield, remove lowlatency

2016-10-21 Thread David Miller
From: Christian Borntraeger Date: Fri, 21 Oct 2016 13:58:53 +0200 > For spinning loops people did often use barrier() or cpu_relax(). > For most architectures cpu_relax and barrier are the same, but on > some architectures cpu_relax can add some latency. For example on s390 > cpu_relax gives up t

Re: [PATCH/RFC 0/5] cpu_relax: introduce yield, remove lowlatency

2016-10-21 Thread Christian Borntraeger
On 10/21/2016 04:57 PM, David Miller wrote: > From: Christian Borntraeger > Date: Fri, 21 Oct 2016 13:58:53 +0200 > >> For spinning loops people did often use barrier() or cpu_relax(). >> For most architectures cpu_relax and barrier are the same, but on >> some architectures cpu_relax can add som

Re: [PATCH/RFC 0/5] cpu_relax: introduce yield, remove lowlatency

2016-10-21 Thread David Miller
From: Christian Borntraeger Date: Fri, 21 Oct 2016 17:08:54 +0200 > On 10/21/2016 04:57 PM, David Miller wrote: >> From: Christian Borntraeger >> Date: Fri, 21 Oct 2016 13:58:53 +0200 >> >>> For spinning loops people did often use barrier() or cpu_relax(). >>> For most architectures cpu_relax a

Re: [PATCH v2 2/2] PCI: Don't disable PF's memory decoding when enabling SRIOV

2016-10-21 Thread Bjorn Helgaas
Hi Gavin, On Fri, Sep 30, 2016 at 09:47:50AM +1000, Gavin Shan wrote: > pci_update_resource() might be called to update (shift) IOV BARs > in PPC PowerNV specific pcibios_sriov_enable() when enabling PF's > SRIOV capability. At that point, the PF have been functional if > the SRIOV is enabled thro

Re: [RESEND PATCH] cxl: Fix leaking pid refs in some error paths

2016-10-21 Thread Frederic Barrat
Le 21/10/2016 à 11:23, Vaibhav Jain a écrit : In some error paths in functions cxl_start_context and afu_ioctl_start_work pid references to the current & group-leader tasks can leak after they are taken. This patch fixes these error paths to release these pid references before exiting the error

Re: [PATCH v5 9/9] Documentation: virtual: kvm: Support vcpu preempted check

2016-10-21 Thread rkrc...@redhat.com
2016-10-21 11:27+, David Laight: > From: Pan Xinhui >> Sent: 20 October 2016 22:28 >> Commit ("x86, kvm: support vcpu preempted check") add one field "__u8 >> preempted" into struct kvm_steal_time. This field tells if one vcpu is >> running or not. >> >> It is zero if 1) some old KVM deos not

Re: [PATCH v2 1/2] pci: Call pcibios_sriov_enable() before IOV BARs are enabled

2016-10-21 Thread Bjorn Helgaas
On Fri, Sep 30, 2016 at 09:47:49AM +1000, Gavin Shan wrote: > In current implementation, pcibios_sriov_enable() is used by PPC > PowerNV platform only. In PowerNV specific pcibios_sriov_enable(), > PF's IOV BARs might be updated (shifted) by pci_update_resource(). > It means the IOV BARs aren't rea

Re: [PATCH 1/2] powerpc/64: Re-fix race condition between going idle and entering guest

2016-10-21 Thread Shreyas B. Prabhu
On Fri, Oct 21, 2016 at 5:03 AM, Paul Mackerras wrote: > Commit 8117ac6a6c2f ("powerpc/powernv: Switch off MMU before entering > nap/sleep/rvwinkle mode", 2014-12-10) fixed a race condition where one > thread entering a KVM guest could switch the MMU context to the guest > while another thread wa

Re: [PATCH 2/5] stop_machine: yield CPU during stop machine

2016-10-21 Thread Juergen Gross
On 21/10/16 14:05, Peter Zijlstra wrote: > On Fri, Oct 21, 2016 at 01:58:55PM +0200, Christian Borntraeger wrote: >> stop_machine can take a very long time if the hypervisor does >> overcommitment for guest CPUs. When waiting for "the one", lets >> give up our CPU by using the new cpu_relax_yield.

Re: [RESEND, v3] cxl: Prevent adapter reset if an active context exists

2016-10-21 Thread Michael Ellerman
On Fri, 2016-14-10 at 09:38:36 UTC, Vaibhav Jain wrote: > This patch prevents resetting the cxl adapter via sysfs in presence of > one or more active cxl_context on it. This protects against an > unrecoverable error caused by PSL owning a dirty cache line even after > reset and host tries to touch

Re: powerpc/mm: Drop dump_numa_memory_topology()

2016-10-21 Thread Michael Ellerman
On Thu, 2016-13-10 at 05:27:30 UTC, Michael Ellerman wrote: > At boot we dump the NUMA memory topology in dump_numa_memory_topology(), > at KERN_DEBUG level, resulting in output like: > > Node 0 Memory: 0x0-0x1 > Node 1 Memory: 0x1-0x2 > > Which is nice enough, but imm

Re: powerpc/boot: fix boot on systems with uncompressed kernel image

2016-10-21 Thread Michael Ellerman
On Wed, 2016-12-10 at 19:00:43 UTC, Heiner Kallweit wrote: > This commit broke boot on systems with an uncompressed kernel image, > namely systems using a cuImage. On such systems the compressed boot > image (boot wrapper, uncompressed kernel image, ..) is decompressed > by u-boot already, therefor

Re: powerpc: Fix numa topology console print

2016-10-21 Thread Michael Ellerman
On Tue, 2016-18-10 at 08:52:14 UTC, "Aneesh Kumar K.V" wrote: > With recent update to printk, we get console output like below > > [0.550639] Brought up 160 CPUs > [0.550718] Node 0 CPUs: > [0.550721] 0 > [0.550754] -39 > > [0.550794] Node 1 CPUs: > [0.550798] 40 > [

Re: powerpc: ignore the pkey system calls for now

2016-10-21 Thread Michael Ellerman
On Mon, 2016-17-10 at 22:33:44 UTC, Stephen Rothwell wrote: > Eliminates warning messages: > > :1316:2: warning: #warning syscall pkey_mprotect not implemented > [-Wcpp] > :1319:2: warning: #warning syscall pkey_alloc not implemented [-Wcpp] > :1322:2: warning: #warning syscall pkey_free not impl

Re: powerpc/mm: Prevent unlikely crash in copro_calculate_slb()

2016-10-21 Thread Michael Ellerman
On Fri, 2016-17-06 at 16:53:28 UTC, Frederic Barrat wrote: > If a cxl adapter faults on an invalid address for a kernel context, we > may enter copro_calculate_slb() with a NULL mm pointer (kernel > context) and an effective address which looks like a user > address. Which will cause a crash when d

[GIT PULL] Please pull powerpc/linux.git powerpc-4.9-3 tag

2016-10-21 Thread Michael Ellerman
Hi Linus, Please pull some more powerpc fixes for 4.9: The following changes since commit 1001354ca34179f3db924eb66672442a173147dc: Linux 4.9-rc1 (2016-10-15 12:17:50 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git tags/powerp

[PATCH RFC] powerpc/64: Make exception table clearer in __copy_tofrom_user_base

2016-10-21 Thread Paul Mackerras
This aims to make the generation of exception table entries for the loads and stores in __copy_tofrom_user_base clearer and easier to verify. Instead of having a series of local labels on the loads and stores, with a series of corresponding labels later for the exception handlers, we now use macro

Re: [PATCH 2/5] stop_machine: yield CPU during stop machine

2016-10-21 Thread Nicholas Piggin
On Fri, 21 Oct 2016 14:05:36 +0200 Peter Zijlstra wrote: > On Fri, Oct 21, 2016 at 01:58:55PM +0200, Christian Borntraeger wrote: > > stop_machine can take a very long time if the hypervisor does > > overcommitment for guest CPUs. When waiting for "the one", lets > > give up our CPU by using the