[PATCH 1/1] powerpc/embedded6xx: Make reboot works on MVME5100

2016-03-07 Thread Alessio Igor Bogani
The mtmsr() function hangs during restart. Make reboot works on MVME5100 removing that function call. --- arch/powerpc/platforms/embedded6xx/mvme5100.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/platforms/embedded6xx/mvme5100.c b/arch/powerpc/platforms/embedded6xx/mvme5100.

RE: [PATCH 2/2] mfd: add documentation for ACT8945A DT bindings

2016-03-07 Thread Yang, Wenyou
el@vger.kernel.org; devicet...@vger.kernel.org; Yang, Wenyou > > Subject: Re: [PATCH 2/2] mfd: add documentation for ACT8945A DT bindings > > Hi Wenyou, > > [auto build test ERROR on v4.4-rc8] > [cannot apply to next-20160307] > [if your patch is applied to the wrong git

[PATCH v3 5/7] usb: mux: add driver for Intel drcfg controlled port mux

2016-03-07 Thread Lu Baolu
Several Intel PCHs and SOCs have an internal mux that is used to share one USB port between device controller and host controller. The mux is handled through the Dual Role Configuration Register. Signed-off-by: Heikki Krogerus Signed-off-by: Lu Baolu Signed-off-by: Wu Hao Reviewed-by: Felipe Ba

[PATCH v3 2/7] extcon: usb-gpio: add support for ACPI gpio interface

2016-03-07 Thread Lu Baolu
GPIO resource could be retrieved through APCI as well. Signed-off-by: Lu Baolu Reviewed-by: Felipe Balbi Acked-by: Chanwoo Choi --- drivers/extcon/extcon-usb-gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-us

[PATCH v3 1/7] extcon: usb-gpio: add device binding for platform device

2016-03-07 Thread Lu Baolu
This is needed to handle the GPIO connected USB ID pin found on Intel Baytrail devices. Signed-off-by: Lu Baolu Reviewed-by: Felipe Balbi Acked-by: Chanwoo Choi --- drivers/extcon/extcon-usb-gpio.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/extcon/extcon-usb-gpio.c b/dr

[PATCH v3 6/7] usb: pci-quirks: add Intel USB drcfg mux device

2016-03-07 Thread Lu Baolu
In some Intel platforms, a single usb port is shared between USB host and device controllers. The shared port is under control of a switch which is defined in the Intel vendor defined extended capability for xHCI. This patch adds the support to detect and create the platform device for the port mu

Re: [PATCH v1 1/1] mfd: intel-lpss: save register context on suspend

2016-03-07 Thread Lee Jones
On Tue, 08 Mar 2016, Andy Shevchenko wrote: > On Tue, Mar 8, 2016 at 6:48 AM, Lee Jones wrote: > > On Tue, 26 Jan 2016, Andy Shevchenko wrote: > > > >> From: Heikki Krogerus > >> > >> All configurations are lost and the registers will have > >> default values when the hardware is suspended and r

[PATCH v3 3/7] usb: mux: add common code for Intel dual role port mux

2016-03-07 Thread Lu Baolu
Several Intel PCHs and SOCs have an internal mux that is used to share one USB port between device controller and host controller. A usb port mux could be abstracted as the following elements: 1) mux state: HOST or PERIPHERAL; 2) an extcon cable which triggers the change of mux state between HO

[PATCH v3 7/7] mfd: intel_vuport: Add Intel virtual USB port MFD Driver

2016-03-07 Thread Lu Baolu
Some Intel platforms have an USB port mux controlled by GPIOs. There's a single ACPI platform device that provides both USB ID extcon device and a USB port mux device. This MFD driver will split the 2 devices for their respective drivers. Signed-off-by: Lu Baolu Suggested-by: David Cohen Reviewe

Re: [PATCHv3 02/13] scripts/gdb: Provide kernel list item generators

2016-03-07 Thread Kieran Bingham
On 08/03/16 10:47, Jeff Mahoney wrote: > On 3/3/16 6:40 AM, Kieran Bingham wrote: >> Facilitate linked-list items by providing a generator to return >> the dereferenced, and type-cast objects from a kernel linked list >> >> CC: Jeff Mahoney >> >> Signed-off-by: Kieran Bingham >> --- >> Changes si

[PATCH v3 4/7] usb: mux: add driver for Intel gpio controlled port mux

2016-03-07 Thread Lu Baolu
In some Intel platforms, a single usb port is shared between USB host and device controller. The shared port is under control of GPIO pins. This patch adds the support for USB GPIO controlled port mux. Signed-off-by: David Cohen Signed-off-by: Lu Baolu Reviewed-by: Heikki Krogerus Reviewed-by:

[PATCH v3 0/7] usb: add support for Intel dual role port mux

2016-03-07 Thread Lu Baolu
Intel SOC chips are featured with USB dual role. The host role is provided by Intel xHCI IP, and the gadget role is provided by IP from designware. Tablet platform designs always share a single port for both host and gadget controllers. There is a mux to switch the port to the right controller acco

Re: [PATCH] dma: sun4i: expose block size and wait cycle configuration to DMA users

2016-03-07 Thread Maxime Ripard
On Tue, Mar 08, 2016 at 08:25:47AM +0530, Vinod Koul wrote: > On Mon, Mar 07, 2016 at 09:30:24PM +0100, Maxime Ripard wrote: > > On Mon, Mar 07, 2016 at 04:08:57PM +0100, Boris Brezillon wrote: > > > Hi Vinod, > > > > > > On Mon, 7 Mar 2016 20:24:29 +0530 > > > Vinod Koul wrote: > > > > > > > On

