Re: [PATCH V7 06/10] powerpc/eeh: Create PE for VFs

2015-06-16 Thread Bjorn Helgaas
On Tue, Jun 16, 2015 at 3:50 AM, Wei Yang weiy...@linux.vnet.ibm.com wrote: On Wed, Jun 03, 2015 at 10:46:38AM -0500, Bjorn Helgaas wrote: On Wed, Jun 03, 2015 at 03:10:23PM +1000, Gavin Shan wrote: It's correct. The following operations refers to eeh_add_device_late() and

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-16 Thread Rob Herring
On Mon, Jun 15, 2015 at 11:42 AM, David Long dave.l...@linaro.org wrote: From: David A. Long dave.l...@linaro.org The pt_regs_offset structure is used for HAVE_REGS_AND_STACK_ACCESS_API feature and has identical definitions in four different arch ptrace.h include files. It seems unlikely

Re: [RFC PATCH] perf/kvm: Guest Symbol Resolution for powerpc

2015-06-16 Thread Arnaldo Carvalho de Melo
Em Tue, Jun 16, 2015 at 08:20:53AM +0530, Hemant Kumar escreveu: perf kvm {record|report} is used to record and report the performance profile of any workload on a guest. From the host, we can collect guest kernel statistics which is useful in finding out any contentions in guest kernel

Re: [V2] powerpc/mm: Limit the max memory we can support

2015-06-16 Thread Aneesh Kumar K.V
Michael Ellerman m...@ellerman.id.au writes: On Fri, 2015-29-05 at 08:20:18 UTC, Aneesh Kumar K.V wrote: We need to limit the max memory based on Linux page table format. Add checks to limit memory based on pte size. Also limit the memory based on MAX_PHSYSMEM_BITS. Signed-off-by: Aneesh

Re: [RFC PATCH] perf/kvm: Guest Symbol Resolution for powerpc

