[PATCH] powerpc: Fix asm offsets to point to actual FP and VMX regs

2017-05-07 Thread Michael Neuling
The asm code assumes the FP regs are at the start of fp_state. While this is true now, it may not always be the case and there is nothing enforcing it. This fixes the asm-offsets to point to the actual FP registers inside the fp_state. Similarly for VMX. Signed-off-by: Michael Neuling --- arch

[PATCH] powerpc/tm: Fix comment

2017-05-07 Thread Michael Neuling
Update to real function name. Signed-off-by: Michael Neuling --- arch/powerpc/kernel/tm.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/tm.S b/arch/powerpc/kernel/tm.S index 3a2d04134d..c4ba37822b 100644 --- a/arch/powerpc/kernel/tm.S +++ b/arch/powe

Re: [PATCH v6 2/7] perf/x86/intel: Record branch type

2017-05-07 Thread Jin, Yao
On 4/24/2017 8:47 AM, Jin, Yao wrote: On 4/23/2017 9:55 PM, Jiri Olsa wrote: On Thu, Apr 20, 2017 at 08:07:50PM +0800, Jin Yao wrote: SNIP +#define X86_BR_TYPE_MAP_MAX16 + +static int +common_branch_type(int type) +{ +int i, mask; +const int branch_map[X86_BR_TYPE_MAP_MAX] =

[PATCH] powerpc/mm: Use seq_putc() in two functions

2017-05-07 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 7 May 2017 16:32:04 +0200 Two single characters (line breaks) should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch/powerpc/mm/dump_hashpag

Re: [RFC 1/2] powerpc/mm: Add marker for contexts requiring global TLB invalidations

2017-05-07 Thread Frederic Barrat
Le 04/05/2017 à 11:42, Michael Ellerman a écrit : Frederic Barrat writes: Introduce a new 'flags' attribute per context and define its first bit to be a marker requiring all TLBIs for that context to be broadcasted globally. Once that marker is set on a context, it cannot be removed. Such a

Re: [RFC 2/2] cxl: Mark context requiring global TLBIs

2017-05-07 Thread Frederic Barrat
Le 04/05/2017 à 09:39, Balbir Singh a écrit : On Wed, 2017-05-03 at 16:29 +0200, Frederic Barrat wrote: The PSL needs to see all TLBI pertinent to the memory contexts used on the cxl adapter. For the hash memory model, it was done by making all TLBIs global as soon as the cxl driver is in us.

Re: WARNING: CPU: 0 PID: 1 at /build/linux-dp17Ba/linux-4.9.18/arch/powerpc/lib/feature-fixups.c:208 check_features+0x38/0x7c

2017-05-07 Thread Linux User #330250
Am 2017-05-06 um 16:11 schrieb Linux User #330250: Am 2017-05-04 um 12:15 schrieb Michael Ellerman: Mathieu Malaterre writes: Hi all, Does this dmesg output speaks to anyone here (smp kernel): [4.767389] [ cut here ] [4.774668] WARNING: CPU: 0 PID: 1 at /bui