Re: [PATCH v2 7/7] mfd: intel_vuport: Add Intel virtual USB port MFD Driver

2016-03-07 Thread Lu Baolu
On 03/08/2016 12:40 PM, Lee Jones wrote: > On Mon, 07 Mar 2016, Lu Baolu wrote: > >> Some Intel platforms have an USB port mux controlled by GPIOs. >> There's a single ACPI platform device that provides both USB ID >> extcon device and a USB port mux device. This MFD driver will >> split the 2 de

Re: [PATCH 03/15] perf session: Simplify tool stubs

2016-03-07 Thread Adrian Hunter
On 07/03/16 21:44, Arnaldo Carvalho de Melo wrote: > From: Adrian Hunter Very sorry, but I just noticed that this and patch 5 (perf jit: Move clockid validation) have the wrong email address for the "From" and "Signed-off-by". It should be adrian.hun...@intel.com. Please consider changing it or

Re: Suspicious error for CMA stress test

2016-03-07 Thread Joonsoo Kim
On Mon, Mar 07, 2016 at 01:59:12PM +0100, Vlastimil Babka wrote: > On 03/07/2016 05:34 AM, Joonsoo Kim wrote: > >On Fri, Mar 04, 2016 at 03:35:26PM +0800, Hanjun Guo wrote: > >>>Sad to hear that. > >>> > >>>Could you tell me your system's MAX_ORDER and pageblock_order? > >>> > >> > >>MAX_ORDER is 1

Re: [PATCH 4/5] usb: gadget: f_midi: cleanups and typos fixes

2016-03-07 Thread Felipe Balbi
Hi, Felipe Ferreri Tonello writes: >>> On March 5, 2016 4:28:45 PM GMT+00:00, Michal Nazarewicz >>> wrote: >> On Wed, Mar 02 2016, Felipe F. Tonello wrote: >>> @@ -16,7 +16,7 @@ >>> * Copyright (C) 2006 Thumtronics Pty Ltd. >>> * Ben Williamson >>> * >>> - *

Re: [PATCH] HID: multitouch: force retrieving of Win8 signature blob

2016-03-07 Thread Benjamin Tissoires
On Mar 07 2016 or thereabouts, Jiri Kosina wrote: > On Mon, 7 Mar 2016, Benjamin Tissoires wrote: > > > The Synaptics 0x11e5 over I2C found in the Asus T100-CHI requires to > > fetch the signature blob to actually start sending events. > > > > With this patch, we should be close enough to the Win

Re: [PATCH 3/5] usb: gadget: gmidi: remove bus powered requirement on bmAttributes

2016-03-07 Thread Felipe Balbi
Hi, Felipe Ferreri Tonello writes: >>> @@ -63,6 +63,14 @@ static unsigned int out_ports = 1; >>> module_param(out_ports, uint, S_IRUGO); >>> MODULE_PARM_DESC(out_ports, "Number of MIDI output ports"); >>> >>> +static unsigned int bmAttributes = USB_CONFIG_ATT_ONE; >>>

Re: [PATCH v1 1/1] mfd: intel-lpss: Pass I2C configuration via properties on BXT

2016-03-07 Thread Mika Westerberg
On Tue, Jan 26, 2016 at 02:17:49PM +0200, Andy Shevchenko wrote: > From: Mika Westerberg > > I2C host controller need to be configured properly in order to meet I2C > timings specified in the I2C protocol specification. Some Intel Broxton > based machines do not have this information in the ACPI

Re: [PATCH v5 3/9] dma-mapping: add dma_{map,unmap}_resource

2016-03-07 Thread Christoph Hellwig
Please add some documentation on where/how this should be used. It's not a very obvious interface.

Re: [PATCH] scripts/dtc: Update to upstream version 53bf130b1cdd

2016-03-07 Thread Rob Herring
On Mon, Mar 7, 2016 at 5:10 PM, Olof Johansson wrote: > Hi, > > On Fri, Mar 4, 2016 at 7:13 AM, Rob Herring wrote: >> Sync to upstream dtc commit 53bf130b1cdd ("libfdt: simplify >> fdt_node_check_compatible()"). This adds the following commits from >> upstream: >> >> 53bf130 libfdt: simplify fdt_

Re: [PATCH 2/5] usb: gadget: f_midi: added spinlock on transmit function

2016-03-07 Thread Felipe Balbi
Hi, Felipe Ferreri Tonello writes: > Since f_midi_transmit is called by both ALSA and USB frameworks, it can > potentially cause a race condition between both calls. This is bad because the > way f_midi_transmit is implemented can't handle concurrent calls. This is due

[v5][PATCH] livepatch/ppc: Enable livepatching on powerpc

2016-03-07 Thread Balbir Singh
Changelog v5: 1. Removed the mini-stack frame created for klp_return_helper. As a result of the mini-stack frame, function with > 8 arguments could not be patched 2. Removed camel casing in the comments Changelog v4: 1. Renamed klp_matchaddr() to klp_ge

Re: [PATCH 3/3] pci: move pci_dma_* helpers to common code

2016-03-07 Thread Christoph Hellwig
On Mon, Mar 07, 2016 at 12:28:48PM -0600, Bjorn Helgaas wrote: > I wonder if we can consolidate a little more pci_dma_*-related stuff > in pci-dma-compat.h, e.g., Looks fine to me.

