Re: [PATCH 5/8] powerpc: add 24x7 interface header

2014-01-31 Thread Michael Ellerman
On Thu, 2014-16-01 at 23:53:51 UTC, Cody P Schafer wrote: > 24x7 (also called hv_24x7 or H_24X7) is an interface to obtain > performance counters from the hypervisor. These counters do not have a > fixed format/possition and are instead documented in a "24x7 Catalog", > which is provided by the hyp

Re: [PATCH 6/8] powerpc/perf: add support for the hv gpci (get performance counter info) interface

2014-01-31 Thread Michael Ellerman
On Thu, 2014-16-01 at 23:53:52 UTC, Cody P Schafer wrote: > This provides a basic link between perf and hv_gpci. Notably, it does > not yet support transactions and does not list any events (they can > still be manually composed). What are the plans for listing? The manual compose is nice but pre

Re: [PATCH 4/8] powerpc: add hv_gpci interface header

2014-01-31 Thread Michael Ellerman
On Thu, 2014-16-01 at 23:53:50 UTC, Cody P Schafer wrote: > "H_GetPerformanceCounterInfo" (refered to as hv_gpci or just gpci from > here on) is an interface to retrieve specific performance counters and > other data from the hypervisor. All outputs have a fixed format (and > are represented as str

Re: [PATCH 3/8] powerpc: add hvcalls for 24x7 and gpci (get performance counter info)

2014-01-31 Thread Michael Ellerman
On Thu, 2014-16-01 at 23:53:49 UTC, Cody P Schafer wrote: > Signed-off-by: Cody P Schafer > --- > arch/powerpc/include/asm/hvcall.h | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/arch/powerpc/include/asm/hvcall.h > b/arch/powerpc/include/asm/hvcall.h > index d8b60

Re: [PATCH 2/8] perf core: export swevent hrtimer helpers

2014-01-31 Thread Michael Ellerman
Peter, Ingo, can we get your ACK on this please? cheers On Thu, 2014-16-01 at 23:53:48 UTC, Cody P Schafer wrote: > Export the swevent hrtimer helpers currently only used in events/core.c > to allow the addition of architecture specific sw-like pmus. > Signed-off-by: Cody P Schafer > --- > in

Re: [PATCH 1/8] perf: add PMU_RANGE_ATTR() helper for use by sw-like pmus

2014-01-31 Thread Michael Ellerman
On Thu, 2014-16-01 at 23:53:47 UTC, Cody P Schafer wrote: > Add PMU_RANGE_ATTR() and PMU_RANGE_RESV() (for reserved areas) which > generate functions to extract the relevent bits from > event->attr.config{,1,2} for use by sw-like pmus where the > 'config{,1,2}' values don't map directly to hardware

[PATCH v2] powerpc: Add cpu family documentation

2014-01-31 Thread Michael Ellerman
This patch adds some documentation on the different cpu families supported by arch/powerpc. Signed-off-by: Michael Ellerman --- v2: Reworked formatting to avoid wrapping. Fixed up Freescale details. Documentation/powerpc/cpu_families.txt | 227 + 1 file chan

Re: [PATCH] powerpc: Add cpu family documentation

2014-01-31 Thread Michael Ellerman
On Fri, 2014-01-31 at 07:32 -0600, Kumar Gala wrote: > On Jan 29, 2014, at 8:38 PM, Michael Ellerman wrote: > > +Freescale BookE > > +--- > > + > > + - Software loaded TLB. > > + - e6500 adds HW loaded indirect TLB entries. > > + - Mix of 32 & 64 bit > > + > > + e200 --- e500 --- e500

Re: [PATCH] powerpc: Add cpu family documentation

2014-01-31 Thread Michael Ellerman
On Thu, 2014-01-30 at 14:32 +1100, Stephen Rothwell wrote: > Hi Michael, > > Nice. > > On Thu, 30 Jan 2014 13:38:00 +1100 Michael Ellerman > wrote: > > > > +++ b/Documentation/powerpc/cpu_families.txt > > @@ -0,0 +1,76 @@ > > +CPU Families > > + > > + > > +This doco tries to summari

[PATCH v3 3/3] powerpc/pseries: Report in kernel device tree update to drmgr

2014-01-31 Thread Tyrel Datwyler
Traditionally it has been drmgr's responsibilty to update the device tree through the /proc/ppc64/ofdt interface after a suspend/resume operation. This patchset however has modified suspend/resume ops to preform that update entirely in the kernel during the resume. Therefore, a mechanism is require

[PATCH v3 2/3] powerpc/pseries: Update dynamic cache nodes for suspend/resume operation

2014-01-31 Thread Tyrel Datwyler
From: Haren Myneni pHyp can change cache nodes for suspend/resume operation. The current code updates the device tree after all non boot CPUs are enabled. Hence, we do not modify the cache list based on the latest cache nodes. Also we do not remove cache entries for the primary CPU. This patch r

[PATCH v3 1/3] powerpc/pseries: Device tree should only be updated once after suspend/migrate

2014-01-31 Thread Tyrel Datwyler
From: Haren Myneni The current code makes rtas calls for update-nodes, activate-firmware and then update-nodes again. The FW provides the same data for both update-nodes calls. As a result a proc entry exists error is reported for the second update while adding device nodes. This patch makes a s

[PATCH v3 0/3] powerpc/pseries: fix issues in suspend/resume code

2014-01-31 Thread Tyrel Datwyler
This patchset fixes a couple of issues encountered in the suspend/resume code base. First when using the kernel device tree update code update-nodes is unnecessarily called more than once. Second the cpu cache lists are not updated after a suspend/resume which under certain conditions may cause a p

Re: PCIe Access - achieve bursts without DMA

2014-01-31 Thread David Hawkins
Hi Michael, I'm currently trying to benchmark access speeds to our PCIe-connected IP-cores located inside our FPGA. On x86-based systems I was able to achieve bursts for both read and write access. On PPC32, using an e500v2, I had no success at all so far. Whenever I want to benchmark PCI/PCIe

Re: PCIe Access - achieve bursts without DMA

2014-01-31 Thread Benjamin Herrenschmidt
On Thu, 2014-01-30 at 12:20 +, Moese, Michael wrote: > Hello PPC-developers, > I'm currently trying to benchmark access speeds to our PCIe-connected IP-cores > located inside our FPGA. On x86-based systems I was able to achieve bursts for > both read and write access. On PPC32, using an e500v2,

Re: [RFC PATCH 01/10] KVM: PPC: BOOK3S: PR: Fix PURR and SPURR emulation

2014-01-31 Thread Paul Mackerras
On Fri, Jan 31, 2014 at 11:47:44AM +0100, Alexander Graf wrote: > > On 31.01.2014, at 11:38, Aneesh Kumar K.V > wrote: > > > Alexander Graf writes: > > > >> On 01/28/2014 05:44 PM, Aneesh Kumar K.V wrote: > >>> We definitely don't need to emulate mtspr, because both the registers > >>> are hy

Re: [PATCH 0/8] Add support for PowerPC Hypervisor supplied performance counters

2014-01-31 Thread Cody P Schafer
On 01/22/2014 04:11 PM, Cody P Schafer wrote: On 01/21/2014 05:32 PM, Michael Ellerman wrote: On Thu, 2014-01-16 at 15:53 -0800, Cody P Schafer wrote: These patches add basic pmus for 2 powerpc hypervisor interfaces to obtain performance counters: gpci ("get performance counter info") and 24x7.

Re: [PATCH 2/2] Fix coding style errors

2014-01-31 Thread Brian W Hart
On Mon, Jan 27, 2014 at 09:07:34PM -0600, Brandon Stewart wrote: > I corrected several coding errors. > > Signed-off-by: Brandon Stewart > --- > drivers/macintosh/adb.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/ad

Re: [PATCH] powerpc/eeh: drop taken reference to driver on eeh_rmv_device

2014-01-31 Thread Thadeu Lima de Souza Cascardo
On Fri, Jan 31, 2014 at 08:46:11AM +0800, Gavin Shan wrote: > On Thu, Jan 30, 2014 at 11:00:48AM -0200, Thadeu Lima de Souza Cascardo wrote: > >Commit f5c57710dd62dd06f176934a8b4b8accbf00f9f8 ("powerpc/eeh: Use > >partial hotplug for EEH unaware drivers") introduces eeh_rmv_device, > >which may gra

Re: [PATCH] powerpc: Add cpu family documentation

2014-01-31 Thread Kumar Gala
On Jan 29, 2014, at 8:38 PM, Michael Ellerman wrote: > This patch adds some documentation on the different cpu families > supported by arch/powerpc. > > Signed-off-by: Michael Ellerman > --- > Documentation/powerpc/cpu_families.txt | 76 ++ > 1 file changed, 76 i

Re: PCIe Access - achieve bursts without DMA

2014-01-31 Thread Gabriel Paubert
On Thu, Jan 30, 2014 at 12:20:21PM +, Moese, Michael wrote: > Hello PPC-developers, > I'm currently trying to benchmark access speeds to our PCIe-connected IP-cores > located inside our FPGA. On x86-based systems I was able to achieve bursts for > both read and write access. On PPC32, using an

Re: [PATCH 0/2] Fixes for PCI-E link speed

2014-01-31 Thread Benjamin Herrenschmidt
On Fri, 2014-01-31 at 10:20 -0200, Kleber Sacilotto de Souza wrote: > On 01/17/2014 11:56 AM, Kleber Sacilotto de Souza wrote: > > These two patches fix problems on the PCI-E link speed detection. > > The first one fixes a regression and adds some improvements on the > > code, and the second one ad

Re: [PATCH 0/2] Fixes for PCI-E link speed

2014-01-31 Thread Kleber Sacilotto de Souza
On 01/17/2014 11:56 AM, Kleber Sacilotto de Souza wrote: These two patches fix problems on the PCI-E link speed detection. The first one fixes a regression and adds some improvements on the code, and the second one adds definitions for Gen3 speeds. Kleber Sacilotto de Souza (2): powerpc/pseri

Re: [RFC PATCH 08/10] KVM: PPC: BOOK3S: PR: Add support for facility unavailable interrupt

2014-01-31 Thread Alexander Graf
On 31.01.2014, at 12:40, Aneesh Kumar K.V wrote: > Alexander Graf writes: > >> On 01/28/2014 05:44 PM, Aneesh Kumar K.V wrote: >>> At this point we allow all the supported facilities except EBB. So >>> forward the interrupt to guest as illegal instruction. >>> >>> Signed-off-by: Aneesh Kumar

Re: [RFC PATCH 08/10] KVM: PPC: BOOK3S: PR: Add support for facility unavailable interrupt

2014-01-31 Thread Aneesh Kumar K.V
Alexander Graf writes: > On 01/28/2014 05:44 PM, Aneesh Kumar K.V wrote: >> At this point we allow all the supported facilities except EBB. So >> forward the interrupt to guest as illegal instruction. >> >> Signed-off-by: Aneesh Kumar K.V >> --- >> arch/powerpc/include/asm/kvm_asm.h | 4 +++-

Re: [RFC PATCH 07/10] KVM: PPC: BOOK3S: PR: Emulate facility status and control register

2014-01-31 Thread Aneesh Kumar K.V
Paul Mackerras writes: > On Tue, Jan 28, 2014 at 10:14:12PM +0530, Aneesh Kumar K.V wrote: >> We allow priv-mode update of this. The guest value is saved in fscr, >> and the value actually used is saved in shadow_fscr. shadow_fscr >> only contains values that are allowed by the host. On >> facili

Re: [RFC PATCH 03/10] KVM: PPC: BOOK3S: PR: Emulate instruction counter

2014-01-31 Thread Alexander Graf
On 31.01.2014, at 12:25, Aneesh Kumar K.V wrote: > Alexander Graf writes: > >> On 01/28/2014 05:44 PM, Aneesh Kumar K.V wrote: >>> Writing to IC is not allowed in the privileged mode. >> >> This is not a patch description. >> >>> >>> Signed-off-by: Aneesh Kumar K.V >>> --- >>> arch/power

Re: [RFC PATCH 03/10] KVM: PPC: BOOK3S: PR: Emulate instruction counter

2014-01-31 Thread Aneesh Kumar K.V
Alexander Graf writes: > On 01/28/2014 05:44 PM, Aneesh Kumar K.V wrote: >> Writing to IC is not allowed in the privileged mode. > > This is not a patch description. > >> >> Signed-off-by: Aneesh Kumar K.V >> --- >> arch/powerpc/include/asm/kvm_host.h | 1 + >> arch/powerpc/kvm/book3s_emulate

Re: [RFC PATCH 02/10] KVM: PPC: BOOK3S: PR: Emulate virtual timebase register

2014-01-31 Thread Aneesh Kumar K.V
Paul Mackerras writes: > On Tue, Jan 28, 2014 at 10:14:07PM +0530, Aneesh Kumar K.V wrote: >> virtual time base register is a per vm register and need to saved >> and restored on vm exit and entry. Writing to VTB is not allowed >> in the privileged mode. > ... > >> +#ifdef CONFIG_PPC_BOOK3S_64 >>

Re: [RFC PATCH 01/10] KVM: PPC: BOOK3S: PR: Fix PURR and SPURR emulation

2014-01-31 Thread Alexander Graf
On 31.01.2014, at 11:38, Aneesh Kumar K.V wrote: > Alexander Graf writes: > >> On 01/28/2014 05:44 PM, Aneesh Kumar K.V wrote: >>> We definitely don't need to emulate mtspr, because both the registers >>> are hypervisor resource. >> >> This patch description doesn't cover what the patch actu

Re: [RFC PATCH 01/10] KVM: PPC: BOOK3S: PR: Fix PURR and SPURR emulation

2014-01-31 Thread Aneesh Kumar K.V
Alexander Graf writes: > On 01/28/2014 05:44 PM, Aneesh Kumar K.V wrote: >> We definitely don't need to emulate mtspr, because both the registers >> are hypervisor resource. > > This patch description doesn't cover what the patch actually does. It > changes the implementation from "always tell t

[PATCH V2 2/2] powerpc/mm: Fix compile error of pgtable-ppc64.h

2014-01-31 Thread Aneesh Kumar K.V
From: Li Zhong It seems that forward declaration couldn't work well with typedef, use struct spinlock directly to avoiding following build errors: In file included from include/linux/spinlock.h:81, from include/linux/seqlock.h:35, from include/linux/time.h:5,

[PATCH V2 1/2] powerpc/thp: Fix crash on mremap

2014-01-31 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" This patch fix the below crash NIP [c004cee4] .__hash_page_thp+0x2a4/0x440 LR [c00439ac] .hash_page+0x18c/0x5e0 ... Call Trace: [c00736103c40] [1b00] 0x1b00(unreliable) [437908.479693] [c00736103d50] [c00439ac] .hash_pa

[PATCH 1/2][v8] driver/memory:Move Freescale IFC driver to a common driver

2014-01-31 Thread Prabhakar Kushwaha
Freescale IFC controller has been used for mpc8xxx. It will be used for ARM-based SoC as well. This patch moves the driver to driver/memory and fix the header file includes. Also remove module_platform_driver() and instead call platform_driver_register() from subsys_initcall() to make sure t

[PATCH 2/2][v8] powerpc/config: Enable memory driver

2014-01-31 Thread Prabhakar Kushwaha
As Freescale IFC controller has been moved to driver to driver/memory. So enable memory driver in powerpc config Signed-off-by: Prabhakar Kushwaha --- Based upon git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git Branch next Changes for v2: Sending as it is Changes for v3: Sendi