Re: [PATCH v8 3/3] leds/powernv: Add driver for PowerNV platform

2015-07-27 Thread Jacek Anaszewski
Vasant, I've found one more formatting issue below. On 27.07.2015 05:41, Vasant Hegde wrote: [...] + +/* + * This function registers classdev structure for any given type of LED on + * a given child LED device node. + */ +static int powernv_led_create(struct device *dev, + stru

Re: [RFC PATCH] powerpc/kexec: Wait 1s for secondaries to enter OPAL

2015-07-27 Thread Samuel Mendoza-Jonas
On 27/07/15 15:56, Stewart Smith wrote: > Samuel Mendoza-Jonas writes: >> Always include a timeout when waiting for secondary cpus to enter OPAL >> in the kexec path, rather than only when crashing. > > This *sounds* reasonable... but I wonder what actual worse case could > be and why we'd get st

Re: eeh-powernv.c: Unbalanced IRQ warning

2015-07-27 Thread Alistair Popple
On Tue, 28 Jul 2015 11:56:31 Daniel Axtens wrote: > Hi Alistair and Gavin, > > The patch from Alistair fixes my issue. Thanks heaps! > > Alistair, are you right to post that formally? Yep. I'll post it tomorrow morning. > Regards, > Daniel > > On Tue, 2015-07-28 at 11:28 +1000, Gavin Shan wrot

RE: [RFC v2] genalloc:add an gen_pool_first_fit_align algo to genalloc

2015-07-27 Thread Zhao Qiang
On Tue, 2015-07-28 at 5:21, Scott Wood wrote: > -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, July 28, 2015 5:21 AM > To: Zhao Qiang-B45475 > Cc: lau...@codeaurora.org; linux-ker...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; a...@linux-foundation.org; o...@lixom.net

[PATCH v2 10/10] cxl: Add CONFIG_CXL_EEH symbol

2015-07-27 Thread Daniel Axtens
CONFIG_CXL_EEH is for CXL's EEH related code. As well as the EEH callbacks, it should guard sysfs and kernel API changes that are only required for CXL EEH. We now have all the pieces in place, so add it now. Signed-off-by: Daniel Axtens --- drivers/misc/cxl/Kconfig | 6 ++ 1 file changed,

[PATCH v2 09/10] cxl: EEH support

2015-07-27 Thread Daniel Axtens
EEH (Enhanced Error Handling) allows a driver to recover from the temporary failure of an attached PCI card. Enable basic CXL support for EEH. Signed-off-by: Daniel Axtens --- drivers/misc/cxl/cxl.h | 1 + drivers/misc/cxl/pci.c | 253 drivers

[PATCH v2 08/10] cxl: Allow the kernel to trust that an image won't change on PERST.

2015-07-27 Thread Daniel Axtens
Provide a kernel API and a sysfs entry which allow a user to specify that when a card is PERSTed, it's image will stay the same, allowing it to participate in EEH. cxl_reset is used to reflash the card. In that case, we cannot safely assert that the image will not change. Therefore, disallow cxl_r

[PATCH v2 07/10] cxl: Don't remove AFUs/vPHBs in cxl_reset

2015-07-27 Thread Daniel Axtens
If the driver doesn't participate in EEH, the AFUs will be removed by cxl_remove, which will be invoked by EEH. If the driver does particpate in EEH, the vPHB needs to stick around so that the it can particpate. In both cases, we shouldn't remove the AFU/vPHB. Signed-off-by: Daniel Axtens ---

[PATCH v2 06/10] cxl: Refactor AFU init/teardown

2015-07-27 Thread Daniel Axtens
As with an adapter, some aspects of initialisation are done only once in the lifetime of an AFU: for example, allocating memory, or setting up sysfs/debugfs files. However, we may want to be able to do some parts of the initialisation multiple times: for example, in error recovery we want to be ab

[PATCH v2 05/10] cxl: Refactor adaptor init/teardown

2015-07-27 Thread Daniel Axtens
Some aspects of initialisation are done only once in the lifetime of an adapter: for example, allocating memory for the adapter, allocating the adapter number, or setting up sysfs/debugfs files. However, we may want to be able to do some parts of the initialisation multiple times: for example, in

[PATCH v2 04/10] cxl: Clean up adapter MMIO unmap path.

2015-07-27 Thread Daniel Axtens
- MMIO pointer unmapping is guarded by a null pointer check. However, iounmap doesn't null the pointer, just invalidate it. Therefore, explicitly null the pointer after unmapping. - afu_desc_mmio also needs to be unmapped. - PCI regions are allocated in cxl_map_adapter_regs. Therefore

