Re: [PATCH v2 3/3] powerpc/mm: Implement CONFIG_DEBUG_RODATA on PPC32

2017-04-21 Thread christophe leroy
Le 22/04/2017 à 08:08, Michael Ellerman a écrit : "Naveen N. Rao" writes: Excerpts from Christophe Leroy's message of April 21, 2017 18:32: diff --git a/arch/powerpc/kernel/ftrace.c b/arch/powerpc/kernel/ftrace.c index 32509de6ce4c..06d2ac53f471 100644 --- a/arch/powerpc/kernel/ftrace.c +++

Re: [PATCH] ASoC: fix odd_ptr_err.cocci warnings (fwd)

2017-04-21 Thread Takashi Iwai
On Sat, 22 Apr 2017 00:14:57 +0200, Julia Lawall wrote: > > I don't think the patch is correct, so I haven't bothered signing off on > it. Probably the & is not correct in the IS_ERR call? Yes, IS_ERR() was called with the wrong argument. I fixed it now. Note that it's no branch to be merged t

Re: [PATCH v3 2/2] modules:capabilities: add a per-task modules autoload restriction

2017-04-21 Thread Andy Lutomirski
On Fri, Apr 21, 2017 at 5:12 PM, Djalal Harouni wrote: > On Sat, Apr 22, 2017 at 1:51 AM, Andy Lutomirski wrote: > [...] I personally like my implicit_rights idea, and it might be interesting to prototype it. >>> >>> I don't like blocking a needed feature behind a large super-feature >>

Re: [PATCH v3 2/2] modules:capabilities: add a per-task modules autoload restriction

2017-04-21 Thread Andy Lutomirski
On Fri, Apr 21, 2017 at 5:13 PM, Casey Schaufler wrote: > On 4/21/2017 5:00 PM, Andy Lutomirski wrote: >> On Fri, Apr 21, 2017 at 4:52 PM, Casey Schaufler >> wrote: >>> On 4/21/2017 4:28 PM, Andy Lutomirski wrote: On Fri, Apr 21, 2017 at 4:19 PM, Kees Cook wrote: > On Wed, Apr 19, 2017

[PATCH v2] bus: fsl-mc: dpio: fix alter FQ state command

2017-04-21 Thread Horia Geantă
When checking the response verb, the valid bit should be masked out, since its value flips depending on what Response Register (RR0 /RR1) it's been read from. Fixes: 321eecb06bfb ("bus: fsl-mc: dpio: add QBMan portal APIs for DPAA2") Signed-off-by: Horia Geantă --- v2: use QBMAN_RESULT_MASK inste

RE: Performance of low-cpu utilisation benchmark regressed severely since 4.6

2017-04-21 Thread Doug Smythies
On 2017.04.20 18:18 Rafael wrote: > On Thursday, April 20, 2017 07:55:57 AM Doug Smythies wrote: >> On 2017.04.19 01:16 Mel Gorman wrote: >>> On Fri, Apr 14, 2017 at 04:01:40PM -0700, Doug Smythies wrote: Hi Mel, > > [cut] > >>> And the revert does help albeit not being an option for reasons R

Re: [PATCH] hwmon: (ibmpowernv) Add min/max attributes and current sensors

2017-04-21 Thread Michael Ellerman
Shilpasri G Bhat writes: > On 04/21/2017 05:17 PM, Cédric Le Goater wrote: >> On 04/21/2017 06:31 AM, Shilpasri G Bhat wrote: >>> diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c >>> index 6d2e660..1f329fa8 100644 >>> --- a/drivers/hwmon/ibmpowernv.c >>> +++ b/drivers/hwmon/ibm

Re: powerpc KVM build break in linux-next (was Re: [PATCH tip/core/rcu 40/40] srcu: Parallelize callback handling)

2017-04-21 Thread Michael Ellerman
"Paul E. McKenney" writes: > On Fri, Apr 21, 2017 at 09:27:59AM +0200, Paolo Bonzini wrote: >> On 21/04/2017 06:17, Paul E. McKenney wrote: >> >> Thanks, this looks perfect to me, and if you're happy to put it on top >> >> of your tree that would limit the breakage to a smaller history window, >>

Re: [PATCH v2 3/3] powerpc/mm: Implement CONFIG_DEBUG_RODATA on PPC32

2017-04-21 Thread Michael Ellerman
"Naveen N. Rao" writes: > Excerpts from Christophe Leroy's message of April 21, 2017 18:32: >> diff --git a/arch/powerpc/kernel/ftrace.c >> b/arch/powerpc/kernel/ftrace.c >> index 32509de6ce4c..06d2ac53f471 100644 >> --- a/arch/powerpc/kernel/ftrace.c >> +++ b/arch/powerpc/kernel/ftrace.c >> @@ -

Re: [PATCH v4 3/7] kprobes: validate the symbol name provided during probe registration

2017-04-21 Thread Michael Ellerman
"Naveen N. Rao" writes: > When a kprobe is being registered, we use the symbol_name field to > lookup the address where the probe should be placed. Since this is a > user-provided field, let's ensure that the length of the string is > within expected limits. What are we actually trying to protec

