[PATCH 1/2] dt-bindings: arm: amlogic: add support for the Beelink GS-King-X

2020-07-17 Thread Christian Hewitt
The Shenzen AZW (Beelink) GS-King-X is based on the Amlogic W400 reference board with an S922X-H chip. Signed-off-by: Christian Hewitt --- Documentation/devicetree/bindings/arm/amlogic.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/amlogic.yaml b/

[PATCH] mt7601u: add missing release on skb in mt7601u_mcu_msg_send

2020-07-17 Thread Navid Emamdoost
In the implementation of mt7601u_mcu_msg_send(), skb is supposed to be consumed on all execution paths. Release skb before returning if test_bit() fails. Signed-off-by: Navid Emamdoost --- drivers/net/wireless/mediatek/mt7601u/mcu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[tip:x86/platform] BUILD SUCCESS 3bcf25a40b018e632d70bb866d75746748953fbc

2020-07-17 Thread kernel test robot
randconfig-a001-20200717 i386 randconfig-a005-20200717 i386 randconfig-a002-20200717 i386 randconfig-a006-20200717 i386 randconfig-a003-20200717 i386 randconfig-a004-20200717 x86_64 randconfig-a012-20200716

Re: [PATCH] tools/memory-model: document the "one-time init" pattern

2020-07-17 Thread Eric Biggers
On Sat, Jul 18, 2020 at 03:13:04AM +0100, Matthew Wilcox wrote: > On Fri, Jul 17, 2020 at 06:38:39PM -0700, Eric Biggers wrote: > > On Fri, Jul 17, 2020 at 06:47:50PM +0100, Matthew Wilcox wrote: > > > On Thu, Jul 16, 2020 at 09:44:27PM -0700, Eric Biggers wrote: > > > > +If that doesn't apply, you

[PATCH] arm64: dts: meson: misc fixups for w400 dtsi

2020-07-17 Thread Christian Hewitt
Current devices using the W400 dtsi show mmc tuning errors: [12483.917391] mmc0: tuning execution failed: -5 [30535.551221] mmc0: tuning execution failed: -5 [35359.953671] mmc0: tuning execution failed: -5 [35561.875332] mmc0: tuning execution failed: -5 [61733.348709] mmc0: tuning execution fail

[PATCH] nfc: s3fwrn5: add missing release on skb in s3fwrn5_recv_frame

2020-07-17 Thread Navid Emamdoost
The implementation of s3fwrn5_recv_frame() is supposed to consume skb on all execution paths. Release skb before returning -ENODEV. Signed-off-by: Navid Emamdoost --- drivers/nfc/s3fwrn5/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nfc/s3fwrn5/core.c b/drivers/nfc/s3fwrn5/c

[PATCH] arm64: dts: meson: fix mmc0 tuning error on Khadas VIM3

2020-07-17 Thread Christian Hewitt
Similar to other G12B devices using the W400 dtsi, I see reports of mmc0 tuning errors on VIM3 after a few hours uptime: [12483.917391] mmc0: tuning execution failed: -5 [30535.551221] mmc0: tuning execution failed: -5 [35359.953671] mmc0: tuning execution failed: -5 [35561.875332] mmc0: tuning ex

Re: [PATCH v5 0/7] x86/boot: Remove run-time relocations from compressed kernel

2020-07-17 Thread Ard Biesheuvel
On Fri, 17 Jul 2020 at 21:17, Nick Desaulniers wrote: > > On Fri, Jul 17, 2020 at 6:46 AM Arvind Sankar wrote: > > > > On Tue, Jul 14, 2020 at 08:41:26PM -0400, Arvind Sankar wrote: > > > The compressed kernel currently contains bogus run-time relocations in > > > the startup code in head_{32,64}

[PATCH] arm64: dts: meson: update spifc node name on Khadas VIM3/VIM3L

2020-07-17 Thread Christian Hewitt
The VIM3/VIM3L Boards use w25q128 not w25q32 - this is a cosmetic change only - the device probes fine with the current device-tree. Fixes: 0e1610e726d3 ("arm64: dts: khadas-vim3: add SPIFC controller node") Signed-off-by: Christian Hewitt --- arch/arm64/boot/dts/amlogic/meson-khadas-vim3.dtsi |

Re: [PATCH 06/13] fs/kernel_read_file: Remove redundant size argument

2020-07-17 Thread Scott Branden
Hi Kees, On 2020-07-17 3:06 p.m., Kees Cook wrote: On Fri, Jul 17, 2020 at 12:04:18PM -0700, Scott Branden wrote: On 2020-07-17 10:43 a.m., Kees Cook wrote: In preparation for refactoring kernel_read_file*(), remove the redundant "size" argument which is not needed: it can be included in the r

Re: [PATCH v5 03/17] perf ftrace: add option -t/--tid to filter by thread id

2020-07-17 Thread Changbin Du
On Fri, Jul 17, 2020 at 01:01:24PM -0400, Steven Rostedt wrote: > On Fri, 17 Jul 2020 21:26:50 +0800 > Changbin Du wrote: > > > On Thu, Jul 16, 2020 at 12:36:30PM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Sat, Jul 11, 2020 at 08:40:21PM +0800, Changbin Du escreveu: > > > > This allows us

