[PATCH V3 11/17] perf buildid-cache: kcore_copy: Keep a count of phdrs

2018-05-22 Thread Adrian Hunter
In preparation to add more program headers, keep a count of phdrs. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c index b13873a6f368..4e7b71e8ac

[PATCH V3 07/17] perf tools: Allow for extra kernel maps

2018-05-22 Thread Adrian Hunter
Identify extra kernel maps by name so that they can be distinguished from the kernel map and module maps. Signed-off-by: Adrian Hunter --- tools/perf/util/event.c | 2 +- tools/perf/util/machine.c | 8 ++-- tools/perf/util/map.c | 22 ++ tools/perf/util/map.h

[PATCH V3 14/17] perf buildid-cache: kcore_copy: Iterate phdrs

2018-05-22 Thread Adrian Hunter
In preparation to add more program headers, iterate phdrs instead of assuming there is only one for the kernel text and one for the modules. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git

[PATCH V3 12/17] perf buildid-cache: kcore_copy: Calculate offset from phnum

2018-05-22 Thread Adrian Hunter
In preparation to add more program headers, calculate offset from the number of phdrs. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c index 4e7b71e8

[PATCH V3 16/17] perf buildid-cache: kcore_copy: Copy x86 PTI entry trampoline sections

2018-05-22 Thread Adrian Hunter
Identify and copy any sections for x86 PTI entry trampolines. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c index 37d9324c27

[PATCH V3 13/17] perf buildid-cache: kcore_copy: Layout sections

2018-05-22 Thread Adrian Hunter
In preparation to add more program headers, layout the relative offset of each section. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symb

[PATCH V3 17/17] perf buildid-cache: kcore_copy: Amend the offset of sections that remap kernel text

2018-05-22 Thread Adrian Hunter
x86 PTI entry trampolines all map to the same physical page. If that is reflected in the program headers of /proc/kcore, then do the same for the copy of kcore. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 53 ++-- 1 file changed, 51 ins

[PATCH V3 15/17] perf buildid-cache: kcore_copy: Get rid of kernel_map

2018-05-22 Thread Adrian Hunter
In preparation to add more program headers, get rid of kernel_map and modules_map by moving ->kernel_map and ->modules_map to newly allocated entries in the ->phdrs list. Signed-off-by: Adrian Hunter --- tools/perf/util/symbol-elf.c | 70 1 file chang

[PATCH V3 10/17] perf buildid-cache: kcore_copy: Keep phdr data in a list

2018-05-22 Thread Adrian Hunter
Currently, kcore_copy makes 2 program headers, one for the kernel text (namely kernel_map) and one for the modules (namely modules_map). Now more program headers are needed, but treating each program header as a special case results in much more code. Instead, in preparation to add more program he

[PATCH V3 09/17] perf tools: Synthesize and process mmap events for x86 PTI entry trampolines

2018-05-22 Thread Adrian Hunter
Like the kernel text, the location of x86 PTI entry trampolines must be recorded in the perf.data file. Like the kernel, synthesize a mmap event for that, and add processing for it. Signed-off-by: Adrian Hunter --- tools/perf/arch/x86/util/Build | 1 + tools/perf/arch/x86/util/event.c | 76 ++

[PATCH V3 00/17] perf tools and x86 PTI entry trampolines

2018-05-22 Thread Adrian Hunter
Hi Here is V3 of patches to support x86 PTI entry trampolines in perf tools. Patches also here: http://git.infradead.org/users/ahunter/linux-perf.git/shortlog/refs/heads/perf-tools-kpti-v3 git://git.infradead.org/users/ahunter/linux-perf.git perf-tools-kpti-v3 V2 patches also he

[PATCH V3 01/17] kallsyms: Simplify update_iter_mod()

2018-05-22 Thread Adrian Hunter
The logic in update_iter_mod() is overcomplicated and gets worse every time another get_ksymbol_* function is added. In preparation for adding another get_ksymbol_* function, simplify logic in update_iter_mod(). Signed-off-by: Adrian Hunter --- kernel/kallsyms.c | 20 ++-- 1 fil

[PATCH V3 06/17] perf tools: Fix map_groups__split_kallsyms() for entry trampoline symbols