[PATCH v2 03/10] cxl: Make IRQ release idempotent

2015-07-27 Thread Daniel Axtens
Check if an IRQ is mapped before releasing it. This will simplify future EEH code by allowing unconditional unmapping of IRQs. Signed-off-by: Daniel Axtens --- drivers/misc/cxl/irq.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/misc/cxl/irq.c b/drivers/misc/cxl/irq.c ind

[PATCH v2 02/10] cxl: Allocate and release the SPA with the AFU

2015-07-27 Thread Daniel Axtens
Previously the SPA was allocated and freed upon entering and leaving AFU-directed mode. This causes some issues for error recovery - contexts hold a pointer inside the SPA, and they may persist after the AFU has been detached. We would ideally like to allocate the SPA when the AFU is allocated, an

[PATCH v2 01/10] cxl: Drop commands if the PCI channel is not in normal state

2015-07-27 Thread Daniel Axtens
If the PCI channel has gone down, don't attempt to poke the hardware. We need to guard every time cxl_whatever_(read|write) is called. This is because a call to those functions will dereference an offset into an mmio register, and the mmio mappings get invalidated in the EEH teardown. Check in th

[PATCH v2 00/10] CXL EEH Handling

2015-07-27 Thread Daniel Axtens
CXL accelerators are unfortunately not immune from failure. This patch set enables them to particpate in the Extended Error Handling process. This series starts with a number of preparatory patches: - Patch 1 makes sure we don't touch the hardware when it has failed. - Patches 2-4 make the 'u

Re: [3/5] powerpc/perf: Replace last usage of get_cpu_var with this_cpu_ptr

2015-07-27 Thread Anshuman Khandual
On 07/27/2015 10:45 AM, Michael Ellerman wrote: > On Tue, 2015-30-06 at 08:20:29 UTC, Anshuman Khandual wrote: >> > The commit 69111bac42f5ce ("powerpc: Replace __get_cpu_var uses") >> > replaced all usage of get_cpu_var with this_cpu_ptr inside core >> > perf event handling on powerpc. But it skip

Re: [1/5] powerpc/perf: Drop the branch sample when 'from' cannot be fetched

2015-07-27 Thread Anshuman Khandual
On 07/27/2015 09:49 AM, Michael Ellerman wrote: > On Tue, 2015-30-06 at 08:20:27 UTC, Anshuman Khandual wrote: >> BHRB (Branch History Rolling Buffer) is a rolling buffer. Hence we >> might end up in a situation where we have read one target address >> but when we try to read the next entry indicat

Re: eeh-powernv.c: Unbalanced IRQ warning

2015-07-27 Thread Daniel Axtens
Hi Alistair and Gavin, The patch from Alistair fixes my issue. Thanks heaps! Alistair, are you right to post that formally? Regards, Daniel On Tue, 2015-07-28 at 11:28 +1000, Gavin Shan wrote: > On Tue, Jul 28, 2015 at 11:14:51AM +1000, Alistair Popple wrote: > >Hi Daniel, > > > >I see the prob

Re: Re: using srio in linux2.6.34.6 causes kernel panic

2015-07-27 Thread liulijun
Okay,Thanks for your help. liulijun From: Scott Wood Date: 2015-07-28 05:56 To: liulijun CC: linuxppc-dev Subject: Re: using srio in linux2.6.34.6 causes kernel panic On Mon, 2015-07-27 at 14:26 +0800, liulijun wrote: > I've been struggling with a kernel panic during enumeration of a Rapid IO

Re: eeh-powernv.c: Unbalanced IRQ warning

2015-07-27 Thread Gavin Shan
On Tue, Jul 28, 2015 at 11:14:51AM +1000, Alistair Popple wrote: >Hi Daniel, > >I see the problem - pnv_eeh_next_error() re-enables the interrupt but it gets >called from a loop if there are more outstanding events to process. The most >obvious solution would be to do this check before enabling i

Re: eeh-powernv.c: Unbalanced IRQ warning

2015-07-27 Thread Alistair Popple
Hi Daniel, I see the problem - pnv_eeh_next_error() re-enables the interrupt but it gets called from a loop if there are more outstanding events to process. The most obvious solution would be to do this check before enabling interrupts: if (ret == EEH_NEXT_ERR_NONE && eeh_enabled()) in

Re: eeh-powernv.c: Unbalanced IRQ warning