[PATCH] Staging: media: davinci_vpfe: Fix spelling error on a comment

2016-03-07 Thread Manuel Rodriguez
Fix spelling error on a comment, change 'wether' to 'whether' Signed-off-by: Manuel Rodriguez --- drivers/staging/media/davinci_vpfe/vpfe_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/davinci_vpfe/vpfe_video.c b/drivers/staging/media/davinci_v

Re: [PATCH V2 2/2] mailbox: Introduce TI message manager driver

2016-03-07 Thread Jassi Brar
On Tue, Mar 8, 2016 at 2:18 AM, Nishanth Menon wrote: > On 03/07/2016 12:31 PM, Jassi Brar wrote: >> On Fri, Mar 4, 2016 at 8:05 PM, Nishanth Menon wrote: > +static int ti_msgmgr_send_data(struct mbox_chan *chan, void *data) > +{ > + struct device *dev = chan->mbox->dev; >>

Re: [PATCH 0/3] net: macb: Fix coding style issues

2016-03-07 Thread Alexander Stein
Hi, On Monday 07 March 2016 08:17:36, Moritz Fischer wrote: > this series deals with most of the checkpatch warnings > generated for macb. There are two BUG_ON()'s that I didn't touch, yet, > that were suggested by checkpatch, that I can address in a follow up > commit if needed. I think addressi

RE: [RESPIN 1/6] dt-bindings: EXYNOS: Add exynos-srom device tree binding

2016-03-07 Thread Pavel Fedin
Hello! >> BTW, you could just combine both patches. I guess you didn't to >> maintain authorship? >OK. Will squash both of these patches, unless Pavel do not any objections. I don't. Kind regards.

Re: [PATCH net-next 2/3] ipv6: per netns fib6 walkers

2016-03-07 Thread Michal Kubecek
On Mon, Mar 07, 2016 at 04:28:26PM -0800, Cong Wang wrote: > On Mon, Mar 7, 2016 at 4:26 PM, Cong Wang wrote: > > On Fri, Mar 4, 2016 at 2:59 AM, Michal Kubecek wrote: > >> static void ipv6_route_seq_setup_walk(struct ipv6_route_iter *iter) > >> { > >> +#ifdef CONFIG_NET_NS > >> + struct

[lkp] [perf] bd2afa49d1: -20.7% will-it-scale.per_thread_ops

2016-03-07 Thread kernel test robot
5d/0" job_file: "/lkp/scheduled/lkp-sb03/bisect_will-it-scale-lseek1-debian-x86_64-2015-02-07.cgz-x86_64-rhel-bd2afa49d194c6412c333e9fdd48bc5d06bb465d-20160307-105931-ltzmsq-0.yaml" nr_cpu: "$(nproc)" max_uptime: 1500 initrd: "/osimage/debian/debian-x86_64-2015-02-07.cgz&qu

Re: [PATCH v1 1/1] mfd: intel-lpss: save register context on suspend

2016-03-07 Thread Andy Shevchenko
On Tue, Mar 8, 2016 at 6:48 AM, Lee Jones wrote: > On Tue, 26 Jan 2016, Andy Shevchenko wrote: > >> From: Heikki Krogerus >> >> All configurations are lost and the registers will have >> default values when the hardware is suspended and resumed, >> so saving the private register space context on

Re: [PATCH v5 0/6] ARM: am335x/am437x/dra7: Add PWM support for DRA7

2016-03-07 Thread Paul Walmsley
Hi Franklin On Mon, 7 Mar 2016, Franklin S Cooper Jr wrote: > This patch series adds support for PWM for DRA7. The IP is same as that > present in AM33XX and AM437XX. > > However, before doing so remove unnecessary hwmod entries for eCAP, ePWM > and eQEP. > > This series is almost identical to

Re: Nokia N900 - audio TPA6130A2 problems

2016-03-07 Thread Ivaylo Dimitrov
Hi, On 7.03.2016 13:59, Pali Rohár wrote: ... That error occurs randomly, not always. When I see it next time, I will try to comment that function if it happens... IIRC it is easier to cause it by booting to stock kernel first and then rebooting to mainline (without power-down in between)

Re: [PATCH v5 4/6] ARM: OMAP2+: DRA7: Add hwmod entries for PWMSS

2016-03-07 Thread Paul Walmsley
On Mon, 7 Mar 2016, Franklin S Cooper Jr wrote: > From: Vignesh R > > Add hwmod entries for the PWMSS on DRA7. > > Set l4_root_clk_div as the main_clk of PWMSS. It is fixed-factored clock > equal to L4PER2_L3_GICLK/2(l3_iclk_div/2). > > Signed-off-by: Vignesh R > [fcoo...@ti.com: Do not add e

Re: [PATCH v2 10/10] x86/entry/32: Add and check a stack canary for the SYSENTER stack

2016-03-07 Thread Borislav Petkov
On Sat, Mar 05, 2016 at 09:52:23PM -0800, Andy Lutomirski wrote: <--- ? So all patches before are nice and verbose in explaining what they do. Where did the commit message of this one disappear? :-) Or is it that obvious that we should have a stack canary? How about some text *why* we need it?

Re: [PATCH v2 09/10] ARM: DRA7: hwmod: Add data for McASP1/2/4/5/6/7/8

2016-03-07 Thread Paul Walmsley
On Mon, 7 Mar 2016, Peter Ujfalusi wrote: > Add missing data for all McASP ports for the dra7 family > > Signed-off-by: Peter Ujfalusi Thanks, queued for v4.7. - Paul

Re: [PATCH v2 09/10] x86/entry/32: Simplify and fix up the SYSENTER stack #DB/NMI fixup

2016-03-07 Thread Borislav Petkov
On Sat, Mar 05, 2016 at 09:52:22PM -0800, Andy Lutomirski wrote: > Right after SYSENTER, we can get a #DB or NMI. On x86_32, there's no IST, > so the exception handler is invoked on the temporary SYSENTER stack. > > Because the SYSENTER stack is very small, we have a fixup to switch > off the sta

[RESEND PATCH V4 4/4] coresight-stm: adding driver for CoreSight STM component

2016-03-07 Thread Chunyan Zhang
From: Pratik Patel This driver adds support for the STM CoreSight IP block, allowing any system compoment (HW or SW) to log and aggregate messages via a single entity. The CoreSight STM exposes an application defined number of channels called stimulus port. Configuration is done using entries i

[RESEND PATCH V4 2/4] Documentations: Add explanations of the case for non-configurable masters

2016-03-07 Thread Chunyan Zhang
For some STM hardware (e.g. ARM CoreSight STM), the masterID associated to a source is set at the hardware level and not user configurable. Since the masterID information isn't available to SW, introducing a new value of -1 to reflect this reality. Signed-off-by: Chunyan Zhang --- Documentation/

[RESEND PATCH V4 1/4] stm class: provision for statically assigned masterIDs

2016-03-07 Thread Chunyan Zhang
From: Mathieu Poirier Some architecture like ARM assign masterIDs at the HW design phase. Those are therefore unreachable to users, making masterID management in the generic STM core irrelevant. In this kind of configuration channels are shared between masters rather than being allocated on a p

[RESEND PATCH V4 3/4] coresight-stm: Bindings for System Trace Macrocell

2016-03-07 Thread Chunyan Zhang
From: Mathieu Poirier The System Trace Macrocell (STM) is an IP block falling under the CoreSight umbrella. It's main purpose it so expose stimulus channels to any system component for the purpose of information logging. Bindings for this IP block adds a couple of items to the current mandatory

[RESEND PATCH V4 0/4] Introduce CoreSight STM support

2016-03-07 Thread Chunyan Zhang
This patchset adds support for the CoreSight STM IP block. In the fourth version, comments from various people have been addressed. Representing configurations where channels are shared between multiple masterIDs has been kept unchanged from the previous version because a viable alternative hasn'

Re: [PATCH] fat: add config option to set UTF-8 mount option by default

2016-03-07 Thread OGAWA Hirofumi
"Maciej S. Szmigiero" writes: > +#ifdef CONFIG_FAT_DEFAULT_UTF8 > + opts->utf8 = is_vfat; > +#else > + opts->utf8 = 0; > +#endif > + Maybe, better to use IS_ENABLED(CONFIG_FAT_DEFAULT_UTF8)? I.e., opts->utf8 = IS_ENABLED(CONFIG_FAT_DEFAULT_UTF8) && is_vfat; Thanks. -- OGAWA H

Re: Thoughts on tightening up user namespace creation

2016-03-07 Thread Serge E. Hallyn
On Mon, Mar 07, 2016 at 09:15:25PM -0800, Andy Lutomirski wrote: > Hi all- > > There are several users and distros that are nervous about user > namespaces from an attack surface point of view. > > - RHEL and Arch have userns disabled. > > - Ubuntu requires CAP_SYS_ADMIN No, it does not. It

Re: [PATCH 3/3] ARM: bcm2835: Add VC4 to the device tree.

2016-03-07 Thread Stephen Warren
On 03/04/2016 01:32 PM, Eric Anholt wrote: VC4 is the GPU (display and 3D) present on the 283x. diff --git a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts +&hdmi { + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; +}; Isn't that the same everywhere? If

[PATCH v2 net-next 02/12] bpf: introduce percpu_freelist

2016-03-07 Thread Alexei Starovoitov
Introduce simple percpu_freelist to keep single list of elements spread across per-cpu singly linked lists. /* push element into the list */ void pcpu_freelist_push(struct pcpu_freelist *, struct pcpu_freelist_node *); /* pop element from the list */ struct pcpu_freelist_node *pcpu_freelist_pop(s

Re: [PATCH v1] tools/vm/page-types.c: remove memset() in walk_pfn()

2016-03-07 Thread Naoya Horiguchi
On Tue, Mar 08, 2016 at 08:12:09AM +0300, Konstantin Khlebnikov wrote: > On Tue, Mar 8, 2016 at 4:47 AM, Naoya Horiguchi > wrote: > > I found that page-types is very slow and my testing shows many timeout > > errors. > > Here's an example with a simple program allocating 1000 thps. > > > > $ ti

[PATCH v2 net-next 07/12] samples/bpf: move ksym_search() into library

2016-03-07 Thread Alexei Starovoitov
move ksym search from offwaketime into library to be reused in other tests Signed-off-by: Alexei Starovoitov --- samples/bpf/bpf_load.c | 62 ++ samples/bpf/bpf_load.h | 6 samples/bpf/offwaketime_user.c | 67 +

[PATCH v2 net-next 06/12] samples/bpf: make map creation more verbose

2016-03-07 Thread Alexei Starovoitov
map creation is typically the first one to fail when rlimits are too low, not enough memory, etc Make this failure scenario more verbose Signed-off-by: Alexei Starovoitov --- samples/bpf/bpf_load.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/bpf/bpf_load.c b/s

[PATCH v2 net-next 03/12] bpf: pre-allocate hash map elements

2016-03-07 Thread Alexei Starovoitov
If kprobe is placed on spin_unlock then calling kmalloc/kfree from bpf programs is not safe, since the following dead lock is possible: kfree->spin_lock(kmem_cache_node->lock)...spin_unlock->kprobe-> bpf_prog->map_update->kmalloc->spin_lock(of the same kmem_cache_node->lock) and deadlocks. The fol

[PATCH v2 net-next 01/12] bpf: prevent kprobe+bpf deadlocks

2016-03-07 Thread Alexei Starovoitov
if kprobe is placed within update or delete hash map helpers that hold bucket spin lock and triggered bpf program is trying to grab the spinlock for the same bucket on the same cpu, it will deadlock. Fix it by extending existing recursion prevention mechanism. Note, map_lookup and other tracing he

[PATCH v2 net-next 05/12] bpf: convert stackmap to pre-allocation

2016-03-07 Thread Alexei Starovoitov
It was observed that calling bpf_get_stackid() from a kprobe inside slub or from spin_unlock causes similar deadlock as with hashmap, therefore convert stackmap to use pre-allocated memory. The call_rcu is no longer feasible mechanism, since delayed freeing causes bpf_get_stackid() to fail unpredi

[PATCH v2 net-next 04/12] bpf: check for reserved flag bits in array and stack maps

2016-03-07 Thread Alexei Starovoitov
Suggested-by: Daniel Borkmann Signed-off-by: Alexei Starovoitov --- kernel/bpf/arraymap.c | 2 +- kernel/bpf/stackmap.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c index bd3bdf2486a7..76d5a794e426 100644 --- a/kernel/bpf/ar

[PATCH v2 net-next 09/12] samples/bpf: test both pre-alloc and normal maps

2016-03-07 Thread Alexei Starovoitov
extend test coveraged to include pre-allocated and run-time alloc maps Signed-off-by: Alexei Starovoitov --- samples/bpf/test_maps.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/samples/bpf/test_maps.c b/samples/bpf/test_maps.c index 7bd9edd02d9b..47bf0858f9e4 10

[PATCH v2 net-next 08/12] samples/bpf: add map_flags to bpf loader

2016-03-07 Thread Alexei Starovoitov
note old loader is compatible with new kernel. map_flags are optional Signed-off-by: Alexei Starovoitov --- samples/bpf/bpf_helpers.h | 1 + samples/bpf/bpf_load.c | 3 ++- samples/bpf/fds_example.c | 2 +- samples/bpf/libbpf.c| 5 +++-- samples/bpf/libbpf.h| 2 +-

[PATCH v2 net-next 0/12] bpf: map pre-alloc

2016-03-07 Thread Alexei Starovoitov
v1->v2: . fix few issues spotted by Daniel . converted stackmap into pre-allocation as well . added a workaround for lockdep false positive . added pcpu_freelist_populate to be used by hashmap and stackmap this path set switches bpf hash map to use pre-allocation by default and introduces BPF_F_NO

Re: linux-next: manual merge of the crypto tree with the net-next tree

2016-03-07 Thread Stephen Rothwell
Hi David, On Mon, 07 Mar 2016 11:08:25 + David Howells wrote: > > Stephen Rothwell wrote: > > > Today's linux-next merge of the crypto tree got a conflict in: > > > > net/rxrpc/rxkad.c > > > > between commit: > > > > 0d12f8a4027d ("rxrpc: Keep the skb private record of the Rx header

Re: [PATCH] ARM: dts: add "simple-bus" to "arm, amba-bus" compatible nodes

2016-03-07 Thread Masahiro Yamada
Hi Rob, Mark, Jon, Setting aside the future plan, anyway we should avoid relying on an undocumented compatible string. (and we should avoid its spread as Rob pointed out.) I rephrase the git-log (no update in the code-diff). Could you check v2, please? https://patchwork.kernel.org/patch/852970

Re: [PATCH 2/2] ARM: bcm2835: Add devicetree for the Raspberry Pi 3.

2016-03-07 Thread Stephen Warren
On 03/04/2016 11:39 AM, Eric Anholt wrote: For now this doesn't support the new hardware present on the Pi 3 (BT, wifi, GPIO expander). Since the GPIO expander isn't supported, we also don't have the LEDs like the other board files do. The series, Acked-by: Stephen Warren ... although I'd be

[PATCH] include/net/inet_connection_sock.h: Use pr_devel() instead of pr_debug()

2016-03-07 Thread Nick Wang
When DYNAMIC_DEBUG enabled, pr_debug() depends on KBUILD_MODNAME which also depends on the modules name in Makefile. Refer to the information in "scripts/Makefile.lib": # $(modname_flags) #defines KBUILD_MODNAME as the name of the module it will # end up in (or would, if it gets compiled in) #

linux-next: Tree for Mar 8

2016-03-07 Thread Stephen Rothwell
Hi all, Changes since 20160307: The net-next tree gained a conflict against the net tree. The aio tree still had a build failure so I used the version from next-20160111. Non-merge commits (relative to Linus' tree): 9862 7743 files changed, 367257 insertions(+), 183996 dele

[PATCH v2] ARM: dts: add "simple-bus" where "arm,amba-bus" is used alone

2016-03-07 Thread Masahiro Yamada
The compatible string "simple-bus" is well defined in ePAPR, while I see no documentation for the "arm,amba-bus" in ePAPR or under Documentation/devicetree/. DT is also used by other projects than Linux kernel. It is not a good idea to rely on such an unofficial binding. Signed-off-by: Masahiro

[PATCH] tty: amba-pl011: Use 32-bit accesses for SBSA UART

2016-03-07 Thread Christopher Covington
From: Christopher Covington Version 2 of the Server Base System Architecture (SBSA) describes the Generic UART registers as 32 bits wide. At least one implementation, found of the Qualcomm Technologies QDF2432, only supports 32 bit accesses. While other implementations may also support smaller si

Re: [PATCH v10 7/9] arm64: Add trampoline code for kretprobes

2016-03-07 Thread David Long
On 03/02/2016 04:20 PM, William Cohen wrote: On 03/01/2016 01:19 PM, Marc Zyngier wrote: On 01/03/16 02:57, David Long wrote: From: William Cohen The trampoline code is used by kretprobes to capture a return from a probed function. This is done by saving the registers, calling the handler, a

Re: [PATCH v3 16/19] x86, kaslr: Randomize physical and virtual address of kernel separately

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:51pm, Kees Cook wrote: > On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > > On x86_64, in old kaslr implementaion only physical address of kernel > > loading is randomized. Then calculate the delta of physical address > > where vmlinux was linked to load and where it is finall

Re: [PATCH v3 11/19] x86, boot: Add checking for memcpy

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:36pm, Kees Cook wrote: > On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > > From: Yinghai Lu > > > > parse_elf is using local memcpy to move section to running position. > > That memcpy actually only support no overlapping case or when dest < src. > > > > Add checking in memc

Re: [PATCH v3 10/19] x86, 64bit: Set ident_mapping for kaslr

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:34pm, Kees Cook wrote: > On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > > From: Yinghai Lu > > diff --git a/arch/x86/boot/compressed/Makefile > > b/arch/x86/boot/compressed/Makefile > > index 2e7c0ce..229604d 100644 > > --- a/arch/x86/boot/compressed/Makefile > > +++ b/arc

Re: [PATCH v3 12/19] x86, kaslr: Fix a bug that relocation can not be handled when kernel is loaded above 2G

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:30pm, Kees Cook wrote: > On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > > When process 32 bit relocation tables a local variable 'extended' > > is defined to calculate the physical address of relocs entry. > > However its type is 'int' which is enough for i386, but not enoug

Re: [PATCH v3 08/19] x86, kaslr: Consolidate mem_avoid array filling

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:28pm, Kees Cook wrote: > On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > > From: Yinghai Lu > > > > We are going to support kaslr with 64bit above 4G, and new random output > > could be anywhere. Array mem_avoid is used for kaslr to search new output > > address. Current cod

Thoughts on tightening up user namespace creation

2016-03-07 Thread Andy Lutomirski
Hi all- There are several users and distros that are nervous about user namespaces from an attack surface point of view. - RHEL and Arch have userns disabled. - Ubuntu requires CAP_SYS_ADMIN - Kees periodically proposes to upstream some sysctl to control userns creation. I think there are t

Re: [PATCH v3 07/19] x86, kaslr: Get correct max_addr for relocs pointer

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:16pm, Kees Cook wrote: > On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > > From: Yinghai Lu > > > > There is boundary checking for pointer in kaslr relocation handling. > > > > Current code is using output_len, and that is VO (vmlinux after objcopy) > > file size plus vmlinu

Re: [PATCH v1] tools/vm/page-types.c: remove memset() in walk_pfn()

2016-03-07 Thread Konstantin Khlebnikov
On Tue, Mar 8, 2016 at 4:47 AM, Naoya Horiguchi wrote: > I found that page-types is very slow and my testing shows many timeout errors. > Here's an example with a simple program allocating 1000 thps. > > $ time ./page-types -p $(pgrep -f test_alloc) > ... > real0m17.201s > user0m16

Re: [PATCH V14 8/9] vfio, platform: add support for ACPI while detecting the reset driver

2016-03-07 Thread Sinan Kaya
On 3/7/2016 11:46 PM, Eric Auger wrote: >> #define module_vfio_reset_handler(compat, acpihid, reset) \ >> > MODULE_ALIAS("vfio-reset: dt: " compat); \ >> > MODULE_ALIAS("vfio-reset: acpi: " acpihid); \ > My gut feeling is we must not create a dummy alias when the mode > (dt/acpi) is not supported/t

Re: [PATCH v14 2/6] Documentation, dt, numa: dt bindings for NUMA.

2016-03-07 Thread Ganapatrao Kulkarni
On Tue, Mar 8, 2016 at 1:17 AM, David Daney wrote: > On 03/07/2016 11:22 AM, Robert Richter wrote: >> >> On 03.03.16 15:55:35, David Daney wrote: >>> >>> From: Ganapatrao Kulkarni >>> >>> Add DT bindings for numa mapping of memory, CPUs and IOs. >>> >>> Reviewed-by: Robert Richter >>> Signed-off

Re: [PATCH v3 06/19] x86, kaslr: Clean up useless code related to run_size.

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:12pm, Kees Cook wrote: > > diff --git a/arch/x86/boot/compressed/misc.c > > b/arch/x86/boot/compressed/misc.c > > index 42e76c2..069120e 100644 > > --- a/arch/x86/boot/compressed/misc.c > > +++ b/arch/x86/boot/compressed/misc.c > > @@ -393,9 +393,9 @@ asmlinkage __visible void *d

Re: [PATCH] devpts: Add ptmx_uid and ptmx_gid options

2016-03-07 Thread Andy Lutomirski
On Thu, May 28, 2015 at 12:42 PM, Eric W. Biederman wrote: > Andy Lutomirski writes: > >> On Thu, May 28, 2015 at 10:01 AM, Alexander Larsson wrote: >>> On Thu, 2015-05-28 at 11:44 -0500, Eric W. Biederman wrote: Andy Lutomirski writes: > On Thu, Apr 2, 2015 at 11:27 AM, Eric W.

Re: [PATCH v3 05/19] x86, boot: Fix run_size calculation

2016-03-07 Thread Baoquan He
On 03/07/16 at 03:10pm, Kees Cook wrote: > On Fri, Mar 4, 2016 at 8:25 AM, Baoquan He wrote: > > From: Yinghai Lu > > > > Firstly, current run_size is calculated via shell script > > arch/x86/tools/calc_run_size.sh. It gets file offset and mem size of section > > .bss and .brk in vmlinux, then ad

Re: Kernel docs: muddying the waters a bit

2016-03-07 Thread Russel Winder
On Fri, 2016-03-04 at 09:46 +0200, Jani Nikula wrote: > […] > If we're talking about the same asciidoctor (http://asciidoctor.org/) > it's written in ruby but you can apparently run it in JVM using > JRuby. Calling it Java-based is misleading. Indeed, I was somewhat imprecise. Thanks to the work m

Re: [PATCH] mfd: act8945a: fix platform_no_drv_owner.cocci warnings

2016-03-07 Thread Lee Jones
On Tue, 08 Mar 2016, Yang, Wenyou wrote: > Hi Fengguang Wu, > > Thank you for your patch. > > > -Original Message- > > From: kbuild test robot [mailto:l...@intel.com] > > Sent: 2016年3月8日 7:54 > > To: Yang, Wenyou > > Cc: kbuild-...@01.org; Lee Jones ; Rob Herring > > ; Pawel Moll ; Mark

Re: [PATCH v3 02/19] x86, boot: Move compressed kernel to end of buffer before decompressing

2016-03-07 Thread Baoquan He
Hi Kees, Many thanks for your review and suggestions! On 03/07/16 at 02:35pm, Kees Cook wrote: > > Current code uses extract_offset to decide the copied ZO position, it > > put ZO starting from extract_offset. When INIT_SIZE is bigger than > > VO_INIT_SIZE copied ZO occupies space from extract_of

Re: [PATCH v1 1/1] mfd: intel-lpss: save register context on suspend

2016-03-07 Thread Lee Jones
On Tue, 26 Jan 2016, Andy Shevchenko wrote: > From: Heikki Krogerus > > All configurations are lost and the registers will have > default values when the hardware is suspended and resumed, > so saving the private register space context on suspend, and > restoring it on resume. > > Fixes: 4b45ef

Re: [PATCH V14 8/9] vfio, platform: add support for ACPI while detecting the reset driver

2016-03-07 Thread Eric Auger
Hi Sinan, On 03/07/2016 04:30 PM, Sinan Kaya wrote: > On 3/6/2016 11:09 PM, Eric Auger wrote: >>> #define module_vfio_reset_handler(compat, acpihid, reset) \ MODULE_ALIAS("vfio-reset:" acpihid? acpihid: compat); \ This way, we'll create an alias w

Re: [PATCH] gpio: xgene: Fix kconfig for standby GIPO contoller

2016-03-07 Thread Quan Nguyen
On Mon, Mar 7, 2016 at 5:47 PM, Matthias Brugger wrote: > > > On 07/03/16 08:41, Linus Walleij wrote: >> >> On Fri, Mar 4, 2016 at 6:42 PM, Matthias Brugger >> wrote: >> >>> The standby GPIO controller can be used as a interrupt controller. >>> Select GPIOLIB_IRQCHIP when compiling this driver. O

Re: [PATCH v2 7/7] mfd: intel_vuport: Add Intel virtual USB port MFD Driver

2016-03-07 Thread Lee Jones
On Mon, 07 Mar 2016, Lu Baolu wrote: > Some Intel platforms have an USB port mux controlled by GPIOs. > There's a single ACPI platform device that provides both USB ID > extcon device and a USB port mux device. This MFD driver will > split the 2 devices for their respective drivers. > > Signed-of

RE: [PATCH v4 4/7] Documentation: fsl-quadspi: Add fsl,ls2080a-dspi compatible string

2016-03-07 Thread Yao Yuan
On Tue, Mar 08, 2016 at 4:32AM, Brian Norris wrote: > On Tue, Jan 26, 2016 at 03:23:58PM +0800, Yuan Yao wrote: > > new compatible string: "fsl,ls2080a-qspi". > > ^^ This line doesn't match the subject or the content of the patch. > > > Signed-off-by: Yuan Yao > > Acked-by: Rob Herring > > ---

Re: [PATCH] gpio: xgene: Fix kconfig for standby GIPO contoller

2016-03-07 Thread Quan Nguyen
On Fri, Mar 4, 2016 at 5:59 PM, Matthias Brugger wrote: > The standby GPIO controller can be used as a interrupt controller. > Select GPIOLIB_IRQCHIP when compiling this driver. Otherwise we get > a compilation error: > > drivers/gpio/gpio-xgene-sb.c: In function 'xgene_gpio_sb_probe': > drivers/g

Re: [PATCH 05/14] mfd: ipaq-micro: use __maybe_unused to hide pm functions

2016-03-07 Thread Lee Jones
On Wed, 02 Mar 2016, Arnd Bergmann wrote: > The ipaq-micro driver uses SET_SYSTEM_SLEEP_PM_OPS() to > remove the reference to its resume function, but does > not use an #ifdef around the definition, so we get > a build warning: > > drivers/mfd/ipaq-micro.c:379:12: error: 'micro_resume' defined bu

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread David Miller
From: Khalid Aziz Date: Mon, 7 Mar 2016 17:21:05 -0700 > Can we enable ADI support for swappable pages in a subsequent update > after the core functionality is stable on mlock'd pages? I already said no.

Re: [PATCH] Fix NULL ptr dereference in pci_bus_assign_domain_nr() on ARM

2016-03-07 Thread Bjorn Helgaas
On Tue, Mar 08, 2016 at 03:01:20AM +, Lorenzo Pieralisi wrote: > On Mon, Mar 07, 2016 at 04:33:11PM -0600, Bjorn Helgaas wrote: > > [+cc Lorenzo] > > > > On Tue, Mar 01, 2016 at 07:07:18AM +0100, Krzysztof Ha??asa wrote: > > > Many ARM platforms use a wrapper: > > > /* > > > * Compatibility w

Re: [PATCH 1/4] mfd: max77686: Add max77802 to I2C device ID table

2016-03-07 Thread Lee Jones
On Fri, 12 Feb 2016, Javier Martinez Canillas wrote: > The max77686 MFD driver supports both the Maxim 77686 and Maxim 77802 > PMICs but only the OF device table contains entries for both devices. > > The max77802 entry is missing in the I2C device ID table which isn't > a problem currently since

Re: [PATCH 4/4] mfd: max77686: Export OF module alias information

2016-03-07 Thread Lee Jones
On Fri, 12 Feb 2016, Javier Martinez Canillas wrote: > When the device is registered via OF, the OF table is used to match the > driver instead of the I2C device ID table but the entries in the latter > are used as aliasses to load the module if the driver was not built-in. > > This is because th

Re: [RESEND PATCH v4 0/8] i2c: Relax mandatory I2C ID table passing

2016-03-07 Thread Lee Jones
On Mon, 12 Oct 2015, Kieran Bingham wrote: > Hi Wolfram, > > On 9 October 2015 at 22:16, Wolfram Sang wrote: > > > > As said to Kieran personally in Dublin, I want a verification that all > > binding methods still work, especially runtime instantiation for drivers > > without i2c_device_ids. >

Re: user namespace and fully visible proc and sys mounts

2016-03-07 Thread Eric W. Biederman
Andy Lutomirski writes: > On Mon, Mar 7, 2016 at 4:07 PM, Eric W. Biederman > wrote: >> Andy Lutomirski writes: >> >>> On a related note, can we *please* find a way to constrain namespace >>> creation in a way that might satisfy the RHEL crowd? >> >> I am not certain to what you are referrring

Re: [PATCH net] sctp: fix copying more bytes than expected in sctp_add_bind_addr

2016-03-07 Thread David Miller
From: Marcelo Ricardo Leitner Date: Mon, 7 Mar 2016 20:27:11 -0300 > Hi, > > Em 07-03-2016 20:17, kbuild test robot escreveu: >> Hi Marcelo, >> >> [auto build test WARNING on net/master] >> >> url: >> https://github.com/0day-ci/linux/commits/Marcelo-Ricardo-Leitner/sctp-fix-copying-more-bytes-th

Re: [PATCH v2] sparc64: Add support for Application Data Integrity (ADI)

2016-03-07 Thread David Miller
From: Rob Gardner Date: Mon, 7 Mar 2016 15:13:31 -0800 > You can easily read ADI tags with a simple ldxa #ASI_MCD_PRIMARY > instruction. Awesome!

Re: [PATCH 3/4] mfd: max77686: Allow driver to be built as a module

2016-03-07 Thread Lee Jones
On Fri, 12 Feb 2016, Javier Martinez Canillas wrote: > The driver's Kconfig symbol is a boolean but nothing prevents the driver > to be built as a module instead of built-in. It is true that most system > integrators will choose the latter but the config should not restrict it. > > Signed-off-by:

Re: [RESEND RFC 2/3] nvmem: Add 'nvmem-blob' driver

2016-03-07 Thread Andrey Smirnov
>> > >> > Patch itself looks simple. Before we review it further could you provide >> > more details on the exact usecase or some background of this. >> >> The discussion on this topic originated on mailing list of Barebox >> project(which borrows very heavily from Linux designs). Barebox >> operat

Re: [PATCH 01/11] rxrpc: Add a common object cache

2016-03-07 Thread David Miller
From: David Howells Date: Mon, 07 Mar 2016 22:45:14 + > David Miller wrote: > >> I know you put a lot of time and effort into this, but I want to strongly >> recommend against a garbage collected hash table for anything whatsoever. >> >> Especially if the given objects are in some way crea

Re: [PATCH] dmaengine: pl330: Fix some race conditions in residue calculation

2016-03-07 Thread Vinod Koul
On Wed, Feb 24, 2016 at 01:14:34PM +, Jon Medhurst (Tixy) wrote: > The residue calculation in pl330_tx_status doesn't handle transitional > states that occur at the time one descriptor (A) is completed and the > next (B) is started. Specifically, both A and B can simultaneously be in > the BUSY

  1   2   3   4   5   6   7   8   9   10   >