Re: [v4,4/4] powernv: powerpc: Add winkle support for offline cpus

2014-12-14 Thread Shreyas B Prabhu
On Monday 15 December 2014 05:31 AM, Michael Ellerman wrote: > On Sun, 2014-12-14 at 17:22 +0530, Shreyas B Prabhu wrote: >> On Sunday 14 December 2014 03:35 PM, Michael Ellerman wrote: diff --git a/arch/powerpc/platforms/powernv/subcore.h b/arch/powerpc/platforms/powernv/subcore.h >>>

[PATCH v5] dmaengine: Driver support for FSL RaidEngine device.

2014-12-14 Thread xuelin.shi
From: Xuelin Shi The RaidEngine is a new FSL hardware used for Raid5/6 acceration. This patch enables the RaidEngine functionality and provides hardware offloading capability for memcpy, xor and pq computation. It works with async_tx. Signed-off-by: Harninder Rai Signed-off-by: Naveen Burmi Si

Re: [PATCH 7/7] CXL: Unmap MMIO regions when detaching a context

2014-12-14 Thread Ian Munsie
Excerpts from Ian Munsie's message of 2014-12-08 19:18:01 +1100: > From: Ian Munsie > > If we need to force detach a context (e.g. due to EEH or simply force > unbinding the driver) we should prevent the userspace contexts from > being able to access the Problem State Area MMIO region further, wh

Re: [PATCH V2] powerpc/pci: remove the multi-init for pci_dn->phb

2014-12-14 Thread Gavin Shan
On Mon, Dec 15, 2014 at 09:45:00AM +0800, Wei Yang wrote: >pci_dn->phb is set to phb in update_dn_pci_info(), if succeed. > >This patch removes the duplication of pci_dn->phb initialization. > >Signed-off-by: Wei Yang Reviewed-by: Gavin Shan Thanks, Gavin > >V2: > * rebase the code on v3.18

Re: [PATCH] powerpc/kernel: Make syscall_exit a local label

2014-12-14 Thread Michael Ellerman
On Fri, 2014-12-05 at 10:27 +, David Laight wrote: > From: Michael Ellerman > > diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S > > index 0905c8da90f1..d8828e50dbef 100644 > > --- a/arch/powerpc/kernel/entry_64.S > > +++ b/arch/powerpc/kernel/entry_64.S > > @@ -178,

[PATCH V2] powerpc/pci: remove the multi-init for pci_dn->phb

2014-12-14 Thread Wei Yang
pci_dn->phb is set to phb in update_dn_pci_info(), if succeed. This patch removes the duplication of pci_dn->phb initialization. Signed-off-by: Wei Yang V2: * rebase the code on v3.18 --- arch/powerpc/kernel/pci_dn.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/

Re: [PATCH 13/18] powerpc/uaccess: fix sparse errors

2014-12-14 Thread Benjamin Herrenschmidt
On Mon, 2014-12-15 at 11:05 +1100, Benjamin Herrenschmidt wrote: > On Sun, 2014-12-14 at 18:52 +0200, Michael S. Tsirkin wrote: > > virtio wants to read bitwise types from userspace using get_user. At the > > moment this triggers sparse errors, since the value is passed through an > > integer. > >

Re: [PATCH] powerpc/pci: remove the multi-init for pci_dn->phb

2014-12-14 Thread Wei Yang
On Sun, Dec 14, 2014 at 09:57:42PM +1100, Gavin Shan wrote: >On Sat, Dec 13, 2014 at 11:09:04AM +0800, Wei Yang wrote: >>pci_dn->phb is set to phb in update_dn_pci_info(), if succeed. >> >>This patch removes the duplication of pci_dn->phb initialization. >> >>Signed-off-by: Wei Yang >>--- >> arch/

Re: [PATCH 13/18] powerpc/uaccess: fix sparse errors

2014-12-14 Thread Benjamin Herrenschmidt
On Sun, 2014-12-14 at 18:52 +0200, Michael S. Tsirkin wrote: > virtio wants to read bitwise types from userspace using get_user. At the > moment this triggers sparse errors, since the value is passed through an > integer. > > Fix that up using __force. You mean bitfields ? Argh ... we should jus