Re: [PATCH 8/8] selftests: x86: override clean in lib.mk to fix warnings

2017-04-21 Thread Michael Ellerman
Shuah Khan writes: > Add override for lib.mk clean to fix the following warnings from clean > target run. > > Makefile:44: warning: overriding recipe for target 'clean' > ../lib.mk:55: warning: ignoring old recipe for target 'clean' > > Signed-off-by: Shuah Khan > --- > tools/testing/selftests/

Re: [PATCH 6/8] selftests: splice: override clean in lib.mk to fix warnings

2017-04-21 Thread Michael Ellerman
Shuah Khan writes: > Add override for lib.mk clean to fix the following warnings from clean > target run. > > Makefile:8: warning: overriding recipe for target 'clean' > ../lib.mk:55: warning: ignoring old recipe for target 'clean' > > Signed-off-by: Shuah Khan > --- > tools/testing/selftests/s

Re: [PATCH 7/8] selftests: sync: override clean in lib.mk to fix warnings

2017-04-21 Thread Michael Ellerman
Shuah Khan writes: > Add override for lib.mk clean to fix the following warnings from clean > target run. > > Makefile:24: warning: overriding recipe for target 'clean' > ../lib.mk:55: warning: ignoring old recipe for target 'clean' > > Signed-off-by: Shuah Khan > --- > tools/testing/selftests/

Re: [PATCH 4/8] selftests: gpio: override clean in lib.mk to fix warnings

2017-04-21 Thread Michael Ellerman
Shuah Khan writes: > Add override for lib.mk clean to fix the following warnings from clean > target run. > > Makefile:11: warning: overriding recipe for target 'clean' > ../lib.mk:55: warning: ignoring old recipe for target 'clean' > > Signed-off-by: Shuah Khan > --- > tools/testing/selftests/

Re: [PATCH 2/8] selftests: lib.mk: define CLEAN macro to allow Makefiles to override clean

2017-04-21 Thread Michael Ellerman
Shuah Khan writes: > Define CLEAN macro to allow Makefiles to override common clean target > in lib.mk. This will help fix the following failures: > > warning: overriding recipe for target 'clean' > ../lib.mk:55: warning: ignoring old recipe for target 'clean' > > Signed-off-by: Shuah Khan Shou

Re: Linux 3.18.50

2017-04-21 Thread Greg KH
diff --git a/Makefile b/Makefile index 252070fdf91c..8665178e2a36 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 49 +SUBLEVEL = 50 EXTRAVERSION = NAME = Diseased Newt diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h index e37

Linux 3.18.50

2017-04-21 Thread Greg KH
I'm announcing the release of the 3.18.50 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be browsed at the normal kernel.org git web browser:

Re: [HMM 03/15] mm/unaddressable-memory: new type of ZONE_DEVICE for unaddressable memory

2017-04-21 Thread Dan Williams
On Fri, Apr 21, 2017 at 8:30 PM, Jérôme Glisse wrote: > HMM (heterogeneous memory management) need struct page to support migration > from system main memory to device memory. Reasons for HMM and migration to > device memory is explained with HMM core patch. > > This patch deals with device memor

Re: [PATCH] drm: fourcc byteorder: brings header file comments in line with reality.

