Re: [PATCH 2/3] video: fbdev: mmp: add COMPILE_TEST support

2019-08-20 Thread Andrzej Hajda
On 27.06.2019 16:07, Bartlomiej Zolnierkiewicz wrote: > Add COMPILE_TEST support to mmp display subsystem for better compile > testing coverage. > > Signed-off-by: Bartlomiej Zolnierkiewicz Reviewed-by: Andrzej Hajda  -- Regards Andrzej > --- > drivers/video/fbdev/mmp/Kconfig|2 +-

[RFC PATCH 0/2] ELF: Alternate program property parser

2019-08-20 Thread Dave Martin
This series is an experimental reimplementation of ELF property parsing (see NT_GNU_PROPERTY_TYPE_0, [1]) for the ELF loader. This is intended for comparison / merging with [2] (or could replace it, if people think this approach is better). Either way, I'd like to get something in place so that

[RFC PATCH 1/2] ELF: UAPI and Kconfig additions for ELF program properties

2019-08-20 Thread Dave Martin
Pull the basic ELF definitions from Yu-Cheng Yu's series. Signed-off-by: Yu-cheng Yu Signed-off-by: Dave Martin --- This patch should be merged with the next patch. I kept it seprate for now to document where this code came from. --- fs/Kconfig.binfmt| 3 +++

[RFC PATCH 2/2] ELF: Add ELF program property parsing support

2019-08-20 Thread Dave Martin
ELF program properties will needed for detecting whether to enable optional architecture or ABI features for a new ELF process. For now, there are no generic properties that we care about, so do nothing unless CONFIG_ARCH_USE_GNU_PROPERTY=y. Otherwise, the presence of properties using the

Re: [PATCH] PCI: Add sysfs attribute for disabling PCIe link to downstream component

2019-08-20 Thread Mika Westerberg
On Mon, Aug 19, 2019 at 06:52:45PM -0500, Bjorn Helgaas wrote: > > Right, it looks like we need some sort of flag there anyway. > > Does this mean you're looking at getting rid of "has_secondary_link", > you think it's impossible, or you think it's not worth trying? I was of thinking that we

Re: [PATCH v2 0/2] Simplify mtty driver and mdev core

2019-08-20 Thread Christophe de Dinechin
Parav Pandit writes: > + Dave. > > Hi Jiri, Dave, Alex, Kirti, Cornelia, > > Please provide your feedback on it, how shall we proceed? > > Hence, I would like to discuss below options. > > Option-1: mdev index > Introduce an optional mdev index/handle as u32 during mdev create time. > User

Re: [RFC PATCH v4 8/9] printk-rb: new functionality to support printk

2019-08-20 Thread Sergey Senozhatsky
On (08/08/19 00:32), John Ogness wrote: [..] > +void prb_init(struct printk_ringbuffer *rb, char *data, int data_size_bits, > + struct prb_desc *descs, int desc_count_bits, > + struct wait_queue_head *waitq) > +{ > + struct dataring *dr = >dr; > + struct numlist *nl =

Re: [PATCH] x86/mm/pti: in pti_clone_pgtable() don't increase addr by PUD_SIZE

2019-08-20 Thread Peter Zijlstra
On Tue, Aug 20, 2019 at 12:51:28AM -0700, Song Liu wrote: > pti_clone_pgtable() increases addr by PUD_SIZE for pud_none(*pud) case. > This is not accurate because addr may not be PUD_SIZE aligned. > > In our x86_64 kernel, pti_clone_pgtable() fails to clone 7 PMDs because > of this issuse,

Re: [PATCH net-next v2 6/9] net: macsec: hardware offloading infrastructure

2019-08-20 Thread Antoine Tenart
Hi Sabrina, On Fri, Aug 16, 2019 at 03:29:59PM +0200, Sabrina Dubroca wrote: > 2019-08-13, 16:18:40 +, Igor Russkikh wrote: > > On 13.08.2019 16:17, Andrew Lunn wrote: > > > That could be a strong limitation in > > cases when user sees HW macsec offload is broken or work differently, and >

Re: [PATCH v3 0/6] perf: Replace MAX_NR_CPUS with dynamic alternatives

2019-08-20 Thread Peter Zijlstra
On Mon, Aug 19, 2019 at 03:22:41PM -0500, Kyle Meyer wrote: > The purpose of this patch series is to replace MAX_NR_CPUS with a dynamic > value > throughout perf wherever possible using nr_cpus_online, the number of CPUs > online during a record session, and cpu__max_cpu, the possible number of

Re: [PATCH v3 0/8] thunderbolt: Intel Ice Lake support

2019-08-20 Thread Mika Westerberg
On Mon, Aug 19, 2019 at 07:36:37PM +, mario.limoncie...@dell.com wrote: > After checking, this is not introduced by this series, it happens on v5.3-rc5 > as well. > It's a problem in pciehp that will be debugged separately. > > So the Thunderbolt portion of this works for me on ICL system. >

Re: [PATCH net-next v2 6/9] net: macsec: hardware offloading infrastructure

2019-08-20 Thread Antoine Tenart
Hi Andrew, On Tue, Aug 13, 2019 at 06:28:23PM +0200, Andrew Lunn wrote: > > 1) With current implementation it's impossible to install SW macsec engine > > onto > > the device which supports HW offload. That could be a strong limitation in > > cases when user sees HW macsec offload is broken or

