[PATCH] drm/etnaviv: fix runtime pm imbalance on error

2020-05-20 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 3 +++ 1 file changed, 3

Re: [PATCH] of: drop a reference on error in __of_attach_node_sysfs()

2020-05-20 Thread Michael Ellerman
Dan Carpenter writes: > We add a new of_node_get() to this function, but we should drop the > reference if kobject_add(). ^ fails? > > Fixes: 5b2c2f5a0ea3 ("of: overlay: add missing of_node_get() in > __of_attach_node_sysfs") >

回复: [PATCH] arm64: Fix PTRACE_SYSEMU semantics

2020-05-20 Thread Bin Lu
Tested-by: Bin Lu I have just tested all gVisor syscall test cases with ptrace(Regs, FPRegs, TLS) on Arm64 platform. The test results are the same as before there was no patch. My idea is that this kernel patch has no bad effects on gVisor. Linux Kernel version: 5.7.0-rc6+ gVisor version:

[PATCH] drm/etnaviv: fix memory leak when mapping prime imported buffers

2020-05-20 Thread Martin Fuzzey
When using mmap() on a prime imported buffer allocated by a different driver (such as imx-drm) the later munmap() does not correctly decrement the refcount of the original enaviv_gem_object, leading to a leak. Signed-off-by: Martin Fuzzey Cc: sta...@vger.kernel.org ---

Re: linux-next: Tree for May 19 (block/rnbd/)

2020-05-20 Thread Danil Kipnis
Hi Randy, On Tue, May 19, 2020 at 8:59 PM Randy Dunlap wrote: > > On 5/19/20 11:03 AM, Stephen Rothwell wrote: > > Hi all, > > > > News: there will be no linux-next release tomorrow. > > > > Changes since 20200518: > > > > seen on i386: > > when CONFIG_MODULES is not set/enabled: > >

Re: [PATCH v2 3/4] clk / soc: mediatek: Bind clock and gpu driver for mt2701

2020-05-20 Thread Stephen Boyd
Quoting Enric Balletbo i Serra (2020-04-01 13:17:35) > Now that the mmsys driver is the top-level entry point for the > multimedia subsystem, we could bind the clock and the gpu driver on > those devices that is expected to work, so the drm driver is > intantiated by the mmsys driver and display,

Re: [PATCH v2 2/4] clk / soc: mediatek: Bind clock and gpu driver for mt2712

2020-05-20 Thread Stephen Boyd
Quoting Enric Balletbo i Serra (2020-04-01 13:17:34) > Now that the mmsys driver is the top-level entry point for the > multimedia subsystem, we could bind the clock and the gpu driver on > those devices that is expected to work, so the drm driver is > intantiated by the mmsys driver and display,

Re: [PATCH 2/8] radix-tree: Use local_lock for protection

2020-05-20 Thread Sebastian Andrzej Siewior
On 2020-05-19 19:05:16 [-0700], Matthew Wilcox wrote: > > https://lore.kernel.org/r/20200519201912.1564477-1-bige...@linutronix.de > > > > With lore and b4, it should now be easy to get full patch series. > > Thats asking too much of the random people cc'd on random patches. Well, other

Re: [PATCH glibc 2/3] glibc: sched_getcpu(): use rseq cpu_id TLS on Linux (v7)

2020-05-20 Thread Florian Weimer
* Mathieu Desnoyers via Libc-alpha: > diff --git a/sysdeps/unix/sysv/linux/sched_getcpu.c > b/sysdeps/unix/sysv/linux/sched_getcpu.c > index c019cfb3cf..2269c4f2bd 100644 > --- a/sysdeps/unix/sysv/linux/sched_getcpu.c > +++ b/sysdeps/unix/sysv/linux/sched_getcpu.c > @@ -18,10 +18,15 @@ >

Re: [PATCH 1/4] clk/soc: mediatek: mt8183: Bind clock driver from platform device

2020-05-20 Thread Stephen Boyd
Quoting matthias@kernel.org (2020-05-18 04:31:53) > From: Matthias Brugger > > The mmsys driver is now the top level entry point for the multimedia > system (mmsys), we bind the clock driver by creating a platform device. > We also bind the MediaTek DRM driver which is not yet implement and

Re: [PATCH 2/4] clk/soc: mediatek: mt6797: Bind clock driver from platform device

2020-05-20 Thread Stephen Boyd
Quoting matthias@kernel.org (2020-05-18 04:31:54) > From: Matthias Brugger > > The mmsys driver is now the top level entry point for the multimedia > system (mmsys), we bind the clock driver by creating a platform device. > We also bind the MediaTek DRM driver which is not yet implement and

Re: [PATCH] media: staging: tegra-vde: fix runtime pm imbalance on error

2020-05-20 Thread Dmitry Osipenko
20.05.2020 12:51, Dinghao Liu пишет: > pm_runtime_get_sync() increments the runtime PM usage counter even > it returns an error code. Thus a pairing decrement is needed on > the error handling path to keep the counter balanced. > > Signed-off-by: Dinghao Liu > --- >

Re: [PATCH v4 2/4] kasan: record and print the free track

2020-05-20 Thread Walter Wu
On Wed, 2020-05-20 at 11:44 +0200, 'Dmitry Vyukov' via kasan-dev wrote: > On Wed, May 20, 2020 at 11:17 AM Walter Wu wrote: > > > > On Wed, 2020-05-20 at 13:14 +0800, Walter Wu wrote: > > > > > > On Wed, May 20, 2020 at 6:03 AM Walter Wu > > > > > > wrote: > > > > > > > > > > > > > > > On Tue,

