[PATCH v2] fs/proc: Expose RSEQ configuration

2021-01-14 Thread Piotr Figiel
For userspace checkpoint and restore (C/R) some way of getting process state containing RSEQ configuration is needed. There are two ways this information is going to be used: - to re-enable RSEQ for threads which had it enabled before C/R - to detect if a thread was in a critical section during

[PATCH v3 1/2] arm64: dts: sdm845: add oneplus6/6t devices

2021-01-14 Thread Caleb Connolly
Add initial support for the OnePlus 6 (enchilada) and 6T (fajita) based on the sdm845-mtp DT with the following functionality: * Touch * Display * GPU * Wlan and Bluetooth * USB peripheral mode * Remoteproc Signed-off-by: Caleb Connolly --- Changes since v1 * Remove unused pinctrl nodes

Re: [RFC PATCH v3 6/6] of: Add plumbing for restricted DMA pool

2021-01-14 Thread Florian Fainelli
On 1/14/21 1:08 AM, Claire Chang wrote: > On Wed, Jan 13, 2021 at 7:48 AM Florian Fainelli wrote: >> >> On 1/5/21 7:41 PM, Claire Chang wrote: >>> If a device is not behind an IOMMU, we look up the device node and set >>> up the restricted DMA when the restricted-dma-pool is presented. >>> >>>

Re: [PATCH v8 3/3] power: supply: Add battery gauge driver for Acer Iconia Tab A500

2021-01-14 Thread Sebastian Reichel
Hi, On Mon, Dec 28, 2020 at 07:05:47PM +0300, Dmitry Osipenko wrote: > This patch adds battery gauge driver for Acer Iconia Tab A500 device. > The battery gauge function is provided via the Embedded Controller, > which is found on the Acer A500. > > Reviewed-by: Sebastian Reichel >

[PATCH v1 0/2] ACPI: scan: Janitorial changes in acpi_device_add()

2021-01-14 Thread Rafael J. Wysocki
Hi, As per the subject on top of linux-next from today. Please refer to the patch changelogs for details. Thanks!

[PATCH v1 1/2] ACPI: scan: Rearrange memory allocation in acpi_device_add()

2021-01-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The upfront allocation of new_bus_id is done to avoid allocating memory under acpi_device_lock, but it doesn't really help, because (1) it leads to many unnecessary memory allocations for _ADR devices, (2) kstrdup_const() is run under that lock anyway and (3) it

[PATCH v1 2/2] ACPI: scan: Adjust white space in acpi_device_add()

2021-01-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Add empty lines in some places in acpi_device_add() to help readability and drop leading spaces before the labels in there. No functional impact. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/scan.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-)

WARNING in smk_write_relabel_self

2021-01-14 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:65f0d241 Merge tag 'sound-5.11-rc4' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1292d4f750 kernel config: https://syzkaller.appspot.com/x/.config?x=ee2266946ed36986

Re: [PATCH] x86/mm/mtrr: remove definition of DEBUG

2021-01-14 Thread Borislav Petkov
On Thu, Jan 14, 2021 at 08:27:43AM -0800, t...@redhat.com wrote: > From: Tom Rix > > Defining DEBUG should only be done in development. > So remove DEBUG. > > Signed-off-by: Tom Rix > --- > arch/x86/kernel/cpu/mtrr/generic.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git

Re: [PATCH 4/7] wil6210: select CONFIG_CRC32

2021-01-14 Thread Kalle Valo
Arnd Bergmann wrote: > From: Arnd Bergmann > > Without crc32, the driver fails to link: > > arm-linux-gnueabi-ld: drivers/net/wireless/ath/wil6210/fw.o: in function > `wil_fw_verify': > fw.c:(.text+0x74c): undefined reference to `crc32_le' > arm-linux-gnueabi-ld: >

Re: [PATCH v6 11/11] pwm: Add Raspberry Pi Firmware based PWM bus

2021-01-14 Thread Nicolas Saenz Julienne
Hi Uwe, thanks for the review. On Tue, 2021-01-12 at 10:18 +0100, Uwe Kleine-König wrote: [...] > > +duty_cycle = DIV_ROUND_CLOSEST_ULL(state->duty_cycle * > > RPI_PWM_MAX_DUTY, > > + RPI_PWM_PERIOD_NS); > > ... and round down here.

Re: [PATCH] HID: hid-input: avoid splitting keyboard, system and consumer controls

2021-01-14 Thread Dmitry Torokhov
Hi Benjamin, On Thu, Jan 14, 2021 at 10:23:02AM +0100, Benjamin Tissoires wrote: > Hi Dmitry, > > On Thu, Jan 14, 2021 at 7:24 AM Dmitry Torokhov > wrote: > > > > A typical USB keyboard usually splits its keys into several reports: > > > > - one for the basic alphanumeric keys, modifier keys, F

Re: [PATCH] compiler.h: Raise minimum version of GCC to 5.1 for arm64

2021-01-14 Thread Linus Torvalds
On Thu, Jan 14, 2021 at 12:18 AM Ard Biesheuvel wrote: > > So if the arguments are piling up, what is holding us back, other than > inertia? I think we can most certainly just try increasing the minimum version to 5.1 in the next merge window and see. > Note that banning 4.9 for arm64 and

Re: [PATCH] power: supply: bq256xx: Fix BQ256XX_NUM_WD_VAL and bq256xx_watchdog_time[] overrun