2018-05-22 Thread Adrian Hunter
When kernel symbols are derived from /proc/kallsyms only (not using vmlinux or /proc/kcore) map_groups__split_kallsyms() is used. However that function makes assumptions that are not true with entry trampoline symbols. For now, remove the entry trampoline symbols at that point, as they are no longe

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-22 Thread Viresh Kumar
On 22-05-18, 12:50, Rafael J. Wysocki wrote: > Ugly indeed. Hehe. I was thinking, maybe we can write wrapper helpers around lock/unlock which are stored as pointers in sg_policy. So that those are only set to non-NULL values (or non-Noop routines) for slow-switching single policy or any-switching

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-22 Thread Patrick Bellasi
On 22-May 16:04, Viresh Kumar wrote: > Okay, me and Rafael were discussing this patch, locking and races around this. > > On 18-05-18, 11:55, Joel Fernandes (Google.) wrote: > > @@ -382,13 +386,27 @@ sugov_update_shared(struct update_util_data *hook, > > u64 time, unsigned int flags) > > static

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-22 Thread Rafael J. Wysocki
On Tuesday, May 22, 2018 12:50:06 PM CEST Viresh Kumar wrote: > On 22-05-18, 16:04, Viresh Kumar wrote: > > Okay, me and Rafael were discussing this patch, locking and races around > > this. > > > > On 18-05-18, 11:55, Joel Fernandes (Google.) wrote: > > > diff --git a/kernel/sched/cpufreq_schedu

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-22 Thread Viresh Kumar
On 22-05-18, 16:04, Viresh Kumar wrote: > Okay, me and Rafael were discussing this patch, locking and races around this. > > On 18-05-18, 11:55, Joel Fernandes (Google.) wrote: > > diff --git a/kernel/sched/cpufreq_schedutil.c > > b/kernel/sched/cpufreq_schedutil.c > > index e13df951aca7..5c482ec

Re: [PATCH 4.16 000/110] 4.16.11-stable review

2018-05-22 Thread Naresh Kamboju
On 22 May 2018 at 02:40, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.16.11 release. > There are 110 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

Re: [PATCH v6 9/9] iio: counter: Remove IIO counter subdirectory

2018-05-22 Thread Jonathan Cameron
On Mon, 21 May 2018 09:58:28 -0400 William Breathitt Gray wrote: > On Sun, May 20, 2018 at 04:53:02PM +0100, Jonathan Cameron wrote: > >On Wed, 16 May 2018 13:52:39 -0400 > >William Breathitt Gray wrote: > > > >> This patch removes the IIO counter subdirectory which is now superceded > >> by t

Re: [PATCH v2 2/2] cpufreq: qcom-fw: Add support for QCOM cpufreq FW driver

2018-05-22 Thread Taniya Das
Hello Viresh, Thanks for your comments. On 5/22/2018 12:36 AM, skan...@codeaurora.org wrote: On 2018-05-21 02:01, Viresh Kumar wrote: On 19-05-18, 23:04, Taniya Das wrote: The CPUfreq FW present in some QCOM chipsets offloads the steps necessary for changing the frequency of CPUs. The driver

Re: [PATCH v2] remoteproc: Introduce prepare/unprepare ops for rproc coredump

2018-05-22 Thread kbuild test robot
://github.com/0day-ci/linux/commits/Sibi-Sankar/remoteproc-Introduce-prepare-unprepare-ops-for-rproc-coredump/20180522-133348 config: arm64-allyesconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests

Re: nds32 build failures

2018-05-22 Thread Arnd Bergmann
On Tue, May 22, 2018 at 4:15 AM, Vincent Chen wrote: > On Fri, May 11, 2018 at 01:17:05PM +0800, Kito Cheng wrote: >> Hi Arnd: >> >> I am GCC guy from Andes, we've missed the release schedule for GCC 8, >> we didn't upstream the Linux support on time. >> >> Our plan is put our GCC 8 on github and

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-22 Thread Patrick Bellasi
Hi Viresh, thanks for clarifying... On 22-May 15:53, Viresh Kumar wrote: > On 21-05-18, 10:20, Joel Fernandes wrote: > > On Mon, May 21, 2018 at 06:00:50PM +0100, Patrick Bellasi wrote: > > > If that's the case, this means that if, for example, during a > > > frequency switch you get a request to

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-22 Thread Viresh Kumar
Okay, me and Rafael were discussing this patch, locking and races around this. On 18-05-18, 11:55, Joel Fernandes (Google.) wrote: > diff --git a/kernel/sched/cpufreq_schedutil.c > b/kernel/sched/cpufreq_schedutil.c > index e13df951aca7..5c482ec38610 100644 > --- a/kernel/sched/cpufreq_schedutil.

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-22 Thread Patrick Bellasi
On 21-May 11:05, Joel Fernandes wrote: > On Mon, May 21, 2018 at 11:50:55AM +0100, Patrick Bellasi wrote: > > On 18-May 11:55, Joel Fernandes (Google.) wrote: > > > From: "Joel Fernandes (Google)" > > > > > > Currently there is a chance of a schedutil cpufreq update request to be > > > dropped if

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-22 Thread Viresh Kumar
On 21-05-18, 10:20, Joel Fernandes wrote: > On Mon, May 21, 2018 at 06:00:50PM +0100, Patrick Bellasi wrote: > > If that's the case, this means that if, for example, during a > > frequency switch you get a request to reduce the frequency (e.g. > > deadline task passing the 0-lag time) and right aft

Re: [RFC PATCH v2 00/12] get rid of GFP_ZONE_TABLE/BAD