[PATCH] drm/nouveau/debugfs: fix runtime pm imbalance on error

2020-05-20 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/gpu/drm/nouveau/nouveau_debugfs.c | 5 - 1 file changed, 4

Re: [PATCH 3/4] clk/soc: mediatek: mt6779: Bind clock driver from platform device

2020-05-20 Thread Stephen Boyd
Quoting matthias@kernel.org (2020-05-18 04:31:55) > From: Matthias Brugger > > The mmsys driver is now the top level entry point for the multimedia > system (mmsys), we bind the clock driver by creating a platform device. > We also bind the MediaTek DRM driver which is not yet implement and

This all seems to be happening, maybe I don´t need to do a distro?

2020-05-20 Thread Ywe Cærlyn
I read this today, https://www.phoronix.com/scan.php?page=news_item=Microsoft-DX12-WSL2 Microsoft Announces Direct3D 12 for Linux / WSL2. Games can pull a lot of people, and maybe that is what one needs as the final push, to make an Ubuntu Karmic Koala distro work. + Seam + 0.33ms latency

[PATCH 2/2] xhci: Poll for U0 after disabling USB2 LPM

2020-05-20 Thread Kai-Heng Feng
USB2 devices with LPM enabled may interrupt the system suspend: [ 932.510475] usb 1-7: usb suspend, wakeup 0 [ 932.510549] hub 1-0:1.0: hub_suspend [ 932.510581] usb usb1: bus suspend, wakeup 0 [ 932.510590] xhci_hcd :00:14.0: port 9 not suspended [ 932.510593] xhci_hcd :00:14.0: port

[PATCH 1/2] xhci: Return if xHCI doesn't support LPM

2020-05-20 Thread Kai-Heng Feng
Just return if xHCI is quirked to disable LPM. We can save some time from reading registers and doing spinlocks. Signed-off-by: Kai-Heng Feng --- drivers/usb/host/xhci.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c

Re: [RESEND PATCH v7 4/5] ndctl/papr_scm,uapi: Add support for PAPR nvdimm specific methods

2020-05-20 Thread Vaibhav Jain
Thanks for reviewing this patch Aneesh. "Aneesh Kumar K.V" writes: > Vaibhav Jain writes: > > > > + >> +/* Papr-scm-header + payload expected with ND_CMD_CALL ioctl from libnvdimm >> */ >> +struct nd_pdsm_cmd_pkg { >> +struct nd_cmd_pkg hdr; /* Package header containing sub-cmd */

Re: [PATCH 3/4] clk/soc: mediatek: mt6779: Bind clock driver from platform device

2020-05-20 Thread Stephen Boyd
Quoting matthias@kernel.org (2020-05-18 04:31:55) > From: Matthias Brugger > > The mmsys driver is now the top level entry point for the multimedia > system (mmsys), we bind the clock driver by creating a platform device. > We also bind the MediaTek DRM driver which is not yet implement and

Re: [PATCH 2/8] radix-tree: Use local_lock for protection

2020-05-20 Thread Peter Zijlstra
On Tue, May 19, 2020 at 10:19:06PM +0200, Sebastian Andrzej Siewior wrote: > @@ -64,6 +64,7 @@ struct radix_tree_preload { > struct radix_tree_node *nodes; > }; > static DEFINE_PER_CPU(struct radix_tree_preload, radix_tree_preloads) = { 0, > }; > +static

linux-next: Signed-off-by missing for commit in the imx-mxs tree

2020-05-20 Thread Stephen Rothwell
Hi all, Commit 089795766399 ("arm64: dts: ls1028a: sl28: keep switch port names consistent") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpA0Prctzvs3.pgp Description: OpenPGP digital signature

[PATCH v2] printk/kdb: Redirect printk messages into kdb in any context

2020-05-20 Thread Petr Mladek
kdb has to get messages on consoles even when the system is stopped. It uses kdb_printf() internally and calls console drivers on its own. It uses a hack to reuse an existing code. It sets "kdb_trap_printk" global variable to redirect even the normal printk() into the kdb_printf() variant. The

Re: [PATCH] perf bpf-loader: Add missing '*' for key_scan_pos

2020-05-20 Thread Wangshaobo (bobo)
在 2020/5/20 15:05, Jiri Olsa 写道: On Wed, May 20, 2020 at 11:32:16AM +0800, Wang ShaoBo wrote: key_scan_pos is a pointer for getting scan position in bpf__obj_config_map() for each BPF map configuration term, but it's misused when error not happened. Fixes: 066dacbf2a32 ("perf bpf: Add API to

[PATCH] asm-generic/sembuf: Update architecture related information in comment

2020-05-20 Thread Viresh Kumar
The structure came originally from x86_32 but is used by most of the architectures now. Update the comment which says it is for x86 only. Signed-off-by: Viresh Kumar --- include/uapi/asm-generic/sembuf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH] Revert "powerpc/32s: reorder Linux PTE bits to better match Hash PTE bits."

2020-05-20 Thread Christophe Leroy
This reverts commit 697ece78f8f749aeea40f2711389901f0974017a. The implementation of SWAP on powerpc requires page protection bits to not be one of the least significant PTE bits. Until the SWAP implementation is changed and this requirement voids, we have to keep at least _PAGE_RW outside of the