[PATCH] ARM: dts: rockchip: remove rk3288 fennec board support

2019-08-20 Thread Kever Yang
Since there is no one using this board, remove it. Signed-off-by: Kever Yang --- arch/arm/boot/dts/rk3288-fennec.dts | 347 1 file changed, 347 deletions(-) delete mode 100644 arch/arm/boot/dts/rk3288-fennec.dts diff --git a/arch/arm/boot/dts/rk3288-fennec.dts

[PATCH bpf-next] xsk: proper socket state check in xsk_poll

2019-08-20 Thread Björn Töpel
From: Björn Töpel The poll() implementation for AF_XDP sockets did not perform the proper state checks, prior accessing the socket umem. This patch fixes that by performing a xsk_is_bound() check. Suggested-by: Hillf Danton Reported-by: syzbot+c82697e3043781e08...@syzkaller.appspotmail.com

[PATCH] 9p: avoid attaching writeback_fid on mmap with type PRIVATE

2019-08-20 Thread Chengguang Xu
Currently on mmap cache policy, we always attach writeback_fid whether mmap type is SHARED or PRIVATE. However, in the use case of kata-container which combines 9p(Guest OS) with overlayfs(Host OS), this behavior will trigger overlayfs' copy-up when excute command inside container. Signed-off-by:

RE: [PATCHv2 1/4] dt-bindings: PCI: designware: Remove the num-lanes from Required properties

2019-08-20 Thread Z.q. Hou
Hi Andrew, Thanks a lot for your review! Thanks, Zhiqiang > -Original Message- > From: Andrew Murray > Sent: 2019年8月20日 17:23 > To: Z.q. Hou > Cc: linux-...@vger.kernel.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org; gustavo.pimen...@synopsys.com; >

Re: [PATCH net-next v2 6/9] net: macsec: hardware offloading infrastructure

2019-08-20 Thread Antoine Tenart
Hi Sabrina, On Fri, Aug 16, 2019 at 03:25:00PM +0200, Sabrina Dubroca wrote: > 2019-08-13, 10:58:17 +0200, Antoine Tenart wrote: > > > > As for the need for xmit / handle_frame ops (for a MAC w/ MACsec > > offloading), I'd say the xmit / handle_frame ops of the real net device > > driver could

Re: [PATCH net-next v2 5/9] net: phy: add MACsec ops in phy_device

2019-08-20 Thread Antoine Tenart
Hi Florian, On Wed, Aug 14, 2019 at 04:15:03PM -0700, Florian Fainelli wrote: > On 8/8/19 7:05 AM, Antoine Tenart wrote: > > This patch adds a reference to MACsec ops in the phy_device, to allow > > PHYs to support offloading MACsec operations. The phydev lock will be > > held while calling those

Re: [PATCH 7/7] bug: Move WARN_ON() "cut here" into exception handler

2019-08-20 Thread Peter Zijlstra
On Mon, Aug 19, 2019 at 04:41:11PM -0700, Kees Cook wrote: > diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h > index 588dd59a5b72..da471fcc5487 100644 > --- a/include/asm-generic/bug.h > +++ b/include/asm-generic/bug.h > @@ -10,6 +10,7 @@ > #define BUGFLAG_WARNING

[PATCH RFC] smp: Add cpu unstopped mask for smp_send_stop/stop_other_cpus

2019-08-20 Thread Hsin-Yi Wang
In arm/arm64/x86, reboot IPI function uses CPU online mask to let primary CPU know how many secondary CPUs it has to wait for in smp_send_stop()/native_stop_other_cpus(). However, sometimes this would trigger unnecessary warnings, since interrupts and tasks might fall on a CPU that has already

Re: [RFC PATCH v4 4/9] printk-rb: initialize new descriptors as invalid

2019-08-20 Thread Sergey Senozhatsky
On (08/20/19 11:23), Petr Mladek wrote: > > is no risk of the descriptor unexpectedly being determined as > > valid due to dataring head overflowing/wrapping. > > Please, provide more details about the solved race. Is it because > some reader could have reference to an invalid (reused)

[GIT PULL 1/4] stm class: Fix a double free of stm_source_device

2019-08-20 Thread Alexander Shishkin
From: Ding Xiang In the error path of stm_source_register_device(), the kfree is unnecessary, as the put_device() before it ends up calling stm_source_device_release() to free stm_source_device, leading to a double free at the outer kfree() call. Remove it. Signed-off-by: Ding Xiang

Re: [PATCH 2/3] macb: Update compatibility string for SiFive FU540-C000

2019-08-20 Thread Nicolas.Ferre
On 20/08/2019 at 11:10, Andreas Schwab wrote: > External E-Mail > > > On Aug 13 2019, Paul Walmsley wrote: > >> Dave, Nicolas, >> >> On Mon, 22 Jul 2019, Yash Shah wrote: >> >>> On Fri, Jul 19, 2019 at 5:36 PM wrote: On 19/07/2019 at 13:10, Yash Shah wrote: > Update the

[GIT PULL 0/4] stm class/intel_th: Fixes for v5.3

2019-08-20 Thread Alexander Shishkin
5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/ash/stm.git tags/stm-intel_th-fixes-for-greg-20190820 for you to fetch changes up to 1114218bb49423c2ed6767f0f385f994da71c068: intel_th: pci: Add

[GIT PULL 4/4] intel_th: pci: Add Tiger Lake support

