[RFC 00/11]: powerKVM, release the compute power of secondary hwthread on host

2014-10-16 Thread kernelfans
Nowadays, when running powerKVM(book3s, hv mode), we should make the secondary hwthread offline. Which means that if we run misc tsks other than dedicated KVM (e.g mix java and KVM), we will lose the compute power of the secondary hwthread on host env. This series aim to make the powerpc adapti

[RFC 01/11] sched: introduce sys_cpumask in tsk to adapt asymmetric system

2014-10-16 Thread kernelfans
Some system such as powerpc, some tsk (vcpu thread) can only run on the dedicated cpu. Since we adapt some asymmetric method to monitor the whole physical cpu. (powerKVM only allows the primary hwthread to set up runtime env for the secondary when entering guest). Nowadays, powerKVM run with all t

[RFC 02/11] powerpc: kvm: ensure vcpu-thread run only on primary hwthread

2014-10-16 Thread kernelfans
When vcpu thread runs at the first time, it will ensure to stick to the primary thread. Signed-off-by: Liu Ping Fan --- arch/powerpc/include/asm/kvm_host.h | 3 +++ arch/powerpc/kvm/book3s_hv.c| 17 + 2 files changed, 20 insertions(+) diff --git a/arch/powerpc/include/a

[RFC 03/11] powerpc: kvm: add interface to control kvm function on a core

2014-10-16 Thread kernelfans
When kvm is enabled on a core, we migrate all external irq to primary thread. Since currently, the kvmirq logic is handled by the primary hwthread. Todo: this patch lacks re-enable of irqbalance when kvm is disable on the core Signed-off-by: Liu Ping Fan --- arch/powerpc/kernel/sysfs.c

[RFC 04/11] powerpc: kvm: introduce a kthread on primary thread to anti tickless

2014-10-16 Thread kernelfans
(This patch is a place holder.) If there is only one vcpu thread is ready(the other vcpu thread can wait for it to execute), the primary thread can enter tickless mode, which causes the primary keeps running, so the secondary has no opportunity to exit to host, even they have other tsk on them. I

[RFC 05/11] sched: introduce stop_cpus_async() to schedule special tsk on cpu

2014-10-16 Thread kernelfans
The proto will be: cpu1 cpuX stop_cpus_async() bring cpuX to a special state signal flag and trapped check for flag The func help powerpc to reuse the scheme of cpu_stopper_task to force the s

[RFC 06/11] powerpc: kvm: introduce online in paca to indicate whether cpu is needed by host

2014-10-16 Thread kernelfans
Nowadays, powerKVM runs with secondary hwthread offline. Although we can make all secondary hwthread online later, we still preserve this behavior for dedicated KVM env. Achieve this by setting paca->online as false. Signed-off-by: Liu Ping Fan --- arch/powerpc/include/asm/paca.h | 3 ++

[RFC 07/11] powerpc: kvm: the stopper func to cease secondary hwthread

2014-10-16 Thread kernelfans
To enter guest, primary hwtherad schedules the stopper func on secondary threads and force them into NAP mode. When exit to host,secondary threads hardcode to restore the stack, then switch back to the stopper func, i.e host. Signed-off-by: Liu Ping Fan --- arch/powerpc/kvm/book3s_hv.c

[RFC 08/11] powerpc: kvm: add a flag in vcore to sync primary with secondry hwthread

2014-10-16 Thread kernelfans
The secondary thread can only jump back to host until primary has set up the env. Add host_ready field in kvm_vcore to sync this action. Signed-off-by: Liu Ping Fan --- arch/powerpc/include/asm/kvm_host.h | 3 +++ arch/powerpc/kernel/asm-offsets.c | 3 +++ arch/powerpc/kvm/book3s_hv_

[RFC 09/11] powerpc: kvm: handle time base on secondary hwthread

2014-10-16 Thread kernelfans
(This is a place holder patch.) We need to store the time base for host on secondary hwthread. Later when switching back, we need to reprogram it with elapse time. Signed-off-by: Liu Ping Fan --- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 6 ++ 1 file changed, 6 insertions(+) diff --git a/ar

[RFC 10/11] powerpc: kvm: on_primary_thread() force the secondary threads into NAP mode

2014-10-16 Thread kernelfans
The primary hwthread ceases the scheduler of secondary hwthread by bringing them into NAP. Then, the secondary is ready for guest. Signed-off-by: Liu Ping Fan --- arch/powerpc/kvm/book3s_hv.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/k

[RFC 11/11] powerpc: kvm: Kconfig add an option for enabling secondary hwthread