Re: [PATCH v4 07/13] firmware: arm_scmi: Add notification dispatch and delivery

2020-05-20 Thread Lukasz Luba
Hi Cristian, On 5/20/20 8:09 AM, Cristian Marussi wrote: On Mon, Mar 16, 2020 at 02:46:05PM +, Cristian Marussi wrote: On Thu, Mar 12, 2020 at 09:43:31PM +, Lukasz Luba wrote: Hi Lukasz, I went back looking deeper into the possible race issue you pointed out a while ago

Re: [PATCH 06/11] irqchip/gic-v3: Configure SGIs as standard interrupts

2020-05-20 Thread Marc Zyngier
Hi Sumit, On 2020-05-20 10:52, Sumit Garg wrote: Hi Marc, On Tue, 19 May 2020 at 21:48, Marc Zyngier wrote: Change the way we deal with GICv3 SGIs by turning them into proper IRQs, and calling into the arch code to register the interrupt range instead of a callback. Signed-off-by: Marc

Re: [PATCH v11 2/3] i2c: npcm7xx: Add Nuvoton NPCM I2C controller driver

2020-05-20 Thread Andy Shevchenko
On Wed, May 20, 2020 at 12:51:12PM +0300, Tali Perry wrote: > Add Nuvoton NPCM BMC I2C controller driver. ... > +#ifdef CONFIG_DEBUG_FS Why?! > +#include > +#endif ... > +/* Status of one I2C module */ > +struct npcm_i2c { > + struct i2c_adapter adap; > + struct device *dev;

[PATCH] drm/nouveau: fix runtime pm imbalance on error

2020-05-20 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/gpu/drm/nouveau/nouveau_gem.c | 4 +++- 1 file changed, 3

Re: [PATCH 8/8] mm/zswap: Use local lock to protect per-CPU data

2020-05-20 Thread Sebastian Andrzej Siewior
On 2020-05-19 21:46:06 [+], Song Bao Hua wrote: > Hi Luis, > In the below patch, in order to use the acomp APIs to leverage the power of > hardware compressors. I have moved to mutex: > https://marc.info/?l=linux-crypto-vger=158941285830302=2 >

Re: [PATCH 3/8] srcu: Use local_lock() for per-CPU struct srcu_data access

2020-05-20 Thread Peter Zijlstra
On Tue, May 19, 2020 at 10:19:07PM +0200, Sebastian Andrzej Siewior wrote: > diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c > index 0c71505f0e19c..8d2b5f75145d7 100644 > --- a/kernel/rcu/srcutree.c > +++ b/kernel/rcu/srcutree.c > @@ -25,6 +25,7 @@ > #include > #include > #include

Re: [PATCH] drm/etnaviv: fix memory leak when mapping prime imported buffers

2020-05-20 Thread Lucas Stach
Hi Martin, Am Mittwoch, den 20.05.2020, 12:10 +0200 schrieb Martin Fuzzey: > When using mmap() on a prime imported buffer allocated by a > different driver (such as imx-drm) the later munmap() does > not correctly decrement the refcount of the original enaviv_gem_object, > leading to a leak. > >

[PATCH v1] drivers property: When no children in primary, try secondary

2020-05-20 Thread Andy Shevchenko
Software firmware nodes can provide a child node to its parent. Since software node can be secondary, we need a mechanism to access the children. The idea is to list children of the primary node first and when they are finished, continue with secondary node if available. Signed-off-by: Andy

Re: [PATCH v2] sched/pelt: sync util/runnable_sum with PELT window when propagating

2020-05-20 Thread Dietmar Eggemann
On 19/05/2020 17:41, Vincent Guittot wrote: > On Tue, 19 May 2020 at 12:28, Dietmar Eggemann > wrote: >> >> On 06/05/2020 17:53, Vincent Guittot wrote: [...] >>> diff --git a/kernel/sched/pelt.c b/kernel/sched/pelt.c >>> index b647d04d9c8b..1feff80e7e45 100644 >>> --- a/kernel/sched/pelt.c >>>

Re: [PATCH 0/3] arm64: perf: Add support for Perf NMI interrupts

2020-05-20 Thread Alexandru Elisei
Hi, On 5/18/20 12:17 PM, Alexandru Elisei wrote: > Hi, > > On 5/18/20 11:45 AM, Mark Rutland wrote: >> Hi all, >> >> On Mon, May 18, 2020 at 02:26:00PM +0800, Lecopzer Chen wrote: >>> HI Sumit, >>> >>> Thanks for your information. >>> >>> I've already implemented IPI (same as you did [1], little

Re: [PATCH] perf bpf-loader: Add missing '*' for key_scan_pos

2020-05-20 Thread Jiri Olsa
On Wed, May 20, 2020 at 06:22:12PM +0800, Wangshaobo (bobo) wrote: > > 在 2020/5/20 15:05, Jiri Olsa 写道: > > On Wed, May 20, 2020 at 11:32:16AM +0800, Wang ShaoBo wrote: > > > key_scan_pos is a pointer for getting scan position in > > > bpf__obj_config_map() for each BPF map configuration term, >

[next] i2c: mediatek: Use div_u64 for 64-bit division to fix 32-bit kernels

2020-05-20 Thread qii.wang
From: Qii Wang Use div_u64 for 64-bit division, and change sample_ns type to unsigned int. Otherwise, the module will reference __udivdi3 under 32-bit kernels, which is not allowed in kernel space. Signed-off-by: Qii Wang --- drivers/i2c/busses/i2c-mt65xx.c | 3 ++- 1 file changed, 2

Re: [PATCH v1] drivers property: When no children in primary, try secondary

2020-05-20 Thread Rafael J. Wysocki
On Wed, May 20, 2020 at 12:30 PM Andy Shevchenko wrote: > > Software firmware nodes can provide a child node to its parent. > Since software node can be secondary, we need a mechanism to access > the children. The idea is to list children of the primary node first > and when they are finished,

Re: [PATCH] kgdboc: Disable all the early code when kgdboc is a module

2020-05-20 Thread Daniel Thompson
On Tue, May 19, 2020 at 08:44:02AM -0700, Douglas Anderson wrote: > When kgdboc is compiled as a module all of the "ekgdboc" and > "kgdb_earlycon" code isn't useful and, in fact, breaks compilation. > This is because early_param() isn't defined for modules and that's how > this code gets

Re: [PATCH] arm64: Fix PTRACE_SYSEMU semantics

2020-05-20 Thread Bin Lu
From: Bin Lu On Tue, May 19, 2020 at 01:07:27PM +0100, Catalin Marinas wrote: > On Mon, May 18, 2020 at 12:41:20PM +0100, Will Deacon wrote: > > On Fri, May 15, 2020 at 06:22:53PM -0400, Keno Fischer wrote: > > > Quoth the man page: > > > ``` > > >If the tracee was restarted by

[PATCH] drm/nouveau: fix runtime pm imbalance on error

2020-05-20 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/gpu/drm/nouveau/nouveau_gem.c | 2 +- 1 file changed, 1

[PATCH v2] MAINTAINERS: add files related to kdump

2020-05-20 Thread Baoquan He
Kdump is implemented based on kexec, however some files are only related to crash dumping and missing, add them to KDUMP entry. Signed-off-by: Baoquan He Acked-by: Dave Young --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index

Re: [PATCH v1] drivers property: When no children in primary, try secondary

2020-05-20 Thread Sakari Ailus
Thanks, Andy! On Wed, May 20, 2020 at 01:29:59PM +0300, Andy Shevchenko wrote: > Software firmware nodes can provide a child node to its parent. > Since software node can be secondary, we need a mechanism to access > the children. The idea is to list children of the primary node first > and when

Re: [RFC PATCH 0/4] DirectX on Linux

2020-05-20 Thread Jan Engelhardt
On Tuesday 2020-05-19 22:36, Sasha Levin wrote: > >> - Why DX12 on linux? Looking at this feels like classic divide and > > There is a single usecase for this: WSL2 developer who wants to run > machine learning on his GPU. The developer is working on his laptop, > which is running Windows and

Re: [RFC PATCH v3 1/2] cpufreq: change '.set_boost' to act on only one policy

2020-05-20 Thread Rafael J. Wysocki
On Wed, May 20, 2020 at 6:59 AM Viresh Kumar wrote: > > On 19-05-20, 19:41, Xiongfeng Wang wrote: > > Macro 'for_each_active_policy()' is defined internally. To avoid some > > cpufreq driver needing this macro to iterate over all the policies in > > '.set_boost' callback, we redefine '.set_boost'

Re: [PATCH v5 09/19] mtd: spi-nor: sfdp: parse xSPI Profile 1.0 table

2020-05-20 Thread Pratyush Yadav
On 20/05/20 05:40PM, masonccy...@mxic.com.tw wrote: > > Hi Pratyush, > > > > > +/** > > > > + * spi_nor_parse_profile1() - parse the xSPI Profile 1.0 table > > > > + * @nor: pointer to a 'struct spi_nor' > > > > + * @param_header: pointer to the 'struct sfdp_parameter_header' > > >

Re: [PATCH v1] drivers property: When no children in primary, try secondary

2020-05-20 Thread Heikki Krogerus
On Wed, May 20, 2020 at 01:29:59PM +0300, Andy Shevchenko wrote: > Software firmware nodes can provide a child node to its parent. > Since software node can be secondary, we need a mechanism to access > the children. The idea is to list children of the primary node first > and when they are

Re: [RFC PATCH v3 1/2] cpufreq: change '.set_boost' to act on only one policy

2020-05-20 Thread Viresh Kumar
On 20-05-20, 12:36, Rafael J. Wysocki wrote: > On Wed, May 20, 2020 at 6:59 AM Viresh Kumar wrote: > > > > On 19-05-20, 19:41, Xiongfeng Wang wrote: > > > Macro 'for_each_active_policy()' is defined internally. To avoid some > > > cpufreq driver needing this macro to iterate over all the policies

[tip:x86/entry 4/80] drivers/xen/events/events_base.c:1664:6: warning: no previous prototype for 'xen_setup_callback_vector'

2020-05-20 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/entry head: 095b7a3e7745e6fb7cf0a1c09967c4f43e76f8f4 commit: fad1940a6a856f59b073e8650e02052ce531154c [4/80] x86/xen: Split HVM vector callback setup and interrupt gate allocation config: arm-randconfig-r013-20200519

Re: [PATCH v2 1/2] hwrng: iproc-rng200 - Set the quality value

2020-05-20 Thread Lukasz Stelmach
It was <2020-05-20 śro 11:18>, when Stephan Mueller wrote: > Am Mittwoch, 20. Mai 2020, 11:10:32 CEST schrieb Lukasz Stelmach: >> It was <2020-05-20 śro 08:23>, when Stephan Mueller wrote: >>> Am Dienstag, 19. Mai 2020, 23:25:51 CEST schrieb Łukasz Stelmach: The value was estimaded with

hello

2020-05-20 Thread robert
helloone.pdf Description: Adobe PDF document

Re: [PATCH v1] drivers property: When no children in primary, try secondary

2020-05-20 Thread Greg Kroah-Hartman
On Wed, May 20, 2020 at 12:34:06PM +0200, Rafael J. Wysocki wrote: > On Wed, May 20, 2020 at 12:30 PM Andy Shevchenko > wrote: > > > > Software firmware nodes can provide a child node to its parent. > > Since software node can be secondary, we need a mechanism to access > > the children. The idea

Re: [PATCH v1 13/25] dma-buf: Use sequence counter with associated wound/wait mutex

2020-05-20 Thread Christian König
Am 19.05.20 um 23:45 schrieb Ahmed S. Darwish: A sequence counter write side critical section must be protected by some form of locking to serialize writers. If the serialization primitive is not disabling preemption implicitly, preemption has to be explicitly disabled before entering the

[PATCH] drm/nouveau/dispnv50: fix runtime pm imbalance on error

2020-05-20 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 4 +++- 1 file changed, 3

Re: [PATCH v3 01/19] mm: memcg: factor out memcg- and lruvec-level changes out of __mod_lruvec_state()

2020-05-20 Thread Vlastimil Babka
On 4/22/20 10:46 PM, Roman Gushchin wrote: > To convert memcg and lruvec slab counters to bytes there must be > a way to change these counters without touching node counters. > Factor out __mod_memcg_lruvec_state() out of __mod_lruvec_state(). > > Signed-off-by: Roman Gushchin Reviewed-by:

Re: [PATCH 1/2] mfd: constify properties in mfd_cell

2020-05-20 Thread Lee Jones
On Sat, 16 May 2020, Tomas Winkler wrote: > Constify 'struct property_entry *properties' in > mfd_cell It is always passed > around as a pointer const struct. Apart from the odd commit log formatting ... > Signed-off-by: Tomas Winkler > --- > include/linux/mfd/core.h | 2 +- > 1 file changed,

Re: [tip:x86/entry 4/80] drivers/xen/events/events_base.c:1664:6: warning: no previous prototype for 'xen_setup_callback_vector'

2020-05-20 Thread Vitaly Kuznetsov
kbuild test robot writes: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/entry > head: 095b7a3e7745e6fb7cf0a1c09967c4f43e76f8f4 > commit: fad1940a6a856f59b073e8650e02052ce531154c [4/80] x86/xen: Split HVM > vector callback setup and interrupt gate allocation >

Re: [PATCH v2 2/4] clk / soc: mediatek: Bind clock and gpu driver for mt2712

2020-05-20 Thread Matthias Brugger
On 20/05/2020 12:13, Stephen Boyd wrote: > Quoting Enric Balletbo i Serra (2020-04-01 13:17:34) >> Now that the mmsys driver is the top-level entry point for the >> multimedia subsystem, we could bind the clock and the gpu driver on >> those devices that is expected to work, so the drm driver

Re: [PATCH v2 1/4] soc: mediatek: Enable mmsys driver by default if Mediatek arch is selected

2020-05-20 Thread Matthias Brugger
On 01/04/2020 22:17, Enric Balletbo i Serra wrote: > The mmsys driver supports only MT8173 device for now, but like other system > controllers is an important piece for other Mediatek devices. Actually > it depends on the mt8173 clock specific driver but that dependency is > not real as it can

Re: [PATCH v2 3/4] clk / soc: mediatek: Bind clock and gpu driver for mt2701

2020-05-20 Thread Matthias Brugger
On 20/05/2020 12:13, Stephen Boyd wrote: > Quoting Enric Balletbo i Serra (2020-04-01 13:17:35) >> Now that the mmsys driver is the top-level entry point for the >> multimedia subsystem, we could bind the clock and the gpu driver on >> those devices that is expected to work, so the drm driver

Re: [PATCH 1/2] MAINTAINERS: Add entry for ROHM power management ICs

2020-05-20 Thread Sebastian Reichel
Hi, On Wed, May 20, 2020 at 09:11:28AM +0300, Matti Vaittinen wrote: > Add entry for maintaining power management IC drivers for ROHM > BD71837, BD71847, BD71850, BD71828, BD71878, BD70528 and BD99954. > > Signed-off-by: Matti Vaittinen > --- Acked-by: Sebastian Reichel -- Sebastian >

Re: [PATCH v3] vsprintf: don't obfuscate NULL and error pointers

2020-05-20 Thread Petr Mladek
On Tue 2020-05-19 11:36:52, Linus Torvalds wrote: > On Tue, May 19, 2020 at 4:27 AM Ilya Dryomov wrote: > > > > This just came up again, please consider sending this to Linus > > for 5.7. > > I just took it directly, since I like it and it looks trivial. Great, I am happy that it has got

Re: [PATCH v2 4/4] arm64: dts: mt8173: Fix mmsys node name

2020-05-20 Thread Matthias Brugger
On 01/04/2020 22:17, Enric Balletbo i Serra wrote: > Node names are supposed to match the class of the device, mmsys is a > system controller (syscon) not a clock controller, so change the node > name accordingly. > > Signed-off-by: Enric Balletbo i Serra > Reviewed-by: Chun-Kuang Hu > ---

Re: [PATCH 4/8] mm/swap: Use local_lock for protection

2020-05-20 Thread Peter Zijlstra
On Tue, May 19, 2020 at 10:19:08PM +0200, Sebastian Andrzej Siewior wrote: > diff --git a/mm/swap.c b/mm/swap.c > index bf9a79fed62d7..03c97d15fcd69 100644 > --- a/mm/swap.c > +++ b/mm/swap.c > @@ -44,8 +44,14 @@ > /* How many pages do we try to swap or page in/out together? */ > int

Re: [PATCH 1/4] clk/soc: mediatek: mt8183: Bind clock driver from platform device

2020-05-20 Thread Matthias Brugger
On 20/05/2020 12:14, Stephen Boyd wrote: > Quoting matthias@kernel.org (2020-05-18 04:31:53) >> From: Matthias Brugger >> >> The mmsys driver is now the top level entry point for the multimedia >> system (mmsys), we bind the clock driver by creating a platform device. >> We also bind the

Re: [PATCH 2/4] clk/soc: mediatek: mt6797: Bind clock driver from platform device

2020-05-20 Thread Matthias Brugger
On 20/05/2020 12:15, Stephen Boyd wrote: > Quoting matthias@kernel.org (2020-05-18 04:31:54) >> From: Matthias Brugger >> >> The mmsys driver is now the top level entry point for the multimedia >> system (mmsys), we bind the clock driver by creating a platform device. >> We also bind the

Re: [PATCH 3/4] clk/soc: mediatek: mt6779: Bind clock driver from platform device

2020-05-20 Thread Matthias Brugger
On 20/05/2020 12:15, Stephen Boyd wrote: > Quoting matthias@kernel.org (2020-05-18 04:31:55) >> From: Matthias Brugger >> >> The mmsys driver is now the top level entry point for the multimedia >> system (mmsys), we bind the clock driver by creating a platform device. >> We also bind the

Re: [PATCH v6 0/5] perf stat: Support overall statistics for interval mode

2020-05-20 Thread Jiri Olsa
On Wed, May 20, 2020 at 12:27:32PM +0800, Jin Yao wrote: > Currently perf-stat supports to print counts at regular interval (-I), > but it's not very easy for user to get the overall statistics. > > With this patchset, it supports to report the summary at the end of > interval output. > > For

Re: [PATCH 4/4] arm64: dts: mt6797: Fix mmsys node name

2020-05-20 Thread Matthias Brugger
On 19/05/2020 17:06, Chun-Kuang Hu wrote: > Hi, Matthias: > > 於 2020年5月18日 週一 下午7:33寫道: >> >> From: Matthias Brugger >> >> Node names are supposed to match the class of the device. The >> mmsys node is a syscon as it provides more then just a clock controller. >> Update the name. > >

Re: [PATCH v3 0/9] perf: support enable and disable commands in stat and record modes

2020-05-20 Thread Jiri Olsa
On Mon, May 18, 2020 at 11:08:43AM +0300, Alexey Budankov wrote: > Hi, > > Is there anything else that could be done from my side to move this forward? sorry I did not get to this yet.. will check jirka

Re: [PATCH 5/8] squashfs: make use of local lock in multi_cpu decompressor

2020-05-20 Thread Peter Zijlstra
On Tue, May 19, 2020 at 10:19:09PM +0200, Sebastian Andrzej Siewior wrote: > diff --git a/fs/squashfs/decompressor_multi_percpu.c > b/fs/squashfs/decompressor_multi_percpu.c > index 2a2a2d106440e..8a77a2741c176 100644 > --- a/fs/squashfs/decompressor_multi_percpu.c > +++

Re: [PATCH] powerpc: Replace zero-length array with flexible-array

2020-05-20 Thread Michael Ellerman
On Thu, 7 May 2020 13:57:49 -0500, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99:

Re: [PATCH] powerpc/mm: Replace zero-length array with flexible-array

2020-05-20 Thread Michael Ellerman
On Thu, 7 May 2020 13:57:55 -0500, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99:

Re: [PATCH] powerpc/kasan: Fix stack overflow by increasing THREAD_SHIFT

2020-05-20 Thread Michael Ellerman
On Wed, 8 Apr 2020 15:58:49 + (UTC), Christophe Leroy wrote: > When CONFIG_KASAN is selected, the stack usage is increased. > > In the same way as x86 and arm64 architectures, increase > THREAD_SHIFT when CONFIG_KASAN is selected. Applied to powerpc/next. [1/1] powerpc/kasan: Fix stack

Re: [PATCH] powerpc/8xx: Update email address in MAINTAINERS

2020-05-20 Thread Michael Ellerman
On Wed, 6 May 2020 06:51:59 + (UTC), Christophe Leroy wrote: > Since 01 May 2020, our email adresses have changed to @csgroup.eu > > Update MAINTAINERS accordingly. Applied to powerpc/next. [1/1] powerpc/8xx: Update email address in MAINTAINERS

Re: [PATCH v6 00/16] powerpc/watchpoint: Preparation for more than one watchpoint

2020-05-20 Thread Michael Ellerman
On Thu, 14 May 2020 16:47:25 +0530, Ravi Bangoria wrote: > So far, powerpc Book3S code has been written with an assumption of > only one watchpoint. But Power10[1] is introducing second watchpoint > register (DAWR). Even though this patchset does not enable 2nd DAWR, > it makes the infrastructure

Re: [PATCH 1/5] drivers/powerpc: Replace _ALIGN_UP() by ALIGN()

2020-05-20 Thread Michael Ellerman
On Mon, 20 Apr 2020 18:36:34 + (UTC), Christophe Leroy wrote: > _ALIGN_UP() is specific to powerpc > ALIGN() is generic and does the same > > Replace _ALIGN_UP() by ALIGN() Applied to powerpc/next. [1/5] drivers/powerpc: Replace _ALIGN_UP() by ALIGN()

Re: [PATCH] powerpc/5200: update contact email

2020-05-20 Thread Michael Ellerman
On Sat, 2 May 2020 16:26:42 +0200, Wolfram Sang wrote: > My 'pengutronix' address is defunct for years. Merge the entries and use > the proper contact address. Applied to powerpc/next. [1/1] powerpc/5200: update contact email

Re: [PATCH 20/20] maccess: return -ERANGE when copy_from_kernel_nofault_allowed fails

2020-05-20 Thread Masami Hiramatsu
On Tue, 19 May 2020 15:44:49 +0200 Christoph Hellwig wrote: > Allow the callers to distinguish a real unmapped address vs a range > that can't be probed. > > Suggested-by: Masami Hiramatsu > Signed-off-by: Christoph Hellwig Hi Christoph, Can you also update the kerneldoc comment too? Other

Re: [PATCH 6/8] connector/cn_proc: Protect send_msg() with a local lock

2020-05-20 Thread Peter Zijlstra
On Tue, May 19, 2020 at 10:19:10PM +0200, Sebastian Andrzej Siewior wrote: > @@ -40,10 +41,11 @@ static struct cb_id cn_proc_event_id = { CN_IDX_PROC, > CN_VAL_PROC }; > > /* proc_event_counts is used as the sequence number of the netlink message */ > static DEFINE_PER_CPU(__u32,

Re: [PATCH] dma-fence: add might_sleep annotation to _wait()

2020-05-20 Thread Daniel Vetter
On Wed, May 20, 2020 at 08:54:36AM +0200, Christian König wrote: > Am 19.05.20 um 15:27 schrieb Daniel Vetter: > > Do it uncontionally, there's a separate peek function with > > dma_fence_is_signalled() which can be called from atomic context. > > > > v2: Consensus calls for an unconditional

[PATCH] drm/panfrost: fix runtime pm imbalance on error

2020-05-20 Thread Dinghao Liu
pm_runtime_get_sync() increments the runtime PM usage counter even the call returns an error code. Thus a pairing decrement is needed on the error handling path to keep the counter balanced. Signed-off-by: Dinghao Liu --- drivers/gpu/drm/panfrost/panfrost_job.c | 4 +++- 1 file changed, 3

Re: [PATCH] PCI: dwc: Warn only for non-prefetchable memory resource size >4GB

2020-05-20 Thread Lorenzo Pieralisi
On Tue, May 19, 2020 at 10:08:54PM +, Gustavo Pimentel wrote: [...] > > > > > > diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c > > > > > > b/drivers/pci/controller/dwc/pcie-designware-host.c > > > > > > index 42fbfe2a1b8f..a29396529ea4 100644 > > > > > > ---

Re: [EXTERNAL] Re: [RFC PATCH 0/4] DirectX on Linux

2020-05-20 Thread Thomas Zimmermann
Hi Steve, thank you for the fast reply. Am 20.05.20 um 09:42 schrieb Steve Pronovost: >> Echoing what others said, you're not making a DRM driver. The driver should >> live outside of the DRM code. > > Agreed, please see my earlier reply. We'll be moving the driver to > drivers/hyperv node or

Re: [PATCH 7/8] zram: Use local lock to protect per-CPU data

2020-05-20 Thread Peter Zijlstra
On Tue, May 19, 2020 at 10:19:11PM +0200, Sebastian Andrzej Siewior wrote: > +static DEFINE_LOCAL_LOCK(zcomp_lock); > + > struct zcomp_strm *zcomp_stream_get(struct zcomp *comp) > { > - return *get_cpu_ptr(comp->stream); > + local_lock(zcomp_lock); > + return

[PATCH 2/3] switchdev: mrp: Remove the variable mrp_ring_state

2020-05-20 Thread Horatiu Vultur
Remove the variable mrp_ring_state from switchdev_attr because is not used anywhere. The ring state is set using SWITCHDEV_OBJ_ID_RING_STATE_MRP. Fixes: c284b5459008 ("switchdev: mrp: Extend switchdev API to offload MRP") Signed-off-by: Horatiu Vultur --- include/net/switchdev.h | 1 - 1 file

Re: [EXT] Re: [PATCH net-next 3/5] net: mvpp2: cls: Use RSS contexts to handle RSS tables

2020-05-20 Thread Russell King - ARM Linux admin
On Tue, May 19, 2020 at 07:05:34PM +0200, Matteo Croce wrote: > On Tue, 19 May 2020 12:05:20 +0200 > Matteo Croce wrote: > > Hi, > > The patch seems to work. I'm generating traffic with random MAC and IP > addresses, to have many flows: > > # tcpdump -tenni eth2 > 9a:a9:b1:3a:b1:6b >

Re: [PATCH 13/20] maccess: always use strict semantics for probe_kernel_read

2020-05-20 Thread Masami Hiramatsu
On Tue, 19 May 2020 15:44:42 +0200 Christoph Hellwig wrote: > diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c > index 2f6737cc53e6c..82da20e712507 100644 > --- a/kernel/trace/trace_kprobe.c > +++ b/kernel/trace/trace_kprobe.c > @@ -1208,7 +1208,13 @@

[PATCH 1/3] bridge: mrp: Add br_mrp_unique_ifindex function

2020-05-20 Thread Horatiu Vultur
It is not allow to have the same net bridge port part of multiple MRP rings. Therefore add a check if the port is used already in a different MRP. In that case return failure. Fixes: 9a9f26e8f7ea ("bridge: mrp: Connect MRP API with the switchdev API") Signed-off-by: Horatiu Vultur ---

[PATCH 3/3] bridge: mrp: Restore port state when deleting MRP instance

2020-05-20 Thread Horatiu Vultur
When a MRP instance is deleted, then restore the port according to the bridge state. If the bridge is up then the ports will be in forwarding state otherwise will be in disabled state. Fixes: 9a9f26e8f7ea ("bridge: mrp: Connect MRP API with the switchdev API") Signed-off-by: Horatiu Vultur ---

[PATCH 0/3] net: bridge: mrp: Add small fixes to MRP

2020-05-20 Thread Horatiu Vultur
This patch series adds small fixes to MRP implementation. The following are fixed in this patch series: - now is not allow to add the same port to multiple MRP rings - remove unused variable - restore the port state according to the bridge state when the MRP instance is deleted Horatiu Vultur

next-0519 on thinkpad x60: sound related? window manager crash

2020-05-20 Thread Pavel Machek
Hi! My window manager stopped responding. I was able to recover machine using sysrq-k. I started writing nice report, when session failed second time. And then third time on next attempt. Any ideas? I'll send this out before this locks up... Best regards,

[PATCH v2 0/4] arm64: Introduce new IPI as IPI_CALL_NMI_FUNC

2020-05-20 Thread Sumit Garg
With pseudo NMIs support available its possible to configure SGIs to be triggered as pseudo NMIs running in NMI context. And kernel features such as kgdb relies on NMI support to round up CPUs which are stuck in hard lockup state with interrupts disabled. This patch-set adds support for

[PATCH v2 1/4] arm64: smp: Introduce a new IPI as IPI_CALL_NMI_FUNC

2020-05-20 Thread Sumit Garg
Introduce a new inter processor interrupt as IPI_CALL_NMI_FUNC that can be invoked to run special handlers in NMI context. One such handler example is kgdb_nmicallback() which is invoked in order to round up CPUs to enter kgdb context. As currently pseudo NMIs are supported on specific arm64

[PATCH v2 3/4] arm64: smp: Setup IPI_CALL_NMI_FUNC as a pseudo NMI

2020-05-20 Thread Sumit Garg
Setup IPI_CALL_NMI_FUNC as a pseudo NMI using generic interrupt framework APIs. In case a plarform doesn't provide support for pseudo NMIs, switch back to IPI_CALL_NMI_FUNC being a normal interrupt. Signed-off-by: Sumit Garg --- arch/arm64/kernel/smp.c | 35 ++-

Re: [PATCH 13/20] maccess: always use strict semantics for probe_kernel_read

2020-05-20 Thread Christoph Hellwig
On Wed, May 20, 2020 at 08:11:26PM +0900, Masami Hiramatsu wrote: > > - ret = probe_kernel_read(, (u8 *)addr + len, 1); > > + if (IS_ENABLED(CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE) && > > + (unsigned long)addr < TASK_SIZE) { > > + ret =

RE: [PATCH 8/8] mm/zswap: Use local lock to protect per-CPU data

2020-05-20 Thread Song Bao Hua
> On 2020-05-19 21:46:06 [+], Song Bao Hua wrote: > > Hi Luis, > > In the below patch, in order to use the acomp APIs to leverage the power of > hardware compressors. I have moved to mutex: > > https://marc.info/?l=linux-crypto-vger=158941285830302=2 > >

[PATCH v2 2/4] irqchip/gic-v3: Enable support for SGIs to act as NMIs

2020-05-20 Thread Sumit Garg
Add support to handle SGIs as regular NMIs. As SGIs or IPIs defaults to a special flow handler: handle_percpu_devid_fasteoi_ipi(), so skip NMI handler update in case of SGIs. Also, enable NMI support prior to gic_smp_init() as allocation of SGIs as IRQs/NMIs happen as part of this routine.

[PATCH v2 4/4] arm64: kgdb: Round up cpus using IPI_CALL_NMI_FUNC

2020-05-20 Thread Sumit Garg
arm64 platforms with GICv3 or later supports pseudo NMIs which can be leveraged to round up CPUs which are stuck in hard lockup state with interrupts disabled that wouldn't be possible with a normal IPI. So instead switch to round up CPUs using IPI_CALL_NMI_FUNC. And in case a particular arm64

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