2021-01-14 Thread Sebastian Reichel
Hi, On Wed, Jan 13, 2021 at 04:53:52PM -0600, Ricardo Rivera-Matos wrote: > Corrects BQ256XX_NUM_WD_VAL from value of "8" to "4" and fixes the issue when > 'i' > is equal to array size then array index over runs the array > > Fixes: 32e4978bb92 ("power: supply: bq256xx: Introduce the BQ256XX

[PATCH] driver core: Extend device_is_dependent()

2021-01-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki When adding a new device link, device_is_dependent() is used to check whether or not the prospective supplier device does not depend on the prospective consumer one to avoid adding loops to the graph of device dependencies. However, device_is_dependent() does not take

Re: [PATCH v3 08/15] x86: add new features for paravirt patching

2021-01-14 Thread Borislav Petkov
On Thu, Jan 14, 2021 at 07:30:24PM +0100, Borislav Petkov wrote: > On Thu, Dec 17, 2020 at 09:12:57PM +0800, kernel test robot wrote: > >ld: arch/x86/kernel/alternative.o: in function `paravirt_set_cap': > > >> arch/x86/kernel/alternative.c:605: undefined reference to > > >>

cpuidle-qcom-spm.c:undefined reference to `cpu_resume_arm'

2021-01-14 Thread kernel test robot
date: 8 months ago config: arm-randconfig-r002-20210114 (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross

perf tools build broken for RISCV 32 bit

2021-01-14 Thread Emiliano Ingrassia
Hi, When building perf for RISCV 32 bit (v5.10.7) I got the following | In file included from bench/futex-hash.c:29: | bench/futex.h: In function ‘futex_wait’: | bench/futex.h:37:10: error: ‘SYS_futex’ undeclared (first use in this function); did you mean ‘SYS_tee’? This issue is similar to

Re: [PATCH 0/3] arm64: cpufeature: Add filter function to control

2021-01-14 Thread Catalin Marinas
On Thu, Jan 14, 2021 at 08:20:52AM +, Marc Zyngier wrote: > On 2021-01-14 07:15, Srinivas Ramana wrote: > > On 1/11/2021 5:40 AM, Marc Zyngier wrote: > > > On 2021-01-09 00:29, Srinivas Ramana wrote: > > > > This patchset adds a control function for cpufeature framework > > > > so that the

Re: [PATCH RFC] x86/sgx: Add trivial NUMA allocation

2021-01-14 Thread Dave Hansen
On 1/14/21 9:54 AM, Jarkko Sakkinen wrote: > On Tue, Jan 12, 2021 at 04:24:01PM -0800, Dave Hansen wrote: >> We need a bit more information here as well. What's the relationship >> between NUMA nodes and sections? How does the BIOS tell us which NUMA >> nodes a section is in? Is it the same or

[PATCH] ACPI: thermal: Do not call acpi_thermal_check() directly

2021-01-14 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Calling acpi_thermal_check() from acpi_thermal_notify() directly is problematic if _TMP triggers Notify () on the thermal zone for which it has been evaluated (which happens on some systems), because it causes a new acpi_thermal_notify() invocation to be queued up every

Re: [PATCH v6 12/16] net: tip: fix a couple kernel-doc markups

2021-01-14 Thread Jakub Kicinski
On Thu, 14 Jan 2021 10:59:08 -0500 Jon Maloy wrote: > On 1/14/21 3:04 AM, Mauro Carvalho Chehab wrote: > > A function has a different name between their prototype > > and its kernel-doc markup: > > > > ../net/tipc/link.c:2551: warning: expecting prototype for > > link_reset_stats(). Prototype

Re: [PATCH 3/4] RISC-V: Fix L1_CACHE_BYTES for RV32

2021-01-14 Thread Atish Patra
On Wed, Jan 13, 2021 at 9:10 PM Palmer Dabbelt wrote: > > On Thu, 07 Jan 2021 01:26:51 PST (-0800), Atish Patra wrote: > > SMP_CACHE_BYTES/L1_CACHE_BYTES should be defined as 32 instead of > > 64 for RV32. Otherwise, there will be hole of 32 bytes with each memblock > > allocation if it is

Re: [RFC PATCH v3 14/16] cxl/mem: Use CEL for enabling commands

2021-01-14 Thread Jonathan Cameron
On Thu, 14 Jan 2021 10:13:40 -0800 Ben Widawsky wrote: > On 21-01-14 18:02:11, Jonathan Cameron wrote: > > On Mon, 11 Jan 2021 14:51:19 -0800 > > Ben Widawsky wrote: > > > > > The Command Effects Log (CEL) is specified in the CXL 2.0 specification. > > > The CEL is one of two types of logs,

Re: [PATCH v3] kbuild: check the minimum compiler version in Kconfig

2021-01-14 Thread Miguel Ojeda
On Thu, Jan 14, 2021 at 7:08 PM Masahiro Yamada wrote: > > I unified the similar two scripts, gcc-version.sh and clang-version.sh > into the new cc-version.sh. The old scripts invoked the compiler multiple > times (3 times for gcc-version.sh, 4 times for clang-version.sh). I > refactored the code

Re: [PATCH v3 08/15] x86: add new features for paravirt patching

2021-01-14 Thread Borislav Petkov
On Thu, Dec 17, 2020 at 09:12:57PM +0800, kernel test robot wrote: >ld: arch/x86/kernel/alternative.o: in function `paravirt_set_cap': > >> arch/x86/kernel/alternative.c:605: undefined reference to > >> `pv_is_native_spin_unlock' > >> ld: arch/x86/kernel/alternative.c:608: undefined reference

[PATCH mips-next 1/2] MIPS: bitops: fix -Wshadow in asm/bitops.h

2021-01-14 Thread Alexander Lobakin
Solves the following repetitive warning when building with -Wshadow: In file included from ./include/linux/bitops.h:32, from ./include/linux/kernel.h:11, from ./include/linux/skbuff.h:13, from ./include/linux/if_ether.h:19, from

[PATCH mips-next 2/2] MIPS: pgtable: fix -Wshadow in asm/pgtable.h

2021-01-14 Thread Alexander Lobakin
Solves the following repetitive warning when building with -Wshadow: In file included from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/dax.h:6, from ./include/linux/mempolicy.h:11, from

Re: [PATCH v5] perf stat: Fix wrong skipping for per-die aggregation

2021-01-14 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 13, 2021 at 12:07:01PM +0100, Jiri Olsa escreveu: > On Wed, Jan 13, 2021 at 09:56:31AM +0800, Jin Yao wrote: > > SNIP > > > > > root@lkp-csl-2ap4 ~# ./perf stat -a -I 1000 -e llc_misses.mem_read > > --per-die -- sleep 5 > > 1.001586691 S0-D0 11229440

[PATCH mips-next 0/2] MIPS: fix -Wshadow in include files

2021-01-14 Thread Alexander Lobakin
Fix two -Wshadow warnings coming from the include files and thus repetitive and very annoying when building lots of sources. Alexander Lobakin (2): MIPS: bitops: fix -Wshadow in asm/bitops.h MIPS: pgtable: fix -Wshadow in asm/pgtable.h arch/mips/include/asm/bitops.h | 10 +-

[PATCH v2] lib: add basic KUnit test for lib/math

2021-01-14 Thread Daniel Latypov
Add basic test coverage for files that don't require any config options: * gcd.c * lcm.c * int_sqrt.c * reciprocal_div.c (Ignored int_pow.c since it's a simple textbook algorithm.) These tests aren't particularly interesting, but they * provide a place to add tests for any new files in this dir *

Re: net/can/isotp.c:1240:13: sparse: sparse: incorrect type in initializer (different address spaces)

2021-01-14 Thread Oliver Hartkopp
config: sh-randconfig-s032-20210114 (attached as .config) compiler: sh4-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse

Re: drivers/iio/accel/adxl372.c:949:3: warning: converting the result of '<<' to a boolean always evaluates to true

2021-01-14 Thread Nathan Chancellor
d > support for FIFO peak mode > date: 4 months ago > config: mips-randconfig-r026-20210114 (attached as .config) > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project > 68ff52ffead2ba25cca442778ab19286000daad7) > reproduce (this is a W=1 build): > wget &g

