Re: [PATCH v6 2/4] mtd: m25p80: add support of SPI 1-2-2 and 1-4-4 protocols

2017-04-16 Thread Marek Vasut
On 04/16/2017 11:41 PM, Cyrille Pitchen wrote: > Before this patch, m25p80_read() supported few SPI protocols: > - regular SPI 1-1-1 > - SPI Dual Output 1-1-2 > - SPI Quad Output 1-1-4 > On the other hand, m25p80_write() only supported SPI 1-1-1. > > This patch updates both m25p80_read() and

[PATCH 0/2] ACPI: Device enumeration udates

2017-04-16 Thread Rafael J. Wysocki
Hi, These two patches change a couple of things related to the ACPI enumeration of devices. [1/2] causes the default enumeration to also be used for device objects with ACPI drivers bound for consistency. [2/2] makes acpi_bus_attach() look at the "visited" flag of device objects as it should

[PATCH 2/2] staging:skein: skein_base.h, skein_block.h: move macros into appropriate header files

2017-04-16 Thread Karim Eshapa
Macros more related to BLK operations. Signed-off-by: Karim Eshapa --- drivers/staging/skein/skein_base.h | 28 drivers/staging/skein/skein_block.h | 28 2 files changed, 28 insertions(+), 28 deletions(-) diff

Re: [PATCH 00/10] mac68k: Miscellaneous fixes, cleanup and modernization

2017-04-16 Thread Finn Thain
On Sun, 16 Apr 2017, Geert Uytterhoeven wrote: > Hi Finn, > > On Sun, Apr 9, 2017 at 1:51 AM, Finn Thain > wrote: > > This series has various patches from several different people. Two > > printk modernization patches were originally from Geert Uytterhoeven > >

[PATCH 0/4] ftrace: Add 'function-fork' trace option (v2)

2017-04-16 Thread Namhyung Kim
Hello, This patchset add 'function-fork' option to function tracer which makes pid filter to be inherited like 'event-fork' does. During the test, I found a bug of pid filter on an instance directory. The patch 1 fixes it and maybe it should go to the stable tree. The function-fork option is

[PATCH 4/4] selftests: ftrace: Add a testcase for function PID filter

2017-04-16 Thread Namhyung Kim
Like event pid filtering test, add function pid filtering test with the new "function-fork" option. It also tests it on an instance directory so that it can verify the bug related pid filtering on instances. Cc: Masami Hiramatsu Cc: Steven Rostedt Cc:

[PATCH 2/4] ftrace: Add 'function-fork' trace option

2017-04-16 Thread Namhyung Kim
The function-fork option is same as event-fork that it tracks task fork/exit and set the pid filter properly. This can be useful if user wants to trace selected tasks including their children only. Signed-off-by: Namhyung Kim --- kernel/trace/ftrace.c | 37

Re: [PATCH v3 1/8] trace: ras: add ARM processor error information trace event

2017-04-16 Thread Xie XiuQi
Hi Tyler, Thanks for your comments and testing. On 2017/4/15 4:36, Baicar, Tyler wrote: > On 3/30/2017 4:31 AM, Xie XiuQi wrote: >> Add a new trace event for ARM processor error information, so that >> the user will know what error occurred. With this information the >> user may take appropriate

Re: [PATCH 4/5] ARM: sun8i: h3: add operating-points-v2 table for CPU

2017-04-16 Thread Maxime Ripard
On Tue, Apr 11, 2017 at 09:28:55PM +0800, icen...@aosc.io wrote: > 在 2017-04-11 17:13,Maxime Ripard 写道: > > On Sun, Apr 09, 2017 at 02:50:24AM +0800, Icenowy Zheng wrote: > > > The CPU on Allwinner H3 can do dynamic frequency scaling. > > > > > > Add a DVFS table based on the one tweaked by

Re: [PATCH V2] clk: hi6220: Add the hi655x's pmic clock