2018-05-22 Thread Huaisheng HS1 Ye
From: owner-linux...@kvack.org On Behalf Of Christoph Hellwig > This seems to be missing patch 1 and generally be in somewhat odd format. > Can you try to resend it with git-send-email and against current Linus' > tree? > Sure, I will rebase them to current mainline ASAP. > Also I'd suggest you d

Re: set_fs(KERNEL_DS) vs iovec

2018-05-22 Thread Christoph Hellwig
On Tue, May 22, 2018 at 03:08:35PM +1000, Benjamin Herrenschmidt wrote: > Hence my question: Is is still acceptable these days to use > set_fs(KERNEL_DS) for simple cases like this ? Not at all. > Or is it really > deprecated and all new users should use the iovec's ? Yes, please use iov_iter.

[PATCH net-next v2 3/3] Documentation/bindings: net: the sfp i2c-bus property is now mandatory

2018-05-22 Thread Antoine Tenart
The i2c-bus property for sfp modules was made mandatory. Update the documentation to keep it in sync with the driver's behaviour. Signed-off-by: Antoine Tenart --- Documentation/devicetree/bindings/net/sff,sfp.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentat

[PATCH net-next v2 1/3] net: phy: sfp: warn the user when no tx_disable pin is available

2018-05-22 Thread Antoine Tenart
In case no Tx disable pin is available the SFP modules will always be emitting. This could be an issue when using modules using laser as their light source as we would have no way to disable it when the fiber is removed. This patch adds a warning when registering an SFP cage which do not have its t

[PATCH net-next v2 2/3] net: phy: sfp: make the i2c-bus dt property mandatory

2018-05-22 Thread Antoine Tenart
This patch makes the i2c-bus property mandatory when using a device tree. If the sfp i2c bus isn't described it's impossible to guess the protocol to use for a given module, and the sfp module would then not work in most cases. Signed-off-by: Antoine Tenart --- drivers/net/phy/sfp.c | 28 +++

[PATCH net-next v2 0/3] net: sfp: small improvements

2018-05-22 Thread Antoine Tenart
Hi Russell, David, A small series of patches improving the SFP support by adding a warning when no Tx disable pin is available, and making the i2c-bus property mandatory. Thanks! Antoine Since v1: - Removed the patch fixing the sfp driver when no i2c bus was described. - Made two new patches

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-22 Thread Ulf Magnusson
On Mon, May 21, 2018 at 5:47 AM, Randy Dunlap wrote: > On 05/20/2018 08:33 PM, Ulf Magnusson wrote: >> On Mon, May 21, 2018 at 4:45 AM, Randy Dunlap wrote: >>> On 05/19/2018 09:47 PM, Ulf Magnusson wrote: On Sun, May 20, 2018 at 6:03 AM, Randy Dunlap wrote: > On 05/19/2018 08:45 P

RE: [External] Re: [RFC PATCH v2 02/12] arch/x86/kernel/amd_gart_64: update usage of address zone modifiers

2018-05-22 Thread Huaisheng HS1 Ye
From: owner-linux...@kvack.org On Behalf Of Christoph Hellwig > > This code doesn't exist in current mainline. What kernel version > is your patch against? > > On Mon, May 21, 2018 at 11:20:23PM +0800, Huaisheng Ye wrote: > > From: Huaisheng Ye > > > > Use __GFP_ZONE_MASK to replace (__GFP_DMA

Re: Clang patch stacks for LTS kernels (v4.4 and v4.9) and status update

2018-05-22 Thread Sedat Dilek
Hi, I looked again into the llvm-bug #37512 and mentioned patches, so I give this a 2nd try (see attached patchset). Regards, - Sedat - From 6b78d2ecfae1cd3de35c8871605f0881df174b35 Mon Sep 17 00:00:00 2001 From: Nick Desaulniers Date: Sat, 7 Oct 2017 13:23:23 -0700 Subject: [PATCH 1/4] kbuild:

[PATCH v7 00/17] Improve shrink_slab() scalability (old complexity was O(n^2), new is O(n))

2018-05-22 Thread Kirill Tkhai
Hi, this patches solves the problem with slow shrink_slab() occuring on the machines having many shrinkers and memory cgroups (i.e., with many containers). The problem is complexity of shrink_slab() is O(n^2) and it grows too fast with the growth of containers numbers. Let we have 200 containers,

[PATCH v7 03/17] mm: Assign id to every memcg-aware shrinker

2018-05-22 Thread Kirill Tkhai
The patch introduces shrinker::id number, which is used to enumerate memcg-aware shrinkers. The number start from 0, and the code tries to maintain it as small as possible. This will be used as to represent a memcg-aware shrinkers in memcg shrinkers map. Since all memcg-aware shrinkers are based

[PATCH v2 1/2] kasan: free allocated shadow memory on MEM_CANCEL_ONLINE

