[PATCH 0/3] VPHN parsing fixes

2014-11-12 Thread Greg Kurz
The following commit fixed an endianness issue in the VPHN code: commit 5c9fb1899400096c6818181c525897a31d57e488 Author: Greg Kurz gk...@linux.vnet.ibm.com Date: Wed Oct 15 12:42:58 2014 +0200 powerpc/vphn: NUMA node code expects big-endian It was discussed at the time that we should

[PATCH 3/3] powerpc/vphn: move endianness fixing to vphn_unpack_associativity()

2014-11-12 Thread Greg Kurz
The first argument to vphn_unpack_associativity() is a const long *, but the parsing code expects __be64 values actually. This is inconsistent. We should either pass a const __be64 * or change vphn_unpack_associativity() so that it fixes endianness by itself. This patch does the latter, since the

Re: [RFC 01/11] sched: introduce sys_cpumask in tsk to adapt asymmetric system

2014-11-12 Thread Srikar Dronamraju
* kernelf...@gmail.com kernelf...@gmail.com [2014-10-16 15:29:50]: Some system such as powerpc, some tsk (vcpu thread) can only run on the dedicated cpu. Since we adapt some asymmetric method to monitor the whole physical cpu. (powerKVM only allows the primary hwthread to set up runtime env

re: powerpc: Remove bootmem allocator

2014-11-12 Thread Dan Carpenter
Hello Anton Blanchard, The patch 10239733ee86: powerpc: Remove bootmem allocator from Sep 17, 2014, leads to the following static checker warning: arch/powerpc/mm/pgtable_32.c:108 pte_alloc_one_kernel() warn: 'pte' can't be NULL. arch/powerpc/mm/pgtable_32.c 99 __init_refok

Re: [RFC 02/11] powerpc: kvm: ensure vcpu-thread run only on primary hwthread

2014-11-12 Thread Srikar Dronamraju
* kernelf...@gmail.com kernelf...@gmail.com [2014-10-16 15:29:51]: When vcpu thread runs at the first time, it will ensure to stick to the primary thread. Signed-off-by: Liu Ping Fan pingf...@linux.vnet.ibm.com --- arch/powerpc/include/asm/kvm_host.h | 3 +++

Re: [RFC 03/11] powerpc: kvm: add interface to control kvm function on a core

2014-11-12 Thread Srikar Dronamraju
* kernelf...@gmail.com kernelf...@gmail.com [2014-10-16 15:29:52]: When kvm is enabled on a core, we migrate all external irq to primary thread. Since currently, the kvmirq logic is handled by the primary hwthread. Todo: this patch lacks re-enable of irqbalance when kvm is disable on the

RE: [PATCH] DT: add MDIO node for FMan node

2014-11-12 Thread Shaohui Xie
-Original Message- From: Wood Scott-B07421 Sent: Wednesday, November 12, 2014 1:38 AM To: Xie Shaohui-B21989 Cc: Liberman Igal-B31950; linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org; Medve Emilian-EMMEDVE1 Subject: Re: [PATCH] DT: add MDIO node for FMan node On Tue,

Re: [PATCH] of/base: Fix PowerPC address parsing hack

2014-11-12 Thread Rob Herring
On Tue, Nov 11, 2014 at 11:51 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: We have a historical hack that treats missing ranges properties as the equivalent of an empty one. This is needed for ancient PowerMac bad device-trees, and shouldn't be enabled for any other PowerPC

[PATCH V3] kexec: Add IND_FLAGS macro

2014-11-12 Thread Geoff Levand
Add a new kexec preprocessor macro IND_FLAGS, which is the bitwise OR of all the possible kexec IND_ kimage_entry indirection flags. Having this macro allows for simplified code in the processing of the kexec kimage_entry items. Also, remove the local powerpc definition and use the generic one.

Re: [PATCH] of/base: Fix PowerPC address parsing hack

2014-11-12 Thread Benjamin Herrenschmidt
On Wed, 2014-11-12 at 08:39 -0600, Rob Herring wrote: On Tue, Nov 11, 2014 at 11:51 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: We have a historical hack that treats missing ranges properties as the equivalent of an empty one. This is needed for ancient PowerMac bad

Re: [PATCH] of/base: Fix PowerPC address parsing hack

2014-11-12 Thread Benjamin Herrenschmidt
On Thu, 2014-11-13 at 09:10 +1100, Stephen Rothwell wrote: Hi Ben, Urk! :-) How about: On Wed, 12 Nov 2014 16:51:01 +1100 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: diff --git a/drivers/of/address.c b/drivers/of/address.c index e371825..e37f017 100644 ---