2017-04-16 Thread Daniel Lezcano
On Wed, Apr 12, 2017 at 08:02:45AM -0700, Stephen Boyd wrote: > On 04/08, Daniel Lezcano wrote: > > > > Example: > > pmic: pmic@f800 { > > @@ -24,4 +29,5 @@ Example: > > interrupt-controller; > > #interrupt-cells = <2>; > > pmic-gpios = < 2

Re: [PATCH 4.10 00/29] 4.10.11-stable review

2017-04-16 Thread Guenter Roeck
On 04/16/2017 01:04 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.10.11 release. There are 29 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

[PATCH 10/29] arm64: arch_timer: Rework the set_next_event workarounds

2017-04-16 Thread Daniel Lezcano
From: Marc Zyngier The way we work around errata affecting set_next_event is not very nice, at it imposes this workaround on errata that do not need it. Add new workaround hooks and let the existing workarounds use them. Acked-by: Thomas Gleixner

Re: [PATCH 4.9 00/31] 4.9.23-stable review

2017-04-16 Thread Guenter Roeck
On 04/16/2017 01:03 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.23 release. There are 31 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

Re: [PATCH 4.4 00/18] 4.4.62-stable review

2017-04-16 Thread Guenter Roeck
On 04/16/2017 01:02 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.62 release. There are 18 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be

[PATCH v6 2/4] mtd: m25p80: add support of SPI 1-2-2 and 1-4-4 protocols

2017-04-16 Thread Cyrille Pitchen
Before this patch, m25p80_read() supported few SPI protocols: - regular SPI 1-1-1 - SPI Dual Output 1-1-2 - SPI Quad Output 1-1-4 On the other hand, m25p80_write() only supported SPI 1-1-1. This patch updates both m25p80_read() and m25p80_write() functions to let them support SPI 1-2-2 and SPI

[PATCH v6 1/4] mtd: spi-nor: introduce more SPI protocols and the Dual Transfer Mode

2017-04-16 Thread Cyrille Pitchen
This patch changes the prototype of spi_nor_scan(): its 3rd parameter is replaced by a 'struct spi_nor_hwcaps' pointer, which tells the spi-nor framework about the actual hardware capabilities supported by the SPI controller and its driver. Besides, this patch also introduces a new 'struct

[RFC PATCH v6 3/4] mtd: spi-nor: transitional patch

2017-04-16 Thread Cyrille Pitchen
Signed-off-by: Cyrille Pitchen --- drivers/mtd/spi-nor/spi-nor.c | 19 --- include/linux/mtd/spi-nor.h | 2 ++ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index

[RFC PATCH v6 4/4] mtd: spi-nor: add spi_nor_init() function

2017-04-16 Thread Cyrille Pitchen
This patch extracts some chunks from spi_nor_scan() and moves them into a new spi_nor_init() function. Indeed, spi_nor_init() regroups all the required SPI flash commands to be sent to the SPI flash memory before performing any runtime operations (Fast Read, Page Program, Sector Erase, ...).

[PATCH] usb: gadget: remove redundant self assignment

2017-04-16 Thread Stefan Agner
The assignment ret = ret is redundant and can be removed. Signed-off-by: Stefan Agner --- A very similar patch has been applied already last year, but there is a second such assignment... -- Stefan drivers/usb/gadget/udc/core.c | 4 +--- 1 file changed, 1 insertion(+), 3

Re: [virtio-dev] Re: [PATCH v9 2/5] virtio-balloon: VIRTIO_BALLOON_F_BALLOON_CHUNKS

2017-04-16 Thread Wei Wang
On 04/15/2017 05:38 AM, Michael S. Tsirkin wrote: On Fri, Apr 14, 2017 at 04:37:52PM +0800, Wei Wang wrote: On 04/14/2017 12:34 AM, Michael S. Tsirkin wrote: On Thu, Apr 13, 2017 at 05:35:05PM +0800, Wei Wang wrote: So we don't need the bitmap to talk to host, it is just a data structure we

Re: [PATCH v1 1/1] mtd: mtk-nor: set controller's address width according to nor flash

2017-04-16 Thread Guochun Mao
Hi Cyrille, On Sun, 2017-04-16 at 19:18 +0200, Cyrille Pitchen wrote: > Le 13/04/2017 à 10:24, Cyrille Pitchen a écrit : > > Hi Guochun, > > > > Le 13/04/2017 à 04:40, Guochun Mao a écrit : > >> Hi Cyrille, > >> > >> On Wed, 2017-04-12 at 22:57 +0200, Cyrille Pitchen wrote: > >>> Hi Guochun, >

Re: [PATCH v3] powerpc: mm: support ARCH_MMAP_RND_BITS

2017-04-16 Thread Bhupesh SHARMA
On Thu, Apr 13, 2017 at 12:39 PM, Balbir Singh wrote: >>> >>> Yes. It was derived from TASK_SIZE : >>> >>> http://lxr.free-electrons.com/source/arch/powerpc/include/asm/processor.h#L105 >>> >> >> That is getting update to 128TB by default and conditionally to 512TB >> > >

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-16 Thread Logan Gunthorpe
On 16/04/17 04:32 PM, Benjamin Herrenschmidt wrote: >> I'll consider this. Given the fact I can use your existing >> get_dev_pagemap infrastructure to look up the p2pmem device this >> probably isn't as hard as I thought it would be anyway (we probably >> don't even need a page flag). We'd just

RE: [EXT] Re: [PATCH] MAINTAINERS: drop akarwar from mwifiex

2017-04-16 Thread Ganapathi Bhat
Hi Kalle/Brian, > Brian Norris writes: > > > His email is bouncing, and I expect he's not doing this work any > more. > > > > Cc: Amitkumar Karwar > > Cc: Nishant Sarmukadam > > Cc: Ganapathi Bhat > >

Re: [PATCH] nfc: fix get_unaligned_...() misuses

2017-04-16 Thread Samuel Ortiz
On Thu, Apr 06, 2017 at 05:58:59PM +0100, Al Viro wrote: > On Thu, Apr 06, 2017 at 05:48:47PM +0100, Al Viro wrote: > > * use unaligned.h, not unaligned/access_ok.h > > ... which got misspelled in that patch, sorry... Fixed variant follows: > > commit b3e79ba1708c9b74781079c9f8617448fce36b51 >

Re: [patch 19/20] ACPI/processor: Use cpu_hotplug_disable() instead of get_online_cpus()

2017-04-16 Thread Rafael J. Wysocki
On Saturday, April 15, 2017 07:01:26 PM Thomas Gleixner wrote: > Converting the hotplug locking, i.e. get_online_cpus(), to a percpu rwsem > unearthed a circular lock dependency which was hidden from lockdep due to > the lockdep annotation of get_online_cpus() which prevents lockdep from >

[PATCH 2/2] ACPI / scan: Avoid enumerating devices more than once

2017-04-16 Thread Rafael J. Wysocki
From: Rafael J. Wysocki acpi_bus_attach() does not check the visited flag for devices that have been enumerated already and some of them may be enumerated for multiple times as a result, because some callers of acpi_bus_scan() don't check the visited flag either. For

[PATCH 1/2] ACPI / scan: Apply default enumeration to devices with ACPI drivers

2017-04-16 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The current code in acpi_bus_attach() is inconsistent with respect to device objects with ACPI drivers bound to them, as it allows ACPI drivers to bind to device objects with existing "physical" device companions, but it doesn't allow

[PATCH 2/2] staging:skein: skein_base.h, skein_block.h: move macros into appropriate header files

2017-04-16 Thread Karim Eshapa
Macros more related to BLK operations. Signed-off-by: Karim Eshapa --- drivers/staging/skein/skein_base.h | 28 drivers/staging/skein/skein_block.h | 28 2 files changed, 28 insertions(+), 28 deletions(-) diff

Re: [PATCH 2/3] zram: do not use copy_page with non-page alinged address

2017-04-16 Thread Sergey Senozhatsky
On (04/13/17 09:17), Minchan Kim wrote: > The copy_page is optimized memcpy for page-alinged address. > If it is used with non-page aligned address, it can corrupt memory which > means system corruption. With zram, it can happen with > > 1. 64K architecture > 2. partial IO > 3. slub debug > >

copy_page() on a kmalloc-ed page with DEBUG_SLAB enabled (was "zram: do not use copy_page with non-page alinged address")

2017-04-16 Thread Sergey Senozhatsky
Hello, I'll fork it into a separate thread and Cc more MM people. sorry for top-posting. Minchan reported that doing copy_page() on a kmalloc(PAGE_SIZE) page with DEBUG_SLAB enabled can cause a memory corruption (See below or lkml.kernel.org/r/1492042622-12074-2-git-send-email-minc...@kernel.org

Re: [PATCH 1/3] zram: fix operator precedence to get offset

2017-04-16 Thread Minchan Kim
Hi Sergey, On Mon, Apr 17, 2017 at 10:54:29AM +0900, Sergey Senozhatsky wrote: > On (04/17/17 10:21), Sergey Senozhatsky wrote: > > > However, it should be *fixed* to prevent confusion in future > > or may be something like below? can save us some cycles. > > remove this calculation > > -

Re: [PATCH v3 1/8] trace: ras: add ARM processor error information trace event

2017-04-16 Thread Xie XiuQi
Hi Tyler, On 2017/4/17 11:08, Xie XiuQi wrote: > Hi Tyler, > > Thanks for your comments and testing. > > On 2017/4/15 4:36, Baicar, Tyler wrote: >> On 3/30/2017 4:31 AM, Xie XiuQi wrote: >>> Add a new trace event for ARM processor error information, so that >>> the user will know what error

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-16 Thread Benjamin Herrenschmidt
On Sun, 2017-04-16 at 10:34 -0600, Logan Gunthorpe wrote: > > On 16/04/17 09:53 AM, Dan Williams wrote: > > ZONE_DEVICE allows you to redirect via get_dev_pagemap() to retrieve > > context about the physical address in question. I'm thinking you can > > hang bus address translation data off of

Re: [PATCH] hugetlbfs: fix offset overflow in huegtlbfs mmap

2017-04-16 Thread Naoya Horiguchi
On Sat, Apr 15, 2017 at 03:58:59PM -0700, Mike Kravetz wrote: > On 04/13/2017 08:32 PM, Naoya Horiguchi wrote: > > On Tue, Apr 11, 2017 at 03:51:58PM -0700, Mike Kravetz wrote: > > ... > >> diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c > >> index 7163fe0..dde8613 100644 > >> ---

Re: [kbuild-all] [tip:x86/cpu 8/12] arch/x86/kernel/cpu/intel_rdt.c:63: error: unknown field 'cache' specified in initializer

2017-04-16 Thread Fengguang Wu
On Sat, Apr 15, 2017 at 07:40:34AM +0200, Thomas Gleixner wrote: On Sat, 15 Apr 2017, kbuild test robot wrote: tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cpu head: 64e8ed3d4a6dcd6139a869a3e760e625cb0d3022 commit: 05b93417ce5b924c6652de19fdcc27439ab37c90 [8/12]

[PATCH 1/4] ftrace: Fix function pid filter on instances

2017-04-16 Thread Namhyung Kim
When function tracer has a pid filter, it adds a probe to sched_switch to track if current task can be ignored. The probe checks the ftrace_ignore_pid from current tr to filter tasks. But it misses to delete the probe when removing an instance so that it can cause a crash due to the invalid tr

[PATCH 3/4] selftests: ftrace: Add -l/--logdir option

2017-04-16 Thread Namhyung Kim
In my virtual machine setup, running ftracetest failed on creating LOG_DIR on a read-only filesystem. It'd be convenient to provide an option to specify a different directory as log directory. Acked-by: Masami Hiramatsu Cc: Steven Rostedt Cc: Shuah

Re: [RFC 0/1] add support for reclaiming priorities per mem cgroup

2017-04-16 Thread Minchan Kim
Hi Johannes, On Thu, Apr 13, 2017 at 12:01:47PM -0400, Johannes Weiner wrote: > On Thu, Apr 13, 2017 at 01:30:47PM +0900, Minchan Kim wrote: > > On Thu, Mar 30, 2017 at 12:40:32PM -0700, Tim Murray wrote: > > > As a result, I think there's still a need for relative priority > > > between mem

4.11-rc7 crash when booting with 1 numa node?

2017-04-16 Thread Darrick J. Wong
Hi, When booting 4.11-rc7 on a qemu guest with a single numa node, I hit the following[1] crash on boot. If I configure more than one node, the problem goes away. I tracked the relevant line down to: (gdb) l *(irq_create_affinity_masks+0x237) 0x81103a87 is in irq_create_affinity_masks

Re: [PATCH 1/3] zram: fix operator precedence to get offset

2017-04-16 Thread Sergey Senozhatsky
On (04/13/17 09:17), Minchan Kim wrote: > Date: Thu, 13 Apr 2017 09:17:00 +0900 > From: Minchan Kim > To: Andrew Morton > CC: linux-kernel@vger.kernel.org, Sergey Senozhatsky > , kernel-t...@lge.com, Minchan Kim >

Re: [PATCH 1/3] zram: fix operator precedence to get offset

2017-04-16 Thread Sergey Senozhatsky
Hello, On (04/15/17 00:33), Minchan Kim wrote: > On Fri, Apr 14, 2017 at 02:07:47PM +0900, Sergey Senozhatsky wrote: > > On (04/13/17 09:17), Minchan Kim wrote: > > [..] > > > diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c > > > index 9e2199060040..83c38a123242 100644

[lkp-robot] [cpu/hotplug] 94380da276: INFO:possible_recursive_locking_detected

2017-04-16 Thread kernel test robot
FYI, we noticed the following commit: commit: 94380da2765a391335c2326ba327e835c2e7aa03 ("cpu/hotplug: Convert hotplug locking to percpu rwsem") https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git WIP.hotplug in testcase: trinity with following parameters: runtime: 300s

Re: [PATCH v3 1/6] powerpc/perf: Define big-endian version of perf_mem_data_src

2017-04-16 Thread Madhavan Srinivasan
On Thursday 13 April 2017 06:08 PM, Peter Zijlstra wrote: On Tue, Apr 11, 2017 at 07:21:05AM +0530, Madhavan Srinivasan wrote: From: Sukadev Bhattiprolu perf_mem_data_src is an union that is initialized via the ->val field and accessed via the bitmap fields. For

Re: [PATCH v3 1/6] powerpc/perf: Define big-endian version of perf_mem_data_src

2017-04-16 Thread Madhavan Srinivasan
On Thursday 13 April 2017 06:53 PM, Michael Ellerman wrote: Peter Zijlstra writes: On Tue, Apr 11, 2017 at 07:21:05AM +0530, Madhavan Srinivasan wrote: From: Sukadev Bhattiprolu perf_mem_data_src is an union that is initialized via the

Re: [PATCH v2 0/15] [dt-bindings] [media] Add document file and driver for Sony CXD2880 DVB-T2/T tuner + demodulator

2017-04-16 Thread Takiguchi, Yasunari
On 2017/04/14 10:50, Takiguchi, Yasunari wrote: > From: Yasunari Takiguchi > > Hi, > > This is the patch series (version 2) of Sony CXD2880 DVB-T2/T tuner + > demodulator driver. > The driver supports DVB-API and interfaces through SPI. > > We have tested the

Re: [PATCH V2] mm/madvise: Move up the behavior parameter validation

2017-04-16 Thread Naoya Horiguchi
On Fri, Apr 14, 2017 at 07:21:41PM +0530, Anshuman Khandual wrote: > The madvise_behavior_valid() function should be called before > acting upon the behavior parameter. Hence move up the function. > This also includes MADV_SOFT_OFFLINE and MADV_HWPOISON options > as valid behavior parameter for

Re: [PATCH V4 1/9] PM / OPP: Allow OPP table to be used for power-domains

2017-04-16 Thread Viresh Kumar
On 13-04-17, 14:42, Sudeep Holla wrote: > What I was referring is about power domain provider with multiple power > domains(simply #power-domain-cells=<1> case as explained in the > power-domain specification. I am not sure if we should be looking to target such a situation for now, as that would

Re: [RFC/RFT][PATCH 1/2] cpufreq: schedutil: Use policy-dependent transition delays

2017-04-16 Thread Viresh Kumar
On 11-04-17, 00:20, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Make the schedutil governor take the initial (default) value of the > rate_limit_us sysfs attribute from the (new) transition_delay_us > policy parameter (to be set by the scaling driver). > >

Re: [PATCH 4/5] ARM: sun8i: h3: add operating-points-v2 table for CPU

2017-04-16 Thread icenowy
在 2017-04-17 04:57,Maxime Ripard 写道: On Tue, Apr 11, 2017 at 09:28:55PM +0800, icen...@aosc.io wrote: 在 2017-04-11 17:13,Maxime Ripard 写道: > On Sun, Apr 09, 2017 at 02:50:24AM +0800, Icenowy Zheng wrote: > > The CPU on Allwinner H3 can do dynamic frequency scaling. > > > > Add a DVFS table

Re: [PATCH 4/5] ARM: sun8i: h3: add operating-points-v2 table for CPU

2017-04-16 Thread Icenowy Zheng
于 2017年4月17日 GMT+08:00 上午4:57:40, Maxime Ripard 写到: >On Tue, Apr 11, 2017 at 09:28:55PM +0800, icen...@aosc.io wrote: >> 在 2017-04-11 17:13,Maxime Ripard 写道: >> > On Sun, Apr 09, 2017 at 02:50:24AM +0800, Icenowy Zheng wrote: >> > > The CPU on Allwinner H3 can

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-16 Thread Benjamin Herrenschmidt
On Sun, 2017-04-16 at 10:47 -0600, Logan Gunthorpe wrote: > > I think you need to give other archs a chance to support this with a > > design that considers the offset case as a first class citizen rather > > than an afterthought. > > I'll consider this. Given the fact I can use your existing >

Re: [PATCH nf-next] ipvs: remove unused function ip_vs_set_state_timeout

2017-04-16 Thread Simon Horman
On vr, apr 14, 2017 at 02:13:09 +0200, Pablo Neira Ayuso wrote: > On Mon, Apr 10, 2017 at 03:50:44PM -0400, Aaron Conole wrote: > > There are no in-tree callers of this function and it isn't exported. > > Simon, let me know if you want to take this, or just add your > Signed-off-by. Hi Pablo, I

Re: [RESEND PATCH] tools/power/x86/intel_pstate_tracer: Adjust directory permissions

2017-04-16 Thread Rafael J. Wysocki
On Sun, Apr 16, 2017 at 5:17 PM, Doug Smythies wrote: > Depending on what is being done, the intel_pstate_tracer.py script > needs to be run as root, or can be run as a regular user. > If run the first time as root the results directory will be > incorrect for any

[PATCH RFC] ptr_ring: add ptr_ring_unconsume

2017-04-16 Thread Michael S. Tsirkin
Applications that consume a batch of entries in one go can benefit from ability to return some of them back into the ring. Add an API for that - assuming there's space. If there's no space naturally we can't do this and have to drop entries, but this implies ring is full so we'd likely drop some

Re: [PATCH 3.18 000/145] 3.18.49-stable review

2017-04-16 Thread Guenter Roeck
On 04/16/2017 03:48 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.18.49 release. There are 145 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. - Wait,

Re: [PATCH] slab: avoid IPIs when creating kmem caches

2017-04-16 Thread Joonsoo Kim
On Sun, Apr 16, 2017 at 02:45:44PM -0700, Greg Thelen wrote: > Each slab kmem cache has per cpu array caches. The array caches are > created when the kmem_cache is created, either via kmem_cache_create() > or lazily when the first object is allocated in context of a kmem > enabled memcg. Array

Re: [PATCH V2] PM / OPP: Use - instead of @ for DT entries

2017-04-16 Thread Masahiro Yamada
2017-04-15 7:47 GMT+09:00 Rafael J. Wysocki : > On Monday, April 10, 2017 02:51:35 PM Viresh Kumar wrote: >> Compiling the DT file with W=1, DTC warns like follows: >> >> Warning (unit_address_vs_reg): Node /opp_table0/opp@10 has a >> unit name, but no reg property >>

Re: [PATCH V5 1/4] arm64: dts: Add basic DT to support Spreadtrum's SP9860G

2017-04-16 Thread Chunyan Zhang
Hi Arnd, Could you please take this patch through arm-soc git if there are no further comments? (The three other patches in this series have been taken by Greg.) Thanks, Chunyan On 27 March 2017 at 15:32, Chunyan Zhang wrote: > From: Orson Zhai

Re: [PATCH V4 1/9] PM / OPP: Allow OPP table to be used for power-domains

2017-04-16 Thread Viresh Kumar
On 13-04-17, 14:43, Sudeep Holla wrote: > Interesting. My understand of power domain and in particular power > domain performance was that it would control both. The abstract number > you introduce would hide clocks and regulators. > > But if the concept treats it just as yet another regulator,

[PATCH 02/29] arm64: Add CNTVCT_EL0 trap handler

2017-04-16 Thread Daniel Lezcano
From: Marc Zyngier Since people seem to make a point in breaking the userspace visible counter, we have no choice but to trap the access. Add the required handler. Acked-by: Thomas Gleixner Acked-by: Mark Rutland Signed-off-by:

[PATCH 12/29] arm64: arch_timer: Allows a CPU-specific erratum to only affect a subset of CPUs

2017-04-16 Thread Daniel Lezcano
From: Marc Zyngier Instead of applying a CPU-specific workaround to all CPUs in the system, allow it to only affect a subset of them (typical big-little case). This is done by turning the erratum pointer into a per-CPU variable. Acked-by: Thomas Gleixner

Re: [GIT PULL 00/19] LightNVM patches for 4.12.

2017-04-16 Thread Jens Axboe
On 04/15/2017 12:55 PM, Matias Bjørling wrote: > Hi Jens, > > With this merge window, we like to push pblk upstream. It is a new > host-side translation layer that implements support for exposing > Open-Channel SSDs as block devices. > > We have described pblk in the LightNVM paper "LightNVM:

[PATCH 08/29] arm64: arch_timer: Move arch_timer_reg_read/write around

2017-04-16 Thread Daniel Lezcano
From: Marc Zyngier As we're about to move things around, let's start with the low level read/write functions. This allows us to use these functions in the errata handling code without having to use forward declaration of static functions. Acked-by: Thomas Gleixner

[PATCH 09/29] arm64: arch_timer: Get rid of erratum_workaround_set_sne

2017-04-16 Thread Daniel Lezcano
From: Marc Zyngier Let's move the handling of workarounds affecting set_next_event to the affected function, instead of overriding the pointers as an afterthough. Yes, this is an extra indirection on the erratum handling path, but the HW is busted anyway. This will allow

Re: [PATCH net-next v6 02/11] bpf,landlock: Define an eBPF program type for Landlock

2017-04-16 Thread Mickaël Salaün
On 29/03/2017 01:46, Mickaël Salaün wrote: > Add a new type of eBPF program used by Landlock rules. > > This new BPF program type will be registered with the Landlock LSM > initialization. > > Add an initial Landlock Kconfig. > > Changes since v5: > * rename file hooks.c to init.c > * fix

Re: [PATCH] backlight: pwm_bl: Fix condition to set enable gpio as output

2017-04-16 Thread Geert Uytterhoeven
Hi Paul, On Sun, Apr 16, 2017 at 12:35 PM, Paul Kocialkowski wrote: > The move to a dedicated pwm_backlight_initial_power_state function in > commit 7613c922315e308a6486d802abed2eb74443dffd modified the condition > to set the enable gpio as output. This breaks specific use

[PATCH] slab: avoid IPIs when creating kmem caches

2017-04-16 Thread Greg Thelen
Each slab kmem cache has per cpu array caches. The array caches are created when the kmem_cache is created, either via kmem_cache_create() or lazily when the first object is allocated in context of a kmem enabled memcg. Array caches are replaced by writing to /proc/slabinfo. Array caches are

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-16 Thread Benjamin Herrenschmidt
On Sun, 2017-04-16 at 08:53 -0700, Dan Williams wrote: > > Just thinking out loud ... I don't have a firm idea or a design. But > > peer to peer is definitely a problem we need to tackle generically, the > > demand for it keeps coming up. > > ZONE_DEVICE allows you to redirect via

Re: [PATCH 06/24] Add a sysrq option to exit secure boot mode

2017-04-16 Thread Matt Fleming
On Fri, 14 Apr, at 08:05:07PM, Thomas Gleixner wrote: > On Wed, 5 Apr 2017, David Howells wrote: > > > From: Kyle McMartin > > > > Make sysrq+x exit secure boot mode on x86_64, thereby allowing the running > > kernel image to be modified. This lifts the lockdown. > > > >

Re: [PATCH v6 1/4] mtd: spi-nor: introduce more SPI protocols and the Dual Transfer Mode

2017-04-16 Thread Marek Vasut
On 04/16/2017 11:41 PM, Cyrille Pitchen wrote: > This patch changes the prototype of spi_nor_scan(): its 3rd parameter > is replaced by a 'struct spi_nor_hwcaps' pointer, which tells the spi-nor > framework about the actual hardware capabilities supported by the SPI > controller and its driver. >

[PATCH] acpica: trivial changes on comments

2017-04-16 Thread Cao jin
Remove superfluous word; unify comments and function prototype. Signed-off-by: Cao jin --- drivers/acpi/acpica/tbfadt.c | 2 +- drivers/acpi/acpica/tbutils.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/acpica/tbfadt.c

Re: [PATCH] acpica: trivial changes on comments

2017-04-16 Thread Cao jin
Re-to: linux-a...@vger.kernel.org On 04/17/2017 10:56 AM, Cao jin wrote: > Remove superfluous word; unify comments and function prototype. > > Signed-off-by: Cao jin > --- > drivers/acpi/acpica/tbfadt.c | 2 +- > drivers/acpi/acpica/tbutils.c | 4 ++-- > 2 files

Re: [PATCH v2 01/15] [dt-bindings] [media] Add document file for CXD2880 SPI I/F

2017-04-16 Thread Takiguchi, Yasunari
> From: Yasunari Takiguchi > > This is the document file for Sony CXD2880 DVB-T2/T tuner + demodulator. > It contains the description of the SPI adapter binding. > > Signed-off-by: Yasunari Takiguchi > Signed-off-by: Masayuki Yamamoto

Re: your mail

2017-04-16 Thread Joonsoo Kim
On Sat, Apr 15, 2017 at 02:17:31PM +0200, Michal Hocko wrote: > Hi, > here I 3 more preparatory patches which I meant to send on Thursday but > forgot... After more thinking about pfn walkers I have realized that > the current code doesn't check offline holes in zones. From a quick > review that

Re: [RFC PATCH v6 4/4] mtd: spi-nor: add spi_nor_init() function

2017-04-16 Thread Marek Vasut
On 04/16/2017 11:41 PM, Cyrille Pitchen wrote: > This patch extracts some chunks from spi_nor_scan() and moves them into > a new spi_nor_init() function. > > Indeed, spi_nor_init() regroups all the required SPI flash commands to be > sent to the SPI flash memory before performing any runtime

Re: [PATCH v5 2/5] drivers: watchdog: Add STM32 IWDG driver

2017-04-16 Thread Guenter Roeck
On 04/06/2017 05:19 AM, Yannick Fertre wrote: This patch adds IWDG (Independent WatchDoG) support for STM32 platform. Signed-off-by: Yannick FERTRE Reviewed-by: Guenter Roeck --- drivers/watchdog/Kconfig | 12 ++ drivers/watchdog/Makefile

Re: [PATCH] arm: dma: fix sharing of coherent DMA memory without struct page

2017-04-16 Thread Shuah Khan
On 04/14/2017 03:46 AM, Russell King - ARM Linux wrote: > On Fri, Apr 14, 2017 at 09:56:07AM +0200, Marek Szyprowski wrote: This would be however quite large task, especially taking into account all current users of DMA-buf framework... >>> Yeah it will be a large task. >> >> Maybe once

[PATCH v4 1/2] vfio/type1: Remove locked page accounting workqueue

2017-04-16 Thread Alex Williamson
If the mmap_sem is contented then the vfio type1 IOMMU backend will defer locked page accounting updates to a workqueue task. This has a few problems and depending on which side the user tries to play, they might be over-penalized for unmaps that haven't yet been accounted or race the workqueue

[PATCH v4 2/2] vfio/type1: Prune vfio_pin_page_external()

2017-04-16 Thread Alex Williamson
With vfio_lock_acct() testing the locked memory limit under mmap_sem, it's redundant to do it here for a single page. We can also reorder our tests such that we can avoid testing for reserved pages if we're not doing accounting, and test the process CAP_IPC_LOCK only if we are doing accounting.

[PATCH v4 0/2] vfio/type1: Synchronous locked page accounting

2017-04-16 Thread Alex Williamson
v4: vfio_lock_acct() should not fail due to RLIMIT_MEMLOCK if task has CAP_IPC_LOCK capability. Introduced 2nd patch to remove redundancy from vfio_pin_page_external() and fix return value. Please re-review. Thanks! Alex --- Alex Williamson (2): vfio/type1: Remove locked page

Re: [PATCH v7 0/7] Introduce ZONE_CMA

2017-04-16 Thread Joonsoo Kim
On Thu, Apr 13, 2017 at 01:56:15PM +0200, Michal Hocko wrote: > On Wed 12-04-17 10:35:06, Joonsoo Kim wrote: > > On Tue, Apr 11, 2017 at 08:15:20PM +0200, Michal Hocko wrote: > > > Hi, > > > I didn't get to read though patches yet but the cover letter didn't > > > really help me to understand the

Re: [PATCH v2 2/4] zram: implement deduplication in zram

2017-04-16 Thread Joonsoo Kim
On Mon, Apr 17, 2017 at 10:38:16AM +0900, Minchan Kim wrote: > Hi Joonsoo, > > I reviewed this patch and overall, looks great! Thanks. Thanks! > However, as you know, recently, zram had lots of clean up so > this patchset should be rebased on it massively. > Sorry for the inconvenience. No

Re: [patch 06/20] cpufreq: Use cpuhp_setup_state_nocalls_locked()

2017-04-16 Thread Viresh Kumar
On 15-04-17, 19:01, Thomas Gleixner wrote: > From: Sebastian Andrzej Siewior > > cpufreq holds get_online_cpus() while invoking cpuhp_setup_state_nocalls() > to make subsys_interface_register() and the registration of hotplug calls > atomic versus cpu hotplug. > >

[PATCH] pci-sysfs: Make PCI bridge attribute visible in sysfs

2017-04-16 Thread Wong Vee Khee
From: vwong Export the PCIe link attributes of PCI bridges to sysfs. Signed-off-by: Wong Vee Khee Signed-off-by: Hui Chun Ong --- drivers/pci/pci-sysfs.c | 197 +-

Re: [PATCH] soc/tegra: pmc: Don't allocate struct tegra_powergate on stack

2017-04-16 Thread Viresh Kumar
On 21-03-17, 16:09, Viresh Kumar wrote: > On 21-03-17, 10:37, Jon Hunter wrote: > > > > On 21/03/17 05:24, Viresh Kumar wrote: > > > The size of the struct tegra_powergate is quite big and if any more > > > fields are added to the internal genpd structure, following warnings are > > > thrown: > >

Re: [PATCH 1/2] init/main: Fix double "the" in comment

2017-04-16 Thread Viresh Kumar
On 23-03-17, 17:00, Viresh Kumar wrote: > s/the\ the/the > > Signed-off-by: Viresh Kumar > --- > init/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/init/main.c b/init/main.c > index f9c9d9948203..717b2ab803e5 100644 > --- a/init/main.c

[PATCH 05/29] arm64: cpu_errata: Add capability to advertise Cortex-A73 erratum 858921

2017-04-16 Thread Daniel Lezcano
From: Marc Zyngier In order to work around Cortex-A73 erratum 858921 in a subsequent patch, add the required capability that advertise the erratum. As the configuration option it depends on is not present yet, this has no immediate effect. Acked-by: Thomas Gleixner

[PATCH 03/29] arm64: Define Cortex-A73 MIDR

2017-04-16 Thread Daniel Lezcano
From: Marc Zyngier As we're about to introduce a new workaround that is specific to Cortex-A73, let's define the coresponding MIDR. Acked-by: Thomas Gleixner Acked-by: Mark Rutland Signed-off-by: Marc Zyngier

Re: [PATCH REPOST] livepatch: add missing printk newlines

2017-04-16 Thread Jiri Kosina
On Thu, 13 Apr 2017, Josh Poimboeuf wrote: > Add missing newlines to some pr_err() strings. > > Signed-off-by: Josh Poimboeuf > Acked-by: Miroslav Benes > Acked-by: Jessica Yu Applied to for-4.12/upstream. Thanks, -- Jiri Kosina SUSE

[PATCH v6 0/4] mtd: spi-nor: parse SFDP tables to setup (Q)SPI memories

2017-04-16 Thread Cyrille Pitchen
Hi all, based on git-hub/spi-nor. The 4 patches have passed the checkpatch test. DISCLAIMER: despite what the subjet claims, I've removed the SFDP patches from this version since they are still RFC/WIP. However I've chosen not to change the subjet line so it's easier to make the link between

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-16 Thread Benjamin Herrenschmidt
On Sun, 2017-04-16 at 08:44 -0700, Dan Williams wrote: > The difference is that there was nothing fundamental in the core > design of pmem + DAX that prevented other archs from growing pmem > support. Indeed. In fact we have work in progress support for pmem on power using experimental HW. > THP

Re: [PATCH v2 2/4] zram: implement deduplication in zram

2017-04-16 Thread Minchan Kim
Hi Joonsoo, I reviewed this patch and overall, looks great! Thanks. However, as you know, recently, zram had lots of clean up so this patchset should be rebased on it massively. Sorry for the inconvenience. And there are some minor in below. I hope you handle them in next submit, please. On

RE: [PATCH 1/2 v2] dt-bindings: qoriq-clock: Add coreclk

2017-04-16 Thread Andy Tang
Hi Stephen and Michael, This patch set has been pending for more than two months since it was first sent. I have not received any response from you until now. Could you give some comments on it? Regards, Andy -Original Message- From: Andy Tang Sent: Wednesday, April 05, 2017 2:16 PM

Re: [PATCH 1/3] zram: fix operator precedence to get offset

2017-04-16 Thread Sergey Senozhatsky
On (04/17/17 10:21), Sergey Senozhatsky wrote: > > However, it should be *fixed* to prevent confusion in future or may be something like below? can save us some cycles. remove this calculation - offset = sector & (SECTORS_PER_PAGE - 1) << SECTOR_SHIFT; and pass 0 to zram_bvec_rw() -

Re: [PATCH] MAINTAINERS: drop akarwar from mwifiex

2017-04-16 Thread amit karwar
On Thu, Apr 13, 2017 at 6:47 PM, Kalle Valo wrote: > Brian Norris writes: > >> His email is bouncing, and I expect he's not doing this work any more. >> >> Cc: Amitkumar Karwar >> Cc: Nishant Sarmukadam

Re: cgroup: avoid attaching a cgroup root to two different superblocks

2017-04-16 Thread Tejun Heo
On Fri, Apr 14, 2017 at 04:27:38PM -0700, Andrei Vagin wrote: > Hello, > > One of our CRIU tests hangs with this patch. > > Steps to reproduce: > curl -o cgroupns.c >

Re: [PATCH] ARM: dts: omap4-droid4: add bluetooth

2017-04-16 Thread Sebastian Reichel
Hi Michael, On Sat, Apr 15, 2017 at 07:00:29PM -0700, Michael Scott wrote: > On Apr 15, 2017 3:18 PM, "Sebastian Reichel" wrote: >> Droid 4 has wl1835 connected to the OMAP's UART4 port, which is > > Technically, I believe the Droid 4 has WL1283 WLAN chip. > > - Mike iFixit

[GIT PULL] cgroup fixes for v4.11-rc6

2017-04-16 Thread Tejun Heo
Hello, Linus. Unfortunately, the commit to fix the cgroup mount race in the previous pull request can lead to hangs. The original bug has been around for a while and isn't too likely to be triggered in usual use cases. Revert the commit for now. Thanks. The following changes since commit

Re: [RFC 0/8] Copy Offload with Peer-to-Peer PCI Memory

2017-04-16 Thread Dan Williams
On Sat, Apr 15, 2017 at 10:36 PM, Logan Gunthorpe wrote: > > > On 15/04/17 04:17 PM, Benjamin Herrenschmidt wrote: >> You can't. If the iommu is on, everything is remapped. Or do you mean >> to have dma_map_* not do a remapping ? > > Well, yes, you'd have to change the code

  1   2   3   4   5   6   7   8   >