[PATCH] mt76: mt76u: add missing release on skb in __mt76x02u_mcu_send_msg

2020-07-17 Thread Navid Emamdoost
In the implementation of __mt76x02u_mcu_send_msg() the skb is consumed all execution paths except one. Release skb before returning if test_bit() fails. Signed-off-by: Navid Emamdoost --- drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletio

Re: [PATCH RFC V2 12/17] memremap: Add zone device access protection

2020-07-17 Thread Ira Weiny
On Fri, Jul 17, 2020 at 11:17:18AM +0200, Peter Zijlstra wrote: > On Fri, Jul 17, 2020 at 12:20:51AM -0700, ira.we...@intel.com wrote: > > +void dev_access_disable(void) > > +{ > > + unsigned long flags; > > + > > + if (!static_branch_unlikely(&dev_protection_static_key)) > > + return

Re: [RFC][PATCH] x86: optimization to avoid CAL+RES IPIs

2020-07-17 Thread Josh Don
Hey Andy, thanks for taking a look. On Fri, Jul 17, 2020 at 8:14 PM Andy Lutomirski wrote: > > PeterZ and I fixed a whole series of bugs a few years ago, and remote > wakeups *should* already do this. Did we miss something? Did it > regress? Even the call_function_single path ought to go throug

Re: [GIT PULL] EFI fixes for v5.8-rc

2020-07-17 Thread Ard Biesheuvel
On Thu, 9 Jul 2020 at 16:28, Ard Biesheuvel wrote: > > The following changes since commit 2a55280a3675203496d302463b941834228b9875: > > efi/libstub: arm: Print CPU boot mode and MMU state at boot (2020-06-17 > 15:29:11 +0200) > > are available in the Git repository at: > > git://git.kernel.or

Re: [PATCH 1/3] media: rkvdec: Fix H264 scaling list order

2020-07-17 Thread Mauro Carvalho Chehab
Em Sat, 18 Jul 2020 07:05:54 +0200 Mauro Carvalho Chehab escreveu: > From: Jonas Karlman > > The Rockchip Video Decoder driver is expecting that the values in a > scaling list are in zig-zag order and applies the inverse scanning process > to get the values in matrix order. > > Commit 0b0393d5

Re: [v2 1/4] coccinelle: api: extend memdup_user transformation with GFP_USER

2020-07-17 Thread Markus Elfring
> Applied. Do you care for patch review concerns according to this SmPL script adjustment? * https://lore.kernel.org/cocci/5c0dae88-e172-3ba6-f86c-d1a6238bb...@web.de/ https://lkml.org/lkml/2020/6/9/568 * https://lore.kernel.org/cocci/c3464cad-e567-9ef5-b4e3-a01e3b111...@web.de/ https://lkml

Re: [PATCH] libbpf bpf_helpers: Use __builtin_offsetof for offsetof if available

2020-07-17 Thread Yonghong Song
On 7/17/20 12:23 AM, Ian Rogers wrote: The non-builtin route for offsetof has a dependency on size_t from stdlib.h/stdint.h that is undeclared and may break targets. The offsetof macro in bpf_helpers may disable the same macro in other headers that have a #ifdef offsetof guard. Rather than add

[PATCH v2] smp: Fix a potential usage of stale nr_cpus

2020-07-17 Thread Muchun Song
When the cmdline of "nr_cpus" is not valid, the @nr_cpu_ids is assigned a stale value. The nr_cpus is only valid when get_option() return 1. So check the return value to prevent this. Signed-off-by: Muchun Song --- changelog in v2: 1) Rework the commit log. 2) Rework the return value check.

[PATCH v2] f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctl

2020-07-17 Thread Daeho Jeong
From: Daeho Jeong Added a new ioctl to send discard commands or/and zero out to selected data area of a regular file for security reason. The way of handling range.len of F2FS_IOC_SEC_TRIM_FILE: 1. Added -1 value support for range.len to secure trim the whole blocks starting from range.start

[tip:master] BUILD SUCCESS 01634f2bd42e6fdd2d2959d97c26fcfab36be02a

2020-07-17 Thread kernel test robot
ig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a016-20200717 i386 randconfig-a011-20200717 i386 randconfig-a015-202

[PATCH V1] arm64: dts: qcom: Add bandwidth votes for eMMC and SDcard

2020-07-17 Thread Shaik Sajida Bhanu
From: Pradeep P V K Add the bandwidth domain supporting performance state and the corresponding OPP tables for the sdhc device on sc7180. Signed-off-by: Shaik Sajida Bhanu --- This change is depends on the patch series https://lkml.org/lkml/2020/6/30/1280 Also depends on documentation commit 55

[PATCH V1] arm64: dts: qcom: SD-card GPIO pin set bias-pull up

2020-07-17 Thread Shaik Sajida Bhanu
From: Veerabhadrarao Badiganti On some sc7180 based platforms where external pull is not present on cd-gpio, this gpio state is getting read as HIGH when sleep config is applied on it. This is resulting in SDcard rescan after suspend-resume even though SDcard is not present. Update cd-gpio sleep