2017-04-21 Thread Ilia Mirkin
On Fri, Apr 21, 2017 at 12:59 PM, Ville Syrjälä wrote: > On Fri, Apr 21, 2017 at 10:49:49AM -0400, Ilia Mirkin wrote: >> On Fri, Apr 21, 2017 at 3:58 AM, Gerd Hoffmann wrote: >> > While working on graphics support for virtual machines on ppc64 (which >> > exists in both little and big endian vari

[HMM 14/15] mm/hmm/devmem: dummy HMM device for ZONE_DEVICE memory v3

2017-04-21 Thread Jérôme Glisse
This introduce a dummy HMM device class so device driver can use it to create hmm_device for the sole purpose of registering device memory. It is useful to device driver that want to manage multiple physical device memory under same struct device umbrella. Changed since v2: - use device_initcall

Re: [HMM 02/15] mm/put_page: move ZONE_DEVICE page reference decrement v2

2017-04-21 Thread Dan Williams
On Fri, Apr 21, 2017 at 8:30 PM, Jérôme Glisse wrote: > Move page reference decrement of ZONE_DEVICE from put_page() > to put_zone_device_page() this does not affect non ZONE_DEVICE > page. > > Doing this allow to catch when a ZONE_DEVICE page refcount reach > 1 which means the device is no longer

Re: [tip:irq/urgent] genirq/affinity: Fix calculating vectors to assign

2017-04-21 Thread Andrei Vagin
Looks like 4.11 will be release in a few days, it would be nice if this commit reaches the upstream tree before this moment. Thanks. On Thu, Apr 20, 2017 at 07:06:49AM -0700, tip-bot for Keith Busch wrote: > Commit-ID: b72f8051f34b8164a62391e3676edc34523c5952 > Gitweb: http://git.kernel.org/

[HMM 07/15] mm/hmm: heterogeneous memory management (HMM for short) v2

2017-04-21 Thread Jérôme Glisse
HMM provides 3 separate types of functionality: - Mirroring: synchronize CPU page table and device page table - Device memory: allocating struct page for device memory - Migration: migrating regular memory to device memory This patch introduces some common helpers and definitions to al

[HMM 08/15] mm/hmm/mirror: mirror process address space on device with HMM helpers v2

2017-04-21 Thread Jérôme Glisse
This is a heterogeneous memory management (HMM) process address space mirroring. In a nutshell this provide an API to mirror process address space on a device. This boils down to keeping CPU and device page table synchronize (we assume that both device and CPU are cache coherent like PCIe device ca

[HMM 01/15] mm, memory_hotplug: introduce add_pages

2017-04-21 Thread Jérôme Glisse
From: Michal Hocko There are new users of memory hotplug emerging. Some of them require different subset of arch_add_memory. There are some which only require allocation of struct pages without mapping those pages to the kernel address space. We currently have __add_pages for that purpose. But th

[HMM 03/15] mm/unaddressable-memory: new type of ZONE_DEVICE for unaddressable memory

2017-04-21 Thread Jérôme Glisse
HMM (heterogeneous memory management) need struct page to support migration from system main memory to device memory. Reasons for HMM and migration to device memory is explained with HMM core patch. This patch deals with device memory that is un-addressable memory (ie CPU can not access it). Henc

[PATCH v3] selftests: ftrace: Allow some tests to be run in a tracing instance

2017-04-21 Thread Steven Rostedt
>From 4464dc867ead3ea14654165ad3ab68263aff7b17 Mon Sep 17 00:00:00 2001 From: "Steven Rostedt (VMware)" Date: Thu, 20 Apr 2017 12:53:18 -0400 Subject: [PATCH] selftests: ftrace: Allow some tests to be run in a tracing instance An tracing instance has several of the same capabilities as the top l

[HMM 04/15] mm/migrate: new migrate mode MIGRATE_SYNC_NO_COPY

2017-04-21 Thread Jérôme Glisse
Introduce a new migration mode that allow to offload the copy to a device DMA engine. This changes the workflow of migration and not all address_space migratepage callback can support this. So it needs to be tested in those cases. This is intended to be use by migrate_vma() which itself is use for

[HMM 11/15] mm/migrate: support un-addressable ZONE_DEVICE page in migration

2017-04-21 Thread Jérôme Glisse
Allow to unmap and restore special swap entry of un-addressable ZONE_DEVICE memory. Signed-off-by: Jérôme Glisse Cc: Kirill A. Shutemov --- include/linux/migrate.h | 10 +++- mm/migrate.c| 136 ++-- mm/page_vma_mapped.c| 10 mm/

Re: [PATCH] xprtrdma: use offset_in_page() macro

2017-04-21 Thread Chuck Lever
> On Apr 21, 2017, at 9:21 PM, Geliang Tang wrote: > > Use offset_in_page() macro instead of open-coding. > > Signed-off-by: Geliang Tang > --- > net/sunrpc/xprtrdma/rpc_rdma.c| 4 ++-- > net/sunrpc/xprtrdma/svc_rdma_sendto.c | 3 +-- > 2 files changed, 3 insertions(+), 4 deletions(-) >

[HMM 05/15] mm/migrate: new memory migration helper for use with device memory v4

2017-04-21 Thread Jérôme Glisse
This patch add a new memory migration helpers, which migrate memory backing a range of virtual address of a process to different memory (which can be allocated through special allocator). It differs from numa migration by working on a range of virtual address and thus by doing migration in chunk th

[HMM 02/15] mm/put_page: move ZONE_DEVICE page reference decrement v2

2017-04-21 Thread Jérôme Glisse
Move page reference decrement of ZONE_DEVICE from put_page() to put_zone_device_page() this does not affect non ZONE_DEVICE page. Doing this allow to catch when a ZONE_DEVICE page refcount reach 1 which means the device is no longer reference by any one (unlike page from other zone, ZONE_DEVICE pa

Re: [RFC PATCH v5 1/2] usb: typec: USB Type-C Port Manager (tcpm)

2017-04-21 Thread Guenter Roeck
On 04/21/2017 03:15 PM, Guenter Roeck wrote: From: Guenter Roeck This driver implements the USB Type-C Power Delivery state machine for both source and sink ports. Alternate mode support is not fully implemented. The driver attaches to the USB Type-C class code implemented in the following pat

[HMM 15/15] hmm: heterogeneous memory management documentation

2017-04-21 Thread Jérôme Glisse
This add documentation for HMM (Heterogeneous Memory Management). It presents the motivation behind it, the features necessary for it to be useful and and gives an overview of how this is implemented. Signed-off-by: Jérôme Glisse --- Documentation/vm/hmm.txt | 362 +++

[HMM 10/15] mm/hmm/mirror: device page fault handler

2017-04-21 Thread Jérôme Glisse
This handle page fault on behalf of device driver, unlike handle_mm_fault() it does not trigger migration back to system memory for device memory. Signed-off-by: Jérôme Glisse Signed-off-by: Evgeny Baskakov Signed-off-by: John Hubbard Signed-off-by: Mark Hairgrove Signed-off-by: Sherry Cheung

[HMM 12/15] mm/migrate: allow migrate_vma() to alloc new page on empty entry v2

2017-04-21 Thread Jérôme Glisse
This allow caller of migrate_vma() to allocate new page for empty CPU page table entry. It only support anoymous memory and it won't allow new page to be instance if userfaultfd is armed. This is useful to device driver that want to migrate a range of virtual address and would rather allocate new

[HMM 13/15] mm/hmm/devmem: device memory hotplug using ZONE_DEVICE v3

2017-04-21 Thread Jérôme Glisse
This introduce a simple struct and associated helpers for device driver to use when hotpluging un-addressable device memory as ZONE_DEVICE. It will find a unuse physical address range and trigger memory hotplug for it which allocates and initialize struct page for the device memory. Changed since

[HMM 06/15] mm/migrate: migrate_vma() unmap page from vma while collecting pages

2017-04-21 Thread Jérôme Glisse
Common case for migration of virtual address range is page are map only once inside the vma in which migration is taking place. Because we already walk the CPU page table for that range we can directly do the unmap there and setup special migration swap entry. Signed-off-by: Jérôme Glisse Signed-

[HMM 00/15] HMM (Heterogeneous Memory Management) v20

2017-04-21 Thread Jérôme Glisse
Patchset is on top of mmotm mmotm-2017-04-18 and Michal patchset ([PATCH -v3 0/13] mm: make movable onlining suck less). Branch: https://cgit.freedesktop.org/~glisse/linux/log/?h=hmm-v20 I have included all suggestion made since v19, it is all build fix and change in respect to memory hotplug wit

[HMM 09/15] mm/hmm/mirror: helper to snapshot CPU page table v2

2017-04-21 Thread Jérôme Glisse
This does not use existing page table walker because we want to share same code for our page fault handler. Changes since v1: - Use spinlock instead of rcu synchronized list traversal Signed-off-by: Jérôme Glisse Signed-off-by: Evgeny Baskakov Signed-off-by: John Hubbard Signed-off-by: Mark

Re: [PATCH v2] selftests: ftrace: Allow some tests to be run in a tracing instance

2017-04-21 Thread Steven Rostedt
On Sat, 22 Apr 2017 08:00:36 +0900 Masami Hiramatsu wrote: > > BTW, this seems too complecated (with many similar variables). I'm use to complicated ;-) > I think we just need following patch, if we run the tests which > have "instance" flag twice on top-level and an instance. > (If you'd like

Re: [RFC PATCH 1/3] clk: add clk_bulk_get accessories

2017-04-21 Thread Stephen Boyd
On 04/12, Dong Aisheng wrote: > > #ifdef CONFIG_HAVE_CLK > @@ -230,6 +257,32 @@ static inline void clk_unprepare(struct clk *clk) > struct clk *clk_get(struct device *dev, const char *id); > > /** > + * clk_bulk_get - lookup and obtain a number of references to clock producer. > + * @dev: de

Re: [RFC] minimum gcc version for kernel: raise to gcc-4.3 or 4.6?

2017-04-21 Thread Maciej W. Rozycki
On Fri, 21 Apr 2017, Kees Cook wrote: > > The linux-4.2 x86 defconfig could still be built with gcc-4.0, but > > later kernels have several minor problems with that, and > > require at least gcc-4.3. > > > > If we are ok with this status quo, we could simply declare gcc-4.3 > > the absolute minimu

Re: [RFC PATCH 0/3] clk: introduce clk_bulk_get accessories

2017-04-21 Thread Stephen Boyd
On 04/12, Dong Aisheng wrote: > > Together with the err path handling for each clocks, it does make > things a bit ugly. > > Since we already have regulator_bulk_get accessories, i thought we > probably could introduce clk_bulk_get as well to handle such case to > ease the driver owners' life. >

Re: [RFC PATCH 2/3] clk: add managed version of clk_bulk_get

2017-04-21 Thread Stephen Boyd
On 04/13, Dong Aisheng wrote: > On Wed, Apr 12, 2017 at 12:03:28PM +0800, Dong Aisheng wrote: > >drivers/built-in.o: In function `devm_clk_bulk_get': > >> (.text+0x1930e): undefined reference to `clk_bulk_get' >drivers/built-in.o: In function `devm_clk_bulk_release': > >> clk-devres.c:(.te

Re: [RFC PATCH 2/3] clk: add managed version of clk_bulk_get

2017-04-21 Thread Stephen Boyd
On 04/12, Dong Aisheng wrote: > diff --git a/include/linux/clk.h b/include/linux/clk.h > index 1d05b66..3fc6010 100644 > --- a/include/linux/clk.h > +++ b/include/linux/clk.h > @@ -278,11 +278,25 @@ struct clk *clk_get(struct device *dev, const char *id); > * > * clk_bulk_get should not be call

Re: [PATCH v2 8/8] platform: x86: intel_bxtwc_tmu: remove first level irq unmask

2017-04-21 Thread Andy Shevchenko
On Sat, Apr 22, 2017 at 1:34 AM, sathyanarayanan kuppuswamy wrote: > Thanks for brining it up. I was planning to ask either Andy or Lee regarding > this issue after all patches in the series are reviewed. Darren, I'm planning to review this soon. P.S. We have few series flying around regarding

Re: [PATCH 3/5] clk: mvebu: Use kcalloc() in two functions

2017-04-21 Thread Stephen Boyd
On 04/19, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 19 Apr 2017 21:08:54 +0200 > > * Multiplications for the size determination of memory allocations > indicated that array data structures should be processed. > Thus use the corresponding function "kcalloc". > > This iss

[RFC][PATCH tip/sched/core] sched/rt: Simplify the IPI rt balancing logic

2017-04-21 Thread Steven Rostedt
When a CPU lowers its priority (schedules out a high priority task for a lower priority one), a check is made to see if any other CPU has overloaded RT tasks (more than one). It checks the rto_mask to determine this and if so it will request to pull one of those tasks to itself if the non running

Re: [PATCH 1/5] clk: mvebu: Use kcalloc() in of_cpu_clk_setup()

2017-04-21 Thread Stephen Boyd
On 04/19, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 19 Apr 2017 20:15:21 +0200 > > Multiplications for the size determination of memory allocations > indicated that array data structures should be processed. > Thus use the corresponding function "kcalloc". > > This issue was d

Re: [PATCH 8/8] clk: nomadik: Delete error messages for a failed memory allocation in two functions

2017-04-21 Thread Stephen Boyd
On 04/20, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 20 Apr 2017 10:04:00 +0200 > > The script "checkpatch.pl" pointed information out like the following. > > WARNING: Possible unnecessary 'out of memory' message > > Thus remove such statements here. > > Link: > http://event

Re: [PATCH 7/8] clk: nomadik: Use seq_puts() in nomadik_src_clk_show()

2017-04-21 Thread Stephen Boyd
On 04/20, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 20 Apr 2017 09:45:04 +0200 > > A string which did not contain a data format specification should be put > into a sequence. Thus use the corresponding function "seq_puts". > > This issue was detected by using the Coccinelle so

Re: [PATCH 6/8] clk: Improve a size determination in two functions

2017-04-21 Thread Stephen Boyd
On 04/20, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 20 Apr 2017 09:30:52 +0200 > > Replace the specification of two data structures by pointer dereferences > as the parameter for the operator "sizeof" to make the corresponding size > determination a bit safer according to the L

Re: [PATCH 4/8] clk: Replace four seq_printf() calls by seq_putc()

2017-04-21 Thread Stephen Boyd
On 04/20, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 20 Apr 2017 08:45:43 +0200 > > Four single characters should be put into a sequence. > Thus use the corresponding function "seq_putc". > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus E

[PATCH v2] nfs/filelayout: fix NULL pointer dereference in fl_pnfs_update_layout()

2017-04-21 Thread Artem Savkov
Calling pnfs_put_lset on an IS_ERR pointer results in a NULL pointer dereference like the one below. At the same time the check of retvalue of filelayout_check_deviceid() sets lseg to error, but does not free it before that. [ 3000.636161] BUG: unable to handle kernel NULL pointer dereference at

Re: [PATCH 2/8] clk: si5351: Delete an error message for a failed memory allocation in si5351_i2c_probe()

2017-04-21 Thread Stephen Boyd
On 04/20, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 20 Apr 2017 07:34:54 +0200 > > The script "checkpatch.pl" pointed information out like the following. > > * CHECK: Comparison to NULL could be written "!drvdata" > > Thus adjust this expression. > > > * WARNING: Possible

Re: [PATCH 1/8] clk: si5351: Use devm_kcalloc() in si5351_i2c_probe()

2017-04-21 Thread Stephen Boyd
On 04/20, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 19 Apr 2017 22:37:30 +0200 > > Multiplications for the size determination of memory allocations > indicated that array data structures should be processed. > Thus use the corresponding function "devm_kcalloc". > > This issue

Re: [PATCH] clk: tegra: fix SS control on PLL enable/disable

2017-04-21 Thread Stephen Boyd
On 04/20, Peter De Schrijver wrote: > PLL SS was only controlled when setting the PLL rate, not when the PLL > itself is enabled or disabled. This means that if the PLL rate was set > before the PLL is enabled, SS will not be enabled, even when configured. > > Signed-off-by: Peter De Schrijver F

Re: [PATCH 2/2] clk: ti: fix building without legacy omap3

2017-04-21 Thread Stephen Boyd
On 04/19, Arnd Bergmann wrote: > When CONFIG_ATAGS or CONFIG_OMAP3 is disabled, we get a build error: > > In file included from include/linux/clk-provider.h:15:0, > from drivers/clk/ti/clk.c:19: > drivers/clk/ti/clk.c: In function 'ti_clk_add_aliases': > drivers/clk/ti/clk.c:438:2

[PATCH] platform/x86: asus-wmi: fix cpufv sysfs file permission

2017-04-21 Thread Jérémy Lefaure
The cpufv sysfs file is defined as readable by anyone even if the attribute does not have a show function. The result of every read is an IO error. This file should be write only. Signed-off-by: Jérémy Lefaure --- drivers/platform/x86/asus-wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 delet

Re: [PATCH] clk: at91: Use kcalloc() in of_at91_clk_pll_get_characteristics()

2017-04-21 Thread Stephen Boyd
On 04/19, SF Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 19 Apr 2017 19:43:03 +0200 > > Multiplications for the size determination of memory allocations > indicated that array data structures should be processed. > Thus use the corresponding function "kcalloc". > > This issue was d

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

2017-04-21 Thread Stephen Boyd
On 04/19, Daniel Lezcano wrote: > On Wed, Apr 19, 2017 at 09:00:05AM -0700, Stephen Boyd wrote: > > On 04/16, Daniel Lezcano wrote: > > > On Wed, Apr 12, 2017 at 08:02:45AM -0700, Stephen Boyd wrote: > > > > On 04/08, Daniel Lezcano wrote: > > [ ... ] > > > > > > + ret = clk_hw_register_clkde

Re: [PATCH V3 1/2] clk: hi6220: Add the hi655x's pmic clock

2017-04-21 Thread Stephen Boyd
On 04/17, Daniel Lezcano wrote: > The hi655x multi function device is a PMIC providing regulators. > > The PMIC also provides a clock for the WiFi and the Bluetooth, let's implement > this clock in order to add it in the hi655x MFD and allow proper wireless > initialization. > > Signed-off-by: Da

Re: [PATCH V3 2/2] ARM64: dts: hi6220-hikey: Add clock binding for the pmic mfd

2017-04-21 Thread Stephen Boyd
On 04/17, Daniel Lezcano wrote: > Signed-off-by: Daniel Lezcano > --- > Documentation/devicetree/bindings/mfd/hisilicon,hi655x.txt | 6 ++ > arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 + > 2 files changed, 7 insertions(+) > I take it this goes through arm-soc? Not sure w

Re: [PATCH 1/2] clk: ti: divider: try to fix ti_clk_register_divider

2017-04-21 Thread Stephen Boyd
On 04/20, Tero Kristo wrote: > On 19/04/17 20:44, Arnd Bergmann wrote: > >The newly introduced function is entirely bogus as I found when looking > >at this warning: > > > >drivers/clk/ti/divider.c: In function 'ti_clk_register_divider': > >drivers/clk/ti/divider.c:460:8: error: 'reg' may be used u

Re: [PATCH] clk: ti: fix linker error with !SOC_OMAP4

2017-04-21 Thread Stephen Boyd
On 04/19, Arnd Bergmann wrote: > When none of the OMAP4-generation SoCs are enabled, we run into a link > error for am43xx/am43xx: > > drivers/clk/ti/dpll.o: In function `of_ti_am3_dpll_x2_setup': > dpll.c:(.init.text+0xd8): undefined reference to `clkhwops_omap4_dpllmx' > > This is easily fixed

Re: [PATCH] clk: ti: fix linker error with !SOC_OMAP4

2017-04-21 Thread Stephen Boyd
On 04/20, Tero Kristo wrote: > On 20/04/17 18:06, Arnd Bergmann wrote: > >On Thu, Apr 20, 2017 at 4:57 PM, Tero Kristo wrote: > >>On 20/04/17 00:43, Arnd Bergmann wrote: > >>> > >>>When none of the OMAP4-generation SoCs are enabled, we run into a link > >>>error for am43xx/am43xx: > >>> > >>>drive

[PATCH 3/3] IB/qib: use setup_timer

2017-04-21 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/infiniband/hw/qib/qib_iba6120.c | 10 -- drivers/infiniband/hw/qib/qib_iba7220.c | 5 ++--- drivers/infiniband/hw/qib/qib_iba7322.c | 10 -- drivers/infiniband/hw/qib/qib_init

[PATCH 2/3] IB/nes: use setup_timer

2017-04-21 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/infiniband/hw/nes/nes_hw.c| 5 ++--- drivers/infiniband/hw/nes/nes_mgt.c | 5 ++--- drivers/infiniband/hw/nes/nes_verbs.c | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) dif

[PATCH 1/3] IB/i40iw: use setup_timer

2017-04-21 Thread Geliang Tang
Use setup_timer() instead of init_timer() to simplify the code. Signed-off-by: Geliang Tang --- drivers/infiniband/hw/i40iw/i40iw_cm.c| 5 ++--- drivers/infiniband/hw/i40iw/i40iw_utils.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/infiniband/hw/i40iw/i40

[PATCH v2 1/5] mtd: nand: gpmi: unify clock handling

2017-04-21 Thread Stefan Agner
Add device specific list of clocks required, and handle all clocks in a single for loop. This avoids further code duplication when adding i.MX 7 support. Signed-off-by: Stefan Agner Reviewed-by: Marek Vasut --- drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 41 +++--- driv

[PATCH v2 4/5] ARM: dts: imx7: add GPMI NAND

2017-04-21 Thread Stefan Agner
Add i.MX 7 GPMI NAND module. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx7s.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 843eb379e1ea..9645257638d4 100644 --- a/arch/arm/boot/d

[PATCH] serial: pch_uart: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- drivers/tty/serial/pch_uart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index 42caccb..d3796dc 100644 --- a/drivers/tty/ser

[PATCH v2 5/5] ARM: dts: imx7-colibri: add NAND support

2017-04-21 Thread Stefan Agner
The Colibri iMX7 modules come with 512MB on-module SLC NAND flash populated. Make use of it by enabling the GPMI controller. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/imx7-colibri.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arc

[PATCH] xen/scsifront: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- drivers/scsi/xen-scsifront.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/xen-scsifront.c b/drivers/scsi/xen-scsifront.c index 9aa1fe1..a6a8b60 100644 --- a/drivers/scsi/xen-scs

[PATCH] tty/serial: atmel: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- drivers/tty/serial/atmel_serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index c355ac9..f398db8 100644 --- a/

[PATCH] xprtrdma: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- net/sunrpc/xprtrdma/rpc_rdma.c| 4 ++-- net/sunrpc/xprtrdma/svc_rdma_sendto.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/net/sunrpc/xprtrdma/rpc_rdma.c b/net/sunrpc/xprtrdma/rp

[PATCH v2 0/5] mtd: nand: gpmi: add i.MX 7 support

2017-04-21 Thread Stefan Agner
This patchset adds support for i.MX 7 SoC for the GPMI NAND controller. There have been similar patchsets already: https://lkml.org/lkml/2016/2/23/912 However, this patchset does not make use of any of the new features. The current feature set seems to work fine, I successfully run the MTD tests o

[PATCH v2 3/5] mtd: gpmi: document current clock requirements

2017-04-21 Thread Stefan Agner
The clock requirements are completely missing, add the clocks currently required by the driver. Signed-off-by: Stefan Agner --- Documentation/devicetree/bindings/mtd/gpmi-nand.txt | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings

[PATCH v2 2/5] mtd: nand: gpmi: add i.MX 7 SoC support

2017-04-21 Thread Stefan Agner
Add support for i.MX 7 SoC. The i.MX 7 has a slightly different clock architecture requiring only two clocks to be referenced. The IP is slightly different compared to i.MX 6, but currently none of this differences are in use, therefore reuse GPMI_IS_MX6. Signed-off-by: Stefan Agner Reviewed-by:

[PATCH] gdth: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- drivers/scsi/gdth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c index d020a13..557ce73 100644 --- a/drivers/scsi/gdth.c +++ b/drivers/scsi/gdth.c @

[PATCH] net: atheros: atl1: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- drivers/net/ethernet/atheros/atlx/atl1.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/atheros/atlx/atl1.c b/drivers/net/ethernet/atheros/atlx/atl1.c index 0

[PATCH] fs/ocfs2/cluster: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- fs/ocfs2/cluster/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c index a4a6ba2..8d77922 100644 --- a/fs/ocfs2/cluster/tcp.c +++ b/fs/ocfs2/

Re: [PATCH v3 2/2] modules:capabilities: add a per-task modules autoload restriction

2017-04-21 Thread Djalal Harouni
On Sat, Apr 22, 2017 at 2:12 AM, Djalal Harouni wrote: > On Sat, Apr 22, 2017 at 1:51 AM, Andy Lutomirski wrote: > [...] I personally like my implicit_rights idea, and it might be interesting to prototype it. >>> >>> I don't like blocking a needed feature behind a large super-feature >>

[PATCH 3/3] dma-debug: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- lib/dma-debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dma-debug.c b/lib/dma-debug.c index b157b46..cd5a5a4 100644 --- a/lib/dma-debug.c +++ b/lib/dma-debug.c @@ -1502,7 +1502,

[PATCH 2/3] dmaengine: mv_xor: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- drivers/dma/mv_xor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index ea53b87..25bc5b1 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/m

[PATCH 1/3] dmaengine: dmatest: use offset_in_page() macro

2017-04-21 Thread Geliang Tang
Use offset_in_page() macro instead of open-coding. Signed-off-by: Geliang Tang --- drivers/dma/dmatest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index 54d581d..d042b2b 100644 --- a/drivers/dma/dmatest.c +++ b/drivers/d

Re: [PATCH 1/3] f2fs: add ioctl to flush data from faster device to cold area

2017-04-21 Thread Chao Yu
On 2017/4/19 9:45, Jaegeuk Kim wrote: > This patch adds an ioctl to flush data in faster device to cold area. User can > give device number and number of segments to move. It doesn't move it if there > is only one device. > > The parameter looks like: > > struct f2fs_flush_device { > u32 de

Re: [resend PATCH v2 00/33] dax: introduce dax_operations

2017-04-21 Thread Dan Williams
[ adding akpm, sfr, and jens ] I applied this series and pushed it out for the nvdimm.git branch that gets auto pulled into -next. The set is still awaiting acks from device-mapper, ext4, xfs, and vfs (for the copy_from_iter_ops, patch 29/33). If those come next week perhaps this can be merged for

Re: [PATCH v2 0/5] Re-order scsi_remove_host and sas_remove_host in SAS HBA LLDDs

2017-04-21 Thread wangyijing
>> >> Please repost the series against the current tree. Also a cover >> letter with a bit more explanation would be good. >> > > Great, I think that my colleagues can send an updated version next week. I will send a new version with a cover letter these days, before that, we need to do a detai

Re: [PATCH 1/2] f2fs: add braces for macro variables more

2017-04-21 Thread Chao Yu
On 2017/4/21 8:49, Jaegeuk Kim wrote: > This patch adds braces for macro variables more in include/linux/f2fs_fs.h. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/f2fs.h | 1 + > include/linux/f2fs_fs.h | 10 +- > 2 files changed, 6 insertions(+), 5 deletions(-) > > diff --git

Re: [PATCH v3] kvm: arm/arm64: Fix locking for kvm_free_stage2_pgd

2017-04-21 Thread Alexander Graf
On 04.04.17 12:35, Suzuki K Poulose wrote: Hi Christoffer, On 04/04/17 11:13, Christoffer Dall wrote: Hi Suzuki, On Mon, Apr 03, 2017 at 03:12:43PM +0100, Suzuki K Poulose wrote: In kvm_free_stage2_pgd() we don't hold the kvm->mmu_lock while calling unmap_stage2_range() on the entire memory

Re: [PATCH 2/3] usb: add DT bindings for farady fotg2 host controller

2017-04-21 Thread Linus Walleij
On Thu, Mar 30, 2017 at 8:31 PM, Hans Ulli Kroll wrote: >> On Tue, Feb 21, 2017 at 3:43 PM, Rob Herring wrote: >> > On Fri, Feb 17, 2017 at 4:07 AM, Hans Ulli Kroll >> > wrote: >> >> Hi Rob, >> >> >> >> On Wed, 15 Feb 2017, Rob Herring wrote: >> >> >> >>> On Wed, Feb 08, 2017 at 09:00:09PM +0100

[PATCH 2/2] drivers:net:ethernet:3com:3c512: array char instead of char pointer

2017-04-21 Thread Karim Eshapa
char pointer creates two variables static string and pointer to it according to Jeff Garzik janitors TODO Signed-off-by: Karim Eshapa --- drivers/net/ethernet/3com/3c515.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/3com/3c515.c b/drivers/net/etherne

Re: [PATCH v3 2/2] modules:capabilities: add a per-task modules autoload restriction

2017-04-21 Thread Casey Schaufler
On 4/21/2017 5:00 PM, Andy Lutomirski wrote: > On Fri, Apr 21, 2017 at 4:52 PM, Casey Schaufler > wrote: >> On 4/21/2017 4:28 PM, Andy Lutomirski wrote: >>> On Fri, Apr 21, 2017 at 4:19 PM, Kees Cook wrote: On Wed, Apr 19, 2017 at 7:41 PM, Andy Lutomirski wrote: > On Wed, Apr 19, 2017

[PATCH 0/2] fixes to clean up goip generates files and gitignore

2017-04-21 Thread Shuah Khan
This two patch series fixes gpio clean target to clean all generated files and add them to gitignore. Shuah Khan (2): selftests: add gpio generated files to .gitignore selftests: gpio: fix clean target to remove all generated files and dirs tools/testing/selftests/.gitignore| 4

[PATCH 2/2] selftests: gpio: fix clean target to remove all generated files and dirs

2017-04-21 Thread Shuah Khan
gpio test creates executables, object files, and include directory under selftests directory. Enhance clean target to remove all files it generates. Signed-off-by: Shuah Khan --- tools/testing/selftests/gpio/Makefile | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tool

[PATCH 1/2] selftests: add gpio generated files to .gitignore

2017-04-21 Thread Shuah Khan
gpio test generates files in selftests directory. Add them to .gitignore. Signed-off-by: Shuah Khan --- tools/testing/selftests/.gitignore | 4 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/.gitignore b/tools/testing/selftests/.gitignore index f0600d2..9175035 10064

Re: [PATCH v3 2/2] modules:capabilities: add a per-task modules autoload restriction

2017-04-21 Thread Djalal Harouni
On Sat, Apr 22, 2017 at 1:51 AM, Andy Lutomirski wrote: [...] >>> I personally like my implicit_rights idea, and it might be interesting >>> to prototype it. >> >> I don't like blocking a needed feature behind a large super-feature >> that doesn't exist yet. We'd be able to refactor this code into

Re: [PATCH -mm -v9 1/3] mm, THP, swap: Delay splitting THP during swap out

2017-04-21 Thread Huang, Ying
Johannes Weiner writes: > On Fri, Apr 21, 2017 at 04:11:36PM +1000, Balbir Singh wrote: >> > In the future of THP swap optimization, some information of the >> > swapped out THP (such as compound map count) will be recorded in the >> > swap_cluster_info data structure. >> > >> > The mem cgroup s

  1   2   3   4   5   6   7   8   9   >