2018-05-22 Thread David Hildenbrand
We have to free memory again when we cancel onlining, otherwise a later onlining attempt will fail. Signed-off-by: David Hildenbrand --- mm/kasan/kasan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/kasan/kasan.c b/mm/kasan/kasan.c index 135ce2838c89..53564229674b 100644 --- a/mm/kasan

[PATCH v7 01/17] list_lru: Combine code under the same define

2018-05-22 Thread Kirill Tkhai
These two pairs of blocks of code are under the same #ifdef #else #endif. Signed-off-by: Kirill Tkhai --- mm/list_lru.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/mm/list_lru.c b/mm/list_lru.c index d9c84c5bda1d..37d712924e56 100644 --- a/mm/list_lr

[PATCH v7 08/17] fs: Propagate shrinker::id to list_lru

2018-05-22 Thread Kirill Tkhai
The patch adds list_lru::shrinker_id field, and populates it by registered shrinker id. This will be used to set correct bit in memcg shrinkers map by lru code in next patches, after there appeared the first related to memcg element in list_lru. Signed-off-by: Kirill Tkhai --- fs/super.c

[PATCH v7 04/17] memcg: Move up for_each_mem_cgroup{, _tree} defines

2018-05-22 Thread Kirill Tkhai
Next patch requires these defines are above their current position, so here they are moved to declarations. Signed-off-by: Kirill Tkhai --- mm/memcontrol.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c ind

[PATCH v2 2/2] kasan: fix memory hotplug during boot

2018-05-22 Thread David Hildenbrand
Using module_init() is wrong. E.g. ACPI adds and onlines memory before our memory notifier gets registered. This makes sure that ACPI memory detected during boot up will not result in a kernel crash. Easily reproducable with QEMU, just specify a DIMM when starting up. Signed-off-by: David Hilden

[PATCH v7 11/17] list_lru: Pass lru argument to memcg_drain_list_lru_node()

2018-05-22 Thread Kirill Tkhai
This is just refactoring to allow next patches to have lru pointer in memcg_drain_list_lru_node(). Signed-off-by: Kirill Tkhai --- mm/list_lru.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mm/list_lru.c b/mm/list_lru.c index 43cbec52a48a..cab8fad7f7e2 100644 --- a

[PATCH v7 10/17] list_lru: Pass dst_memcg argument to memcg_drain_list_lru_node()

2018-05-22 Thread Kirill Tkhai
This is just refactoring to allow next patches to have dst_memcg pointer in memcg_drain_list_lru_node(). Signed-off-by: Kirill Tkhai --- include/linux/list_lru.h |2 +- mm/list_lru.c| 11 ++- mm/memcontrol.c |2 +- 3 files changed, 8 insertions(+), 7 deleti

Re: [PATCH v4 1/2] xen/PVH: Set up GS segment for stack canary

2018-05-22 Thread Jan Beulich
>>> On 22.05.18 at 05:54, wrote: > We are making calls to C code (e.g. xen_prepare_pvh()) which may use > stack canary (stored in GS segment). > > Signed-off-by: Boris Ostrovsky Reviewed-by: Jan Beulich

[PATCH v7 16/17] mm: Add SHRINK_EMPTY shrinker methods return value

2018-05-22 Thread Kirill Tkhai
We need to differ the situations, when shrinker has very small amount of objects (see vfs_pressure_ratio() called from super_cache_count()), and when it has no objects at all. Currently, in the both of these cases, shrinker::count_objects() returns 0. The patch introduces new SHRINK_EMPTY return v

PTP clock driver for FSL DPAA

2018-05-22 Thread Y.b. Lu
Hi Richard, I'm going to make a PTP clock driver patch for FSL DPAA ethernet controller. (drivers/net/ethernet/freescale/dpaa/) Actually the 1588 timer module on FSL DPAA is same with the one on FSL eTSEC in hardware.(whose PTP clock driver is drivers/net/ethernet/freescale/gianfar_ptp.c) So t

[PATCH v7 17/17] mm: Clear shrinker bit if there are no objects related to memcg

2018-05-22 Thread Kirill Tkhai
To avoid further unneed calls of do_shrink_slab() for shrinkers, which already do not have any charged objects in a memcg, their bits have to be cleared. This patch introduces a lockless mechanism to do that without races without parallel list lru add. After do_shrink_slab() returns SHRINK_EMPTY t

[PATCH v7 15/17] mm: Generalize shrink_slab() calls in shrink_node()

2018-05-22 Thread Kirill Tkhai
From: Vladimir Davydov The patch makes shrink_slab() be called for root_mem_cgroup in the same way as it's called for the rest of cgroups. This simplifies the logic and improves the readability. Signed-off-by: Vladimir Davydov ktkhai: Description written. Signed-off-by: Kirill Tkhai --- mm/vm

Re: [PATCH 11/12] xfs: convert to bioset_init()/mempool_init()

