Re: [PATCH] x86/stacktrace: Do not access user space memory unnecessarily

2019-07-02 Thread Steven Rostedt
On Tue, 2 Jul 2019 16:14:05 +0200 (CEST) Thomas Gleixner wrote: > On Tue, 2 Jul 2019, Peter Zijlstra wrote: > > > On Tue, Jul 02, 2019 at 02:31:51PM +0900, Eiichi Tsukata wrote: > > > Put the boundary check before it accesses user space to prevent > > > unnecessary > > > access which might

Re: [PATCH] bpf, libbpf: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Yonghong Song
On 7/2/19 3:25 AM, Leo Yan wrote: > Based on the following report from Smatch, fix the potential > NULL pointer dereference check. > >tools/lib/bpf/libbpf.c:3493 >bpf_prog_load_xattr() warn: variable dereferenced before check 'attr' >(see line 3483) > > 3479 int

Re: [PATCH v3] dmaengine: tegra-apb: Support per-burst residue granularity

2019-07-02 Thread Dmitry Osipenko
02.07.2019 18:29, Jon Hunter пишет: > > On 27/06/2019 20:47, Dmitry Osipenko wrote: >> Tegra's APB DMA engine updates words counter after each transferred burst >> of data, hence it can report transfer's residual with more fidelity which >> may be required in cases like audio playback. In

RE: [PATCH v2] remoteproc: copy parent dma_pfn_offset for vdev

2019-07-02 Thread Loic PALLARDY
Hi Christoph, > -Original Message- > From: Christoph Hellwig > Sent: mardi 2 juillet 2019 15:22 > To: Clement Leger > Cc: Ohad Ben-Cohen ; Bjorn Andersson > ; linux-remotep...@vger.kernel.org; linux- > ker...@vger.kernel.org; Loic PALLARDY > Subject: Re: [PATCH v2] remoteproc: copy

Re: [PATCH v3 1/2] x86, arm64: Move ARCH_WANT_HUGE_PMD_SHARE config in arch/Kconfig

2019-07-02 Thread Alexandre Ghiti
On 7/1/19 8:51 PM, Paul Walmsley wrote: Catalin, Palmer, On Mon, 1 Jul 2019, Alexandre Ghiti wrote: ARCH_WANT_HUGE_PMD_SHARE config was declared in both architectures: move this declaration in arch/Kconfig and make those architectures select it. Signed-off-by: Alexandre Ghiti Since the

Re: [PATCH] filesystem-dax: Disable PMD support

2019-07-02 Thread Dan Williams
On Mon, Jul 1, 2019 at 8:34 PM Matthew Wilcox wrote: > > On Sun, Jun 30, 2019 at 02:37:32PM -0700, Dan Williams wrote: > > On Sun, Jun 30, 2019 at 8:23 AM Matthew Wilcox wrote: > > > I think my theory was slightly mistaken, but your fix has the effect of > > > fixing the actual problem too. > >

Re: [PATCH v3 1/2] x86, arm64: Move ARCH_WANT_HUGE_PMD_SHARE config in arch/Kconfig

2019-07-02 Thread Alexandre Ghiti
On 7/2/19 3:27 AM, Hanjun Guo wrote: On 2019/7/2 1:58, Alexandre Ghiti wrote: ARCH_WANT_HUGE_PMD_SHARE config was declared in both architectures: move this declaration in arch/Kconfig and make those architectures select it. Signed-off-by: Alexandre Ghiti --- arch/Kconfig | 3 +++

Re: [PATCH v3 2/2] riscv: Introduce huge page support for 32/64bit kernel

2019-07-02 Thread Alexandre Ghiti
On 7/2/19 3:24 PM, Christoph Hellwig wrote: +config ARCH_WANT_GENERAL_HUGETLB + def_bool y + +config SYS_SUPPORTS_HUGETLBFS + def_bool y In a perfect world these would be in mm/Kconfig and only selected by the architectures. But I don't want to force you to clean up all that mess

[PATCH] openpromfs: Adjust three seq_printf() calls in property_show()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 17:24:27 +0200 A bit of information should be put into a sequence. Thus improve the execution speed for this data output by better usage of corresponding functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus

Re: [linux-sunxi] Re: [PATCH v10 04/11] drm/sun4i: tcon: Compute DCLK dividers based on format, lanes

2019-07-02 Thread Jagan Teki
On Tue, Jul 2, 2019 at 8:59 PM Maxime Ripard wrote: > > On Tue, Jul 02, 2019 at 12:30:14AM +0530, Jagan Teki wrote: > > On Tue, Jun 25, 2019 at 8:07 PM Maxime Ripard > > wrote: > > > > > > > > > > BSP has tcon_div and dsi_div. dsi_div is dynamic which > > > > > > > > > > depends on > > > > > >

Re: [PATCH 4.14 00/43] 4.14.132-stable review

2019-07-02 Thread Naresh Kamboju
On Tue, 2 Jul 2019 at 13:39, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.132 release. > There are 43 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [RFC PATCH v2 0/5] sched/cpufreq: Make schedutil energy aware

2019-07-02 Thread Peter Zijlstra
On Thu, Jun 27, 2019 at 06:15:58PM +0100, Douglas RAILLARD wrote: > Make schedutil cpufreq governor energy-aware. > > - patch 1 introduces a function to retrieve a frequency given a base > frequency and an energy cost margin. > - patch 2 links Energy Model perf_domain to sugov_policy. > - patch

