Re: [powerpc v6 1/3] Setup AMOR in HV mode

2016-11-15 Thread Aneesh Kumar K.V
Balbir Singh writes: > AMOR should be setup in HV mode, we set it up once > and let the generic kernel handle IAMR. This patch is > used to enable storage keys in a following patch as > defined in ISA 3. We don't setup AMOR in DD1, since we > can't setup IAMR in DD1 (bits have to be 0). If we set

[PATCH] powernv/hmi: Display the correct error info for CAPP errors.

2016-11-15 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar On some CAPP errors we see console messages that prints unknown HMIs for which CAPI recovery is in progress. This patch fixes this by printing correct error info for HMI generated due to CAPP recovery. Signed-off-by: Mahesh Salgaonkar Tested-by: Andrew Donnellan --- ar

[PATCH v2] powerpc/mm/radix: Invalidate ERAT on tlbiel for POWER9 DD1

2016-11-15 Thread Michael Neuling
On POWER9 DD1, when we do a local TLB invalidate we also need to explicitly invalidate the ERAT. Signed-off-by: Michael Neuling --- v2: - Remove unnecessary isyncs --- arch/powerpc/mm/tlb-radix.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/powerpc/mm/tlb-radix.c b/arch/power

Re: [PATCH] powerpc/mm/radix: Invalidate ERAT on tlbiel for POWER9 DD1

2016-11-15 Thread Michael Neuling
On Wed, 2016-11-16 at 15:35 +1100, Benjamin Herrenschmidt wrote: > On Wed, 2016-11-16 at 15:18 +1100, Michael Neuling wrote: > > +   asm volatile("isync \n" > > +    PPC_SLBIA(0x7) > > +    : : :"memory"); > > return; > >  } > > >

Re: [PATCH] powerpc/mm/radix: Invalidate ERAT on tlbiel for POWER9 DD1

2016-11-15 Thread Benjamin Herrenschmidt
On Wed, 2016-11-16 at 15:18 +1100, Michael Neuling wrote: > +   asm volatile("isync \n" > +    PPC_SLBIA(0x7) > +    : : :"memory"); > return; >  } > We probably don't need the isync's > @@ -83,6 +87,10 @@ static inline void _tlb

Re: [PATCH v7 06/11] x86, paravirt: Add interface to support kvm/xen vcpu preempted check

2016-11-15 Thread Pan Xinhui
在 2016/11/15 23:47, Peter Zijlstra 写道: On Wed, Nov 02, 2016 at 05:08:33AM -0400, Pan Xinhui wrote: diff --git a/arch/x86/include/asm/paravirt_types.h b/arch/x86/include/asm/paravirt_types.h index 0f400c0..38c3bb7 100644 --- a/arch/x86/include/asm/paravirt_types.h +++ b/arch/x86/include/asm/pa

[PATCH] powerpc/mm/radix: Invalidate ERAT on tlbiel for POWER9 DD1

2016-11-15 Thread Michael Neuling
On POWER9 DD1, when we do a local TLB invalidate we also need to explicitly invalidate the ERAT. Signed-off-by: Michael Neuling --- arch/powerpc/mm/tlb-radix.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/powerpc/mm/tlb-radix.c b/arch/powerpc/mm/tlb-radix.c index bda8c43be7..

Re: [PATCH net-next v8 0/9] dpaa_eth: Add the QorIQ DPAA Ethernet driver

2016-11-15 Thread David Miller
From: Madalin Bucur Date: Tue, 15 Nov 2016 10:41:00 +0200 > This patch series adds the Ethernet driver for the Freescale > QorIQ Data Path Acceleration Architecture (DPAA). Series applied, thanks.

Re: [PATCH] powerpc/powernv: Don't warn on PE init if unfreeze is unsupported

2016-11-15 Thread Andrew Donnellan
On 16/11/16 12:12, Russell Currey wrote: Whenever a PE is initialised in powernv, opal_pci_eeh_freeze_clear() is called. This is to remove any existing freeze, and has no negative side effects if the PE is already in an unfrozen state. On PHB backends that don't support this operation and retur

[PATCH] powerpc/pci: Always print PHB and PE numbers as hexadecimal

2016-11-15 Thread Russell Currey
PHB, PE (and by association MVE) numbers are printed as a mix of decimal and hexadecimal throughout the kernel. This can be misleading, so make them all hexadecimal. Standardising on hex instead of dec because: - PHB numbers are presented in hex in sysfs/debugfs (and lspci, etc) - PE numbers a

Re: [PATCH] cxl: Fix memory allocation failure test