2018-05-22 Thread Christoph Hellwig
This creates a minor conflict with my iomap series, but that should be easy to merge if needed. Otherwise looks good: Reviewed-by: Christoph Hellwig

[PATCH] kselftest/cgroup: fix variable dereferenced before check warning

2018-05-22 Thread Roman Gushchin
cg_name(const char *root, const char *name) is always called with non-empty root and name arguments, so there is no sense in checking it in the function body (after using in strlen()). Signed-off-by: Roman Gushchin Reported-by: Dan Carpenter Cc: linux-kselft...@vger.kernel.org --- tools/testing

Re: [PATCH v2] platform/x86: asus-wmi: Add keyboard backlight toggle support

2018-05-22 Thread Chris Chiu
On Tue, May 22, 2018 at 5:18 PM, Andy Shevchenko wrote: > On Tue, May 15, 2018 at 4:41 PM, Benjamin Berg wrote: > >> I had a quick chat with Bastien about this. The conclusion was that >> reusing the TOGGLE key may be problematic for gnome-settings-daemon. >> And the alternative of a new CYCLE ke

Re: [PATCH 12/12] block: Drop bioset_create()

2018-05-22 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH 04/12] lightnvm: convert to bioset_init()/mempool_init()

2018-05-22 Thread Javier Gonzalez
> On 21 May 2018, at 00.25, Kent Overstreet wrote: > > Signed-off-by: Kent Overstreet > --- > drivers/lightnvm/pblk-core.c | 30 ++--- > drivers/lightnvm/pblk-init.c | 72 > drivers/lightnvm/pblk-read.c | 4 +- > drivers/lightnvm/pblk-recovery.c

[PATCH v7 14/17] mm: Iterate only over charged shrinkers during memcg shrink_slab()

2018-05-22 Thread Kirill Tkhai
Using the preparations made in previous patches, in case of memcg shrink, we may avoid shrinkers, which are not set in memcg's shrinkers bitmap. To do that, we separate iterations over memcg-aware and !memcg-aware shrinkers, and memcg-aware shrinkers are chosen via for_each_set_bit() from the bitma

Re: [PATCH v1] dma: imx-sdma: add virt-dma support

2018-05-22 Thread Sascha Hauer
Hi Robin, Several comments inside. Sascha On Fri, Mar 23, 2018 at 12:18:19AM +0800, Robin Gong wrote: > The legacy sdma driver has below limitations or drawbacks: > 1. Hardcode the max BDs number as "PAGE_SIZE / sizeof(*)", and alloc > one page size for one channel regardless of only few

[PATCH v7 13/17] mm: Set bit in memcg shrinker bitmap on first list_lru item apearance

2018-05-22 Thread Kirill Tkhai
Introduce set_shrinker_bit() function to set shrinker-related bit in memcg shrinker bitmap, and set the bit after the first item is added and in case of reparenting destroyed memcg's items. This will allow next patch to make shrinkers be called only, in case of they have charged objects at the mom

Re: [PATCH 08/12] target: convert to bioset_init()/mempool_init()

2018-05-22 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

[PATCH v7 12/17] mm: Export mem_cgroup_is_root()

2018-05-22 Thread Kirill Tkhai
This will be used in next patch. Signed-off-by: Kirill Tkhai --- include/linux/memcontrol.h | 10 ++ mm/memcontrol.c|5 - 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index e51c6e953d7a..24ab

[PATCH v7 09/17] list_lru: Add memcg argument to list_lru_from_kmem()

2018-05-22 Thread Kirill Tkhai
This is just refactoring to allow next patches to have memcg pointer in list_lru_from_kmem(). Signed-off-by: Kirill Tkhai --- mm/list_lru.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/mm/list_lru.c b/mm/list_lru.c index dde9ecae7cb5..151fa77eb

Re: [PATCH 09/12] fs: convert block_dev.c to bioset_init()

2018-05-22 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH 01/12] block: convert bounce, q->bio_split to bioset_init()/mempool_init()

2018-05-22 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

[PATCH v7 02/17] mm: Introduce CONFIG_MEMCG_KMEM as combination of CONFIG_MEMCG && !CONFIG_SLOB

2018-05-22 Thread Kirill Tkhai
This patch introduces new config option, which is used to replace repeating CONFIG_MEMCG && !CONFIG_SLOB pattern. Next patches add a little more memcg+kmem related code, so let's keep the defines more clearly. Signed-off-by: Kirill Tkhai --- include/linux/list_lru.h |4 ++-- include/linux/

[PATCH v7 07/17] fs: Refactoring in alloc_super()

2018-05-22 Thread Kirill Tkhai
Do two list_lru_init_memcg() calls after prealloc_super(). destroy_unused_super() in fail path is OK with this. Next patch needs such the order. Signed-off-by: Kirill Tkhai --- fs/super.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/super.c b/fs/super.c index