2015-06-16 Thread David Ahern
On 6/15/15 8:50 PM, Hemant Kumar wrote: +/* + * Get the instruction pointer from the tracepoint data + */ +u64 arch__get_ip(struct perf_evsel *evsel, struct perf_sample *data) +{ + u64 tp_ip = data-ip; + int trap; + + if (!strcmp(KVMPPC_EXIT, evsel-name)) { + trap

Re: [PATCH v3] powerpc/rcpm: add RCPM driver

2015-06-16 Thread Bob Cochran
On 06/16/2015 05:26 AM, yuantian.t...@freescale.com wrote: From: Tang Yuantian yuantian.t...@freescale.com There is a RCPM (Run Control/Power Management) in Freescale QorIQ series processors. The device performs tasks associated with device run control and power management. The driver

Re: [PATCH 0/2] Consolidate redundant register/stack access code

2015-06-16 Thread Will Deacon
Hi David, On Mon, Jun 15, 2015 at 05:42:57PM +0100, David Long wrote: From: David A. Long dave.l...@linaro.org Move duplicate and functionally equivalent code for accessing registers and stack (CONFIG_HAVE_REGS_AND_STACK_ACCESS_API) from arch subdirs into common kernel files. Note: Help

Re: [RFC PATCH] perf/kvm: Guest Symbol Resolution for powerpc

2015-06-16 Thread Hemant Kumar
Hi David, Thanks for the review. On 06/16/2015 08:23 PM, David Ahern wrote: On 6/15/15 8:50 PM, Hemant Kumar wrote: +/* + * Get the instruction pointer from the tracepoint data + */ +u64 arch__get_ip(struct perf_evsel *evsel, struct perf_sample *data) +{ +u64 tp_ip = data-ip; +int

[PATCH] powerpc/powernv: Increase opal-irqchip initcall priority

2015-06-16 Thread Alistair Popple
The eeh subsystem for powernv requires the opal event irqchip to be initialised prior to initialisation or the following errors are produced (and eeh doesn't work as expected): irq: XICS didn't like hwirq-0x9 to VIRQ17 mapping (rc=-22) pnv_eeh_post_init: Can't request OPAL event interrupt (0) On

Re: [v3] powerpc/configs: enable RTC class support

2015-06-16 Thread Michael Ellerman
On Mon, 2015-01-06 at 10:48:55 UTC, Vaibhav Jain wrote: A working rtc kernel driver is needed so that hwclock can synchronize system clock to rtc during shutdown/boot. We already have a rtc platform driver for power arch located at drivers/rtc/rtc-opal.c However it depends on CONFIG_RTC_CLASS

RE: [PATCH v3] powerpc/rcpm: add RCPM driver

2015-06-16 Thread Yuantian Tang
Please see my replay inline. Thanks, Yuantian -Original Message- From: Bob Cochran [mailto:p...@mindchasers.com] Sent: Wednesday, June 17, 2015 2:00 AM To: Tang Yuantian-B29983; Wood Scott-B07421 Cc: linuxppc-dev@lists.ozlabs.org; Zhao Chenhui-B35336 Subject: Re: [PATCH v3]

Re: [RFC PATCH] perf/kvm: Guest Symbol Resolution for powerpc

2015-06-16 Thread David Ahern
On 6/16/15 7:24 PM, Hemant Kumar wrote: Because, this depends on the kernel tracepoint kvm_hv:kvm_guest_exit. perf_prepare_sample() in the kernel side sets the event-header.misc field to PERF_RECORD_MISC_KERNEL through perf_misc_flags(pt_regs). In case of tracepoints which always get hit in the

[PATCH v2 2/2] powerpc/mm: Change the swap encoding in pte.

2015-06-16 Thread Aneesh Kumar K.V
Current swap encoding in pte can't support large pfns above 4TB. Change the swap encoding such that we put the swap type in the PTE bits. Also add build checks to make sure we don't overlap with HPTEFLAGS. Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com ---

[PATCH v2 1/2] powerpc/mm: PTE_RPN_MAX is not used, remove the same

2015-06-16 Thread Aneesh Kumar K.V
Remove the unused #define Signed-off-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com --- arch/powerpc/include/asm/pte-common.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/include/asm/pte-common.h b/arch/powerpc/include/asm/pte-common.h index c5a755ef7011..b7c8d079c121

Re: [PATCH v2 2/2] powerpc/mm: Change the swap encoding in pte.

2015-06-16 Thread Aneesh Kumar K.V
Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com writes: Hi Scott, Current swap encoding in pte can't support large pfns above 4TB. Change the swap encoding such that we put the swap type in the PTE bits. Also add build checks to make sure we don't overlap with HPTEFLAGS. Can you please

[PATCH] powerpc/include: Add opal-prd to installed uapi headers

2015-06-16 Thread Jeremy Kerr
We'll want to build the opal-prd daemon with the prd headers, so include this in the uapi headers list. Signed-off-by: Jeremy Kerr j...@ozlabs.org --- arch/powerpc/include/uapi/asm/Kbuild |1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/include/uapi/asm/Kbuild

Re: [PATCH v2 7/7]powerpc/powernv: nest pmu cpumask and cpu hotplug support

2015-06-16 Thread Preeti U Murthy
On 06/11/2015 10:47 AM, Madhavan Srinivasan wrote: Adds cpumask attribute to be used by each nest pmu since nest units are per-chip. Only one cpu (first online cpu) from each node/chip is designated to read counters. On cpu hotplug, dying cpu is checked to see whether it is one of the

[PATCH] cxl: Add CXL_KERNEL_API config option

2015-06-16 Thread Michael Neuling
Add CXL_KERNEL_API config option so drivers which depend on this new functionality won't be enabled until this is visible. This is useful for merging the cxlflash driver which comes in via the SCSI tree. The cxlflash driver can depend on CXL_KERNEL_API, hence it won't be enabled in the SCSI tree

Re: [PATCH 0/2] Consolidate redundant register/stack access code

2015-06-16 Thread Martin Schwidefsky
On Mon, 15 Jun 2015 12:42:57 -0400 David Long dave.l...@linaro.org wrote: From: David A. Long dave.l...@linaro.org Move duplicate and functionally equivalent code for accessing registers and stack (CONFIG_HAVE_REGS_AND_STACK_ACCESS_API) from arch subdirs into common kernel files. Note:

Re: [PATCH v13 04/14] perf, tools: Allow events with dot

2015-06-16 Thread Robert Richter
On 03.06.15 12:32:04, Jiri Olsa wrote: On Tue, Jun 02, 2015 at 10:12:04AM -0700, Sukadev Bhattiprolu wrote: From: Andi Kleen a...@linux.intel.com The Intel events use a dot to separate event name and unit mask. Allow dot in names in the scanner, and remove special handling of dot as

Re: [PATCH V7 06/10] powerpc/eeh: Create PE for VFs

2015-06-16 Thread Wei Yang
On Wed, Jun 03, 2015 at 10:46:38AM -0500, Bjorn Helgaas wrote: On Wed, Jun 03, 2015 at 03:10:23PM +1000, Gavin Shan wrote: It's correct. The following operations refers to eeh_add_device_late() and eeh_sysfs_add_device(). The former one requires the resources for one particular PCI device (VF

[PATCH v3] powerpc/rcpm: add RCPM driver

2015-06-16 Thread Yuantian.Tang
From: Tang Yuantian yuantian.t...@freescale.com There is a RCPM (Run Control/Power Management) in Freescale QorIQ series processors. The device performs tasks associated with device run control and power management. The driver implements some features: mask/unmask irq, enter/exit low power