[PATCH v13 4/9] MAINTAINERS: update file entries for Coresight subsystem

2017-05-25 Thread Leo Yan
Update document file entries for Coresight debug module. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9e98464..8623d95 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1207,7 +1207,9 @@ L:

[PATCH v13 3/9] doc: Add coresight_cpu_debug.enable to kernel-parameters.txt

2017-05-25 Thread Leo Yan
Add coresight_cpu_debug.enable to kernel-parameters.txt, this flag is used to enable/disable the CPU sampling based debugging. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- Documentation/admin-guide/kernel-parameters.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Docum

[PATCH v13 5/9] coresight: of_get_coresight_platform_data: Add missing of_node_put

2017-05-25 Thread Leo Yan
From: Suzuki K Poulose The of_get_coresight_platform_data iterates over the possible CPU nodes to find a given cpu phandle. However it does not drop the reference to the node pointer returned by the of_get_coresight_platform_data. This patch also introduces another minor fix is to use of_cpu_dev

[PATCH v13 6/9] coresight: refactor with function of_coresight_get_cpu

2017-05-25 Thread Leo Yan
This is refactor to add function of_coresight_get_cpu(), so it's used to retrieve CPU id for coresight component. Finally can use it as a common function for multiple places. Suggested-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/of_c

[PATCH v13 8/9] arm64: dts: hi6220: register debug module

2017-05-25 Thread Leo Yan
Bind debug module driver for Hi6220. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 64 +++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/

[PATCH v13 7/9] coresight: add support for CPU debug module

2017-05-25 Thread Leo Yan
Coresight includes debug module and usually the module connects with CPU debug logic. ARMv8 architecture reference manual (ARM DDI 0487A.k) has description for related info in "Part H: External Debug". Chapter H7 "The Sample-based Profiling Extension" introduces several sampling registers, e.g. we

[PATCH v13 2/9] doc: Add documentation for Coresight CPU debug

2017-05-25 Thread Leo Yan
Add detailed documentation for Coresight CPU debug driver, which contains the info for driver implementation, Mike Leach excellent summary for "clock and power domain". At the end some examples on how to enable the debugging functionality are provided. Suggested-by: Mike Leach Reviewed-by: Mathie

Re: [PATCH 3/3] livepatch: force transition process to finish

2017-05-25 Thread Petr Mladek
On Thu 2017-05-25 14:59:55, Miroslav Benes wrote: > > > > > In fact, I would suggest to take klp_mutex in force_store() > > > > and do all actions synchronously, including the check > > > > of klp_transition_patch. > > > > > > I still think it is better not do it. klp_unmark_tasks() does nothing

[PATCH v13 9/9] arm64: dts: qcom: msm8916: Add debug unit

2017-05-25 Thread Leo Yan
Add debug unit on Qualcomm msm8916 based platforms, including the DragonBoard 410c board. Reviewed-by: Mathieu Poirier Signed-off-by: Leo Yan --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/

Re: [PATCH v2 2/6] Documentation: devicetree: add bindings to support ARM MHU doorbells

2017-05-25 Thread Sudeep Holla
On 25/05/17 14:22, Jassi Brar wrote: > On Wed, May 24, 2017 at 3:46 PM, Sudeep Holla wrote: >> The ARM MHU has mechanism to assert interrupt signals to facilitate >> inter-processor message based communication. It drives the signal using >> a 32-bit register, with all 32-bits logically ORed toge

Re: [PATCH net-next] bpf: update perf event helper function signature and documentation

2017-05-25 Thread David Miller
From: Teng Qin Date: Tue, 23 May 2017 03:17:31 + > Alexei said it was due to Clang not taking u64, u32 etc. for compilation. > I didn’t know the context and just used them. But apparently, something > changed and now they build and run OK.. These types are %100 compiler agnostic. Clang

Re: [PATCH v3] Add "shutdown" to "struct class".

2017-05-25 Thread Greg Kroah-Hartman
On Thu, May 25, 2017 at 08:40:28AM -0700, Josh Zimmerman wrote: > Thanks, Greg. > > Greg, Jarkko: Do either of you you have any objections to me > backporting these changes to 4.4 and 4.9? I'd like to make sure that > at least the couple most recent LTS kernels have this patch. Why? What bug doe

Re: [PATCH net] ip6_tunnel, ip6_gre: fix setting of DSCP on encapsulated packets

2017-05-25 Thread David Miller
From: Peter Dawson Date: Tue, 23 May 2017 14:36:16 +1000 > Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=195661 This is not the correct way to use the Fixes: tag. You should specify the commit that introduced the regression between 4.9.x and 4.10.x, and that you are fixing here. The corre

Re: [PATCH] RFC: arm: eBPF JIT compiler

2017-05-25 Thread Shubham Bansal
Hi Andrew, Did you get the chance to test the patch? Best, Shubham Bansal On Thu, May 25, 2017 at 2:01 AM, Shubham Bansal wrote: > Hi Andrew, > > I am attaching the latest patch which should work on ARMv5 , ARMv6 and ARMv7. > > Please test on your machines. Apologies for the last patch. This pa

Re: [patch] compiler, clang: suppress warning for unused static inline functions

2017-05-25 Thread Matthias Kaehlcke
El Thu, May 25, 2017 at 07:52:07AM +0200 Ingo Molnar ha dit: > > * Matthias Kaehlcke wrote: > > > El Wed, May 24, 2017 at 02:01:15PM -0700 David Rientjes ha dit: > > > > > GCC explicitly does not warn for unused static inline functions for > > > -Wunused-function. The manual states: > > > >

Linux 3.18.55

2017-05-25 Thread Greg KH
I'm announcing the release of the 3.18.55 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: Linux 3.18.55

2017-05-25 Thread Greg KH
diff --git a/Documentation/arm64/tagged-pointers.txt b/Documentation/arm64/tagged-pointers.txt index d9995f1f51b3..a25a99e82bb1 100644 --- a/Documentation/arm64/tagged-pointers.txt +++ b/Documentation/arm64/tagged-pointers.txt @@ -11,24 +11,56 @@ in AArch64 Linux. The kernel configures the transl

Linux 4.4.70

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

Re: Linux 4.4.70

2017-05-25 Thread Greg KH
diff --git a/Documentation/arm64/tagged-pointers.txt b/Documentation/arm64/tagged-pointers.txt index d9995f1f51b3..a25a99e82bb1 100644 --- a/Documentation/arm64/tagged-pointers.txt +++ b/Documentation/arm64/tagged-pointers.txt @@ -11,24 +11,56 @@ in AArch64 Linux. The kernel configures the transl

Linux 4.9.30

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

Linux 4.11.3

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

Re: [PATCH 1/6] kmod: add dynamic max concurrent thread count

2017-05-25 Thread Luis R. Rodriguez
On Fri, May 19, 2017 at 02:58:29PM -0700, Dmitry Torokhov wrote: > On Fri, May 19, 2017 at 02:45:29PM -0700, Luis R. Rodriguez wrote: > > On May 19, 2017 1:45 PM, "Dmitry Torokhov" > > wrote: > > > > On Thu, May 18, 2017 at 08:24:39PM -0700, Luis R. Rodriguez wrote: > > > We currently statically

Re: [PATCH v2 3/3] regulator: tps65917: Add support for SMPS12

2017-05-25 Thread Mark Brown
On Thu, May 25, 2017 at 09:05:25AM +0530, Keerthy wrote: > > What's the relationship between this and support for the lp87565? > Nothing related. I should have sent this separately. Should i send a v3 > separately? No, it's OK - thanks for clarifying. signature.asc Description: PGP signature

Re: [PATCH v3] Add "shutdown" to "struct class".

2017-05-25 Thread Josh Zimmerman
On Thu, May 25, 2017 at 9:09 AM, Greg Kroah-Hartman wrote: > On Thu, May 25, 2017 at 08:40:28AM -0700, Josh Zimmerman wrote: >> Thanks, Greg. >> >> Greg, Jarkko: Do either of you you have any objections to me >> backporting these changes to 4.4 and 4.9? I'd like to make sure that >> at least the c

[PATCH v3] drivers: dma-mapping: Do not leave an invalid area->pages pointer in dma_common_contiguous_remap()

2017-05-25 Thread Catalin Marinas
The dma_common_pages_remap() function allocates a vm_struct object and initialises the pages pointer to value passed as argument. However, when this function is called dma_common_contiguous_remap(), the pages array is only temporarily allocated, being freed shortly after dma_common_contiguous_remap

Re: [PATCH 1/8] firmware: vpd: do not leave freed section attributes to the list

2017-05-25 Thread Dmitry Torokhov
On Thu, May 25, 2017 at 03:40:58PM +0200, Greg Kroah-Hartman wrote: > On Tue, May 23, 2017 at 05:07:41PM -0700, Dmitry Torokhov wrote: > > We should only add section attribute to the list of section attributes > > if we successfully created corresponding sysfs attribute. > > > > Fixes: 049a59db34e

Re: [PATCH 5/5] Staging: rtl8712: ieee80211: fixed camelcase coding style issue

2017-05-25 Thread Greg KH
On Sat, May 20, 2017 at 11:26:17PM +0530, Jaya Durga wrote: > Fixed coding style issue > > Renamed cap_ShortPremble to cap_short_premble > > Signed-off-by: Jaya Durga Where are patches 1-4 of this patch series? Please fix up and resend. thanks, greg k-h

Re: [PATCH 6/6] Staging: rtl8712: ieee80211: fixed camelcase coding style issue

2017-05-25 Thread Greg KH
On Sat, May 20, 2017 at 11:35:04PM +0530, Jaya Durga wrote: > Fixed coding style issue > > Renamed cap_Privacy to cap_privacy > > Signed-off-by: Jaya Durga > --- > drivers/staging/rtl8712/ieee80211.c | 2 +- > drivers/staging/rtl8712/wifi.h | 2 +- > 2 files changed, 2 insertions(+), 2 del

Re: [PATCH 1/6] kmod: add dynamic max concurrent thread count

2017-05-25 Thread Dmitry Torokhov
On Thu, May 25, 2017 at 06:22:01PM +0200, Luis R. Rodriguez wrote: > On Fri, May 19, 2017 at 02:58:29PM -0700, Dmitry Torokhov wrote: > > On Fri, May 19, 2017 at 02:45:29PM -0700, Luis R. Rodriguez wrote: > > > On May 19, 2017 1:45 PM, "Dmitry Torokhov" > > > wrote: > > > > > > On Thu, May 18, 20

Re: [PATCH] mailbox: fix completion order for blocking requests

2017-05-25 Thread Alexey Klimov
Hi Jassi, Sorry for delay -- this is not my main activity so please be patient. On Sun, Apr 23, 2017 at 03:33:39PM +0530, Jassi Brar wrote: > On Tue, Apr 11, 2017 at 6:15 PM, Alexey Klimov wrote: > > On Thu, Apr 06, 2017 at 10:45:26PM +0530, Jassi Brar wrote: > >> On 6 April 2017 at 22:28, Alexe

Re: [PATCH v3] Add "shutdown" to "struct class".

2017-05-25 Thread Greg Kroah-Hartman
On Thu, May 25, 2017 at 09:24:30AM -0700, Josh Zimmerman wrote: > On Thu, May 25, 2017 at 9:09 AM, Greg Kroah-Hartman > wrote: > > On Thu, May 25, 2017 at 08:40:28AM -0700, Josh Zimmerman wrote: > >> Thanks, Greg. > >> > >> Greg, Jarkko: Do either of you you have any objections to me > >> backport

Re: [PATCH 5/6] kmod: preempt on kmod_umh_threads_get()

2017-05-25 Thread Dmitry Torokhov
On Thu, May 25, 2017 at 01:19:31PM +0200, Petr Mladek wrote: > On Wed 2017-05-24 19:27:38, Dmitry Torokhov wrote: > > On Thu, May 25, 2017 at 03:00:17AM +0200, Luis R. Rodriguez wrote: > > > On Wed, May 24, 2017 at 05:45:37PM -0700, Dmitry Torokhov wrote: > > > > On Thu, May 25, 2017 at 02:14:52AM

Re: Re: [PATCH] tpm, tpm_infineon: remove useless snprintf() calls

2017-05-25 Thread Jarkko Sakkinen
On Thu, May 25, 2017 at 07:29:05AM +0200, Peter Huewe wrote: > > The memory copy from rodata to stack is useless. > > > > Signed-off-by: Jarkko Sakkinen > > After review, yes that should work. > Reviewed-by: Peter Huewe Yes, the string gets stored to rodata section where it is copied to stack :

Re: [PATCH] mmc: host: fix potential null pointer dereference

2017-05-25 Thread Gustavo A. R. Silva
Hi Stefan, Quoting Stefan Wahren : Hi Gustavo, "Gustavo A. R. Silva" hat am 24. Mai 2017 um 01:42 geschrieben: Null check at line 1165: if (mrq->cmd), implies that mrq->cmd might be NULL. Add null checks before dereferencing pointer mrq->cmd in order to avoid any potential NULL pointer d

Re: [patch V3 11/32] hwtracing/coresight-etm3x: Use cpuhp_setup_state_nocalls_cpuslocked()

2017-05-25 Thread Mathieu Poirier
On Wed, May 24, 2017 at 10:15:22AM +0200, Thomas Gleixner wrote: > From: Sebastian Andrzej Siewior > > etm_probe() holds get_online_cpus() while invoking > cpuhp_setup_state_nocalls(). > > cpuhp_setup_state_nocalls() invokes get_online_cpus() as well. This is > correct, but prevents the conversi

Re: [patch V3 12/32] hwtracing/coresight-etm4x: Use cpuhp_setup_state_nocalls_cpuslocked()

2017-05-25 Thread Mathieu Poirier
On Wed, May 24, 2017 at 10:15:23AM +0200, Thomas Gleixner wrote: > From: Sebastian Andrzej Siewior > > etm_probe4() holds get_online_cpus() while invoking > cpuhp_setup_state_nocalls(). > > cpuhp_setup_state_nocalls() invokes get_online_cpus() as well. This is > correct, but prevents the convers

Re: [patch] compiler, clang: suppress warning for unused static inline functions

2017-05-25 Thread Joe Perches
On Thu, 2017-05-25 at 09:14 -0700, Matthias Kaehlcke wrote: > clang doesn't raise > warnings about unused static inline functions in headers. Is any "#include" file a "header" to clang or only "*.h" files? For instance: The kernel has ~500 .c files that other .c files #include. Are unused inline

Re: [PATCH] Btrfs: work around maybe-uninitialized warning

2017-05-25 Thread David Sterba
On Fri, May 19, 2017 at 09:20:53PM +0200, Arnd Bergmann wrote: > On Fri, May 19, 2017 at 8:10 PM, Liu Bo wrote: > > On Thu, May 18, 2017 at 03:33:29PM +0200, Arnd Bergmann wrote: > >> A rewrite of btrfs_submit_direct_hook appears to have introduced a warning: > >> > >> fs/btrfs/inode.c: In functio

Re: [PATCH 1/8] firmware: vpd: do not leave freed section attributes to the list

2017-05-25 Thread Greg Kroah-Hartman
On Thu, May 25, 2017 at 09:35:25AM -0700, Dmitry Torokhov wrote: > On Thu, May 25, 2017 at 03:40:58PM +0200, Greg Kroah-Hartman wrote: > > On Tue, May 23, 2017 at 05:07:41PM -0700, Dmitry Torokhov wrote: > > > We should only add section attribute to the list of section attributes > > > if we succes

Re: [PATCH 1/6] kmod: add dynamic max concurrent thread count

2017-05-25 Thread Luis R. Rodriguez
On Thu, May 25, 2017 at 9:38 AM, Dmitry Torokhov wrote: > On Thu, May 25, 2017 at 06:22:01PM +0200, Luis R. Rodriguez wrote: >> On Fri, May 19, 2017 at 02:58:29PM -0700, Dmitry Torokhov wrote: >> > On Fri, May 19, 2017 at 02:45:29PM -0700, Luis R. Rodriguez wrote: >> > > On May 19, 2017 1:45 PM, "

[PATCH] spi: omap2-mcspi: remove redundant check for error status

2017-05-25 Thread Colin King
From: Colin Ian King The check to see if status is less than zero is actually redundant as all previous places where it is -ve have already branched to the exit paths, so it is never less than zero at the check. Detected by CoverityScan, CID#1357119 ("Logically dead code") Signed-off-by: Colin

Re: [PATCH] net: fix potential null pointer dereference

2017-05-25 Thread David Miller
From: "Gustavo A. R. Silva" Date: Tue, 23 May 2017 18:18:37 -0500 > Add null check to avoid a potential null pointer dereference. > > Addresses-Coverity-ID: 1408831 > Signed-off-by: Gustavo A. R. Silva Applied, thank you.

Re: [PATCH] staging-next: wlan-ng: resolve checkpatch issues

2017-05-25 Thread Greg KH
On Sun, May 21, 2017 at 01:03:55AM +0530, Ranjit W wrote: > fixing following checkpatch warning wherever possible: > WARNING: line over 80 characters > > Signed-off-by: Ranjit W > --- > drivers/staging/wlan-ng/cfg80211.c | 11 --- > drivers/staging/wlan-ng/hfa384x.h | 21 +++

Re: [PATCH] Staging: bcm2835-audio: bcm2835_ctl.c: Fixed a comment coding style issue.

2017-05-25 Thread Greg KH
On Sat, May 20, 2017 at 02:00:24AM +0530, srishti sharma wrote: > fixed a trailing */ issue . > > Signed-off-by: srishti sharma > --- > drivers/staging/bcm2835-audio/bcm2835-ctl.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) This file isn't in my tree, always work against linux-n

Re: [PATCH 1/5][v2] staging: fsl-mc: fix several checkpath.pl warnings

2017-05-25 Thread Greg KH
On Mon, May 22, 2017 at 03:09:31PM +0300, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor Your subject line is very odd, please use the 'v2' marking properly... > > Remove several unneeded #includes, forward > declarations and fix several issues reported > by checkpatch.pl --strict, such

Re: [PATCH 2/5][v2] staging: fsl-mc: add binding path to MAINTAINERS

2017-05-25 Thread Greg KH
On Mon, May 22, 2017 at 03:09:32PM +0300, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > Signed-off-by: Laurentiu Tudor I don't take patches without any changelog text :(

Re: [PATCH 2/5][v2] staging: fsl-mc: add binding path to MAINTAINERS

2017-05-25 Thread Greg KH
On Mon, May 22, 2017 at 03:09:32PM +0300, laurentiu.tu...@nxp.com wrote: > From: Laurentiu Tudor > > Signed-off-by: Laurentiu Tudor > --- > > Notes: > -v2 > -no changes then why is it "v2"?

RE: [PATCH 4.4 06/28] cifs: Do not send echoes before Negotiate is complete

2017-05-25 Thread Pavel Shilovskiy
On Tu, May 9, 2017 6:01 PM, Pavel Shilovskiy wrote: > On Tue, May 9, 2017 5:13 AM, Ben Hutchings wrote: > > > commit 4fcd1813e640 ("Fix reconnect to not defer smb3 session > > > reconnect long after socket reconnect") added support for Negotiate > > > requests to be initiated by echo calls. > > >

Re: [PATCH] net: jme: Remove unused functions

2017-05-25 Thread David Miller
From: Matthias Kaehlcke Date: Tue, 23 May 2017 17:27:51 -0700 > The functions jme_restart_tx_engine(), jme_pause_rx() and > jme_resume_rx() are not used. Removing them fixes the following warnings > when building with clang: > > drivers/net/ethernet/jme.c:694:1: error: unused function > 'jme

Re: [PATCH v6 06/10] mm: thp: check pmd migration entry in common path

2017-05-25 Thread kbuild test robot
Hi Zi, [auto build test WARNING on mmotm/master] [also build test WARNING on v4.12-rc2 next-20170525] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Zi-Yan/mm-page-migration-enhancement-for-thp

Re: [PATCH] RFC: arm: eBPF JIT compiler

2017-05-25 Thread Andrew Lunn
On Thu, May 25, 2017 at 02:01:36AM +0530, Shubham Bansal wrote: > Hi Andrew, > > I am attaching the latest patch which should work on ARMv5 , ARMv6 and ARMv7. > > Please test on your machines. Apologies for the last patch. This patch > should work though. andrew@shuttle:~/linux$ make -s -j 16 ar

Re: [PATCH] [iov_iter] use memmove() when copying to/from user page

2017-05-25 Thread Pavel Machek
Hi! On Tue 2017-05-16 23:48:54, Al Viro wrote: > On Tue, May 16, 2017 at 03:15:16PM -0700, Dmitry Vyukov wrote: > > > Because it's not going to be *one* call of memcpy() or memmove(). It's > > > one per page. > > > > > > I missed that. > > > > I assumed that in the case of sendfile from memfd

[PATCH v2] mmc: bcm2835: fix potential null pointer dereferences

2017-05-25 Thread Gustavo A. R. Silva
Null check at line 1165: if (mrq->cmd), implies that mrq->cmd might be NULL. Add null checks before dereferencing pointer mrq->cmd in order to avoid any potential NULL pointer dereference. Addresses-Coverity-ID: 1408740 Tested-by: Stefan Wahren Signed-off-by: Gustavo A. R. Silva --- Changes in v

Re: [PATCH 6/7] RISC-V: arch/riscv/kernel

2017-05-25 Thread Pavel Machek
Hi! > +static void ci_leaf_init(struct cacheinfo *this_leaf, > + struct device_node *node, > + enum cache_type type, unsigned int level) > +{ > +this_leaf->of_node = node; > +this_leaf->level = level; > +this_leaf->type = type

Re: [copyleft-next] Re: Kernel modules under new copyleft licence : (was Re: [PATCH v2] module.h: add copyleft-next >= 0.3.1 as GPL compatible)

2017-05-25 Thread Pavel Machek
Hi! > >> Alright, this makes sense. > >> > >> As noted though there are a few "or" clauses, which upstream file > >> is a good template to use for copyleft-next ? > > > > There seems to be a few "or" clauses. For instance: > > > > a) you can pick either license [0] > > b) gpl on Linux, otherwise t

Re: [PATCH v3] Added "Preserve Boot Time Support"

2017-05-25 Thread Pavel Machek
Hi! > +#ifndef BOOT_TIME_PRESERVE_CMDLINE > + #define BOOT_TIME_PRESERVE_CMDLINE "preserve_boot_time" > +#endif Needs documentation in Doc*/, should not have separate define, that just makes it complex. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.kar

Re: Change PAGE_SIZE from minimum 4k to 12k

2017-05-25 Thread Pavel Machek
On Tue 2017-05-16 11:27:08, Kevin McKinney wrote: > Hi Everyone, > > Would it be possible to have a custom block device driver read/write > in increments of 12k instead of reading/writing data in 4k increments? > In other words, I would like to change the default page size on a > x86_64 platform (

Re: [RFC 0/3] misc: new serdev based drivers for w2sg00x4 GPS module and w2cbw003 wifi/bluetooth

2017-05-25 Thread Pavel Machek
Hi! > > You don't need hciattach. All userspace has to do for kernel BT > > drivers is "hciconfig hci0 up|down". > > Hm. Well: > > root@letux:~# hciconfig hci0 up > Can't get device info: No such device > root@letux:~# > > I wonder how I can tell hciconfig about the UART port if not by running

Re: [PATCH v3] Add "shutdown" to "struct class".

2017-05-25 Thread Jarkko Sakkinen
On Thu, May 25, 2017 at 03:09:30PM +0200, Greg Kroah-Hartman wrote: > On Mon, May 15, 2017 at 10:34:38AM -0700, Josh Zimmerman wrote: > > The TPM class has some common shutdown code that must be executed for > > all drivers. This adds some needed functionality for that. > > > > Usage example: 'tpm

Re: [PATCH v3] Add "shutdown" to "struct class".

2017-05-25 Thread Jarkko Sakkinen
On Thu, May 25, 2017 at 08:40:28AM -0700, Josh Zimmerman wrote: > Thanks, Greg. > > Greg, Jarkko: Do either of you you have any objections to me > backporting these changes to 4.4 and 4.9? I'd like to make sure that > at least the couple most recent LTS kernels have this patch. (I don't > care so

Re: [PATCH v6 05/10] mm: thp: enable thp migration in generic path

2017-05-25 Thread kbuild test robot
Hi Zi, [auto build test WARNING on mmotm/master] [also build test WARNING on v4.12-rc2 next-20170525] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Zi-Yan/mm-page-migration-enhancement-for-thp

Re: [RFC PATCH] mm, oom: cgroup-aware OOM-killer

2017-05-25 Thread Johannes Weiner
On Thu, May 25, 2017 at 05:38:19PM +0200, Michal Hocko wrote: > On Tue 23-05-17 09:25:44, Johannes Weiner wrote: > > On Tue, May 23, 2017 at 09:07:47AM +0200, Michal Hocko wrote: > > > On Mon 22-05-17 18:01:16, Roman Gushchin wrote: > [...] > > > > How to react on an OOM - is definitely a policy, w

Re: [PATCH v3 0/5] net-next: stmmac: rework the speed selection

2017-05-25 Thread David Miller
From: Corentin Labbe Date: Wed, 24 May 2017 09:16:42 +0200 > The current stmmac_adjust_link() part which handle speed have > some if (has_platform) code and my dwmac-sun8i will add more of them. > > So we need to handle better speed selection. > Moreover the struct link member speed and port are

Re: [PATCH] Input: elan_i2c - Clean INT stats in FW updating for old Elan touchpad

2017-05-25 Thread Dmitry Torokhov
On Wed, May 24, 2017 at 05:43:39PM +0800, KT Liao wrote: > Some old touchapd FWs have interrupt issue after FW updating. > Use reading 34 bytes before IC reset command to clean INT stauts > The modification has been tested in some chromebook system > It should not affect general touchpad in Linux s

Re: [PATCH 3/3] gpio: adp5588: move header file out of I2C realm

2017-05-25 Thread Wolfram Sang
On Mon, May 22, 2017 at 04:40:26PM -0700, Dmitry Torokhov wrote: > On Sun, May 21, 2017 at 11:57:27PM +0200, Wolfram Sang wrote: > > include/linux/i2c is not for client devices. Move the header file to a > > more appropriate location. > > > > Signed-off-by: Wolfram Sang > > --- > > > > This driv

Re: [PATCH] Input: elan_i2c - Prevent breaking of FW updating from unexpected signal

2017-05-25 Thread 'Dmitry Torokhov'
On Wed, May 24, 2017 at 04:53:50PM +0800, 廖崇榮 wrote: > Hi Dmitry > > -Original Message- > From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] > Sent: Wednesday, May 24, 2017 5:14 AM > To: KT Liao > Cc: linux-kernel@vger.kernel.org; linux-in...@vger.kernel.org; > phoe...@emc.com.tw >

[PATCH v4.1 7/8] mm/hugetlb: Introduce set_huge_swap_pte_at() helper

2017-05-25 Thread Punit Agrawal
set_huge_pte_at(), an architecture callback to populate hugepage ptes, does not provide the range of virtual memory that is targeted. This leads to ambiguity when dealing with swap entries on architectures that support hugepages consisting of contiguous ptes. Fix the problem by introducing an over

Re: [PATCH v7 net-next 17/17] net: qualcomm: add QCA7000 UART driver

2017-05-25 Thread David Miller
When you submit a new version of a patch within a patch series, you must always resubmit the entire series not just the patches which change. Thank you.

Re: [PATCH] [iov_iter] use memmove() when copying to/from user page

2017-05-25 Thread Eric Dumazet
On Thu, May 25, 2017 at 10:04 AM, Pavel Machek wrote: > Hi! > > On Tue 2017-05-16 23:48:54, Al Viro wrote: >> On Tue, May 16, 2017 at 03:15:16PM -0700, Dmitry Vyukov wrote: >> > > Because it's not going to be *one* call of memcpy() or memmove(). It's >> > > one per page. >> > >> > >> > I missed t

[PATCH] s390: kernel: Delete an error message for a failed memory allocation in cpcmd()

2017-05-25 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 25 May 2017 19:09:50 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Sign

Re: [PATCH v6 05/10] mm: thp: enable thp migration in generic path

2017-05-25 Thread Zi Yan
On 25 May 2017, at 13:06, kbuild test robot wrote: > Hi Zi, > > [auto build test WARNING on mmotm/master] > [also build test WARNING on v4.12-rc2 next-20170525] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] &g

Re: [PATCH net-next] rxrpc: Support network namespacing

2017-05-25 Thread David Miller
From: David Howells Date: Wed, 24 May 2017 17:02:32 +0100 > Support network namespacing in AF_RXRPC with the following changes: > > (1) All the local endpoint, peer and call lists, locks, counters, etc. are > moved into the per-namespace record. > > (2) All the connection tracking is mov

Re: [PATCH v4 8/8] mm: rmap: Use correct helper when poisoning hugepages

2017-05-25 Thread Punit Agrawal
kbuild test robot writes: > Hi Punit, > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.12-rc2 next-20170524] > [cannot apply to mmotm/master] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://gi

Re: [PATCH] RFC: arm: eBPF JIT compiler

2017-05-25 Thread Andrew Lunn
On Thu, May 25, 2017 at 07:00:51PM +0200, Andrew Lunn wrote: > On Thu, May 25, 2017 at 02:01:36AM +0530, Shubham Bansal wrote: > > Hi Andrew, > > > > I am attaching the latest patch which should work on ARMv5 , ARMv6 and > > ARMv7. > > > > Please test on your machines. Apologies for the last pat

Re: [BUGFIX PATCH] kprobes/x86: Fix to set RWX bits correctly before releasing trampoline

2017-05-25 Thread Luis R. Rodriguez
On Thu, May 25, 2017 at 07:38:17PM +0900, Masami Hiramatsu wrote: > Fix kprobes to set(recover) RWX bits correctly on trampoline > buffer before releasing it. Releasing readonly page to > module_memfree() crash the kernel. > > Without this fix, if kprobes user register a bunch of kprobes > in func

[PATCH] arc: Remove sometimes misleading toolchain check

2017-05-25 Thread Alexey Brodkin
Thinking of a toolchains for ARCompact and ARCv2 ISAs we implicitly think about libgcc.a build for one of those ISAs which we're linking with. And given there's no multiarch uClibc toolchain for ARC (as probably for any other architecture) the assumption is the only way to get libgcc.a for desired

Re: [PATCH v6 06/10] mm: thp: check pmd migration entry in common path

2017-05-25 Thread kbuild test robot
Hi Zi, [auto build test ERROR on mmotm/master] [also build test ERROR on v4.12-rc2 next-20170525] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Zi-Yan/mm-page-migration-enhancement-for-thp

Re: irqchip/irq-gic: BAD_MADT_GICC_ENTRY may fail when booting with ACPI 5.1

2017-05-25 Thread Lorenzo Pieralisi
On Wed, May 24, 2017 at 02:00:02PM +0100, Marc Zyngier wrote: > On 24/05/17 12:18, Julien Grall wrote: > > Hi Lorenzo, > > > > On 05/23/2017 06:06 PM, Lorenzo Pieralisi wrote: > >> [+Al] > >> > >> On Tue, May 23, 2017 at 05:40:28PM +0100, Julien Grall wrote: > >>> Hi all, > >>> > >>> I am currentl

Re: linux-next: Tree for May 25 (gpio-ingenic.c)

2017-05-25 Thread Randy Dunlap
On 05/24/17 19:43, Stephen Rothwell wrote: > Hi all, > > Changes since 20170524: > on x86_64, with: # CONFIG_OF is not set CONFIG_GPIOLIB=y CONFIG_GPIO_INGENIC=y CONFIG_COMPILE_TEST=y ../drivers/gpio/gpio-ingenic.c: In function 'ingenic_gpio_probe': ../drivers/gpio/gpio-ingenic.c:324:10: error

[PATCH v11 0/6] FPGA Manager support for altera passive serial

2017-05-25 Thread Joshua Clayton
FPGA Manager passive serial can now support Stratix, Cyclone and Arria FPGAs. Thanks to Bastian and Anatolij for helping to extend support beyond Cyclone changes from v10 - Rebase on v4.12-rc2 - Remove an erroneous cyclone-ps-spi.o reference from drivers/fpga/Makefile - Change FPGA_MGR_SPI_BITSTR

[PATCH v11 4/6] ARM: dts: imx6q-evi: support altera-ps-spi

2017-05-25 Thread Joshua Clayton
Add support for Altera V FPGA connected to an spi port to the evi devicetree file Signed-off-by: Joshua Clayton --- arch/arm/boot/dts/imx6q-evi.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-evi.dts b/arch/arm/boot/dts/imx6q-evi.dts index 24fe09

[PATCH v11 5/6] lib: add bitrev8x4()

2017-05-25 Thread Joshua Clayton
Add a function to reverse bytes within a 32 bit word. Operate on a u32 rather than individual bytes. Signed-off-by: Joshua Clayton --- include/linux/bitrev.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/linux/bitrev.h b/include/linux/bitrev.h index fb790b8449c

Re: [PATCH 1/6] kmod: add dynamic max concurrent thread count

2017-05-25 Thread Dmitry Torokhov
On Thu, May 25, 2017 at 09:50:15AM -0700, Luis R. Rodriguez wrote: > On Thu, May 25, 2017 at 9:38 AM, Dmitry Torokhov > wrote: > > On Thu, May 25, 2017 at 06:22:01PM +0200, Luis R. Rodriguez wrote: > >> On Fri, May 19, 2017 at 02:58:29PM -0700, Dmitry Torokhov wrote: > >> > On Fri, May 19, 2017 at

Re: [copyleft-next] Re: Kernel modules under new copyleft licence : (was Re: [PATCH v2] module.h: add copyleft-next >= 0.3.1 as GPL compatible)

2017-05-25 Thread Luis R. Rodriguez
On Thu, May 25, 2017 at 07:05:18PM +0200, Pavel Machek wrote: > Hi! > > > >> Alright, this makes sense. > > >> > > >> As noted though there are a few "or" clauses, which upstream file > > >> is a good template to use for copyleft-next ? > > > > > > There seems to be a few "or" clauses. For instanc

[PATCH v11 2/6] doc: dt: add altera-ps-spi binding document

2017-05-25 Thread Joshua Clayton
Describe an altera-ps-spi devicetree entry, required features Signed-off-by: Joshua Clayton Acked-by: Rob Herring Signed-off-by: Anatolij Gustschin --- .../bindings/fpga/altera-passive-serial.txt| 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Document

[PATCH v11 3/6] fpga manager: Add altera-ps-spi driver for Altera FPGAs

2017-05-25 Thread Joshua Clayton
altera-ps-spi loads FPGA firmware over SPI, using the "passive serial" interface on Altera Arria 10, Cyclone V or Stratix V FPGAs. This is one of the simpler ways to set up an FPGA at runtime. The signal interface is close to unidirectional SPI with lsb first. Signed-off-by: Joshua Clayton Signe

[PATCH v11 6/6] fpga-manager: altera-ps-spi: use bitrev8x4

2017-05-25 Thread Joshua Clayton
Speed up bit reversal by using hardware bit reversal Add extra code to handle less than 4byte remnants, if any Signed-off-by: Joshua Clayton --- drivers/fpga/altera-ps-spi.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/drivers/fpga/altera-ps-spi.c b/dr

[PATCH v11 1/6] fpga: Add flag to indicate SPI bitstream is bit-reversed

2017-05-25 Thread Joshua Clayton
From: Anatolij Gustschin Add a flag that is passed to the write_init() callback, indicating that the SPI bitstream starts with LSB first. SPI controllers usually send data with MSB first. If an FPGA expects bitstream data as LSB first, the data must be reversed either by the SPI controller or by

Re: [PATCH] mailbox: fix completion order for blocking requests

2017-05-25 Thread Jassi Brar
On Thu, May 25, 2017 at 10:10 PM, Alexey Klimov wrote: > On Sun, Apr 23, 2017 at 03:33:39PM +0530, Jassi Brar wrote: > > Sorry for delay -- this is not my main activity so please be patient. > No problem. >> > >> > Along with this patch you still need at least one patch from Sudeep with >> > su

[PATCH V2 1/2] powerpc/numa: Update CPU topology when VPHN enabled

2017-05-25 Thread Michael Bringmann
powerpc/numa: Correct the currently broken capability to set the topology for shared CPUs in LPARs. At boot time for shared CPU lpars, the topology for each shared CPU is set to node zero, however, this is now updated correctly using the Virtual Processor Home Node (VPHN) capabilities information

[PATCH V2 2/2]: powerpc/hotplug/mm: Fix hot-add memory node assoc

2017-05-25 Thread Michael Bringmann
Removing or adding memory via the PowerPC hotplug interface shows anomalies in the association between memory and nodes. The code was updated to ensure that all nodes found at boot are still available to subsequent DLPAR hotplug-memory operations, even if they are not needed at boot time. Signed

Re: [PATCH 1/6] kmod: add dynamic max concurrent thread count

2017-05-25 Thread Luis R. Rodriguez
On Thu, May 25, 2017 at 10:30 AM, Dmitry Torokhov wrote: > On Thu, May 25, 2017 at 09:50:15AM -0700, Luis R. Rodriguez wrote: >> On Thu, May 25, 2017 at 9:38 AM, Dmitry Torokhov >> wrote: >> > On Thu, May 25, 2017 at 06:22:01PM +0200, Luis R. Rodriguez wrote: >> >> On Fri, May 19, 2017 at 02:58:2

Re: [PATCH net] sky2: Do not deadlock on sky2_hw_down

2017-05-25 Thread David Miller
From: Joshua Emele Date: Wed, 24 May 2017 15:43:18 -0700 > From: Joshua Emele > > The sky2_hw_down uses sky2_tx_complete to free pending frames stuck in > the HW queue. Because sky2_hw_down can be called from a process context, > the call to u64_stats_update_begin can result in deadlock. > > B

Re: [PATCH RFC] mailbox: move controller timer to per-channel timers

2017-05-25 Thread Alexey Klimov
Hi Jassi, sorry for delay again. On Tue, Apr 11, 2017 at 06:30:08PM +0530, Jassi Brar wrote: > On 11 April 2017 at 18:04, Alexey Klimov wrote: > > On Fri, Apr 07, 2017 at 08:39:35PM +0530, Jassi Brar wrote: > >> On Thu, Apr 6, 2017 at 11:01 PM, Alexey Klimov > >> wrote: > >> > When mailbox con

Re: [PATCH V2] x86/ftrace: Make sure that ftrace trampolines are not RWX

2017-05-25 Thread Luis R. Rodriguez
On Thu, May 25, 2017 at 10:57:51AM +0200, Thomas Gleixner wrote: > ftrace use module_alloc() to allocate trampoline pages. The mapping of > module_alloc() is RWX, which makes sense as the memory is written to right > after allocation. But nothing makes these pages RO after writing to them. > > Add

[PATCH 0/4] Maxim Semiconductor MAX1721x power_supply driver

2017-05-25 Thread Alex A. Mihaylov
Maxim Semiconductor MAX1721x series chip is standalone fuel gauge for singlecell (MAX17211) or multicell (MAX17215) batteries. This device use OneWire (W1) interface with W1-Family code 0x26 PATCHES: 1. Introduce regmap infrastructure over Maxim/Dalas OneWire (W1) bus 2. Introduce new OneWire

[PATCH 1/4] Introduce regmap infrastructure over Maxim/Dalas OneWire (W1) bus

2017-05-25 Thread Alex A. Mihaylov
Signed-off-by: Alex A. Mihaylov --- drivers/base/regmap/Kconfig | 6 +- drivers/base/regmap/Makefile| 1 + drivers/base/regmap/regmap-w1.c | 241 include/linux/regmap.h | 34 ++ 4 files changed, 281 insertions(+), 1 deletion(-) c

[PATCH 2/4] Introduce new OneWire (W1) family 0x26 with slave device Maxim Semconductor MAX17211/MAX17215 Fuel Gauge IC

2017-05-25 Thread Alex A. Mihaylov
Signed-off-by: Alex A. Mihaylov --- drivers/w1/slaves/Kconfig | 12 + drivers/w1/slaves/Makefile | 1 + drivers/w1/slaves/w1_max1721x.c | 73 drivers/w1/slaves/w1_max1721x.h | 102 drivers/w1/w1_family.h

[PATCH 3/4] Introduce Maxim Semiconductor MAX17211/MAX17215 Standalone Fuel Gauge IC support for power_supply class driver

2017-05-25 Thread Alex A. Mihaylov
Signed-off-by: Alex A. Mihaylov --- drivers/power/supply/Kconfig| 14 ++ drivers/power/supply/Makefile | 1 + drivers/power/supply/max1721x_battery.c | 357 3 files changed, 372 insertions(+) create mode 100644 drivers/power/supply/max172

[PATCH 4/4] Fix W1 slave exchange with second device on probe step

2017-05-25 Thread Alex A. Mihaylov
Signed-off-by: Alex A. Mihaylov --- drivers/w1/w1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c index 90a3d93..5b8b976 100644 --- a/drivers/w1/w1.c +++ b/drivers/w1/w1.c @@ -731,6 +731,7 @@ int w1_attach_slave_device(struct w1_master *

<    1   2   3   4   5   6   7   8   9   10   >