Re: [PATCH v3 1/2] rcu/tree: Add basic support for kfree_rcu batching

2019-08-14 Thread Paul E. McKenney
On Wed, Aug 14, 2019 at 01:22:33PM -0400, Joel Fernandes wrote: > On Wed, Aug 14, 2019 at 10:38:17AM -0400, Joel Fernandes wrote: > > On Tue, Aug 13, 2019 at 12:07:38PM -0700, Paul E. McKenney wrote: > [snip] > > > > - * Queue an RCU callback for lazy invocation after a grace period. > > > > - * T

[PATCH 18/28] perf record: Add an option to take an AUX snapshot on exit

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Alexander Shishkin It is sometimes useful to generate a snapshot when perf record exits; I've been using a wrapper script around the workload that would do a killall -USR2 perf when the workload exits. This patch makes it easier and also works when perf record is attached to a pre-existing

[PATCH 14/28] perf tools: Add NO_LIBCAP=1 to the minimal build test

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We need to add these so that we test building without all selectable features. Acked-by: Igor Lubashev Cc: Alexander Shishkin Cc: Alexey Budankov Cc: James Morris Cc: Jiri Olsa Cc: Mathieu Poirier Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Suzuki Poulouse Lin

[PATCH 19/28] perf tools: Add aux_output attribute flag

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add aux_output attribute flag to match the kernel's perf_event.h file. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Kan Liang Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20190806084606.4021-4-alexander.shish...@linux.intel.com Signed-off-by: Ale

[PATCH 22/28] perf tools: Add aux-output config term

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Expose the aux_output attribute flag to the user to configure, by adding a config term 'aux-output'. For events that support it, selection of 'aux-output' causes the generation of AUX records instead of event records. This requires that an AUX area event is also provided. Sig

[PATCH 24/28] perf evsel: Provide meaningful warning when trying to use 'aux_output' on older kernels

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Just like we do with the 'write_backwards' feature: Before: # perf record -e {intel_pt/branch=0/,cycles/aux-output/ppp} uname Error: The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (cycles/aux-output/ppp). /bin/dmesg | grep

[PATCH 23/28] perf intel-pt: Add brief documentation for PEBS via Intel PT

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Document how to select PEBS via Intel PT and how to display synthesized PEBS samples. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Kan Liang Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20190806084606.4021-8-alexander.shish...@linux.intel.com Sig

[PATCH 28/28] perf ui: No need to set ui_browser to 1 twice

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We need to do it only when fallbacking from GTK to the TUI. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-dda0acxqef1k72n9z4myj...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/ui/setup.c | 2 +- 1

[RESEND][PATCH v3 16/26] drm: kirin: Move mode config function to driver_data

2019-08-14 Thread John Stultz
From: Xu YiPing As part of refactoring the kirin driver to better support different hardware revisions, this patch moves the mode config initialization values into the kirin_drm_data structure. This will make it easier to add support for new devices via a new kirin_drm_data structure. Cc: Rongr

[RESEND][PATCH v3 07/26] drm: kirin: Rename ade_plane to kirin_plane

2019-08-14 Thread John Stultz
From: Xu YiPing As part of refactoring the kirin driver to better support different hardware revisions, this patch renames the struct ade_plane to kirin_plane. The struct kirin_plane will later used by both kirin620 and future kirin960 driver, and will be moved to a common kirin_drm_drv.h in a f

[RESEND][PATCH v3 22/26] drm: kirin: Fix dev->driver_data setting

2019-08-14 Thread John Stultz
From: Xu YiPing As part of refactoring the kirin driver to better support different hardware revisions, this patch changes the dev->driver_data to point to a drm_device, not ade_data. Thus we set the driver data to drm device after alloc. Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc

[RESEND][PATCH v3 26/26] drm: kirin: Move ade drm init to kirin drm drv