[PATCH 3/7] KVM: VMX: Add a helper to test for a valid error code given an intr info

2020-07-17 Thread Sean Christopherson
Add a helper, is_exception_with_error_code(), to provide the simple but difficult to read code of checking for a valid exception with an error code given a vmcs.VM_EXIT_INTR_INFO value. The helper will gain another user, vmx_get_exit_info(), in a future patch. Signed-off-by: Sean Christopherson

[PATCH 2/7] KVM: x86: Read guest RIP from within the kvm_nested_vmexit tracepoint

2020-07-17 Thread Sean Christopherson
Use kvm_rip_read() to read the guest's RIP for the nested VM-Exit tracepoint instead of having the caller pass in the tracepoint. Params that are passed into a tracepoint are evaluated even if the tracepoint is disabled, i.e. passing in RIP for VMX incurs a VMREAD and retpoline to retrieve a value

[PATCH 6/7] KVM: x86: Use common definition for kvm_nested_vmexit tracepoint

2020-07-17 Thread Sean Christopherson
Use the newly introduced TRACE_EVENT_KVM_EXIT to define the guts of kvm_nested_vmexit so that it captures and prints the same information as with kvm_exit. This has the bonus side effect of fixing the interrupt info and error code printing for the case where they're invalid, e.g. if the exit was a

[PATCH 7/7] KVM: nVMX: Read EXIT_QUAL and INTR_INFO only when needed for nested exit

2020-07-17 Thread Sean Christopherson
Read vmcs.EXIT_QUALIFICATION and vmcs.VM_EXIT_INTR_INFO only when the VM-Exit is being reflected to L1 now that they are no longer passed directly to the kvm_nested_vmexit tracepoint. No functional change intended. Signed-off-by: Sean Christopherson --- arch/x86/kvm/vmx/nested.c | 5 ++--- 1 fi

[PATCH] kconfig: constify XPM data

2020-07-17 Thread Masahiro Yamada
Constify arrays as well as strings. Signed-off-by: Masahiro Yamada --- scripts/kconfig/images.c | 30 +++--- scripts/kconfig/images.h | 30 +++--- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/scripts/kconfig/images.c b/scripts/

[PATCH 5/7] KVM: x86: Add macro wrapper for defining kvm_exit tracepoint

2020-07-17 Thread Sean Christopherson
Macrofy the definition of kvm_exit so that the definition can be reused verbatim by kvm_nested_vmexit. No functional change intended. Signed-off-by: Sean Christopherson --- arch/x86/kvm/trace.h | 69 +++- 1 file changed, 36 insertions(+), 33 deletions(-)

[PATCH 0/7] KVM: x86: Tracepoint improvements and fixes

2020-07-17 Thread Sean Christopherson
Various improvements and fixes for the kvm_entry, kvm_exit and kvm_nested_vmexit tracepoints. 1. Capture the guest's RIP during kvm_entry for obvious reasons. 2. Extend kvm_exit to report the same info as kvm_nested_vmexit, and macrofy its definition to reuse it verbatim for nested exits

[PATCH 4/7] KVM: x86: Add intr/vectoring info and error code to kvm_exit tracepoint

2020-07-17 Thread Sean Christopherson
Extend the kvm_exit tracepoint to align it with kvm_nested_vmexit in terms of what information is captured. On SVM, this means adding interrupt info and error code, and on VMX it means adding ITD vectoring and error code. This sets the stage for macrofying the kvm_exit tracepoint definition so th

[PATCH 1/7] KVM: x86: Add RIP to the kvm_entry, i.e. VM-Enter, tracepoint

2020-07-17 Thread Sean Christopherson
Add RIP to the kvm_entry tracepoint to help debug if the kvm_exit tracepoint is disable or if VM-Enter fails, in which case the kvm_exit tracepoint won't be hit. Read RIP from within the tracepoint itself to avoid a potential VMREAD and retpoline if the guest's RIP isn't available. Signed-off-by:

Re: [v2 1/4] coccinelle: api: extend memdup_user transformation with GFP_USER

2020-07-17 Thread Julia Lawall
On Sat, 18 Jul 2020, Markus Elfring wrote: > > Applied. > > Do you care for patch review concerns according to this SmPL script > adjustment? > > * https://lore.kernel.org/cocci/5c0dae88-e172-3ba6-f86c-d1a6238bb...@web.de/ > https://lkml.org/lkml/2020/6/9/568 This one it complete nonsense.

Re: [PATCH 01/20] dlb2: add skeleton for DLB 2.0 driver

2020-07-17 Thread Greg KH
On Fri, Jul 17, 2020 at 06:19:14PM +, Eads, Gage wrote: > > > > -Original Message- > > From: Greg KH > > Sent: Sunday, July 12, 2020 10:57 AM > > To: Eads, Gage > > Cc: linux-kernel@vger.kernel.org; a...@arndb.de; Karlsson, Magnus > > ; Topel, Bjorn > > Subject: Re: [PATCH 01/20] d