2014-10-16 Thread kernelfans
Signed-off-by: Liu Ping Fan --- arch/powerpc/kvm/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/powerpc/kvm/Kconfig b/arch/powerpc/kvm/Kconfig index 602eb51..de38566 100644 --- a/arch/powerpc/kvm/Kconfig +++ b/arch/powerpc/kvm/Kconfig @@ -93,6 +93,10 @@ config KVM_BOOK3S_64_

Re: [PATCH V7 00/17] Enable SRIOV on POWER8

2014-10-16 Thread Wei Yang
On Wed, Oct 15, 2014 at 07:52:16AM -0600, Bjorn Helgaas wrote: >On Wed, Oct 15, 2014 at 3:00 AM, Wei Yang wrote: >> On Thu, Oct 02, 2014 at 09:59:43AM -0600, Bjorn Helgaas wrote: >... >>>I haven't seen any more on this series, and I'm assuming you'll post a >>>rebased series (maybe you're waiting

Re: [PATCHv9 2/5] ppc/cell: trivial: replace get_unused_fd() by get_unused_fd_flags(0)

2014-10-16 Thread Yann Droneaud
Hi, Le mardi 14 octobre 2014 à 12:57 +1100, Michael Ellerman a écrit : > On Mon, 2014-10-13 at 21:30 +0200, Yann Droneaud wrote: > > This patch replaces calls to get_unused_fd() with equivalent call to > > get_unused_fd_flags(0) to preserve current behavor for existing code. > > > > In a further

[PATCH 04/11] dmaengine: fsldma: Remove chancnt affectations