[PATCH v2 0/2] kasan: fix memory notifier handling

2018-05-22 Thread David Hildenbrand
If onlining of pages fails (is canceled), we don't properly free up memory. Also, the memory hotplug notifier is not registered early enough, still failing on certain setups where memory is detected, added and onlined early. v1 -> v2: - s/MEM_CANCEL_OFFLINE/MEM_CANCEL_ONLINE David Hildenbrand (2)

[PATCH v7 06/17] mm: Refactoring in workingset_init()

2018-05-22 Thread Kirill Tkhai
Use prealloc_shrinker()/register_shrinker_prepared() instead of register_shrinker(). This will be used in next patch. Signed-off-by: Kirill Tkhai --- mm/workingset.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mm/workingset.c b/mm/workingset.c index 40ee02c83978

[PATCH v6 6/6] clk: renesas: Renesas RZ/N1 clock driver

2018-05-22 Thread Michel Pollet
This provides a clock driver for the Renesas RZ/N1 parts (#R09A06G0xx). This uses a structure derived from both the RCAR gen2 driver as well as the renesas-cpg-mssr driver. Signed-off-by: Michel Pollet --- drivers/clk/renesas/Kconfig | 6 + drivers/clk/renesas/Makefile | 1 + driv

[PATCH v6 5/6] ARM: dts: Renesas RZN1D-DB Board base file

2018-05-22 Thread Michel Pollet
This adds a base device tree file for the RZN1-DB board, with only the basic support allowing the system to boot to a prompt. Only one UART is used, with only a single CPU running. Signed-off-by: Michel Pollet --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/r9a06g032-rz

[PATCH v7 05/17] mm: Assign memcg-aware shrinkers bitmap to memcg

2018-05-22 Thread Kirill Tkhai
Imagine a big node with many cpus, memory cgroups and containers. Let we have 200 containers, every container has 10 mounts, and 10 cgroups. All container tasks don't touch foreign containers mounts. If there is intensive pages write, and global reclaim happens, a writing task has to iterate over a

[PATCH v6 2/6] dt-bindings: Add the rzn1-clocks.h file

2018-05-22 Thread Michel Pollet
This adds the constants necessary to use the renesas,rzn1-clocks driver. Signed-off-by: Michel Pollet --- include/dt-bindings/clock/rzn1-clocks.h | 187 1 file changed, 187 insertions(+) create mode 100644 include/dt-bindings/clock/rzn1-clocks.h diff --git a/in

[PATCH v6 4/6] ARM: dts: Renesas RZ/N1 SoC base device tree file

2018-05-22 Thread Michel Pollet
This adds the Renesas RZ/N1D (Part #R9A06G032) SoC bare bone support. This currently only handles generic parts (gic, architected timer) and a UART. For simplicity sake, this also relies on the bootloader to set the pinctrl and clocks. Signed-off-by: Michel Pollet --- arch/arm/boot/dts/r9a06g03

[PATCH v6 3/6] dt-bindings: clock: renesas,rzn1-clocks: document RZ/N1 clock driver

2018-05-22 Thread Michel Pollet
The Renesas RZ/N1 Family (Part #R9A06G0xx) requires a driver to provide the SoC clock infrastructure for Linux. This documents the driver bindings. Signed-off-by: Michel Pollet --- .../bindings/clock/renesas,rzn1-clocks.txt | 44 ++ 1 file changed, 44 insertions(+)

[PATCH v6 0/6] arm: Base support for Renesas RZN1D-DB Board

2018-05-22 Thread Michel Pollet
This series adds the plain basic support for booting a bare kernel on the RZ/N1D-DB Board. It's been trimmed to the strict minimum as a 'base', further patches that will add the rest of the support. Special note on the clock driver: Current usage of the clocks on Linux involves Linux 'claiming' al

[PATCH v6 1/6] dt-bindings: arm: Document the RZN1D-DB board

2018-05-22 Thread Michel Pollet
This documents the RZ/N1 bindings for the RZN1D-DB board. Signed-off-by: Michel Pollet Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/shmobile.txt | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/shmobile.txt b/Do

Re: [PATCH v5 5/5] fs: iomap dio set bio prio from kiocb prio

2018-05-22 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v5 3/5] fs: Add aio iopriority support

2018-05-22 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v5 2/5] fs: Convert kiocb rw_hint from enum to u16

2018-05-22 Thread Christoph Hellwig
On Mon, May 21, 2018 at 09:01:44AM -0700, adam.manzana...@wdc.com wrote: > From: Adam Manzanares > > In order to avoid kiocb bloat for per command iopriority support, rw_hint > is converted from enum to a u16. Added a guard around ki_hint assigment. > > Signed-off-by: Adam Manzanares Looks goo

Re: [PATCH 01/33] usb: phy: use match_string() helper

2018-05-22 Thread Greg Kroah-Hartman
On Tue, May 22, 2018 at 01:20:01AM +0300, Andy Shevchenko wrote: > On Mon, May 21, 2018 at 2:57 PM, Yisheng Xie wrote: > > match_string() returns the index of an array for a matching string, > > which can be used intead of open coded variant. > > > - int err, i; > > + int ret; > > in

Re: [PATCH v2 09/14] mtd: rawnand: qcom: modify write_oob to remove read codeword part

2018-05-22 Thread Miquel Raynal
Hi Abhishek, Some nitpicking below. On Thu, 3 May 2018 17:50:36 +0530, Abhishek Sahu wrote: > QCOM NAND layout protect available OOB data bytes with ECC also so ^controller > when ecc->write_oob (qcom_nandc_write_oob) is being called then it You can just state "->write_oob()" >

Re: [PATCH v2] schedutil: Allow cpufreq requests to be made even when kthread kicked

2018-05-22 Thread Rafael J. Wysocki
On Mon, May 21, 2018 at 6:13 PM, Joel Fernandes wrote: > On Mon, May 21, 2018 at 10:29:52AM +0200, Rafael J. Wysocki wrote: >> On Mon, May 21, 2018 at 7:14 AM, Viresh Kumar >> wrote: >> > On 18-05-18, 11:55, Joel Fernandes (Google.) wrote: >> >> From: "Joel Fernandes (Google)" >> >> >> >> Curre

[PATCH] cpufreq: Rename cpufreq_can_do_remote_dvfs()

2018-05-22 Thread Viresh Kumar
This routine checks if the CPU running this code belongs to the policy of the target CPU or if not, can it do remote DVFS for it remotely. But the current name of it implies as if it is only about doing remote updates. Rename it to make it more relevant. Reported-by: Rafael J. Wysocki Signed-off

Re: [PATCH v1 1/2] kasan: free allocated shadow memory on MEM_CANCEL_OFFLINE

2018-05-22 Thread David Hildenbrand
On 22.05.2018 11:55, David Hildenbrand wrote: > We have to free memory again when we cancel onlining, otherwise a later > onlining attempt will fail. > > Signed-off-by: David Hildenbrand > --- > mm/kasan/kasan.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/mm/kasan/kasan.c b/mm/kasa

[PATCH v1 2/2] kasan: fix memory hotplug during boot

2018-05-22 Thread David Hildenbrand
Using module_init() is wrong. E.g. ACPI adds and onlines memory before our memory notifier gets registered. This makes sure that ACPI memory detected during boot up will not result in a kernel crash. Easily reproducable with QEMU, just specify a DIMM when starting up. Signed-off-by: David Hilden

[PATCH v1 0/2] kasan: fix memory notifier handling

2018-05-22 Thread David Hildenbrand
If onlining of pages fails, we don't properly free up memory. Also, the memory hotplug notifier is not registered early enough, still failing on certain setups where memory is detected, added and onlined early. David Hildenbrand (2): kasan: free allocated shadow memory on MEM_CANCEL_OFFLINE ka

[PATCH v1 1/2] kasan: free allocated shadow memory on MEM_CANCEL_OFFLINE

2018-05-22 Thread David Hildenbrand
We have to free memory again when we cancel onlining, otherwise a later onlining attempt will fail. Signed-off-by: David Hildenbrand --- mm/kasan/kasan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/kasan/kasan.c b/mm/kasan/kasan.c index 135ce2838c89..8baefe1a674b 100644 --- a/mm/kasan

Re: [RFT v2 1/4] perf cs-etm: Generate sample for missed packets

2018-05-22 Thread Leo Yan
On Tue, May 22, 2018 at 04:39:20PM +0800, Leo Yan wrote: [...] Rather than the patch I posted in my previous email, I think below new patch is more reasonable for me. In the below change, 'etmq->prev_packet' is only used to store the previous CS_ETM_RANGE packet, we don't need to save CS_ETM_TRA

Re: [PATCH v3 0/2] Fix and cleanup iowait boost

2018-05-22 Thread Peter Zijlstra
Acked-by: Peter Zijlstra (Intel)

Re: [PATCH v5 04/28] fpga: mgr: add compat_id support

2018-05-22 Thread Wu Hao
On Mon, May 21, 2018 at 12:33:05PM -0500, Alan Tull wrote: > On Sun, May 20, 2018 at 10:03 PM, Wu Hao wrote: > > On Mon, May 07, 2018 at 04:09:06PM -0500, Alan Tull wrote: > >> On Tue, May 1, 2018 at 9:50 PM, Wu Hao wrote: > >> > >> Hi Hao, > >> > >> Looks good! > >> > >> > This patch introduces

Re: [PATCH 1/2] drm/fourcc: add a 10bits fully packed variant of NV12

2018-05-22 Thread Randy Li
On 05/22/2018 05:26 PM, Maarten Lankhorst wrote: Op 20-05-18 om 19:17 schreef Randy Li: This pixel format is a fully packed and 10bits variant of NV12. A luma pixel would take 10bits in memory, without any filled bits between pixels in a stride. The color gamut follows the BT.2020 standard. S

Re: [PATCH] x86: UV: raw_spinlock conversion

2018-05-22 Thread Mike Galbraith
On Tue, 2018-05-22 at 11:14 +0200, Sebastian Andrzej Siewior wrote: > On 2018-05-22 10:24:22 [+0200], Mike Galbraith wrote: > > > If I were in your shoes, I think I'd just stop caring about UV until a > > real user appears. AFAIK, I'm the only guy who ever ran RT on UV, and > > I only did so beca

Re: [PATCH] typec: tcpm: Provide of_node pointer as part of psy_cfg

2018-05-22 Thread Heikki Krogerus
On Mon, May 21, 2018 at 03:34:53PM +, Adam Thomson wrote: > On 21 May 2018 15:56, Heikki Krogerus wrote: > > > On Mon, May 21, 2018 at 01:58:16PM +, Adam Thomson wrote: > > > Hi Heikki, > > > > > > On 21 May 2018 14:20, Heikki Krogerus wrote: > > > > > > > On Wed, May 16, 2018 at 05:00:46P

[PATCH v2 05/16] irqchip/irq-mvebu-icu: switch to regmap

2018-05-22 Thread Miquel Raynal
Before splitting the code to support multiple platform devices to be probed (one for the ICU, one per interrupt group), let's switch to regmap first by creating one in the ->probe(). Signed-off-by: Miquel Raynal --- drivers/irqchip/irq-mvebu-icu.c | 45 +++--

[PATCH v2 06/16] irqchip/irq-mvebu-icu: make irq_domain local

2018-05-22 Thread Miquel Raynal
Make the current MSI irq_domain local to ease the split between ICU platform device code and NSR platform device code. Signed-off-by: Miquel Raynal Reviewed-by: Thomas Petazzoni --- drivers/irqchip/irq-mvebu-icu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH v2 00/16] Add System Error Interrupt support to Armada SoCs