2019-08-14 Thread John Stultz
From: Xu YiPing As part of refactoring the kirin driver to better support different hardware revisions, this patch renames ade_data to kirin_drm_private, and moves crtc_init and plane_init to kirin drm drv too. Now that they are generic the functions can be shared between the kirin620 and (to be

[PATCH 25/28] tools: Keep list of tools in alphabetical order

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Andy Shevchenko When `make help` is executed it lists the possible tools to build, though couple of entries is kept unordered. Fix it here. Signed-off-by: Andy Shevchenko Acked-by: Song Liu Cc: Alexei Starovoitov Cc: Daniel Borkmann Cc: Martin KaFai Lau Cc: Yonghong Song Link: https:

[PATCH 27/28] perf record: Support aarch64 random socket_id assignment

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Tan Xiaojun Same as in the commit 01766229533f ("perf record: Support s390 random socket_id assignment"), aarch64 also have this problem. Without this fix: [root@localhost perf]# ./perf report --header -I -v ... socket_id number is too big.You may need to upgrade the perf tool. #

[RESEND][PATCH v3 00/26] drm: Kirin driver cleanups to prep for Kirin960 support

2019-08-14 Thread John Stultz
Just wanted to resend this patch set so I didn't have to continue carrying it forever to keep the HiKey960 board running. This patchset contains one fix (in the front, so its easier to eventually backport), and a series of changes from YiPing to refactor the kirin drm driver so that it can be used

[RESEND][PATCH v3 03/26] drm: kirin: Remove HISI_KIRIN_DW_DSI config option

2019-08-14 Thread John Stultz
The CONFIG_HISI_KIRIN_DW_DSI option is only used w/ kirin driver, so cut out the middleman and condense the config logic down. Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: John Stultz --- drive

[RESEND][PATCH v3 13/26] drm: kirin: Reanme dc_ops to kirin_drm_data

2019-08-14 Thread John Stultz
From: Xu YiPing As part of refactoring the kirin driver to better support different hardware revisions, this patch renames the struct kirin_dc_ops to struct kirin_drm_data and cleans up the related variable names. Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-d

[RESEND][PATCH v3 04/26] drm: kirin: Remove unreachable return

2019-08-14 Thread John Stultz
The 'return 0' in kirin_drm_platform_probe() is unreachable code, so remove it. Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Suggested by: Xu YiPing Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/k

[RESEND][PATCH v3 15/26] drm: kirin: Move channel formats to driver data

2019-08-14 Thread John Stultz
From: Xu YiPing As part of refactoring the kirin driver to better support different hardware revisions, this patch moves the channel format arrays into the kirin_drm_data structure. This will make it easier to add support for new devices via a new kirin_drm_data structure. Cc: Rongrong Zou Cc:

[PATCH 21/28] perf intel-pt: Process options for PEBS event synthesis

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Process synth_opts.other_events and attr.aux_output to set up for synthesizing PEBs via Intel PT events. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Kan Liang Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20190806084606.4021-6-alexander.shish...@

[PATCH 26/28] perf.data documentation: Clarify HEADER_SAMPLE_TOPOLOGY format

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Vince Weaver The perf.data file format documentation for HEADER_SAMPLE_TOPOLOGY specifies the layout in a confusing manner that doesn't match the rest of the document. This patch attempts to describe things consistent with the rest of the file. Signed-off-by: Vince Weaver Acked-by: Jiri

[RESEND][PATCH v3 18/26] drm: kirin: Move config max_width and max_height to driver data

2019-08-14 Thread John Stultz
From: Xu YiPing As part of refactoring the kirin driver to better support different hardware revisions, this patch moves the max_width and max_height values used in kirin_drm_mode_config_inita to hardware specific driver data. This will make it easier to add support for new devices via a new kir

[RESEND][PATCH v3 01/26] drm: kirin: Fix for hikey620 display offset problem

2019-08-14 Thread John Stultz
From: Da Lv The original HiKey (620) board has had a long running issue where when using a 1080p montior, the display would occasionally blink and come come back with a horizontal offset (usually also shifting the colors, depending on the value of the offset%4). After lots of analysis by HiSi de

[RESEND][PATCH v3 09/26] drm: kirin: Dynamically allocate the hw_ctx

2019-08-14 Thread John Stultz
From: Xu YiPing As part of refactoring the kirin driver to better support different hardware revisions, this patch modifies the initialization function to dynamically allocate the ade_hw_ctx structure previously kept as part of struct ade_data. This is done so that later we can have the hw_ctx p

[RESEND][PATCH v3 05/26] drm: kirin: Remove uncessary parameter indirection

2019-08-14 Thread John Stultz
From: Xu YiPing In a few functions, we pass in a struct ade_crtc, which we only use to get to the underlying struct ade_hw_ctx. Thus this patch refactors the functions to just take the struct ade_hw_ctx directly. Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-d

Re: [PATCH v3 3/4] perf: Use CAP_SYSLOG with kptr_restrict checks

2019-08-14 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 14, 2019 at 12:04:33PM -0600, Mathieu Poirier escreveu: > On Wed, 7 Aug 2019 at 08:44, Igor Lubashev wrote: > > > > Kernel is using CAP_SYSLOG capability instead of uid==0 and euid==0 when > > checking kptr_restrict. Make perf do the same. > > > > Also, the kernel is a more restrictive

[RESEND][PATCH v3 02/26] drm: kirin: Get rid of drmP.h includes

2019-08-14 Thread John Stultz
Remove use of drmP.h in kirin driver Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Suggested-by: Sam Ravnborg Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 6 +- drivers/gpu/drm/hisilicon/kirin/ki

[GIT PULL] Wimplicit-fallthrough patches for 5.3-rc5

2019-08-14 Thread Gustavo A. R. Silva
The following changes since commit 609488bc979f99f805f34e9a32c1e3b71179d10b: Linux 5.3-rc2 (2019-07-28 12:47:02 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git tags/Wimplicit-fallthrough-5.3-rc5 for you to fetch changes up t

[RESEND][PATCH v3 11/26] drm: kirin: Move workqueue to ade_hw_ctx structure

2019-08-14 Thread John Stultz
The workqueue used to reset the display when we hit an LDI underflow error is ADE specific, so since this patch series works to make the kirin_crtc structure more generic, move the workqueue to the ade_hw_ctx structure instead. Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vette

[PATCH 20/28] perf tools: Add itrace option 'o' to synthesize aux-output events

2019-08-14 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add itrace option 'o' to synthesize events recorded in the AUX area due to the use of perf record's aux-output config term. Signed-off-by: Adrian Hunter Cc: Jiri Olsa Cc: Kan Liang Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20190806084606.4021-5-

[RESEND][PATCH v3 12/26] drm: kirin: Move kirin_crtc, kirin_plane, kirin_format to kirin_drm_drv.h

2019-08-14 Thread John Stultz
From: Xu YiPing As part of refactoring the kirin driver to better support different hardware revisions, this patch moves some shared structures and helpers to the common kirin_drm_drv.h These structures will later used by both kirin620 and future kirin960 driver Cc: Rongrong Zou Cc: Xinliang L

[RESEND][PATCH v3 06/26] drm: kirin: Remove out_format from ade_crtc

2019-08-14 Thread John Stultz
From: Xu YiPing As part of refactoring the kirin driver to better support different hardware revisions, this patch removes the out_format field in the struct ade_crtc, which was only ever set to LDI_OUT_RGB_888. Thus this patch removes the field and instead directly uses LDI_OUT_RGB_888. Cc: Ro

Re: [PATCH v3 3/4] perf: Use CAP_SYSLOG with kptr_restrict checks

2019-08-14 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 14, 2019 at 03:48:14PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Aug 14, 2019 at 12:04:33PM -0600, Mathieu Poirier escreveu: > > # echo 0 > /proc/sys/kernel/kptr_restrict > > # ./tools/perf/perf record -e instructions:k uname > > perf: Segmentation fault > > Obtained 10 stack

Re: [PATCH 01/22] arm64: dts: qcom: sm8150: add base dts file

2019-08-14 Thread Bjorn Andersson
On Wed 14 Aug 11:35 PDT 2019, Stephen Boyd wrote: > Quoting Bjorn Andersson (2019-08-14 10:44:39) > > On Wed 14 Aug 09:58 PDT 2019, Stephen Boyd wrote: > > > > > Quoting Vinod Koul (2019-08-14 05:49:51) > > > > diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi > > > > b/arch/arm64/boot/dts/qcom/

Re: [PATCH v2 4/5] mm/memory_hotplug: Make sure the pfn is aligned to the order when onlining

2019-08-14 Thread David Hildenbrand
On 14.08.19 20:32, Michal Hocko wrote: > On Wed 14-08-19 18:09:16, David Hildenbrand wrote: >> On 14.08.19 17:41, David Hildenbrand wrote: >>> Commit a9cd410a3d29 ("mm/page_alloc.c: memory hotplug: free pages as higher >>> order") assumed that any PFN we get via memory resources is aligned to >>> t

Re: [PATCH 04/22] media: Move v4l2_fwnode_parse_link from v4l2 to driver base

2019-08-14 Thread Steve Longerbeam
On 8/14/19 3:30 AM, Russell King - ARM Linux admin wrote: On Tue, Aug 06, 2019 at 09:53:41AM -0700, Steve Longerbeam wrote: The full patchset doesn't seem to be up yet, but see [1] for the cover letter. Was the entire series copied to the mailing lists, or just selected patches? I only saw

[PATCH -next] mm/kmemleak: record the current memory pool size

2019-08-14 Thread Qian Cai
The only way to obtain the current memory pool size for a running kernel is to check back the kernel config file which is inconvenient. Record it in the kernel messages. Signed-off-by: Qian Cai --- mm/kmemleak.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/kmemleak.c

[PATCH net-next, 0/6] Add software backchannel and mlx5e HV VHCA stats

2019-08-14 Thread Haiyang Zhang
This patch set adds paravirtual backchannel in software in pci_hyperv, which is required by the mlx5e driver HV VHCA stats agent. The stats agent is responsible on running a periodic rx/tx packets/bytes stats update. Dexuan Cui (1): PCI: hv: Add a paravirtual backchannel in software Eran Ben

[PATCH net-next, 3/6] net/mlx5: Add wrappers for HyperV PCIe operations

2019-08-14 Thread Haiyang Zhang
From: Eran Ben Elisha Add wrapper functions for HyperV PCIe read / write / block_invalidate_register operations. This will be used as an infrastructure in the downstream patch for software communication. This will be enabled by default if CONFIG_PCI_HYPERV_MINI is set. Signed-off-by: Eran Ben

[PATCH net-next, 4/6] net/mlx5: Add HV VHCA infrastructure

2019-08-14 Thread Haiyang Zhang
From: Eran Ben Elisha HV VHCA is a layer which provides PF to VF communication channel based on HyperV PCI config channel. It implements Mellanox's Inter VHCA control communication protocol. The protocol contains control block in order to pass messages between the PF and VF drivers, and data bloc

[PATCH net-next, 1/6] PCI: hv: Add a paravirtual backchannel in software

2019-08-14 Thread Haiyang Zhang
From: Dexuan Cui Windows SR-IOV provides a backchannel mechanism in software for communication between a VF driver and a PF driver. These "configuration blocks" are similar in concept to PCI configuration space, but instead of doing reads and writes in 32-bit chunks through a very slow path, pac

[PATCH net-next, 2/6] PCI: hv: Add a Hyper-V PCI mini driver for software backchannel interface

2019-08-14 Thread Haiyang Zhang
This mini driver is a helper driver allows other drivers to have a common interface with the Hyper-V PCI frontend driver. Signed-off-by: Haiyang Zhang Signed-off-by: Saeed Mahameed --- MAINTAINERS | 1 + drivers/pci/Kconfig | 1 + drivers/pci/

[PATCH net-next, 6/6] net/mlx5e: Add mlx5e HV VHCA stats agent

2019-08-14 Thread Haiyang Zhang
From: Eran Ben Elisha HV VHCA stats agent is responsible on running a preiodic rx/tx packets/bytes stats update. Currently the supported format is version MLX5_HV_VHCA_STATS_VERSION. Block ID 1 is dedicated for statistics data transfer from the VF to the PF. The reporter fetch the statistics dat

[PATCH net-next, 5/6] net/mlx5: Add HV VHCA control agent

2019-08-14 Thread Haiyang Zhang
From: Eran Ben Elisha Control agent is responsible over of the control block (ID 0). It should update the PF via this block about every capability change. In addition, upon block 0 invalidate, it should activate all other supported agents with data requests from the PF. Upon agent create/destroy

Re: [PATCH] nvme: Add quirk for LiteON CL1 devices running FW 22301111

2019-08-14 Thread Sagi Grimberg
Looks fine to me, Keith can we get a review from you?

Re: [alsa-devel] [RFC PATCH 31/40] soundwire: intel: move shutdown() callback and don't export symbol

2019-08-14 Thread Pierre-Louis Bossart
+void intel_shutdown(struct snd_pcm_substream *substream, +    struct snd_soc_dai *dai) +{ +    struct sdw_cdns_dma_data *dma; + +    dma = snd_soc_dai_get_dma_data(dai, substream); +    if (!dma) +    return; + +    snd_soc_dai_set_dma_data(dai, substream, NULL); +    kfree(dma);

Re: [PATCH] nvme: Add quirk for LiteON CL1 devices running FW 22301111

2019-08-14 Thread Keith Busch
On Wed, Aug 14, 2019 at 09:05:49AM -0700, Mario Limonciello wrote: > diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c > index 8f3fbe5..47c7754 100644 > --- a/drivers/nvme/host/core.c > +++ b/drivers/nvme/host/core.c > @@ -2251,6 +2251,29 @@ static const struct nvme_core_quirk_entry

[PATCH] ARM: vf610-zii-cfu1: Add node for switch watchdog

2019-08-14 Thread Andrey Smirnov
Add I2C child node for switch watchdog present on CFU1. Signed-off-by: Andrey Smirnov Signed-off-by: Cory Tusar Cc: Shawn Guo Cc: Chris Healy Cc: Fabio Estevam Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org --- arch/arm/boot/dts/vf610-zii-cfu1.dts | 19

RE: [PATCH] nvme: Add quirk for LiteON CL1 devices running FW 22301111

2019-08-14 Thread Mario.Limonciello
> -Original Message- > From: Keith Busch > Sent: Wednesday, August 14, 2019 2:32 PM > To: Limonciello, Mario > Cc: Jens Axboe; Christoph Hellwig; Sagi Grimberg; linux- > n...@lists.infradead.org; LKML; Hong, Ryan; Wang, Crag; s...@google.com; > Hyde, Charles - Dell Team; Dominguez, Jared >

Re: [PATCH bpf-next 1/3] libbpf: add asm/unistd.h to xsk to get __NR_mmap2

2019-08-14 Thread Ivan Khoronzhuk
On Wed, Aug 14, 2019 at 03:32:24PM +0200, Björn Töpel wrote: On Wed, 14 Aug 2019 at 13:57, Ivan Khoronzhuk wrote: On Wed, Aug 14, 2019 at 12:24:05PM +0300, Ivan Khoronzhuk wrote: >On Tue, Aug 13, 2019 at 04:38:13PM -0700, Andrii Nakryiko wrote: > >Hi, Andrii > >>On Tue, Aug 13, 2019 at 3:24 AM

Re: [PATCH] lsilogic mpt fusion: mptctl: Fixed race condition around mptctl_id variable using mutexes

2019-08-14 Thread kbuild test robot
Hi Mark, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [cannot apply to v5.3-rc4 next-20190814] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH bpf-next 1/3] libbpf: add asm/unistd.h to xsk to get __NR_mmap2

2019-08-14 Thread Andrii Nakryiko
On Wed, Aug 14, 2019 at 2:24 AM Ivan Khoronzhuk wrote: > > On Tue, Aug 13, 2019 at 04:38:13PM -0700, Andrii Nakryiko wrote: > > Hi, Andrii > > >On Tue, Aug 13, 2019 at 3:24 AM Ivan Khoronzhuk > > wrote: > >> > >> That's needed to get __NR_mmap2 when mmap2 syscall is used. > >> > >> Signed-off-by:

[PATCH v6 00/11] media: hantro: Add support for H264 decoding

2019-08-14 Thread Ezequiel Garcia
Small respin of H264 uAPI review and Hantro G1 H264 decoding support. Compared to previous version, this version does some more improvements on the uAPI spec, addressing feedback from Hans and Paul. I really hope I managed to get this right, and address current concerns. Here's previous cover let

[PATCH v6 02/11] media: uapi: h264: Rename pixel format

2019-08-14 Thread Ezequiel Garcia
The V4L2_PIX_FMT_H264_SLICE_RAW name was originally suggested because the pixel format would represent H264 slices without any start code. However, as we will now introduce a start code menu control, give the pixel format a more meaningful name, while it's still early enough to do so. Signed-off-

[PATCH v6 06/11] media: cedrus: Cleanup control initialization

2019-08-14 Thread Ezequiel Garcia
In order to introduce other controls, the control initialization needs to support an initial struct v4l2_ctrl_control. While here, let's cleanup the control initialization, removing unneeded fields. Signed-off-by: Ezequiel Garcia --- Changes in v6: * None. Changes in v5: * None. Changes in v4: *

[PATCH v6 04/11] media: uapi: h264: Add the concept of start code

2019-08-14 Thread Ezequiel Garcia
Stateless decoders have different expectations about the start code that is prepended on H264 slices. Add a menu control to express the supported start code types (including no start code). Drivers are allowed to support only one start code type, but they can support both too. Note that this is i

[PATCH v6 03/11] media: uapi: h264: Add the concept of decoding mode

2019-08-14 Thread Ezequiel Garcia
From: Boris Brezillon Some stateless decoders don't support per-slice decoding granularity (or at least not in a way that would make them efficient or easy to use). Expose a menu to control the supported decoding modes. Drivers are allowed to support only one decoding but they can support both t

[PATCH v6 08/11] media: hantro: Move copy_metadata() before doing a decode operation

2019-08-14 Thread Ezequiel Garcia
From: Boris Brezillon Some decoders use intra slice/frame references. The capture buffer pointed by these references might be new and thus have invalid timestamp which prevents the decoder logic from retrieving the vb2_buffer object based on the output buf timestamp. Copy all metadata (including

[PATCH v6 07/11] media: cedrus: Specify H264 startcode and decoding mode

2019-08-14 Thread Ezequiel Garcia
The cedrus VPU is slice-based and expects V4L2_PIX_FMT_H264_SLICE buffers to contain H264 slices with no start code. Expose this to userspace with the newly added menu control. These two controls are specified as mandatory for applications, but we mark them as non-required on the driver side for

[PATCH v6 10/11] media: hantro: Add support for H264 decoding on G1

2019-08-14 Thread Ezequiel Garcia
From: Hertz Wong Add the G1 specific bits to support H264 decoding. Signed-off-by: Hertz Wong Signed-off-by: Boris Brezillon Tested-by: Philipp Zabel --- Changes from v6: * None. Changes from v5: * None. Changes from v4: * Update to use pic_size from the H264 private context struct. * Remove

[PATCH v6 09/11] media: hantro: Add core bits to support H264 decoding

2019-08-14 Thread Ezequiel Garcia
From: Hertz Wong Add helpers and patch hantro_{drv,v4l2}.c to prepare addition of H264 decoding support. Signed-off-by: Hertz Wong Signed-off-by: Boris Brezillon Tested-by: Philipp Zabel --- Changes in v6: * Fixed duplicated CABAC table memcpy. * Adjust to renamed controls. Changes in v5: * N

[PATCH v6 11/11] media: hantro: Enable H264 decoding on rk3288

2019-08-14 Thread Ezequiel Garcia
From: Hertz Wong Now that the generic bits have been added, we can activate H264 decoding on rk3288. Signed-off-by: Hertz Wong Signed-off-by: Boris Brezillon --- Changes in v6: * None. Changes in v5: * None. Changes in v4: * None. --- drivers/staging/media/hantro/rk3288_vpu_hw.c | 21

RE: [PATCH v3 3/4] perf: Use CAP_SYSLOG with kptr_restrict checks

2019-08-14 Thread Lubashev, Igor
> On Wed, August 14, 2019 at 2:52 PM Arnaldo Carvalho de Melo > wrote: > Em Wed, Aug 14, 2019 at 03:48:14PM -0300, Arnaldo Carvalho de Melo > escreveu: > > Em Wed, Aug 14, 2019 at 12:04:33PM -0600, Mathieu Poirier escreveu: > > > # echo 0 > /proc/sys/kernel/kptr_restrict # ./tools/perf/perf recor

[PATCH v6 05/11] media: uapi: h264: Get rid of the p0/b0/b1 ref-lists

2019-08-14 Thread Ezequiel Garcia
From: Boris Brezillon Those lists can be extracted from the dpb, let's simplify userspace life and build that list kernel-side (generic helpers will be provided for drivers that need this list). Signed-off-by: Boris Brezillon Reviewed-by: Nicolas Dufresne Reviewed-by: Ezequiel Garcia Reviewed

[PATCH v6 01/11] lib/sort.c: implement sort() variant taking context argument

2019-08-14 Thread Ezequiel Garcia
From: Rasmus Villemoes Our list_sort() utility has always supported a context argument that is passed through to the comparison routine. Now there's a use case for the similar thing for sort(). This implements sort_r by simply extending the existing sort function in the obvious way. To avoid cod

[PATCH v2] nvme: Add quirk for LiteON CL1 devices running FW 22301111

2019-08-14 Thread Mario Limonciello
One of the components in LiteON CL1 device has limitations that can be encountered based upon boundary race conditions using the nvme bus specific suspend to idle flow. When this situation occurs the drive doesn't resume properly from suspend-to-idle. LiteON has confirmed this problem and fixed i

Re: [PATCH v4 2/2] RISC-V: Implement sparsemem

2019-08-14 Thread Paul Walmsley
On Wed, 14 Aug 2019, Logan Gunthorpe wrote: > On 2019-08-14 11:40 a.m., Paul Walmsley wrote: > > On Wed, 14 Aug 2019, Logan Gunthorpe wrote: > > > >> On 2019-08-14 7:35 a.m., Greentime Hu wrote: > >> > >>> Maybe this commit explains why it used HAVE_ARCH_PFN_VALID instead of > >>> SPARSEMEM. > >

Re: [PATCH 1/2] powerpc: rewrite LOAD_REG_IMMEDIATE() as an intelligent macro

2019-08-14 Thread Segher Boessenkool
Hi Christophe, On Tue, Aug 13, 2019 at 09:59:35AM +, Christophe Leroy wrote: > + rldicr \r, \r, 32, 31 Could you please write this as sldi\r, \r, 32 ? It's much easier to read, imo (it's the exact same instruction). You can do a lot cheaper sequences if you

Re: [PATCH v2] nvme: Add quirk for LiteON CL1 devices running FW 22301111

2019-08-14 Thread Keith Busch
On Wed, Aug 14, 2019 at 01:08:24PM -0700, Mario Limonciello wrote: > One of the components in LiteON CL1 device has limitations that > can be encountered based upon boundary race conditions using the > nvme bus specific suspend to idle flow. > > When this situation occurs the drive doesn't resume

Re: [PATCH v2] nvme: Add quirk for LiteON CL1 devices running FW 22301111

2019-08-14 Thread Sagi Grimberg
Mario, Can you please respin a patch that applies cleanly on nvme-5.4?

[PATCH] hv_netvsc: Fix a memory leak bug

2019-08-14 Thread Wenwen Wang
In rndis_filter_device_add(), 'rndis_device' is allocated through kzalloc() by invoking get_rndis_device(). In the following execution, if an error occurs, the execution will go to the 'err_dev_remv' label. However, the allocated 'rndis_device' is not deallocated, leading to a memory leak bug. Sig

RE: [PATCH v2] nvme: Add quirk for LiteON CL1 devices running FW 22301111

2019-08-14 Thread Mario.Limonciello
> -Original Message- > From: Sagi Grimberg > Sent: Wednesday, August 14, 2019 3:15 PM > To: Limonciello, Mario; Keith Busch > Cc: Jens Axboe; Christoph Hellwig; linux-n...@lists.infradead.org; LKML; Hong, > Ryan; Wang, Crag; s...@google.com; Hyde, Charles - Dell Team; Dominguez, Jared > Su

Re: [PATCH v2] nvme: Add quirk for LiteON CL1 devices running FW 22301111

2019-08-14 Thread Keith Busch
On Wed, Aug 14, 2019 at 01:14:50PM -0700, Sagi Grimberg wrote: > Mario, > > Can you please respin a patch that applies cleanly on nvme-5.4? This fixes a regression we introduced in 5.3, so it should go in 5.3-rc. For this to apply cleanly, though, we'll need to resync to Linus' tree to get Rafael

Re: [PATCH v2 1/2] riscv: Correct the initialized flow of FP register

2019-08-14 Thread Paul Walmsley
On Wed, 14 Aug 2019, Vincent Chen wrote: > The following two reasons cause FP registers are sometimes not > initialized before starting the user program. > 1. Currently, the FP context is initialized in flush_thread() function >and we expect these initial values to be restored to FP register

[RFC 5/5] media: i2c: ov13858: Report the camera location

2019-08-14 Thread Jacopo Mondi
The camera location is retrieved from the firmware interface parsing the "location" device property and reported through the read-only V4L2_CID_LOCATION control. Signed-off-by: Jacopo Mondi --- drivers/media/i2c/ov13858.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/m

[RFC 0/5] media: v4l2-ctrls: Add camera 'location' support

2019-08-14 Thread Jacopo Mondi
Hello, as anticipared on #v4l, this is a proposal to add a way for camera devices to report their mounting location to user-space. The information on the camera location is particularly meaningful for mobile devices, and in the process of integrating libcamera with the Android camera stack, we fo

[RFC 4/5] media: i2c: ov5670: Report the camera location

2019-08-14 Thread Jacopo Mondi
The camera location is retrieved from the firmware interface parsing the "location" device property and reported through the read-only V4L2_CID_LOCATION control. Signed-off-by: Jacopo Mondi --- drivers/media/i2c/ov5670.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/me

[RFC 3/5] media: v4l2-ctrls: Add support for V4L2_CID_LOCATION

2019-08-14 Thread Jacopo Mondi
Add support for the newly defined V4L2_CID_LOCATION read-only control used to report the camera device mounting position. Signed-off-by: Jacopo Mondi --- drivers/media/v4l2-core/v4l2-ctrls.c | 7 +++ include/uapi/linux/v4l2-controls.h | 4 2 files changed, 11 insertions(+) diff --git

[RFC 1/5] media: dt-bindings: Document 'location' property

2019-08-14 Thread Jacopo Mondi
Add the 'location' device property, used to specify the camera device mounting position. The property is particularly meaningful for mobile devices with a well defined usage orientation. Signed-off-by: Jacopo Mondi --- Documentation/devicetree/bindings/media/video-interfaces.txt | 4 1 file

[RFC 2/5] media: v4l2-ctrl: Document V4L2_CID_LOCATION

2019-08-14 Thread Jacopo Mondi
Add documentation for the V4L2_CID_LOCATION camera control. The newly added read-only control reports the camera device mounting position. Signed-off-by: Jacopo Mondi --- .../media/uapi/v4l/ext-ctrls-camera.rst | 23 +++ 1 file changed, 23 insertions(+) diff --git a/Docume

Re: [PATCH v2 2/2] riscv: Make __fstate_clean() work correctly.

2019-08-14 Thread Paul Walmsley
On Wed, 14 Aug 2019, Vincent Chen wrote: > Make the __fstate_clean() function correctly set the > state of sstatus.FS in pt_regs to SR_FS_CLEAN. > > Fixes: 7db91e5 ("RISC-V: Task implementation") > Cc: linux-stable > Signed-off-by: Vincent Chen > Reviewed-by: Anup Patel > Reviewed-by: Christop

RE: [PATCH] hv_netvsc: Fix a memory leak bug

2019-08-14 Thread Haiyang Zhang
> -Original Message- > From: Wenwen Wang > Sent: Wednesday, August 14, 2019 4:16 PM > To: Wenwen Wang > Cc: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; Sasha Levin ; David S. > Miller ; open list:Hyper-V CORE AND DRIVERS > ; open list:NETWORKING DRIVERS > ; open list > Sub

3% L OANS.

2019-08-14 Thread I.D
Hi, Contact us for a 3% L oan today. Let me know how much you need and duration to pay back for more details. Thanks.

Re: [PATCH] hv_netvsc: Fix a memory leak bug

2019-08-14 Thread Stephen Hemminger
On Wed, 14 Aug 2019 15:16:11 -0500 Wenwen Wang wrote: > In rndis_filter_device_add(), 'rndis_device' is allocated through kzalloc() > by invoking get_rndis_device(). In the following execution, if an error > occurs, the execution will go to the 'err_dev_remv' label. However, the > allocated 'rndi

[PATCH v2 1/6] perf: Refactor svg_build_topology_map

2019-08-14 Thread Kyle Meyer
Exchange the parameters of svg_build_topology_map with struct perf_env *env and adjust the function accordingly. This patch should not change any behavior, it is merely refactoring for the following patch. Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin C

Re: [PATCH v2] coresight: tmc-etr: Fix updating buffer in not-snapshot mode.

2019-08-14 Thread Mathieu Poirier
On Mon, 12 Aug 2019 at 16:11, Yabin Cui wrote: > > TMC etr always copies all available data to perf aux buffer, which > may exceed the available space in perf aux buffer. It isn't suitable > for not-snapshot mode, because: > 1) It may overwrite previously written data. > 2) It may make the perf_ev

[PATCH v2 4/6] perf/util/session: Replace MAX_NR_CPUS with nr_cpus_online

2019-08-14 Thread Kyle Meyer
nr_cpus_online, the number of CPUs online during a record session, can be used as a dynamic alternative for MAX_NR_CPUS in perf_session__cpu_bitmap. Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: linux-kernel@vger.ker

[PATCH v2 3/6] perf/util/stat: Replace MAX_NR_CPUS with cpu__max_cpu

2019-08-14 Thread Kyle Meyer
The function cpu__max_cpu returns the possible number of CPUs as defined in the sysfs and can be used as an alternative for MAX_NR_CPUS in zero_per_pkg and check_per_pkg. Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc:

[PATCH v2 5/6] perf/util/machine: Replace MAX_NR_CPUS with nr_cpus_online

2019-08-14 Thread Kyle Meyer
nr_cpus_online, the number of CPUs online during a record session, can be used as a dynamic alternative for MAX_NR_CPUS in __machine__synthesize_threads and machine__set_current_tid. Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhy

[PATCH v2 6/6] perf/util/header: Replace MAX_NR_CPUS with cpu__max_cpu

2019-08-14 Thread Kyle Meyer
The function cpu__max_cpu returns the possible number of CPUs as defined in the sysfs and can be used as an alternative for MAX_NR_CPUS in write_cache. MAX_CACHES is replaced by cpu__max_cpu() * MAX_CACHE_LVL. Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishki

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

2019-08-14 Thread Kyle Meyer
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 CPUs as defined in the sysfs. MAX_NR_CPUS is still used by DECLARE_BITM

[PATCH v2 2/6] perf/util/svghelper: Replace MAX_NR_CPUS with env->nr_cpus_online

2019-08-14 Thread Kyle Meyer
env->nr_cpus_online, the number of CPUs online during a record session, can be used as a dynamic alternative for MAX_NR_CPUS in svg_build_topology_map. The value of env->nr_cpus_online can be passed into str_to_bitmap, scan_core_topology, and svg_build_topology_map to replace MAX_NR_CPUS as well.

Re: [PATCH net-next, 3/6] net/mlx5: Add wrappers for HyperV PCIe operations

2019-08-14 Thread Mark Bloch
On 8/14/19 12:08 PM, Haiyang Zhang wrote: > From: Eran Ben Elisha > > Add wrapper functions for HyperV PCIe read / write / > block_invalidate_register operations. This will be used as an > infrastructure in the downstream patch for software communication. > > This will be enabled by default i

Re: [PATCH net-next, 5/6] net/mlx5: Add HV VHCA control agent

2019-08-14 Thread Mark Bloch
On 8/14/19 12:09 PM, Haiyang Zhang wrote: > From: Eran Ben Elisha > > Control agent is responsible over of the control block (ID 0). It should > update the PF via this block about every capability change. In addition, > upon block 0 invalidate, it should activate all other supported agents > wi

Re: [PATCH net-next, 4/6] net/mlx5: Add HV VHCA infrastructure

2019-08-14 Thread Mark Bloch
On 8/14/19 12:08 PM, Haiyang Zhang wrote: > From: Eran Ben Elisha > > HV VHCA is a layer which provides PF to VF communication channel based on > HyperV PCI config channel. It implements Mellanox's Inter VHCA control > communication protocol. The protocol contains control block in order to > pa

[PATCH v5 01/18] xfs: compat_ioctl: use compat_ptr()

2019-08-14 Thread Arnd Bergmann
For 31-bit s390 user space, we have to pass pointer arguments through compat_ptr() in the compat_ioctl handler. Signed-off-by: Arnd Bergmann --- fs/xfs/xfs_ioctl32.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/xfs/xfs_ioctl32.c b/fs/xfs/xfs_ioctl32.c index 7fcf

[PATCH v5 02/18] xfs: compat_ioctl: add missing conversions

2019-08-14 Thread Arnd Bergmann
FS_IOC_GETFSLABEL/FS_IOC_SETFSLABEL were added in linux-4.18 in xfs, but not in the compat_ioctl case, so add them here. FITRIM was added earlier and also lacks a line the same function, but this is ok because there is an entry in fs/compat_ioctl.c for it. Adding all three here to keep the native

[PATCH v5 05/18] watchdog: cpwd: use generic compat_ptr_ioctl

2019-08-14 Thread Arnd Bergmann
The cpwd_compat_ioctl() contains a bogus mutex that dates back to a leftover BKL instance. Simplify the implementation by using the new compat_ptr_ioctl() helper function that will do the right thing for all calls here. Note that WIOCSTART/WIOCSTOP don't take any arguments, so the compat_ptr() co

Re: [PATCH] tools build: Fix clang detection with clang >= 8.0

2019-08-14 Thread Nick Desaulniers
On Mon, Aug 12, 2019 at 10:07 PM Matthew Dawson wrote: > > The 8.0 release of clang/llvm moved the VirtualFileSystem.h header > to from clang to llvm. This change causes a compile error, causing > perf to not detect clang/llvm. > > Fix by including the right header for the different versions of l

[PATCH] lsilogic mpt fusion: mptctl: Fixed race condition around mptctl_id variable using mutexes

2019-08-14 Thread Mark Balantzyan
Certain functions in the driver, such as mptctl_do_fw_download() and mptctl_do_mpt_command(), rely on the instance of mptctl_id, which does the id-ing. There is race condition possible when these functions operate in concurrency. Via, mutexes, the functions are mutually signalled to cooperate. Sig

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