[PATCH 1/2] perf tools: Check kptr_restrict for root

2016-05-24 Thread Wang Nan
If kptr_restrict is set to 2, even root is not allowed to see pointers. This patch checks kptr_restrict even if euid == 0. For root, report error if kptr_restrict is 2. Signed-off-by: Wang Nan Cc: Arnaldo Carvalho de Melo Cc: Zefan Li Cc: pi3or...@163.com --- tools/perf/util/symbol.c | 16

[PATCH RESEND 6/8] arch: x86: charge page tables to kmemcg

2016-05-24 Thread Vladimir Davydov
Page tables can bite a relatively big chunk off system memory and their allocations are easy to trigger from userspace, so they should be accounted to kmemcg. This patch marks page table allocations as __GFP_ACCOUNT for x86. Note we must not charge allocations of kernel page tables, because they c

Re: [PATCH v2 1/2] pinctrl: Add Oxford Semiconductor OXNAS pinctrl and gpio driver

2016-05-24 Thread Linus Walleij
On Wed, May 11, 2016 at 9:34 AM, Neil Armstrong wrote: > Add pinctrl and gpio control support to Oxford Semiconductor OXNAS SoC Family. > This version supports the ARM926EJ-S based OX810SE SoC with 34 IO pins. > > Signed-off-by: Neil Armstrong Patch applied for the next kernel cycle. Looks clea

Re: [PATCH v2 2/2] dt-bindings: Add Oxford Semiconductor OXNAS pinctrl and gpio bindings

2016-05-24 Thread Linus Walleij
On Wed, May 11, 2016 at 9:34 AM, Neil Armstrong wrote: > Add pinctrl and gpio DT bindings for Oxford Semiconductor OXNAS SoC Family. > This version supports the ARM926EJ-S based OX810SE SoC with 34 IO pins. > > Signed-off-by: Neil Armstrong Patch applied with Rob's ACK. Yours, Linus Walleij

Re: [PATCH] driver: input :touchscreen : add Raydium I2C touch driver

2016-05-24 Thread jeffrey.lin
Hi Dmitry: > > BUILD_BUG_ON((RM_FW_PAGE_SIZE % RM_BL_WRT_PKG_SIZE) != 0); > > for (i = 0; i < RM_FW_PAGE_SIZE / RM_BL_WRT_PKG_SIZE; i++) { > buf[BL_HEADER] = RM_CMD_BOOT_PAGE_WRT; > buf[BL_PAGE_STR] = i ? 0xff : 0; Change to buf[BL_PAGE_STR] = page_idx ? 0xff

[PATCH] PCI/ASPM: Remove redundant check of pcie_set_clkpm

2016-05-24 Thread Shawn Lin
Without supporting clock PM capable, if we want to disable clkpm, we don't need this extra check as it already be zero for the enable argument. And it's the same for enabling clkpm here. So let's remove this check. Signed-off-by: Shawn Lin --- drivers/pci/pcie/aspm.c | 2 +- 1 file changed, 1 i

Linux 3.12.60

2016-05-24 Thread Jiri Slaby
I'm announcing the release of the 3.12.60 kernel. All users of the 3.12 kernel series must upgrade. The updated 3.12.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.12.y and can be browsed at the normal kernel.org git web browser:

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-24 Thread Heikki Krogerus
On Mon, May 23, 2016 at 01:25:19PM +0200, Oliver Neukum wrote: > So for Alternate Modes we need on a high level the following features > > 1. discovery of available Alternate Modes > 2. selection of an Alternate Mode > 3. notification about entering an Alternate Mode > 4. triggering a reset > 5. n

[PATCH 2/2] perf record: Fix crash when kptr is restricted

2016-05-24 Thread Wang Nan
Before this patch, a simple 'perf record' could fail if kptr_restrict is set to 1 (for normal user) or 2 (for root): # perf record ls WARNING: Kernel address maps (/proc/{kallsyms,modules}) are restricted, check /proc/sys/kernel/kptr_restrict. Samples in kernel functions may not be resolved i

Re: [PATCH v2 5/5] usb: dwc3: rockchip: add devicetree bindings documentation

2016-05-24 Thread Felipe Balbi
Hi, William Wu writes: > This patch documents the device tree documentation required for > Rockchip USB3.0 core wrapper consist of USB3.0 IP from Synopsys. > > It could operate in device mode (SS, HS, FS) and host > mode (SS, HS, FS, LS). > > Signed-off-by: William Wu > --- > Changes in v2: > -

Re: [PATCH v2 1/2] pinctrl: Add Oxford Semiconductor OXNAS pinctrl and gpio driver

2016-05-24 Thread Linus Walleij
On Wed, May 11, 2016 at 9:34 AM, Neil Armstrong wrote: > Add pinctrl and gpio control support to Oxford Semiconductor OXNAS SoC Family. > This version supports the ARM926EJ-S based OX810SE SoC with 34 IO pins. > > Signed-off-by: Neil Armstrong I tried implementing a .get_direction() callback fo

[RFC PATCH V3 2/3] vhost: convert pre sorted vhost memory array to interval tree

2016-05-24 Thread Jason Wang
Current pre-sorted memory region array has some limitations for future device IOTLB conversion: 1) need extra work for adding and removing a single region, and it's expected to be slow because of sorting or memory re-allocation. 2) need extra work of removing a large range which may intersect

[RFC PATCH V3 1/3] vhost: introduce vhost memory accessors

2016-05-24 Thread Jason Wang
This patch introduces vhost memory accessors which were just wrappers for userspace address access helpers. This is a requirement for vhost device iotlb implementation which will add iotlb translations in those accessors. Signed-off-by: Jason Wang --- drivers/vhost/net.c | 1 + drivers/vhost/