Re: [v4,4/4] powernv: powerpc: Add winkle support for offline cpus

2014-12-14 Thread Michael Ellerman
On Sun, 2014-12-14 at 17:22 +0530, Shreyas B Prabhu wrote: > On Sunday 14 December 2014 03:35 PM, Michael Ellerman wrote: > >> diff --git a/arch/powerpc/platforms/powernv/subcore.h > >> b/arch/powerpc/platforms/powernv/subcore.h > >> index 148abc9..604eb40 100644 > >> --- a/arch/powerpc/platforms/

Re: [v3, 2/4] powerpc/powernv: Enable Offline CPUs to enter deep idle states

2014-12-14 Thread Michael Ellerman
On Sun, 2014-12-14 at 17:19 +0530, Shreyas B Prabhu wrote: > > On Sunday 14 December 2014 03:35 PM, Michael Ellerman wrote: > > On Thu, 2014-04-12 at 07:28:21 UTC, "Shreyas B. Prabhu" wrote: > >> From: "Preeti U. Murthy" > >> > >> The secondary threads should enter deep idle states so as to gain

[PATCH 13/18] powerpc/uaccess: fix sparse errors

2014-12-14 Thread Michael S. Tsirkin
virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin --- arch/powerpc/include/asm/uaccess.h | 6 +++--- 1 file changed, 3 insertion

Re: [v4,4/4] powernv: powerpc: Add winkle support for offline cpus

2014-12-14 Thread Shreyas B Prabhu
On Sunday 14 December 2014 03:35 PM, Michael Ellerman wrote: > On Tue, 2014-09-12 at 18:56:53 UTC, "Shreyas B. Prabhu" wrote: >> Winkle is a deep idle state supported in power8 chips. A core enters >> winkle when all the threads of the core enter winkle. In this state >> power supply to the entir

Re: [v3, 2/4] powerpc/powernv: Enable Offline CPUs to enter deep idle states

2014-12-14 Thread Shreyas B Prabhu
On Sunday 14 December 2014 03:35 PM, Michael Ellerman wrote: > On Thu, 2014-04-12 at 07:28:21 UTC, "Shreyas B. Prabhu" wrote: >> From: "Preeti U. Murthy" >> >> The secondary threads should enter deep idle states so as to gain maximum >> powersavings when the entire core is offline. To do so the

Re: [PATCH] powerpc/pci: remove the multi-init for pci_dn->phb

2014-12-14 Thread Gavin Shan
On Sat, Dec 13, 2014 at 11:09:04AM +0800, Wei Yang wrote: >pci_dn->phb is set to phb in update_dn_pci_info(), if succeed. > >This patch removes the duplication of pci_dn->phb initialization. > >Signed-off-by: Wei Yang >--- > arch/powerpc/kernel/pci_dn.c |1 - > 1 file changed, 1 deletion(-) > >

Re: [v4,4/4] powernv: powerpc: Add winkle support for offline cpus

2014-12-14 Thread Michael Ellerman
On Tue, 2014-09-12 at 18:56:53 UTC, "Shreyas B. Prabhu" wrote: > Winkle is a deep idle state supported in power8 chips. A core enters > winkle when all the threads of the core enter winkle. In this state > power supply to the entire chiplet i.e core, private L2 and private L3 > is turned off. As a

Re: [v4, 1/4] powerpc: powernv: Switch off MMU before entering nap/sleep/rvwinkle mode

2014-12-14 Thread Michael Ellerman
On Tue, 2014-09-12 at 18:56:50 UTC, "Shreyas B. Prabhu" wrote: > From: Paul Mackerras > > Currently, when going idle, we set the flag indicating that we are in > nap mode (paca->kvm_hstate.hwthread_state) and then execute the nap > (or sleep or rvwinkle) instruction, all with the MMU on. This is

Re: [v3, 2/4] powerpc/powernv: Enable Offline CPUs to enter deep idle states

2014-12-14 Thread Michael Ellerman
On Thu, 2014-04-12 at 07:28:21 UTC, "Shreyas B. Prabhu" wrote: > From: "Preeti U. Murthy" > > The secondary threads should enter deep idle states so as to gain maximum > powersavings when the entire core is offline. To do so the offline path > must be made aware of the available deepest idle stat