RE: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-19 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, March 20, 2013 6:59 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Li Yang-R58472 > Subject: Re: [PATCH 2/3] powerpc/mpic: add global timer support > > On 03/19/

[PATCH] PowerPC:kernel: section mismatch from smp_release_cpus to __initdata spinning_secondaries

2013-03-19 Thread Chen Gang
the smp_release_cpus is a normal funciton and called in normal environments, but it calls the __initdata spinning_secondaries. need modify spinning_secondaries to match smp_release_cpus. the related warning: (the linker report boot_paca.33377, but it should be spinning_secondaries) -

[PATCHv2 1/3] pci: added pcie_get_speed_cap_mask function

2013-03-19 Thread Lucas Kannebley Tavares
Added function to gather the speed cap for a device and return a mask to supported speeds. The function is divided into an interface and a weak implementation so that architecture-specific functions can be called. This is the first step in moving function drm_pcie_get_speed_cap_mask from the drm s

[PATCHv2 0/3] PCI Speed Cap Fixes for ppc64

2013-03-19 Thread Lucas Kannebley Tavares
This patch series first implements a function called pcie_get_speed_cap_mask in the PCI subsystem based off from drm_pcie_get_speed_cap_mask in drm. Then it removes the latter and fixes all references to it. And ultimately, it implements an architecture-specific version of the same function for p

[PATCHv2 2/3] drm: removed drm_pcie_get_speed_cap_mask function

2013-03-19 Thread Lucas Kannebley Tavares
This function was moved to the pci subsystem where it fits better, as this is much more of a generic pci task, than a drm specific one. All references to the function (all in the radeon driver) are updated. This is the second step in moving function drm_pcie_get_speed_cap_mask from the drm subsyst

[PATCHv2 3/3] ppc64: implemented pcibios_get_speed_cap_mask

2013-03-19 Thread Lucas Kannebley Tavares
Implementation of a architecture-specific pcibios_get_speed_cap_mask. This implementation detects bus capabilities based on OF ibm,pcie-link-speed-stats property. Signed-off-by: Lucas Kannebley Tavares --- arch/powerpc/platforms/pseries/pci.c | 35 ++ 1 files ch

Re: [PATCHv2 3/3] ppc64: implemented pcibios_get_speed_cap_mask

2013-03-19 Thread Benjamin Herrenschmidt
On Wed, 2013-03-20 at 02:24 -0300, Lucas Kannebley Tavares wrote: > Implementation of a architecture-specific pcibios_get_speed_cap_mask. > This implementation detects bus capabilities based on OF > ibm,pcie-link-speed-stats property. The problem with your approach is that it's not a runtime detec

Re: [PATCH] [RFC] powerpc: Add VDSO version of time

2013-03-19 Thread Benjamin Herrenschmidt
On Tue, 2013-03-19 at 16:55 -0300, Adhemerval Zanella wrote: > > I focused on 64 bit kernel, do I need to provide a scheme for 32 bits > as well? You did provide both 32 and 64-bit VDSO implementations so 32-bit kernels should be covered. Cheers, Ben. __

RE: [PATCH 3/3] powerpc/fsl: add MPIC timer wakeup support

2013-03-19 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, March 20, 2013 6:55 AM > To: Wang Dongsheng-B40534 > Cc: Wood Scott-B07421; Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; > Zhao Chenhui-B35336; Li Yang-R58472 > Subject: Re: [PATCH 3/3] powerpc/fsl: add MPIC timer wake