[RFC PATCH V3 3/3] vhost: device IOTLB API

2016-05-24 Thread Jason Wang
This patch tries to implement an device IOTLB for vhost. This could be used with for co-operation with userspace(qemu) implementation of DMA remapping. The idea is simple, cache the translation in a software device IOTLB (interval tree) implementation in vhost and make vhost_net file descriptor co

[RFC PATCH V3 0/3] basic device IOTLB support

2016-05-24 Thread Jason Wang
This patch tries to implement an device IOTLB for vhost. This could be used with for co-operation with userspace IOMMU implementation (qemu) for a secure DMA environment (DMAR) in guest. The idea is simple. When vhost meets an IOTLB miss, it will request the assistance of userspace to do the trans

Re: [PATCH v8 5/5] usb: dwc3: core: cleanup IRQ resources

2016-05-24 Thread Felipe Balbi
Hi, Roger Quadros writes: > Implementations might use different IRQs for > host, gadget and OTG so use named interrupt resources > to allow Device tree to specify the 3 interrupts. > > Following are the interrupt names > > Peripheral Interrupt - peripheral > HOST Interrupt - host > OTG Interrupt

Re: [PATCH v2 1/2] pinctrl: Add Oxford Semiconductor OXNAS pinctrl and gpio driver

2016-05-24 Thread Neil Armstrong
On 05/24/2016 11:35 AM, Linus Walleij wrote: > On Wed, May 11, 2016 at 9:34 AM, Neil Armstrong > wrote: > >> Add pinctrl and gpio control support to Oxford Semiconductor OXNAS SoC >> Family. >> This version supports the ARM926EJ-S based OX810SE SoC with 34 IO pins. >> >> Signed-off-by: Neil Arm

Re: [PATCH v2 2/3] drm/arm: Add support for Mali Display Processors

2016-05-24 Thread Liviu Dudau
On Tue, May 24, 2016 at 01:01:33AM +0100, Emil Velikov wrote: > Hi Liviu, Hi Emil, Thank you very much for taking your time to review this. > > Humble request: For the future please split things into manageable > hunks. I doubt you wrote the whole thing in one go, right ? Actually, I did, beca

Re: [PATCH v8 08/14] usb: otg: add OTG/dual-role core

2016-05-24 Thread Roger Quadros
Hi Peter, I have one question here. Please see below. On 13/05/16 13:03, Roger Quadros wrote: > It provides APIs for the following tasks > > - Registering an OTG/dual-role capable controller > - Registering Host and Gadget controllers to OTG core > - Providing inputs to and kicking the OTG state

Re: [PATCH] dma: rcar-dmac: use list_add() on rcar_dmac_desc_put()

2016-05-24 Thread Laurent Pinchart
Hi Vinod, On Saturday 14 May 2016 13:27:31 Vinod Koul wrote: > On Fri, Apr 22, 2016 at 01:50:04AM +, Kuninori Morimoto wrote: > > From: Kuninori Morimoto > > > > Current rcar_dmac_desc_put() is using list_add_tail() in order to > > push used descriptor to list of free descriptors, and next D

Re: [PATCH] x86/traps: Don't for in_interrupt() to return true in IST handlers

2016-05-24 Thread Peter Zijlstra
@Andy, its linux-kernel@vger, not lkml@vger :-) On Tue, May 24, 2016 at 11:36:29AM +0200, Borislav Petkov wrote: > On Tue, May 24, 2016 at 10:59:45AM +0200, Peter Zijlstra wrote: > > Which use a sequence of: in_nmi(), in_irq(), in_softirq() to pick 1 out > > of 4 possible contexts. > > So should

RE: [PATCH RFC kernel] balloon: speed up inflating/deflating process

2016-05-24 Thread Li, Liang Z
> On Fri, May 20, 2016 at 05:59:46PM +0800, Liang Li wrote: > > The implementation of the current virtio-balloon is not very > > efficient, Bellow is test result of time spends on inflating the > > balloon to 3GB of a 4GB idle guest: > > > > a. allocating pages (6.5%, 103ms) > > b. sending PFNs to

Re: [git pull] check headers fix.

2016-05-24 Thread Jani Nikula
On Tue, 24 May 2016, Christoph Hellwig wrote: > On Tue, May 24, 2016 at 07:29:25AM +0100, Dave Airlie wrote: >> >> Hi Linus, >> >> here is the C++ guards warning fix from Arnd. > > So why the hell do we have C++ guards in kernel headers? uapi headers. See [1] for the cover letter to the patches

[RFC PATCH] sched: fix hierarchical order in rq->leaf_cfs_rq_list

2016-05-24 Thread Vincent Guittot
Fix the insertion of cfs_rq in rq->leaf_cfs_rq_list to ensure that a child will always called before its parent. The hierarchical order in shares update list has been introduced by commit 67e86250f8ea ("sched: Introduce hierarchal order on shares update list") With the current implementation a ch

RE: [PATCH RFC kernel] balloon: speed up inflating/deflating process

2016-05-24 Thread Li, Liang Z
> > On Fri, May 20, 2016 at 05:59:46PM +0800, Liang Li wrote: > > > The implementation of the current virtio-balloon is not very > > > efficient, Bellow is test result of time spends on inflating the > > > balloon to 3GB of a 4GB idle guest: > > > > > > a. allocating pages (6.5%, 103ms) > > > b. se

[RFC PATCH v2] sched: reflect sched_entity movement into task_group's utilization

2016-05-24 Thread Vincent Guittot
Ensure that the changes of the utilization of a sched_entity will be reflected in the task_group hierarchy. This patch tries another way than the flat utilization hierarchy proposal to ensure the changes will be propagated down to the root cfs. The way to compute the sched average metrics stays t