[PATCH V3 0/4] kexec: minor fixups and enhancements

2014-11-12 Thread Geoff Levand
Hi Andrew, This is essentially a resend of my patch set from October with the exception of folding the last two patches of that series into the final patch here. The patches here have been in review since first posted in August, and have been acked by one or two kexec developers. Could you

[PATCH V3 3/4] kexec: Add bit definitions for kimage entry flags

2014-11-12 Thread Geoff Levand
Define new kexec preprocessor macros IND_*_BIT that define the bit position of the kimage entry flags. Change the existing IND_* flag macros to be defined as bit shifts of the corresponding IND_*_BIT macros. Also wrap all C language code in kexec.h with #if !defined(__ASSEMBLY__) so assembly

[PATCH V3 2/4] kexec: Simplify conditional

2014-11-12 Thread Geoff Levand
Simplify the code around one of the conditionals in the kexec_load syscall routine. The original code was confusing with a redundant check on KEXEC_ON_CRASH and comments outside of the conditional block. This change switches the order of the conditional check, and cleans up the comments for the

[PATCH V3 4/4] kexec: Add IND_FLAGS macro

2014-11-12 Thread Geoff Levand
Add a new kexec preprocessor macro IND_FLAGS, which is the bitwise OR of all the possible kexec IND_ kimage_entry indirection flags. Having this macro allows for simplified code in the prosessing of the kexec kimage_entry items. Also, remove the local powerpc definition and use the generic one.

[PATCH V3 1/4] kexec: Fix make headers_check

2014-11-12 Thread Geoff Levand
Remove the unneded declaration for a kexec_load() routine. Fixes errors like these when running 'make headers_check': include/uapi/linux/kexec.h: userspace cannot reference function or variable defined in the kernel Signed-off-by: Geoff Levand ge...@infradead.org Acked-by: Paul Bolle

Re: [PATCH] of/base: Fix PowerPC address parsing hack

2014-11-12 Thread Benjamin Herrenschmidt
What about this one instead ? I want to cache it because that function can be called quite a while and doing two additional property lookup and string compares every time might hurt some platforms. We have a historical hack that treats missing ranges properties as the equivalent of an empty

Re: [PATCH] of/base: Fix PowerPC address parsing hack

2014-11-12 Thread Stephen Rothwell
Hi Ben, On Thu, 13 Nov 2014 11:45:22 +1100 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: What about this one instead ? I want to cache it because that function can be called quite a while and doing two additional property lookup and string compares every time might hurt some

Re: [PATCH] i2c-qoriq: modified compatibility for correct prescaler

2014-11-12 Thread Wolfram Sang
If we wanted to be on the safe side and strict (since we are not sure that the hardware is 100% compatible), we maybe should add a fsl,qoriq-i2c compatible to the driver that does the same as mpc8543-i2c. Or you leave the driver as is and use both compatibles: compatible = fsl,qoriq-i2c,

Re: powerpc: mitigate impact of decrementer reset

2014-11-12 Thread Michael Ellerman
On Wed, 2014-11-05 at 11:06 -0600, Paul Clarke wrote: Sorry it took me so long to get back to this... On 10/07/2014 09:52 PM, Michael Ellerman wrote: On Tue, 2014-07-10 at 19:13:24 UTC, Paul Clarke wrote: This patch short-circuits the reset of the decrementer, exiting after the

Re: [PATCH] powerpc: mitigate impact of decrementer reset