Re: [PATCH v3] kbuild: check the minimum compiler version in Kconfig

2021-01-14 Thread Nathan Chancellor
On Fri, Jan 15, 2021 at 03:07:09AM +0900, Masahiro Yamada wrote: > Paul Gortmaker reported a regression in the GCC version check [1]. > If you use GCC 4.8, the build breaks before showing the error message > "error Sorry, your version of GCC is too old - please use 4.9 or newer." > > I do not

Re: [EXT] Re: [PATCH net-next] net: mvpp2: extend mib-fragments name to mib-fragments-err

2021-01-14 Thread Andrew Lunn
On Thu, Jan 14, 2021 at 04:13:23PM +, Stefan Chulski wrote: > > > From: Stefan Chulski > > > > > > This patch doesn't change any functionality, but just extend MIB > > > counter register and ethtool-statistic names with "err". > > > > > > The counter MVPP2_MIB_FRAGMENTS_RCVD in fact is Error

Re: [PATCH v3] kbuild: check the minimum compiler version in Kconfig

2021-01-14 Thread Nick Desaulniers
On Thu, Jan 14, 2021 at 10:07 AM Masahiro Yamada wrote: > > Paul Gortmaker reported a regression in the GCC version check [1]. > If you use GCC 4.8, the build breaks before showing the error message > "error Sorry, your version of GCC is too old - please use 4.9 or newer." > > I do not want to

Re: [PATCH v5] modules: introduce the MODULE_SCMVERSION config

2021-01-14 Thread Will McVicker
Thanks Jessica for the reviews! --Will On Tue, Jan 12, 2021 at 7:55 AM Jessica Yu wrote: > > +++ Will McVicker [08/01/21 00:30 +]: > >Config MODULE_SCMVERSION introduces a new module attribute -- > >`scmversion` -- which can be used to identify a given module's SCM > >version. This is very

drivers/iio/accel/adxl372.c:949:3: warning: converting the result of '<<' to a boolean always evaluates to true

2021-01-14 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 65f0d2414b7079556fbbcc070b3d1c9f9587606d commit: b0fc6783d4ae58f796fb183c40dbc7fa3199d51d iio: accel: adxl372: Add support for FIFO peak mode date: 4 months ago config: mips-randconfig-r026-20210114

Re: [PATCH v2 1/2] power: supply: PCHG: Peripheral device charger

2021-01-14 Thread Benson Leung
Hi Sebastian, On Wed, Dec 16, 2020 at 08:34:15AM -0800, Daisuke Nojiri wrote: > This patch adds a driver for PCHG (Peripheral CHarGer). PCHG is a > framework managing power supplies for peripheral devices. > > This driver creates a sysfs node for each peripheral charge port: > >