Re: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-19 Thread Scott Wood
On 03/19/2013 02:55:58 AM, Wang Dongsheng-B40534 wrote: > > +static void convert_ticks_to_time(struct timer_group_priv *priv, > > + const u64 ticks, struct timeval *time) { > > + u64 tmp_sec; > > + u32 rem_us; > > + u32 div; > > + > > + if (!(priv->flags & FSL_GLOBAL_T

Re: [PATCH 3/3] powerpc/fsl: add MPIC timer wakeup support

2013-03-19 Thread Scott Wood
On 03/19/2013 01:25:42 AM, Wang Dongsheng-B40534 wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, March 19, 2013 8:31 AM > To: Wang Dongsheng-B40534 > Cc: Gala Kumar-B11780; linuxppc-dev@lists.ozlabs.org; Wang Dongsheng- > B40534; Zhao Chenhui-B35336; Li Yang-R584

Re: [PATCH] powerpc: add Book E support to 64-bit hibernation

2013-03-19 Thread Scott Wood
On 03/19/2013 04:22:07 PM, Johannes Berg wrote: On Tue, 2013-03-19 at 16:10 -0500, Scott Wood wrote: > > I was going to say I have no idea, but looking at it again ... this is > > in the *resume* code, not the suspend code as I'd assumed, and on > > resume > > I guess I felt it was safer to n

Re: [PATCH] powerpc: add Book E support to 64-bit hibernation

2013-03-19 Thread Johannes Berg
On Tue, 2013-03-19 at 16:10 -0500, Scott Wood wrote: > > I was going to say I have no idea, but looking at it again ... this is > > in the *resume* code, not the suspend code as I'd assumed, and on > > resume > > I guess I felt it was safer to not assume it didn't change, since it > > could be a

Re: [PATCH] powerpc: add Book E support to 64-bit hibernation

2013-03-19 Thread Scott Wood
On 03/19/2013 03:55:34 PM, Johannes Berg wrote: On Mon, 2013-03-18 at 17:12 -0500, Scott Wood wrote: > Could you elaborate on why book3s flushes the way it does? What's > special about the first 32 MiB? If it's to cover kernel code, why > would that be changing from what's already there? I wa

Re: Build regressions/improvements in v3.9-rc3

2013-03-19 Thread Geert Uytterhoeven
On Tue, 19 Mar 2013, Geert Uytterhoeven wrote: > JFYI, when comparing v3.9-rc3 to v3.9-rc2[3], the summaries are: > - build errors: +10/-12 10 regressions: + arch/powerpc/kvm/book3s_hv.c: error: implicit declaration of function 'inhibit_secondary_onlining' [-Werror=implicit-function-declarati

Re: [PATCH] powerpc: add Book E support to 64-bit hibernation

2013-03-19 Thread Johannes Berg
On Mon, 2013-03-18 at 17:12 -0500, Scott Wood wrote: > Could you elaborate on why book3s flushes the way it does? What's > special about the first 32 MiB? If it's to cover kernel code, why > would that be changing from what's already there? I was going to say I have no idea, but looking at

[PATCH] [RFC] powerpc: Add VDSO version of time

2013-03-19 Thread Adhemerval Zanella
Hi all, This patch implement the time syscall as vDSO. I have a glibc patch to use it as IFUNC (as latest gettimeofday patch). Below the perf numbers: Baseline PPC32: 380 nsec Baseline PPC64: 352 nsec vdso PPC32: 20 nsec vdso PPC64: 20 nsec I focused on 64 bit kernel, do I need to prov

Re: [PATCH 4/11] Add platform_has_feature()

2013-03-19 Thread Nathan Fontenot
On 03/14/2013 08:42 AM, Michael Ellerman wrote: > On Fri, Mar 08, 2013 at 10:02:31PM -0600, Nathan Fontenot wrote: >> The firmware_has_feature() function makes it easy to check for supported >> features of the hardware. There is not corresponding function to check for >> features supported by the c

Re: [PATCH 4/11] Add platform_has_feature()

2013-03-19 Thread Nathan Fontenot
On 03/14/2013 03:59 AM, Paul Mackerras wrote: > On Fri, Mar 08, 2013 at 10:02:31PM -0600, Nathan Fontenot wrote: >> This patch adds a platform_has_feature() function to check features selected >> by firmware and reported via the device tree 'ibm,architecture-vec5' >> property. As part of this the #

Re: [PATCH 4/11] Add platform_has_feature()

2013-03-19 Thread Nathan Fontenot
On 03/14/2013 03:56 AM, Paul Mackerras wrote: > On Fri, Mar 08, 2013 at 10:02:31PM -0600, Nathan Fontenot wrote: >> The firmware_has_feature() function makes it easy to check for supported >> features of the hardware. There is not corresponding function to check for >> features supported by the cli

Re: [PATCH2/11] Add PRRN Event Handler

2013-03-19 Thread Nathan Fontenot
On 03/14/2013 03:51 AM, Paul Mackerras wrote: > On Fri, Mar 08, 2013 at 10:00:09PM -0600, Nathan Fontenot wrote: >> From: Jesse Larrew >> >> A PRRN event is signaled via the RTAS event-scan mechanism, which >> returns a Hot Plug Event message "fixed part" indicating "Platform >> Resource Reassignm

Re: [PATCH] KVM: PPC: e500: Expose MMU registers via ONE_REG

2013-03-19 Thread Scott Wood
On 03/19/2013 12:17:11 PM, Mihai Caraman wrote: diff --git a/arch/powerpc/kvm/e500_mmu.c b/arch/powerpc/kvm/e500_mmu.c index 66b6e31..b77b855 100644 --- a/arch/powerpc/kvm/e500_mmu.c +++ b/arch/powerpc/kvm/e500_mmu.c @@ -596,6 +596,95 @@ int kvmppc_set_sregs_e500_tlb(struct kvm_vcpu *vcpu, stru

[PATCH] KVM: PPC: e500: Expose MMU registers via ONE_REG

2013-03-19 Thread Mihai Caraman
MMU registers were exposed to user-space using sregs interface. Add them to ONE_REG interface. Signed-off-by: Mihai Caraman --- Documentation/virtual/kvm/api.txt | 13 + arch/powerpc/include/uapi/asm/kvm.h | 14 ++ arch/powerpc/kvm/44x.c | 12 + arch/powerpc/kvm/

[PATCH] KVM: PPC: e500: Add separate functions for vcpu's MMU configuration

2013-03-19 Thread Mihai Caraman
Move vcpu's MMU default configuration and geometry update into their own functions. Signed-off-by: Mihai Caraman --- arch/powerpc/kvm/e500_mmu.c | 59 +++ 1 files changed, 37 insertions(+), 22 deletions(-) diff --git a/arch/powerpc/kvm/e500_mmu.c b/arch

Re: [PATCH V2] powerpc/85xx: workaround for chips with MSI hardware errata

2013-03-19 Thread Scott Wood
;On 03/19/2013 03:03:13 AM, Jia Hongtao-B38951 wrote: > -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Friday, March 15, 2013 11:53 PM > To: Jia Hongtao-B38951 > Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; > mich...@ellerman.id.au; Li Yang-R58

Re: [PATCH][UPSTEAM] powerpc/mpic: add irq_set_wake support

2013-03-19 Thread Scott Wood
On 03/19/2013 02:10:38 AM, Wang Dongsheng-B40534 wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, March 19, 2013 7:36 AM > To: Wang Dongsheng-B40534 > Cc: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org > Subject: Re: [PATCH][UPSTEAM] powerpc/mpic: add irq

using request_irq_percpu()

2013-03-19 Thread Bhushan Bharat-R65777
Hi All, request_irq_percpu() is defined in kernel/irq/manage.c, this takes a percpu pointer which will be unique based upon on which cpu the handler executes. So, it looks like we can use this to have multiple bottom half interrupt handler executing at same time on different CPU and each can ha

RE: [PATCH 1/1] Add a new platform tree for ib8315. Also add the DTS and the defconfig for that board.

2013-03-19 Thread Sergey Gerasimov
Yes. Ib8315 based on tqm8315. Ib8315 is baseboard that has the tqm8215m plugged in as "the central part". -Original Message- From: Kumar Gala [mailto:ga...@kernel.crashing.org] Sent: 19 марта 2013 г. 00:18 To: Sergey Gerasimov Cc: Benjamin Herrenschmidt; Paul Mackerras; linuxppc-dev@lis

[PATCH 1/1] MPC831x: fix PCI express probing

2013-03-19 Thread Sergey Gerasimov
For MPC831x the bus probing function also needs the fixup to assign addresses to the PCI devices as it was for MPC85xx and MPC86xx. The fixup of the bridge vendor and device ID should be done early in PCI probing. Else the bridge is not detected as FIXUP_HEADER is called too late. Signed-off-by: S

RE: [PATCH V2] powerpc/85xx: workaround for chips with MSI hardware errata

2013-03-19 Thread Jia Hongtao-B38951
> -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Friday, March 15, 2013 11:53 PM > To: Jia Hongtao-B38951 > Cc: linuxppc-dev@lists.ozlabs.org; Wood Scott-B07421; > mich...@ellerman.id.au; Li Yang-R58472 > Subject: Re: [PATCH V2] powerpc/85xx: workaround f

RE: [PATCH 2/3] powerpc/mpic: add global timer support

2013-03-19 Thread Wang Dongsheng-B40534
> > +static void convert_ticks_to_time(struct timer_group_priv *priv, > > + const u64 ticks, struct timeval *time) { > > + u64 tmp_sec; > > + u32 rem_us; > > + u32 div; > > + > > + if (!(priv->flags & FSL_GLOBAL_TIMER)) { > > + time->tv_sec = (__kernel_time_t) > > +

RE: [PATCH][UPSTEAM] powerpc/mpic: add irq_set_wake support

2013-03-19 Thread Wang Dongsheng-B40534
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, March 19, 2013 7:36 AM > To: Wang Dongsheng-B40534 > Cc: linuxppc-dev@lists.ozlabs.org; ga...@kernel.crashing.org > Subject: Re: [PATCH][UPSTEAM] powerpc/mpic: add irq_set_wake support > > On 01/30/2013 09:10:23 PM, Wang Don