[PATCH] OCC: FSI and hwmon: Add sequence numbering

2019-07-02 Thread Eddie James
Sequence numbering of the commands submitted to the OCC is required by the OCC interface specification. Add sequence numbering and check for the correct sequence number on the response. Signed-off-by: Eddie James Acked-by: Guenter Roeck Reviewed-by: Lei YU --- drivers/fsi/fsi-occ.c | 15

[PATCH 0/7] media: vimc: Add a V4L2 output device

2019-07-02 Thread André Almeida
Hello, This patch adds a V4L2 output device on vimc, that comply with V4L2 API for video output. If there is an output device and a capture device at the same pipeline, one can get a video loopback pipeline feeding frames at the output and then seeing them at the capture. It's possible to insert

[PATCH 1/7] media: vimc: Create video module

2019-07-02 Thread André Almeida
V4L2 video capture and video output devices shares a lot of common code. To enhance code reuse with future video output, split vimc-capture.c in three files: vimc-capture.c and vimc-video.{c,h}. Keep strict capture related functions on vimc-capture.c. This change is meant to the future addition of

[PATCH 2/7] media: vimc: video: Add write file operation

2019-07-02 Thread André Almeida
Add write on the list of vb2 file operations. This is required to create a V4L2 output device. Signed-off-by: André Almeida --- drivers/media/platform/vimc/vimc-video.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/vimc/vimc-video.h

[PATCH 3/7] media: vimc: Create a V4L2 output device

2019-07-02 Thread André Almeida
Using the functions on vimc-video, create a V4L2 output device. When a streaming is initialized on the output device, it'll start returning those buffers on to the userspace, while always keeping one on the list. When the capture device starts streaming on the same pipeline, it will copy the first

[PATCH 4/7] media: vimc: Send null buffer through the pipeline

2019-07-02 Thread André Almeida
Send a NULL buffer through the video pipeline. If the Capture device gets a NULL buffer, it uses it default fallback frame. Make the capture device behave more like real devices when there's no frame to show. Signed-off-by: André Almeida --- drivers/media/platform/vimc/vimc-capture.c | 15

[PATCH 7/7] media: vimc.rst: Add output device

2019-07-02 Thread André Almeida
Add information about the output device. Remove wrong information about what the capture exposes. Signed-off-by: André Almeida --- Documentation/media/v4l-drivers/vimc.rst | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Documentation/media/v4l-drivers/vimc.rst

[PATCH 6/7] media: vimc.dot: Update default topology diagram

2019-07-02 Thread André Almeida
Update the default topology diagram to reflect the current state of the driver. Signed-off-by: André Almeida --- Documentation/media/v4l-drivers/vimc.dot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/media/v4l-drivers/vimc.dot

[PATCH 5/7] media: vimc: core: Add output device on the pipeline

2019-07-02 Thread André Almeida
Add the output video device on the hardcoded pipeline. Change the link to it be enabled by default. Signed-off-by: André Almeida --- drivers/media/platform/vimc/vimc-core.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/vimc/vimc-core.c

Re: mlxsw: spectrum: PTP: Support timestamping on Spectrum-1 - potential null ptr dereference

2019-07-02 Thread Petr Machata
Colin Ian King writes: > Hi, > > Static analysis with Coverity on today's linux-next has found a > potential null pointer dereference bug with the following commit: > > commit d92e4e6e33c8b19635be70fb8935b627d2e4f8fe > Author: Petr Machata > Date: Sun Jun 30 09:04:56 2019 +0300 > >

Re: [RFC PATCH v2 0/5] sched/cpufreq: Make schedutil energy aware

2019-07-02 Thread Peter Zijlstra
On Thu, Jun 27, 2019 at 06:15:58PM +0100, Douglas RAILLARD wrote: > Make schedutil cpufreq governor energy-aware. > > - patch 4 adds sugov_cpu_ramp_boost() function. > - patch 5 updates sugov_update_(single|shared)() to make use of > sugov_cpu_ramp_boost(). > > The benefits of using the EM in

Re: [PATCH v6 0/7] perf diff: diff cycles at basic block level

2019-07-02 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 28, 2019 at 10:02:55AM +0200, Jiri Olsa escreveu: > On Fri, Jun 28, 2019 at 05:22:57PM +0800, Jin Yao wrote: > > In some cases small changes in hot loops can show big differences. > > But it's difficult to identify these differences. > > > > perf diff currently can only diff symbols

Re: mlxsw: spectrum: PTP: Support timestamping on Spectrum-1 - potential null ptr dereference

2019-07-02 Thread Colin Ian King
On 02/07/2019 16:51, Petr Machata wrote: > > Colin Ian King writes: > >> Hi, >> >> Static analysis with Coverity on today's linux-next has found a >> potential null pointer dereference bug with the following commit: >> >> commit d92e4e6e33c8b19635be70fb8935b627d2e4f8fe >> Author: Petr Machata

Re: [alsa-devel] [PATCH] ALSA: usb-audio: fix Line6 Helix audio format rates

2019-07-02 Thread Wasko, Michal
On 7/2/2019 4:37 PM, Takashi Iwai wrote: On Tue, 02 Jul 2019 02:43:14 +0200, Nicola Lunghi wrote: Line6 Helix and HX stomp don't support retrieving the number of clock sample rate. Add a quirk to return the default value of 48Khz. Signed-off-by: Nicola Lunghi It's not particularly good