Re: [PATCH 01/20] dlb2: add skeleton for DLB 2.0 driver

2020-07-17 Thread Greg KH
On Fri, Jul 17, 2020 at 06:18:46PM +, Eads, Gage wrote: > > > > -Original Message- > > From: Greg KH > > Sent: Sunday, July 12, 2020 10:58 AM > > To: Eads, Gage > > Cc: linux-kernel@vger.kernel.org; a...@arndb.de; Karlsson, Magnus > > ; Topel, Bjorn > > Subject: Re: [PATCH 01/20] d

[PATCH v7 00/18] perf: ftrace enhancement

2020-07-17 Thread Changbin Du
The perf has basic kernel ftrace support but lack support of most tracing options. This serias is target to enhance the perf ftrace functionality so that we can make full use of kernel ftrace with perf. In general, this serias be cataloged into two main changes: 1) Improve usability of existing

Re: [PATCH 04/20] dlb2: add device ioctl layer and first 4 ioctls

2020-07-17 Thread gregkh
On Fri, Jul 17, 2020 at 08:05:08PM +, Eads, Gage wrote: > > > > -Original Message- > > From: Arnd Bergmann > > Sent: Friday, July 17, 2020 1:57 PM > > To: Eads, Gage > > Cc: linux-kernel@vger.kernel.org; gregkh ; > > Karlsson, Magnus ; Topel, Bjorn > > > > Subject: Re: [PATCH 04/20

[PATCH v7 02/18] perf ftrace: add option '-F/--funcs' to list available functions

2020-07-17 Thread Changbin Du
This adds an option '-F/--funcs' to list all available functions to trace, which is read from tracing file 'available_filter_functions'. $ sudo ./perf ftrace -F | head trace_initcall_finish_cb initcall_blacklisted do_one_initcall do_one_initcall trace_initcall_start_cb run_init_process try_to_run_

[PATCH v7 05/18] perf ftrace: show trace column header

2020-07-17 Thread Changbin Du
This makes perf-ftrace display column header before printing trace. $ sudo perf ftrace # tracer: function # # entries-in-buffer/entries-written: 0/0 #P:8 # #TASK-PID CPU# TIMESTAMP FUNCTION # | | | | | <...>-9246 [

[PATCH v7 01/18] perf ftrace: select function/function_graph tracer automatically

2020-07-17 Thread Changbin Du
The '-g/-G' options have already implied function_graph tracer should be used instead of function tracer. So the extra option '--tracer' can be killed. This patch changes the behavior as below: - By default, function tracer is used. - If '-g' or '-G' option is on, then function_graph tracer is

[PATCH v7 10/18] perf ftrace: add support for trace option funcgraph-irqs

2020-07-17 Thread Changbin Du
This adds an option '--graph-opts noirqs' to filter out functions executed in irq context. Signed-off-by: Changbin Du --- v2: option name '--nofuncgraph-irqs' -> '--graph-noirqs'. --- tools/perf/Documentation/perf-ftrace.txt | 1 + tools/perf/builtin-ftrace.c | 21

[PATCH v7 03/18] perf ftrace: factor out function write_tracing_file_int()

2020-07-17 Thread Changbin Du
We will reuse this function later. Signed-off-by: Changbin Du --- tools/perf/builtin-ftrace.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c index 3c0e60fdfe0f..9abf97c29cb6 100644 --- a/tools/perf/

[PATCH v7 04/18] perf ftrace: add option '-m/--buffer-size' to set per-cpu buffer size

2020-07-17 Thread Changbin Du
This adds an option '-m/--buffer-size' to allow us set the size of per-cpu tracing buffer. Signed-off-by: Changbin Du --- v2: support units as a suffix. --- tools/perf/Documentation/perf-ftrace.txt | 5 +++ tools/perf/builtin-ftrace.c | 56 +++- 2 files changed

[PATCH v7 09/18] perf ftrace: add support for trace option sleep-time

2020-07-17 Thread Changbin Du
This adds an option '--graph-opts nosleep-time' which allow us only to measure on-CPU time. This option is function_graph tracer only. Signed-off-by: Changbin Du --- v3: switch to uniform option --graph-opts. v2: option name '--nosleep-time' -> '--graph-nosleep-time'. --- tools/perf/Documentati

[PATCH v7 11/18] perf ftrace: add support for tracing option 'irq-info'

2020-07-17 Thread Changbin Du
This adds support to display irq context info for function tracer. To do this, just specify a '--func-opts irq-info' option. Signed-off-by: Changbin Du --- tools/perf/Documentation/perf-ftrace.txt | 1 + tools/perf/builtin-ftrace.c | 21 - 2 files changed, 21 in

[PATCH v7 06/18] perf ftrace: add option '--inherit' to trace children processes

2020-07-17 Thread Changbin Du
This adds an option '--inherit' to allow us trace children processes spawned by our target. Signed-off-by: Changbin Du --- v2: option name '--trace-children' -> '--inherit'. --- tools/perf/Documentation/perf-ftrace.txt | 3 ++ tools/perf/builtin-ftrace.c | 38 +

[PATCH v7 07/18] perf: util: add general function to parse sublevel options

2020-07-17 Thread Changbin Du
This factors out a general function perf_parse_sublevel_options() to parse sublevel options. The 'sublevel' options is something like the '--debug' options which allow more sublevel options. Signed-off-by: Changbin Du --- v2: add util/parse-sublevel-options.c --- tools/perf/util/Build

[PATCH v7 08/18] perf ftrace: add support for tracing option 'func_stack_trace'

2020-07-17 Thread Changbin Du
This adds support to display call trace for function tracer. To do this, just specify a '--func-opts call-graph' option. $ sudo perf ftrace -T vfs_read --func-opts call-graph iio-sensor-prox-855 [003] 6168.369657: vfs_read <-ksys_read iio-sensor-prox-855 [003] 6168.369677: => vfs_read

[PATCH v7 15/18] perf ftrace: add option -D/--delay to delay tracing

2020-07-17 Thread Changbin Du
This adds an option '-D/--delay' to allow us to start tracing some times later after workload is launched. Signed-off-by: Changbin Du --- tools/perf/Documentation/perf-ftrace.txt | 4 tools/perf/builtin-ftrace.c | 19 --- 2 files changed, 20 insertions(+), 3 de

[PATCH v7 14/18] perf: ftrace: allow set graph depth by '--graph-opts'

2020-07-17 Thread Changbin Du
This is to have a consistent view of all graph tracer options. The original option '--graph-depth' is marked as deprecated. Signed-off-by: Changbin Du --- tools/perf/Documentation/perf-ftrace.txt | 5 + tools/perf/builtin-ftrace.c | 5 ++--- 2 files changed, 3 insertions(+), 7 d

[PATCH v7 16/18] perf ftrace: add option --tid to filter by thread id

2020-07-17 Thread Changbin Du
This allows us to trace single thread instead of the whole process. Signed-off-by: Changbin Du --- tools/perf/Documentation/perf-ftrace.txt | 3 +++ tools/perf/builtin-ftrace.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tools/perf/Documentation/perf-ftrace.txt b/tools/

[PATCH v7 12/18] perf ftrace: add option 'verbose' to show more info for graph tracer

2020-07-17 Thread Changbin Du
Sometimes we want ftrace display more and longer information about the trace. $ sudo perf ftrace -G '*' 2) 0.979 us| mutex_unlock(); 2) 1.540 us| __fsnotify_parent(); 2) 0.433 us| fsnotify(); $ sudo perf ftrace -G '*' --graph-opts verbose 14160.770883 | 0) <...>-47814

