RE: [PATCH] powerpc/mpc85xx:Add initial device tree support of T104x

2013-09-13 Thread Kushwaha Prabhakar-B32579
thanks Scott for review. Please find my reply in-lined. Regards, Prabhakar > -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, September 12, 2013 4:54 AM > To: Kushwaha Prabhakar-B32579 > Cc: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org; Aggrwal > Poonam-B10812;

RE: [PATCH 1/2] powerpc/fsl-booke: Add initial T104x_QDS board support

2013-09-13 Thread Kushwaha Prabhakar-B32579
> -Original Message- > From: Wood Scott-B07421 > Sent: Thursday, September 12, 2013 5:11 AM > To: Kushwaha Prabhakar-B32579 > Cc: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org; Jain > Priyanka-B32167; Aggrwal Poonam-B10812 > Subject: Re: [PATCH 1/2] powerpc/fsl-booke: Add initi

Re: [PATCH] powerpc/mpc85xx:Add initial device tree support of T104x

2013-09-13 Thread Valentin Longchamp
On 09/11/2013 08:58 AM, Prabhakar Kushwaha wrote: > The QorIQ T1040/T1042 processor support four integrated 64-bit e5500 PA > processor cores with high-performance data path acceleration architecture > and network peripheral interfaces required for networking & > telecommunications. > > T1042 per

Re: [PATCH] powerpc/mpc85xx:Add initial device tree support of T104x

2013-09-13 Thread Kumar Gala
On Sep 13, 2013, at 4:14 AM, Valentin Longchamp wrote: > On 09/11/2013 08:58 AM, Prabhakar Kushwaha wrote: >> The QorIQ T1040/T1042 processor support four integrated 64-bit e5500 PA >> processor cores with high-performance data path acceleration architecture >> and network peripheral interfaces r

[PATCH 3/8][v4] powerpc/perf: Add PM_MRK_GRP_CMPL event to sysfs.

2013-09-13 Thread Sukadev Bhattiprolu
The perf event PM_MRK_GRP_CMPL is useful in analyzing memory hierarchy of applications. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/perf/power8-pmu.c |5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/perf/power8-pmu.c b/arch/powerpc/perf/power8-pmu.c index ff98fb8.

[PATCH 0/8][v4] powerpc/perf: Export memory hierarchy level in Power7/8.

2013-09-13 Thread Sukadev Bhattiprolu
Power7 and Power8 processors save the memory hierarchy level (eg: L2, L3) from which a load or store instruction was satisfied. Export this hierarchy information to the user via the perf_mem_data_src object. Thanks to input from Stephane Eranian, Michael Ellerman, Michael Neuling. Sukadev Bhattip

[PATCH 1/8][v4] powerpc/perf: Rename Power8 macros to start with PME

2013-09-13 Thread Sukadev Bhattiprolu
We use helpers like GENERIC_EVENT_ATTR() to list the generic events in sysfs. To avoid name collisions, GENERIC_EVENT_ATTR() requires the perf event macros to start with PME. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/perf/power8-pmu.c | 24 1 file changed, 12

[PATCH 5/8][v4] powerpc/perf: Export Power8 memory hierarchy info to user space.

2013-09-13 Thread Sukadev Bhattiprolu
On Power8, the LDST field in SIER identifies the memory hierarchy level (eg: L1, L2 etc), from which a data-cache miss for a marked instruction was satisfied. Use the 'perf_mem_data_src' object to export this hierarchy level to user space. Fortunately, the memory hierarchy levels in Power8 map fai

[PATCH 2/8][v4] powerpc/perf: Export Power8 generic events in sysfs

2013-09-13 Thread Sukadev Bhattiprolu
Export generic perf events for Power8 in sysfs. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/perf/power8-pmu.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/powerpc/perf/power8-pmu.c b/arch/powerpc/perf/power8-pmu.c index 30c6b12..ff98fb8 100644 --- a

[PATCH 4/8][v4] powerpc/perf: Define big-endian version of perf_mem_data_src

2013-09-13 Thread Sukadev Bhattiprolu
perf_mem_data_src is an union that is initialized via the ->val field and accessed via the bitmap fields. For this to work on big endian platforms, we also need a big-endian represenation of perf_mem_data_src. Cc: Stephane Eranian Cc: Michael Ellerman Signed-off-by: Sukadev Bhattiprolu --- Chan

[PATCH 6/8][v4] powerpc: Rename branch_opcode() to instr_opcode()

2013-09-13 Thread Sukadev Bhattiprolu
The logic used in branch_opcode() to extract the opcode for an instruction applies to non branch instructions also. So rename to instr_opcode(). Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/lib/code-patching.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ar

[PATCH 7/8][v4] power: implement is_instr_load_store().

2013-09-13 Thread Sukadev Bhattiprolu
Implement is_instr_load_store() to detect whether a given instruction is one of the fixed-point or floating-point load/store instructions. This function will be used in a follow-on patch to save memory hierarchy information of the load/store. Signed-off-by: Sukadev Bhattiprolu --- arch/powerpc/i

[PATCH 8/8][v4] powerpc/perf: Export Power7 memory hierarchy info to user space.

2013-09-13 Thread Sukadev Bhattiprolu
On Power7, the DCACHE_SRC field in MMCRA register identifies the memory hierarchy level (eg: L2, L3 etc) from which a data-cache miss for a marked instruction was satisfied. Use the 'perf_mem_data_src' object to export this hierarchy level to user space. Some memory hierarchy levels in Power7 don'

[PATCH v2 1/3] powerpc/booke64: add sync after writing PTE

2013-09-13 Thread Scott Wood
The ISA says that a sync is needed to order a PTE write with a subsequent hardware tablewalk lookup. On e6500, without this sync we've been observed to die with a DSI due to a PTE write not being seen by a subsequent access, even when everything happens on the same CPU. Signed-off-by: Scott Wood

[PATCH v2 2/3] powerpc/e6500: TLB miss handler with hardware tablewalk support

2013-09-13 Thread Scott Wood
There are a few things that make the existing hw tablewalk handlers unsuitable for e6500: - Indirect entries go in TLB1 (though the resulting direct entries go in TLB0). - It has threads, but no "tlbsrx." -- so we need a spinlock and a normal "tlbsx". Because we need this lock, hardware

[PATCH v2 3/3] powerpc/fsl-book3e-64: Use paca for hugetlb TLB1 entry selection

2013-09-13 Thread Scott Wood
This keeps usage coordinated for hugetlb and indirect entries, which should make entry selection more predictable and probably improve overall performance when mixing the two. Signed-off-by: Scott Wood --- v2: new patch --- arch/powerpc/mm/hugetlbpage-book3e.c | 51 +-