2016-11-15 Thread Ian Munsie
Acked-by: Ian Munsie

Re: [PATCH] cxl: Fix error handling

2016-11-15 Thread Ian Munsie
Acked-by: Ian Munsie

Re: [PATCH] cxl: Fix error handling

2016-11-15 Thread Ian Munsie
Acked-by: Ian Munsie

Re: [PATCH] powerpc/powernv: Don't warn on PE init if unfreeze is unsupported

2016-11-15 Thread Gavin Shan
On Wed, Nov 16, 2016 at 12:12:26PM +1100, Russell Currey wrote: >Whenever a PE is initialised in powernv, opal_pci_eeh_freeze_clear() is >called. This is to remove any existing freeze, and has no negative side >effects if the PE is already in an unfrozen state. On PHB backends that >don't support

[PATCH] powerpc/powernv: Don't warn on PE init if unfreeze is unsupported

2016-11-15 Thread Russell Currey
Whenever a PE is initialised in powernv, opal_pci_eeh_freeze_clear() is called. This is to remove any existing freeze, and has no negative side effects if the PE is already in an unfrozen state. On PHB backends that don't support this operation and return OPAL_UNSUPPORTED, this creates a scary an

Re: [PATCH] powerpc/mm/coproc: Handle bad address on coproc slb fault

2016-11-15 Thread Ian Munsie
Reviewed-by: Ian Munsie

Re: [PATCH] powerpc/mm/coproc: Handle bad address on coproc slb fault

2016-11-15 Thread Balbir Singh
On 16/11/16 02:06, Aneesh Kumar K.V wrote: > VSID 0 is bad address. Don't create slb entries on coproc fault for > bad address > > Signed-off-by: Aneesh Kumar K.V > --- > NOTE: note tested ^^^ ? > > arch/powerpc/mm/copro_fault.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --g

Re: [v1 0/3] Support memory cgroup hotplug

2016-11-15 Thread Balbir Singh
On 16/11/16 02:42, Tejun Heo wrote: > Hello, Balbir. > > On Tue, Nov 15, 2016 at 10:44:02AM +1100, Balbir Singh wrote: >> In the absence of hotplug we use extra memory proportional to >> (possible_nodes - online_nodes) * number_of_cgroups. PPC64 has a patch >> to disable large consumption with l

[RESEND] [PATCH v1 3/3] powerpc: fix node_possible_map limitations

2016-11-15 Thread Balbir Singh
We've fixed the memory hotplug issue with memcg, hence this work around should not be required. Reverts: commit 3af229f2071f ("powerpc/numa: Reset node_possible_map to only node_online_map") Cc: Tejun Heo Cc: Andrew Morton Cc: Johannes Weiner Cc: Michal Hocko Cc: Vladimir Davydov Signed-off

[RESEND] [PATCH v1 2/3] Move from all possible nodes to online nodes

2016-11-15 Thread Balbir Singh
Move routines that do operations on all nodes to just the online nodes. Most of the changes are very obvious (like the ones related to soft limit tree per node) Cc: Tejun Heo Cc: Andrew Morton Cc: Johannes Weiner Cc: Michal Hocko Cc: Vladimir Davydov Signed-off-by: Balbir Singh --- mm/memc

[RESEND] [PATCH v1 1/3] Add basic infrastructure for memcg hotplug support

2016-11-15 Thread Balbir Singh
The lack of hotplug support makes us allocate all memory upfront for per node data structures. With large number of cgroups this can be an overhead. PPC64 actually limits n_possible nodes to n_online to avoid some of this overhead. This patch adds the basic notifiers to listen to hotplug events an

[RESEND][v1 0/3] Support memory cgroup hotplug

2016-11-15 Thread Balbir Singh
In the absence of hotplug we use extra memory proportional to (possible_nodes - online_nodes) * number_of_cgroups. PPC64 has a patch to disable large consumption with large number of cgroups. This patch adds hotplug support to memory cgroups and reverts the commit that limited possible nodes to onl

[PATCH 14/14] cxlflash: Migrate scsi command pointer to AFU command

2016-11-15 Thread Uma Krishnan
From: "Matthew R. Ochs" Currently, when sending a SCSI command, the pointer is stored in a reserved field of the AFU command descriptor for retrieval once the SCSI command has completed. In order to support new descriptor formats that make use of the reserved field, the pointer is migrated to out

[PATCH 13/14] cxlflash: Migrate IOARRIN specific routines to function pointers

2016-11-15 Thread Uma Krishnan
From: "Matthew R. Ochs" As staging for supporting hardware with a different queuing mechanism, move the send_cmd() and context_reset() routines to function pointers that are configured when the AFU is initialized. In addition, rename the existing routines to better reflect the queue model they su