[PATCH v7 17/18] perf: ftrace: Add set_tracing_options() to set all trace options

2020-07-17 Thread Changbin Du
Now the __cmd_ftrace() becomes a bit long. This moves the trace option setting code to a separate function set_tracing_options(). Suggested-by: Namhyung Kim Signed-off-by: Changbin Du --- tools/perf/builtin-ftrace.c | 118 +++- 1 file changed, 63 insertions(+), 5

[PATCH v7 13/18] perf ftrace: add support for trace option tracing_thresh

2020-07-17 Thread Changbin Du
This adds an option '--graph-opts thresh' to setup trace duration threshold for funcgraph tracer. $ sudo ./perf ftrace -G '*' --graph-opts thresh=100 3) ! 184.060 us |} /* schedule */ 3) ! 185.600 us | } /* exit_to_usermode_loop */ 2) ! 225.989 us |} /* schedule_idle */ 2) # 4140.0

[PATCH v7 18/18] perf ftrace: add change log

2020-07-17 Thread Changbin Du
Add a change log after previous enhancements. Signed-off-by: Changbin Du --- tools/perf/builtin-ftrace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c index 4551d4d4bcc5..9213fb9777c4 100644 --- a/tools/perf/builtin-ftrace.c +++ b/t

[PATCH 00/12] arm64: dts: meson: add more GX soundcards

2020-07-17 Thread Christian Hewitt
From: chewitt This series adds basic support for LPCM audio over HDMI and S/PDIF interfaces to GXBB/GXL/GXM devices without support. I'm sure audio support can be extended in places (some devices have internal DACs and headphone hardware) but this gets the HDMI port working as a minimum capabilit

[PATCH 01/12] arm64: dts: meson: add audio playback to a95x

2020-07-17 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../dts/amlogic/meson-gxbb-nexbox-a95x.dts| 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts b/arch/arm64/boot/dts/amlogic/meson-gx

[PATCH 02/12] arm64: dts: meson: add audio playback to khadas-vim2

2020-07-17 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../dts/amlogic/meson-gxm-khadas-vim2.dts | 44 +-- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/a

[PATCH 08/12] arm64: dts: meson: add audio playback to p212-s905x dtsi

2020-07-17 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../dts/amlogic/meson-gxl-s905x-p212.dtsi | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl

[PATCH 12/12] arm64: dts: meson: add audio playback to wetek-play2

