more POLL... fun

2015-12-03 Thread Al Viro
On cross-builds the __poll_t annotations had caught something interesting: void spufs_mfc_callback(struct spu *spu) { mask = 0; if (free_elements & 0x) mask |= POLLOUT; if (tagstatus & ctx->tagwait)

Re: [PATCH v19 00/19] perf, tools: Add support for PMU events in JSON format

2015-12-03 Thread Andi Kleen
On Mon, Nov 30, 2015 at 06:56:55PM -0800, Sukadev Bhattiprolu wrote: > CPUs support a large number of performance monitoring events (PMU events) > and often these events are very specific to an architecture/model of the > CPU. To use most of these PMU events with perf, we currently have to identify

Re: [PATCH] Revert "powerpc/eeh: Don't unfreeze PHB PE after reset"

2015-12-03 Thread Daniel Axtens
Hi Andrew and Gavin, To flesh out Andrew's commit message, and add some surrounding detail to help in debugging: Before 527d10ef3a315, all PEs were unfrozen when we called eeh_reset_device(). That patch changed behaviour to skip the PE associated with or reserved for the PHB. Indeed, this shouldn

Re: [v9, 3/6] fsl/fman: Add FMan MAC support

2015-12-03 Thread David Miller
From: Date: Thu, 3 Dec 2015 09:19:14 +0200 > +static u32 crc_table[256] = { No way. We have every conceivable implementation of CRC calculations in the kernel already. Use them. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://list

Re: [net-next v4 4/8] dpaa_eth: add driver's Tx queue selection

2015-12-03 Thread Scott Wood
On Thu, 2015-12-03 at 04:02 -0600, Bucur Madalin-Cristian-B32716 wrote: > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Wednesday, December 02, 2015 11:41 PM > > > > On Mon, 2015-11-02 at 19:31 +0200, Madalin Bucur wrote: > > > Allow the selection of the transmission queue bas

Re: [PATCH v3 1/6] powerpc/mm: any thread in one core can be the first to setup TLB1

2015-12-03 Thread Scott Wood
On Wed, 2015-12-02 at 15:12 +0300, Denis Kirjanov wrote: > On 11/20/15, Chenhui Zhao wrote: > > On e6500, in the case of cpu hotplug, either thread in one core > > may be the first thread initilzing the TLB1. The subsequent threads > > must not setup it again. > > > > The code is derived from the

Re: [PATCH V6 20/35] powerpc/mm: Don't track subpage valid bit in pte_t

2015-12-03 Thread Aneesh Kumar K.V
Anshuman Khandual writes: > On 12/01/2015 09:06 AM, Aneesh Kumar K.V wrote: >> This free up 11 bits in pte_t. In the later patch we also change >> the pte_t format so that we can start supporting migration pte >> at pmd level. We now track 4k subpage valid bit as below >> >> If we have _PAGE_COM

Re: [PATCH v4 8/9] Implement kernel live patching for ppc64le (ABIv2)

2015-12-03 Thread Petr Mladek
On Wed 2015-11-25 17:48:36, Torsten Duwe wrote: > * create the appropriate files+functions > arch/powerpc/include/asm/livepatch.h > klp_check_compiler_support, > klp_arch_set_pc > arch/powerpc/kernel/livepatch.c with a stub for > klp_write_module_reloc > This i

Re: [PATCH v4 4/9] ppc64 ftrace_with_regs configuration variables

2015-12-03 Thread Petr Mladek
On Wed 2015-11-25 17:37:33, Torsten Duwe wrote: > * Makefile: > - globally use -mprofile-kernel in case it's configured. > * arch/powerpc/Kconfig / kernel/trace/Kconfig: > - declare that ppc64le HAVE_MPROFILE_KERNEL and > HAVE_DYNAMIC_FTRACE_WITH_REGS, and use it. > > --- a/arch/

Re: [PATCH v4 0/9] ftrace with regs + live patching for ppc64 LE (ABI v2)

2015-12-03 Thread Petr Mladek
On Wed 2015-11-25 17:53:17, Torsten Duwe wrote: > Torsten Duwe (9): > ppc64 (le): prepare for -mprofile-kernel > ppc64le FTRACE_WITH_REGS implementation > ppc use ftrace_modify_all_code default > ppc64 ftrace_with_regs configuration variables > ppc64 ftrace_with_regs: spare early boot and

[net-next v5 0/8] dpaa_eth: Add the Freescale DPAA Ethernet driver

2015-12-03 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

[net-next v5 8/8] dpaa_eth: add trace points

2015-12-03 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 | 12 ++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 4 + .../net/ethernet/freescale

[net-next v5 7/8] dpaa_eth: add sysfs exports

2015-12-03 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 | 2 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 3 + .../net/ethernet/freescale/d

[net-next v5 6/8] dpaa_eth: add ethtool statistics

2015-12-03 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

[net-next v5 2/8] dpaa_eth: add support for DPAA Ethernet

2015-12-03 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/

[net-next v5 3/8] dpaa_eth: add support for S/G frames

2015-12-03 Thread Madalin Bucur
Add support for Scatter/Gather (S/G) frames. The FMan can place the frame content into multiple buffers and provide a S/G Table (SGT) into one first buffer with references to the others. Signed-off-by: Madalin Bucur --- .../net/ethernet/freescale/dpaa/dpaa_eth_common.c | 54 +++- .../net/ether

[net-next v5 5/8] dpaa_eth: add ethtool functionality

2015-12-03 Thread Madalin Bucur
Add support for basic ethtool operations. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- .../net/ethernet/freescale/dpaa/dpaa_eth_common.c | 2 + .../net/ethernet/freescale/dpaa/dpaa_eth_common.h | 3 + drivers/net/ethernet/freescale/dpaa/dpaa

[net-next v5 4/8] dpaa_eth: add driver's Tx queue selection

2015-12-03 Thread Madalin Bucur
Allow the selection of the transmission queue based on the CPU id. The DPAA Ethernet driver defines a ndo_select_queue() callback for optimal selection of the egress FQ. That will override the XPS support for this netdevice and should provide a certain increase in performance. Standard XPS support

[net-next v5 1/8] devres: add devm_alloc_percpu()

2015-12-03 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 Tested-by: Madalin-Cristian Bucur --- Documentation/driver-model/devres.txt | 4 +++ drivers/base/devres.c

[P.A. Semi] Does the ethernet interface work on your Electra, Chitra, Nemo, and Athena board?

2015-12-03 Thread Christian Zigotzky
Hi Michael, I checked out the Linux git till the commit 'powerpc-4.3-1' git checkout ff474e8ca8547d09cb82ebab56d4c96f9eea01ce Output: Checking out files: 100% (13843/13843), done. Note: checking out 'ff474e8ca8547d09cb82ebab56d4c96f9eea01ce'. You are in 'detached HEAD' state. You can look aro

Re: [PATCH v3 1/6] powerpc/mm: any thread in one core can be the first to setup TLB1

2015-12-03 Thread Chenhui Zhao
On Wed, Dec 2, 2015 at 8:12 PM, Denis Kirjanov wrote: On 11/20/15, Chenhui Zhao wrote: On e6500, in the case of cpu hotplug, either thread in one core may be the first thread initilzing the TLB1. The subsequent threads must not setup it again. The code is derived from the comment of Sc

[PATCH] powerpc/vdso: Remove sys_ni_syscall and sys_call_table prototypes

2015-12-03 Thread Anton Blanchard
Prototypes for sys_ni_syscall and sys_call_table are available in header files, so remove the prototypes in c code. This was noticed when building with -flto, because the prototype for sys_ni_syscall doesn't match the function and we get a compiler error. Signed-off-by: Anton Blanchard --- diff

[v9, 5/6] fsl/fman: Add FMan Port Support

2015-12-03 Thread igal.liberman
From: Igal Liberman Add the Data Path Acceleration Architecture Frame Manger Port Driver. The FMan driver uses a module called "Port" to represent the physical TX and RX ports. Each FMan version has different number of physical ports. This patch adds The FMan Port configuration, initialization an

[v9, 0/6] Freescale DPAA FMan

2015-12-03 Thread igal.liberman
From: Igal Liberman The Freescale Data Path Acceleration Architecture (DPAA) is a set of hardware components on specific QorIQ multicore processors. This architecture provides the infrastructure to support simplified sharing of networking interfaces and accelerators by multiple CPU cores and the

[v9, 6/6] fsl/fman: Add FMan MAC driver

2015-12-03 Thread igal.liberman
From: Igal Liberman This patch adds the Ethernet MAC driver supporting the three different types of MACs: dTSEC, tGEC and mEMAC. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Makefile |3 +- drivers/net/ethernet/freescale/fman/mac.c| 988

[v9, 4/6] fsl/fman: Add FMan SP support

2015-12-03 Thread igal.liberman
From: Igal Liberman The Storage Profiles contain parameters that are used by the FMan for frame reception and transmission. Signed-off-by: Igal Liberman --- drivers/net/ethernet/freescale/fman/Makefile |2 +- drivers/net/ethernet/freescale/fman/fman_sp.c | 167 +

[v9, 2/6] fsl/fman: Add FMan support

2015-12-03 Thread igal.liberman
From: Igal Liberman Add the Data Path Acceleration Architecture Frame Manger Driver. The FMan embeds a series of hardware blocks that implement a group of Ethernet interfaces. This patch adds The FMan configuration, initialization and runtime control routines. The FMan driver supports several ha

[v9, 1/6] fsl/fman: Add FMan MURAM support

2015-12-03 Thread igal.liberman
From: Igal Liberman Add Frame Manager Multi-User RAM support. This internal FMan memory block is used by the FMan hardware modules, the management being made through the generic allocator. The FMan Internal memory, for example, is used for allocating transmit and receive FIFOs. Signed-off-by: I

[PATCH v5] powerpc/mm: Add page soft dirty tracking

2015-12-03 Thread Laurent Dufour
User space checkpoint and restart tool (CRIU) needs the page's change to be soft tracked. This allows to do a pre checkpoint and then dump only touched pages. This is done by using a newly assigned PTE bit (_PAGE_SOFT_DIRTY) when the page is backed in memory, and a new _PAGE_SWP_SOFT_DIRTY bit whe

RE: [net-next v4 4/8] dpaa_eth: add driver's Tx queue selection

2015-12-03 Thread Madalin-Cristian Bucur
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, December 02, 2015 11:41 PM > > On Mon, 2015-11-02 at 19:31 +0200, Madalin Bucur wrote: > > Allow the selection of the transmission queue based on the CPU id. > > Explain why. I'll add more details in the commit log. This i

Re: [PATCH 3/4] powerpc/powernv: remove FW_FEATURE_OPAL and just use FW_FEATURE_OPALv3

2015-12-03 Thread Michael Ellerman
On 3 December 2015 4:36:03 pm ACDT, Stewart Smith wrote: >Michael Ellerman writes: > >> On Fri, 2015-11-27 at 15:45 +1100, Stewart Smith wrote: >> >>> Long ago, only in the lab, there was OPALv1 and OPALv2. Now there is >>> just OPALv3, with nobody ever expecting anything on pre-OPALv3 to >>>