[PATCH 12/14] cxlflash: Cleanup queuecommand()

2016-11-15 Thread Uma Krishnan
From: "Matthew R. Ochs" The queuecommand routine is disorganized where it populates the private command and also contains some logic/statements that are not needed given that cxlflash devices do not (and likely never will) support scatter-gather. Restructure the code to remove the unnecessary lo

[PATCH 11/14] cxlflash: Cleanup send_tmf()

2016-11-15 Thread Uma Krishnan
From: "Matthew R. Ochs" The send_tmf() routine includes some copy/paste cruft that can be removed as well as the setting of an AFU command-specific while holding the tmf_slock. While not a bug, it is out of place and should be shifted down alongside the other command initialization statements for

[PATCH 10/14] cxlflash: Remove AFU command lock

2016-11-15 Thread Uma Krishnan
From: "Matthew R. Ochs" The original design of the cxlflash driver required AFU commands to convey state information across multiple threads. The IOASA "host use" byte was used to track if a command was done, errored, or timed out. A per-command spin lock was used to serialize access to this byte

[PATCH 09/14] cxlflash: Wait for active AFU commands to timeout upon tear down

2016-11-15 Thread Uma Krishnan
From: "Matthew R. Ochs" With the removal of the static private command pool, the ability to 'complete' outstanding commands was lost. While not an issue for the commands originating outside the driver, internal AFU commands are synchronous and therefore have a timeout associated with them. To avo

[PATCH 08/14] cxlflash: Remove private command pool

2016-11-15 Thread Uma Krishnan
From: "Matthew R. Ochs" Clean up and remove the remaining private command pool infrastructure that is no longer required. Signed-off-by: Matthew R. Ochs --- drivers/scsi/cxlflash/common.h | 7 - drivers/scsi/cxlflash/main.c | 68 -- 2 files change

[PATCH 07/14] cxlflash: Use cmd_size for private commands

2016-11-15 Thread Uma Krishnan
From: "Matthew R. Ochs" Instead of using a private pool of AFU commands, use cmd_size to prime the private pool of SCSI commands such that they are allocated with a size large enough to contain an aligned AFU command. Use scsi_cmd_priv() to derive the aligned/zeroed private command on queuecomman

[PATCH 06/14] cxlflash: Allocate memory instead of using command pool for AFU sync

2016-11-15 Thread Uma Krishnan
From: "Matthew R. Ochs" As staging for the removal of the AFU command pool, remove the reliance upon the pool for the internal AFU sync command. Instead of obtaining an AFU command from the pool, dynamically allocate memory with the appropriate alignment requirements. Since the AFU sync service i

[PATCH 05/14] cxlflash: Remove unused buffer from AFU command

2016-11-15 Thread Uma Krishnan
From: "Matthew R. Ochs" The cxlflash driver originally required a per-command 4K buffer that hosted data passed to the AFU. When the routines that initiate AFU and internal SCSI commands were refactored to use scsi_execute(), the need for this buffer became obsolete. As it is no longer necessary,

[PATCH 04/14] cxlflash: Avoid command room violation

2016-11-15 Thread Uma Krishnan
During test, a command room violation interrupt is occasionally seen for the master context when the CXL flash devices are stressed. After studying the code, there could be gaps in the way command room value is being cached in cxlflash. When the cached command room is zero the thread attempting to

[PATCH 03/14] cxlflash: Improve context_reset() logic

2016-11-15 Thread Uma Krishnan
Currently, the context reset routine waits for command room to be available before sending the reset request. Per review of the SISLite specification and clarifications from the CXL Flash AFU designers, this wait is unnecessary. The reset request can be sent anytime regardless of command room, so l

[PATCH 02/14] cxlflash: Fix crash in cxlflash_restore_luntable()

2016-11-15 Thread Uma Krishnan
During test, the following crash was observed: [34538.981505] Faulting instruction address: 0xd7c9c870 cpu 0x9: Vector: 300 (Data Access) at [c007f1e8f590] pc: d7c9c870: cxlflash_restore_luntable+0x70/0x1d0 [cxlflash] lr: d7c9c84c: cxlflash_restore_luntable+0x4c

[PATCH 01/14] cxlflash: Set sg_tablesize to 1 instead of SG_NONE