2020-07-17 Thread Christian Hewitt
Add initial support limited to HDMI i2s and SPDIF (LPCM). Signed-off-by: Christian Hewitt --- .../dts/amlogic/meson-gxbb-wetek-play2.dts| 61 +++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dts b/arch/arm64/boot/dts/amlog

[PATCH 09/12] arm64: dts: meson: add audio playback to rbox-pro

2020-07-17 Thread Christian Hewitt
Add initial support limited to HDMI i2s and SPDIF (LPCM). Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxm-rbox-pro.dts | 80 +++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-rbox-pro.dts b/arch/arm64/boot/dts/amlogic/m

[PATCH 03/12] arm64: dts: meson: add audio playback to nanopi-k2

2020-07-17 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb

[PATCH 10/12] arm64: dts: meson: add audio playback to vega-s95 dtsi

2020-07-17 Thread Christian Hewitt
Add initial support limited to HDMI i2s and SPDIF (LPCM). Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 61 +++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic

[PATCH 11/12] arm64: dts: meson: add audio playback to wetek-hub

2020-07-17 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxbb-wetek-hub.dts | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-hub.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb

[PATCH 05/12] arm64: dts: meson: add audio playback to odroid-c2

2020-07-17 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxbb-odroidc2.dts | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-

[PATCH 06/12] arm64: dts: meson: add audio playback to p201

2020-07-17 Thread Christian Hewitt
Add initial audio support limited to HDMI i2s. Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxbb-p201.dts | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p201.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-p201

[PATCH] staging: rtl8188eu: clear tabstop style issues

2020-07-17 Thread Michael Straube
Clear tabstop style issues reported by checkpatch. WARNING: Statements should start on a tabstop Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_ioctl_set.c| 2 +- drivers/staging/rtl8188eu/hal/rtl8188e_hal_init.c | 2 +- drivers/staging/rtl8188eu/os_dep/ioctl_linux.c

[PATCH 07/12] arm64: dts: meson: add audio playback to p200

2020-07-17 Thread Christian Hewitt
Add initial support limited to HDMI i2s and SPDIF (LPCM). Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxbb-p200.dts | 61 +++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts b/arch/arm64/boot/dts/amlogic/meso

[PATCH 04/12] arm64: dts: meson: add audio playback to nexbox-a1

2020-07-17 Thread Christian Hewitt
Add initial support is limited to HDMI i2s and SPDIF (LPCM). Signed-off-by: Christian Hewitt --- .../boot/dts/amlogic/meson-gxm-nexbox-a1.dts | 80 +++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-nexbox-a1.dts b/arch/arm64/boot/dts/amlog

Re: [RESEND RESEND PATCH] arm/arm64: defconfig: Update configs to use the new CROS_EC options

2020-07-17 Thread Arnd Bergmann
On Wed, Jul 15, 2020 at 11:31 PM Enric Balletbo Serra wrote: > Missatge de Enric Balletbo i Serra del > dia dj., 5 de març 2020 a les 12:11: > > > > We refactored the CrOS EC drivers moving part of the code from the MFD > > subsystem to the platform chrome subsystem. During this change we needed

[PATCH v12 02/15] tools/libperf: add flags to fdarray fds objects

2020-07-17 Thread Alexey Budankov
Store flags per struct pollfd *entries object in a bitmap of int size. Implement fdarray_flag__nonfilterable flag to skip object from counting by fdarray__filter(). Fixed fdarray test issue reported by kernel test robot. Signed-off-by: Alexey Budankov Acked-by: Jiri Olsa Acked-by: Namhyung Kim

Re: linux-next: build failure after merge of the mfd tree