2014-10-16 Thread Maxime Ripard
chanctnt is already filled by dma_async_device_register, which uses the channel list to know how much channels there is. Since it's already filled, we can safely remove it from the drivers' probe function. Signed-off-by: Maxime Ripard --- drivers/dma/fsldma.c | 1 - 1 file changed, 1 deletion(-

Re: [PATCH 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-16 Thread Steve Capper
On Wed, Oct 15, 2014 at 10:04:47PM +0530, Aneesh Kumar K.V wrote: > Update generic gup implementation with powerpc specific details. > On powerpc at pmd level we can have hugepte, normal pmd pointer > or a pointer to the hugepage directory. > > Signed-off-by: Aneesh Kumar K.V Hi, This patch caus

[PATCH v2 26/53] dmaengine: fsl-dma: Split device_control

2014-10-16 Thread Maxime Ripard
Split the device_control callback of the Freescale Elo DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. While we're at it, remove the useless prep_sg callback. Signed-off-by: Maxime Ripard --- drivers/dma/fsldma.c | 100 +

[PATCH 0/2] fix a kernel panic on fsl corenet board when CONFIG_CLK_PPC_CORENET is enabled

2014-10-16 Thread Kevin Hao
Hi, This tries to fix a kernel panic introduced by commit da788acb2838 ("clk: ppc-corenet: Fix Section mismatch warning"). Kevin Hao (2): powerpc: move ppc_init() to common place clk: ppc-corenet: don't use platform_driver to init the clock device arch/powerpc/include/asm/machdep.h

[PATCH 1/2] powerpc: move ppc_init() to common place

2014-10-16 Thread Kevin Hao
So they can be used by ppc64 board. Also remove the unneeded {} to make checkpatch happy. Signed-off-by: Kevin Hao --- arch/powerpc/include/asm/machdep.h | 2 +- arch/powerpc/kernel/setup-common.c | 15 +++ arch/powerpc/kernel/setup_32.c | 15 --- 3 files changed, 16

[PATCH 2/2] clk: ppc-corenet: don't use platform_driver to init the clock device

2014-10-16 Thread Kevin Hao
In commit da788acb2838 ("clk: ppc-corenet: Fix Section mismatch warning"), we put the ppc_corenet_clk_driver struct to init section in order to fix section mismatch warning. This is definitely wrong because the kernel would free the memories occupied by ppc_corenet_clk_driver after boot while this

Re: [PATCH v3 22/27] s390/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-10-16 Thread Sebastian Ott
On Wed, 15 Oct 2014, Yijing Wang wrote: > Use MSI chip framework instead of arch MSI functions to configure > MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. > > Signed-off-by: Yijing Wang > --- > Hi Sebastian, >I dropped the Acked-by , because this version has a > lot c

Re: [PATCH] powerpc/pci: Fix IO space breakage after of_pci_range_to_resource() change

2014-10-16 Thread a...@arndb.de
(hope my email makes it everywhere, using a webmail client at the moment as I'm at plumbersconf Michael Ellerman hat am 16. Oktober 2014 um 05:22 geschrieben: > > > Commit 0b0b0893d49b "of/pci: Fix the conversion of IO ranges into IO > resources" changed the behaviour of of_pci_range_to_resource(

Re: [PATCH 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-16 Thread Aneesh Kumar K.V
Steve Capper writes: > On Wed, Oct 15, 2014 at 10:04:47PM +0530, Aneesh Kumar K.V wrote: >> Update generic gup implementation with powerpc specific details. >> On powerpc at pmd level we can have hugepte, normal pmd pointer >> or a pointer to the hugepage directory. >> >> Signed-off-by: Aneesh K

Re: [PATCH 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-16 Thread Steve Capper
On Thu, Oct 16, 2014 at 08:48:20PM +0530, Aneesh Kumar K.V wrote: > Steve Capper writes: > > > On Wed, Oct 15, 2014 at 10:04:47PM +0530, Aneesh Kumar K.V wrote: > >> Update generic gup implementation with powerpc specific details. > >> On powerpc at pmd level we can have hugepte, normal pmd point

Re: [PATCH 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-16 Thread Aneesh Kumar K.V
Steve Capper writes: > Can we not just add a: > #define pgd_huge(pgd) (0) > above the "#endif /* CONFIG_HUGETLB_PAGE */" line in the second patch? > (or, more precisely, prevent the second patch from removing this line). > > That way we get a clearer code overall? it is strange to have b

[PATCH] drivers/crypto/nx: prevent oops on module exit

2014-10-16 Thread Dan Streetman
Check old_devdata->dev in nx-842 driver before accessing it, as on systems without any nx-842 hardware, the ->dev will never be set. Currently, the module will cause an oops during unload since old_devdata->dev is null. Signed-off-by: Dan Streetman --- Also Seth and Rob, you guys should change

Re: [PATCH v2] powerpc: Only do dynamic DMA zone limits on platforms that need it

2014-10-16 Thread Scott Wood
On Thu, 2014-10-16 at 17:47 +1100, Michael Ellerman wrote: > Scott's patch 1c98025c6c95 "Dynamic DMA zone limits" changed > dma_direct_alloc_coherent() to start using dev->coherent_dma_mask. > > That seems fair enough, but it exposes the fact that some of the drivers > we care about on IBM platfor

Re: [PATCH 0/2] fix a kernel panic on fsl corenet board when CONFIG_CLK_PPC_CORENET is enabled

2014-10-16 Thread Scott Wood
On Thu, 2014-10-16 at 19:18 +0800, Kevin Hao wrote: > Hi, > > This tries to fix a kernel panic introduced by commit da788acb2838 > ("clk: ppc-corenet: Fix Section mismatch warning"). That patch is just wrong and should be reverted, separately from any new attempt to fix the section mismatch warni

Re: [PATCH 1/2] powerpc: move ppc_init() to common place

2014-10-16 Thread Scott Wood
On Thu, 2014-10-16 at 19:18 +0800, Kevin Hao wrote: > So they can be used by ppc64 board. Also remove the unneeded {} to > make checkpatch happy. > > Signed-off-by: Kevin Hao > --- > arch/powerpc/include/asm/machdep.h | 2 +- > arch/powerpc/kernel/setup-common.c | 15 +++ > arch/pow

Re: [PATCH 2/2] clk: ppc-corenet: don't use platform_driver to init the clock device

2014-10-16 Thread Scott Wood
On Thu, 2014-10-16 at 19:18 +0800, Kevin Hao wrote: > In commit da788acb2838 ("clk: ppc-corenet: Fix Section mismatch > warning"), we put the ppc_corenet_clk_driver struct to init section > in order to fix section mismatch warning. This is definitely wrong > because the kernel would free the memori

Re: [PATCH 0/2] fix a kernel panic on fsl corenet board when CONFIG_CLK_PPC_CORENET is enabled

2014-10-16 Thread Kevin Hao
On Thu, Oct 16, 2014 at 11:49:22PM +0200, Scott Wood wrote: > On Thu, 2014-10-16 at 19:18 +0800, Kevin Hao wrote: > > Hi, > > > > This tries to fix a kernel panic introduced by commit da788acb2838 > > ("clk: ppc-corenet: Fix Section mismatch warning"). > > That patch is just wrong and should be r

Re: [PATCH 1/2] powerpc: move ppc_init() to common place

2014-10-16 Thread Kevin Hao
On Thu, Oct 16, 2014 at 11:54:46PM +0200, Scott Wood wrote: > On Thu, 2014-10-16 at 19:18 +0800, Kevin Hao wrote: > > So they can be used by ppc64 board. Also remove the unneeded {} to > > make checkpatch happy. > > > > Signed-off-by: Kevin Hao > > --- > > arch/powerpc/include/asm/machdep.h | 2

Re: [PATCH] drivers/crypto/nx: prevent oops on module exit

2014-10-16 Thread Michael Ellerman
On Thu, 2014-10-16 at 15:30 -0400, Dan Streetman wrote: > Check old_devdata->dev in nx-842 driver before accessing it, as > on systems without any nx-842 hardware, the ->dev will never be > set. Currently, the module will cause an oops during unload > since old_devdata->dev is null. Hi Dan, Patc

Re: [PATCH] drivers/crypto/nx: prevent oops on module exit

2014-10-16 Thread Benjamin Herrenschmidt
On Fri, 2014-10-17 at 09:43 +1100, Michael Ellerman wrote: > On Thu, 2014-10-16 at 15:30 -0400, Dan Streetman wrote: > > Check old_devdata->dev in nx-842 driver before accessing it, as > > on systems without any nx-842 hardware, the ->dev will never be > > set. Currently, the module will cause an

Re: [PATCH 2/2] clk: ppc-corenet: don't use platform_driver to init the clock device

2014-10-16 Thread Kevin Hao
On Thu, Oct 16, 2014 at 11:55:23PM +0200, Scott Wood wrote: > On Thu, 2014-10-16 at 19:18 +0800, Kevin Hao wrote: > > diff --git a/arch/powerpc/platforms/85xx/corenet_generic.c > > b/arch/powerpc/platforms/85xx/corenet_generic.c > > index e56b89a792ed..7677cfecb787 100644 > > --- a/arch/powerpc/pl

Re: [PATCH v3 22/27] s390/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-10-16 Thread Yijing Wang
On 2014/10/16 20:13, Sebastian Ott wrote: > On Wed, 15 Oct 2014, Yijing Wang wrote: >> Use MSI chip framework instead of arch MSI functions to configure >> MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. >> >> Signed-off-by: Yijing Wang >> --- >> Hi Sebastian, >>I dropped

RE: [PATCH v3] dmaengine: driver support for FSL RaidEngine device.

2014-10-16 Thread Xuelin Shi
Hi Dan & Vinod, I have sent out the v4 of this patch and not received any further feedback yet. This patch looks ruled out from the patchwork. https://patchwork.kernel.org/project/linux-dmaengine/list/?page=2 So do you know what happened to this patch? Thanks, Xuelin Shi -Original Messag

[PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-16 Thread B29983
From: Tang Yuantian Freescale introduced new ARM core-based SoCs which support dynamic frequency switch feature. DFS on new SoCs are compatible with current PowerPC CoreNet platforms. In order to support those new platforms, this driver needs to be slightly adjusted. The main changes include: 1.

Re: [PATCH 1/3] qe-uart: modify qe-uart to adapt both powerpc and arm

2014-10-16 Thread Scott Wood
On Mon, 2014-10-13 at 11:30 -0500, Timur Tabi wrote: > On Fri, Oct 10, 2014 at 1:05 PM, Scott Wood wrote: > > There are many changes in here that ought to be separate patches with > > separate justification. > > > > Also, some of the QE changes seem to be reasonable cleanup, but not > > related to

[PATCH V2 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-16 Thread Aneesh Kumar K.V
Update generic gup implementation with powerpc specific details. On powerpc at pmd level we can have hugepte, normal pmd pointer or a pointer to the hugepage directory. Signed-off-by: Aneesh Kumar K.V --- Changes from V1: * Folded arm/arm64 related changes into the patch * Dropped pgd_huge from

[PATCH V2 2/2] arch/powerpc: Switch to generic RCU get_user_pages_fast

2014-10-16 Thread Aneesh Kumar K.V
This patch switch the ppc arch to use the generic RCU based gup implementation. Signed-off-by: Aneesh Kumar K.V --- Changes from V1: * added pgd_huge definition back arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/hugetlb.h | 8 +- arch/powerpc/include/asm/pag

Re: [PATCH 2/2] clk: ppc-corenet: don't use platform_driver to init the clock device

2014-10-16 Thread Scott Wood
On Fri, 2014-10-17 at 06:55 +0800, Kevin Hao wrote: > On Thu, Oct 16, 2014 at 11:55:23PM +0200, Scott Wood wrote: > > On Thu, 2014-10-16 at 19:18 +0800, Kevin Hao wrote: > > > diff --git a/arch/powerpc/platforms/85xx/corenet_generic.c > > > b/arch/powerpc/platforms/85xx/corenet_generic.c > > > ind