2019-08-20 Thread Alexander Shishkin
This adds support for the Trace Hub in Tiger Lake PCH. Signed-off-by: Alexander Shishkin --- drivers/hwtracing/intel_th/pci.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/hwtracing/intel_th/pci.c b/drivers/hwtracing/intel_th/pci.c index 5c4e4fbec936..91dfeba62485 100644 ---

[GIT PULL 3/4] intel_th: pci: Add support for another Lewisburg PCH

2019-08-20 Thread Alexander Shishkin
Add support for the Trace Hub in another Lewisburg PCH. Signed-off-by: Alexander Shishkin --- drivers/hwtracing/intel_th/pci.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/hwtracing/intel_th/pci.c b/drivers/hwtracing/intel_th/pci.c index c0378c3de9a4..5c4e4fbec936 100644 ---

[GIT PULL 2/4] intel_th: Use the correct style for SPDX License Identifier

2019-08-20 Thread Alexander Shishkin
From: Nishad Kamdar This patch corrects the SPDX License Identifier style in header files related to Drivers for Intel(R) Trace Hub controller. For C header files Documentation/process/license-rules.rst mandates C-like comments (opposed to C source files where C++ style should be used) Changes

RFC: is SIM connector switch a case for pinmux ?

2019-08-20 Thread Enrico Weigelt, metux IT consult
Hello folks, I'm currently thinking about what would be the best fit for the APU board's sim-switch functionality. The boards have two sim sockets, where only one can be active at a time (the lines are routed to mpcie slot), which can be controlled via a gpio line. Extconn doesn't seem to

Re: [PATCH v3] gpio: pl061: Fix the issue failed to register the ACPI interrtupion

2019-08-20 Thread Linus Walleij
On Tue, Aug 20, 2019 at 10:51 AM Andy Shevchenko wrote: > On Tue, Aug 20, 2019 at 10:12 AM Linus Walleij > wrote: > > On Mon, Aug 19, 2019 at 5:07 PM Andy Shevchenko > > wrote: > > Exactly what do you refer to when you want me to > > "re-do the approach for IRQ handling"? Do you mean > > this

[PATCH v2 1/2] dt-bindings: phy: intel-emmc-phy: Add YAML schema for LGM eMMC PHY

2019-08-20 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add a YAML schema to use the host controller driver with the eMMC PHY on Intel's Lightning Mountain SoC. Signed-off-by: Ramuthevar Vadivel Murugan --- changes in v2: As per Rob Herring review comments, the following updates - change GPL-2.0 -> (GPL-2.0-only

[PATCH v2 2/2] phy: intel-lgm-emmc: Add support for eMMC PHY

2019-08-20 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add support for eMMC PHY on Intel's Lightning Mountain SoC. Signed-off-by: Ramuthevar Vadivel Murugan --- changes in v2: - optimize IS_CALDONE() and IS_DLLRDY() macro - remove unneccessary comment - remove redundant assignment - add return the error ptr

[PATCH 2/2] ASoC: wm8904: implement input mode select as a mux

2019-08-20 Thread Michał Mirosław
Make '* Capture Mode' a mux. This makes DAPM know that in single-ended mode only inverting mux paths need to be enabled. Signed-off-by: Michał Mirosław --- sound/soc/codecs/wm8904.c | 52 +-- 1 file changed, 33 insertions(+), 19 deletions(-) diff --git

[PATCH 1/2] ASoC: wm8904: fix typo in DAPM kcontrol name

2019-08-20 Thread Michał Mirosław
Trivial fix for typo in "Capture Inverting Mux"es' name. Signed-off-by: Michał Mirosław --- sound/soc/codecs/wm8904.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index 5ebdd1d9afde..525e4ef654a1 100644 ---

[PATCH] mfd: sm501: Include the GPIO driver header

2019-08-20 Thread Linus Walleij
This driver creates a gpio chip so it needs to include the appropriate header explicitly rather than implicitly. Signed-off-by: Linus Walleij --- drivers/mfd/sm501.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c index 9b9b06d36cb1..dc46d62085cc

Re: [PATCH v5 0/3] Enable ACPI-defined peripherals on i2c-piix4 SMBus

2019-08-20 Thread Enrico Weigelt, metux IT consult
On 19.08.19 20:53, Wolfram Sang wrote: Just so I get this correct: This is all about instantiating the devices sitting on the SMBus, Yes, I'm struggling to find out which devices are connected to the smbus, in case there're some already inside the SoC (instead of just entirely board

Re: [PATCH 1/2] ASoC: wm8904: fix typo in DAPM kcontrol name

2019-08-20 Thread Charles Keepax
On Tue, Aug 20, 2019 at 12:33:29PM +0200, Michał Mirosław wrote: > Trivial fix for typo in "Capture Inverting Mux"es' name. > > Signed-off-by: Michał Mirosław > --- Acked-by: Charles Keepax Thanks, Charles

Re: PROBLEM: 5.3.0-rc* causes iwlwifi failure

2019-08-20 Thread Luciano Coelho
On Sat, 2019-08-17 at 17:44 -0400, Stuart Little wrote: > After some private coaching from Serge Belyshev on git-revert I can > confirm that reverting that commit atop the current tree resolves the > issue (the wifi card scans for and finds networks just fine, no dmesg > errors reported, etc.).

Re: [PATCH 00/14] per memcg lru_lock

2019-08-20 Thread Michal Hocko
On Tue 20-08-19 17:48:23, Alex Shi wrote: > This patchset move lru_lock into lruvec, give a lru_lock for each of > lruvec, thus bring a lru_lock for each of memcg. > > Per memcg lru_lock would ease the lru_lock contention a lot in > this patch series. > > In some data center, containers are used

Re: [PATCH 2/2] ASoC: wm8904: implement input mode select as a mux

2019-08-20 Thread Charles Keepax
On Tue, Aug 20, 2019 at 12:33:33PM +0200, Michał Mirosław wrote: > Make '* Capture Mode' a mux. This makes DAPM know that in single-ended > mode only inverting mux paths need to be enabled. > > Signed-off-by: Michał Mirosław > --- > +static const struct snd_kcontrol_new rin_mode = > +

Re: [PATCH v5 0/3] Enable ACPI-defined peripherals on i2c-piix4 SMBus

2019-08-20 Thread Wolfram Sang
> Yes, I'm struggling to find out which devices are connected to the > smbus, in case there're some already inside the SoC (instead of just > entirely board specific). I see. > > > but you are okay with Jean's patches? Or is this > > discussion affecting patch 3? (/me knows not much about

Re: [v5 PATCH 1/4] mm: thp: extract split_queue_* into a struct

2019-08-20 Thread Kirill Tkhai
On 07.08.2019 05:17, Yang Shi wrote: > Put split_queue, split_queue_lock and split_queue_len into a struct in > order to reduce code duplication when we convert deferred_split to memcg > aware in the later patches. > > Suggested-by: "Kirill A . Shutemov" > Cc: Kirill Tkhai > Cc: Johannes Weiner

Re: [v5 PATCH 2/4] mm: move mem_cgroup_uncharge out of __page_cache_release()

2019-08-20 Thread Kirill Tkhai
On 07.08.2019 05:17, Yang Shi wrote: > The later patch would make THP deferred split shrinker memcg aware, but > it needs page->mem_cgroup information in THP destructor, which is called > after mem_cgroup_uncharge() now. > > So, move mem_cgroup_uncharge() from __page_cache_release() to compound >

[PATCH] sched/fair: Add missing unthrottle_cfs_rq()

2019-08-20 Thread Valentin Schneider
Turns out a cfs_rq->runtime_remaining can become positive in assign_cfs_rq_runtime(), but this codepath has no call to unthrottle_cfs_rq(). This can leave us in a situation where we have a throttled cfs_rq with positive ->runtime_remaining, which breaks the math in distribute_cfs_runtime(): this

Re: [kbuild-all] [PATCH] fix odd_ptr_err.cocci warnings

2019-08-20 Thread Peter Ujfalusi
Hi Chen, On 20/08/2019 11.41, Rong Chen wrote: > Hi Peter, > > We have updated to only send the reports to you, please see > https://github.com/intel/lkp-tests/blob/master/repo/linux/omap-audio Thank you very much! > > Best Regards, > Rong Chen > > On 8/9/19 9:21 PM, Julia Lawall wrote: >>

[PATCH 2/2] drivers: input: mouse: alps: drop unneeded likely() call around IS_ERR()

2019-08-20 Thread Enrico Weigelt, metux IT consult
From: Enrico Weigelt IS_ERR() already calls unlikely(), so this extra unlikely() call around IS_ERR() is not needed. Signed-off-by: Enrico Weigelt --- drivers/input/mouse/alps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/mouse/alps.c

[PATCH 1/2] fs: ntfs: drop unneeded likely() call around IS_ERR()

2019-08-20 Thread Enrico Weigelt, metux IT consult
From: Enrico Weigelt IS_ERR() already calls unlikely(), so this extra likely() call around the !IS_ERR() is not needed. Signed-off-by: Enrico Weigelt --- fs/ntfs/mft.c | 8 fs/ntfs/namei.c | 2 +- fs/ntfs/runlist.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff

Re: [PATCH 7/7] bug: Move WARN_ON() "cut here" into exception handler

2019-08-20 Thread Christophe Leroy
Le 20/08/2019 à 12:06, Peter Zijlstra a écrit : On Mon, Aug 19, 2019 at 04:41:11PM -0700, Kees Cook wrote: diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 588dd59a5b72..da471fcc5487 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h @@ -10,6

Re: [v5 PATCH 3/4] mm: shrinker: make shrinker not depend on memcg kmem

2019-08-20 Thread Kirill Tkhai
On 07.08.2019 05:17, Yang Shi wrote: > Currently shrinker is just allocated and can work when memcg kmem is > enabled. But, THP deferred split shrinker is not slab shrinker, it > doesn't make too much sense to have such shrinker depend on memcg kmem. > It should be able to reclaim THP even though

[PATCH v2 2/2] ASoC: wm8904: implement input mode select as a mux

2019-08-20 Thread Michał Mirosław
Make '* Capture Mode' a mux. This makes DAPM know that in single-ended mode only inverting mux paths need to be enabled. Signed-off-by: Michał Mirosław Acked-by: Charles Keepax --- v2: fixed 'right' to be 'Right' --- sound/soc/codecs/wm8904.c | 52 +-- 1

[PATCH v2 1/2] ASoC: wm8904: fix typo in DAPM kcontrol name

2019-08-20 Thread Michał Mirosław
Trivial fix for typo in "Capture Inverting Mux"es' name. Signed-off-by: Michał Mirosław Acked-by: Charles Keepax --- v2: no changes --- sound/soc/codecs/wm8904.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index

Re: [PATCH] cpustat: print watchdog time and statistics of soft and hard interrupts in soft lockup scenes

2019-08-20 Thread Peter Zijlstra
On Mon, Aug 19, 2019 at 03:12:24PM +0800, c00423981 wrote: > +static u64 cpustat_curr_cputime(int cpu, int index) > +{ > + u64 time; > + > + if (index == CPUTIME_IDLE) > + time = get_idle_time(cpu); > + else if (index == CPUTIME_IOWAIT) > + time =

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-08-20 Thread Vinod Koul
On 19-08-19, 16:56, Jon Hunter wrote: > >>> On this, I am inclined to think that dma driver should not be > >>> involved. > >>> The ADMAIF needs this configuration and we should take the path of > >>> dma_router for this piece and add features like this to it > >> > >> Hi

Re: [PATCH] btrfs: fix allocation of bitmap pages.

2019-08-20 Thread Vlastimil Babka
On 8/20/19 4:30 AM, Christoph Hellwig wrote: > On Mon, Aug 19, 2019 at 07:46:00PM +0200, David Sterba wrote: >> Another thing that is lost is the slub debugging support for all >> architectures, because get_zeroed_pages lacking the red zones and sanity >> checks. >> >> I find working with raw

Re: [v5 PATCH 4/4] mm: thp: make deferred split shrinker memcg aware

2019-08-20 Thread Kirill Tkhai
On 07.08.2019 05:17, Yang Shi wrote: > Currently THP deferred split shrinker is not memcg aware, this may cause > premature OOM with some configuration. For example the below test would > run into premature OOM easily: > > $ cgcreate -g memory:thp > $ echo 4G >

Re: [PATCH v8 2/3] fdt: add support for rng-seed

2019-08-20 Thread Ard Biesheuvel
On Tue, 20 Aug 2019 at 10:43, Hsin-Yi Wang wrote: > > Hi Ted, > > Thanks for raising this question. > > For UEFI based system, they have a config table that carries rng seed > and can be passed to device randomness. However, they also use > add_device_randomness (not sure if it's the same reason

Re: [PATCH] input: misc: soc_button_array: use platform_device_register_resndata()

2019-08-20 Thread Enrico Weigelt, metux IT consult
On 29.07.19 19:23, Dmitry Torokhov wrote: Hi, I wonder if we should pass >dev instead of NULL here to form proper device hierarchy, now that we have this option. good point, thanks, fixed in v2. + "gpio-keys", + PLATFORM_DEVID_AUTO, + NULL, +

[PATCH v2] input: misc: soc_button_array: use platform_device_register_resndata()

2019-08-20 Thread Enrico Weigelt, metux IT consult
From: Enrico Weigelt The registration of gpio-keys device can be written much shorter by using the platform_device_register_resndata() helper. v2: * pass >dev to platform_device_register_resndata() * fixed errval on failed platform_device_register_resndata() Signed-off-by: Enrico

Re: [PATCH] x86/mm/pti: in pti_clone_pgtable() don't increase addr by PUD_SIZE

2019-08-20 Thread Thomas Gleixner
On Tue, 20 Aug 2019, Peter Zijlstra wrote: > What that code wants to do is skip to the end of the pud, a pmd_size > increase will not do that. And right below this, there's a second > instance of this exact pattern. > > Did I get the below right? > > --- > diff --git a/arch/x86/mm/pti.c

Re: [PATCH 2/2] drivers: input: mouse: alps: drop unneeded likely() call around IS_ERR()

2019-08-20 Thread Pali Rohár
On Tuesday 20 August 2019 12:56:12 Enrico Weigelt, metux IT consult wrote: > From: Enrico Weigelt > > IS_ERR() already calls unlikely(), so this extra unlikely() call > around IS_ERR() is not needed. > > Signed-off-by: Enrico Weigelt > --- > drivers/input/mouse/alps.c | 2 +- > 1 file

Re: [PATCH 06/11] x86/dma: Get rid of iommu_pass_through

2019-08-20 Thread Borislav Petkov
On Mon, Aug 19, 2019 at 03:22:51PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > This variable has no users anymore. Remove it and tell the > IOMMU code via its new functions about requested DMA modes. > > Signed-off-by: Joerg Roedel > --- > arch/x86/include/asm/iommu.h | 1 - >

Re: [PATCH v4 04/10] mailbox: sunxi-msgbox: Add a new mailbox driver

2019-08-20 Thread Ondřej Jirman
Hi Samuel, On Mon, Aug 19, 2019 at 10:23:05PM -0500, Samuel Holland wrote: > Allwinner sun8i, sun9i, and sun50i SoCs contain a hardware message box > used for communication between the ARM CPUs and the ARISC management > coprocessor. The hardware contains 8 unidirectional 4-message FIFOs. > >

[PATCH V1]Perf: Return error code for perf_session__new function on failure

2019-08-20 Thread Mamatha Inamdar
This Patch is to return error code of perf_new_session function on failure instead of NULL -- Test Results: Before Fix: $ perf c2c report -input failed to open nput: No such file or directory $ echo $? 0 --

[PATCH v7 0/5] media: Allwinner A10 CSI support

2019-08-20 Thread Maxime Ripard
From: Maxime Ripard Hi, Here is a series introducing the support for the A10 (and SoCs of the same generation) CMOS Sensor Interface (called CSI, not to be confused with MIPI-CSI, which isn't support by that IP). That interface is pretty straightforward, but the driver has a few issues that I

[PATCH v7 3/5] media: sunxi: Add A10 CSI driver

2019-08-20 Thread Maxime Ripard
From: Maxime Ripard The older CSI drivers have camera capture interface different from the one in the newer ones. This IP is pretty simple. Some variants (one controller out of two instances on some SoCs) have an ISP embedded, but there's no code that make use of it, so we ignored that part for

[PATCH v7 5/5] DO NOT MERGE: ARM: dts: bananapi: Add Camera support

2019-08-20 Thread Maxime Ripard
From: Maxime Ripard Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun7i-a20-bananapi.dts | 87 +- 1 file changed, 87 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-bananapi.dts b/arch/arm/boot/dts/sun7i-a20-bananapi.dts index c5730b30a15d..d3f23ce041b2

[PATCH v7 4/5] ARM: dts: sun7i: Add CSI0 controller

2019-08-20 Thread Maxime Ripard
From: Maxime Ripard The CSI controller embedded in the A20 can be supported by our new driver. Let's add it to our DT. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/sun7i-a20.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git

[PATCH v7 1/5] dt-bindings: media: Add Allwinner A10 CSI binding

2019-08-20 Thread Maxime Ripard
From: Maxime Ripard The Allwinner A10 CMOS Sensor Interface is a camera capture interface also used in later (A10s, A13, A20, R8 and GR8) SoCs. On some SoCs, like the A10, there's multiple instances of that controller, with one instance supporting more channels and having an ISP. Reviewed-by:

[PATCH v7 2/5] media: sunxi: Refactor the Makefile and Kconfig

2019-08-20 Thread Maxime Ripard
From: Maxime Ripard The Makefile and Kconfig for the sun6i CSI driver are included in the main Makefile / KConfig file. Since we're going to add a new CSI driver for an older chip, and the Cedrus driver eventually, it makes more sense to put those in our directory. Signed-off-by: Maxime Ripard

Re: [PATCH RFC] smp: Add cpu unstopped mask for smp_send_stop/stop_other_cpus

2019-08-20 Thread Thomas Gleixner
On Tue, 20 Aug 2019, Hsin-Yi Wang wrote: > In arm/arm64/x86, reboot IPI function uses CPU online mask to let > primary CPU know how many secondary CPUs it has to wait for in > smp_send_stop()/native_stop_other_cpus(). > > However, sometimes this would trigger unnecessary warnings, since >

RE: [PATCH v2 0/2] Simplify mtty driver and mdev core

2019-08-20 Thread Parav Pandit
> -Original Message- > From: Christophe de Dinechin > Subject: Re: [PATCH v2 0/2] Simplify mtty driver and mdev core > > > Parav Pandit writes: > > > + Dave. > > > > Hi Jiri, Dave, Alex, Kirti, Cornelia, > > > > Please provide your feedback on it, how shall we proceed? > > > >

Re: [PATCH 2/4] x86/vmware: Add a header file for hypercall definitions

2019-08-20 Thread Peter Zijlstra
On Sun, Aug 18, 2019 at 04:33:14PM +0200, Thomas Hellström (VMware) wrote: > +#define VMWARE_HYPERCALL \ > + ALTERNATIVE_2(".byte 0xed", \ > + ".byte 0x0f, 0x01, 0xc1", X86_FEATURE_VMW_VMCALL, \ > + ".byte 0x0f, 0x01, 0xd9", X86_FEATURE_VMW_VMMCALL) For

Re: [PATCH v3 0/8] thunderbolt: Intel Ice Lake support

2019-08-20 Thread Lukas Wunner
On Mon, Aug 19, 2019 at 04:29:35PM +, mario.limoncie...@dell.com wrote: > I've run into a problem when using > a WD19TB that after unplugging it will cause the following to spew in dmesg: > > [ 2198.017003] > [ 2198.017005] WARNING: possible

Re: [PATCH] MAINTAINERS: dw axi dmac: Fix typo in a path

2019-08-20 Thread Vinod Koul
On 13-08-19, 09:00, Denis Efremov wrote: > Fix typo (s/dwi-/dw-/) in the directory path. Applied, thanks -- ~Vinod

Re: [PATCH v2] dmaengine: mv_xor_v2: Fix -Wshift-negative-value

2019-08-20 Thread Vinod Koul
On 13-08-19, 10:34, Nathan Huckleberry wrote: > Clang produces the following warning > > drivers/dma/mv_xor_v2.c:264:40: warning: shifting a negative signed value > is undefined [-Wshift-negative-value] > reg &= (~MV_XOR_V2_DMA_IMSG_THRD_MASK << >

[PATCH] media: atmel: atmel-isi: fix timeout value for stop streaming

2019-08-20 Thread Eugen.Hristev
From: Alexandre Kroupski In case of sensor malfunction, stop streaming timeout takes much longer than expected. This is due to conversion of time to jiffies: milliseconds multiplied with HZ (ticks/second) gives out a value of jiffies with 10^3 greater. We need to also divide by 10^3 to obtain

Re: [Patch v2 1/1] genirq: Properly pair kobject_del with kobject_add

2019-08-20 Thread Thomas Gleixner
On Tue, 20 Aug 2019, Michael Kelley wrote: > If alloc_descs fails before irq_sysfs_init has run, free_desc in the > cleanup path will call kobject_del even though the kobject has not > been added with kobject_add. Fix this by adding a new irq_sysfs_del > function (within the #ifdef CONFIG_SYSFS)

Re: [PATCH v2 linux-next 0/2] change mux_configure32() to static

2019-08-20 Thread Vinod Koul
On 14-08-19, 15:21, Mao Wenan wrote: > First patch is to make mux_configure32() static to avoid sparse warning, > the second patch is to chage alignment of two functions. The subsystem name is "dmaengine" please use that in future, I have fixed that and applied > v2: change subject from

Re: [GIT PULL 3/4] intel_th: pci: Add support for another Lewisburg PCH

2019-08-20 Thread Greg Kroah-Hartman
On Tue, Aug 20, 2019 at 01:16:52PM +0300, Alexander Shishkin wrote: > Add support for the Trace Hub in another Lewisburg PCH. > > Signed-off-by: Alexander Shishkin > --- > drivers/hwtracing/intel_th/pci.c | 5 + > 1 file changed, 5 insertions(+) same here, ok for stable? thanks, greg k-h

Re: [GIT PULL 4/4] intel_th: pci: Add Tiger Lake support

2019-08-20 Thread Greg Kroah-Hartman
On Tue, Aug 20, 2019 at 01:16:53PM +0300, Alexander Shishkin wrote: > This adds support for the Trace Hub in Tiger Lake PCH. > > Signed-off-by: Alexander Shishkin > --- > drivers/hwtracing/intel_th/pci.c | 5 + > 1 file changed, 5 insertions(+) Why are new ids not ok for stable? thanks,

Re: [PATCH v2] dmaengine: ti: dma-crossbar: Fix a memory leak bug

2019-08-20 Thread Vinod Koul
On 16-08-19, 01:48, Wenwen Wang wrote: > In ti_dra7_xbar_probe(), 'rsv_events' is allocated through kcalloc(). Then > of_property_read_u32_array() is invoked to search for the property. > However, if this process fails, 'rsv_events' is not deallocated, leading to > a memory leak bug. To fix this

Re: [PATCH] dmaengine: ti: omap-dma: Add cleanup in omap_dma_probe()

2019-08-20 Thread Vinod Koul
On 16-08-19, 01:56, Wenwen Wang wrote: > If devm_request_irq() fails to disable all interrupts, no cleanup is > performed before retuning the error. To fix this issue, invoke > omap_dma_free() to do the cleanup. Applied, thanks -- ~Vinod

Re: [PATCH v7 1/5] dt-bindings: media: Add Allwinner A10 CSI binding

2019-08-20 Thread Sakari Ailus
Hi Maxime, On Tue, Aug 20, 2019 at 01:24:32PM +0200, Maxime Ripard wrote: > From: Maxime Ripard > > The Allwinner A10 CMOS Sensor Interface is a camera capture interface also > used in later (A10s, A13, A20, R8 and GR8) SoCs. > > On some SoCs, like the A10, there's multiple instances of that

Re: [PATCH v2 linux-next 0/2] change mux_configure32() to static

2019-08-20 Thread maowenan
On 2019/8/20 19:41, Vinod Koul wrote: > On 14-08-19, 15:21, Mao Wenan wrote: >> First patch is to make mux_configure32() static to avoid sparse warning, >> the second patch is to chage alignment of two functions. > > The subsystem name is "dmaengine" please use that in future, I have > fixed

[PATCH] dt-bindings: spi: Fix the number of CS lines documented as an example

2019-08-20 Thread Manivannan Sadhasivam
The number of CS lines is mentioned as 2 in the spi-controller binding but however in the example, 4 cs-gpios are used. Hence fix that to mention 4. Signed-off-by: Manivannan Sadhasivam --- Documentation/devicetree/bindings/spi/spi-controller.yaml | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] 9p: avoid attaching writeback_fid on mmap with type PRIVATE

2019-08-20 Thread Dominique Martinet
Chengguang Xu wrote on Tue, Aug 20, 2019: > Currently on mmap cache policy, we always attach writeback_fid > whether mmap type is SHARED or PRIVATE. However, in the use case > of kata-container which combines 9p(Guest OS) with overlayfs(Host OS), > this behavior will trigger overlayfs' copy-up

[PATCH v6 3/7] nfc: pn533: Add dev_up/dev_down hooks to phy_ops

2019-08-20 Thread Lars Poeschel
This adds hooks for dev_up and dev_down to the phy_ops. They are optional. The idea is to inform the phy driver when the nfc chip is really going to be used. When it is not used, the phy driver can suspend it's interface to the nfc chip to save some power. The nfc chip is considered not in use

[PATCH v6 4/7] nfc: pn533: Split pn533 init & nfc_register

2019-08-20 Thread Lars Poeschel
There is a problem in the initialisation and setup of the pn533: It registers with nfc too early. It could happen, that it finished registering with nfc and someone starts using it. But setup of the pn533 is not yet finished. Bad or at least unintended things could happen. So I split out nfc

[PATCH v6 6/7] nfc: pn533: Add autopoll capability

2019-08-20 Thread Lars Poeschel
pn532 devices support an autopoll command, that lets the chip automatically poll for selected nfc technologies instead of manually looping through every single nfc technology the user is interested in. This is faster and less cpu and bus intensive than manually polling. This adds this autopoll

[PATCH v6 1/7] nfc: pn533: i2c: "pn532" as dt compatible string

2019-08-20 Thread Lars Poeschel
It is favourable to have one unified compatible string for devices that have multiple interfaces. So this adds simply "pn532" as the devicetree binding compatible string and makes a note that the old ones are deprecated. Cc: Johan Hovold Signed-off-by: Lars Poeschel --- Changes in v6: - Rebased

[PATCH v6 2/7] nfc: pn532_uart: Add NXP PN532 to devicetree docs

2019-08-20 Thread Lars Poeschel
Add a simple binding doc for the pn532. Reviewed-by: Rob Herring Cc: Johan Hovold Signed-off-by: Lars Poeschel --- Changes in v6: - Rebased the patch series on v5.3-rc5 - Picked up Rob's Reviewed-By Changes in v4: - Add documentation about reg property in case of i2c Changes in v3: -

[PATCH v6 7/7] nfc: pn532_uart: Make use of pn532 autopoll

2019-08-20 Thread Lars Poeschel
This switches the pn532 UART phy driver from manually polling to the new autopoll mechanism. Cc: Johan Hovold Signed-off-by: Lars Poeschel --- Changes in v6: - Rebased the patch series on v5.3-rc5 drivers/nfc/pn533/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v6 5/7] nfc: pn533: add UART phy driver

2019-08-20 Thread Lars Poeschel
This adds the UART phy interface for the pn533 driver. The pn533 driver can be used through UART interface this way. It is implemented as a serdev device. Cc: Johan Hovold Signed-off-by: Lars Poeschel --- Changes in v6: - Rebased the patch series on v5.3-rc5 Changes in v5: - Use the splitted

Re: [RFC PATCH v2 00/19] RDMA/FS DAX truncate proposal V1,000,002 ;-)

2019-08-20 Thread Jason Gunthorpe
On Tue, Aug 20, 2019 at 11:12:10AM +1000, Dave Chinner wrote: > On Mon, Aug 19, 2019 at 09:38:41AM -0300, Jason Gunthorpe wrote: > > On Mon, Aug 19, 2019 at 07:24:09PM +1000, Dave Chinner wrote: > > > > > So that leaves just the normal close() syscall exit case, where the > > > application has

Re: [PATCH] Input: add support for polling to input devices

2019-08-20 Thread Michal Vokáč
On 13. 08. 19 16:04, Benjamin Tissoires wrote: On Mon, Aug 12, 2019 at 7:11 PM Dmitry Torokhov wrote: Hi Benjamin, On Mon, Aug 12, 2019 at 06:50:38PM +0200, Benjamin Tissoires wrote: Hi Dmitry, On Fri, Aug 9, 2019 at 7:35 PM Dmitry Torokhov wrote: Separating "normal" and "polled" input

Re: [PATCH v5] perf diff: Report noisy for cycles diff

2019-08-20 Thread Jin, Yao
On 8/20/2019 4:34 PM, Jiri Olsa wrote: On Fri, Aug 16, 2019 at 10:13:43AM +0800, Jin Yao wrote: SNIP static void hpp__entry_unpair(struct hist_entry *he, int idx, char *buf, size_t size) { @@ -1662,6 +1794,10 @@ static void data__hpp_register(struct data__file *d, int idx)

Re: [PATCH] dt-bindings: spi: Fix the number of CS lines documented as an example

2019-08-20 Thread Mark Brown
On Tue, Aug 20, 2019 at 05:20:00PM +0530, Manivannan Sadhasivam wrote: > The number of CS lines is mentioned as 2 in the spi-controller binding > but however in the example, 4 cs-gpios are used. Hence fix that to > mention 4. Please use subject lines matching the style for the subsystem. This

Re: [PATCH v5] ata/pata_buddha: Probe via modalias instead of initcall

2019-08-20 Thread Bartlomiej Zolnierkiewicz
Hi Max, Few more review comments below. On 8/12/19 6:48 PM, Max Staudt wrote: > Up until now, the pata_buddha driver would only check for cards on > initcall time. Now, the kernel will call its probe function as soon > as a compatible card is detected. > > v5: Remove module_exit(): There's no

Re: [PATCH -rcu dev 1/3] rcu/tree: tick_dep_set/clear_cpu should accept bits instead of masks

2019-08-20 Thread Frederic Weisbecker
On Mon, Aug 19, 2019 at 09:44:20AM -0700, Paul E. McKenney wrote: > On Mon, Aug 19, 2019 at 06:32:27PM +0200, Frederic Weisbecker wrote: > > > But would the following patch make sense? This would not help for (say) > > > use of TICK_MASK_BIT_POSIX_TIMER instead of TICK_DEP_BIT_POSIX_TIMER, but >

[PATCH 1/2] arm64: dts: meson: g12a: audio clock controller provides resets

2019-08-20 Thread Jerome Brunet
The clock controller dedicated to audio clocks also provides reset lines on the g12 SoC family Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi

[PATCH 0/2] arm64: dts: meson: g12a: add tdm resets

2019-08-20 Thread Jerome Brunet
This patchset adds the dedicated reset of the tdm formatters which have been added on the g12a SoC family. Using these help with the channel mapping when the formatter uses more than 1 i2s lane. Kevin, please note that to build, this patchset depends on the new reset bindings of the audio clock

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