2016-11-15 Thread Uma Krishnan
The following Oops is encountered when blk_mq is enabled with the cxlflash driver: [ 2960.817172] Oops: Kernel access of bad area, sig: 11 [#5] [ 2960.817309] NIP __blk_mq_run_hw_queue+0x278/0x4c0 [ 2960.817313] LR __blk_mq_run_hw_queue+0x2bc/0x4c0 [ 2960.817314] Call Trace: [ 2960.817320] __blk_

[PATCH 00/14] cxlflash: Fixes, enhancements, cleanup and staging

2016-11-15 Thread Uma Krishnan
The first four patches in this patch series include fixes for command room violation and lun table management. The remaining patches remove the reliance upon an internally maintained private command pool in favor of private commands being allocated alongside the SCSI commands. Several cleanup oppo

Re: [kernel-hardening] [PATCH] powerpc/kernel: Disable the latent entropy plugin unconditionally

2016-11-15 Thread Kees Cook
On Tue, Nov 15, 2016 at 2:45 PM, Andrew Donnellan wrote: > On 16/11/16 09:41, Kees Cook wrote: >> >> Just checking in: did these patches materialize? I'd love to see >> plugins working on v4.10 for ppc. > > > Working on it! > https://github.com/ajdlinux/linux/tree/powerpc-gcc-plugin-infrastructure

[PATCH v3] usb: dwc2: add amcc,dwc-otg support

2016-11-15 Thread John Youn
From: Christian Lamparter This patch adds support for the "amcc,usb-otg" device which is found in the PowerPC Canyonlands' dts. The device definition was added by: commit c89b3458d8cc ("powerpc/44x: Add USB DWC DTS entry to Canyonlands board") but without any driver support as the dwc2 driver

Re: [kernel-hardening] [PATCH] powerpc/kernel: Disable the latent entropy plugin unconditionally

2016-11-15 Thread Andrew Donnellan
On 16/11/16 09:41, Kees Cook wrote: Just checking in: did these patches materialize? I'd love to see plugins working on v4.10 for ppc. Working on it! https://github.com/ajdlinux/linux/tree/powerpc-gcc-plugin-infrastructure Just need to test with all the compilers to figure out which ones are

Re: [kernel-hardening] [PATCH] powerpc/kernel: Disable the latent entropy plugin unconditionally

2016-11-15 Thread Kees Cook
On Tue, Nov 1, 2016 at 10:06 PM, Andrew Donnellan wrote: > On 27/06/16 01:34, Emese Revfy wrote: >> >> >> Reported-by: PaX Team >> Signed-off-by: Emese Revfy >> --- >> arch/powerpc/kernel/Makefile | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/arch/powerpc/kernel/

Re: [PATCH v7] powerpc: Do not make the entire heap executable

2016-11-15 Thread Kees Cook
On Wed, Nov 9, 2016 at 9:06 AM, Denys Vlasenko wrote: > On 32-bit powerpc the ELF PLT sections of binaries (built with --bss-plt, > or with a toolchain which defaults to it) look like this: > > [17] .sbss NOBITS 0002aff8 01aff8 14 00 WA 0 0 > 4 > [18] .plt

[PATCH v2] usb: dwc2: add amcc,dwc-otg support

2016-11-15 Thread John Youn
From: Christian Lamparter This patch adds support for the "amcc,usb-otg" device which is found in the PowerPC Canyonlands' dts. The device definition was added by: commit c89b3458d8cc ("powerpc/44x: Add USB DWC DTS entry to Canyonlands board") but without any driver support as the dwc2 driver

Re: [PATCH v6 3/3] powerpc/pseries: Implement indexed-count hotplug memory remove

2016-11-15 Thread Nathan Fontenot
On 11/14/2016 06:58 PM, Michael Roth wrote: > Quoting Nathan Fontenot (2016-10-18 12:21:06) >> From: Sahil Mehta >> >> Indexed-count remove for memory hotplug guarantees that a contiguous block >> of lmbs beginning at a specified will be unassigned (NOT >> that lmbs will be removed). Because of

Re: [PATCH 1/2] usb: dwc2: add amcc,dwc-otg support

2016-11-15 Thread John Youn
On 11/14/2016 3:00 PM, John Youn wrote: > On 11/11/2016 3:12 PM, Christian Lamparter wrote: >> On Friday, November 11, 2016 2:20:42 PM CET John Youn wrote: >>> On 11/11/2016 2:05 PM, Christian Lamparter wrote: On Friday, November 11, 2016 1:22:16 PM CET John Youn wrote: > On 11/11/2016 12:

[PATCH 10/15] net: fs_enet: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c b/drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c index 44f50e168703..34

[PATCH 12/15] net: ethernet: ucc: Utilize phy_ethtool_nway_reset

2016-11-15 Thread Florian Fainelli
Signed-off-by: Florian Fainelli --- drivers/net/ethernet/freescale/ucc_geth_ethtool.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/net/ethernet/freescale/ucc_geth_ethtool.c b/drivers/net/ethernet/freescale/ucc_geth_ethtool.c index 812a968a78e9..8ba636f61b50

[RFC PATCH] powerpc: crypto/vmx: clean up generated files

2016-11-15 Thread Naveen N. Rao
..as stray .S files result in build errors, especially when using cross-compilers. More specifically, the generated .S files are endian-specific and will break subsequent builds targeting the other endian architecture. Signed-off-by: Naveen N. Rao --- drivers/crypto/vmx/Makefile | 2 +- 1 file

Re: [PATCH v2] Fix loading of module radeonfb on PowerMac

2016-11-15 Thread Lennart Sorensen
On Tue, Nov 15, 2016 at 01:46:10PM +0200, Tomi Valkeinen wrote: > Hi, > > On 14/11/16 21:59, Mathieu Malaterre wrote: > > When the linux kernel is build with (typical kernel ship with Debian > > installer): > > > > CONFIG_FB_OF=y > > CONFIG_VT_HW_CONSOLE_BINDING=y > > CONFIG_FB_RADEON=m > > > >

Re: [Patch v7 3/7] irqchip: xilinx: restructure and use jump label api

2016-11-15 Thread Zubair Lutfullah Kakakhel
Hi, On 11/15/2016 12:49 PM, Michal Simek wrote: On 14.11.2016 13:13, Zubair Lutfullah Kakakhel wrote: Add a global structure to house various variables. And cleanup read/write handling by using jump label api. Signed-off-by: Zubair Lutfullah Kakakhel ... @@ -138,59 +136,75 @@ static cons

Re: [PATCH v7 2/5] mm: remove x86-only restriction of movable_node

2016-11-15 Thread Reza Arbab
On Tue, Nov 15, 2016 at 12:35:42PM +0530, Aneesh Kumar K.V wrote: Considering that we now can mark memblock hotpluggable, do we need to enable the bottom up allocation for ppc64 also ? No, we don't, because early_init_dt_scan_memory() marks the memblocks hotpluggable immediately when they are

Re: [PATCH v7 06/11] x86, paravirt: Add interface to support kvm/xen vcpu preempted check

2016-11-15 Thread Peter Zijlstra
On Wed, Nov 02, 2016 at 05:08:33AM -0400, Pan Xinhui wrote: > diff --git a/arch/x86/include/asm/paravirt_types.h > b/arch/x86/include/asm/paravirt_types.h > index 0f400c0..38c3bb7 100644 > --- a/arch/x86/include/asm/paravirt_types.h > +++ b/arch/x86/include/asm/paravirt_types.h > @@ -310,6 +310,8

Re: [v1 0/3] Support memory cgroup hotplug

2016-11-15 Thread Tejun Heo
Hello, Balbir. On Tue, Nov 15, 2016 at 10:44:02AM +1100, Balbir Singh wrote: > In the absence of hotplug we use extra memory proportional to > (possible_nodes - online_nodes) * number_of_cgroups. PPC64 has a patch > to disable large consumption with large number of cgroups. This patch > adds hotpl

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-15 Thread Johannes Thumshirn
On Tue, Nov 15, 2016 at 03:31:27PM +0100, Steffen Maier wrote: > Hi Johannes, > > On 11/15/2016 12:56 PM, Johannes Thumshirn wrote: > > On Tue, Oct 25, 2016 at 09:43:14AM +0200, Johannes Thumshirn wrote: > > > On Fri, Oct 14, 2016 at 09:38:21AM +0200, Johannes Thumshirn wrote: > > > > On Thu, Oct

[PATCH] powerpc/mm/coproc: Handle bad address on coproc slb fault

2016-11-15 Thread Aneesh Kumar K.V
VSID 0 is bad address. Don't create slb entries on coproc fault for bad address Signed-off-by: Aneesh Kumar K.V --- NOTE: note tested arch/powerpc/mm/copro_fault.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/mm/copro_fault.c b/arch/powerpc/mm/copro_fault.c index 362954f9

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-15 Thread Johannes Thumshirn
On Tue, Nov 15, 2016 at 03:31:27PM +0100, Steffen Maier wrote: > Hi Johannes, > > On 11/15/2016 12:56 PM, Johannes Thumshirn wrote: > > On Tue, Oct 25, 2016 at 09:43:14AM +0200, Johannes Thumshirn wrote: > > > On Fri, Oct 14, 2016 at 09:38:21AM +0200, Johannes Thumshirn wrote: > > > > On Thu, Oct

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-15 Thread Steffen Maier
Hi Johannes, On 11/15/2016 12:56 PM, Johannes Thumshirn wrote: On Tue, Oct 25, 2016 at 09:43:14AM +0200, Johannes Thumshirn wrote: On Fri, Oct 14, 2016 at 09:38:21AM +0200, Johannes Thumshirn wrote: On Thu, Oct 13, 2016 at 05:55:11PM +0200, Steffen Maier wrote: Hm, still behaves for me like I

Re: [GIT PULL v2 1/5] processor.h: introduce cpu_relax_yield

2016-11-15 Thread Christian Borntraeger
On 11/15/2016 02:37 PM, Russell King - ARM Linux wrote: > On Tue, Nov 15, 2016 at 02:19:53PM +0100, Christian Borntraeger wrote: >> On 11/15/2016 01:30 PM, Russell King - ARM Linux wrote: >>> On Tue, Oct 25, 2016 at 11:03:11AM +0200, Christian Borntraeger wrote: For spinning loops people do of

Re: [GIT PULL v2 1/5] processor.h: introduce cpu_relax_yield

2016-11-15 Thread Russell King - ARM Linux
On Tue, Nov 15, 2016 at 02:19:53PM +0100, Christian Borntraeger wrote: > On 11/15/2016 01:30 PM, Russell King - ARM Linux wrote: > > On Tue, Oct 25, 2016 at 11:03:11AM +0200, Christian Borntraeger wrote: > >> For spinning loops people do often use barrier() or cpu_relax(). > >> For most architectur

Re: [GIT PULL v2 1/5] processor.h: introduce cpu_relax_yield

2016-11-15 Thread Christian Borntraeger
On 11/15/2016 01:30 PM, Russell King - ARM Linux wrote: > On Tue, Oct 25, 2016 at 11:03:11AM +0200, Christian Borntraeger wrote: >> For spinning loops people do often use barrier() or cpu_relax(). >> For most architectures cpu_relax and barrier are the same, but on >> some architectures cpu_relax c

Re: [Patch v7 3/7] irqchip: xilinx: restructure and use jump label api

2016-11-15 Thread Michal Simek
On 14.11.2016 13:13, Zubair Lutfullah Kakakhel wrote: > Add a global structure to house various variables. > And cleanup read/write handling by using jump label api. > > Signed-off-by: Zubair Lutfullah Kakakhel > > --- > V6 -> V7 > Restructure and use jump label api > Better commit log > > V5 -

Re: [GIT PULL v2 1/5] processor.h: introduce cpu_relax_yield

2016-11-15 Thread Russell King - ARM Linux
On Tue, Oct 25, 2016 at 11:03:11AM +0200, Christian Borntraeger wrote: > For spinning loops people do often use barrier() or cpu_relax(). > For most architectures cpu_relax and barrier are the same, but on > some architectures cpu_relax can add some latency. > For example on power,sparc64 and arc,

Re: [Patch v7 7/7] powerpc/virtex: Use generic xilinx irqchip driver

2016-11-15 Thread Michal Simek
On 14.11.2016 13:13, Zubair Lutfullah Kakakhel wrote: > The Xilinx interrupt controller driver is now available in drivers/irqchip. > Switch to using that driver. > > Signed-off-by: Zubair Lutfullah Kakakhel > Acked-by: Michael Ellerman (powerpc) > > --- > V6 - V7 > Rebase to v4.9-rc5 > > V5 -

Re: [Patch v7 6/7] irqchip: xilinx: Try to fall back if xlnx,kind-of-intr not provided

2016-11-15 Thread Michal Simek
On 14.11.2016 13:13, Zubair Lutfullah Kakakhel wrote: > The powerpc dts file does not have the xlnx,kind-of-intr property. > Instead of erroring out, give a warning instead. And attempt to > continue to probe the interrupt controller while assuming > kind-of-intr is 0x0 as a fall back. > > Signed-

Re: [Patch v7 4/7] irqchip: xilinx: Rename get_irq to xintc_get_irq

2016-11-15 Thread Michal Simek
On 14.11.2016 13:13, Zubair Lutfullah Kakakhel wrote: > Now that the driver is generic and used by multiple archs, > get_irq is too generic. > > Rename get_irq to xintc_get_irq to avoid any conflicts > > Signed-off-by: Zubair Lutfullah Kakakhel > > --- > V6 -> V7 > Rebase to v4.9-rc5 > > V5 ->

Re: [Patch v7 2/7] irqchip: xilinx: clean up print messages

2016-11-15 Thread Michal Simek
On 14.11.2016 13:13, Zubair Lutfullah Kakakhel wrote: > Remove __func__ and prefix irq-xilinx in various debug prints > > Signed-off-by: Zubair Lutfullah Kakakhel > > --- > V6 -> V7 > New patch > This diff was squashed into another patch. Split it up for cleanliness > --- > drivers/irqchip/irq-

Re: [Patch v7 1/7] microblaze: irqchip: Move intc driver to irqchip

2016-11-15 Thread Michal Simek
On 14.11.2016 13:13, Zubair Lutfullah Kakakhel wrote: > The Xilinx AXI Interrupt Controller IP block is used by the MIPS > based xilfpga platform and a few PowerPC based platforms. > > Move the interrupt controller code out of arch/microblaze so that > it can be used by everyone > > Signed-off-by

Re: [PATCH v3 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-11-15 Thread Johannes Thumshirn
On Tue, Oct 25, 2016 at 09:43:14AM +0200, Johannes Thumshirn wrote: > On Fri, Oct 14, 2016 at 09:38:21AM +0200, Johannes Thumshirn wrote: > > On Thu, Oct 13, 2016 at 05:55:11PM +0200, Steffen Maier wrote: > > > Hm, still behaves for me like I reported for v2: > > > http://marc.info/?l=linux-scsi&m=

Re: [PATCH v2] Fix loading of module radeonfb on PowerMac

2016-11-15 Thread Tomi Valkeinen
Hi, On 14/11/16 21:59, Mathieu Malaterre wrote: > When the linux kernel is build with (typical kernel ship with Debian > installer): > > CONFIG_FB_OF=y > CONFIG_VT_HW_CONSOLE_BINDING=y > CONFIG_FB_RADEON=m > > The offb driver takes precedence over module radeonfb. It is then > impossible to load

Re: [Patch V6 2/6] irqchip: xilinx: Clean up irqdomain argument and read/write

2016-11-15 Thread Michal Simek
On 9.11.2016 16:53, Marc Zyngier wrote: > On 01/11/16 11:05, Zubair Lutfullah Kakakhel wrote: >> Hi, >> >> Thanks for the review. >> >> On 10/31/2016 07:51 PM, Thomas Gleixner wrote: >>> On Mon, 31 Oct 2016, Zubair Lutfullah Kakakhel wrote: The drivers read/write function handling is a bit qui

[PATCH] powerpc/64: Define ILLEGAL_POINTER_VALUE for 64-bit

2016-11-15 Thread Michael Ellerman
This is used in poison.h to offset poison values so that they don't point directly into user space. The value we choose sits roughly between user and kernel space, which means on their own the poison values don't point anywhere useful. If an attacker can cause an access at some offset from the poi

Re: [GIT PULL v2 0/5] cpu_relax: drop lowlatency, introduce yield

2016-11-15 Thread Christian Borntraeger
On 10/25/2016 11:03 AM, Christian Borntraeger wrote: > Peter, > > here is v2 with some improved patch descriptions and some fixes. The > previous version has survived one day of linux-next and I only changed > small parts. > So unless there is some other issue, feel free to pull (or to apply > the

Re: [PATCH v3 11/11] powerpc: rewrite local_t using soft_irq

2016-11-15 Thread Benjamin Herrenschmidt
On Tue, 2016-11-15 at 09:06 +0100, Gabriel Paubert wrote: > > I'm really wondering whether this is the kind of thing that would > benefit from transactions. But transactional memory was only implemented > on Power7 and later IIRC, and we still need to support machines without > transactional memor

Re: [RFC] fs: add userspace critical mounts event support

2016-11-15 Thread Johannes Berg
On Tue, 2016-11-08 at 23:47 +0100, Luis R. Rodriguez wrote: > This issue still stands. At Plumbers Johannes Berg did indicate to me > he had a simple elegant solution in mind. He suggested that since the > usermode helper was available, he had added support to be able to > differentiate async firm

Re: [PATCH v3 11/11] powerpc: rewrite local_t using soft_irq

2016-11-15 Thread Gabriel Paubert
Hi, On Mon, Nov 14, 2016 at 11:34:52PM +0530, Madhavan Srinivasan wrote: > Local atomic operations are fast and highly reentrant per CPU counters. > Used for percpu variable updates. Local atomic operations only guarantee > variable modification atomicity wrt the CPU which owns the data an

[PATCH net-next v8 9/9] arch/powerpc: Enable dpaa_eth

2016-11-15 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/configs/dpaa.config | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/dpaa.config b/arch/powerpc/configs/dpaa.config index 9ad9bc0..2fe76f5 100644 --- a/arch/powerpc/configs/dpaa.config +++ b/arch/powerpc/configs/dpaa.config @@

[PATCH net-next v8 8/9] arch/powerpc: Enable FSL_FMAN

2016-11-15 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/configs/dpaa.config | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/dpaa.config b/arch/powerpc/configs/dpaa.config index f124ee1..9ad9bc0 100644 --- a/arch/powerpc/configs/dpaa.config +++ b/arch/powerpc/configs/dpaa.config @@

[PATCH net-next v8 6/9] dpaa_eth: add trace points

2016-11-15 Thread Madalin Bucur
Add trace points on the hot processing path. Signed-off-by: Ruxandra Ioana Radulescu --- drivers/net/ethernet/freescale/dpaa/Makefile | 1 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 15 +++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 1 + .../net/ethernet/freescal

[PATCH net-next v8 7/9] arch/powerpc: Enable FSL_PAMU

2016-11-15 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/configs/dpaa.config | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/dpaa.config b/arch/powerpc/configs/dpaa.config index efa99c0..f124ee1 100644 --- a/arch/powerpc/configs/dpaa.config +++ b/arch/powerpc/configs/dpaa.config @@

[PATCH net-next v8 5/9] dpaa_eth: add sysfs exports

2016-11-15 Thread Madalin Bucur
Export Frame Queue and Buffer Pool IDs through sysfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 4 + .../net/ethernet/freescale/d

[PATCH net-next v8 4/9] dpaa_eth: add ethtool statistics

2016-11-15 Thread Madalin Bucur
Add a series of counters to be exported through ethtool: - add detailed counters for reception errors; - add detailed counters for QMan enqueue reject events; - count the number of fragmented skbs received from the stack; - count all frames received on the Tx confirmation path; - add congestion gro

[PATCH net-next v8 2/9] dpaa_eth: add support for DPAA Ethernet

2016-11-15 Thread Madalin Bucur
This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, BMan, PAMU and FMan drivers to deliver Ethernet connectivity on the Freescale DPAA QorIQ platforms. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/

[PATCH net-next v8 3/9] dpaa_eth: add ethtool functionality

2016-11-15 Thread Madalin Bucur
Add support for basic ethtool operations. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 3 + drivers/net/ethernet/freescale/dpaa/dpaa

[PATCH net-next v8 1/9] devres: add devm_alloc_percpu()

2016-11-15 Thread Madalin Bucur
Introduce managed counterparts for alloc_percpu() and free_percpu(). Add devm_alloc_percpu() and devm_free_percpu() into the managed interfaces list. Signed-off-by: Madalin Bucur --- Documentation/driver-model/devres.txt | 4 +++ drivers/base/devres.c | 66 ++

[PATCH net-next v8 0/9] dpaa_eth: Add the QorIQ DPAA Ethernet driver

2016-11-15 Thread Madalin Bucur
This patch series adds the Ethernet driver for the Freescale QorIQ Data Path Acceleration Architecture (DPAA). This version includes changes following the feedback received on previous versions from Eric Dumazet, Bob Cochran, Joe Perches, Paul Bolle, Joakim Tjernlund, Scott Wood, David Miller - th

[PATCH] powerpc/85xx/qemu: Enable CONFIG_E500 and CONFIG_PPC_E500MC

2016-11-15 Thread David Engraf
The QEMU e500 board needs to enable CONFIG_E500 to correctly boot. QEMU for ppc64 uses e5500/e6500 emulation, thus CONFIG_PPC_E500MC is required as well. Signed-off-by: David Engraf --- arch/powerpc/platforms/85xx/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/platfor

Re: [PATCH V4 1/2] powerpc: Define new ISA v3.00 logical PVR value and PCR register value

2016-11-15 Thread Paul Mackerras
On Mon, Nov 14, 2016 at 11:35:07AM +1100, Suraj Jitindar Singh wrote: > ISA 3.00 adds the logical PVR value 0x0f05, so add a definition for > this. > > Define PCR_ARCH_207 to reflect ISA 2.07 compatibility mode in the processor > compatibility register (PCR). > > The next patch changes the al

Re: [PATCH V4 2/2] powerpc/kvm: Update kvmppc_set_arch_compat() for ISA v3.00

2016-11-15 Thread Paul Mackerras
On Mon, Nov 14, 2016 at 11:35:08AM +1100, Suraj Jitindar Singh wrote: > The function kvmppc_set_arch_compat() is used to determine the value of the > processor compatibility register (PCR) for a guest running in a given > compatibility mode. There is currently no support for v3.00 of the ISA. > >