2020-07-17 Thread Stephen Rothwell
Hi Lee, On Fri, 17 Jul 2020 07:56:36 +0100 Lee Jones wrote: > > > +static const char *kempld_devs[] = { > > Do you mind if I change this to 'kempld_dev_names' and still keep your > SoB? No worries, I just did a quick hack, so if you neaten it up that would be good. -- Cheers, Stephen Rothwe

[PATCH v12 03/15] tools/libperf: avoid counting of nonfilterable fdarray fds

2020-07-17 Thread Alexey Budankov
Avoid counting of struct pollfd *entries objects with fdarray_flag__nonfilterable flag by fdarray__filter(). Nonfilterable objects are still processed if requested revents have been signaled for them. Signed-off-by: Alexey Budankov Acked-by: Jiri Olsa Acked-by: Namhyung Kim --- tools/lib/api

[PATCH v12 04/15] perf evlist: introduce control file descriptors

2020-07-17 Thread Alexey Budankov
Define and initialize control file descriptors. Signed-off-by: Alexey Budankov Acked-by: Jiri Olsa Acked-by: Namhyung Kim --- tools/perf/util/evlist.c | 3 +++ tools/perf/util/evlist.h | 5 + 2 files changed, 8 insertions(+) diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist

[PATCH v12 05/15] perf evlist: implement control command handling functions

2020-07-17 Thread Alexey Budankov
Implement functions of initialization, finalization and processing of control command messages coming from control file descriptors. Allocate control file descriptor as descriptor at struct pollfd object of evsel_list for atomic poll() operation. Signed-off-by: Alexey Budankov Acked-by: Jiri Ol

[PATCH v12 06/15] perf stat: factor out body of event handling loop for system wide

2020-07-17 Thread Alexey Budankov
Introduce handle_interval() function that factors out body of event handling loop for attach and system wide monitoring use cases. Signed-off-by: Alexey Budankov Acked-by: Jiri Olsa Acked-by: Namhyung Kim --- tools/perf/builtin-stat.c | 17 +++-- 1 file changed, 11 insertions(+),

[PATCH v12 07/15] perf stat: move target check to loop control statement

2020-07-17 Thread Alexey Budankov
Check for target existence in loop control statement jointly external asynchronous 'done' signal. Signed-off-by: Alexey Budankov Acked-by: Jiri Olsa Acked-by: Namhyung Kim --- tools/perf/builtin-stat.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/perf/builtin-

[PATCH v12 08/15] perf stat: factor out body of event handling loop for fork case

2020-07-17 Thread Alexey Budankov
Factor out body of event handling loop for fork case reusing handle_interval() function. Signed-off-by: Alexey Budankov Acked-by: Jiri Olsa Acked-by: Namhyung Kim --- tools/perf/builtin-stat.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/perf/builtin-stat.c b

[PATCH v12 09/15] perf stat: factor out event handling loop into dispatch_events()

2020-07-17 Thread Alexey Budankov
Consolidate event dispatching loops for fork, attach and system wide monitoring use cases into common dispatch_events() function. Signed-off-by: Alexey Budankov Acked-by: Jiri Olsa Acked-by: Namhyung Kim --- tools/perf/builtin-stat.c | 36 1 file changed,

[PATCH v12 10/15] perf stat: extend -D,--delay option with -1 value

2020-07-17 Thread Alexey Budankov
Extend -D,--delay option with -1 value to start monitoring with events disabled to be enabled later by enable command provided via control file descriptor. Signed-off-by: Alexey Budankov Acked-by: Jiri Olsa Acked-by: Namhyung Kim --- tools/perf/Documentation/perf-stat.txt | 5 +++-- tools/p

[PATCH v12 11/15] perf stat: implement control commands handling

2020-07-17 Thread Alexey Budankov
Implement handling of 'enable' and 'disable' control commands coming from control file descriptor. If poll event splits initiated timeout interval then the reminder is calculated and still waited in the following evlist__poll() call. Signed-off-by: Alexey Budankov Acked-by: Jiri Olsa Acked-by:

[PATCH v12 12/15] perf stat: introduce --control fd:ctl-fd[,ack-fd] options

2020-07-17 Thread Alexey Budankov
Introduce --control fd:ctl-fd[,ack-fd] options to pass open file descriptors numbers from command line. Extend perf-stat.txt file with --control fd:ctl-fd[,ack-fd] options description. Document possible usage model introduced by --control fd:ctl-fd[,ack-fd] options by providing example bash shell

Re: [PATCH -next] drm/komeda: Convert to DEFINE_SHOW_ATTRIBUTE

2020-07-17 Thread Daniel Vetter
On Fri, Jul 17, 2020 at 8:40 AM james qian wang (Arm Technology China) wrote: > > On Thu, Jul 16, 2020 at 05:03:33PM +0800, Qinglang Miao wrote: > > From: Liu Shixin > > > > Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. > > > > Signed-off-by: Liu Shixin > > --- > > drivers/gpu/drm/arm/d

[PATCH v12 13/15] perf record: extend -D,--delay option with -1 value

2020-07-17 Thread Alexey Budankov
Extend -D,--delay option with -1 to start collection with events disabled to be enabled later by 'enable' command provided via control file descriptor. Signed-off-by: Alexey Budankov Acked-by: Jiri Olsa Acked-by: Namhyung Kim --- tools/perf/Documentation/perf-record.txt | 5 +++-- tools/per

[PATCH v12 14/15] perf record: implement control commands handling

2020-07-17 Thread Alexey Budankov
Implement handling of 'enable' and 'disable' control commands coming from control file descriptor. Signed-off-by: Alexey Budankov Acked-by: Jiri Olsa Acked-by: Namhyung Kim --- tools/perf/builtin-record.c | 16 1 file changed, 16 insertions(+) diff --git a/tools/perf/builti

[PATCH v12 15/15] perf record: introduce --control fd:ctl-fd[,ack-fd] options

2020-07-17 Thread Alexey Budankov
Introduce --control fd:ctl-fd[,ack-fd] options to pass open file descriptors numbers from command line. Extend perf-record.txt file with --control fd:ctl-fd[,ack-fd] options description. Document possible usage model introduced by --control fd:ctl-fd[,ack-fd] options by providing example bash she

[PATCH] drm/amd/powerplay: fix a crash when overclocking Vega M

2020-07-17 Thread Qiu Wenbo
Avoid kernel crash when vddci_control is SMU7_VOLTAGE_CONTROL_NONE and vddci_voltage_table is empty. It has been tested on Intel Hades Canyon (i7-8809G). Bug: https://bugzilla.kernel.org/show_bug.cgi?id=208489 Fixes: ac7822b0026f ("drm/amd/powerplay: add smumgr support for VEGAM (v2)") Signed-off-

Re: linux-next: build failure after merge of the mfd tree

2020-07-17 Thread Lee Jones
On Fri, 17 Jul 2020, Stephen Rothwell wrote: > Hi Lee, > > On Fri, 17 Jul 2020 07:56:36 +0100 Lee Jones wrote: > > > > > +static const char *kempld_devs[] = { > > > > Do you mind if I change this to 'kempld_dev_names' and still keep your > > SoB? > > No worries, I just did a quick hack, so i

[PATCH v2] nfc: nci: add missed destroy_workqueue in nci_register_device

2020-07-17 Thread Wang Hai
When nfc_register_device fails in nci_register_device, destroy_workqueue() shouled be called to destroy ndev->tx_wq. Fixes: 3c1c0f5dc80b ("NFC: NCI: Fix nci_register_device init sequence") Reported-by: Hulk Robot Signed-off-by: Wang Hai --- v1->v2: Change the module from "net: cxgb3:" to "nfc:

Re: [PATCH] Replace HTTP links with HTTPS ones: TI KEYSTONE MULTICORE NAVIGATOR DRIVERS

2020-07-17 Thread Tero Kristo
On 08/07/2020 21:19, Alexander A. Klimov wrote: Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: F

Re: [PATCH] net: cxgb3: add missed destroy_workqueue in nci_register_device

2020-07-17 Thread wanghai (M)
subject msg was wrong. "net: cxgb3:" should be "nfc: nci:".  v2 patch has been sent. ("[PATCH v2] nfc: nci: add missed destroy_workqueue in nci_register_device") 在 2020/7/17 14:18, Wang Hai 写道: When nfc_register_device fails in nci_register_device, destroy_workqueue() shouled be called to dest

ERROR: "spurious_interrupt" undefined!

2020-07-17 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 07a56bb875afbe39dabbf6ba7b83783d166863db commit: 0ce5ebd24d25f02c73940f047b12733d84b125e8 mfd: ioc3: Add driver for SGI IOC3 chip date: 6 months ago config: mips-randconfig-c003-20200717 (attached as

Re: [PATCH net-next 1/2] hinic: add support to handle hw abnormal event

2020-07-17 Thread kernel test robot
Hi Luo, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Luo-bin/hinic-add-some-error-messages-for-debug/20200716-205321 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git

linux-next: build failure after merge of the pinctrl tree

2020-07-17 Thread Stephen Rothwell
Hi all, After merging the pinctrl tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/pinctrl/mediatek/pinctrl-mt6779.c:783:1: warning: data definition has no type or storage class 783 | arch_initcall(mt6779_pinctrl_init); | ^ drivers/pinctrl/mediat

Re: [PATCH][next] PCI: rcar-gen2: Use fallthrough pseudo-keyword

2020-07-17 Thread Geert Uytterhoeven
Hi Gustavo, Thanks for your patch! On Thu, Jul 16, 2020 at 11:11 PM Gustavo A. R. Silva wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary > fall-through markings when it is the case. Which unne

Re: [PATCH v2 0/2] arm64: dts: ti: k3-j721e-common-proc-board: Enable audio support

2020-07-17 Thread Tero Kristo
On 03/07/2020 10:44, Peter Ujfalusi wrote: Hi, Change since v1: - not including dt-bindings/sound/ti-mcasp.h as it is not needed the DT binding document and the driver is now in linux-next: https://lore.kernel.org/lkml/159364215574.10630.2058528286314798186.b4...@kernel.org/ Before adding the

Re: [PATCH v2 4/6] cx88: use generic power management

2020-07-17 Thread kernel test robot
-base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Vaibhav-Gupta/pci-use-generic-power-management/20200717-120145 base: git://linuxtv.org/media_tree.git master config: s390-allmodconfig (attached as .config) compiler: s390-linu

[PATCH RFC V2 00/17] PKS: Add Protection Keys Supervisor (PKS) support

2020-07-17 Thread ira . weiny
From: Ira Weiny This RFC series has been reviewed by Dave Hansen. Changes from RFC: Clean up commit messages based on Peter Zijlstra's and Dave Hansen's feedback Fix static branch anti-pattern New patch: (memremap: Convert devmap static branch to {

[PATCH RFC V2 16/17] [dax|pmem]: Enable stray write protection

2020-07-17 Thread ira . weiny
From: Ira Weiny Protecting against stray writes is particularly important for PMEM because, unlike writes to anonymous memory, writes to PMEM persists across a reboot. Thus data corruption could result in permanent loss of data. Therefore, there is no option presented to the user. Enable stray

[PATCH RFC V2 01/17] x86/pkeys: Create pkeys_internal.h

2020-07-17 Thread ira . weiny
From: Ira Weiny Protection Keys User (PKU) and Protection Keys Supervisor (PKS) work in similar fashions. Share code between them by creating a header with common defines, move those defines into this header, change their names to reflect the new use, and include the header where needed. Signed

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