Re: [PATCH] bpf: don't rely on GCC __attribute__((optimize)) to disable GCSE

2020-10-27 Thread Nick Desaulniers
On Tue, Oct 27, 2020 at 4:04 PM Daniel Borkmann wrote: > > On 10/27/20 9:57 PM, Ard Biesheuvel wrote: > > Commit 3193c0836f203 ("bpf: Disable GCC -fgcse optimization for > > ___bpf_prog_run()") introduced a __no_fgcse macro that expands to a > > function scope

Re: [PATCH 00/13] selftests fixes

2020-10-27 Thread Shuah Khan
On 10/8/20 6:26 AM, Tommi Rantala wrote: Hi, small fixes to issues I hit with selftests. Tommi Rantala (13): selftests: filter kselftest headers from command in lib.mk selftests: pidfd: fix compilation errors due to wait.h selftests: add vmaccess to .gitignore selftests/harness:

Re: [tip: x86/seves] x86/kvm: Add KVM-specific VMMCALL handling under SEV-ES

2020-10-27 Thread Erdem Aktas
[resending in plain/text, sorry for double sending] It seems to me that the kvm_sev_es_hcall_prepare is leaking more information than it is needed. Is this an expected behavior? -Erdem > > On Thu, Sep 10, 2020 at 2:39 AM tip-bot2 for Tom Lendacky > wrote: >> >> The following commit has been

Re: [PATCH] arm64: NUMA: Kconfig: Increase max number of nodes

2020-10-27 Thread Vanshidhar Konda
On Thu, Oct 22, 2020 at 12:21:27PM +0100, Robin Murphy wrote: On 2020-10-22 02:07, Vanshi Konda wrote: On Thu, Oct 22, 2020 at 12:44:15AM +0100, Robin Murphy wrote: On 2020-10-21 12:02, Jonathan Cameron wrote: On Wed, 21 Oct 2020 09:43:21 +0530 Anshuman Khandual wrote: On 10/20/2020 11:39

Re: [PATCH 3/3] kvm/eventfd: Drain events from eventfd in irqfd_wakeup()

2020-10-27 Thread kernel test robot
Hi David, I love your patch! Yet something to improve: [auto build test ERROR on vfio/next] [also build test ERROR on vhost/linux-next linus/master kvm/linux-next v5.10-rc1 next-20201027] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [PATCH 4/5] dt-bindings: memory: tegra: Add missing swgroups

2020-10-27 Thread Nicolin Chen
On Tue, Oct 27, 2020 at 01:55:06PM +0100, Thierry Reding wrote: > This does indeed look correct, based on what registers exist for these. > It'd be good to know how Nicolin expects these to be used, since these > are currently not listed in device tree. There's certainly some like Judging from

Re: [PATCH 5/5] memory: tegra: Complete tegra210_swgroups

2020-10-27 Thread Nicolin Chen
On Tue, Oct 27, 2020 at 02:01:11PM +0100, Thierry Reding wrote: > On Wed, Oct 07, 2020 at 05:37:46PM -0700, Nicolin Chen wrote: > > According to Tegra X1 TRM, there are missing swgroups in the > > tegra210_swgroups list. So this patch adds them to the list. > > > > Note that the TEGRA_SWGROUP_GPU

Re: [tip: x86/seves] x86/vmware: Add VMware-specific handling for VMMCALL under SEV-ES

2020-10-27 Thread Erdem Aktas
Looking at the VMWARE_VMCALL(cmd, eax, ebx, ecx, edx) definition, it seems to me only 4 registers are required to be shared with hypervisor. I don't know much about vmware but is not vmware_sev_es_hcall_prepare expose more registers than needed and also vmware_sev_es_hcall_finish might let the

Re: [PATCH v2 seccomp 1/6] seccomp: Move config option SECCOMP to arch/Kconfig

2020-10-27 Thread Kees Cook
On Tue, Oct 27, 2020 at 10:52:39AM +0100, Geert Uytterhoeven wrote: > Hi Yifei, > > On Thu, Sep 24, 2020 at 2:48 PM YiFei Zhu wrote: > > From: YiFei Zhu > > > > In order to make adding configurable features into seccomp > > easier, it's better to have the options at one single location, > >

[PATCH v5 1/3] net: phy: Add 5GBASER interface mode

2020-10-27 Thread Pavana Sharma
Add new mode supported by MV88E6393 family. Signed-off-by: Pavana Sharma --- include/linux/phy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/phy.h b/include/linux/phy.h index 3a09d2bf69ea..9de7c57cfd38 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -107,6

[PATCH v5 3/3] net: dsa: mv88e6xxx: Add support for mv88e6393x family of Marvell

2020-10-27 Thread Pavana Sharma
The Marvell 88E6393X device is a single-chip integration of a 11-port Ethernet switch with eight integrated Gigabit Ethernet (GbE) transceivers and three 10-Gigabit interfaces. This patch adds functionalities specific to mv88e6393x family (88E6393X, 88E6193X and 88E6191X) Signed-off-by: Pavana

[PATCH v5 2/3] dt-bindings: net: Add 5GBASER phy interface mode

2020-10-27 Thread Pavana Sharma
Add 5GBASE-R phy interface mode supported by mv88e6393 family. Signed-off-by: Pavana Sharma --- Documentation/devicetree/bindings/net/ethernet-controller.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml

[PATCH v5 0/3] Add support for mv88e6393x family of Marvell

