[PATCH] fsl/ehci: fix failure of checking PHY_CLK_VALID during reinitialization

2013-09-01 Thread Shengzhou Liu
In case of usb phy reinitialization: e.g. insmod usb-module(usb works well) -> rmmod usb-module -> insmod usb-module It found the PHY_CLK_VALID bit didn't work if it's not with the power-on reset. So we just check PHY_CLK_VALID bit during the stage with POR, this can be met by the tricky of checkin

[PATCH v2 3/3] powerpc: use jump label for mmu_has_feature

2013-09-01 Thread Kevin Hao
The mmu features are fixed once the probe of mmu features are done. And the function mmu_has_feature() does be used in some hot path. The checking of the mmu features for each time of invoking of mmu_has_feature() seems suboptimal. This tries to reduce this overhead of this check by using jump labe

[PATCH v2 2/3] powerpc: use the jump label for cpu_has_feature

2013-09-01 Thread Kevin Hao
The cpu features are fixed once the probe of cpu features are done. And the function cpu_has_feature() does be used in some hot path. The checking of the cpu features for each time of invoking of cpu_has_feature() seems suboptimal. This tries to reduce this overhead of this check by using jump labe

[PATCH v2 1/3] powerpc: move the cpu_has_feature to a separate file

2013-09-01 Thread Kevin Hao
We plan to use jump label for cpu_has_feature. In order to implement this we need to include the linux/jump_label.h in asm/cputable.h. But it seems that asm/cputable.h is so basic header file for ppc that it is almost included by all the other header files. The including of the linux/jump_label.h w

[PATCH v2 0/3] powerpc: use jump label for cpu/mmu_has_feature

2013-09-01 Thread Kevin Hao
v2: - Rebase on git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master since these patches have a dependence on patch 851cf6e7 (jump_label: Split jumplabel ratelimit) - Drop the first two patches in v1 since they are not needed due to the patch 851cf6e7. v1: Ins

Re: [PATCH] powerpc: Work around gcc miscompilation of __pa() on 64-bit

2013-09-01 Thread Benjamin Herrenschmidt
On Mon, 2013-09-02 at 12:01 +0930, Alan Modra wrote: > > No, if you don't have a reloc that can represent this, then the proper > > fix is to use the existing relocs to load the original symbol address > > into a register, then *generate* the appropriate 64-bit addition on top > > of it. > > I alr

Re: [PATCH V2 0/6] perf: New conditional branch filter

2013-09-01 Thread Anshuman Khandual
On 08/30/2013 05:18 PM, Stephane Eranian wrote: > 2013/8/30 Anshuman Khandual >> > >> > This patchset is the re-spin of the original branch stack sampling >> > patchset which introduced new PERF_SAMPLE_BRANCH_COND filter. This patchset >> > also enables SW based branch filtering support fo

Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-01 Thread Alexey Kardashevskiy
On 09/01/2013 10:06 PM, Gleb Natapov wrote: > On Wed, Aug 28, 2013 at 06:50:41PM +1000, Alexey Kardashevskiy wrote: >> This allows the host kernel to handle H_PUT_TCE, H_PUT_TCE_INDIRECT >> and H_STUFF_TCE requests targeted an IOMMU TCE table without passing >> them to user space which saves time o

Re: [PATCH] powerpc: Work around gcc miscompilation of __pa() on 64-bit

2013-09-01 Thread Alan Modra
On Mon, Sep 02, 2013 at 09:59:12AM +1000, Benjamin Herrenschmidt wrote: > On Tue, 2013-08-27 at 16:42 +0930, Alan Modra wrote: > > The proper fix is to define a whole slew of new relocations and reloc > > specifiers, and modify everything to use them, but that seems like too > > much bother. I had

Re: [PATCH 1/5] jump_label: factor out the base part of jump_label.h to a separate file

2013-09-01 Thread Kevin Hao
On Fri, Aug 30, 2013 at 06:37:33PM +0200, Radim Krčmář wrote: > 2013-08-25 15:15+0800, Kevin Hao: > > We plan to use the jump label in the cpu/mmu feature check on ppc. > > This will need to include the jump_label.h in several very basic header > > files of ppc which seems to be included by most of

Re: [PATCH] powerpc: Work around gcc miscompilation of __pa() on 64-bit