2014-11-12 Thread Michael Ellerman
On Mon, 2014-11-10 at 14:58 -0600, Paul Clarke wrote: On 11/10/2014 04:08 AM, Benjamin Herrenschmidt wrote: On Tue, 2014-10-07 at 14:13 -0500, Paul Clarke wrote: This patch short-circuits the reset of the decrementer, exiting after the decrementer reset, but before the housekeeping tasks if

Re: [PATCH v3 4/7] sound/radeon: Add quirk for broken 64-bit MSI

2014-11-12 Thread Michael Ellerman
On Wed, 2014-11-12 at 15:06 +1100, Benjamin Herrenschmidt wrote: On Wed, 2014-11-12 at 13:23 +1100, Michael Ellerman wrote: On Tue, 2014-11-11 at 14:12 -0700, Bjorn Helgaas wrote: On Thu, Oct 16, 2014 at 09:55:32AM +1100, Benjamin Herrenschmidt wrote: On Wed, 2014-10-15 at 16:19 -0600,

Re: powerpc/powernv: Support OPAL requested heartbeat

2014-11-12 Thread Michael Ellerman
On Wed, 2014-12-11 at 06:03:14 UTC, Benjamin Herrenschmidt wrote: If OPAL requests it, call it back via opal_poll_events() at a regular interval. Some versions of OPAL on some machines require this to operate some internal timeouts properly. diff --git a/arch/powerpc/platforms/powernv/opal.c

Re: [PATCH] DT: add MDIO node for FMan node

2014-11-12 Thread Scott Wood
On Wed, 2014-11-12 at 07:40 -0600, Xie Shaohui-B21989 wrote: -Original Message- From: Wood Scott-B07421 Sent: Wednesday, November 12, 2014 1:38 AM To: Xie Shaohui-B21989 Cc: Liberman Igal-B31950; linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org; Medve Emilian-EMMEDVE1

Re: [PATCH V2] powerpc/TM: Disable/Enable TM looking at the ibm, pa-features device tree entry

2014-11-12 Thread Aneesh Kumar K.V
Michael Ellerman m...@ellerman.id.au writes: On Wed, 2014-11-12 at 11:09 +0530, Aneesh Kumar K.V wrote: Michael Neuling mi...@neuling.org writes: On Sun, 2014-11-02 at 20:02 +0530, Aneesh Kumar K.V wrote: Runtime disable transactional memory feature looking at pa-features device tree

Re: powerpc/powernv: Support OPAL requested heartbeat

2014-11-12 Thread Benjamin Herrenschmidt
On Thu, 2014-11-13 at 16:29 +1100, Michael Ellerman wrote: I'd assume freq with no units is in HZ, but looks like it's milliseconds. I guess it's too late to rename it. We still can, we haven't cut an official build with that fw, jk ? Cheers, Ben.

Re: [PATCH] usb: phy: fsl: Fix build errors

2014-11-12 Thread Peter Chen
On Wed, Nov 12, 2014 at 08:39:06AM -0600, Felipe Balbi wrote: commit e47d925 (usb: move the OTG state from the USB PHY to the OTG structure) moved the OTG state from struct usb_phy to struct usb_otg. Unfortunately, even though I fixed quite a few build regressions with that patch already,

RE: [PATCH] DT: add MDIO node for FMan node

2014-11-12 Thread Shaohui Xie
-Original Message- From: Wood Scott-B07421 Sent: Thursday, November 13, 2014 2:17 PM To: Xie Shaohui-B21989 Cc: Liberman Igal-B31950; linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org; Medve Emilian-EMMEDVE1 Subject: Re: [PATCH] DT: add MDIO node for FMan node On Wed,

Re: [PATCH] i2c: Driver to expose PowerNV platform i2c busses

2014-11-12 Thread Wolfram Sang
Hi, I am basically fine if this goes via the powerpc-tree and I was hoping that I could ack it right now. However, the driver looks a bit rushed and definately needs updates before it is ready to go. On Mon, Nov 10, 2014 at 11:35:39AM +0530, Neelesh Gupta wrote: The patch exposes the available