2020-10-27 Thread Pavana Sharma
Updated patchset. Pavana Sharma (3): net: phy: Add 5GBASER interface mode dt-bindings: net: Add 5GBASER phy interface mode net: dsa: mv88e6xxx: Add support for mv88e6393x family of Marvell .../bindings/net/ethernet-controller.yaml | 2 + drivers/net/dsa/mv88e6xxx/chip.c

Re: [PATCH net 5/5] net: ipa: avoid going past end of resource group array

2020-10-27 Thread Willem de Bruijn
On Tue, Oct 27, 2020 at 12:38 PM Alex Elder wrote: > > The minimum and maximum limits for resources assigned to a given > resource group are programmed in pairs, with the limits for two > groups set in a single register. > > If the number of supported resource groups is odd, only half of the >

Re: [PATCH net v2] ravb: Fix bit fields checking in ravb_hwtstamp_get()

2020-10-27 Thread Jakub Kicinski
On Mon, 26 Oct 2020 05:21:30 -0500 Andrew Gabbasov wrote: > In the function ravb_hwtstamp_get() in ravb_main.c with the existing > values for RAVB_RXTSTAMP_TYPE_V2_L2_EVENT (0x2) and RAVB_RXTSTAMP_TYPE_ALL > (0x6) > > if (priv->tstamp_rx_ctrl & RAVB_RXTSTAMP_TYPE_V2_L2_EVENT) >

Re: [PATCH v2 3/4] dm: add support for passing through inline crypto support