mmotm git tree since-4.6 branch created (was: mmotm 2016-05-23-16-51 uploaded)

2016-05-24 Thread Michal Hocko
I have just created since-4.6 branch in mm git tree (http://git.kernel.org/?p=linux/kernel/git/mhocko/mm.git;a=summary). It is based on v4.6 tag in Linus tree and mmotm-2016-05-23-16-51. As usual mmotm trees are tagged with signed tag (finger print BB43 1E25 7FB8 660F F2F1 D22D 48E2 09A2 B310 E347

Re: [PATCH v2 4/5] iommu/mediatek: add support for mtk iommu generation one HW

2016-05-24 Thread Honghui Zhang
Hi, Robin, Thanks very much for your comments. On Mon, 2016-05-23 at 20:31 +0100, Robin Murphy wrote: > On 19/05/16 12:49, honghui.zh...@mediatek.com wrote: > > From: Honghui Zhang > > > > Mediatek SoC's M4U has two generations of HW architcture. Generation one > > uses flat, one layer pagetable,

Re: [PATCH v5 3/5] mmc: core: implement enhanced strobe support

2016-05-24 Thread Jaehoon Chung
On 05/23/2016 01:13 PM, Shawn Lin wrote: > Controllers use data strobe line to latch data from devices > under hs400 mode, but not for cmd line. So since emmc 5.1, JEDEC > introduces enhanced strobe mode for latching cmd response from > emmc devices to host controllers. This new feature is optional

Re: [PATCH 4/5] iommu/rockchip: add ARM64 cache flush operation for iommu

2016-05-24 Thread Catalin Marinas
On Tue, May 24, 2016 at 10:31:17AM +0800, Shunqian Zheng wrote: > On 2016年05月23日 21:35, Catalin Marinas wrote: > >On Mon, May 23, 2016 at 11:44:14AM +0100, Robin Murphy wrote: > >>On 23/05/16 02:37, Shunqian Zheng wrote: > >>>From: Simon > >>> > >>>Signed-off-by: Simon > >>>--- > >>> drivers/iom

[PATCH] pinctrl: oxnas: Add GPIO get_direction

2016-05-24 Thread Neil Armstrong
Implement a get_direction callback for the OXNAS GPIO driver in order to have pin output polarity in debugfs and new userspace ABI. Signed-off-by: Neil Armstrong --- drivers/pinctrl/pinctrl-oxnas.c | 11 +++ 1 file changed, 11 insertions(+) Linus, Sorry, I should have implemented it ea

Re: [PATCH] mm: memcontrol: fix possible css ref leak on oom

2016-05-24 Thread Vladimir Davydov
On Tue, May 24, 2016 at 11:22:02AM +0200, Michal Hocko wrote: > On Tue 24-05-16 12:01:42, Vladimir Davydov wrote: > > On Tue, May 24, 2016 at 10:47:37AM +0200, Michal Hocko wrote: > > > On Tue 24-05-16 11:43:19, Vladimir Davydov wrote: > > > > On Mon, May 23, 2016 at 07:44:43PM +0200, Michal Hocko

Re: [PATCH RFC kernel] balloon: speed up inflating/deflating process

2016-05-24 Thread Michael S. Tsirkin
On Tue, May 24, 2016 at 09:51:46AM +, Li, Liang Z wrote: > > On Fri, May 20, 2016 at 05:59:46PM +0800, Liang Li wrote: > > > The implementation of the current virtio-balloon is not very > > > efficient, Bellow is test result of time spends on inflating the > > > balloon to 3GB of a 4GB idle gue

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-24 Thread Heikki Krogerus
Hi Guenter, On Mon, May 23, 2016 at 09:52:12AM -0700, Guenter Roeck wrote: > On Mon, May 23, 2016 at 05:55:04PM +0200, Oliver Neukum wrote: > > On Mon, 2016-05-23 at 07:43 -0700, Guenter Roeck wrote: > > > On 05/23/2016 06:58 AM, Oliver Neukum wrote: > > > > > > Now I am confused. Are you saying

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-24 Thread Daniel Thompson
On 24/05/16 09:50, Maxime Coquelin wrote: diff --git a/drivers/char/hw_random/stm32-rng.c b/drivers/char/hw_random/stm32-rng.c index 92a810648bd0..2a0fc90e4dc3 100644 --- a/drivers/char/hw_random/stm32-rng.c +++ b/drivers/char/hw_random/stm32-rng.c @@ -68,6 +68,10 @@ static int stm32_rng_read(str

[PATCH] mm: fix build problems from lookup_page_ext

2016-05-24 Thread Arnd Bergmann
A patch for lookup_page_ext introduced several build errors and warnings, e.g. mm/page_owner.c: In function '__set_page_owner': mm/page_owner.c:71:2: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] include/linux/page_idle.h: In function 'set_page_young': i

Re: [PATCH 1/2] drm/rockchip: vop: Do check if an update is pending during disable

2016-05-24 Thread Tomeu Vizoso
On 23 May 2016 at 08:32, Mark yao wrote: > On 2016年05月05日 17:34, Tomeu Vizoso wrote: >> >> On 20 April 2016 at 16:23, Tomeu Vizoso >> wrote: >>> >>> On 11 April 2016 at 03:15, Mark yao wrote: On 2016年04月08日 18:54, Tomeu Vizoso wrote: > > On 8 April 2016 at 03:07, Mark yao wrot

Re: [git pull] check headers fix.

2016-05-24 Thread Daniel Vetter
On Tue, May 24, 2016 at 11:52 AM, Jani Nikula wrote: > On Tue, 24 May 2016, Christoph Hellwig wrote: >> On Tue, May 24, 2016 at 07:29:25AM +0100, Dave Airlie wrote: >>> >>> Hi Linus, >>> >>> here is the C++ guards warning fix from Arnd. >> >> So why the hell do we have C++ guards in kernel header

Re: [PATCH v5 3/5] mmc: core: implement enhanced strobe support

2016-05-24 Thread Shawn Lin
在 2016/5/24 17:57, Jaehoon Chung 写道: On 05/23/2016 01:13 PM, Shawn Lin wrote: Controllers use data strobe line to latch data from devices under hs400 mode, but not for cmd line. So since emmc 5.1, JEDEC introduces enhanced strobe mode for latching cmd response from emmc devices to host controlle

Re: [PATCH] ACPI: Execute the _PTS method when system reboot

2016-05-24 Thread Prarit Bhargava
On 05/24/2016 02:41 AM, Ocean HY1 He wrote: > Hi Prarit and Jon, > > How do you think of this? > > Thanks. > > Ocean He / 何海洋 > SW Development Dept. > Beijing Design Center > Enterprise Product Group > Mobile: 18911778926 > E-mail: he...@lenovo.com > No.6 Chuang Ye Road, Haidian District, Bei

Re: [RFC PATCH v2 1/3] arch/powerpc : Add detour buffer support for optprobes

2016-05-24 Thread Madhavan Srinivasan
On Thursday 19 May 2016 08:40 PM, Anju T wrote: > Detour buffer contains instructions to create an in memory pt_regs. > After the execution of prehandler a call is made for instruction emulation. > The NIP is decided after the probed instruction is executed. Hence a branch > instruction is create

Re: [PATCH v5 3/5] mmc: core: implement enhanced strobe support

2016-05-24 Thread Jaehoon Chung
On 05/24/2016 07:11 PM, Shawn Lin wrote: > 在 2016/5/24 17:57, Jaehoon Chung 写道: >> On 05/23/2016 01:13 PM, Shawn Lin wrote: >>> Controllers use data strobe line to latch data from devices >>> under hs400 mode, but not for cmd line. So since emmc 5.1, JEDEC >>> introduces enhanced strobe mode for la

Re: [PATCH v2 05/10] drm/rockchip: analogix_dp: add rk3399 eDP support

2016-05-24 Thread Heiko Stuebner
Am Dienstag, 24. Mai 2016, 14:57:23 schrieb Yakir Yang: > RK3399 and RK3288 shared the same eDP IP controller, only some light > difference with VOP configure and GRF configure. > > Signed-off-by: Yakir Yang > --- > Changes in v2: > - rebase with drm-next, fix some conflicts > > .../bindings/di

Re: [PATCH v5 2/5] mmc: core: add mmc-hs400-enhanced-strobe support

2016-05-24 Thread Jaehoon Chung
On 05/23/2016 01:13 PM, Shawn Lin wrote: > This patch introduce mmc-hs400-enhanced-strobe for platforms > which want to enable enhanced strobe function from DT if the > mmc host controller claims to support enhanced strobe. > > Signed-off-by: Shawn Lin Tested-by: Jaehoon Chung Best Regards, Ja

Re: [PATCH v5 4/5] mmc: debugfs: add HS400 enhanced strobe description

2016-05-24 Thread Jaehoon Chung
On 05/23/2016 01:14 PM, Shawn Lin wrote: > We introduce HS400 with enhanced strobe function, so we need > to add it for debug show. > > Signed-off-by: Shawn Lin Tested-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > Changes in v5: None > Changes in v4: None > Changes in v3: None > Ch

Re: [RESEND PATCH] [media] s5p-mfc: don't close instance after free OUTPUT buffers

2016-05-24 Thread Marek Szyprowski
Hello, On 2016-05-07 00:11, Javier Martinez Canillas wrote: From: ayaka User-space applications can use the VIDIOC_REQBUFS ioctl to determine if a memory mapped, user pointer or DMABUF based I/O is supported by the driver. So a set of VIDIOC_REQBUFS ioctl calls will be made with count 0 and

Re: [PATCH] spinlock: Get rid of spin_can_lock()

2016-05-24 Thread Peter Zijlstra
On Mon, May 23, 2016 at 06:54:02AM -0700, Davidlohr Bueso wrote: > ... it has no users and we already have the the regular spin_is_lock() > call anyway -- although iirc this was going to be different > than the simple negation for lock elision implementations. Lets drop it. > > Signed-off-by: Davi

Re: [PATCH 0/3] [media] s5p-mfc: Fixes for issues when module is removed

2016-05-24 Thread Marek Szyprowski
Hello, On 2016-05-03 22:27, Javier Martinez Canillas wrote: Hello, This patch series fixes some issues that I noticed when trying to remove the s5p-mfc driver when built as a module. Some of these issues will be fixed once Marek's patches to convert the custom memory region reservation code i

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-24 Thread Oliver Neukum
On Tue, 2016-05-24 at 13:08 +0300, Heikki Krogerus wrote: > Hi Guenter, > > On Mon, May 23, 2016 at 09:52:12AM -0700, Guenter Roeck wrote: > > On Mon, May 23, 2016 at 05:55:04PM +0200, Oliver Neukum wrote: > > > On Mon, 2016-05-23 at 07:43 -0700, Guenter Roeck wrote: > > > > On 05/23/2016 06:58 AM

[PATCH RESEND 8/8] af_unix: charge buffers to kmemcg

2016-05-24 Thread Vladimir Davydov
Unix sockets can consume a significant amount of system memory, hence they should be accounted to kmemcg. Since unix socket buffers are always allocated from process context, all we need to do to charge them to kmemcg is set __GFP_ACCOUNT in sock->sk_allocation mask. Signed-off-by: Vladimir Davyd

Re: [PATCH] i2c_hid: enable i2c-hid devices to suspend/resume asynchronously

2016-05-24 Thread Jiri Kosina
On Thu, 19 May 2016, Fu, Zhonghui wrote: > i2c-hid devices' suspend/resume are usually time-consuming process. > For example, the touch controller(i2c-ATML1000:00) on ASUS T100 tablet > takes about 160ms for suspending and 120ms for resuming. This patch > enables i2c-hid devices to suspend/resume

Re: [PATCH v3 7/9] powerpc/powernv: Add platform support for stop instruction

2016-05-24 Thread Gautham R Shenoy
Hi Shreyas, On Mon, May 23, 2016 at 08:48:40PM +0530, Shreyas B. Prabhu wrote: > @@ -412,7 +517,8 @@ subcore_state_restored: > first_thread_in_core: > > /* > - * First thread in the core waking up from fastsleep. It needs to > + * First thread in the core waking up from any state

Re: [PATCH v5 3/5] mmc: core: implement enhanced strobe support

2016-05-24 Thread Shawn Lin
在 2016/5/24 18:15, Jaehoon Chung 写道: On 05/24/2016 07:11 PM, Shawn Lin wrote: 在 2016/5/24 17:57, Jaehoon Chung 写道: On 05/23/2016 01:13 PM, Shawn Lin wrote: Controllers use data strobe line to latch data from devices under hs400 mode, but not for cmd line. So since emmc 5.1, JEDEC introduces en

Re: [PATCH v5 2/2] skb_array: ring test

2016-05-24 Thread Jesper Dangaard Brouer
On Mon, 23 May 2016 23:52:47 +0300 "Michael S. Tsirkin" wrote: > On Mon, May 23, 2016 at 03:09:18PM +0200, Jesper Dangaard Brouer wrote: > > On Mon, 23 May 2016 13:43:46 +0300 > > "Michael S. Tsirkin" wrote: > > > > > Add ringtest based unit test for skb array. > > > > > > Signed-off-by: Mich

Re: [PATCH 06/16] sched: Disable WAKE_AFFINE for asymmetric configurations

2016-05-24 Thread Morten Rasmussen
On Tue, May 24, 2016 at 11:10:28AM +0200, Vincent Guittot wrote: > On 23 May 2016 at 12:58, Morten Rasmussen wrote: > > If the system has cpu of different compute capacities (e.g. big.LITTLE) > > let affine wakeups be constrained to cpus of the same type. > > Can you explain why you don't want wa

Re: [PATCH v5 2/2] skb_array: ring test

2016-05-24 Thread Michael S. Tsirkin
On Tue, May 24, 2016 at 12:28:09PM +0200, Jesper Dangaard Brouer wrote: > On Mon, 23 May 2016 23:52:47 +0300 > "Michael S. Tsirkin" wrote: > > > On Mon, May 23, 2016 at 03:09:18PM +0200, Jesper Dangaard Brouer wrote: > > > On Mon, 23 May 2016 13:43:46 +0300 > > > "Michael S. Tsirkin" wrote: > >

Re: [PATCH v3 8/9] cpuidle/powernv: Add support for POWER ISA v3 idle states

2016-05-24 Thread Gautham R Shenoy
On Mon, May 23, 2016 at 08:48:41PM +0530, Shreyas B. Prabhu wrote: > POWER ISA v3 defines a new idle processor core mechanism. In summary, > a) new instruction named stop is added. > b) new per thread SPR named PSSCR is added which controls the behavior > of stop instruction. > > Supported

RE: [PATCH RFC kernel] balloon: speed up inflating/deflating process

2016-05-24 Thread Li, Liang Z
> > > > { > > > > - struct scatterlist sg; > > > > unsigned int len; > > > > > > > > - sg_init_one(&sg, vb->pfns, sizeof(vb->pfns[0]) * vb->num_pfns); > > > > + if (virtio_has_feature(vb->vdev, > > > VIRTIO_BALLOON_F_PAGE_BITMAP)) { > > > > + u32 page_shift

Re: [PATCH v10 0/2] gpio: add DT support for memory-mapped GPIOs

2016-05-24 Thread Linus Walleij
On Fri, May 13, 2016 at 11:07 PM, Christian Lamparter wrote: > v9 -> v10: > - split "gpio: mmio: add DT support for memory-mapped GPIOs" > into two parts. > - PATCH 1/2 adds the DT infrastructure > - PATCH 2/2 adds the "wd,mbl-gpio" driver binding

[PATCH] genirq: Fix missing return value in irq_destroy_ipi()

2016-05-24 Thread Matt Redfearn
Commit 7cec18a3906b ("genirq: Add error code reporting to irq_{reserve,destroy}_ipi") changed the return type of irq_destroy_ipi to int, but missed adding a value to one return statement. Fix this to silence the resultant compiler warning: kernel/irq/ipi.c In function ‘irq_destroy_ipi’: kernel/irq

Re: [PATCH V7 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-24 Thread Jon Hunter
On 23/05/16 10:03, Jon Hunter wrote: > > On 20/05/16 15:45, Laxman Dewangan wrote: >> The IO pins of Tegra SoCs are grouped for common control of IO >> interface like setting voltage signal levels and power state of >> the interface. The group is generally referred as IO pads. The >> power state

[GIT PULL] spi updates for v4.7

2016-05-24 Thread Mark Brown
The following changes since commit 2dcd0af568b0cf583645c8a317dd12e344b1c72a: Linux 4.6 (2016-05-15 15:43:13 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git tags/spi-v4.7 for you to fetch changes up to c4e85b7e6ff71a130710692fcb8da

Re: [PATCH v2 2/2] ASoC: da7219: Convert driver to use generic device/fwnode functions

2016-05-24 Thread Andy Shevchenko
On Mon, 2016-05-23 at 22:53 +, Opensource [Adam Thomson] wrote: > On May 19, 2015 14:28, Andy Shevchenko wrote: > > > > -static struct da7219_aad_pdata *da7219_aad_of_to_pdata(struct > > > snd_soc_codec *codec) > > > +static struct da7219_aad_pdata *da7219_aad_fw_to_pdata(struct > > > snd_soc_

Re: [PATCH v2 2/3] drm/arm: Add support for Mali Display Processors

2016-05-24 Thread Daniel Vetter
On Tue, May 24, 2016 at 10:43:28AM +0100, Liviu Dudau wrote: > On Tue, May 24, 2016 at 01:01:33AM +0100, Emil Velikov wrote: > > Hi Liviu, > > Hi Emil, > > Thank you very much for taking your time to review this. > > > > > Humble request: For the future please split things into manageable > > h

Re: sem_lock() vs qspinlocks

2016-05-24 Thread Peter Zijlstra
On Sat, May 21, 2016 at 03:49:20PM +0200, Manfred Spraul wrote: > >I'm tempted to put that trailing smp_rmb() in spin_unlock_wait() too; > >because I suspect the netfilter code is broken without it. > > > >And it seems intuitive to assume that if we return from unlock_wait() we > >can indeed obser

Re: [PATCH] hwrng: stm32 - fix build warning

2016-05-24 Thread Maxime Coquelin
2016-05-24 12:09 GMT+02:00 Daniel Thompson : > On 24/05/16 09:50, Maxime Coquelin wrote: >> >> diff --git a/drivers/char/hw_random/stm32-rng.c >> b/drivers/char/hw_random/stm32-rng.c >> index 92a810648bd0..2a0fc90e4dc3 100644 >> --- a/drivers/char/hw_random/stm32-rng.c >> +++ b/drivers/char/hw_rand

Re: [PATCH 6/6] pinctrl: mt8173: set GPIO16 to usb iddig mode

2016-05-24 Thread Linus Walleij
On Thu, May 12, 2016 at 4:55 AM, Hongzhou Yang wrote: > We find there are some other pins still have the same problem, so please > hold on it. Sorry for so much noise. It's OK. Get me a big patch fixing it all when you're combed through things and we can apply it for fixes/stable. Yours, Linus

[PATCH] mm: oom: do not reap task if there are live threads in threadgroup

2016-05-24 Thread Vladimir Davydov
If the current process is exiting, we don't invoke oom killer, instead we give it access to memory reserves and try to reap its mm in case nobody is going to use it. There's a mistake in the code performing this check - we just ignore any process of the same thread group no matter if it is exiting

Re: [PATCH ] pinctrl: tegra: Get rid of parked_reg

2016-05-24 Thread Linus Walleij
On Thu, May 12, 2016 at 3:42 PM, Laxman Dewangan wrote: > Remove the use of parked_reg and use parked_bit for to know > whether field is supported or not. > > This is fix for the patch > commit 1d18a3f0f0809f6c71f1f6e9e268ee904ce0b588 > "pinctrl: tegra: avoid parked_reg and parked_bank > > Signed

Re: [PATCH 0/2] pinctrl: stm32: .pin_config_dbg_show fixes

2016-05-24 Thread Linus Walleij
On Thu, May 12, 2016 at 4:46 PM, wrote: > From: Patrice Chotard > > Patrice Chotard (2): > pinctrl: stm32: fix warning > pinctrl: stm32: factorize stm32_pconf_input/output_get() Patrice, can you rebase these two on top of Torvalds' fix and resend? Yours, Linus Walleij

Re: [RFC PATCHv2] usb: USB Type-C Connector Class

2016-05-24 Thread Heikki Krogerus
On Tue, May 24, 2016 at 12:18:38PM +0200, Oliver Neukum wrote: > On Tue, 2016-05-24 at 13:08 +0300, Heikki Krogerus wrote: > > Hi Guenter, > > > > On Mon, May 23, 2016 at 09:52:12AM -0700, Guenter Roeck wrote: > > > On Mon, May 23, 2016 at 05:55:04PM +0200, Oliver Neukum wrote: > > > > On Mon, 201

Re: [PATCH V12 1/2] gpio: add DT binding doc for gpio of PMIC max77620/max20024

2016-05-24 Thread Linus Walleij
On Fri, May 13, 2016 at 7:19 AM, Laxman Dewangan wrote: > Maxim Semiconductor's PMIC MAX77620/MAX20024 has 8 GPIO pins > which act as GPIO as well as special function mode. > > Add DT binding document to support these pins in GPIO > mode via GPIO framework. > > Signed-off-by: Laxman Dewangan > A

[GIT PULL] arch/microblaze changes for 4.7-rc1

2016-05-24 Thread Michal Simek
Hi Linus, please pull these two patches to your tree. Thanks, Michal The following changes since commit 2dcd0af568b0cf583645c8a317dd12e344b1c72a: Linux 4.6 (2016-05-15 15:43:13 -0700) are available in the git repository at: git://git.monstr.eu/linux-2.6-microblaze.git tags/microblaze-4.7

Re: [PATCH V12 2/2] gpio: max77620: add gpio driver for MAX77620/MAX20024

2016-05-24 Thread Linus Walleij
On Fri, May 13, 2016 at 7:19 AM, Laxman Dewangan wrote: > MAXIM Semiconductor's PMIC, MAX77620/MAX20024 has 8 GPIO > pins. It also supports interrupts from these pins. > > Add GPIO driver for these pins to control via GPIO APIs. > > Signed-off-by: Laxman Dewangan > Reviewed-by: Linus Walleij P

[PATCH 1/3] debugfs: remove extra debugfs_create_file_unsafe() declaration

2016-05-24 Thread Nicolai Stange
debugfs_create_file_unsafe() is declared twice in exactly the same manner each: once in fs/debugfs/internal.h and once in include/linux/debugfs.h All files that include the former also include the latter and thus, the declaration in fs/debugfs/internal.h is superfluous. Remove it. Signed-off-by:

[PATCH 3/3] debugfs: open_proxy_open(): avoid double fops release

2016-05-24 Thread Nicolai Stange
Debugfs' open_proxy_open(), the ->open() installed at all inodes created through debugfs_create_file_unsafe(), - grabs a reference to the original file_operations instance passed to debugfs_create_file_unsafe() via fops_get(), - installs it at the file's ->f_op by means of replace_fops() - and ca

[PATCH 0/3] debugfs: fixes to "file removal race" series

2016-05-24 Thread Nicolai Stange
Hi Greg, the recent report by Sasha Levin made me review my debugfs "file removal race" series again. For your reference, the original series in question was posted here: http://lkml.kernel.org/g/1458652280-19785-1-git-send-email-nicsta...@gmail.com It has been merged through your driver-core tre

[PATCH 2/3] debugfs: full_proxy_open(): free proxy on ->open() failure

2016-05-24 Thread Nicolai Stange
Debugfs' full_proxy_open(), the ->open() installed at all inodes created through debugfs_create_file(), - grabs a reference to the original struct file_operations instance passed to debugfs_create_file(), - dynamically allocates a proxy struct file_operations instance wrapping the original - an

Re: [PATCH RFC kernel] balloon: speed up inflating/deflating process

2016-05-24 Thread Michael S. Tsirkin
On Tue, May 24, 2016 at 10:38:43AM +, Li, Liang Z wrote: > > > > > { > > > > > - struct scatterlist sg; > > > > > unsigned int len; > > > > > > > > > > - sg_init_one(&sg, vb->pfns, sizeof(vb->pfns[0]) * vb->num_pfns); > > > > > + if (virtio_has_feature(vb->vdev, > > > > VIRTI

Re: [PATCH 0/2] pinctrl: stm32: .pin_config_dbg_show fixes

2016-05-24 Thread Patrice Chotard
On 05/24/2016 01:04 PM, Linus Walleij wrote: On Thu, May 12, 2016 at 4:46 PM, wrote: From: Patrice Chotard Patrice Chotard (2): pinctrl: stm32: fix warning pinctrl: stm32: factorize stm32_pconf_input/output_get() Patrice, can you rebase these two on top of Torvalds' fix and resend?

[no subject]

2016-05-24 Thread системы администратор
внимания; Ваши сообщения превысил лимит памяти, который составляет 5 Гб, определенных администратором, который в настоящее время работает на 10.9GB, Вы не сможете отправить или получить новую почту, пока вы повторно не проверить ваш почтовый ящик почты. Чтобы восстановить работоспособность Ваше

Re: [RFC PATCH v2 1/3] arch/powerpc : Add detour buffer support for optprobes

2016-05-24 Thread Naveen N. Rao
On 2016/05/19 08:40PM, Anju T wrote: > Detour buffer contains instructions to create an in memory pt_regs. > After the execution of prehandler a call is made for instruction emulation. > The NIP is decided after the probed instruction is executed. Hence a branch > instruction is created to the NIP

Re: [PATCH V12 2/2] gpio: max77620: add gpio driver for MAX77620/MAX20024

2016-05-24 Thread Linus Walleij
On Fri, May 13, 2016 at 7:19 AM, Laxman Dewangan wrote: > MAXIM Semiconductor's PMIC, MAX77620/MAX20024 has 8 GPIO > pins. It also supports interrupts from these pins. > > Add GPIO driver for these pins to control via GPIO APIs. > > Signed-off-by: Laxman Dewangan > Reviewed-by: Linus Walleij P

Re: [PATCH V12 1/2] pinctrl: add DT binding doc for pincontrol of PMIC max77620/max20024

2016-05-24 Thread Linus Walleij
On Fri, May 13, 2016 at 7:19 AM, Laxman Dewangan wrote: > Maxim Semiconductor's PMIC MAX77620/MAX20024 has 8 GPIO pins > which act as GPIO as well as special function mode. > > Add DT binding document to configure pins in function mode as > well as pin configuration parameters. > > Signed-off-by:

[PATCH 1/1] arm64: fix flush_cache_range

2016-05-24 Thread Zhen Lei
When we ran mprotect04(a test case in LTP) infinitely, it would always failed after a few seconds. The case can be described briefly that: copy a empty function from code area into a new memory area(created by mmap), then call mprotect to change the protection to PROT_EXEC. The syscall sys_mprotect

Re: [PATCH V12 2/2] gpio: max77620: add gpio driver for MAX77620/MAX20024

2016-05-24 Thread Laxman Dewangan
On Tuesday 24 May 2016 04:45 PM, Linus Walleij wrote: On Fri, May 13, 2016 at 7:19 AM, Laxman Dewangan wrote: MAXIM Semiconductor's PMIC, MAX77620/MAX20024 has 8 GPIO pins. It also supports interrupts from these pins. Add GPIO driver for these pins to control via GPIO APIs. Signed-off-by: L

Re: [PATCH V3 0/2] Add support for Tegra210 ADMA

2016-05-24 Thread Jon Hunter
Hi Paul, On 24/05/16 04:53, Vinod Koul wrote: > On Fri, May 20, 2016 at 02:51:14PM -0400, Paul Gortmaker wrote: >> On Fri, Oct 16, 2015 at 3:35 AM, Jon Hunter wrote: >>> Add support for the Tegra210 Audio DMA (ADMA) controller. This was >>> originally distributed as an RFC [0] based upon the exis

Re: [PATCH V12 2/2] pinctrl: max77620: add pincontrol driver for MAX77620/MAX20024

2016-05-24 Thread Linus Walleij
On Fri, May 13, 2016 at 7:19 AM, Laxman Dewangan wrote: > MAXIM Semiconductor's PMIC, MAX77620/MAX20024 has 8 GPIO pins > which also act as the special function in alternate mode. Also > there is configuration like push-pull, open drain, FPS timing > etc for these pins. > > Add pin control driver

Re: [PATCH] soc: qcom: provide mechanism for drivers to access L2 registers

2016-05-24 Thread Mark Rutland
On Mon, May 23, 2016 at 02:22:59PM -0400, Neil Leeder wrote: > > On 5/23/2016 01:25 PM, Mark Rutland wrote: > > On Fri, May 20, 2016 at 03:13:07PM -0400, Neil Leeder wrote: > >> L2 registers are accessed using a select register and data > >> register pair. To prevent multiple concurrent writes to

[PATCH 4/4] use device_attr macros for sysfs attribute

2016-05-24 Thread Pranay Kr. Srivastava
This patch changes the pid sysfs device attribute to use DEVICE_ATTR_* macro. Signed-off-by: Pranay Kr. Srivastava --- drivers/block/nbd.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 59db890..d6ab9c9 100644 ---

[PATCH 0/4]nbd: fixes for nbd

2016-05-24 Thread Pranay Kr. Srivastava
This patch series fixes the following 1) fix might_sleep warning on socket shutdown: Fix sock_shutdown to avoid calling kernel_sock_shutdown while holding spin_lock. 2)fix various coding standard warnings Make shutdown get called in a process context instead, using system_wq. 3) make

[PATCH 1/4] fix might_sleep warning on socket shutdown.

2016-05-24 Thread Pranay Kr. Srivastava
spinlocked ranges should be small and not contain calls into huge subfunctions. Fix my mistake and just get the pointer to the socket instead of doing everything with spinlock held. Reported-by: Mikulas Patocka Signed-off-by: Markus Pargmann Changelog: Pranay Kr. Srivastava: 1) Use spin_lock i

[PATCH 2/4] fix various coding standard warnings

2016-05-24 Thread Pranay Kr. Srivastava
1 )nbd: fix checkpatch trailing space warning. 2) nbd: fix checkpatch warning use linux/uaccess.h 3) nbd : fix checkpatch pointer declaration warning 4) nbd: fix checkpatch warning no newline after decleration. 5) nbd: fix checkpatch warning no newline after decleration. 6) nbd : fix checkpatc

Re: [PATCH 1/3] iio: st_sensors: Init trigger before irq request

2016-05-24 Thread Linus Walleij
On Fri, May 13, 2016 at 8:43 PM, Crestez Dan Leonard wrote: > This fixes a possible race where an interrupt arrives before complete > initialization and crashes because iio_trigger_get_drvdata returns NULL. > > Cc: Linus Walleij > Cc: Giuseppe Barba > Cc: Denis Ciocca > Signed-off-by: Crestez

Re: [PATCH 2/3] iio: st_sensors: Disable DRDY at init time

2016-05-24 Thread Linus Walleij
On Fri, May 13, 2016 at 8:43 PM, Crestez Dan Leonard wrote: > This fixes odd behavior after reboot. > > The fact that we set the device to powerdown mode is not sufficient to > prevent DRDY being active because we might still have an unread sample. > > Even if powerdown was sufficient keeping DRD

[PATCH 3/4] make nbd device wait for its users.

2016-05-24 Thread Pranay Kr. Srivastava
When a timeout occurs or a recv fails, then instead of abruplty killing nbd block device wait for it's users to finish. This is more required when filesystem(s) like ext2 or ext3 don't expect their buffer heads to disappear while the filesystem is mounted. Use a kref for users using this. The dev

[PATCH RT] arm: lazy preempt: correct resched condition

2016-05-24 Thread Sebastian Andrzej Siewior
If we get out of preempt_schedule_irq() then we check for NEED_RESCHED and call the former function again if set because the preemption counter has be zero at this point. However the counter for lazy-preempt might not be zero therefore we have to check the counter before looking at the need_resched

Re: [PATCH V12 2/2] pinctrl: max77620: add pincontrol driver for MAX77620/MAX20024

2016-05-24 Thread Laxman Dewangan
On Tuesday 24 May 2016 04:51 PM, Linus Walleij wrote: On Fri, May 13, 2016 at 7:19 AM, Laxman Dewangan wrote: MAXIM Semiconductor's PMIC, MAX77620/MAX20024 has 8 GPIO pins which also act as the special function in alternate mode. Also there is configuration like push-pull, open drain, FPS tim

Re: [PATCH] mm: memcontrol: fix possible css ref leak on oom

2016-05-24 Thread Michal Hocko
On Tue 24-05-16 13:05:23, Vladimir Davydov wrote: > On Tue, May 24, 2016 at 11:22:02AM +0200, Michal Hocko wrote: [...] > > you think about the following? I will cook up a full patch if this > > (untested) looks ok. > > It won't work for most filesystems as they define custom ->readpages. I > wond

Re: [PATCH 1/1] arm64: fix flush_cache_range

2016-05-24 Thread Mark Rutland
On Tue, May 24, 2016 at 07:16:37PM +0800, Zhen Lei wrote: > When we ran mprotect04(a test case in LTP) infinitely, it would always > failed after a few seconds. The case can be described briefly that: copy > a empty function from code area into a new memory area(created by mmap), > then call mprote

<    1   2   3   4   5   6   7   8   9   >