2015-07-27 Thread Gavin Shan
On Mon, Jul 27, 2015 at 05:37:03PM +1000, Daniel Axtens wrote: >Hi Alistair, > >I've just rebased some CAPI patches on top of 4.2-rc4 and I'm getting a >new WARN relating to IRQs in EEH, which I believe is related to your >patch 79231448c929 ("powernv/eeh: Update the EEH code to use the opal >irq d

[PATCH v3 50/51] PCI: Introduce resource_disabled()

2015-07-27 Thread Yinghai Lu
so we can cover !flags and IORESOURCE_DISABLED both. Cc: linux-al...@vger.kernel.org Cc: linux-i...@vger.kernel.org Cc: linux-am33-l...@redhat.com Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-s...@vger.kernel.org Cc: sparcli...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: linux-xte...@linux-xt

[PATCH v3 41/51] powerpc/PCI: Add IORESOURCE_MEM_64 for 64-bit resource in of parsing

2015-07-27 Thread Yinghai Lu
For device resource PREF bit setting under bridge 64-bit pref resource, we need to make sure only set PREF for 64bit resource, so set IORESOUCE_MEM_64 for 64bit resource during of device resource flags parsing. Link: https://bugzilla.kernel.org/show_bug.cgi?id=96261 Link: https://bugzilla.kernel.o

[PATCH v3 30/51] PCI: Unify skip_ioresource_align()

2015-07-27 Thread Yinghai Lu
There are powerpc generic version and x86 local version. Move the powerpc version to setup-bus.c, and kill x86 local version. Also kill dummy version in microblaze. Cc: Michal Simek Cc: Paul Mackerras Cc: Michael Ellerman Cc: Arnd Bergmann Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-a...@vge

Re: using srio in linux2.6.34.6 causes kernel panic

2015-07-27 Thread Scott Wood
On Mon, 2015-07-27 at 14:26 +0800, liulijun wrote: > I've been struggling with a kernel panic during enumeration of a Rapid IO > system. > I am using the AM4140 with Freescale P4080 processor. The Linux > kernel'version is 2.6.34.6. That is a very old kernel. If you're using that old kernel be

Re: [RFC v2] genalloc:add an gen_pool_first_fit_align algo to genalloc

2015-07-27 Thread Scott Wood
On Mon, 2015-07-27 at 17:57 +0800, Zhao Qiang wrote: > diff --git a/lib/genalloc.c b/lib/genalloc.c > index d214866..e6608cd 100644 > --- a/lib/genalloc.c > +++ b/lib/genalloc.c > @@ -509,6 +509,31 @@ unsigned long gen_pool_first_fit(unsigned long *map, > unsigned long size, > EXPORT_SYMBOL(gen_p

Re: [PATCH 3/3] mmc: sdhci-of-esdhc: add workaround for T4240 incorrect HOSTVER value

2015-07-27 Thread Scott Wood
On Mon, 2015-07-27 at 09:58 +0200, Ulf Hansson wrote: > On 25 July 2015 at 04:27, Scott Wood wrote: > > On Tue, 2015-07-21 at 15:02 +0200, Ulf Hansson wrote: > > > On 21 July 2015 at 11:45, Yangbo Lu wrote: > > > > For T4240-R1.0-R2.0, the HOSTVER register has incorrcet vender > > > > version val

Re: [PATCH 11/11] selftests/seccomp: Add powerpc support

2015-07-27 Thread Kees Cook
On Thu, Jul 23, 2015 at 3:21 AM, Michael Ellerman wrote: > Wire up the syscall number and regs so the tests work on powerpc. This patch begs the question: this passes everything? (I was reminded about syscall_restart while reading the patches. If everything passes, it looks like powerpc exposes s

Re: [PATCH 07/11] powerpc: Change syscall_get_nr() to return int

2015-07-27 Thread Kees Cook
On Thu, Jul 23, 2015 at 3:21 AM, Michael Ellerman wrote: > The documentation for syscall_get_nr() in asm-generic says: > > Note this returns int even on 64-bit machines. Only 32 bits of > system call number can be meaningful. If the actual arch value > is 64 bits, this truncates to 32 bits so 0

Re: [PATCH 02/10] dpaa_eth: add support for DPAA Ethernet

2015-07-27 Thread Scott Wood
On Fri, 2015-07-24 at 10:45 -0500, Bucur Madalin-Cristian-B32716 wrote: > > -Original Message- > > From: Joe Perches [mailto:j...@perches.com] > > On Wed, 2015-07-22 at 19:16 +0300, Madalin Bucur wrote: > > > +static int __init dpa_load(void) > > > +{ > > [] > > > + err = platform_driver_re

Re: [PATCH 10/11] selftests/seccomp: Make seccomp tests work on big endian

2015-07-27 Thread Kees Cook
On Thu, Jul 23, 2015 at 3:21 AM, Michael Ellerman wrote: > The seccomp_bpf test uses BPF_LD|BPF_W|BPF_ABS to load 32-bit values > from seccomp_data->args. On big endian machines this will load the high > word of the argument, which is not what the test wants. > > Borrow a hack from samples/seccomp

Re: [PATCH 09/11] powerpc/kernel: Enable seccomp filter

2015-07-27 Thread Kees Cook
On Thu, Jul 23, 2015 at 3:21 AM, Michael Ellerman wrote: > This commit enables seccomp filter on powerpc, now that we have all the > necessary pieces in place. > > To support seccomp's desire to modify the syscall return value under > some circumstances, we use a different ABI to the ptrace ABI. T

Re: [PATCH 08/11] powerpc/kernel: Add SIG_SYS support for compat tasks

2015-07-27 Thread Kees Cook
On Thu, Jul 23, 2015 at 3:21 AM, Michael Ellerman wrote: > SIG_SYS was added in commit a0727e8ce513 "signal, x86: add SIGSYS info > and make it synchronous." > > Because we use the asm-generic struct siginfo, we got support for > SIG_SYS for free as part of that commit. > > However there was no co

Re: [PATCH 06/11] powerpc: Use orig_gpr3 in syscall_get_arguments()

2015-07-27 Thread Kees Cook
On Thu, Jul 23, 2015 at 3:21 AM, Michael Ellerman wrote: > Currently syscall_get_arguments() is used by syscall tracepoints, and > collect_syscall() which is used in some debugging as well as > /proc/pid/syscall. > > The current implementation just copies regs->gpr[3 .. 5] out, which is > fine for

Re: [PATCH 05/11] powerpc: Rework syscall_get_arguments() so there is only one loop

2015-07-27 Thread Kees Cook
On Thu, Jul 23, 2015 at 3:21 AM, Michael Ellerman wrote: > Currently syscall_get_arguments() has two loops, one for compat and one > for regular tasks. In prepartion for the next patch, which changes which > registers we use, switch it to only have one loop, so we only have one > place to update.

Re: [PATCH 04/11] powerpc: Don't negate error in syscall_set_return_value()

2015-07-27 Thread Kees Cook
On Thu, Jul 23, 2015 at 3:21 AM, Michael Ellerman wrote: > Currently the only caller of syscall_set_return_value() is seccomp > filter, which is not enabled on powerpc. > > This means we have not noticed that our implementation of > syscall_set_return_value() negates error, even though the value p

Re: [PATCH 03/11] powerpc: Drop unused syscall_get_error()

2015-07-27 Thread Kees Cook
On Thu, Jul 23, 2015 at 3:21 AM, Michael Ellerman wrote: > syscall_get_error() is unused, and never has been. > > It's also probably wrong, as it negates r3 before returning it, but that > depends on what the caller is expecting. > > It also doesn't deal with compat, and doesn't deal with TIF_NOER

Re: [PATCH 02/11] powerpc/kernel: Change the do_syscall_trace_enter() API

2015-07-27 Thread Kees Cook
On Thu, Jul 23, 2015 at 3:21 AM, Michael Ellerman wrote: > The API for calling do_syscall_trace_enter() is currently sensible > enough, it just returns the (modified) syscall number. > > However once we enable seccomp filter it will get more complicated. When > seccomp filter runs, the seccomp ker

Re: [PATCH 01/11] powerpc/kernel: Switch to using MAX_ERRNO

2015-07-27 Thread Kees Cook
On Thu, Jul 23, 2015 at 3:21 AM, Michael Ellerman wrote: > Currently on powerpc we have our own #define for the highest (negative) > errno value, called _LAST_ERRNO. This is defined to be 516, for reasons > which are not clear. > > The generic code, and x86, use MAX_ERRNO, which is defined to be 4

[PATCH] drivers/ps3: Fix ps3-lpm white space

2015-07-27 Thread Geoff Levand
From: Rudhresh Kumar J Fixed a coding style issue. Signed-off-by: Rudhresh Kumar J Signed-off-by: Geoff Levand --- Please apply to trivial. Thanks. -Geoff drivers/ps3/ps3-lpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ps3/ps3-lpm.c b/drivers/ps3/ps3-lpm.c

Re: [RFC v2] genalloc:add an gen_pool_first_fit_align algo to genalloc

2015-07-27 Thread Vladimir Zapolskiy
Hello Zhao, On 27.07.2015 12:57, Zhao Qiang wrote: > Bytes alignment is required to manage some special ram, > so add gen_pool_first_fit_align to genalloc. > User should define data structure > struct data { > int align; > struct gen_pool *pool; > } > align is the number of bytes alig

[PATCH v6 1/7]powerpc/powernv: Data structure and macros definition

2015-07-27 Thread Madhavan Srinivasan
Create new header file "nest-pmu.h" to add the data structures and macros needed for the nest pmu support. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Sriniv

[PATCH v6 0/7]powerpc/powernv: Nest Instrumentation support

2015-07-27 Thread Madhavan Srinivasan
This patchset enables Nest Instrumentation support on powerpc. POWER8 has per-chip Nest Intrumentation which provides various per-chip metrics like memory, powerbus, Xlink and Alink bandwidth. Nest Instrumentation provides an interface (via PORE Engine) to configure and move the nest counter data

RFC: Kernel Live Patching for ppc64le (ABIv2)

2015-07-27 Thread Torsten Duwe
Here is my approach to handle ABIv2 local calls that naturally become global when passing through KLP. On ppc64le a call is either local within the same module, and the TOC pointer is neither saved nor restored by the caller, or it is a global call that passes over a TOC-saving trampoline and the

[PATCH] PS3: PS#-LPM: fixed a space coding style issue

2015-07-27 Thread Rudhresh Kumar J
Fixed a coding style issue. Signed-off-by: Rudhresh Kumar J --- drivers/ps3/ps3-lpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ps3/ps3-lpm.c b/drivers/ps3/ps3-lpm.c index cb7d3a6..e34de9a 100644 --- a/drivers/ps3/ps3-lpm.c +++ b/drivers/ps3/ps3-lpm.c @@ -901,7

[PATCH v6 6/7]powerpc/powernv: generic nest pmu event functions

2015-07-27 Thread Madhavan Srinivasan
Add set of generic nest pmu related event functions to be used by each nest pmu. Add code to register nest pmus. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan

using srio in linux2.6.34.6 causes kernel panic

2015-07-27 Thread liulijun
I've been struggling with a kernel panic during enumeration of a Rapid IO system. I am using the AM4140 with Freescale P4080 processor. The Linux kernel'version is 2.6.34.6. I've set riohdid=0 on the kernel command line.But when the OS boots up,the kernel panic as following: DP-Lite hash table

Re: [PATCH V5 0/7] Allow user to request memory to be locked on page fault

2015-07-27 Thread Vlastimil Babka
On 07/27/2015 04:54 PM, Eric B Munson wrote: On Mon, 27 Jul 2015, Vlastimil Babka wrote: We do actually have an MCL_LOCKED, we just call it MCL_CURRENT. Would you prefer that I match the name in mlock2() (add MLOCK_CURRENT instead)? Hm it's similar but not exactly the same, because MCL_FUTU

[PATCH v6 3/7]powerpc/powernv: Nest PMU detection and device tree parser

2015-07-27 Thread Madhavan Srinivasan
Create a file "nest-pmu.c" to contain nest pmu related functions. Code to detect nest pmu support and parser to collect per-chip reserved memory region information from device tree (DT). Detection mechanism is to look for specific property "ibm,ima-chip" in DT. For Nest pmu, device tree will have

[PATCH v6 4/7]powerpc/powernv: detect supported nest pmus and its events

2015-07-27 Thread Madhavan Srinivasan
Parse device tree to detect supported nest pmu units. Traverse through each nest pmu unit folder to find supported events and corresponding unit/scale files (if any). The nest unit event file from Device Tree will contain the offset in the reserved memory region to get the counter data for a given

[PATCH v6 5/7]powerpc/powernv: add event attribute and group to nest pmu

2015-07-27 Thread Madhavan Srinivasan
Add code to create event/format attributes and attribute groups for each nest pmu. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattiprolu Cc: Anshuman Khandual Cc: Stephane Eranian Signed-off-by: Madhavan Srinivasan --- arch/powerpc/

[PATCH v6 7/7]powerpc/powernv: nest pmu cpumask and cpu hotplug support

2015-07-27 Thread Madhavan Srinivasan
Adds cpumask attribute to be used by each nest pmu since nest units are per-chip. Only one cpu (first online cpu) from each chip is designated to read counters. On cpu hotplug, dying cpu is checked to see whether it is one of the designated cpus, if yes, next online cpu from the same chip is desig

Re: [PATCH V5 0/7] Allow user to request memory to be locked on page fault

2015-07-27 Thread Eric B Munson
On Mon, 27 Jul 2015, Vlastimil Babka wrote: > On 07/27/2015 03:35 PM, Eric B Munson wrote: > >On Mon, 27 Jul 2015, Vlastimil Babka wrote: > > > >>On 07/24/2015 11:28 PM, Eric B Munson wrote: > >> > >>... > >> > >>>Changes from V4: > >>>Drop all architectures for new sys call entries except x86[_64

Re: [PATCH V5 0/7] Allow user to request memory to be locked on page fault

2015-07-27 Thread Vlastimil Babka
On 07/27/2015 03:35 PM, Eric B Munson wrote: On Mon, 27 Jul 2015, Vlastimil Babka wrote: On 07/24/2015 11:28 PM, Eric B Munson wrote: ... Changes from V4: Drop all architectures for new sys call entries except x86[_64] and MIPS Drop munlock2 and munlockall2 Make VM_LOCKONFAULT a modifier to

Re: [PATCH V5 5/7] mm: mmap: Add mmap flag to request VM_LOCKONFAULT

2015-07-27 Thread Eric B Munson
On Mon, 27 Jul 2015, Kirill A. Shutemov wrote: > On Mon, Jul 27, 2015 at 09:41:26AM -0400, Eric B Munson wrote: > > On Mon, 27 Jul 2015, Kirill A. Shutemov wrote: > > > > > On Fri, Jul 24, 2015 at 05:28:43PM -0400, Eric B Munson wrote: > > > > The cost of faulting in all memory to be locked can b

Re: [PATCH V5 5/7] mm: mmap: Add mmap flag to request VM_LOCKONFAULT

2015-07-27 Thread Kirill A. Shutemov
On Mon, Jul 27, 2015 at 09:41:26AM -0400, Eric B Munson wrote: > On Mon, 27 Jul 2015, Kirill A. Shutemov wrote: > > > On Fri, Jul 24, 2015 at 05:28:43PM -0400, Eric B Munson wrote: > > > The cost of faulting in all memory to be locked can be very high when > > > working with large mappings. If on

Re: [PATCH V5 5/7] mm: mmap: Add mmap flag to request VM_LOCKONFAULT

2015-07-27 Thread Eric B Munson
On Mon, 27 Jul 2015, Kirill A. Shutemov wrote: > On Fri, Jul 24, 2015 at 05:28:43PM -0400, Eric B Munson wrote: > > The cost of faulting in all memory to be locked can be very high when > > working with large mappings. If only portions of the mapping will be > > used this can incur a high penalty

Re: [PATCH V5 0/7] Allow user to request memory to be locked on page fault

2015-07-27 Thread Eric B Munson
On Mon, 27 Jul 2015, Vlastimil Babka wrote: > On 07/24/2015 11:28 PM, Eric B Munson wrote: > > ... > > >Changes from V4: > >Drop all architectures for new sys call entries except x86[_64] and MIPS > >Drop munlock2 and munlockall2 > >Make VM_LOCKONFAULT a modifier to VM_LOCKED only to simplify bo

[PATCH v6 2/7]powerpc/powernv: Add OPAL support for Nest PMU

2015-07-27 Thread Madhavan Srinivasan
Nest Counters can be configured via PORE Engine and OPAL provides an interface to start/stop it. OPAL side patches are posted in the skiboot mailing. Cc: Stewart Smith Cc: Jeremy Kerr Cc: Benjamin Herrenschmidt Cc: Michael Ellerman Cc: Paul Mackerras Cc: Anton Blanchard Cc: Sukadev Bhattipr

RE: [PATCH 03/10] dpaa_eth: add configurable bpool thresholds

2015-07-27 Thread Madalin-Cristian Bucur
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Monday, July 27, 2015 2:35 AM > To: Bucur Madalin-Cristian-B32716 > Cc: j...@perches.com; net...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; linux-ker...@vger.kernel.org; Wood Scott-B07421; > Liberman Iga

[RFC v2] genalloc:add an gen_pool_first_fit_align algo to genalloc

2015-07-27 Thread Zhao Qiang
Bytes alignment is required to manage some special ram, so add gen_pool_first_fit_align to genalloc. User should define data structure struct data { int align; struct gen_pool *pool; } align is the number of bytes alignment, pool points to gen_pool which include data. Signed-off-b

Re: [PATCH v8 3/3] leds/powernv: Add driver for PowerNV platform

2015-07-27 Thread Jacek Anaszewski
Hi Vasant, On 27.07.2015 05:41, Vasant Hegde wrote: On 07/27/2015 03:11 AM, Jacek Anaszewski wrote: Hi Vasant, Hi Jacek, Two trivial details left. Please find them below. Thanks for the review/Ack. I'll fix below issues and resend patchset. I will ask Benh/Michael to take this patchset.

[PATCH v4 46/46] usb: musb: gadget: add musb_match_ep() function

2015-07-27 Thread Robert Baldyga
Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Function does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from platform specific logic. Signed-off-by: Robert Baldyga --

[PATCH v4 45/46] usb: gadget: goku_udc: add goku_match_ep() function

2015-07-27 Thread Robert Baldyga
Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Function does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from platform specific logic. Signed-off-by: Robert Baldyga --

[PATCH v4 44/46] usb: gadget: net2280: add net2280_match_ep() function

2015-07-27 Thread Robert Baldyga
Add 'match_ep' callback to utilize chip-specific knowledge in endpoint matching process. Function does the same that was done by chip-specific code inside of epautoconf. Now this code can be removed from there to separate generic code from platform specific logic. Signed-off-by: Robert Baldyga --

[PATCH v4 43/46] usb: gadget: move find_ep() from epautoconf to gadget.h

2015-07-27 Thread Robert Baldyga
Move find_ep() function to gadget.h, rename it to gadget_find_ep_by_name() and make it static inline. It can be used in UDC drivers, especially in 'match_ep' callback after moving chip-specific endpoint matching logic from epautoconf to UDC drivers. Replace all calls of find_ep() function with gad

[PATCH v4 42/46] usb: gadget: move ep_matches() from epautoconf to udc-core

2015-07-27 Thread Robert Baldyga
Move ep_matches() function to udc-core and rename it to usb_gadget_ep_match_desc(). This function can be used by UDC drivers in 'match_ep' callback to avoid writing lots of repetitive code. Replace all calls of ep_matches() with usb_gadget_ep_match_desc(). Signed-off-by: Robert Baldyga --- driv

[PATCH v4 41/46] usb: gadget: add 'ep_match' callback to usb_gadget_ops

2015-07-27 Thread Robert Baldyga
Add callback that is called by epautoconf to allow UDC driver match the best endpoint for specific descriptor. It's intended to supply mechanism which allows to get rid of chip-specific endpoint matching code from epautoconf. If gadget has set 'ep_match' callback we prefer to call it first, and if

[PATCH v4 40/46] usb: gadget: epautoconf: rework ep_matches() function

2015-07-27 Thread Robert Baldyga
Rework ep_matches() function to make it shorter and more readable. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 87 + 1 file changed, 35 insertions(+), 52 deletions(-) diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadge

[PATCH v4 39/46] usb: gadget: epautoconf: remove ep and desc configuration from ep_matches()

2015-07-27 Thread Robert Baldyga
As function ep_matches() is used to match endpoint with usb descriptor it's highly unintuitive that it modifies endpoint and descriptor structures fields. This patch moves code configuring ep and desc from ep_matches() to usb_ep_autoconfig_ss(), so now function ep_matches() does nothing more than i

[PATCH v4 38/46] usb: gadget: epautoconf: remove pxa quirk from ep_matches()

2015-07-27 Thread Robert Baldyga
The same effect can be achieved by using capabilities flags, so now we can get rid of handling of hardware specific limitations in generic code. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/epautoconf.c | 5 - drivers/usb/gadget/udc/pxa25x_udc.c | 9 +++-- 2 files changed, 3

[PATCH v4 37/46] usb: gadget: epautoconf: add endpoint capabilities flags verification

2015-07-27 Thread Robert Baldyga
Introduce endpoint matching mechanism basing on endpoint capabilities flags. We check if endpoint supports transfer type and direction requested in ep descriptor. Since we have this new endpoint matching mechanism there is no need to have old code guessing endpoint capabilities basing on its name,

[PATCH v4 36/46] usb: gadget: atmel_usba_udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/atmel_usba_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index 37d414e..2

[PATCH v4 34/46] usb: musb: gadget: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/musb/musb_gadget.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 625d482f..043248a 100644 --- a/driver

[PATCH v4 35/46] usb: renesas: gadget: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/renesas_usbhs/mod_gadget.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index 494dfe0..de4f97d 100

[PATCH v4 33/46] usb: isp1760: udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/isp1760/isp1760-udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/isp1760/isp1760-udc.c b/drivers/usb/isp1760/isp1760-udc.c index 3699962..1c3d0fd 100644 ---

[PATCH v4 32/46] usb: gadget: udc-xilinx: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/udc-xilinx.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/udc-xilinx.c b/drivers/usb/gadget/udc/udc-xilinx.c index 1f24274..1cbb0ac 100644 --

[PATCH v4 31/46] usb: gadget: s3c2410_udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/s3c2410_udc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/gadget/udc/s3c2410_udc.c b/drivers/usb/gadget/udc/s3c2410_udc.c index 5d9aa81..eb3571e 100

[PATCH v4 30/46] usb: gadget: s3c-hsudc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/s3c-hsudc.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/usb/gadget/udc/s3c-hsudc.c b/drivers/usb/gadget/udc/s3c-hsudc.c index 85a712a..e9def42 1006

[PATCH v4 29/46] usb: gadget: r8a66597-udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/r8a66597-udc.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/usb/gadget/udc/r8a66597-udc.c b/drivers/usb/gadget/udc/r8a66597-udc.c index 0293f71..baa0609

[PATCH v4 28/46] usb: gadget: pxa27x_udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/pxa27x_udc.h | 33 ++--- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/udc/pxa27x_udc.h b/drivers/usb/gadget/udc/px

[PATCH v4 27/46] usb: gadget: pxa25x_udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/pxa25x_udc.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/usb/gadget/udc/pxa25x_udc.c b/drivers/usb/gadget/udc/pxa25x_udc.c index f

[PATCH v4 26/46] usb: gadget: pch_udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/pch_udc.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c index dcf5def..fa9e

[PATCH v4 25/46] usb: gadget: omap_udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/omap_udc.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/usb/gadget/udc/omap_udc.c b/drivers/usb/gadget/udc/omap_udc.c index e2fcdb8..9b7d394

[PATCH v4 24/46] usb: gadget: net2280: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/net2280.c | 50 ++-- 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/drivers/usb/gadget/udc/net2280.c b/drivers/usb/gadget/udc/ne

[PATCH v4 23/46] usb: gadget: net2272: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/net2272.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c index c2ed5da..18f5ebd 100644 --- a/dr

[PATCH v4 21/46] usb: gadget: mv_u3d_core: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/mv_u3d_core.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/mv_u3d_core.c b/drivers/usb/gadget/udc/mv_u3d_core.c index ea35a24..4c48969 100644

[PATCH v4 22/46] usb: gadget: mv_udc_core: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/mv_udc_core.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/mv_udc_core.c b/drivers/usb/gadget/udc/mv_udc_core.c index d32160d..306a7ff 100644

[PATCH v4 20/46] usb: gadget: m66592-udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/m66592-udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/m66592-udc.c b/drivers/usb/gadget/udc/m66592-udc.c index 309706f..e404553 10064

[PATCH v4 19/46] usb: gadget: lpc32xx_udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/lpc32xx_udc.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/usb/gadget/udc/lpc32xx_udc.c b/drivers/usb/gadget/udc/lpc32xx_udc.c inde

[PATCH v4 18/46] usb: gadget: gr_udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/gr_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/gr_udc.c b/drivers/usb/gadget/udc/gr_udc.c index c886887..8aa2593 100644 --- a/drive

[PATCH v4 17/46] usb: gadget: goku_udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/goku_udc.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/usb/gadget/udc/goku_udc.c b/drivers/usb/gadget/udc/goku_udc.c index 9e8d842..46b8d14 100644 --- a/dri

[PATCH v4 16/46] usb: gadget: fusb300_udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fusb300_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/fusb300_udc.c b/drivers/usb/gadget/udc/fusb300_udc.c index 3970f45..948845c 10

[PATCH v4 15/46] usb: gadget: fsl_udc_core: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fsl_udc_core.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/usb/gadget/udc/fsl_udc_core.c b/drivers/usb/gadget/udc/fsl_udc_core.c index c60022b..aab52

[PATCH v4 14/46] usb: gadget: fsl_qe_udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fsl_qe_udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/fsl_qe_udc.c b/drivers/usb/gadget/udc/fsl_qe_udc.c index e0822f1..5fb6f8b 10064

[PATCH v4 13/46] usb: gadget: fotg210-udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/fotg210-udc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c index 1137e33..bf6bbee 10

[PATCH v4 12/46] usb: gadget: dummy-hcd: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/dummy_hcd.c | 65 +- 1 file changed, 50 insertions(+), 15 deletions(-) diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc

[PATCH v4 11/46] usb: gadget: bdc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/bdc/bdc_ep.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/gadget/udc/bdc/bdc_ep.c b/drivers/usb/gadget/udc/bdc/bdc_ep.c index b04980c..f9a8f57 100644 --

[PATCH v4 10/46] usb: gadget: bcm63xx_udc: add ep capabilities support

2015-07-27 Thread Robert Baldyga
Convert endpoint configuration to new capabilities model. Signed-off-by: Robert Baldyga --- drivers/usb/gadget/udc/bcm63xx_udc.c | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/drivers/usb/gadget/udc/bcm63xx_udc.c b/drivers/usb/gadget/udc/bcm63xx_u

  1   2   >