Re: [PATCH bpf-next] bpf: cgroup: Fix build error without CONFIG_NET

2019-07-02 Thread Stanislav Fomichev
On 07/02, YueHaibing wrote: > If CONFIG_NET is not set, gcc building fails: > > kernel/bpf/cgroup.o: In function `cg_sockopt_func_proto': > cgroup.c:(.text+0x237e): undefined reference to `bpf_sk_storage_get_proto' > cgroup.c:(.text+0x2394): undefined reference to `bpf_sk_storage_delete_proto' >

[PATCH v3 2/3] media: stm32-dcmi: add media controller support

2019-07-02 Thread Hugues Fruchet
Add media controller support to dcmi in order to walk within remote subdevices pipeline. Signed-off-by: Hugues Fruchet Change-Id: Id6280c58ea3c6f3d03da2027ac45df9f0e7a1da9 --- drivers/media/platform/Kconfig| 2 +- drivers/media/platform/stm32/stm32-dcmi.c | 52

[PATCH] stacktrace: Use PF_KTHREAD to check for kernel threads

2019-07-02 Thread Thomas Gleixner
!current->mm is not a reliable indicator for kernel threads as they might temporarily use a user mm. Check for PF_KTHREAD instead. Signed-off-by: Thomas Gleixner --- --- a/kernel/stacktrace.c +++ b/kernel/stacktrace.c @@ -228,7 +228,7 @@ unsigned int stack_trace_save_user(unsig };

[PATCH v3 0/3] DCMI bridge support

2019-07-02 Thread Hugues Fruchet
This patch serie allows to connect non-parallel camera sensor to DCMI thanks to a bridge connected in between such as STMIPID02 [1]. Media controller support is introduced first, then support of several sub-devices within pipeline with dynamic linking between them. In order to keep backward

[PATCH v3 3/3] media: stm32-dcmi: add support of several sub-devices

2019-07-02 Thread Hugues Fruchet
Add support of several sub-devices within pipeline instead of a single one. This allows to support a CSI-2 camera sensor connected through a CSI-2 to parallel bridge. Signed-off-by: Hugues Fruchet --- drivers/media/platform/stm32/stm32-dcmi.c | 204 +++--- 1 file

Re: [PATCH] crypto: ccp/gcm - use const time tag comparison.

2019-07-02 Thread Eric Biggers
On Tue, Jul 02, 2019 at 03:41:23PM +, Gary R Hook wrote: > On 7/1/19 7:25 PM, Eric Biggers wrote: > > On Mon, Jul 01, 2019 at 05:01:32PM -0700, Cfir Cohen wrote: > >> Avoid leaking GCM tag through timing side channel. > >> > >> Signed-off-by: Cfir Cohen > >> --- > >>

Re: [PATCH v3 0/4] Perf uncore PMU event alias support for Hisi hip08 ARM64 platform

2019-07-02 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 28, 2019 at 04:54:06PM +0200, Jiri Olsa escreveu: > On Fri, Jun 28, 2019 at 10:35:48PM +0800, John Garry wrote: > > This patchset adds support for uncore PMU event aliasing for HiSilicon > > hip08 ARM64 platform. > > > > We can now get proper event description for uncore events for

[PATCH v3 1/3] media: stm32-dcmi: improve sensor subdev naming

2019-07-02 Thread Hugues Fruchet
Rename "subdev" entity struct field to "source" to prepare for several subdev support. Move asd field on top of entity struct. Signed-off-by: Hugues Fruchet Change-Id: I1545a1a29a8061ee67cc6e4b799e9a69071911e7 --- drivers/media/platform/stm32/stm32-dcmi.c | 46 +++ 1

Re: [alsa-devel] [PATCH] ALSA: usb-audio: fix Line6 Helix audio format rates

2019-07-02 Thread Takashi Iwai
On Tue, 02 Jul 2019 17:52:01 +0200, Wasko, Michal wrote: > > On 7/2/2019 4:37 PM, Takashi Iwai wrote: > > On Tue, 02 Jul 2019 02:43:14 +0200, > > Nicola Lunghi wrote: > >> Line6 Helix and HX stomp don't support retrieving > >> the number of clock sample rate. > >> > >> Add a quirk to return the

Re: [PATCH] perf tools: Fix typos / broken sentences

2019-07-02 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 28, 2019 at 03:09:00PM -0700, Andi Kleen escreveu: > From: Andi Kleen > > - Fix a typo in the man page > - Fix a tip that doesn't make any sense. Thanks, applied. - Arnaldo > Signed-off-by: Andi Kleen > --- > tools/perf/Documentation/perf-report.txt | 2 +- >

Re: [PATCH 1/3] perf vendor events intel: Metric fixes for SKX/CLX

2019-07-02 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 28, 2019 at 03:07:35PM -0700, Andi Kleen escreveu: > From: Andi Kleen Thanks, applied the three patches. - Arnaldo > - Add a missing filter for the DRAM_Latency / DRAM_Parallel_Reads metrics > - Remove the useless PMM_* metrics from Skylake > > Signed-off-by: Andi Kleen > --- >

Re: linux-next: manual merge of the char-misc tree with the driver-core tree

2019-07-02 Thread Joerg Roedel
On Tue, Jul 02, 2019 at 11:23:34AM -0400, Michael S. Tsirkin wrote: > I can drop virtio iommu from my tree. Where's yours? I'd like to take a > last look and send an ack. It is not in my tree yet, because I was waiting for your ack on the patches wrt. the spec. Given that the merge window is

Re: [PATCH v2 1/5] PM: ACPI/PCI: Resume all devices during hibernation

2019-07-02 Thread Rafael J. Wysocki
On Mon, Jul 1, 2019 at 6:15 PM Mika Westerberg wrote: > > On Mon, Jul 01, 2019 at 12:44:25PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Both the PCI bus type and the ACPI PM domain avoid resuming > > runtime-suspended devices with DPM_FLAG_SMART_SUSPEND set during > >

Re: [PATCH 32/43] tools lib: Adopt strim() from the kernel

2019-07-02 Thread Arnaldo Carvalho de Melo
Em Mon, Jul 01, 2019 at 11:33:20PM -0400, André Goddard Rosa escreveu: > On Mon, Jul 1, 2019 at 22:28 Arnaldo Carvalho de Melo > wrote: > > > From: Arnaldo Carvalho de Melo > > > > Since we're working on moving stuff out of tools/perf/util/ to > > tools/lib/, take the opportunity to adopt

Re: [PATCH] perf tools: Fix bison warnings for pure parser

2019-07-02 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 28, 2019 at 10:05:07AM +0200, Jiri Olsa escreveu: > On Thu, Jun 27, 2019 at 03:20:21PM -0700, Andi Kleen wrote: > > From: Andi Kleen > > > > bison 3.4.1 complains during a perf build: > > > > util/parse-events.y:1.1-12: warning: deprecated directive, use ‘%define > > api.pure’

Re: [PATCH bpf-next] bpf: cgroup: Fix build error without CONFIG_NET

2019-07-02 Thread Yonghong Song
On 7/2/19 6:29 AM, YueHaibing wrote: > If CONFIG_NET is not set, gcc building fails: > > kernel/bpf/cgroup.o: In function `cg_sockopt_func_proto': > cgroup.c:(.text+0x237e): undefined reference to `bpf_sk_storage_get_proto' > cgroup.c:(.text+0x2394): undefined reference to

Re: [PATCH bpf-next] bpf: cgroup: Fix build error without CONFIG_NET

2019-07-02 Thread Yonghong Song
On 7/2/19 8:53 AM, Stanislav Fomichev wrote: > On 07/02, YueHaibing wrote: >> If CONFIG_NET is not set, gcc building fails: >> >> kernel/bpf/cgroup.o: In function `cg_sockopt_func_proto': >> cgroup.c:(.text+0x237e): undefined reference to `bpf_sk_storage_get_proto' >> cgroup.c:(.text+0x2394):

Re: [PATCH] openpromfs: Adjust three seq_printf() calls in property_show()

2019-07-02 Thread Joe Perches
On Tue, 2019-07-02 at 17:40 +0200, Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 2 Jul 2019 17:24:27 +0200 > > A bit of information should be put into a sequence. > Thus improve the execution speed for this data output by better usage > of corresponding functions. > > This issue was

Re: [PATCH v2 2/3] augmented rbtree: add new RB_DECLARE_CALLBACKS_MAX macro

2019-07-02 Thread Davidlohr Bueso
On Tue, 02 Jul 2019, Michel Lespinasse wrote: diff --git a/arch/x86/mm/pat_rbtree.c b/arch/x86/mm/pat_rbtree.c index fa16036fa592..2afad8e869fc 100644 --- a/arch/x86/mm/pat_rbtree.c +++ b/arch/x86/mm/pat_rbtree.c @@ -54,23 +54,10 @@ static u64 get_subtree_max_end(struct rb_node *node)

Re: memory leak in nfs_get_client

2019-07-02 Thread Eric Biggers
On Tue, Jul 02, 2019 at 07:23:32AM -0400, Benjamin Coddington wrote: > On 2 Jul 2019, at 2:31, Eric Biggers wrote: > > > On Tue, Jun 11, 2019 at 12:23:12PM -0400, Benjamin Coddington wrote: > > > Ugh.. Now that you can cancel the wait, you have to also handle if > > > "new" was > > > allocated.

Re: [PATCH bpf] xdp: fix race on generic receive path

2019-07-02 Thread Ilya Maximets
On 02.07.2019 18:01, Magnus Karlsson wrote: > On Tue, Jul 2, 2019 at 4:36 PM Ilya Maximets wrote: >> >> Unlike driver mode, generic xdp receive could be triggered >> by different threads on different CPU cores at the same time >> leading to the fill and rx queue breakage. For example, this >>

Re: [PATCH v2 1/3] augmented rbtree: add comments for RB_DECLARE_CALLBACKS macro

2019-07-02 Thread Davidlohr Bueso
On Tue, 02 Jul 2019, Michel Lespinasse wrote: Add a short comment summarizing the arguments to RB_DECLARE_CALLBACKS. The arguments are also now capitalized. This copies the style of the INTERVAL_TREE_DEFINE macro. No functional changes in this commit, only comments and capitalization.

[PATCH] PM: Move disabling/enabling runtime PM to noirq suspend/early resume

2019-07-02 Thread Muchun Song
Currently, the PM core disables runtime PM for all devices right after executing subsystem/driver .suspend_late() callbacks for them and re-enables it right before executing subsystem/driver .resume_early() callbacks for them. This may lead to problems when there are two devices such that the irq

Re: [for-next V2 06/10] linux/dim: Move implementation to .c files

2019-07-02 Thread Geert Uytterhoeven
Hi Saeed, Tal, On Tue, 25 Jun 2019, Saeed Mahameed wrote: From: Tal Gilboa Moved all logic from dim.h and net_dim.h to dim.c and net_dim.c. This is both more structurally appealing and would allow to only expose externally used functions. Signed-off-by: Tal Gilboa Signed-off-by:

WARNING: locking bug in do_ipv6_getsockopt

2019-07-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:6fbc7275 Linux 5.2-rc7 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13fb8fe5a0 kernel config: https://syzkaller.appspot.com/x/.config?x=f6451f0da3d42d53 dashboard link:

Re: [RFC PATCH] Replaces long number representation by BIT() macro

2019-07-02 Thread Segher Boessenkool
On Wed, Jul 03, 2019 at 01:19:34AM +1000, Michael Ellerman wrote: > What we could do is switch to the `UL` macro from include/linux/const.h, > rather than using our own ASM_CONST. You need gas 2.28 or later for that though. https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=86b80085

Re: [PATCH] stacktrace: Use PF_KTHREAD to check for kernel threads

2019-07-02 Thread Mark Rutland
On Tue, Jul 02, 2019 at 05:53:35PM +0200, Thomas Gleixner wrote: > !current->mm is not a reliable indicator for kernel threads as they might > temporarily use a user mm. Check for PF_KTHREAD instead. > > Signed-off-by: Thomas Gleixner FWIW: Acked-by: Mark Rutland As a heads-up, I started

Re: [PATCH v6 5/7] perf diff: Link same basic blocks among different data

2019-07-02 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 28, 2019 at 05:23:02PM +0800, Jin Yao escreveu: > The target is to compare the performance difference (cycles > diff) for the same basic blocks in different data files. > > The same basic block means same function, same start address > and same end address. This patch finds the same

Re: [PATCH v6 5/7] perf diff: Link same basic blocks among different data

2019-07-02 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 02, 2019 at 01:17:39PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Jun 28, 2019 at 05:23:02PM +0800, Jin Yao escreveu: > > The target is to compare the performance difference (cycles > > diff) for the same basic blocks in different data files. > > > > The same basic block

Re: [RFC PATCH 1/3] sched: Introduce new interface for scheduler soft affinity

2019-07-02 Thread Peter Zijlstra
On Wed, Jun 26, 2019 at 03:47:16PM -0700, subhra mazumdar wrote: > diff --git a/include/linux/sched.h b/include/linux/sched.h > index 1183741..b863fa8 100644 > --- a/include/linux/sched.h > +++ b/include/linux/sched.h > @@ -652,6 +652,8 @@ struct task_struct { > unsigned int

Re: [RFC PATCH 1/3] sched: Introduce new interface for scheduler soft affinity

2019-07-02 Thread Peter Zijlstra
On Wed, Jun 26, 2019 at 03:47:16PM -0700, subhra mazumdar wrote: > @@ -1082,6 +1088,37 @@ void do_set_cpus_allowed(struct task_struct *p, const > struct cpumask *new_mask) > put_prev_task(rq, p); > > p->sched_class->set_cpus_allowed(p, new_mask); > +

Re: WARNING: locking bug in do_ipv6_getsockopt

2019-07-02 Thread Eric Dumazet
On 7/2/19 9:17 AM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:    6fbc7275 Linux 5.2-rc7 > git tree:   upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=13fb8fe5a0 > kernel config: 

Re: [PATCH v2 0/2] x86/kvm/nVMX: fix Enlightened VMCLEAR

2019-07-02 Thread Paolo Bonzini
On 28/06/19 13:23, Vitaly Kuznetsov wrote: > VMCLEAR implementation for Enlightened VMCS is not entirely correct > when something else than the currently active eVMCS on the calling vCPU > is targeted. In case there's no currently active eVMCS on the calling vCPU > we are corrupting the targeted

Re: [PATCH V3 2/2] sched/fair: Fallback to sched-idle CPU if idle CPU isn't found

2019-07-02 Thread Subhra Mazumdar
On 7/2/19 1:35 AM, Peter Zijlstra wrote: On Mon, Jul 01, 2019 at 03:08:41PM -0700, Subhra Mazumdar wrote: On 7/1/19 1:03 AM, Viresh Kumar wrote: On 28-06-19, 18:16, Subhra Mazumdar wrote: On 6/25/19 10:06 PM, Viresh Kumar wrote: @@ -5376,6 +5376,15 @@ static struct { #endif /*

Re: [PATCH net-next v6 05/15] ethtool: helper functions for netlink interface

2019-07-02 Thread Michal Kubecek
On Tue, Jul 02, 2019 at 03:05:15PM +0200, Jiri Pirko wrote: > Tue, Jul 02, 2019 at 01:50:04PM CEST, mkube...@suse.cz wrote: > > > >+/* request header */ > >+ > >+/* use compact bitsets in reply */ > >+#define ETHTOOL_RF_COMPACT (1 << 0) > > "COMPACT_BITSETS"? > > >+/* provide optional

Re: [PATCH net-next v6 01/15] rtnetlink: provide permanent hardware address in RTM_NEWLINK

2019-07-02 Thread Michal Kubecek
On Tue, Jul 02, 2019 at 07:55:00AM -0700, Stephen Hemminger wrote: > On Tue, 2 Jul 2019 13:49:44 +0200 (CEST) > Michal Kubecek wrote: > > > Permanent hardware address of a network device was traditionally provided > > via ethtool ioctl interface but as Jiri Pirko pointed out in a review of > >

Re: [PATCH] PM: Move disabling/enabling runtime PM to noirq suspend/early resume

2019-07-02 Thread Muchun Song
Sorry, There are some problems with the subject, I have re-edited and sent the v2 patch. Update subject from: "PM: Move disabling/enabling runtime PM to noirq suspend/early resume" to: "PM: Move disabling/enabling runtime PM to suspend/resume noirq"

[PATCH v2] PM: Move disabling/enabling runtime PM to suspend/resume noirq

2019-07-02 Thread Muchun Song
Currently, the PM core disables runtime PM for all devices right after executing subsystem/driver .suspend_late() callbacks for them and re-enables it right before executing subsystem/driver .resume_early() callbacks for them. This may lead to problems when there are two devices such that the irq

[PATCH] fs/seq_file: Replace a seq_printf() call by seq_puts() in seq_hex_dump()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 18:28:10 +0200 A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function “seq_puts”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH v5 2/3] KVM: vmx: Emulate MSR IA32_UMWAIT_CONTROL

2019-07-02 Thread Paolo Bonzini
On 20/06/19 11:46, Xiaoyao Li wrote: > You cannot put the atomic switch here. What if umwait_control_cached is > changed > at runtime? Host kernel patch exposed a sysfs interface to let it happen. Thanks for the review, Xiaoyao. I agree with both of your remarks. Paolo >> +break;

Re: [PATCH v5 0/4] KVM: LAPIC: Implement Exitless Timer

2019-07-02 Thread Paolo Bonzini
On 21/06/19 11:39, Wanpeng Li wrote: > Dedicated instances are currently disturbed by unnecessary jitter due > to the emulated lapic timers fire on the same pCPUs which vCPUs resident. > There is no hardware virtual timer on Intel for guest like ARM. Both > programming timer in guest and the

[PATCH] ARC: [haps] Add Virtio support

2019-07-02 Thread Alexey Brodkin
As a preparation for QEMU usage for ARC let's add basic Virtio-MMIO peripherals support for the platform we're going to use. For now we add 5 Virtio slots in .dts and enable block and network devices via Virtio-MMIO. Note even though typically Virtio register set fits in 0x200 bytes we

Re: [PATCH] KVM: LAPIC: Fix pending interrupt in IRR blocked by software disable LAPIC

2019-07-02 Thread Paolo Bonzini
On 02/07/19 11:25, Wanpeng Li wrote: > From: Wanpeng Li > > Thomas reported that: > > | Background: > | > |In preparation of supporting IPI shorthands I changed the CPU offline > |code to software disable the local APIC instead of just masking it. > |That's done by clearing

Re: [PATCH 7/7] kbuild: compile-test kernel headers to ensure they are self-contained

2019-07-02 Thread Joel Fernandes
On Mon, Jul 01, 2019 at 09:58:45AM +0900, Masahiro Yamada wrote: > The headers in include/ are globally used in the kernel source tree > to provide common APIs. They are included from external modules, too. > > It will be useful to make as many headers self-contained as possible > so that we do

Re: [PATCH v4 0/3] KVM: Yield to IPI target if necessary

2019-07-02 Thread Paolo Bonzini
On 11/06/19 14:23, Wanpeng Li wrote: > The idea is from Xen, when sending a call-function IPI-many to vCPUs, > yield if any of the IPI target vCPUs was preempted. 17% performance > increasement of ebizzy benchmark can be observed in an over-subscribe > environment. (w/ kvm-pv-tlb disabled,

Re: Signed-off-by for the fix-late-interrupts patch?

2019-07-02 Thread Paul E. McKenney
On Tue, Jul 02, 2019 at 10:36:32AM +0200, Peter Zijlstra wrote: > On Mon, Jul 01, 2019 at 02:39:31PM -0700, Paul E. McKenney wrote: > > Hello, Peter, > > > > The patch below from your earlier email is doing fine in my testing. > > May I please add your Signed-of-by and designate you as author? >

Re: [RFC PATCH] Replaces long number representation by BIT() macro

2019-07-02 Thread Segher Boessenkool
On Tue, Jul 02, 2019 at 11:16:35AM -0500, Segher Boessenkool wrote: > On Wed, Jul 03, 2019 at 01:19:34AM +1000, Michael Ellerman wrote: > > What we could do is switch to the `UL` macro from include/linux/const.h, > > rather than using our own ASM_CONST. > > You need gas 2.28 or later for that

Re: [for-next][PATCH 12/16] kprobes: Initialize kprobes at postcore_initcall

2019-07-02 Thread Mark Rutland
On Sun, May 26, 2019 at 03:18:40PM -0400, Steven Rostedt wrote: > From: Masami Hiramatsu > > Initialize kprobes at postcore_initcall level instead of module_init > since kprobes is not a module, and it depends on only subsystems > initialized in core_initcall. > This will allow ftrace kprobe

[PATCH RFC 1/4] ACPI/AEST: Initial AEST driver

2019-07-02 Thread Tyler Baicar OS
Add support for parsing the ARM Error Source Table and basic handling of errors reported through both memory mapped and system register interfaces. Signed-off-by: Tyler Baicar --- arch/arm64/include/asm/ras.h | 41 + arch/arm64/kernel/Makefile | 2 +- arch/arm64/kernel/ras.c | 67

[PATCH RFC 2/4] arm64: mm: Add RAS extension system register check to SEA handling

2019-07-02 Thread Tyler Baicar OS
On systems that support the ARM RAS extension, synchronous external abort syndrome information could be captured in the core's RAS extension system registers. So, when handling SEAs check the RAS system registers for error syndrome information. Signed-off-by: Tyler Baicar ---

[PATCH RFC 3/4] arm64: traps: Add RAS extension system register check to serror handling

2019-07-02 Thread Tyler Baicar OS
On systems that support the ARM RAS extension, serror interrupt syndrome information could be captured in the core's RAS extension system registers. When handling serrors, check the RAS system registers for error syndrome information. Signed-off-by: Tyler Baicar --- arch/arm64/kernel/traps.c |

[PATCH RFC 4/4] trace, ras: add ARM RAS extension trace event

2019-07-02 Thread Tyler Baicar OS
Add a trace event for hardware errors reported by the ARMv8.2 RAS extension registers. Signed-off-by: Tyler Baicar --- arch/arm64/kernel/ras.c | 3 +++ drivers/acpi/arm64/aest.c | 4 include/ras/ras_event.h | 46 ++ 3 files changed, 53

[PATCH RFC 0/4] ARM Error Source Table Support

2019-07-02 Thread Tyler Baicar OS
This series adds support for the ARM Error Source Table (AEST) based on the latest version of the AEST from ARM [0]. The AEST driver supports both memory mapped and system register interfaces. This series assumes system register interfaces are only registered with private peripheral interrupts

Re: [PATCH 5/7] kheaders: remove meaningless -R option of 'ls'

2019-07-02 Thread Joel Fernandes
On Mon, Jul 01, 2019 at 09:58:43AM +0900, Masahiro Yamada wrote: > The -R option of 'ls' is supposed to be used for directories. > >-R, --recursive > list subdirectories recursively > > Since 'find ... -type f' only matches to regular files, we do not > expect directories

Re: [PATCH 4.19 00/72] 4.19.57-stable review

2019-07-02 Thread Naresh Kamboju
On Tue, 2 Jul 2019 at 13:36, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.57 release. > There are 72 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: nvmem creates multiple devices with the same name

2019-07-02 Thread Srinivas Kandagatla
Hi Sascha, On 01/07/2019 09:06, Sascha Hauer wrote: Hi Srinivas, On Tue, May 21, 2019 at 11:21:07AM +0200, Sascha Hauer wrote: On Tue, May 21, 2019 at 10:02:32AM +0100, Srinivas Kandagatla wrote: On 21/05/2019 09:56, Sascha Hauer wrote: . Are there any suggestions how to register the

Re: [PATCH] mm/z3fold: Fix z3fold_buddy_slots use after free

2019-07-02 Thread Henry Burns
On Tue, Jul 2, 2019 at 12:45 AM Vitaly Wool wrote: > > Hi Henry, > > On Mon, Jul 1, 2019 at 8:31 PM Henry Burns wrote: > > > > Running z3fold stress testing with address sanitization > > showed zhdr->slots was being used after it was freed. > > > > z3fold_free(z3fold_pool, handle) > >

[PATCH] Documentation: kvm: document CPUID bit for MSR_KVM_POLL_CONTROL

2019-07-02 Thread Paolo Bonzini
Cc: Marcelo Tosatti Signed-off-by: Paolo Bonzini --- Documentation/virtual/kvm/cpuid.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/virtual/kvm/cpuid.txt b/Documentation/virtual/kvm/cpuid.txt index 979a77ba5377..2bdac528e4a2 100644 ---

[PATCH v2 0/2] RK3288 VP8 decoding support

2019-07-02 Thread Ezequiel Garcia
This patchset adds support for Hantro G1 VP8 stateless decoding, as available on RK3288 SoC. In order to support VP8 stateless decoding, a new pixel format is introduced V4L2_PIX_FMT_VP8_FRAME, to be used with a new control V4L2_CID_MPEG_VIDEO_VP8_FRAME_HEADER. As suggested by Boris on this new

[PATCH v2 1/2] media: uapi: Add VP8 stateless decoder API

2019-07-02 Thread Ezequiel Garcia
From: Pawel Osciak Add the parsed VP8 frame pixel format and controls, to be used with the new stateless decoder API for VP8 to provide parameters for accelerator (aka stateless) codecs. Signed-off-by: Pawel Osciak Signed-off-by: Ezequiel Garcia -- Changes from v1: * Move 1-bit fields to

[PATCH v2 2/2] media: hantro: Add support for VP8 decoding on rk3288

2019-07-02 Thread Ezequiel Garcia
From: ZhiChao Yu Introduce VP8 decoding support in RK3288. Signed-off-by: ZhiChao Yu Signed-off-by: Tomasz Figa Signed-off-by: Boris Brezillon Signed-off-by: Ezequiel Garcia --- Changes from v1: * Place operators at the end of each line. * Update to uAPI changes. ---

Re: [PATCH v1 11/11] perf cs-etm: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Mathieu Poirier
Hi Leo, On Tue, Jul 02, 2019 at 06:34:20PM +0800, Leo Yan wrote: > Based on the following report from Smatch, fix the potential > NULL pointer dereference check. > > tools/perf/util/cs-etm.c:2545 > cs_etm__process_auxtrace_info() error: we previously assumed > 'session->itrace_synth_opts'

Re: [PATCH 1/3] drm/bridge: ti-sn65dsi86: add link to datasheet

2019-07-02 Thread Jeffrey Hugo
On Tue, Jul 2, 2019 at 9:45 AM Rob Clark wrote: > > From: Rob Clark > > The bridge has pretty good docs, lets add a link to make them easier to > find. > > Signed-off-by: Rob Clark This is in the DT binding, but having it in the driver as well is a nice touch. Reviewed-by: Jeffrey Hugo

Re: linux-next: manual merge of the char-misc tree with the driver-core tree

2019-07-02 Thread Michael S. Tsirkin
On Tue, Jul 02, 2019 at 05:58:51PM +0200, Joerg Roedel wrote: > On Tue, Jul 02, 2019 at 11:23:34AM -0400, Michael S. Tsirkin wrote: > > I can drop virtio iommu from my tree. Where's yours? I'd like to take a > > last look and send an ack. > > It is not in my tree yet, because I was waiting for

Re: [PATCH] proc/sysctl: add shared variables for range check

2019-07-02 Thread Alexey Dobriyan
> -static long zero; > static long long_max = LONG_MAX; > > struct ctl_table epoll_table[] = { > @@ -301,7 +300,7 @@ struct ctl_table epoll_table[] = { > .maxlen = sizeof(max_user_watches), > .mode = 0644, > .proc_handler =

[PATCH] bpf: Replace a seq_printf() call by seq_puts() in btf_enum_seq_show()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 19:04:08 +0200 A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function “seq_puts”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH 0/2] Support for buttons on newer MS Surface devices

2019-07-02 Thread Andy Shevchenko
On Tue, Jul 2, 2019 at 3:38 AM Maximilian Luz wrote: > > This series adds suport for power and volume buttons on 5th and 6th > generation Microsoft Surface devices. Specifically, it adds support for > the power-button on the Surface Laptop 1 and Laptop 2, as well as > support for power- and

Re: [PATCH] proc/sysctl: add shared variables for range check

2019-07-02 Thread Matteo Croce
On Tue, Jul 2, 2019 at 7:13 PM Alexey Dobriyan wrote: > > > -static long zero; > > static long long_max = LONG_MAX; > > > > struct ctl_table epoll_table[] = { > > @@ -301,7 +300,7 @@ struct ctl_table epoll_table[] = { > > .maxlen = sizeof(max_user_watches), > >

Re: [PATCH 0/2] Support for buttons on newer MS Surface devices

2019-07-02 Thread Maximilian Luz
On 7/2/19 7:13 PM, Andy Shevchenko wrote: I re-pushed to my queue, though if you are going to send a new version, check my repository for the titles of the patches (you need to use correct templates for the subsystems). Got it, sorry for the inconvenience. Thank you! Maximilian

[PATCH] vmw_balloon: Remove Julien from the maintainers list

2019-07-02 Thread Nadav Amit
Julien will not be a maintainer anymore. Signed-off-by: Nadav Amit --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 01a52fc964da..f85874b1e653 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16886,7 +16886,6 @@ F: drivers/vme/ F:

Re: [PATCH v2 0/6] musb: Improve performance for hub-attached webcams

2019-07-02 Thread Matwey V. Kornilov
Ping? пт, 14 июн. 2019 г. в 19:47, Matwey V. Kornilov : > > The series is concerned to issues with isochronous transfer while > streaming the USB webcam data. I discovered the issue first time > when attached PWC USB webcam to AM335x-based BeagleBone Black SBC. > It appeared that the root issue

Re: [RFC PATCH 2/3] sched: change scheduler to give preference to soft affinity CPUs

2019-07-02 Thread Peter Zijlstra
On Wed, Jun 26, 2019 at 03:47:17PM -0700, subhra mazumdar wrote: > The soft affinity CPUs present in the cpumask cpus_preferred is used by the > scheduler in two levels of search. First is in determining wake affine > which choses the LLC domain and secondly while searching for idle CPUs in > LLC

[GIT PULL] SELinux patches for v5.3

2019-07-02 Thread Paul Moore
ernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git tags/selinux-pr-20190702 for you to fetch changes up to ea74a685ad819aeed316a9bae3d2a5bf762da82d: selinux: format all invalid context as untrusted (2019-07-01 16:29:05 -0400)

Re: [PATCH v2 0/6] musb: Improve performance for hub-attached webcams

2019-07-02 Thread Bin Liu
Matwey, On Tue, Jul 02, 2019 at 08:29:03PM +0300, Matwey V. Kornilov wrote: > Ping? I was offline and just got back. I will review it soon. Sorry for the delay. -Bin. > > пт, 14 июн. 2019 г. в 19:47, Matwey V. Kornilov : > > > > The series is concerned to issues with isochronous transfer

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