2013-09-01 Thread Benjamin Herrenschmidt
On Tue, 2013-08-27 at 16:42 +0930, Alan Modra wrote: > The proper fix is to define a whole slew of new relocations and reloc > specifiers, and modify everything to use them, but that seems like too > much bother. I had ideas once upon a time to implement gas and ld > options that makes @ha and _HA

Re: [PATCH] hvc_vio: Do not override preferred console set by kernel parameter

2013-09-01 Thread Benjamin Herrenschmidt
On Sun, 2013-09-01 at 17:24 +0100, Ben Hutchings wrote: > The original version of this was done by Bastian Blank, who wrote: > > > The problem is the following: > > - Architecture specific code sets preferred console to something bogus. > > - Command line handling tries to set preferred console bu

[PATCH] hvc_vio: Do not override preferred console set by kernel parameter

2013-09-01 Thread Ben Hutchings
The original version of this was done by Bastian Blank, who wrote: > The problem is the following: > - Architecture specific code sets preferred console to something bogus. > - Command line handling tries to set preferred console but is overruled > by the old setting. > > The udbg0 console is a

Re: [RFC, v1, 1/1] powerpc/85xx: Wakeup kexec smp slave cpus in second kernel

2013-09-01 Thread Yu Chen
thx, I think I've sent this patch using gmail web gui and got some format problems, I'll try resend this patch tomorrow 2013/9/1 Wang Shilong : > Hello, Using checkpatch.pl, i get the following warnings(errors): > ERROR: patch seems to be corrupt (line wrapped?) > #108: FILE: :418: > mpc85xx_smp_f

Re: [PATCH v9 12/13] KVM: PPC: Add support for IOMMU in-kernel handling

2013-09-01 Thread Gleb Natapov
On Wed, Aug 28, 2013 at 06:50:41PM +1000, Alexey Kardashevskiy wrote: > This allows the host kernel to handle H_PUT_TCE, H_PUT_TCE_INDIRECT > and H_STUFF_TCE requests targeted an IOMMU TCE table without passing > them to user space which saves time on switching to user space and back. > > Both rea

Re: [PATCH v9 04/13] KVM: PPC: reserve a capability and KVM device type for realmode VFIO

2013-09-01 Thread Gleb Natapov
On Sun, Sep 01, 2013 at 09:39:23PM +1000, Alexey Kardashevskiy wrote: > On 09/01/2013 09:27 PM, Gleb Natapov wrote: > > On Wed, Aug 28, 2013 at 06:37:41PM +1000, Alexey Kardashevskiy wrote: > >> This reserves a capability number for upcoming support > >> of VFIO-IOMMU DMA operations in real mode. >

Re: [PATCH v9 04/13] KVM: PPC: reserve a capability and KVM device type for realmode VFIO

2013-09-01 Thread Alexey Kardashevskiy
On 09/01/2013 09:27 PM, Gleb Natapov wrote: > On Wed, Aug 28, 2013 at 06:37:41PM +1000, Alexey Kardashevskiy wrote: >> This reserves a capability number for upcoming support >> of VFIO-IOMMU DMA operations in real mode. >> >> This reserves a number for a new "SPAPR TCE IOMMU" KVM device >> which is

Re: [PATCH v9 04/13] KVM: PPC: reserve a capability and KVM device type for realmode VFIO

2013-09-01 Thread Gleb Natapov
On Wed, Aug 28, 2013 at 06:37:41PM +1000, Alexey Kardashevskiy wrote: > This reserves a capability number for upcoming support > of VFIO-IOMMU DMA operations in real mode. > > This reserves a number for a new "SPAPR TCE IOMMU" KVM device > which is going to manage lifetime of SPAPR TCE IOMMU objec

Re: [RFC, v1, 1/1] powerpc/85xx: Wakeup kexec smp slave cpus in second kernel

2013-09-01 Thread Wang Shilong
Hello, Using checkpatch.pl, i get the following warnings(errors): ERROR: patch seems to be corrupt (line wrapped?) #108: FILE: :418: mpc85xx_smp_flush_dcache_kexec(struct kimage *image) ERROR: do not set execute permissions for source files #197: FILE: arch/powerpc/kernel/head_fsl_booke.S ERROR: