Re: [RFC v1 1/2] VS1544 KSM generic memory comparison functions

2017-09-25 Thread Geert Uytterhoeven
Hi Claudio, On Mon, Sep 25, 2017 at 10:46 AM, Claudio Imbrenda wrote: > This is just a refactoring of the existing code: > > * Split the page checksum and page comparison functions from ksm.c into > a new asm-generic header (page_memops.h) ... and make them inline? > --- /dev/null > +++ b/inc

[PATCH 1/3] iio: accel: mma8452: Rename structs holding event configuration registers to more appropriate names.

2017-09-25 Thread Harinath Nampally
Improves code readability, no impact on functionality. Signed-off-by: Harinath Nampally --- drivers/iio/accel/mma8452.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c index 6194169..3472e7e 100644 --- a/dri

[PATCH 0/3] Refactor event related code

2017-09-25 Thread Harinath Nampally
Rename some struct names and function names to improve code readability. Harinath Nampally (3): iio: accel: mma8452: Rename structs holding event configuration registers to more appropriate names. iio: accel: mma8452: Rename time step look up struct to generic name as the value

[PATCH 3/3] iio: accel: mma8452: Rename read/write event value callbacks to generic function name.

2017-09-25 Thread Harinath Nampally
'mma8452_read_thresh' and 'mma8452_write_thresh' functions does more than just read/write threshold values. They also handle IIO_EV_INFO_HIGH_PASS_FILTER_3DB and IIO_EV_INFO_PERIOD therefore renaming to generic names. Improves code readability, no impact on functionality. Signed-off-by: Harinath

[PATCH 2/3] iio: accel: mma8452: Rename time step look up struct to generic name as the values are same for all the events.

2017-09-25 Thread Harinath Nampally
Improves code readability, no impact on functionality. Signed-off-by: Harinath Nampally --- drivers/iio/accel/mma8452.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c index 3472e7e..74b6221 100644 --- a/drivers/

[PATCH] [trivial] Fix typos in printk

2017-09-25 Thread Masanari Iida
This patch fix some spellint typo found in printk messages. Signed-off-by: Masanari Iida --- drivers/fmc/fmc-core.c| 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | 2 +- drivers/gpu/drm/i915/intel_cdclk.c| 4 ++-- drivers/net/eth

[PATCH 4/4] iio: accel: mma8452: Add single pulse/tap event detection feature for fxls8471.

2017-09-25 Thread Harinath Nampally
This patch adds following changes to support tap feature: - defines pulse event related registers - enables and handles single pulse interrupt for fxls8471 - handles IIO_EV_DIR_EITHER in read/write callbacks because event direction for pulse is either rising or falling. - configures read/write

[tip:x86/urgent] x86/numachip: Add const and __initconst to numachip2_clockevent

2017-09-25 Thread tip-bot for Bhumika Goyal
Commit-ID: 10430364ebb562311ba6a6efa74e0c2298007912 Gitweb: http://git.kernel.org/tip/10430364ebb562311ba6a6efa74e0c2298007912 Author: Bhumika Goyal AuthorDate: Tue, 29 Aug 2017 23:47:11 +0530 Committer: Thomas Gleixner CommitDate: Mon, 25 Sep 2017 09:36:15 +0200 x86/numachip: Add cons

[tip:x86/urgent] x86/mm: Fix fault error path using unsafe vma pointer

2017-09-25 Thread tip-bot for Laurent Dufour
Commit-ID: a3c4fb7c9c2ebfd50b8c60f6c069932bb319bc37 Gitweb: http://git.kernel.org/tip/a3c4fb7c9c2ebfd50b8c60f6c069932bb319bc37 Author: Laurent Dufour AuthorDate: Mon, 4 Sep 2017 10:32:15 +0200 Committer: Thomas Gleixner CommitDate: Mon, 25 Sep 2017 09:36:15 +0200 x86/mm: Fix fault erro

[tip:x86/urgent] x86/sysfs: Fix off-by-one error in loop termination

2017-09-25 Thread tip-bot for Sean Fu
Commit-ID: 7d7099433d9eaaa5a989a55f1fa354c16a3ad297 Gitweb: http://git.kernel.org/tip/7d7099433d9eaaa5a989a55f1fa354c16a3ad297 Author: Sean Fu AuthorDate: Mon, 11 Sep 2017 08:33:21 +0800 Committer: Thomas Gleixner CommitDate: Mon, 25 Sep 2017 09:36:16 +0200 x86/sysfs: Fix off-by-one er

[tip:x86/urgent] perf/x86/intel/cstate: Add missing CPU IDs

2017-09-25 Thread tip-bot for Kan Liang
Commit-ID: b09c146f8f63c0e03adba74df76bf9c2be466fec Gitweb: http://git.kernel.org/tip/b09c146f8f63c0e03adba74df76bf9c2be466fec Author: Kan Liang AuthorDate: Fri, 8 Sep 2017 17:34:47 -0400 Committer: Thomas Gleixner CommitDate: Mon, 25 Sep 2017 09:36:17 +0200 perf/x86/intel/cstate: Add

[tip:x86/urgent] perf/x86/msr: Add missing CPU IDs

2017-09-25 Thread tip-bot for Kan Liang
Commit-ID: 1aaccc40a1864053da26605b0297be16dd52641e Gitweb: http://git.kernel.org/tip/1aaccc40a1864053da26605b0297be16dd52641e Author: Kan Liang AuthorDate: Fri, 8 Sep 2017 17:34:48 -0400 Committer: Thomas Gleixner CommitDate: Mon, 25 Sep 2017 09:36:17 +0200 perf/x86/msr: Add missing C

Re: [PATCH 0/3] Simple DVFS support for Allwinner A64 SoC

2017-09-25 Thread Maxime Ripard
Hi, On Sat, Sep 23, 2017 at 12:15:28AM +, Icenowy Zheng wrote: > This patchset imports simple DVFS support for Allwinner A64 SoC. > > As the thermal sensor driver is not yet implemented and some boards > have still no AXP PMIC support, now only two OPPs are present -- > 648MHz@1.04V and 816MH

[tip:x86/urgent] perf/x86/intel/rapl: Add missing CPU IDs

2017-09-25 Thread tip-bot for Kan Liang
Commit-ID: 450a97893559354b927c935f39ee11126f01f520 Gitweb: http://git.kernel.org/tip/450a97893559354b927c935f39ee11126f01f520 Author: Kan Liang AuthorDate: Fri, 8 Sep 2017 17:34:49 -0400 Committer: Thomas Gleixner CommitDate: Mon, 25 Sep 2017 09:36:17 +0200 perf/x86/intel/rapl: Add mi

Re: [PATCH 0/3] Refactor event related code

2017-09-25 Thread Martin Kepplinger
Am 25.09.2017 12:07 schrieb Harinath Nampally: Rename some struct names and function names to improve code readability. Harinath Nampally (3): iio: accel: mma8452: Rename structs holding event configuration registers to more appropriate names. iio: accel: mma8452: Rename time step lo

Re: [PATCH v5 1/3] irqdomain: export of_phandle_args_to_fwspec

2017-09-25 Thread Thomas Gleixner
On Thu, 21 Sep 2017, Linus Walleij wrote: > On Wed, Sep 13, 2017 at 10:56 AM, Masahiro Yamada > wrote: > > > This helper will be useful for irqchip drivers that need to convert > > DT binding into IRQ fwspec. > > > > Signed-off-by: Masahiro Yamada > > I'm waiting for the irqchip maintainers to

Re: [PATCH 4/4] iio: accel: mma8452: Add single pulse/tap event detection feature for fxls8471.

2017-09-25 Thread harinath Nampally
Please disregard this patch set as this includes an unrelated patch '[PATCH 4/4] iio: accel: mma8452: Add single pulse/tap event detection feature for fxls8471.' On Mon, Sep 25, 2017 at 6:07 AM, Harinath Nampally wrote: > This patch adds following changes to support tap feature: > - defines pulse

Re: [PATCH 0/3] Simple DVFS support for Allwinner A64 SoC

2017-09-25 Thread Icenowy Zheng
于 2017年9月25日 GMT+08:00 下午6:10:27, Maxime Ripard 写到: >Hi, > >On Sat, Sep 23, 2017 at 12:15:28AM +, Icenowy Zheng wrote: >> This patchset imports simple DVFS support for Allwinner A64 SoC. >> >> As the thermal sensor driver is not yet implemented and some boards >> have still no AXP PMIC sup

[PATCH] iommu/mediatek: Limit the physical address in 32bit for v7s

2017-09-25 Thread Yong Wu
The ARM short descriptor has already limited the physical address to 32bit after the commit <76557391433c> ("iommu/io-pgtable: Sanitise map/unmap addresses"). But in MediaTek 4GB mode, the physical address is from 0x1__ to 0x1__. this will cause: WARNING: CPU: 4 PID: 3900 at xxx/dr

Re: [PATCH 3/6] lightnvm: pblk: fix message if L2P MAP is in device

2017-09-25 Thread Matias Bjørling
On 09/22/2017 10:52 AM, Javier González wrote: On 21 Sep 2017, at 13.26, Rakesh Pandit wrote: This usually happens if we are developing with qemu and ll2pmode has default value. Even in that case message seems wrong. Signed-off-by: Rakesh Pandit --- drivers/lightnvm/pblk-init.c | 2 +- 1 file

Re: [PATCH 5/6] lightnvm: pblk: print incompatible line version correctly

2017-09-25 Thread Matias Bjørling
On 09/22/2017 11:01 AM, Javier González wrote: On 21 Sep 2017, at 13.28, Rakesh Pandit wrote: Correct it by coverting little endian to cpu endian and also define a macro for line version so that maintenance is easy. Signed-off-by: Rakesh Pandit --- drivers/lightnvm/pblk-core.c | 2 +- driv

[PATCH] cpufreq: SPEAr: pr_err() strings should end with newlines

2017-09-25 Thread Arvind Yadav
pr_err() messages should terminated with a new-line to avoid other messages being concatenated onto the end. Signed-off-by: Arvind Yadav --- drivers/cpufreq/spear-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/spear-cpufreq.c b/drivers/cpufreq/s

Re: [PATCH 4/6] lightnvm: pblk: improve error message if down_timeout fails

2017-09-25 Thread Matias Bjørling
On 09/22/2017 10:55 AM, Javier González wrote: On 21 Sep 2017, at 13.27, Rakesh Pandit wrote: The two pr_err messages are useless as they don't even differentiate error code. Signed-off-by: Rakesh Pandit --- drivers/lightnvm/pblk-core.c | 12 ++-- 1 file changed, 2 insertions(+), 10 de

Re: [PATCH v6 2/2] tracing: Add support for preempt and irq enable/disable events

2017-09-25 Thread Steven Rostedt
On Mon, 25 Sep 2017 10:34:32 +0200 Peter Zijlstra wrote: > > > > grep-1041 [002] d..180.363455: preempt_disable: > > caller=_raw_spin_lock_irqsave+0x1d/0x40 > > parent=add_wait_queue+0x15/0x50 > > I suppose that sort-of makes sense for the preempt-tracer, but its a > weird th

Re: [PATCH] iio: stm32: fix adc/trigger link error

2017-09-25 Thread Jonathan Cameron
On Mon, 25 Sep 2017 11:54:06 +0200 Fabrice Gasnier wrote: > On 09/10/2017 06:00 PM, Jonathan Cameron wrote: > > On Wed, 6 Sep 2017 18:16:33 +0200 > > Fabrice Gasnier wrote: > > > >> On 09/06/2017 02:56 PM, Arnd Bergmann wrote: > >>> The ADC driver can trigger on either the timer or the lpti

Re: [PATCH 2/6] lightnvm: pblk: protect line bitmap while submitting meta io

2017-09-25 Thread Matias Bjørling
On 09/22/2017 10:49 AM, Javier González wrote: On 21 Sep 2017, at 13.26, Rakesh Pandit wrote: It seems pblk_dealloc_page would race against pblk_alloc_pages for line bitmap for sector allocation. The chances are very low but might as well protect the bitmap properly. It's not even in fast pat

Re: [PATCH 0/3] Refactor event related code

2017-09-25 Thread harinath Nampally
> First, this is at least v2 of this series. Second, it still seems to include > a 4th unrelated patch. ok I was not sure whether to make it v2 as the change was to only cover letter and no code changes. But now I know, will send v3 of this series. > It's sometimes not trivial to get email right.

Re: [PATCH 1/6] lightnvm: pblk: reuse pblk_gc_should_kick

2017-09-25 Thread Matias Bjørling
On 09/22/2017 10:40 AM, Javier González wrote: On 21 Sep 2017, at 13.25, Rakesh Pandit wrote: This is a trivial change which reuses pblk_gc_should_kick instead of repeating it again in pblk_rl_free_lines_inc. Signed-off-by: Rakesh Pandit --- drivers/lightnvm/pblk-core.c | 1 + drivers/lightnvm

Re: [PATCH 0/3] Refactor event related code

2017-09-25 Thread Martin Kepplinger
Am 25.09.2017 12:16 schrieb harinath Nampally: First, this is at least v2 of this series. Second, it still seems to include a 4th unrelated patch. ok I was not sure whether to make it v2 as the change was to only cover letter and no code changes. But now I know, will send v3 of this series.

Re: [PATCH 0/3] Simple DVFS support for Allwinner A64 SoC

2017-09-25 Thread Maxime Ripard
On Mon, Sep 25, 2017 at 10:12:09AM +, Icenowy Zheng wrote: > 于 2017年9月25日 GMT+08:00 下午6:10:27, Maxime Ripard > 写到: > >Hi, > > > >On Sat, Sep 23, 2017 at 12:15:28AM +, Icenowy Zheng wrote: > >> This patchset imports simple DVFS support for Allwinner A64 SoC. > >> > >> As the thermal senso

[PATCH] drm: of: always initialize panel in drm_of_find_panel_or_bridge()

2017-09-25 Thread Dan Carpenter
The callers expect "panel" to be initialized, but that isn't true if we return -ENODEV. It causes bugs like: drivers/gpu/drm/tve200/tve200_drv.c:83 tve200_modeset_init() error: uninitialized symbol 'panel'. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gp

Re: [linux-sunxi] Re: [PATCH 0/3] Simple DVFS support for Allwinner A64 SoC

2017-09-25 Thread Icenowy Zheng
于 2017年9月25日 GMT+08:00 下午6:27:44, Maxime Ripard 写到: >On Mon, Sep 25, 2017 at 10:12:09AM +, Icenowy Zheng wrote: >> 于 2017年9月25日 GMT+08:00 下午6:10:27, Maxime Ripard > 写到: >> >Hi, >> > >> >On Sat, Sep 23, 2017 at 12:15:28AM +, Icenowy Zheng wrote: >> >> This patchset imports simple DVFS su

Re: [PATCH v6 2/2] tracing: Add support for preempt and irq enable/disable events

2017-09-25 Thread Peter Zijlstra
On Mon, Sep 25, 2017 at 06:15:28AM -0400, Steven Rostedt wrote: > On Mon, 25 Sep 2017 10:34:32 +0200 > Peter Zijlstra wrote: > > > > > > > grep-1041 [002] d..180.363455: preempt_disable: > > > caller=_raw_spin_lock_irqsave+0x1d/0x40 > > > parent=add_wait_queue+0x15/0x50 > > >

spi-atmel.c: problem with PDC on AT91SAM9G20

2017-09-25 Thread Igor Plyatov
Dear Nicolas, Mark, Cyrille and other developers, please help to manage issue with data corruption by PDC of SPI. Versions I use linux4sam kernel 4.9.36+ (7e82b52ca2286e9823d2467b64bfe78980b464b7) on the custom AT91SAM9G20 board (Stamp9G20 SOM from Taskit.de). The drivers/spi/spi-

Re: [PATCH v2 10/11] staging: typec: fusb302: Hook up mux support using tcpc_gen_mux support