2018-05-22 Thread Miquel Raynal
The ICU is an IRQ chip found in Armada CP110. It currently has 207 wired inputs. Its purpose is to aggregate all CP interrupts and report them to the AP through MSIs. The ICU writes into GIC registers (AP side) by way of the interconnect. These interrupts can be of several groups: - SecuRe (SR); -

[PATCH v2 07/16] irqchip/irq-mvebu-icu: disociate ICU and NSR

2018-05-22 Thread Miquel Raynal
NSR (non-secure interrupts) are handled in the ICU driver like if there was only this type of interrupt in the ICU. Change this behavior to prepare the introduction of SEI (System Error Interrupts) support by moving the NSR code in a separate function. This is done under the form of a 'probe' funct

[PATCH v2 08/16] irqchip/irq-mvebu-icu: support ICU subnodes

2018-05-22 Thread Miquel Raynal
The ICU can handle several type of interrupt, each of them being handled differently on AP side. On CP side, the ICU should be able to make the distinction between each interrupt group by pointing to the right parent. This is done through the introduction of new bindings, presenting the ICU node a

[PATCH v2 11/16] irqchip/irq-mvebu-icu: add support for System Error Interrupts (SEI)

2018-05-22 Thread Miquel Raynal
An SEI driver provides an MSI domain through which it is possible to raise SEIs. Handle the NSR probe function in a more generic way to support other type of interrupts (ie. the SEIs). For clarity we do not use tree IRQ domains for now but linear ones instead, allocating the 207 ICU lines for eac

[PATCH v2 10/16] arm64: marvell: enable SEI driver

2018-05-22 Thread Miquel Raynal
Enable the newly introduced Marvell SEI driver for the 64-bit Marvell EBU platforms. Suggested-by: Haim Boot Signed-off-by: Miquel Raynal Reviewed-by: Gregory CLEMENT --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/

[PATCH v2 12/16] dt-bindings/interrupt-controller: update Marvell ICU bindings

2018-05-22 Thread Miquel Raynal
Change the documentation to reflect the new bindings used for Marvell ICU. This involves describing each interrupt group as a subnode of the ICU node. Each of them having their own compatible. Signed-off-by: Miquel Raynal --- .../bindings/interrupt-controller/marvell,icu.txt | 81 ++

[PATCH v2 01/16] dt-bindings/interrupt-controller: fix Marvell ICU length in the example

2018-05-22 Thread Miquel Raynal
ICU size in CP110 is not 0x10 but at least 0x440 bytes long (from the specification). Signed-off-by: Miquel Raynal Reviewed-by: Rob Herring Reviewed-by: Thomas Petazzoni --- Documentation/devicetree/bindings/interrupt-controller/marvell,icu.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletio

<    6   7   8   9   10   11   12   13   >