[PATCH 13/13 v3] perf tools: add thread field

2020-11-13 Thread James Clark
A separate field isn't strictly required. The core field could be re-used for thread IDs as a single field was used previously. But separating them will avoid confusion and catch potential errors where core IDs are read as thread IDs and vice versa. Also remove the placeholder id field which is n

[PATCH 07/13 v3] perf tools: restrict visibility of functions

2020-11-13 Thread James Clark
These cpu_aggr_map refcounting functions are only used in builtin-stat.c so their visibilty can be reduced to just that file. No functional changes. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Ol

[PATCH] futex: remove unused empty compat_exit_robust_list()

2020-11-13 Thread Lukas Bulwahn
sed-function warning. Signed-off-by: Lukas Bulwahn --- applies cleanly on current master and next-20201113 Thomas, please pick this minor non-urgent clean-up patch. kernel/futex.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/futex.c b/kernel/futex.c index 00259c7e288e..c47d1015d759

Re: [PATCH 19/40] drm/amd/amdgpu/amdgpu_vram_mgr: Add missing descriptions for 'dev' and 'dir'

2020-11-13 Thread Alex Deucher
On Fri, Nov 13, 2020 at 8:50 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:648: warning: Function > parameter or member 'dev' not described in 'amdgpu_vram_mgr_free_sgt' > drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c:64

[PATCH 1/3 v7] ftrace: Have the callbacks receive a struct ftrace_regs instead of pt_regs

2020-11-13 Thread VMware
From: "Steven Rostedt (VMware)" In preparation to have arguments of a function passed to callbacks attached to functions as default, change the default callback prototype to receive a struct ftrace_regs as the forth parameter instead of a pt_regs. For callbacks that set the FL_SAVE_REGS flag in

[PATCH 09/13 v3] perf tools: Add separate node member

2020-11-13 Thread James Clark
Add node as a separate member so that it doesn't have to be packed into the int value. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Thomas Richter Cc: John Garry ---

[PATCH 03/13 v3] perf tools: Add new struct for cpu aggregation

2020-11-13 Thread James Clark
This struct currently has only a single int member so that it can be used as a drop in replacement for the existing behaviour. Comparison and constructor functions have also been added that will replace usages of '==' and '= -1'. No functional changes. Signed-off-by: James Clark Cc: Peter Zijls

[PATCH 11/13 v3] perf tools: Add separate die member

2020-11-13 Thread James Clark
Add die as a separate member so that it doesn't have to be packed into the int value. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Thomas Richter Cc: John Garry --- t

[PATCH 05/13 v3] perf tools: add new map type for aggregation

2020-11-13 Thread James Clark
Currently this is a duplicate of perf_cpu_map so that it can be used as a drop in replacement. In a later commit it will be changed from a map of ints to use the new cpu_aggr_id struct. No functional changes. Signed-off-by: James Clark Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rut

[PATCH 02/13 v3] perf tools: Use allocator for perf_cpu_map

2020-11-13 Thread James Clark
Use the existing allocator for perf_cpu_map to avoid use of raw malloc. This could cause an issue in later commits where the size of perf_cpu_map is changed. No functional changes. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc:

[PATCH 2/3 v7] ftrace/x86: Allow for arguments to be passed in to ftrace_regs by default

2020-11-13 Thread VMware
From: "Steven Rostedt (VMware)" Currently, the only way to get access to the registers of a function via a ftrace callback is to set the "FL_SAVE_REGS" bit in the ftrace_ops. But as this saves all regs as if a breakpoint were to trigger (for use with kprobes), it is expensive. The regs are alrea

Re: [RFC] fs: Avoid to use lockdep information if it's turned off

2020-11-13 Thread David Sterba
On Thu, Nov 12, 2020 at 11:22:12AM +0800, Boqun Feng wrote: > For the "BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!" warning, do you see > that every time when you run xfstests and don't see other lockdep > splats? If so, that means we reach the limitation of number of lockdep > hlock chains, and we shou

Re: [PATCH] kfence: Avoid stalling work queue task without allocations

2020-11-13 Thread Paul E. McKenney
On Fri, Nov 13, 2020 at 12:06:04PM +0100, Marco Elver wrote: > On Thu, Nov 12, 2020 at 12:00PM -0800, Paul E. McKenney wrote: > > On Thu, Nov 12, 2020 at 07:12:54PM +0100, Marco Elver wrote: > > > On Thu, Nov 12, 2020 at 09:54AM -0800, Paul E. McKenney wrote: > > > > On Thu, Nov 12, 2020 at 05:14:3

[PATCH 01/13 v3] perf tools: Improve topology test

2020-11-13 Thread James Clark
Improve the topology test to check all aggregation types. This is to lock down the behaviour before 'id' is changed into a struct in later commits. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa

Re: [PATCH 21/40] drm/amd/amdgpu/amdgpu_virt: Make local function 'amdgpu_virt_update_vf2pf_work_item()' static

2020-11-13 Thread Alex Deucher
On Fri, Nov 13, 2020 at 8:50 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:560:6: warning: no previous > prototype for ‘amdgpu_virt_update_vf2pf_work_item’ [-Wmissing-prototypes] > > Cc: Alex Deucher > Cc: "Christian König"

[PATCH] Asoc: qcom: dts: Update iommu property for simultaneous playback

2020-11-13 Thread Srinivasa Rao Mandadapu
From: V Sujith Kumar Reddy Update iommu property in lpass cpu node for supporting simultaneous playback on headset and speaker. Signed-off-by: V Sujith Kumar Reddy Signed-off-by: Srinivasa Rao Mandadapu --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 dele

Re: [PATCH v5 3/7] IMA: add hook to measure critical data

2020-11-13 Thread Tushar Sugandhi
Including "data_source" here isn't quite right. "data source" should only be added in the first patch which uses it, not here. When adding it please shorten the field description to "kernel data source". The longer explanation can be included in the longer function description. *Question

Re: #PF from NMI

2020-11-13 Thread Andy Lutomirski
On Fri, Nov 13, 2020 at 4:53 AM Peter Zijlstra wrote: > > Hi > > Eugenio reported > (https://bugzilla.kernel.org/attachment.cgi?id=293659&action=edit): > > [ 139.226723] [ cut here ] > [ 139.226724] WARNING: CPU: 9 PID: 2290 at kernel/rcu/tree.c:932 > __rcu_irq_enter_che

Re: [PATCH 29/40] drm/amd/amdgpu/amdgpu_csa: Remove set but unused variable 'r'

2020-11-13 Thread Alex Deucher
On Fri, Nov 13, 2020 at 8:50 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c: In function > ‘amdgpu_allocate_static_csa’: > drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c:40:6: warning: variable ‘r’ set but > not used [-Wunused-but-

Re: [RFC, v1 0/3] msi support for platform devices

2020-11-13 Thread Vikas Gupta
Hi Eric, On Fri, Nov 13, 2020 at 12:10 AM Auger Eric wrote: > > Hi Vikas, > > On 11/12/20 6:58 PM, Vikas Gupta wrote: > > This RFC adds support for MSI for platform devices. > > a) MSI(s) is/are added in addition to the normal interrupts. > > b) The vendor specific MSI configuration can be done u

Re: [PATCH 22/40] drm/amd/amdgpu/amdgpu_sched: Consume our own header containing prototypes