2020-10-27 Thread Eric Biggers
On Tue, Oct 27, 2020 at 11:58:47PM +, Satya Tangirala wrote: > > > +/** > > > + * blk_ksm_update_capabilities() - Update the restrictions of a KSM to > > > those of > > > + * another KSM > > > + * @target_ksm: The KSM whose restrictions to update. > > > + *

[PATCH 3/5] KVM: selftests: Simplify demand_paging_test with timespec_diff_now

2020-10-27 Thread Ben Gardon
Add a helper function to get the current time and return the time since a given start time. Use that function to simplify the timekeeping in the demand paging test. This series was tested by running the following invocations on an Intel Skylake machine: dirty_log_perf_test -b 20m -i 100 -v 64

[PATCH 5/5] KVM: selftests: Introduce the dirty log perf test

2020-10-27 Thread Ben Gardon
The dirty log perf test will time verious dirty logging operations (enabling dirty logging, dirtying memory, getting the dirty log, clearing the dirty log, and disabling dirty logging) in order to quantify dirty logging performance. This test can be used to inform future performance improvements

Re: [PATCH v2 3/4] dm: add support for passing through inline crypto support

2020-10-27 Thread Satya Tangirala
On Tue, Oct 27, 2020 at 02:31:51PM -0700, Eric Biggers wrote: > On Thu, Oct 15, 2020 at 09:46:31PM +, 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

Re: [PATCH 1/3] powerpc/uaccess: Switch __put_user_size_allowed() to __put_user_asm_goto()

2020-10-27 Thread Andreas Schwab
On Okt 28 2020, Andreas Schwab wrote: > On Sep 04 2020, Christophe Leroy wrote: > >> __put_user_asm_goto() provides more flexibility to GCC and avoids using >> a local variable to tell if the write succeeded or not. >> GCC can then avoid implementing a cmp in the fast path. > > That breaks

[PATCH 0/5] Add a dirty logging performance test

2020-10-27 Thread Ben Gardon
Currently KVM lacks a simple, userspace agnostic, performance benchmark for dirty logging. Such a benchmark will be beneficial for ensuring that dirty logging performance does not regress, and to give a common baseline for validating performance improvements. The dirty log perf test introduced in

[PATCH 1/5] KVM: selftests: Factor code out of demand_paging_test

2020-10-27 Thread Ben Gardon
Much of the code in demand_paging_test can be reused by other, similar multi-vCPU-memory-touching-perfromance-tests. Factor that common code out for reuse. No functional change expected. This series was tested by running the following invocations on an Intel Skylake machine: dirty_log_perf_test

[PATCH 4/5] KVM: selftests: Add wrfract to common guest code

2020-10-27 Thread Ben Gardon
Wrfract will be used by the dirty logging perf test introduced later in this series to dirty memory sparsely. This series was tested by running the following invocations on an Intel Skylake machine: dirty_log_perf_test -b 20m -i 100 -v 64 dirty_log_perf_test -b 20g -i 5 -v 4 dirty_log_perf_test

Re: [PATCH 1/2] dt-bindings: mediatek: mmsys: add mt1867 binding

2020-10-27 Thread Chun-Kuang Hu
Hi, Fabien: Fabien Parent 於 2020年10月28日 週三 上午12:07寫道: > > Add binding documentation for MT8167 SoC. > Reviewed-by: Chun-Kuang Hu > Signed-off-by: Fabien Parent > --- > .../devicetree/bindings/arm/mediatek/mediatek,mmsys.txt | 1 + > 1 file changed, 1 insertion(+) > > diff --git >

Re: [PATCH 1/3] sched: better handling for busy polling loops

2020-10-27 Thread Josh Don
On Fri, Oct 23, 2020 at 12:19 AM Peter Zijlstra wrote: > > On Thu, Oct 22, 2020 at 08:29:42PM -0700, Josh Don wrote: > > Busy polling loops in the kernel such as network socket poll and kvm > > halt polling have performance problems related to process scheduler load > > accounting. > > AFAICT

Re: [PATCH v4 2/2] fs: ext4: Modify inode-test.c to use KUnit parameterized testing feature

2020-10-27 Thread kernel test robot
Hi Arpitha, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on ext4/dev] [also build test WARNING on linus/master v5.10-rc1 next-20201027] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

[PATCH 2/5] KVM: selftests: Remove address rounding in guest code

2020-10-27 Thread Ben Gardon
Rounding the address the guest writes to a host page boundary will only have an effect if the host page size is larger than the guest page size, but in that case the guest write would still go to the same host page. There's no reason to round the address down, so remove the rounding to simplify

Re: [PATCH 1/3] powerpc/uaccess: Switch __put_user_size_allowed() to __put_user_asm_goto()

2020-10-27 Thread Andreas Schwab
On Sep 04 2020, Christophe Leroy wrote: > __put_user_asm_goto() provides more flexibility to GCC and avoids using > a local variable to tell if the write succeeded or not. > GCC can then avoid implementing a cmp in the fast path. That breaks CLONE_CHILD_SETTID. I'm getting an assertion failure

Re: [PATCH/RFC net-next v3] net: dec: tulip: de2104x: Add shutdown handler to stop NIC

2020-10-27 Thread Jakub Kicinski
On Fri, 23 Oct 2020 13:28:34 -0700 Moritz Fischer wrote: > diff --git a/drivers/net/ethernet/dec/tulip/de2104x.c > b/drivers/net/ethernet/dec/tulip/de2104x.c > index d9f6c19940ef..ea7442cc8e75 100644 > --- a/drivers/net/ethernet/dec/tulip/de2104x.c > +++ b/drivers/net/ethernet/dec/tulip/de2104x.c

Re: [PATCH] seqlock: avoid -Wshadow warnings

2020-10-27 Thread Arnd Bergmann
On Mon, Oct 26, 2020 at 5:58 PM Peter Zijlstra wrote: > > On Mon, Oct 26, 2020 at 05:50:38PM +0100, Arnd Bergmann wrote: > > > - unsigned seq; \ > > + unsigned __seq; \ > > > - unsigned

[PATCH 1/2] tools, bpftool: Avoid array index warnings.

2020-10-27 Thread Ian Rogers
The bpf_caps array is shorter without CAP_BPF, avoid out of bounds reads if this isn't defined. Working around this avoids -Wno-array-bounds with clang. Signed-off-by: Ian Rogers --- tools/bpf/bpftool/feature.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[PATCH 2/2] tools, bpftool: Remove two unused variables.

2020-10-27 Thread Ian Rogers
Avoid an unused variable warning. Signed-off-by: Ian Rogers --- tools/bpf/bpftool/skeleton/profiler.bpf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bpf/bpftool/skeleton/profiler.bpf.c b/tools/bpf/bpftool/skeleton/profiler.bpf.c index

Re: [PATCH] net: microchip: Remove unneeded variable ret

2020-10-27 Thread Jakub Kicinski
On Fri, 23 Oct 2020 09:21:07 + Xu Wang wrote: > Remove unneeded variable ret used to store return value. > > Signed-off-by: Xu Wang Applied.

Re: [PATCH] vxge: remove unnecessary cast in kfree()

2020-10-27 Thread Jakub Kicinski
On Fri, 23 Oct 2020 16:55:33 +0800 Xu Wang wrote: > Remove unnecessary cast in the argument to kfree. > > Signed-off-by: Xu Wang Applied.

[PATCH v5 1/1] mmap_lock: add tracepoints around lock acquisition

2020-10-27 Thread Axel Rasmussen
The goal of these tracepoints is to be able to debug lock contention issues. This lock is acquired on most (all?) mmap / munmap / page fault operations, so a multi-threaded process which does a lot of these can experience significant contention. We trace just before we start acquisition, when the

[PATCH v5 0/1] mmap_lock: add tracepoints around lock acquisition

2020-10-27 Thread Axel Rasmussen
This patchset adds tracepoints around mmap_lock acquisition. This is useful so we can measure the latency of lock acquisition, in order to detect contention. This version is based upon linux-next (since it depends on some recently-merged patches [1] [2]). I removed the existing

[PATCH] x86/mm/ident_map: Check for errors from ident_pud_init()

2020-10-27 Thread Arvind Sankar
Commit ea3b5e60ce80 ("x86/mm/ident_map: Add 5-level paging support") added ident_p4d_init() to support 5-level paging, but this function doesn't check and return errors from ident_pud_init(). For example, the decompressor stub uses this code to create an identity mapping. If it runs out of

Re: [PATCH] bpf: don't rely on GCC __attribute__((optimize)) to disable GCSE

2020-10-27 Thread Daniel Borkmann
On 10/27/20 9:57 PM, Ard Biesheuvel wrote: Commit 3193c0836f203 ("bpf: Disable GCC -fgcse optimization for ___bpf_prog_run()") introduced a __no_fgcse macro that expands to a function scope __attribute__((optimize("-fno-gcse"))), to disable a GCC specific optimization that was causing trouble on

drivers/spi/spi-rspi.c:1128:29: warning: unused variable 'rspi_rz_ops'

2020-10-27 Thread kernel test robot
Hi Geert, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4d09c1d952679411da2772f199643e08c46c31cd commit: 851c902fd2d09b2ed85181e74b43477b7a3882be spi: rspi: Remove obsolete platform_device_id entries date: 11

Re: [MPTCP] Re: [selftests] f2ff7f11f9: WARNING:suspicious_RCU_usage

2020-10-27 Thread Philip Li
On Tue, Oct 27, 2020 at 04:07:28PM +0100, Matthieu Baerts wrote: > Hi all, > > On 27/10/2020 14:16, kernel test robot wrote: > > Greeting, > > > > FYI, we noticed the following commit (built with gcc-9): > > > > commit: f2ff7f11f9a74842245db52d685bf9bc7ac2c4b1 ("selftests: mptcp: add > >

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

2020-10-27 Thread Evan Green
On Mon, Oct 19, 2020 at 9:53 AM Evan Green wrote: > > On Sun, Oct 18, 2020 at 11:58 AM Andy Shevchenko > wrote: > > > > On Sat, Oct 17, 2020 at 8:30 AM Evan Green wrote: > > > > > > Enable i2c-mux-gpio devices to be defined via ACPI. The idle-state > > > property translates directly to a

Re: [PATCH] bus: mhi: core: Add support MHI EE FP for download firmware

2020-10-27 Thread Hemant Kumar
Hi Jeff, On 10/27/20 8:11 AM, Jeffrey Hugo wrote: On 10/27/2020 3:43 AM, carl@quectel.com wrote: From: "carl.yin" MHI wwan modems support download firmware to nand or emmc by firehose protocol, process as next: 1. wwan modem normal bootup and enter EE AMSS, create mhi DIAG chan device

Re: [PATCH v2] ctype.h: remove duplicate isdigit() helper

2020-10-27 Thread Miguel Ojeda
On Tue, Oct 27, 2020 at 11:37 PM Arnd Bergmann wrote: > > Sounds good, I'll take that. Are the clang and icc version numbers > the actual ones we should list here, or is this just an example? Actual ones -- well, the best approximation I could get from the available versions in Compiler Explorer

Re: [PATCH] arm64: NUMA: Kconfig: Increase max number of nodes

2020-10-27 Thread Dave Kleikamp
On 10/22/20 11:25 AM, Vanshi Konda wrote: > On Thu, Oct 22, 2020 at 12:21:27PM +0100, Robin Murphy wrote: >> On 2020-10-22 02:07, Vanshi Konda wrote: >>> On Thu, Oct 22, 2020 at 12:44:15AM +0100, Robin Murphy wrote: On 2020-10-21 12:02, Jonathan Cameron wrote: > On Wed, 21 Oct 2020

Re: [PATCH 1/3] KVM: x86/mmu: Add helper macro for computing hugepage GFN mask

2020-10-27 Thread Sean Christopherson
On Tue, Oct 27, 2020 at 03:17:40PM -0700, Ben Gardon wrote: > On Tue, Oct 27, 2020 at 2:43 PM Sean Christopherson > wrote: > > > > Add a helper to compute the GFN mask given a hugepage level, KVM is > > accumulating quite a few users with the addition of the TDP MMU. > > > > Note, gcc is clever

Re: [PATCH V2 1/2] opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER

2020-10-27 Thread Guenter Roeck
Trying again through different e-mail provider. My previous e-mail got stuck in spam filters. Apologies if this is received multiple times. On Mon, Aug 24, 2020 at 02:39:32PM +0530, Viresh Kumar wrote: > From: Stephan Gerhold > [ ... ] > > opp_table = dev_pm_opp_get_opp_table(dev); > -

[PATCH -next] checkpatch: Update __attribute__((section("name"))) quote removal

2020-10-27 Thread Joe Perches
commit 33def8498fdd ("treewide: Convert macro and uses of __section(foo) to __section("foo")") removed the stringification of the section name and now requires quotes around the named section. Update checkpatch to not remove any quotes when suggesting conversion of

Re: [PATCH 2/4] PM: hibernate: improve robustness of mapping pages in the direct map

2020-10-27 Thread Edgecombe, Rick P
On Tue, 2020-10-27 at 10:49 +0200, Mike Rapoport wrote: > On Mon, Oct 26, 2020 at 06:57:32PM +, Edgecombe, Rick P wrote: > > On Mon, 2020-10-26 at 11:15 +0200, Mike Rapoport wrote: > > > On Mon, Oct 26, 2020 at 12:38:32AM +, Edgecombe, Rick P > > > wrote: > > > > On Sun, 2020-10-25 at

Re: [PATCH] bus: mhi: core: Introduce sysfs ul chan id for mhi chan device

2020-10-27 Thread Hemant Kumar
Hi Carl, On 10/27/20 8:06 AM, Jeffrey Hugo wrote: On 10/27/2020 3:43 AM, carl@quectel.com wrote: From: "carl.yin" User space software like ModemManager can identify the function of the mhi chan device by ul_chan_id. Signed-off-by: carl.yin ---   Documentation/ABI/stable/sysfs-bus-mhi |

Re: [PATCH v2 1/2] sched/wait: Add add_wait_queue_priority()

2020-10-27 Thread David Woodhouse
On Tue, 2020-10-27 at 21:30 +0100, Peter Zijlstra wrote: > On Tue, Oct 27, 2020 at 07:27:59PM +, David Woodhouse wrote: > > > > While looking at this I found that weird __add_wait_queue_exclusive() > > > which is used by fs/eventpoll.c and does something similar, except it > > > doesn't keep

Re: [PATCH] bpf: don't rely on GCC __attribute__((optimize)) to disable GCSE

2020-10-27 Thread Nick Desaulniers
On Tue, Oct 27, 2020 at 3:23 PM Ard Biesheuvel wrote: > > On Tue, 27 Oct 2020 at 23:03, Nick Desaulniers > wrote: > > > > On Tue, Oct 27, 2020 at 2:50 PM Ard Biesheuvel wrote: > > > > > > On Tue, 27 Oct 2020 at 22:20, Nick Desaulniers > > > wrote: > > > > > > > > On Tue, Oct 27, 2020 at 1:57

Re: [PATCH v2] ctype.h: remove duplicate isdigit() helper

2020-10-27 Thread Arnd Bergmann
On Tue, Oct 27, 2020 at 10:47 AM Miguel Ojeda wrote: > > On Tue, Oct 27, 2020 at 12:57 AM Arnd Bergmann wrote: > > > > +#ifdef __has_builtin > > +#define has_builtin(x) __has_builtin(x) > > +#else > > +#define has_builtin(x) (0) > > +#endif > > Could this be > > #ifndef __has_builtin > #

[PATCH v18 3/4] dt-bindings: arm-smmu: Add compatible string for Adreno GPU SMMU

2020-10-27 Thread Jordan Crouse
Every Qcom Adreno GPU has an embedded SMMU for its own use. These devices depend on unique features such as split pagetables, different stall/halt requirements and other settings. Identify them with a compatible string so that they can be identified in the arm-smmu implementation specific code.

[PATCH v18 2/4] iommu/arm-smmu: Add a way for implementations to influence SCTLR

2020-10-27 Thread Jordan Crouse
From: Rob Clark For the Adreno GPU's SMMU, we want SCTLR.HUPCF set to ensure that pending translations are not terminated on iova fault. Otherwise a terminated CP read could hang the GPU by returning invalid command-stream data. Signed-off-by: Rob Clark Reviewed-by: Bjorn Andersson

[PATCH v18 1/4] iommu/arm-smmu-qcom: Add implementation for the adreno GPU SMMU

2020-10-27 Thread Jordan Crouse
Add a special implementation for the SMMU attached to most Adreno GPU target triggered from the qcom,adreno-smmu compatible string. The new Adreno SMMU implementation will enable split pagetables (TTBR1) for the domain attached to the GPU device (SID 0) and hard code it context bank 0 so the GPU

[PATCH v18 4/4] arm: dts: qcom: sm845: Set the compatible string for the GPU SMMU

2020-10-27 Thread Jordan Crouse
Set the qcom,adreno-smmu compatible string for the GPU SMMU to enable split pagetables and per-instance pagetables for drm/msm. Signed-off-by: Jordan Crouse Signed-off-by: Rob Clark Reviewed-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi | 9 +

[PATCH v18 0/4] iommu/arm-smmu: Add adreno-smmu implementation and bindings

2020-10-27 Thread Jordan Crouse
This short series adds support for the adreno-smmu implementation of the arm-smmu driver and the device-tree bindings to turn on the implementation for the sm845 and sc7180 GPUs. These changes are the last ones needed to enable per-instance pagetables in the drm/msm driver. No deltas in this

[PATCH] ARC: stack unwinding: avoid indefinite looping

2020-10-27 Thread Vineet Gupta
Currently stack unwinder is a while(1) loop which relies on the dwarf unwinder to signal termination, which in turn relies on dwarf info to do so. This in theory could cause an infinite loop if the dwarf info was somehow messed up or the register contents were etc. This fix thus detects the

Re: [PATCH] openat2: reject RESOLVE_BENEATH|RESOLVE_IN_ROOT

2020-10-27 Thread Shuah Khan
On 10/7/20 4:36 AM, Aleksa Sarai wrote: This was an oversight in the original implementation, as it makes no sense to specify both scoping flags to the same openat2(2) invocation (before this patch, the result of such an invocation was equivalent to RESOLVE_IN_ROOT being ignored). This is a

Re: [PATCH v5 0/3] mtd: spi-nor: keep lock bits if they are non-volatile

2020-10-27 Thread Michael Walle
Am 2020-10-03 17:32, schrieb Michael Walle: I bundled this as a series, because otherwise there will be conflicts because the "remove global protection flag" patches modify the same lines as the main patch. See invdividual patches for the version history. any news here? -michael

Re: [PATCH] bpf: don't rely on GCC __attribute__((optimize)) to disable GCSE

2020-10-27 Thread Ard Biesheuvel
On Tue, 27 Oct 2020 at 23:03, Nick Desaulniers wrote: > > On Tue, Oct 27, 2020 at 2:50 PM Ard Biesheuvel wrote: > > > > On Tue, 27 Oct 2020 at 22:20, Nick Desaulniers > > wrote: > > > > > > On Tue, Oct 27, 2020 at 1:57 PM Ard Biesheuvel wrote: > > > > > > > > diff --git

[PATCH v3] seq_file: fix clang warning for NULL pointer arithmetic

2020-10-27 Thread Arnd Bergmann
From: Arnd Bergmann Clang points out that adding something to NULL is notallowed in standard C: fs/kernfs/file.c:127:15: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] return NULL + !*ppos;

[tip: x86/urgent] x86/debug: Fix DR_STEP vs ptrace_get_debugreg(6)

2020-10-27 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: cb05143bdf428f280a5d519c82abf196d7871c11 Gitweb: https://git.kernel.org/tip/cb05143bdf428f280a5d519c82abf196d7871c11 Author:Peter Zijlstra AuthorDate:Tue, 27 Oct 2020 19:33:30 +01:00

[tip: x86/urgent] x86/debug: Only clear/set ->virtual_dr6 for userspace #DB

2020-10-27 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: a195f3d4528a2f88d6f986f6b1101775ad4891cf Gitweb: https://git.kernel.org/tip/a195f3d4528a2f88d6f986f6b1101775ad4891cf Author:Peter Zijlstra AuthorDate:Tue, 27 Oct 2020 10:15:06 +01:00

[tip: x86/urgent] x86/debug: Fix BTF handling

2020-10-27 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 2a9baf5ad4884108b3c6d56a50e8105ccf8a4ee7 Gitweb: https://git.kernel.org/tip/2a9baf5ad4884108b3c6d56a50e8105ccf8a4ee7 Author:Peter Zijlstra AuthorDate:Tue, 27 Oct 2020 10:15:05 +01:00

Re: [PATCH] module: use hidden visibility for weak symbol references

2020-10-27 Thread Fangrui Song
One nit about ".got" in the message: Reviewed-by: Fangrui Song On 2020-10-27, Nick Desaulniers wrote: + Fangrui On Tue, Oct 27, 2020 at 8:11 AM Ard Biesheuvel wrote: Geert reports that commit be2881824ae9eb92 ("arm64/build: Assert for unwanted sections") results in build errors on arm64

Re: [PATCH 1/3] KVM: x86/mmu: Add helper macro for computing hugepage GFN mask

2020-10-27 Thread Ben Gardon
On Tue, Oct 27, 2020 at 2:43 PM Sean Christopherson wrote: > > Add a helper to compute the GFN mask given a hugepage level, KVM is > accumulating quite a few users with the addition of the TDP MMU. > > Note, gcc is clever enough to use a single NEG instruction instead of > SUB+NOT, i.e. use the

Re: [PATCH 3/3] KVM: x86/mmu: Use hugepage GFN mask to compute GFN offset mask

2020-10-27 Thread Sean Christopherson
On Tue, Oct 27, 2020 at 03:09:11PM -0700, Ben Gardon wrote: > On Tue, Oct 27, 2020 at 2:43 PM Sean Christopherson > wrote: > > > > Use the logical NOT of KVM_HPAGE_GFN_MASK() to compute the GFN offset > > mask instead of open coding the equivalent in a variety of locations. > > I don't see a "no

Re: [PATCH 2/3] KVM: x86/mmu: Open code GFN "rounding" in TDP MMU

2020-10-27 Thread Ben Gardon
On Tue, Oct 27, 2020 at 2:43 PM Sean Christopherson wrote: > > Drop round_gfn_for_level() and directly use the recently introdocued > KVM_HPAGE_GFN_MASK() macro. Hiding the masking in a "rounding" function > adds an extra "what does this do?" lookup, whereas the concept and usage > of PFN/GFN

[PATCH] i2c: exynos5: fix platform_get_irq error handling

2020-10-27 Thread Martin Kaiser
platform_get_irq already prints an error message if the requested irq was not found. Don't print another message in the driver. If platform_get_irq returns an error, relay this error to the caller of the probe function. Don't change all errors to -EINVAL. This breaks the case where

Re: [PATCH 3/3] KVM: x86/mmu: Use hugepage GFN mask to compute GFN offset mask

2020-10-27 Thread Ben Gardon
On Tue, Oct 27, 2020 at 2:43 PM Sean Christopherson wrote: > > Use the logical NOT of KVM_HPAGE_GFN_MASK() to compute the GFN offset > mask instead of open coding the equivalent in a variety of locations. I don't see a "no functional change expected" note on this patch as was on the previous

Re: [PATCH v2 04/19] mm/hugetlb: Introduce nr_free_vmemmap_pages in the struct hstate

2020-10-27 Thread Mike Kravetz
On 10/26/20 7:50 AM, Muchun Song wrote: > If the size of hugetlb page is 2MB, we need 512 struct page structures > (8 pages) to be associated with it. As far as I know, we only use the > first 4 struct page structures. Use of first 4 struct page structures comes from HUGETLB_CGROUP_MIN_ORDER. You

[PATCH v3 03/11] KVM: VMX: Stash kvm_vmx in a local variable for Hyper-V paravirt TLB flush

2020-10-27 Thread Sean Christopherson
Capture kvm_vmx in a local variable instead of polluting hv_remote_flush_tlb_with_range() with to_kvm_vmx(kvm). No functional change intended. Reviewed-by: Vitaly Kuznetsov Signed-off-by: Sean Christopherson --- arch/x86/kvm/vmx/vmx.c | 13 +++-- 1 file changed, 7 insertions(+), 6

Re: [PATCH] bpf: don't rely on GCC __attribute__((optimize)) to disable GCSE

2020-10-27 Thread Nick Desaulniers
On Tue, Oct 27, 2020 at 2:50 PM Ard Biesheuvel wrote: > > On Tue, 27 Oct 2020 at 22:20, Nick Desaulniers > wrote: > > > > On Tue, Oct 27, 2020 at 1:57 PM Ard Biesheuvel wrote: > > > > > > diff --git a/include/linux/compiler_types.h > > > b/include/linux/compiler_types.h > > > index

Re: [PATCH 4/4] net: dsa: mv88e6xxx: Support serdes ports on MV88E6123/6131

2020-10-27 Thread Andrew Lunn
On Tue, Oct 27, 2020 at 08:56:09PM +, Chris Packham wrote: > > On 24/10/20 11:42 am, Andrew Lunn wrote: > >> +int mv88e6123_serdes_get_regs_len(struct mv88e6xxx_chip *chip, int port) > >> +{ > >> + if (mv88e6xxx_serdes_get_lane(chip, port) == 0) > >> + return 0; > >> + > >> +

Re: [PATCH] selftests/ftrace: remove _do_fork() leftovers

2020-10-27 Thread Shuah Khan
On 10/23/20 9:51 AM, Steven Rostedt wrote: On Fri, 23 Oct 2020 11:49:48 -0400 Steven Rostedt wrote: On Fri, 23 Oct 2020 17:12:44 +0200 Alexander Gordeev wrote: Perhaps we should have: # older kernels have do_fork, but newer kernels have kernel_clone echo kernel_clone >>

Re: [PATCH] fix swiotlb panic on Xen

2020-10-27 Thread Stefano Stabellini
On Tue, 27 Oct 2020, Konrad Rzeszutek Wilk wrote: > > As the person who first found this and then confirmed this fixes a bug: > > > > Tested-by: Elliott Mitchell > > Thank you!! > > I changed the title and added the various tags and will put it in > linux-next later this week. Looks fine,

Re: [PATCH] ibmvfc: add new fields for version 2 of several MADs

2020-10-27 Thread Tyrel Datwyler
On 10/26/20 6:56 PM, Martin K. Petersen wrote: > > Tyrel, > >> Introduce a targetWWPN field to several MADs. Its possible that a scsi >> ID of a target can change due to some fabric changes. The WWPN of the >> scsi target provides a better way to identify the target. Also, add >> flags for

Re: [PATCH v3 0/3] implement I2C retries for mXT1368

2020-10-27 Thread Dmitry Osipenko
21.10.2020 04:14, Wang, Jiada пишет: > Hello Dmitry and all > > Kind reminder on this patch-set Hello Jiada, Thinking a bit more about these patches, I'm coming back to the variant with the atmel,wakeup-method property. There are three possible wake-up variants for mXT1368: - NONE - GPIO

Re: [PATCH] bpf: don't rely on GCC __attribute__((optimize)) to disable GCSE

2020-10-27 Thread Ard Biesheuvel
On Tue, 27 Oct 2020 at 22:20, Nick Desaulniers wrote: > > On Tue, Oct 27, 2020 at 1:57 PM Ard Biesheuvel wrote: > > > > Commit 3193c0836f203 ("bpf: Disable GCC -fgcse optimization for > > ___bpf_prog_run()") introduced a __no_fgcse macro that expands to a > > function scope

Re: [GIT pull] x86/urgent for 5.10-rc2

2020-10-27 Thread pr-tracker-bot
The pull request you sent on Tue, 27 Oct 2020 20:14:59 -: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > x86-urgent-2020-10-27 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ed8780e3f2ecc82645342d070c6b4e530532e680 Thank you! -- Deet-doot-dot, I

Re: [PATCH net-next 01/11] atm: horizon: shut up clang null pointer arithmetic warning

2020-10-27 Thread Xie He
On Tue, Oct 27, 2020 at 6:24 AM Arnd Bergmann wrote: > > Ah, of course. I had looked up the types but mixed up the memmap > and HDW definitions, but then got confused trying to understand the > logic in wr_mem() that operates on bytes but expands them into > multiples of 4. I think wr_mem()

[PATCH] x86: Drop RDPID macro to discourage use of RDPID in the kernel

2020-10-27 Thread Sean Christopherson
Drop the GAS-compatible RDPID macro as RDPID shouldn't be used in the kernel, excepting the vDSO, which handcodes RDPID in inline asm. RDPID is unsafe in the kernel because KVM loads guest's TSC_AUX on VM-entry and may not restore the host's value until the CPU returns to userspace. See commit

Re: [PATCH 3/3] kvm/eventfd: Drain events from eventfd in irqfd_wakeup()

2020-10-27 Thread kernel test robot
Hi David, I love your patch! Yet something to improve: [auto build test ERROR on vfio/next] [also build test ERROR on vhost/linux-next linus/master kvm/linux-next v5.10-rc1 next-20201027] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [PATCH v9 01/14] ASoC: sun4i-i2s: Change set_chan_cfg() params

2020-10-27 Thread Clément Péron
Hi Pierre-Louis, On Tue, 27 Oct 2020 at 19:59, Pierre-Louis Bossart wrote: > > > > @@ -452,11 +454,11 @@ static int sun8i_i2s_set_chan_cfg(const struct > > sun4i_i2s *i2s, > > case SND_SOC_DAIFMT_DSP_B: > > case SND_SOC_DAIFMT_LEFT_J: > > case SND_SOC_DAIFMT_RIGHT_J: > > -

[PATCH 3/3] KVM: x86/mmu: Use hugepage GFN mask to compute GFN offset mask

2020-10-27 Thread Sean Christopherson
Use the logical NOT of KVM_HPAGE_GFN_MASK() to compute the GFN offset mask instead of open coding the equivalent in a variety of locations. Signed-off-by: Sean Christopherson --- arch/x86/kvm/mmu/mmu.c | 2 +- arch/x86/kvm/mmu/mmutrace.h | 2 +- arch/x86/kvm/mmu/tdp_mmu.c | 2 +-

[PATCH 1/3] KVM: x86/mmu: Add helper macro for computing hugepage GFN mask

2020-10-27 Thread Sean Christopherson
Add a helper to compute the GFN mask given a hugepage level, KVM is accumulating quite a few users with the addition of the TDP MMU. Note, gcc is clever enough to use a single NEG instruction instead of SUB+NOT, i.e. use the more common "~(level -1)" pattern instead of round_gfn_for_level()'s

[PATCH 2/3] KVM: x86/mmu: Open code GFN "rounding" in TDP MMU

2020-10-27 Thread Sean Christopherson
Drop round_gfn_for_level() and directly use the recently introdocued KVM_HPAGE_GFN_MASK() macro. Hiding the masking in a "rounding" function adds an extra "what does this do?" lookup, whereas the concept and usage of PFN/GFN masks is common enough that it's easy to read the open coded version

[PATCH 0/3] KVM: x86/mmu: Add macro for hugepage GFN mask

2020-10-27 Thread Sean Christopherson
Add a macro, which is probably long overdue, to replace open coded variants of "~(KVM_PAGES_PER_HPAGE(level) - 1)". The straw that broke the camel's back is the TDP MMU's round_gfn_for_level(), which goes straight for the optimized approach of using NEG instead of SUB+NOT (gcc uses NEG for both).

[RFC] wimax: move out to staging

2020-10-27 Thread Arnd Bergmann
From: Arnd Bergmann There are no known users of this driver as of October 2020, and it will be removed unless someone turns out to still need it in future releases. According to https://en.wikipedia.org/wiki/List_of_WiMAX_networks, there have been many public wimax networks, but it appears that

Re: [PATCH v3] KVM: arm64: ARM_SMCCC_ARCH_WORKAROUND_1 doesn't return SMCCC_RET_NOT_REQUIRED

2020-10-27 Thread Stephen Boyd
Quoting Will Deacon (2020-10-26 06:25:33) > On Fri, Oct 23, 2020 at 08:47:50AM -0700, Stephen Boyd wrote: > > diff --git a/include/linux/arm-smccc.h b/include/linux/arm-smccc.h > > index 15c706fb0a37..0e50ba3e88d7 100644 > > --- a/include/linux/arm-smccc.h > > +++ b/include/linux/arm-smccc.h > >

Re: [PATCH v2 3/4] dm: add support for passing through inline crypto support

2020-10-27 Thread Eric Biggers
On Thu, Oct 15, 2020 at 09:46:31PM +, 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

Re: [GIT PULL] orphan-handling fixes for v5.10-rc2

2020-10-27 Thread pr-tracker-bot
The pull request you sent on Tue, 27 Oct 2020 11:52:30 -0700: > https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git > tags/orphan-handling-v5.10-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8c2ab803e565f994b897573f6f2f6520eef41159 Thank you! --

RE: [EXT] Re: [v2 01/11] irqchip: ls-extirq: Add LS1043A, LS1088A external interrupt

2020-10-27 Thread Leo Li
> -Original Message- > From: Biwen Li > Sent: Tuesday, October 27, 2020 2:48 AM > To: Rasmus Villemoes ; Biwen Li (OSS) > ; shawn...@kernel.org; robh...@kernel.org; > mark.rutl...@arm.com; Leo Li ; Z.q. Hou > ; t...@linutronix.de; ja...@lakedaemon.net; > m...@kernel.org > Cc:

Re: Subject: [RFC] clang tooling cleanups

2020-10-27 Thread Joe Perches
On Tue, 2020-10-27 at 14:09 -0700, Tom Rix wrote: > On 10/27/20 12:51 PM, Joe Perches wrote: [] > > I hope a scripted patches mechanism will be established. > > I would be interested in this as well. > I already have a repo tracking next. > I can code up a script to do the commits. > Then we can

Re: [PATCH v3 23/32] jbd2: fix a kernel-doc markup

2020-10-27 Thread Theodore Y. Ts'o
On Tue, Oct 27, 2020 at 10:51:27AM +0100, Mauro Carvalho Chehab wrote: > The kernel-doc markup that documents _fc_replay_callback is > missing an asterisk, causing this warning: > > ../include/linux/jbd2.h:1271: warning: Function parameter or member > 'j_fc_replay_callback' not described

[PATCH v3 05/11] KVM: VMX: Do Hyper-V TLB flush iff vCPU's EPTP hasn't been flushed

2020-10-27 Thread Sean Christopherson
Combine the for-loops for Hyper-V TLB EPTP checking and flushing, and in doing so skip flushes for vCPUs whose EPTP matches the target EPTP. Signed-off-by: Sean Christopherson --- arch/x86/kvm/vmx/vmx.c | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git

Re: [PATCH] drm/vc4: hdmi: Avoid sleeping in atomic context

2020-10-27 Thread Maxime Ripard
On Tue, Oct 27, 2020 at 11:15:58AM +0100, Maxime Ripard wrote: > When running the trigger hook, ALSA by default will take a spinlock, and > thus will run the trigger hook in atomic context. > > However, our HDMI driver will send the infoframes as part of the trigger > hook, and part of that

Re: [PATCH v3 05/21] selftests/resctrl: Return if resctrl file system is not supported

2020-10-27 Thread Shuah Khan
On 10/20/20 5:51 PM, Fenghua Yu wrote: check_resctrlfs_support() checks if the platform supports resctrl file system or not by looking for resctrl in /proc/filesystems and returns a boolean value. The main function of resctrl test suite calls check_resctrlfs_support() but forgets to check for

linux-next: Signed-off-by missing for commit in the mmc tree

2020-10-27 Thread Stephen Rothwell
Hi all, Commit 4a890911ffdb ("mmc: sdhci-of-esdhc: make sure delay chain locked for HS400") is missing a Signed-off-by from its committer. -- Cheers, Stephen Rothwell pgpsBTRr9TU3c.pgp Description: OpenPGP digital signature

  1   2   3   4   5   6   7   8   9   10   >