2017-09-25 Thread Peter Rosin
On 2017-09-13 17:48, Hans de Goede wrote: > Hi, > > On 13-09-17 17:07, Rob Herring wrote: >> On Wed, Sep 13, 2017 at 9:06 AM, Hans de Goede wrote: >>> Hi, >>> >>> >>> On 13-09-17 15:38, Rob Herring wrote: On Wed, Sep 13, 2017 at 3:56 AM, Hans de Goede wrote: > > Hi, >

[PATCH 5/5] crypto: bcm: pr_err() strings should end with newlines

2017-09-25 Thread Arvind Yadav
pr_err() messages should terminated with a new-line to avoid other messages being concatenated onto the end. Signed-off-by: Arvind Yadav --- drivers/crypto/bcm/util.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/bcm/util.c b/drivers/crypto/bcm

[PATCH 2/5] crypto: virtio: pr_err() strings should end with newlines

2017-09-25 Thread Arvind Yadav
pr_err() messages should terminated with a new-line to avoid other messages being concatenated onto the end. Signed-off-by: Arvind Yadav --- drivers/crypto/virtio/virtio_crypto_algs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/virtio/virtio_crypto_algs.c

[PATCH 0/5] crypto pr_err() strings should end with newlines

2017-09-25 Thread Arvind Yadav
pr_err() messages should terminated with a new-line to avoid other messages being concatenated onto the end. Arvind Yadav (5): [PATCH 1/5] crypto: omap-aes: pr_err() strings should end with newlines [PATCH 2/5] crypto: virtio: pr_err() strings should end with newlines [PATCH 3/5] crypto: che

[PATCH 3/5] crypto: chelsio: pr_err() strings should end with newlines

2017-09-25 Thread Arvind Yadav
pr_err() messages should terminated with a new-line to avoid other messages being concatenated onto the end. Signed-off-by: Arvind Yadav --- drivers/crypto/chelsio/chcr_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/chelsio/chcr_core.c b/drivers/crypto

[PATCH 4/5] crypto: qat: pr_err() strings should end with newlines

2017-09-25 Thread Arvind Yadav
pr_err() messages should terminated with a new-line to avoid other messages being concatenated onto the end. Signed-off-by: Arvind Yadav --- drivers/crypto/qat/qat_common/qat_uclo.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/qat/qat_common/qat

Re: [PATCH net-next] hv_netvsc: Fix the real number of queues of non-vRSS cases