Re: [PATCH v2] perf test: Fix shadow stat test for non-bash shells

2021-01-14 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 14, 2021 at 02:06:09PM +0900, Namhyung Kim escreveu: > It was using some bash-specific features and failed to parse when > running with a different shell like below: > > root@kbl-ppc:~/kbl-ws/perf-dev/lck-9077/acme.tmp/tools/perf# ./perf test 83 > -vv > 83: perf stat metrics

Re: [RESEND PATCH v3 2/2] i2c: i2c-mux-gpio: Enable this driver in ACPI land

2021-01-14 Thread Evan Green
On Tue, Jan 5, 2021 at 2:25 AM Wolfram Sang wrote: > > On Fri, Nov 20, 2020 at 10:59:12AM -0800, Evan Green wrote: > > On Thu, Nov 19, 2020 at 7:24 AM Andy Shevchenko > > wrote: > > > > > > On Thu, Nov 19, 2020 at 1:40 AM Evan Green wrote: > > > > > > > > Enable i2c-mux-gpio devices to be

[PATCH bpf-next v7 06/11] bpf: Add BPF_FETCH field / create atomic_fetch_add instruction

2021-01-14 Thread Brendan Jackman
The BPF_FETCH field can be set in bpf_insn.imm, for BPF_ATOMIC instructions, in order to have the previous value of the atomically-modified memory location loaded into the src register after an atomic op is carried out. Suggested-by: Yonghong Song Signed-off-by: Brendan Jackman Acked-by: John

[PATCH bpf-next v7 05/11] bpf: Move BPF_STX reserved field check into BPF_STX verifier code

2021-01-14 Thread Brendan Jackman
I can't find a reason why this code is in resolve_pseudo_ldimm64; since I'll be modifying it in a subsequent commit, tidy it up. Signed-off-by: Brendan Jackman Acked-by: Yonghong Song Acked-by: John Fastabend --- kernel/bpf/verifier.c | 13 ++--- 1 file changed, 6 insertions(+), 7

[PATCH bpf-next v7 10/11] bpf: Add tests for new BPF atomic operations

2021-01-14 Thread Brendan Jackman
The prog_test that's added depends on Clang/LLVM features added by Yonghong in commit 286daafd6512 (was https://reviews.llvm.org/D72184). Note the use of a define called ENABLE_ATOMICS_TESTS: this is used to: - Avoid breaking the build for people on old versions of Clang - Avoid needing

[PATCH bpf-next v7 11/11] bpf: Document new atomic instructions

2021-01-14 Thread Brendan Jackman
Document new atomic instructions. Acked-by: Yonghong Song Signed-off-by: Brendan Jackman --- Documentation/networking/filter.rst | 31 + 1 file changed, 31 insertions(+) diff --git a/Documentation/networking/filter.rst b/Documentation/networking/filter.rst index

Re: [PATCH v1] HID: make arrays usage and value to be the same

2021-01-14 Thread Will McVicker
Hi Jiri, I noticed this hasn't merged yet. So just sending a friendly reminder. Thanks, Will On Thu, Dec 17, 2020 at 10:42 AM Will McVicker wrote: > > Great! Thanks for the reply. > > --Will > > On Thu, Dec 17, 2020 at 2:19 AM Jiri Kosina wrote: > > > > On Mon, 14 Dec 2020, Will McVicker

[PATCH bpf-next v7 08/11] bpf: Pull out a macro for interpreting atomic ALU operations