2020-11-13 Thread Alex Deucher
On Fri, Nov 13, 2020 at 8:50 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c:35:5: warning: no previous > prototype for ‘amdgpu_to_sched_priority’ [-Wmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c:122:5: war

Re: [GIT PULL] arm64 fixes for -rc4

2020-11-13 Thread Linus Torvalds
On Fri, Nov 13, 2020 at 4:44 AM Will Deacon wrote: > > Looks like I managed to munge the subject for this (somehow dropped the > leading '['); I've fixed it here in the hope that it gets past whatever > filters you may have, but I'll resend if I haven't heard anything by > tomorrow afternoon. It

Re: [PATCH 24/40] drm/amd/amdgpu/amdgpu_ids: Supply missing docs for 'id' and 'vmhub'

2020-11-13 Thread Alex Deucher
On Fri, Nov 13, 2020 at 8:50 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c:271: warning: Function parameter or > member 'id' not described in 'amdgpu_vmid_grab_reserved' > drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c:523: warning

Re: [PATCH v2] Input: Add devices for HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE

2020-11-13 Thread Chris Ye
Hi Jiri,  can I have a commit ID for 5.10? I'll need this to submit the patch internally. Thanks! Chris On 11/9/20 3:55 AM, Jiri Kosina wrote: On Sun, 1 Nov 2020, Chris Ye wrote: diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 74be76e848bf..cf55dca494f3 100644 --- a/drivers

[PATCH 01/13 v4] perf tools: Improve topology test

2020-11-13 Thread James Clark
Improve the topology test to check all aggregation types. This is to lock down the behaviour before 'id' is changed into a struct in later commits. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa

[PATCH 10/13 v4] perf tools: Add separate socket member

2020-11-13 Thread James Clark
Add socket as a separate member so that it doesn't have to be packed into the int value. When the socket ID was larger than 8 bits the output appeared corrupted or incomplete. For example, here on ThunderX2 perf stat reports a socket of -1 and an invalid die number: ./perf stat -a --per-die T

[PATCH 02/13 v4] perf tools: Use allocator for perf_cpu_map

2020-11-13 Thread James Clark
Use the existing allocator for perf_cpu_map to avoid use of raw malloc. This could cause an issue in later commits where the size of perf_cpu_map is changed. No functional changes. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc:

[PATCH 03/13 v4] perf tools: Add new struct for cpu aggregation

2020-11-13 Thread James Clark
This struct currently has only a single int member so that it can be used as a drop in replacement for the existing behaviour. Comparison and constructor functions have also been added that will replace usages of '==' and '= -1'. No functional changes. Signed-off-by: James Clark Cc: Peter Zijls

Re: [PATCH v11 07/14] s390/vfio-ap: sysfs attribute to display the guest's matrix

2020-11-13 Thread Tony Krowiak
On 10/28/20 4:17 AM, Halil Pasic wrote: On Thu, 22 Oct 2020 13:12:02 -0400 Tony Krowiak wrote: +static ssize_t guest_matrix_show(struct device *dev, +struct device_attribute *attr, char *buf) +{ + ssize_t nchars; + struct mdev_device *mdev = mdev_

Re: [PATCH 25/40] drm/amd/amdgpu/amdgpu_debugfs: Demote obvious abuse of kernel-doc formatting

2020-11-13 Thread Alex Deucher
On Fri, Nov 13, 2020 at 8:50 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:308: warning: Function parameter > or member 'f' not described in 'amdgpu_debugfs_regs_read' > drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:308: w

[PATCH 13/13 v4] perf tools: add thread field

2020-11-13 Thread James Clark
A separate field isn't strictly required. The core field could be re-used for thread IDs as a single field was used previously. But separating them will avoid confusion and catch potential errors where core IDs are read as thread IDs and vice versa. Also remove the placeholder id field which is n

[PATCH 11/13 v4] perf tools: Add separate die member

2020-11-13 Thread James Clark
Add die as a separate member so that it doesn't have to be packed into the int value. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Thomas Richter Cc: John Garry --- t

[PATCH 05/13 v4] perf tools: add new map type for aggregation

2020-11-13 Thread James Clark
Currently this is a duplicate of perf_cpu_map so that it can be used as a drop in replacement. In a later commit it will be changed from a map of ints to use the new cpu_aggr_id struct. No functional changes. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho d

[PATCH 09/13 v4] perf tools: Add separate node member

2020-11-13 Thread James Clark
Add node as a separate member so that it doesn't have to be packed into the int value. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Thomas Richter Cc: John Garry ---

[PATCH 12/13 v4] perf tools: Add separate core member

2020-11-13 Thread James Clark
Add core as a separate member so that it doesn't have to be packed into the int value. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Thomas Richter Cc: John Garry ---

[PATCH 07/13 v4] perf tools: restrict visibility of functions

2020-11-13 Thread James Clark
These cpu_aggr_map refcounting functions are only used in builtin-stat.c so their visibilty can be reduced to just that file. No functional changes. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Ol

Re: [PATCH 1/3] dt-bindings: media: i2c: Add OV8865 bindings documentation

2020-11-13 Thread Maxime Ripard
Hi Sakari, On Wed, Nov 11, 2020 at 03:18:57PM +0200, Sakari Ailus wrote: > Hi Paul, > > On Thu, Nov 05, 2020 at 04:35:34PM +0100, Paul Kocialkowski wrote: > > Hi Sakari, > > > > On Thu 05 Nov 20, 10:19, Sakari Ailus wrote: > > > Hi Paul, > > > > > > On Wed, Nov 04, 2020 at 11:26:43AM +0100, Pau

[PATCH 04/13 v4] perf tools: Replace aggregation ID with a struct

2020-11-13 Thread James Clark
Replace all occurences of the usage of int with the new struct cpu_aggr_id. No functional changes. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Thomas Richter Cc: John

[PATCH 08/13 v4] perf tools: Start using cpu_aggr_id in map

2020-11-13 Thread James Clark
Use the new cpu_aggr_id struct in the cpu map instead of int so that it can store more data. No functional changes. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Mark Rutland Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: Thomas

[PATCH 00/13 v4] perf tools: fix perf stat with large socket IDs

2020-11-13 Thread James Clark
v3 had a mistake in a couple of my signed off lines so I have fixed them in v4. v3 breaks up the previous v2 patchset into smaller atomic commits. The end result is the same as the previous patchset apart from some minor refactoring, asserting on an empty header and calling cpu__setup_cpunode_map(

Re: [PATCH] clk: qcom: lpass-sc7180: Clean up on error in lpass_sc7180_init()

2020-11-13 Thread Doug Anderson
Hi, On Fri, Nov 13, 2020 at 2:14 AM Dan Carpenter wrote: > > Clean up the first driver if the second driver can't be registered. > > Fixes: 4ee9fe3e292b ("clk: qcom: lpass-sc7180: Disentangle the two clock > devices") > Signed-off-by: Dan Carpenter > --- > drivers/clk/qcom/lpasscorecc-sc7180.c

Re: Error: invalid switch -me200

2020-11-13 Thread Fāng-ruì Sòng
9876fbca5f7e0ba > commit: ca9b31f6bb9c6aa9b4e5f0792f39a97bbffb8c51 Makefile: Fix > GCC_TOOLCHAIN_DIR prefix for Clang cross compilation > date: 4 months ago > config: powerpc-randconfig-r031-20201113 (attached as .config) > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project > 9e0c35655b6e8186b

[PATCH 06/13 v4] perf tools: drop in cpu_aggr_map struct

2020-11-13 Thread James Clark
Replace usages of perf_cpu_map with cpu_aggr map in places that are involved with perf stat aggregation. This will then later be changed to be a map of cpu_aggr_id rather than an int so that more data can be stored. No functional changes. Signed-off-by: James Clark Cc: Peter Zijlstra Cc: Ingo

Re: [PATCH 26/40] drm/amd/amdgpu/amdgpu_gmc: Demote one and fix another function header

2020-11-13 Thread Alex Deucher
On Fri, Nov 13, 2020 at 8:50 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c:69: warning: Function parameter or > member 'bo' not described in 'amdgpu_gmc_pd_addr' > drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c:121: warning: Functi

Re: [PATCH v1 11/30] drm/tegra: dc: Support OPP and SoC core voltage scaling

2020-11-13 Thread Mark Brown
On Fri, Nov 13, 2020 at 08:13:49PM +0300, Dmitry Osipenko wrote: > 13.11.2020 19:15, Mark Brown пишет: > > My point here is that the driver shouldn't be checking for a dummy > > regulator, the driver should be checking the features that are provided > > to it by the regulator and handling those.

Re: [PATCH 27/40] drm/amd/amdgpu/amdgpu_ras: Remove unused function 'amdgpu_ras_error_cure'

2020-11-13 Thread Alex Deucher
On Fri, Nov 13, 2020 at 8:50 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:908:5: warning: no previous > prototype for ‘amdgpu_ras_error_cure’ [-Wmissing-prototypes] > > Cc: Alex Deucher > Cc: "Christian König" > Cc: David

Re: [PATCH] arm64: abort counter_read_on_cpu() when irqs_disabled()

2020-11-13 Thread Mark Rutland
On Fri, Nov 13, 2020 at 04:58:43PM +, Ionela Voinescu wrote: > On Friday 13 Nov 2020 at 16:02:34 (+), Mark Rutland wrote: > > On Fri, Nov 13, 2020 at 03:53:28PM +, Ionela Voinescu wrote: > > > Given that smp_call_function_single() can deadlock when interrupts are > > > disabled, abort t

Re: [PATCH v1 11/30] drm/tegra: dc: Support OPP and SoC core voltage scaling

2020-11-13 Thread Thierry Reding
On Fri, Nov 13, 2020 at 08:13:49PM +0300, Dmitry Osipenko wrote: > 13.11.2020 19:15, Mark Brown пишет: > > On Fri, Nov 13, 2020 at 06:55:27PM +0300, Dmitry Osipenko wrote: > >> 13.11.2020 17:29, Mark Brown пишет: > > > >>> It's not clear if it matters - it's more a policy decision on the part > >>

Re: [PATCH 30/40] drm/amd/amdgpu/amdgpu_vm_cpu: Fix 'amdgpu_vm_cpu_prepare()'s doc-rot

2020-11-13 Thread Alex Deucher
On Fri, Nov 13, 2020 at 8:50 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c:50: warning: Function parameter > or member 'resv' not described in 'amdgpu_vm_cpu_prepare' > drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c:50: warni

Re: [PATCH] x86/insn: Fix vector instructions decoding on big endian

2020-11-13 Thread Josh Poimboeuf
On Fri, Nov 13, 2020 at 05:09:54PM +0100, Vasily Gorbik wrote: > Running instruction decoder posttest on s390 with allyesconfig shows > errors. Instructions used in couple of kernel objects could not be > correctly decoded on big endian system. > > insn_decoder_test: warning: objdump says 6 bytes,

Re: [PATCH bpf-next v5 05/34] bpf: memcg-based memory accounting for bpf progs

2020-11-13 Thread Song Liu
> On Nov 12, 2020, at 2:15 PM, Roman Gushchin wrote: > > Include memory used by bpf programs into the memcg-based accounting. > This includes the memory used by programs itself, auxiliary data, > statistics and bpf line info. A memory cgroup containing the > process which loads the program is

Re: [PATCH 31/40] drm/amd/amdgpu/amdgpu_vm_sdma: Fix 'amdgpu_vm_sdma_prepare()'s doc-rot

2020-11-13 Thread Alex Deucher
On Fri, Nov 13, 2020 at 8:50 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c:63: warning: Function parameter > or member 'resv' not described in 'amdgpu_vm_sdma_prepare' > drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c:63: wa

Re: [PATCH 36/40] drm/amd/amdgpu/amdgpu_fw_attestation: Consume our own header containing prototypes

2020-11-13 Thread Alex Deucher
On Fri, Nov 13, 2020 at 8:51 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_fw_attestation.c:130:6: warning: no > previous prototype for ‘amdgpu_fw_attestation_debugfs_init’ > [-Wmissing-prototypes] > > Cc: Alex Deucher > Cc: "Chr

[PATCH 1/1] RFC: add pidfd_send_signal flag to reclaim mm while killing a process

2020-11-13 Thread Suren Baghdasaryan
When a process is being killed it might be in an uninterruptible sleep which leads to an unpredictable delay in its memory reclaim. In low memory situations, when it's important to free up memory quickly, such delay is problematic. Kernel solves this problem with oom-reaper thread which performs me

Re: [PATCH 37/40] drm/amd/amdgpu/smu_v11_0_i2c: Provide descriptions for 'control' and 'data' params

2020-11-13 Thread Alex Deucher
On Fri, Nov 13, 2020 at 8:50 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c:225: warning: Function parameter > or member 'control' not described in 'smu_v11_0_i2c_transmit' > drivers/gpu/drm/amd/amdgpu/smu_v11_0_i2c.c:325:

[PATCH v3 2/2] arm: lib: xor-neon: move pragma options to makefile

2020-11-13 Thread Adrian Ratiu
Using a pragma like GCC optimize is a bad idea because it tags all functions with an __attribute__((optimize)) which replaces optimization options rather than appending so could result in dropping important flags. Not recommended for production use. Because these options should always be enabled f

Re: WARNING: can't access registers at asm_common_interrupt

2020-11-13 Thread Andy Lutomirski
On Wed, Nov 11, 2020 at 12:25 PM Andrew Cooper wrote: > > On 11/11/2020 20:15, Josh Poimboeuf wrote: > > On Wed, Nov 11, 2020 at 09:07:30PM +0100, Peter Zijlstra wrote: > >> On Wed, Nov 11, 2020 at 01:59:00PM -0600, Josh Poimboeuf wrote: > >>> On Wed, Nov 11, 2020 at 08:42:06PM +0100, Peter Zijlst

[PATCH v3 0/2] xor-neon: Remove GCC warn & pragmas

2020-11-13 Thread Adrian Ratiu
Dear all, This is v3 of the patch series started at id:20201106051436.2384842-1-adrian.ra...@collabora.com This series does not address the Clang -ftree-vectorize not working bug which is a known pre-existing issued documented at [1] [2] [3]. Clang vectorization needs to be investigated in more d

[PATCH v3 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning

2020-11-13 Thread Adrian Ratiu
From: Nathan Chancellor Drop warning because kernel now requires GCC >= v4.9 after commit 6ec4476ac825 ("Raise gcc version requirement to 4.9") and clarify that -ftree-vectorize now always needs enabling for GCC by directly testing the presence of CONFIG_CC_IS_GCC. Another reason to remove the w

Re: [PATCH 40/40] drm/amd/amdgpu/gfx_v7_0: Remove unused struct definition

2020-11-13 Thread Alex Deucher
On Fri, Nov 13, 2020 at 8:50 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c:5211:45: warning: ‘gfx_v7_0_ip_block’ > defined but not used [-Wunused-const-variable=] > > Cc: Alex Deucher > Cc: "Christian König" > Cc: David Airli

Re: [PATCH v2 2/2] KVM: SVM: Use a separate vmcb for the nested L2 guest

2020-11-13 Thread Paolo Bonzini
On 13/10/20 03:33, Sean Christopherson wrote: + svm->vmcb = svm->vmcb01; + svm->vmcb_pa = svm->vmcb01_pa; I very highly recommend adding a helper to switch VMCB. Odds are very good there will be more than just these two lines of boilerplate code for changing the active VMCB. Yes,

Re: [RFC]: userspace memory reaping

2020-11-13 Thread Suren Baghdasaryan
On Thu, Nov 5, 2020 at 10:02 AM Suren Baghdasaryan wrote: > > On Thu, Nov 5, 2020 at 9:44 AM Michal Hocko wrote: > > > > On Thu 05-11-20 09:21:13, Suren Baghdasaryan wrote: > > > On Thu, Nov 5, 2020 at 9:16 AM Michal Hocko wrote: > > > > > > > > On Thu 05-11-20 08:50:58, Suren Baghdasaryan wrote

Re: [PATCH v4 06/17] PCI: add SIOV and IMS capability detection

2020-11-13 Thread Raj, Ashok
On Fri, Nov 13, 2020 at 08:12:39AM -0800, Luck, Tony wrote: > > Of course is this not only an x86 problem. Every architecture which > > supports virtualization has the same issue. ARM(64) has no way to tell > > for sure whether the machine runs bare metal either. No idea about the > > other archite

Re: About devm_platform_ioremap_resource [Was: Re: [PATCH 01/32] pwm: sun4i: convert to devm_platform_ioremap_resource]

2020-11-13 Thread Robin Murphy
On 2020-11-13 16:11, Thierry Reding wrote: On Fri, Nov 13, 2020 at 08:03:43AM +0100, Uwe Kleine-König wrote: Hello, [Added lkml and the people involved in commit 7945f929f1a7 ("drivers: provide devm_platform_ioremap_resource()") to Cc:. For the new readers: This is about patches making use of d

Re: [PATCH v2] Input: Add devices for HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE

2020-11-13 Thread Michael Wright
Hi Chris, I believe the patch is applied to the HID tree: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?h=for-5.10/upstream-fixes&id=f59ee399de4a8ca4d7d19cdcabb4b63e94867f09 If so, the commit SHA is f59ee399de4a8ca4d7d19cdcabb4b63e94867f09. Hope this helps, Michael On Fri

Re: [GIT PULL] bootconfig: Extend the magic check range to the preceding 3 bytes

2020-11-13 Thread Linus Torvalds
On Fri, Nov 13, 2020 at 5:29 AM Steven Rostedt wrote: > > Fix alignment of bootconfig > > GRUB may align the init ramdisk size to 4 bytes, the magic number at the > end of the init ramdisk that denotes bootconfig is attached may not be at > the exact end of the ramdisk. The kernel needs to check b

Re: linux-x25 mail list not working

2020-11-13 Thread Xie He
On Thu, Nov 12, 2020 at 9:28 PM Martin Schiller wrote: > > On 2020-11-13 03:17, John 'Warthog9' Hawley wrote: > > Give it a try now, there was a little wonkiness with the alias setup > > for it, and I have no historical context for a 'why', but I adjusted a > > couple of things and I was able to s

Re: [PATCH v2] Input: Add devices for HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE

2020-11-13 Thread Chris Ye
Great, thanks a lot Michael! On 11/13/20 9:43 AM, Michael Wright wrote: Hi Chris, I believe the patch is applied to the HID tree: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?h=for-5.10/upstream-fixes&id=f59ee399de4a8ca4d7d19cdcabb4b63e94867f09 If so, the commit SHA is f

[PATCH v2 08/13] drivers/oprofile: convert stats to use seqnum_ops

2020-11-13 Thread Shuah Khan
Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. atomic_t variables used for stats are atomic counters. Convert them to use seqnum_ops. Signed-off-by: Shuah Khan --- drivers/oprofile/buffer_sync.c| 9 + drive

[PATCH v2 01/13] seqnum_ops: Introduce Sequence Number Ops

2020-11-13 Thread Shuah Khan
Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. There are a number of atomic_t usages in the kernel where atomic_t api is used for counting sequence numbers and other statistical counters. Several of these usages, convert a

[PATCH v2 03/13] drivers/acpi: convert seqno seqnum_ops

2020-11-13 Thread Shuah Khan
Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. Convert seqno atomic counter to use seqnum_ops. Signed-off-by: Shuah Khan --- drivers/acpi/acpi_extlog.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH v2 10/13] usb: usbip/vhci: convert seqno to seqnum_ops

2020-11-13 Thread Shuah Khan
Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. Convert it to use seqnum_ops. atomic_t variables used for stats are atomic counters. Convert them to use seqnum_ops. Signed-off-by: Shuah Khan --- drivers/usb/usbip/vhci.h

[PATCH v2 04/13] drivers/acpi/apei: convert seqno to seqnum_ops

2020-11-13 Thread Shuah Khan
Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. Convert seqno atomic counter to use seqnum_ops. Signed-off-by: Shuah Khan --- drivers/acpi/apei/ghes.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff -

[PATCH v2 00/13] Introduce seqnum_ops

2020-11-13 Thread Shuah Khan
Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. There are a number of atomic_t usages in the kernel where atomic_t api is used for counting sequence numbers and other statistical counters. Several of these usages, convert a

[PATCH v2 02/13] selftests: lib:test_seqnum_ops: add new test for seqnum_ops

2020-11-13 Thread Shuah Khan
Add a new selftest for testing seqnum_ops. This test loads test_seqnum_ops test module and unloads it. The test module runs tests and prints results to dmesg. Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. There are a num

[PATCH v2 06/13] drivers/char/ipmi: convert stats to use seqnum_ops

2020-11-13 Thread Shuah Khan
Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. Convert stats to use seqnum_ops. Signed-off-by: Shuah Khan --- drivers/char/ipmi/ipmi_msghandler.c | 9 + drivers/char/ipmi/ipmi_si_intf.c| 9 + drivers

[PATCH v2 11/13] drivers/staging/rtl8188eu: convert stats to use seqnum_ops

2020-11-13 Thread Shuah Khan
Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. Convert it to use seqnum_ops. atomic_t variables used for stats are atomic counters. Convert them to use seqnum_ops. Signed-off-by: Shuah Khan --- drivers/staging/rtl8188eu

[PATCH v2 12/13] drivers/staging/unisys/visorhba: convert stats to use seqnum_ops

2020-11-13 Thread Shuah Khan
Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. Convert it to use seqnum_ops. atomic_t variable used for error_count are atomic counters. Convert it to use seqnum_ops. Signed-off-by: Shuah Khan --- .../staging/unisys/vis

[PATCH v2 13/13] security/integrity/ima: converts stats to seqnum_ops

2020-11-13 Thread Shuah Khan
Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. Convert it to use seqnum_ops. atomic_t variables used for ima_htable.violations and number of stored measurements and ios_threshold are atomic counters. Convert them to seqnum

Re: [PATCH bpf-next v5 06/34] bpf: prepare for memcg-based memory accounting for bpf maps

2020-11-13 Thread Song Liu
> On Nov 12, 2020, at 2:15 PM, Roman Gushchin wrote: [...] > > +#ifdef CONFIG_MEMCG_KMEM > +static __always_inline int __bpf_map_update_elem(struct bpf_map *map, void > *key, > + void *value, u64 flags) > +{ > + struct mem_cgroup *old_memcg;

[PATCH v2 07/13] drivers/edac: convert pci counters to seqnum_ops

2020-11-13 Thread Shuah Khan
Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. atomic_t variables used for pci counters keep track of pci parity and non-parity errors. Convert them to use seqnum_ops. Signed-off-by: Shuah Khan --- drivers/edac/edac_pci

BCM20702A0 bluetooth dongle not working

2020-11-13 Thread Alex Dewar
Hi all! I've just got a Broadcom BCM20702A0 USB Bluetooth dongle but it seems not to be working :-(. Whenever I search for devices only their MAC addresses appear (not their names) and I can't seem to pair with them. Logs are below. Any help would be massively appreciated :-) Alex Here's

[PATCH v2 09/13] drivers/staging/rtl8723bs: convert stats to use seqnum_ops

2020-11-13 Thread Shuah Khan
Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. Convert it to use seqnum_ops. atomic_t variables used for stats are atomic counters. Convert them to use seqnum_ops. Signed-off-by: Shuah Khan --- drivers/staging/rtl8723bs

[PATCH v2 05/13] drivers/base/test/test_async_driver_probe: convert to use seqnum_ops

2020-11-13 Thread Shuah Khan
Sequence Number api provides interfaces for unsigned atomic up counters leveraging atomic_t and atomic64_t ops underneath. atomic_t variables used to count errors, warns, keep track of timeout, and async completion are counters. Convert them to use seqnum32 and init counters to 0. Signed-off-by:

Re: [GIT PULL] bootconfig: Extend the magic check range to the preceding 3 bytes

2020-11-13 Thread pr-tracker-bot
The pull request you sent on Fri, 13 Nov 2020 08:29:30 -0500: > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git > trace-v5.10-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/6186313d06dfadbfd0cda5e36e485877d6600179 Thank you! -- Deet-doot-d

Re: [GIT PULL] more ext4 fixes for v5.10-rc4

2020-11-13 Thread pr-tracker-bot
The pull request you sent on Thu, 12 Nov 2020 23:58:48 -0500: > git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git > tags/ext4_for_linus_bugfixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d3ba7afcc11fe9146def1664c32762d5a6a47713 Thank you! -- Deet-do

[PATCH] vfio/pci: Move dummy_resources_list init in vfio_pci_probe()

2020-11-13 Thread Eric Auger
In case an error occurs in vfio_pci_enable() before the call to vfio_pci_probe_mmaps(), vfio_pci_disable() will try to iterate on an uninitialized list and cause a kernel panic. Lets move to the initialization to vfio_pci_probe() to fix the issue. Signed-off-by: Eric Auger Fixes: 05f0c03fbac1 (

Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-13 Thread Marco Elver
On Tue, Nov 10, 2020 at 11:20PM +0100, 'Andrey Konovalov' via kasan-dev wrote: [...] > +/* kasan.mode=off/prod/full */ > +static int __init early_kasan_mode(char *arg) > +{ > + if (!arg) > + return -EINVAL; > + > + if (!strcmp(arg, "off")) > + kasan_arg_mode = KASAN_

Re: [GIT PULL] bootconfig: Extend the magic check range to the preceding 3 bytes

2020-11-13 Thread Steven Rostedt
On Fri, 13 Nov 2020 09:43:31 -0800 Linus Torvalds wrote: > On Fri, Nov 13, 2020 at 5:29 AM Steven Rostedt wrote: > > > > Fix alignment of bootconfig > > > > GRUB may align the init ramdisk size to 4 bytes, the magic number at the > > end of the init ramdisk that denotes bootconfig is attached ma

Re: [PATCH v2 11/20] kasan: add and integrate kasan boot parameters

2020-11-13 Thread Marco Elver
On Fri, Nov 13, 2020 at 06:52PM +0100, Marco Elver wrote: > On Tue, Nov 10, 2020 at 11:20PM +0100, 'Andrey Konovalov' via kasan-dev wrote: > [...] > > +/* kasan.mode=off/prod/full */ > > +static int __init early_kasan_mode(char *arg) > > +{ > > + if (!arg) > > + return -EINVAL; > > + >

[PATCH v4 1/1] regulator: core: do not continue if selector match

2020-11-13 Thread Claudiu Beznea
Do not continue if selector has already been located. Signed-off-by: Claudiu Beznea --- Changes in v4: - this was part of patch series with title "regulator: mcp16502: add support for ramp delay" -> keep only this patch in series as the rest were applied - rebased on top of current regulator

Re: [PATCH][next] drm/kmb: fix potential integer overflow on multiplication

2020-11-13 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Colin-King/drm-kmb-fix-potential-integer-overflow-on-multiplication/20201113-203903 base:a60b1e1fe9ca5f9d9a79e89a8d71228a8e04d35c config: i386-allyesconfig (attached

Re: [PATCH] kfence: Avoid stalling work queue task without allocations

2020-11-13 Thread Paul E. McKenney
On Thu, Nov 12, 2020 at 09:54:06AM -0800, Paul E. McKenney wrote: > On Thu, Nov 12, 2020 at 05:14:39PM +0100, Marco Elver wrote: [ . . . ] > > | [ 334.160218] BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 > > nice=0 stuck for 15s! > > It might be instructive to cause this code to provok

Re: [GIT PULL] bootconfig: Extend the magic check range to the preceding 3 bytes

2020-11-13 Thread Linus Torvalds
On Fri, Nov 13, 2020 at 9:54 AM Steven Rostedt wrote: > > The issue is that grub padded the end of the ramdisk after loading it > into memory. I'm not sure how the bootconfig tool can fix this. Perhaps > make sure the ram disk size is 4 bytes aligned? Exactly. Since - as far as I can tell - the _

Re: [PATCH v2 2/2] KVM: SVM: Use a separate vmcb for the nested L2 guest

2020-11-13 Thread Paolo Bonzini
On 11/10/20 20:48, Cathy Avery wrote: @@ -432,6 +432,16 @@ int enter_svm_guest_mode(struct vcpu_svm *svm, u64 vmcb_gpa, int ret; svm->nested.vmcb = vmcb_gpa; + + WARN_ON(svm->vmcb == svm->nested.vmcb02); + + svm->nested.vmcb02->control = svm->vmcb01->control; This as

[PATCH 1/6] arm64: dts: qcom: msm8916-longcheer-l8150: Enable PM8916 vibrator

2020-11-13 Thread nikitos . tr
From: Nikita Travkin L8150 has a vibrator connected to PM8916. Add it to the device tree. Signed-off-by: Nikita Travkin --- arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts b/arch/

[PATCH 5/6] arm64: dts: qcom: msm8916-longcheer-l8150: Add notification LED

2020-11-13 Thread nikitos . tr
From: Nikita Travkin L8150 uses aw2013 LED contriller for notification LED on the front of the device. Add it to the device tree Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 34 +++ 1 file changed, 34 insertions(+) diff --git a/arch/arm64/b

[PATCH 6/6] arm64: dts: qcom: msm8916-samsung-a2015: Disable muic i2c pin bias

2020-11-13 Thread nikitos . tr
From: Nikita Travkin Some versions of the firmware leave i2c gpios in a wrong state. Add pinctrl that disables pin bias since external pull-up resistors are present. Fixes: 1329c1ab0730 ("arm64: dts: qcom: Add device tree for Samsung Galaxy A3U/A5U") Signed-off-by: Nikita Travkin --- .../boot

[PATCH 4/6] arm64: dts: qcom: msm8916-longcheer-l8150: Add flash LED

2020-11-13 Thread nikitos . tr
From: Nikita Travkin L8150 uses SGM3785 Flash LED driver. It is similar to SGM3140 but can also be controlled with PWM. Since SoC doesn't have PWM, add led to the device tree using sgm3140 driver. Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 24

[PATCH 3/6] arm64: dts: msm8916-longcheer-l8150: Add position sensors

2020-11-13 Thread nikitos . tr
From: Nikita Travkin L8150 has: - BMC156 accelerometer and magnetic sensor - BMG160 gyroscope sensor Add them to the device tree. Signed-off-by: Nikita Travkin --- .../boot/dts/qcom/msm8916-longcheer-l8150.dts | 46 +++ 1 file changed, 46 insertions(+) diff --git a/arch/arm6

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