2017-09-25 Thread Stephen Hemminger
On Fri, 22 Sep 2017 15:31:38 -0700 Haiyang Zhang wrote: > From: Haiyang Zhang > > For older hosts without multi-channel (vRSS) support, and some error > cases, we still need to set the real number of queues to one. > This patch adds this missing setting. > > Fixes: 8195b1396ec8 ("hv_netvsc: fi

[PATCH 1/5] crypto: omap-aes: pr_err() strings should end with newlines

2017-09-25 Thread Arvind Yadav
pr_err() messages should terminated with a new-line to avoid other messages being concatenated onto the end. Signed-off-by: Arvind Yadav --- drivers/crypto/omap-aes-gcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/omap-aes-gcm.c b/drivers/crypto/omap-aes-g

[PATCH v3 3/3] iio: accel: mma8452: Rename read/write event value callbacks to generic function name.

2017-09-25 Thread Harinath Nampally
'mma8452_read_thresh' and 'mma8452_write_thresh' functions does more than just read/write threshold values. They also handle IIO_EV_INFO_HIGH_PASS_FILTER_3DB and IIO_EV_INFO_PERIOD therefore renaming to generic names. Improves code readability, no impact on functionality. Signed-off-by: Harinath

[PATCH v3 2/3] iio: accel: mma8452: Rename time step look up struct to generic name as the values are same for all the events.

2017-09-25 Thread Harinath Nampally
Improves code readability, no impact on functionality. Signed-off-by: Harinath Nampally --- drivers/iio/accel/mma8452.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c index 3472e7e..74b6221 100644 --- a/drivers/

Re: [PATCH] mmc: core: add driver strength selection when selecting hs400es

2017-09-25 Thread Adrian Hunter
On 25/09/17 11:56, Chanho Min wrote: > From: "hankyung.yu" > > The drive strength setting is missed and required when selecting > hs400es. So, It is added here. > > Signed-off-by: Hankyung Yu > Signed-off-by: Chanho Min Looks right. I guess we should add: Fixes: 81ac2af65793ecf ("mmc: core:

Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\

2017-09-25 Thread Thomas Gleixner
On Sun, 24 Sep 2017, Marcelo Tosatti wrote: > On Fri, Sep 22, 2017 at 03:01:41PM +0200, Peter Zijlstra wrote: > What the patch does is the following: > It reduces the window where SCHED_FIFO is applied vcpu0 > to those were a spinlock is shared between -RT vcpus and vcpu0 > (why: because otherwise,

[PATCH v3 1/3] iio: accel: mma8452: Rename structs holding event configuration registers to more appropriate names.

2017-09-25 Thread Harinath Nampally
Improves code readability, no impact on functionality. Signed-off-by: Harinath Nampally --- drivers/iio/accel/mma8452.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c index 6194169..3472e7e 100644 --- a/dri

[PATCH v3 0/3] Refactor event related code

2017-09-25 Thread Harinath Nampally
Rename some struct names and function names to improve code readability. Harinath Nampally (3): iio: accel: mma8452: Rename structs holding event configuration registers to more appropriate names. iio: accel: mma8452: Rename time step look up struct to generic name as the value

[PATCH] dax: pr_err() strings should end with newlines

2017-09-25 Thread Arvind Yadav
pr_err() messages should terminated with a new-line to avoid other messages being concatenated onto the end. Signed-off-by: Arvind Yadav --- drivers/dax/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dax/super.c b/drivers/dax/super.c index 557b9370..30d8a5a 1

Re: [linux-sunxi] Re: [PATCH 0/3] Simple DVFS support for Allwinner A64 SoC

2017-09-25 Thread Maxime Ripard
On Mon, Sep 25, 2017 at 10:29:38AM +, Icenowy Zheng wrote: > > > 于 2017年9月25日 GMT+08:00 下午6:27:44, Maxime Ripard > 写到: > >On Mon, Sep 25, 2017 at 10:12:09AM +, Icenowy Zheng wrote: > >> 于 2017年9月25日 GMT+08:00 下午6:10:27, Maxime Ripard > > 写到: > >> >Hi, > >> > > >> >On Sat, Sep 23, 2017 a

Re: [PATCH net-next] net: mvpp2: phylink support

2017-09-25 Thread Russell King - ARM Linux
On Mon, Sep 25, 2017 at 11:55:14AM +0200, Antoine Tenart wrote: > Hi Russell, > > On Fri, Sep 22, 2017 at 12:07:31PM +0100, Russell King - ARM Linux wrote: > > On Thu, Sep 21, 2017 at 03:45:22PM +0200, Antoine Tenart wrote: > > > Convert the PPv2 driver to use phylink, which models the MAC to PHY

Re: [PATCH RFC 2/3] pipe: protect pipe_max_size access with a mutex

2017-09-25 Thread Mikulas Patocka
On Tue, 19 Sep 2017, Joe Lawrence wrote: > On 09/14/2017 07:09 PM, Mikulas Patocka wrote: > > > > I think this mutex is too heavy - if multiple processes simultaneously > > create a pipe, the mutex would cause performance degradation. > > > > You can call do_proc_dointvec with a custom callback

Re: [PATCH v2 2/2] pidmap(2)

2017-09-25 Thread Djalal Harouni
Hi Alexey, On Sun, Sep 24, 2017 at 9:08 PM, Alexey Dobriyan wrote: > From: Tatsiana Brouka > > Implement system call for bulk retrieveing of pids in binary form. > > Using /proc is slower than necessary: 3 syscalls + another 3 for each thread + > converting with atoi() + instantiating dentries a

[PATCH] efi/capsule-loader: pr_err() strings should end with newlines

2017-09-25 Thread Arvind Yadav
pr_err() messages should terminated with a new-line to avoid other messages being concatenated onto the end. Signed-off-by: Arvind Yadav --- drivers/firmware/efi/capsule-loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/efi/capsule-loader.c b/drivers/

Re: [PATCH] [trivial] Fix typos in printk

2017-09-25 Thread Christoph Böhmwalder
> if ((stream_fs != 8000) && (stream_fs != 16000)) { > - dev_err(afe->dev, "%s() btmgr not supprt this stream_fs %d\n", > + dev_err(afe->dev, "%s() btmgr not support this stream_fs %d\n", I might be mistaken, but shouldn't it be "[...] btmgr *does* not support this st

[tip:x86/urgent] perf/x86/intel/uncore: Correct num_boxes for IIO and IRP

2017-09-25 Thread tip-bot for Kan Liang
Commit-ID: 29b46dfb136cdbeece542b3f01115237e43f2855 Gitweb: http://git.kernel.org/tip/29b46dfb136cdbeece542b3f01115237e43f2855 Author: Kan Liang AuthorDate: Mon, 11 Sep 2017 10:10:15 -0700 Committer: Thomas Gleixner CommitDate: Mon, 25 Sep 2017 12:43:56 +0200 perf/x86/intel/uncore: Cor

[PATCH 1/1] bloat-o-meter: provide 3 different arguments for data, function and All

2017-09-25 Thread Maninder Singh
This patch provides 3 new arguments for bloat-o-meter 1) -c -> for all (showing function and data differently) 2) -d -> data 3) -t -> function output:- ./scripts/bloat-o-meter -c "file1" "file2" add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-152 (-152) Function o

Re: ARM64: kernel panics in DABT in sys_msync path

2017-09-25 Thread Will Deacon
Hi Yury, Thanks for the report. On Mon, Sep 25, 2017 at 12:36:22AM +0300, Yury Norov wrote: > Hi all, > > I found that running with qemu-10 with '-smp 4' option kernel v4.13 and > v4.14-rc1 panics with LTP test rwtest03: > rwtest -N rwtest03 -c -q -i 60s -n 2 -f buffered -s mmread,mmwrite -m r

Re: [PATCH v6 2/2] tracing: Add support for preempt and irq enable/disable events

2017-09-25 Thread Steven Rostedt
On Mon, 25 Sep 2017 12:32:23 +0200 Peter Zijlstra wrote: > > You mean you want to trace all calls to preempt and irq off even if > > preempt and irqs are already off? > > Sure, why not? This stuff naturally nests, and who is to say its not a > useful thing to trace all of them? > > By also t

Re: [PATCH] platform/x86: intel-hid: Power button suspend on Dell Latitude 7275

2017-09-25 Thread Andy Shevchenko
On Sat, Sep 23, 2017 at 2:45 AM, Darren Hart wrote: > On Mon, Sep 18, 2017 at 12:57:12AM +0200, Jérôme de Bretagne wrote: >> + if (event == 0xce) { >> + input_report_key(priv->input_dev, KEY_POWER, 1); >> + input_sync(priv->input_dev); >> +

Re: [PATCH 3.18 00/42] 3.18.72-stable review

2017-09-25 Thread Guenter Roeck
On 09/24/2017 11:29 PM, Greg Kroah-Hartman wrote: On Sun, Sep 24, 2017 at 06:02:56PM -0700, Guenter Roeck wrote: On 09/24/2017 01:27 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 3.18.72 release. There are 42 patches in this series, all will be posted as a r

[PATCH v2 05/16] thunderbolt: Move tb_switch_phy_port_from_link() to thunderbolt.h

2017-09-25 Thread Mika Westerberg
A Thunderbolt service might need to find the physical port from a link the cable is connected to. For instance networking driver uses this information to generate MAC address according the Apple ThunderboltIP protocol. Move this function to thunderbolt.h and rename it to tb_phy_port_from_link() to

[PATCH v2 16/16] net: Add support for networking over Thunderbolt cable

2017-09-25 Thread Mika Westerberg
From: Amir Levy ThunderboltIP is a protocol created by Apple to tunnel IP/ethernet traffic over a Thunderbolt cable. The protocol consists of configuration phase where each side sends ThunderboltIP login packets (the protocol is determined by UUID in the XDomain packet header) over the configurat

[PATCH v2 13/16] thunderbolt: Add polling mode for rings

2017-09-25 Thread Mika Westerberg
In order to support things like networking over Thunderbolt cable, there needs to be a way to switch the ring to a mode where it can be polled with the interrupt masked. We implement such mode so that the caller can allocate a ring by passing pointer to a function that is then called when an interr

[PATCH v2 11/16] thunderbolt: Use spinlock in ring serialization

2017-09-25 Thread Mika Westerberg
This makes it possible to enqueue frames also from atomic context which is needed for example, when networking packets are sent over a Thunderbolt cable. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Bernat --- drivers/thunderbolt/nhi.c | 26 ++--

[PATCH v2 14/16] thunderbolt: Add function to retrieve DMA device for the ring

2017-09-25 Thread Mika Westerberg
This is needed when Thunderbolt service drivers need to DMA map memory before it is passed down to the ring. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Bernat --- include/linux/thunderbolt.h | 13 + 1 file changed, 13 insertions(+) diff --git a

[PATCH v2 10/16] thunderbolt: Move ring descriptor flags to thunderbolt.h

2017-09-25 Thread Mika Westerberg
A Thunderbolt service driver might need to check if there was an error with the descriptor when in frame mode. We also add two Rx specific error flags RING_DESC_CRC_ERROR and RING_DESC_BUFFER_OVERRUN. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Bernat --- dr

[PATCH v2 09/16] thunderbolt: Export ring handling functions to modules

2017-09-25 Thread Mika Westerberg
These are used by Thunderbolt services to send and receive frames over the high-speed DMA rings. We also put the functions to tb_ namespace to make sure we do not collide with others and add missing kernel-doc comments for the exported functions. Signed-off-by: Mika Westerberg Reviewed-by: Micha

[PATCH v2 15/16] thunderbolt: Allocate ring HopID automatically if requested

2017-09-25 Thread Mika Westerberg
Thunderbolt services should not care which HopID (ring) they use for sending and receiving packets over the high-speed DMA path, so make tb_ring_alloc_rx() and tb_ring_alloc_tx() accept negative HopID. This means that the NHI will allocate next available HopID for the caller automatically. These H

[PATCH v2 02/16] thunderbolt: Add support for XDomain properties

2017-09-25 Thread Mika Westerberg
Thunderbolt XDomain discovery protocol uses directories which contain properties and other directories to exchange information about what capabilities the remote host supports. This also includes identification information like device ID and name. This adds support for parsing and formatting these

[PATCH v2 12/16] thunderbolt: Use spinlock in NHI serialization

2017-09-25 Thread Mika Westerberg
This is needed because ring polling functionality can be called from atomic contexts when networking and other high-speed traffic is transferred over a Thunderbolt cable. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Bernat --- drivers/thunderbolt/nhi.c | 75

Aborting a core dump on a fatal signal

2017-09-25 Thread Raymond Jennings
Would there be any benefit to allowing an in-progress core dump to be aborted if the dumping process receives a fatal signal? Example: Process segfaults, starts dumping core, but it has a lot of virtual memory allocated so it promptly leads to a queue-clogging deluge of I/O that takes in some cas

[PATCH v2 06/16] thunderbolt: Add support for XDomain discovery protocol

2017-09-25 Thread Mika Westerberg
When two hosts are connected over a Thunderbolt cable, there is a protocol they can use to communicate capabilities supported by the host. The discovery protocol uses automatically configured control channel (ring 0) and is build on top of request/response transactions using special XDomain primiti

[PATCH v2 07/16] thunderbolt: Configure interrupt throttling for all interrupts

2017-09-25 Thread Mika Westerberg
This will keep the interrupt delivery rate reasonable. The value used here (128 us) is a recommendation from the hardware people. This code is based on the work done by Amir Levy and Michael Jamet. Signed-off-by: Michael Jamet Signed-off-by: Mika Westerberg Reviewed-by: Yehezkel Bernat --- dr

[PATCH v2 03/16] thunderbolt: Move enum tb_cfg_pkg_type to thunderbolt.h

2017-09-25 Thread Mika Westerberg
These will be needed by Thunderbolt services when sending and receiving XDomain control messages. While there change TB_CFG_PKG_PREPARE_TO_SLEEP value to be decimal in order to be consistent with other members. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Berna

[PATCH v2 08/16] thunderbolt: Add support for frame mode

2017-09-25 Thread Mika Westerberg
When high-speed DMA paths are used to transfer arbitrary data over a Thunderbolt link, DMA rings should be in frame mode instead of raw mode. The latter is used by the control channel (ring 0). In frame mode each data frame can hold up to 4kB payload. This patch modifies the DMA ring code to allow

[PATCH v2 01/16] byteorder: Move {cpu_to_be32,be32_to_cpu}_array() from Thunderbolt to core

2017-09-25 Thread Mika Westerberg
We will be using these when communicating XDomain discovery protocol over Thunderbolt link but they might be useful for other drivers as well. Make them available through byteorder/generic.h. Suggested-by: Andy Shevchenko Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Y

[PATCH v2 04/16] thunderbolt: Move thunderbolt domain structure to thunderbolt.h

2017-09-25 Thread Mika Westerberg
These are needed by Thunderbolt services so move them to thunderbolt.h to make sure they are available outside of drivers/thunderbolt. Signed-off-by: Mika Westerberg Reviewed-by: Michael Jamet Reviewed-by: Yehezkel Bernat --- drivers/thunderbolt/tb.h| 42 ---

[PATCH v2 00/16] Thunderbolt networking

2017-09-25 Thread Mika Westerberg
Hi all, In addition of tunneling PCIe, Display Port and USB traffic, Thunderbolt allows connecting two hosts (domains) over a Thunderbolt cable. It is possible to tunnel arbitrary data packets over such connection using high-speed DMA rings available in the Thunderbolt host controller. In order t

Re: [Question]: try to fix contention between expire_timers and try_to_del_timer_sync

2017-09-25 Thread qiaozhou
Hi Will, Will this bodging patch be merged? It can solve the livelock issue on arm64 platforms(at least improve a lot). I suspected that CCI-freq might impact the contention between little and big core, but on my platform, it impacts little. In fact the frequency of external DDR controller i

[PATCH 0/3] tpm: retrieve digest size of unknown algorithms from TPM

2017-09-25 Thread Roberto Sassu
This patch set derives from a larger patch set which modifies the TPM driver API in order to extend a PCR with multiple digests. It can be retrieved at the URL: https://sourceforge.net/p/tpmdd/mailman/message/35905412/ The TPM driver currently relies on the crypto subsystem to determine the dige

Re: usb/wireless/rsi_91x: use-after-free write in __run_timers

2017-09-25 Thread Andrey Konovalov
On Mon, Sep 25, 2017 at 6:26 AM, Kalle Valo wrote: > Andrey Konovalov writes: > >> I've got the following report while fuzzing the kernel with syzkaller. >> >> On commit 6e80ecdddf4ea6f3cd84e83720f3d852e6624a68 (Sep 21). >> >> == >>

[PATCH 1/3] tpm: move PCR read code to static function tpm2_pcr_read_common()

2017-09-25 Thread Roberto Sassu
tpm2_pcr_read() copies the digest stored in a PCR to a buffer provided by the caller. However, it does not return the digest size, included in the output from the TPM. Retrieving it would be useful when a TPM algorithm is not known by the crypto subsystem, which the TPM driver currently depends upo

[PATCH 2/3] tpm: retrieve digest size of unknown algorithms with PCR read

2017-09-25 Thread Roberto Sassu
PCRs can be extended by providing the TPM algorithm identifier and the digest. To correctly build the command buffer, the digest size must be known. The TPM driver cannot determine the digest size if the provided TPM algorithm is not mapped to any crypto algorithm. In this case, the PCR bank is no

[PATCH 3/3] tpm: add the crypto algorithm identifier to active_bank_info

2017-09-25 Thread Roberto Sassu
In preparation for the patch introducing a function to pass supported TPM algorithms and digest sizes to TPM users, the crypto algorithm identifier is added to the active_bank_info structure. All members of active_bank_info are necessary: TPM algorithm identifiers will be used to create an event l

Re: [PATCH] apparmor: initialized returned struct aa_perms

2017-09-25 Thread Geert Uytterhoeven
On Fri, Sep 15, 2017 at 9:55 PM, Arnd Bergmann wrote: > gcc-4.4 points out suspicious code in compute_mnt_perms, where > the aa_perms structure is only partially initialized before getting > returned: > > security/apparmor/mount.c: In function 'compute_mnt_perms': > security/apparmor/mount.c:227:

Re: [PATCH v2 10/11] staging: typec: fusb302: Hook up mux support using tcpc_gen_mux support

2017-09-25 Thread Hans de Goede
Hi, On 25-09-17 12:34, Peter Rosin wrote: On 2017-09-13 17:48, Hans de Goede wrote: Hi, On 13-09-17 17:07, Rob Herring wrote: On Wed, Sep 13, 2017 at 9:06 AM, Hans de Goede wrote: Hi, On 13-09-17 15:38, Rob Herring wrote: On Wed, Sep 13, 2017 at 3:56 AM, Hans de Goede wrote: Hi, On

[PATCH RESEND] wireless: iwlwifi: fix minor code style issues

2017-09-25 Thread Christoph Böhmwalder
Fixes three trivial issues as reported by checkpatch.pl, namely two switch/case indentation issues and one alignment issue in a multiline comment. Signed-off-by: Christoph Böhmwalder --- drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) di

Re: [RFC v1 0/2] Per-arch page checksumming and comparison

2017-09-25 Thread Andrea Arcangeli
On Mon, Sep 25, 2017 at 10:46:12AM +0200, Claudio Imbrenda wrote: > Since we now have two different proposals on how to speed up KSM, I > thought I'd share what I had done too, so we can now have three :) > > I have analysed the performance of KSM, and I have found out that both > the checksum and

Re: [PATCH RESEND] wireless: iwlwifi: fix minor code style issues

2017-09-25 Thread Coelho, Luciano
On Mon, 2017-09-25 at 13:37 +0200, Christoph Böhmwalder wrote: > Fixes three trivial issues as reported by checkpatch.pl, namely two switch/case indentation issues and one alignment issue in a multiline comment. Signed-off-by: Christoph Böhmwalder --- Why are you already resending this? You sent

Re: [PATCH RESEND] wireless: iwlwifi: fix minor code style issues

2017-09-25 Thread Christoph Böhmwalder
> Why are you already resending this? Sorry, I guess I was too impatient. I also messed up the spelling in a "To:" line and forgot triv...@kernel.org the first time I sent it, so I figured I'd just fix it in a resend. I'll make sure to wait a little longer next time. -- Regards, Christoph sig

Re: [PATCH] powerpc/perf: Fix for core/nest imc call trace on cpuhotplug

2017-09-25 Thread Anju T Sudhakar
Hi mpe, On Thursday 21 September 2017 10:04 AM, Michael Ellerman wrote: Anju T Sudhakar writes: Nest/core pmu units are enabled only when it is used. A reference count is maintained for the events which uses the nest/core pmu units. Currently in *_imc_counters_release function a WARN() is us

Re: [PATCH] sched/rt.c: pick and check task if double_lock_balance() unlock the rq

2017-09-25 Thread zhouchengming
ping... Or it isn't a real problem ? Thanks. On 2017/9/11 14:51, Zhou Chengming wrote: push_rt_task() pick the first pushable task and find an eligible lowest_rq, then double_lock_balance(rq, lowest_rq). So if double_lock_balance() unlock the rq (when double_lock_balance() return 1), we have to

Re: [PATCH net-next] net: mvpp2: phylink support

2017-09-25 Thread Antoine Tenart
On Mon, Sep 25, 2017 at 11:45:32AM +0100, Russell King - ARM Linux wrote: > On Mon, Sep 25, 2017 at 11:55:14AM +0200, Antoine Tenart wrote: > > On Fri, Sep 22, 2017 at 12:07:31PM +0100, Russell King - ARM Linux wrote: > > > On Thu, Sep 21, 2017 at 03:45:22PM +0200, Antoine Tenart wrote: > > > > Con

Re: [PATCH] KEYS: prevent creating a different user's keyrings

2017-09-25 Thread David Howells
Eric Biggers wrote: > Well, maybe. Whitelists are hard to get right, and it would be a bit ugly > having to check the name in both add_key() and join_session_keyring(). And > hopefully that would be everything? Actually, having thought about it some more, I think your way is better. > I think

Re: [PATCHv2] mm: Account pud page tables

2017-09-25 Thread Michal Hocko
On Mon 25-09-17 10:39:13, Kirill A. Shutemov wrote: > On machine with 5-level paging support a process can allocate > significant amount of memory and stay unnoticed by oom-killer and > memory cgroup. The trick is to allocate a lot of PUD page tables. > We don't account PUD page tables, only PMD an

Re: [PATCH v1 1/4] KVM/vmx: re-write the msr auto switch feature

2017-09-25 Thread Paolo Bonzini
On 25/09/2017 06:44, Wei Wang wrote: > > +static void update_msr_autoload_count_max(void) > +{ > + u64 vmx_msr; > + int n; > + > + /* > + * According to the Intel SDM, if Bits 27:25 of MSR_IA32_VMX_MISC is > + * n, then (n + 1) * 512 is the recommended max number of MSRs to

Re: [PATCH v1 2/4] KVM/vmx: auto switch MSR_IA32_DEBUGCTLMSR

2017-09-25 Thread Paolo Bonzini
On 25/09/2017 06:44, Wei Wang wrote: > Passthrough the MSR_IA32_DEBUGCTLMSR to the guest, and take advantage of > the hardware VT-x feature to auto switch the msr upon VMExit and VMEntry. I think most bits in the MSR should not be passed through (for example FREEZE_WHILE_SMM_EN, FREEZE_LBRS_ON_PMI

[PATCH] scsi: fc: check for rport presence in fc_block_scsi_eh

2017-09-25 Thread Johannes Thumshirn
Coverity-scan recently found a possible NULL pointer dereference in fc_block_scsi_eh() as starget_to_rport() either returns the rport for the startget or NULL. While it is rather unlikely to have fc_block_scsi_eh() called without an rport associated it's a good idea to catch potential misuses of t

Re: [PATCH v2 2/5] clk: aspeed: Register core clocks

2017-09-25 Thread Andrew Jeffery
On Thu, 2017-09-21 at 13:56 +0930, Joel Stanley wrote: > This registers the core clocks; those which are required to calculate > the rate of the timer periperhal so the system can load a clocksource > driver. >  > Signed-off-by: Joel Stanley > --- >  drivers/clk/clk-aspeed.c | 152 > +

<    1   2   3   4   5   6   7   8   9   >