2021-01-14 Thread Brendan Jackman
Since the atomic operations that are added in subsequent commits are all isomorphic with BPF_ADD, pull out a macro to avoid the interpreter becoming dominated by lines of atomic-related code. Note that this sacrificies interpreter performance (combining STX_ATOMIC_W and STX_ATOMIC_DW into single

[PATCH bpf-next v7 04/11] bpf: Rename BPF_XADD and prepare to encode other atomics in .imm

2021-01-14 Thread Brendan Jackman
A subsequent patch will add additional atomic operations. These new operations will use the same opcode field as the existing XADD, with the immediate discriminating different operations. In preparation, rename the instruction mode BPF_ATOMIC and start calling the zero immediate BPF_ADD. This is

[PATCH bpf-next v7 09/11] bpf: Add bitwise atomic instructions

2021-01-14 Thread Brendan Jackman
This adds instructions for atomic[64]_[fetch_]and atomic[64]_[fetch_]or atomic[64]_[fetch_]xor All these operations are isomorphic enough to implement with the same verifier, interpreter, and x86 JIT code, hence being a single commit. The main interesting thing here is that x86 doesn't directly

[PATCH bpf-next v7 03/11] bpf: x86: Factor out a lookup table for some ALU opcodes

2021-01-14 Thread Brendan Jackman
A later commit will need to lookup a subset of these opcodes. To avoid duplicating code, pull out a table. The shift opcodes won't be needed by that later commit, but they're already duplicated, so fold them into the table anyway. Signed-off-by: Brendan Jackman Acked-by: John Fastabend ---

[PATCH bpf-next v7 07/11] bpf: Add instructions for atomic_[cmp]xchg

2021-01-14 Thread Brendan Jackman
This adds two atomic opcodes, both of which include the BPF_FETCH flag. XCHG without the BPF_FETCH flag would naturally encode atomic_set. This is not supported because it would be of limited value to userspace (it doesn't imply any barriers). CMPXCHG without BPF_FETCH woulud be an atomic

[PATCH bpf-next v7 01/11] bpf: x86: Factor out emission of ModR/M for *(reg + off)

2021-01-14 Thread Brendan Jackman
The case for JITing atomics is about to get more complicated. Let's factor out some common code to make the review and result more readable. NB the atomics code doesn't yet use the new helper - a subsequent patch will add its use as a side-effect of other changes. Acked-by: John Fastabend

[PATCH bpf-next v7 02/11] bpf: x86: Factor out emission of REX byte

2021-01-14 Thread Brendan Jackman
The JIT case for encoding atomic ops is about to get more complicated. In order to make the review & resulting code easier, let's factor out some shared helpers. Signed-off-by: Brendan Jackman Acked-by: John Fastabend --- arch/x86/net/bpf_jit_comp.c | 39 ++---

[PATCH bpf-next v7 00/11] Atomics for eBPF

2021-01-14 Thread Brendan Jackman
There's still one unresolved review comment from John[3] which I will resolve with a followup patch. Differences from v6->v7 [1]: * Fixed riscv build error detected by 0-day robot. Differences from v5->v6 [1]: * Carried Björn Töpel's ack for RISC-V code, plus a couple more acks from

Re: [RFC PATCH 5/8] mm: Pass 'address' to map to do_set_pte() and drop FAULT_FLAG_PREFAULT

2021-01-14 Thread Linus Torvalds
On Thu, Jan 14, 2021 at 10:01 AM Will Deacon wrote: > > Rather than modifying the 'address' field of the 'struct vm_fault_info' > passed to do_set_pte(), leave that to identify the real faulting address > and pass in the virtual address to be mapped by the new pte as a > separate argument. Ack.

Re: [RFC PATCH 4/8] mm: Separate fault info out of 'struct vm_fault'

2021-01-14 Thread Linus Torvalds
On Thu, Jan 14, 2021 at 10:01 AM Will Deacon wrote: > > Try to clean this up by splitting the immutable fault information out > into a new 'struct vm_fault_info' which is embedded in 'struct vm_fault' > and will later be made 'const'. The vast majority of this change was > performed with a

Re: [PATCH v2] kbuild: check the minimum compiler version in Kconfig

2021-01-14 Thread Miguel Ojeda
On Thu, Jan 14, 2021 at 5:25 AM Masahiro Yamada wrote: > > The cc-version.sh also shows the error if the compiler is old: > > $ make defconfig CC=clang-9 > *** Default configuration is based on 'x86_64_defconfig' > *** > *** Compiler is too old. > *** Your Clang version:9.0.1 >

Re: [RFC PATCH v3 07/16] cxl/mem: Implement polled mode mailbox

2021-01-14 Thread Jonathan Cameron
On Thu, 14 Jan 2021 09:50:44 -0800 Ben Widawsky wrote: > On 21-01-14 17:40:12, Jonathan Cameron wrote: > > On Mon, 11 Jan 2021 14:51:11 -0800 > > Ben Widawsky wrote: > > > > > Provide enough functionality to utilize the mailbox of a memory device. > > > The mailbox is used to interact with

Re: [RFC PATCH v3 14/16] cxl/mem: Use CEL for enabling commands

2021-01-14 Thread Ben Widawsky
On 21-01-14 18:02:11, Jonathan Cameron wrote: > On Mon, 11 Jan 2021 14:51:19 -0800 > Ben Widawsky wrote: > > > The Command Effects Log (CEL) is specified in the CXL 2.0 specification. > > The CEL is one of two types of logs, the other being vendor specific. > > They are distinguished in

Re: [PATCH] Documentation: livepatch: document reliable stacktrace

2021-01-14 Thread Mark Rutland
On Wed, Jan 13, 2021 at 04:25:41PM -0600, Josh Poimboeuf wrote: > On Wed, Jan 13, 2021 at 08:23:15PM +, Mark Brown wrote: > > On Wed, Jan 13, 2021 at 01:33:13PM -0600, Josh Poimboeuf wrote: > > > > > I think it's worth mentioning a little more about objtool. There are a > > > few passing

[RFC PATCH v6 09/11] media: vivid: Convert to v4l2_ext_pix_format

2021-01-14 Thread Helen Koike
Simplify Multi/Single planer API handling by converting to v4l2_ext_pix_format. Duplicate v4l2_ioctl_ops for touch devices. This is done to force the framework to use the ext hooks when the classic Api is used from userspace in Vid devices, and to keep touch devices with classic hook.

Re: [RFC PATCH v3 15/16] cxl/mem: Add limited Get Log command (0401h)

2021-01-14 Thread Jonathan Cameron
On Mon, 11 Jan 2021 14:51:20 -0800 Ben Widawsky wrote: > The Get Log command returns the actual log entries that are advertised > via the Get Supported Logs command (0400h). CXL device logs are selected > by UUID which is part of the CXL spec. Because the driver tries to > sanitize what is sent

[PATCH v3] kbuild: check the minimum compiler version in Kconfig

2021-01-14 Thread Masahiro Yamada
Paul Gortmaker reported a regression in the GCC version check [1]. If you use GCC 4.8, the build breaks before showing the error message "error Sorry, your version of GCC is too old - please use 4.9 or newer." I do not want to apply his fix-up since it implies we would not be able to remove any

Re: [PATCH v1 5/5] driver core: Set fw_devlink=on by default

2021-01-14 Thread Saravana Kannan
On Wed, Jan 13, 2021 at 11:36 PM Marek Szyprowski wrote: > > Hi Saravana, > > On 13.01.2021 20:23, Saravana Kannan wrote: > > On Tue, Jan 12, 2021 at 11:04 PM Marek Szyprowski > > wrote: > >> On 12.01.2021 21:51, Saravana Kannan wrote: > >>> On Mon, Jan 11, 2021 at 11:11 PM Marek Szyprowski >

[RFC PATCH v6 11/11] media: docs: add documentation for the Extended API

2021-01-14 Thread Helen Koike
Add documentation and update references in current documentation for the Extended API. Signed-off-by: Helen Koike --- Changes in v6: - Update note saying ext_api should be used for new applications on newer kernels (Tomasz and Hans) - Fix typos pointed in v5 (Hand and Tomasz) - Change order,

[RFC PATCH v6 10/11] media: vimc: Convert to v4l2_ext_pix_format

2021-01-14 Thread Helen Koike
Simplify Multi/Single planer API handling by converting to v4l2_ext_pix_format. Signed-off-by: Boris Brezillon Signed-off-by: Helen Koike --- Changes in v6: - Update with new format and buffer structs Changes in v4: - Update with new format and buffer structs - Rebased on top of media/master

[RFC PATCH v6 08/11] media: mediabus: Add helpers to convert a ext_pix format to/from a mbus_fmt

2021-01-14 Thread Helen Koike
Just a new version of v4l2_fill_mbus_format() and v4l2_fill_ext_pix_format() to deal with the new v4l2_ext_pix_format struct. This is needed to convert the VIMC driver to the EXT_FMT/EXT_BUF iocts. Signed-off-by: Boris Brezillon Signed-off-by: Helen Koike --- Changes in v6: - Rename

Re: [Sound-open-firmware] [PATCH 1/2] [v2] ALSA: hda: fix SND_INTEL_DSP_CONFIG dependency

2021-01-14 Thread Pierre-Louis Bossart
On 1/14/21 9:09 AM, Arnd Bergmann wrote: On Tue, Jan 12, 2021 at 9:32 PM Arnd Bergmann wrote: --- v2: fix various build issues in the first version, now passes all randconfig builds I tried Please disregard this version, while I have a tree that passes the randconfig builds now,

[RFC PATCH v6 07/11] media: vimc: use vb2_ioctls_ext_{d}qbuf hooks

2021-01-14 Thread Helen Koike
Add vb2 ext hooks and call vb2_set_pixelformat(). This allows more flexibility with buffer handling. Signed-off-by: Helen Koike --- Changes in v6: - New patch to exemplify how drivers would easily support features from Ext Buf --- drivers/media/test-drivers/vimc/vimc-capture.c | 3 +++ 1 file

[RFC PATCH v6 05/11] media: videobuf2: Expose helpers for Ext qbuf/dqbuf

2021-01-14 Thread Helen Koike
To overcome the limitations of Ext ioctls, that is being converted to classic hooks, add helpers to allow applications support layouts such as using the same buffer with planes in different offsets. To use the new hooks, drivers should: static const struct v4l2_ioctl_ops ioctl_ops = { ... +

[RFC PATCH v6 06/11] media: vivid: use vb2_ioctls_ext_{d}qbuf hooks

2021-01-14 Thread Helen Koike
Add vb2 ext hooks and call vb2_set_pixelformat(). This allows more flexibility with buffer handling. Signed-off-by: Helen Koike --- Changes in v6: - New patch to exemplify how drivers would easily support features from Ext Buf --- drivers/media/test-drivers/vivid/vivid-core.c| 2 ++

Re: [PATCH v3 5/6] dm: Verify inline encryption capabilities of new table when it is loaded

2021-01-14 Thread Mike Snitzer
On Tue, Dec 29 2020 at 3:55am -0500, Satya Tangirala wrote: > DM only allows the table to be swapped if the new table's inline encryption > capabilities are a superset of the old table's. We only check that this > constraint is true when the table is actually swapped in (in > dm_swap_table()).

[RFC PATCH v6 04/11] media: videobuf2-v4l2: reorganize flags handling

2021-01-14 Thread Helen Koike
Reorganize flags handling to be easily reuseble when Ext functions get added. No logic is changed, just moving around code. - Two new functions: v4l2_clear_buffer_flags() vb2_fill_vb2_v4l2_buffer_flags() - set_buffer_cache_hints() receives a pointer to flags instead of the

[RFC PATCH v6 03/11] media: v4l2: Add extended buffer (de)queue operations for video types

2021-01-14 Thread Helen Koike
Those extended buffer ops have several purpose: 1/ Fix y2038 issues by converting the timestamp into an u64 counting the number of ns elapsed since 1970 2/ Unify single/multiplanar handling 3/ Add a new start offset field to each v4l2 plane buffer info struct to support the case where a

[RFC PATCH v6 02/11] media: v4l2: Extend pixel formats to unify single/multi-planar handling (and more)

2021-01-14 Thread Helen Koike
This is part of the multiplanar and singleplanar unification process. v4l2_ext_pix_format is supposed to work for both cases. We also add the concept of modifiers already employed in DRM to expose HW-specific formats (like tiled or compressed formats) and allow exchanging this information with

[RFC PATCH v6 01/11] media: v4l2-common: add normalized pixelformat field to struct v4l2_format_info

2021-01-14 Thread Helen Koike
Add normalization to pixelformats, so we can fallback to it when using Ext API, and eliminating the handling of two variantes (M and non-M formats). Signed-off-by: Helen Koike --- Changes in v6: - New patch --- drivers/media/v4l2-core/v4l2-common.c | 16

[RFC PATCH v6 00/11] media: v4l2: Add extended fmt and buffer ioctls

2021-01-14 Thread Helen Koike
Hello, This is v6 of the Extended API for formats and buffers (see below the new API). The new API comes for free for old drivers through the conversion layer, which is independent of vb2. I completly refactored several patches. I would like to request comments not only in the uAPI, but also

Re: upstream build error (12)

2021-01-14 Thread Nick Desaulniers
On Thu, Jan 14, 2021 at 4:38 AM 'Dmitry Vyukov' via Clang Built Linux wrote: > > On Thu, Jan 14, 2021 at 12:32 PM Dmitry Vyukov wrote: > > > > On Tue, Jan 12, 2021 at 8:41 PM Nathan Chancellor > > wrote: > > > > > > Would it be possible for clang-built-li...@googlegroups.com to be CC'd > > >

[PATCH 1/3] media: v4l2-ioctl: print capabilities in v4l_print_create_buffers()

2021-01-14 Thread Helen Koike
Print capabilities field from struct v4l2_create_buffers for better debugging. Signed-off-by: Helen Koike --- drivers/media/v4l2-core/v4l2-ioctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c

Re: [PATCH v2 3/3] dt-bindings: i2c: qcom,i2c-qup: Document noise rejection properties

2021-01-14 Thread AngeloGioacchino Del Regno
Il 14/01/21 18:58, Bjorn Andersson ha scritto: On Thu 14 Jan 11:49 CST 2021, AngeloGioacchino Del Regno wrote: Document the new noise rejection properties "qcom,noise-reject-sda" and "qcom,noise-reject-scl". I presume these are unit-less levels? Yes, there is no unit. Sorry, I've sent

[PATCH 3/3] media: videobuf2-v4l2: remove redundant error test

2021-01-14 Thread Helen Koike
request_fd is validated under media_request_get_by_fd() just below this check. Thus remove it. Suggested-by: Tomasz Figa Signed-off-by: Helen Koike --- drivers/media/common/videobuf2/videobuf2-v4l2.c | 5 - 1 file changed, 5 deletions(-) diff --git

[PATCH 2/3] media: videodev2.h: clarify v4l2_pix_format_mplane.sizeimage docs when to set to zero

2021-01-14 Thread Helen Koike
sizeimage field should be set to zero for unused planes, even when v4l2_pix_format_mplane.num_planes is smaller then the index of planes. Signed-off-by: Helen Koike --- I caught this with v4l2-compliance, which throws an error if we dirty planes, even if invalid, so I would like to make it

Re: [PATCH v5 7/7] media: docs: add documentation for the Extended API

2021-01-14 Thread Helen Koike
On 11/20/20 10:20 AM, Hans Verkuil wrote: > On 20/11/2020 13:40, Tomasz Figa wrote: >> On Fri, Nov 20, 2020 at 9:24 PM Hans Verkuil wrote: >>> >>> On 20/11/2020 12:06, Tomasz Figa wrote:z Hi Helen, On Tue, Aug 04, 2020 at 04:29:39PM -0300, Helen Koike wrote: > Add

[PATCH v3 0/3] QCOM QUP I2C - Add noise rejection, convert to YAML

2021-01-14 Thread AngeloGioacchino Del Regno
This patch series converts the i2c-qup bindings to YAML and then adds support for noise rejection, which is needed for some noisy hardware, like the touchscreen on the F(x)Tec Pro1. After adding noise rejection, the touchscreen stopped showing ghost touch issues and lockups. Tested on F(x)Tec

Re: [PATCH v5 2/7] pwm: pca9685: Support hardware readout

2021-01-14 Thread Uwe Kleine-König
Hello Clemens, On Thu, Jan 14, 2021 at 06:16:22PM +0100, Clemens Gruber wrote: > On Mon, Jan 11, 2021 at 09:35:32PM +0100, Uwe Kleine-König wrote: > > My position here is: A consumer should disable a PWM before calling > > pwm_put. The driver should however not enforce this and so should not > >

[PATCH v3 1/3] dt-bindings: i2c: qcom,i2c-qup: Convert txt to YAML schema

2021-01-14 Thread AngeloGioacchino Del Regno
Convert the qcom,i2c-qup binding to YAML schema. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/i2c/qcom,i2c-qup.txt | 40 - .../devicetree/bindings/i2c/qcom,i2c-qup.yaml | 87 +++ 2 files changed, 87 insertions(+), 40 deletions(-) delete mode

[PATCH v3 2/3] i2c: qup: Introduce SCL/SDA noise rejection

2021-01-14 Thread AngeloGioacchino Del Regno
Some I2C devices may be glitchy due to electrical noise coming from the device itself or because of possible board design issues. To overcome this issue, the QUP's I2C in Qualcomm SoCs supports a noise rejection setting for both SCL and SDA lines. Introduce a setting for noise rejection through

[PATCH 0/3] v4l2 framework minor improvements

2021-01-14 Thread Helen Koike
Just minor things. Add capabilities to v4l_print_create_buffers(), clarify docs and remove a redundant check. Helen Koike (3): media: v4l2-ioctl: print capabilities in v4l_print_create_buffers() media: videodev2.h: clarify v4l2_pix_format_mplane.sizeimage docs when to set to zero media:

[PATCH v3 3/3] dt-bindings: i2c: qcom,i2c-qup: Document noise rejection properties

2021-01-14 Thread AngeloGioacchino Del Regno
Document the new noise rejection properties "qcom,noise-reject-sda" and "qcom,noise-reject-scl". Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/i2c/qcom,i2c-qup.yaml | 14 ++ 1 file changed, 14 insertions(+) diff --git

Re: [PATCH v3 2/4] mm: failfast mode with __GFP_NORETRY in alloc_contig_range

2021-01-14 Thread Minchan Kim
On Wed, Jan 13, 2021 at 09:39:26AM +0100, David Hildenbrand wrote: > On 13.01.21 02:21, Minchan Kim wrote: > > Contiguous memory allocation can be stalled due to waiting > > on page writeback and/or page lock which causes unpredictable > > delay. It's a unavoidable cost for the requestor to get

Re: [RFC PATCH v3 14/16] cxl/mem: Use CEL for enabling commands

2021-01-14 Thread Jonathan Cameron
On Mon, 11 Jan 2021 14:51:19 -0800 Ben Widawsky wrote: > The Command Effects Log (CEL) is specified in the CXL 2.0 specification. > The CEL is one of two types of logs, the other being vendor specific. > They are distinguished in hardware/spec via UUID. The CEL is immediately > useful for 2

[PATCH 2/2] libperf tests: Fail when failing to get a tracepoint id

2021-01-14 Thread Ian Rogers
Permissions are necessary to get a tracepoint id. Fail the test when the read fails. Signed-off-by: Ian Rogers --- tools/lib/perf/tests/test-evlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/perf/tests/test-evlist.c b/tools/lib/perf/tests/test-evlist.c index

[PATCH 1/2] libperf tests: If a test fails return non-zero

2021-01-14 Thread Ian Rogers
If a test fails return -1 rather than 0. This is consistent with the return value in test-cpumap.c Signed-off-by: Ian Rogers --- tools/lib/perf/tests/test-cpumap.c| 2 +- tools/lib/perf/tests/test-evlist.c| 2 +- tools/lib/perf/tests/test-evsel.c | 2 +-

Re: [PATCH v2 02/14] KVM: SVM: Free sev_asid_bitmap during init if SEV setup fails

2021-01-14 Thread Tom Lendacky
On 1/14/21 11:12 AM, Sean Christopherson wrote: On Thu, Jan 14, 2021, Tom Lendacky wrote: On 1/13/21 6:36 PM, Sean Christopherson wrote: Free sev_asid_bitmap if the reclaim bitmap allocation fails, othwerise KVM will unnecessarily keep the bitmap when SEV is not fully enabled. Freeing the

Re: [PATCH v2 11/14] kasan: fix bug detection via ksize for HW_TAGS mode

2021-01-14 Thread Andrey Konovalov
On Wed, Jan 13, 2021 at 5:54 PM Marco Elver wrote: > > > +/* > > + * Unlike kasan_check_read/write(), kasan_check_byte() is performed even > > for > > + * the hardware tag-based mode that doesn't rely on compiler > > instrumentation. > > + */ > > +bool __kasan_check_byte(const void *addr,

Re: [PATCH v3 3/6] dm: add support for passing through inline crypto support

2021-01-14 Thread Mike Snitzer
On Tue, Dec 29 2020 at 3:55am -0500, Satya Tangirala wrote: > Update the device-mapper core to support exposing the inline crypto > support of the underlying device(s) through the device-mapper device. > > This works by creating a "passthrough keyslot manager" for the dm > device, which

[RFC PATCH 5/8] mm: Pass 'address' to map to do_set_pte() and drop FAULT_FLAG_PREFAULT

2021-01-14 Thread Will Deacon
Rather than modifying the 'address' field of the 'struct vm_fault_info' passed to do_set_pte(), leave that to identify the real faulting address and pass in the virtual address to be mapped by the new pte as a separate argument. This makes FAULT_FLAG_PREFAULT redundant, as a prefault entry can be

Re: [PATCH v13 07/15] iommu/smmuv3: Allow stage 1 invalidation with unmanaged ASIDs

2021-01-14 Thread Auger Eric
Hi Jean, On 1/14/21 6:33 PM, Jean-Philippe Brucker wrote: > Hi Eric, > > On Thu, Jan 14, 2021 at 05:58:27PM +0100, Auger Eric wrote: The uacce-devel branches from > https://github.com/Linaro/linux-kernel-uadk do provide this at the moment > (they track the latest sva/zip-devel

[RFC PATCH 6/8] mm: Avoid modifying vmf.info.address in __collapse_huge_page_swapin()

2021-01-14 Thread Will Deacon
In preparation for const-ifying the 'info' field of 'struct vm_fault', rework __collapse_huge_page_swapin() to avoid continously updating vmf.info.address and instead populate a new 'struct vm_fault' on the stack for each page being processed. Cc: Kirill A. Shutemov Cc: Linus Torvalds

[RFC PATCH 8/8] mm: Mark 'info' field of 'struct vm_fault' as 'const'

2021-01-14 Thread Will Deacon
The field is only ever read after being initialised, so mark it 'const' before somebody tries to modify it again. Cc: Kirill A. Shutemov Cc: Linus Torvalds Signed-off-by: Will Deacon --- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mm.h

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