Re: [PATCH net-next RFC 09/13] devlink: Add enable_remote_dev_reset generic parameter

2020-07-30 Thread Moshe Shemesh
On 7/29/2020 11:57 PM, Jakub Kicinski wrote: On Wed, 29 Jul 2020 17:42:12 +0300 Moshe Shemesh wrote: On 7/28/2020 3:59 AM, Jakub Kicinski wrote: On Mon, 27 Jul 2020 14:02:29 +0300 Moshe Shemesh wrote: The enable_remote_dev_reset devlink param flags that the host admin allows device resets

[patch V3 3/3] x86: Select POSIX_CPU_TIMERS_TASK_WORK

2020-07-30 Thread Thomas Gleixner
From: Thomas Gleixner Move POSIX CPU timer expiry and signal delivery into task context. Signed-off-by: Thomas Gleixner --- arch/x86/Kconfig |1 + 1 file changed, 1 insertion(+) --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -209,6 +209,7 @@ config X86 select HAVE_PERF_REGS

[patch V3 1/3] posix-cpu-timers: Split run_posix_cpu_timers()

2020-07-30 Thread Thomas Gleixner
From: Thomas Gleixner Split it up as a preparatory step to move the heavy lifting out of interrupt context. Signed-off-by: Thomas Gleixner --- kernel/time/posix-cpu-timers.c | 43 ++--- 1 file changed, 24 insertions(+), 19 deletions(-) ---

[patch V3 0/3] posix-cpu-timers: Move expiry into task work context

2020-07-30 Thread Thomas Gleixner
This is the 3rd installment of the series to move posix timer expiry heavy lifting out of hard interrupt context. Running posix CPU timers in hard interrupt context has a few downsides: - For PREEMPT_RT it cannot work as the expiry code needs to take sighand lock, which is a 'sleeping

[patch V3 2/3] posix-cpu-timers: Provide mechanisms to defer timer handling to task_work

2020-07-30 Thread Thomas Gleixner
From: Thomas Gleixner Running posix CPU timers in hard interrupt context has a few downsides: - For PREEMPT_RT it cannot work as the expiry code needs to take sighand lock, which is a 'sleeping spinlock' in RT. The original RT approach of offloading the posix CPU timer handling into a

include/linux/spinlock.h:408:9: sparse: sparse: context imbalance in 'ks8851_unlock_par' - unexpected unlock

2020-07-30 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 83bdc7275e6206f560d247be856bceba3e1ed8f2 commit: 797047f875b5463719cc70ba213eb691d453c946 net: ks8851: Implement Parallel bus operations date: 9 weeks ago config: arm-randconfig-s031-20200730 (attached

Re: [PATCH 06/15] powerpc: fadamp: simplify fadump_reserve_crash_area()

2020-07-30 Thread Michael Ellerman
Mike Rapoport writes: > From: Mike Rapoport > > fadump_reserve_crash_area() reserves memory from a specified base address > till the end of the RAM. > > Replace iteration through the memblock.memory with a single call to > memblock_reserve() with appropriate that will take care of proper memory

Re: Upcoming: fscache rewrite

2020-07-30 Thread Matthew Wilcox
On Thu, Jul 30, 2020 at 12:51:16PM +0100, David Howells wrote: > (3) Al has objections to the ITER_MAPPING iov_iter type that I added > > > https://lore.kernel.org/linux-fsdevel/20200719014436.gg2786...@zeniv.linux.org.uk/ > > but note that iov_iter_for_each_range() is not actually

Re: [PATCH 11/23] fs: Add /proc/namespaces/ directory

2020-07-30 Thread Alexey Dobriyan
On Thu, Jul 30, 2020 at 03:00:19PM +0300, Kirill Tkhai wrote: > # ls /proc/namespaces/ -l > lrwxrwxrwx 1 root root 0 Jul 29 16:50 'cgroup:[4026531835]' -> > 'cgroup:[4026531835]' > lrwxrwxrwx 1 root root 0 Jul 29 16:50 'ipc:[4026531839]' -> 'ipc:[4026531839]' > lrwxrwxrwx 1 root root 0 Jul 29

[PATCH] lib: Convert test_uuid.c to KUnit

2020-07-30 Thread Arpitha Raghunandan
Converts test lib/test_uuid.c to KUnit Signed-off-by: Arpitha Raghunandan <98.a...@gmail.com> --- lib/Kconfig.debug | 7 +-- lib/Makefile | 2 +- lib/{test_uuid.c => uuid_kunit.c} | 84 +-- 3 files changed, 28 insertions(+), 65

Re: [PATCH] arm64/alternatives: move length validation inside the subsection

2020-07-30 Thread Catalin Marinas
On Wed, Jul 29, 2020 at 02:51:52PM -0700, Sami Tolvanen wrote: > Commit f7b93d42945c ("arm64/alternatives: use subsections for replacement > sequences") breaks LLVM's integrated assembler, because due to its > one-pass design, it cannot compute instruction sequence lengths before the > layout for

Re: [PATCH 0/3] arm64: delete duplicated words

2020-07-30 Thread Catalin Marinas
On Sat, 25 Jul 2020 17:32:04 -0700, Randy Dunlap wrote: > Delete duplicated words in arch/arm64/ header files. > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: linux-arm-ker...@lists.infradead.org > > arch/arm64/include/asm/pgtable-hwdef.h |4 ++-- > arch/arm64/include/asm/ptrace.h

Re: [PATCH 09/23] ns: Introduce ns_idr to be able to iterate all allocated namespaces in the system

2020-07-30 Thread Matthew Wilcox
On Thu, Jul 30, 2020 at 03:00:08PM +0300, Kirill Tkhai wrote: > This patch introduces a new IDR and functions to add/remove and iterate > registered namespaces in the system. It will be used to list namespaces > in /proc/namespaces/... in next patches. Looks like you could use an XArray for this

Re: [PATCH v5 00/75] x86: SEV-ES Guest Support

2020-07-30 Thread Joerg Roedel
Hi Mike, On Thu, Jul 30, 2020 at 01:27:48AM +, Mike Stunes wrote: > Thanks for the updated patches! I applied this patch-set onto commit > 01634f2bd42e ("Merge branch 'x86/urgent’”) from your tree. It boots, > but CPU 1 (on a two-CPU VM) is offline at boot, and `chcpu -e 1` returns: > >

Re: [PATCH] arm64: mm: add message to die() in die_kernel_fault()

2020-07-30 Thread Catalin Marinas
On Thu, Jul 30, 2020 at 07:47:57PM +0800, Yue Hu wrote: > From: Yue Hu > > Just to identify the kernel fault more clearly. > > Signed-off-by: Yue Hu > --- > arch/arm64/mm/fault.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/mm/fault.c

[PATCH v7 3/9] remoteproc: qcom: Add support for split q6 + m3 wlan firmware

2020-07-30 Thread Gokul Sriram Palanisamy
IPQ8074 supports split firmware for q6 and m3 as well. So add support for loading the m3 firmware before q6. Now the drivers works fine for both split and unified firmwares. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V ---

[PATCH v7 5/9] remoteproc: qcom: Update regmap offsets for halt register

2020-07-30 Thread Gokul Sriram Palanisamy
Fixed issue in reading halt-regs parameter from device-tree. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R --- drivers/remoteproc/qcom_q6v5_wcss.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/remoteproc/qcom_q6v5_wcss.c

[PATCH v7 9/9] arm64: dts: qcom: Enable Q6v5 WCSS for ipq8074 SoC

2020-07-30 Thread Gokul Sriram Palanisamy
Enable remoteproc WCSS PIL driver with glink and ssr subdevices. Also configures shared memory and enables smp2p and mailboxes required for IPC. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 121

[PATCH v7 8/9] arm64: dts: Add support for scm on IPQ8074 SoCs

2020-07-30 Thread Gokul Sriram Palanisamy
Enables scm support, clock is not needed for enabling scm interface. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi

[PATCH v7 1/9] remoteproc: qcom: Add PRNG proxy clock

2020-07-30 Thread Gokul Sriram Palanisamy
PRNG clock is needed by the secure PIL, support for the same is added in subsequent patches. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V --- drivers/remoteproc/qcom_q6v5_wcss.c | 65 +++-- 1 file changed, 47

[PATCH v7 4/9] remoteproc: qcom: Add ssr subdevice identifier

2020-07-30 Thread Gokul Sriram Palanisamy
Add name for ssr subdevice on IPQ8074 SoC. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V --- drivers/remoteproc/qcom_q6v5_wcss.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/qcom_q6v5_wcss.c

Re: [PATCH RFC v6 1/6] dt-bindings: exynos-bus: Add documentation for interconnect properties

2020-07-30 Thread Sylwester Nawrocki
On 09.07.2020 23:04, Rob Herring wrote: > On Thu, Jul 02, 2020 at 06:37:19PM +0200, Sylwester Nawrocki wrote: >> Add documentation for new optional properties in the exynos bus nodes: >> samsung,interconnect-parent, #interconnect-cells, bus-width. >> These properties allow to specify the SoC

[PATCH v7 6/9] dt-bindings: clock: qcom: Add reset for WCSSAON

2020-07-30 Thread Gokul Sriram Palanisamy
Add binding for WCSSAON reset required for Q6v5 reset on IPQ8074 SoC. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V Acked-by: Rob Herring Acked-by: Stephen Boyd --- include/dt-bindings/clock/qcom,gcc-ipq8074.h | 1 + 1 file changed, 1

[PATCH v7 2/9] remoteproc: qcom: Add secure PIL support

2020-07-30 Thread Gokul Sriram Palanisamy
IPQ8074 uses secure PIL. Hence, adding the support for the same. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V --- drivers/remoteproc/qcom_q6v5_wcss.c | 43 ++--- 1 file changed, 40 insertions(+), 3

Re: [PATCH bpf-next 1/1] arm64: bpf: Add BPF exception tables

2020-07-30 Thread Qian Cai
On Tue, Jul 28, 2020 at 05:21:26PM +0200, Jean-Philippe Brucker wrote: > When a tracing BPF program attempts to read memory without using the > bpf_probe_read() helper, the verifier marks the load instruction with > the BPF_PROBE_MEM flag. Since the arm64 JIT does not currently recognize > this

[PATCH v7 0/9] remoteproc: qcom: q6v5-wcss: Add support for secure pil

2020-07-30 Thread Gokul Sriram Palanisamy
IPQ8074 needs support for secure pil as well. Also, currently only unified firmware is supported. IPQ8074 supports split firmware for q6 and m3, so adding support for that. This series is based on Govind's "[v8] Add non PAS wcss Q6 support for QCS404" changes since v6: - Rebased on top of the

[PATCH v7 7/9] clk: qcom: Add WCSSAON reset

2020-07-30 Thread Gokul Sriram Palanisamy
Add WCSSAON reset required for Q6v5 on IPQ8074 SoC. Signed-off-by: Gokul Sriram Palanisamy Signed-off-by: Sricharan R Signed-off-by: Nikhil Prakash V Acked-by: Stephen Boyd --- drivers/clk/qcom/gcc-ipq8074.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/gcc-ipq8074.c

Re: [PATCH net-next RFC 01/13] devlink: Add reload level option to devlink reload command

2020-07-30 Thread Moshe Shemesh
On 7/30/2020 12:07 AM, Jakub Kicinski wrote: On Wed, 29 Jul 2020 17:54:08 +0300 Moshe Shemesh wrote: On 7/28/2020 11:06 PM, Jakub Kicinski wrote: On Tue, 28 Jul 2020 12:18:30 -0700 Jacob Keller wrote: On 7/28/2020 11:44 AM, Jakub Kicinski wrote: From user perspective what's important is

drivers/crypto/marvell/cesa/tdma.c:117:40: sparse: sparse: incorrect type in assignment (different base types)

2020-07-30 Thread kernel test robot
for Marvell date: 4 months ago config: arm-randconfig-s031-20200730 (attached as .config) compiler: arm-linux-gnueabi-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

[PATCH] iocost_monitor: start from the oldest usage index

2020-07-30 Thread Chengming Zhou
iocg usage_idx is the latest usage index, we should start from the oldest usage index to show the consecutive NR_USAGE_SLOTS usages. Signed-off-by: Chengming Zhou --- tools/cgroup/iocost_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v4] usb: typec: tcpm: Migrate workqueue to RT priority for processing events

2020-07-30 Thread Heikki Krogerus
Hi, One more nitpick below... On Thu, Jul 30, 2020 at 12:25:31AM -0700, Badhri Jagan Sridharan wrote: > @@ -4786,10 +4807,28 @@ static int devm_tcpm_psy_register(struct tcpm_port > *port) > return PTR_ERR_OR_ZERO(port->psy); > } > > +static enum hrtimer_restart

drivers/video/fbdev/nvidia/nvidia.c:1411:20: sparse: sparse: incorrect type in argument 1 (different modifiers)

2020-07-30 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 83bdc7275e6206f560d247be856bceba3e1ed8f2 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 6 weeks ago config: arc-randconfig-s032-20200730 (attached

Re: Upcoming: fscache rewrite

2020-07-30 Thread David Howells
Matthew Wilcox wrote: > I suspect you don't need to call find_get_pages_contig(). If you look > at __readahead_batch() in pagemap.h, it does basically what you want > (other than being wrapped up inside the readahead iterator). You require > the pages already be pinned in the xarray, so

Re: [PATCH 1/4] KVM: SVM: nested: Don't allocate VMCB structures on stack

2020-07-30 Thread Joerg Roedel
Hi Sean, thanks for your review! On Wed, Jul 29, 2020 at 08:14:55AM -0700, Sean Christopherson wrote: > On Wed, Jul 29, 2020 at 03:22:31PM +0200, Joerg Roedel wrote: > Speaking of too large, would it be overly paranoid to add: > > BUILD_BUG_ON(sizeof(struct vmcb_control_area) + sizeof(struct

[PATCH] perf/x86: Reset the counter to prevent the leak for a RDPMC task

2020-07-30 Thread kan . liang
From: Kan Liang The counter value of a perf task may leak to another RDPMC task. For example, a perf stat task as below is running on CPU 0. perf stat -e 'branches,cycles' -- taskset -c 0 ./workload In the meantime, an RDPMC task, which is also running on CPU 0, may read the GP counters

Re: [PATCH v2 0/9] Make check implementation arch agnostic

2020-07-30 Thread peterz
On Thu, Jul 30, 2020 at 10:46:43AM +0100, Julien Thierry wrote: > Julien Thierry (8): > objtool: Group headers to check in a single list > objtool: Make sync-check consider the target architecture > objtool: Move macros describing structures to arch-dependent code > objtool: Abstract

Re: [PATCH v3 2/4] objtool: Move orc outside of check

2020-07-30 Thread Julien Thierry
On 7/30/20 10:57 AM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 10:41:41AM +0100, Julien Thierry wrote: + if (file->elf->changed) + return elf_write(file->elf); + else + return 0; } I think we can do

Re: [RFC 1/7] mac80211: Add check for napi handle before WARN_ON

2020-07-30 Thread Johannes Berg
On Sun, 2020-07-26 at 21:49 +0530, Rakesh Pillai wrote: > We do have the usage of napi_gro_receive and netif_receive_skb in mac80211. > /* deliver to local stack */ > if (rx->napi) > napi_gro_receive(rx->napi, skb); > else >

Re: [PATCH v3 4/4] objtool: orc_gen: Move orc_entry out of instruction structure

2020-07-30 Thread Julien Thierry
On 7/30/20 11:03 AM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 10:41:43AM +0100, Julien Thierry wrote: One orc_entry is associated with each instruction in the object file, but having the orc_entry contained by the instruction structure forces architectures not implementing the orc

[PATCH 2/2] dt-bindings: mtd: Convert imx nand to json-schema

2020-07-30 Thread Anson Huang
Convert the i.MX nand controller binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- Documentation/devicetree/bindings/mtd/mxc-nand.txt | 19 -- .../devicetree/bindings/mtd/mxc-nand.yaml | 42 ++ 2 files changed, 42 insertions(+),

[PATCH 1/2] dt-bindings: mtd: Convert gpmi nand to json-schema

2020-07-30 Thread Anson Huang
Convert the gpmi nand controller binding to DT schema format using json-schema. Signed-off-by: Anson Huang --- .../devicetree/bindings/mtd/gpmi-nand.txt | 75 - .../devicetree/bindings/mtd/gpmi-nand.yaml | 118 + 2 files changed, 118

Re: [PATCH -next] powerpc: use for_each_child_of_node() macro

2020-07-30 Thread Michael Ellerman
On Tue, 28 Jul 2020 10:28:07 +0800, Qinglang Miao wrote: > Use for_each_child_of_node() macro instead of open coding it. Applied to powerpc/next. [1/1] powerpc: use for_each_child_of_node() macro https://git.kernel.org/powerpc/c/b6ac59d39a348af29477d7bfdc3ba23526e3f4ea cheers

Re: [PATCH][next] powerpc: Use fallthrough pseudo-keyword

2020-07-30 Thread Michael Ellerman
On Mon, 27 Jul 2020 17:42:01 -0500, 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. > > [1] >

Re: [PATCH -next] powerpc/powernv/sriov: Remove unused but set variable 'phb'

2020-07-30 Thread Michael Ellerman
On Tue, 28 Jul 2020 01:11:12 +0800, Wei Yongjun wrote: > Gcc report warning as follows: > > arch/powerpc/platforms/powernv/pci-sriov.c:602:25: warning: > variable 'phb' set but not used [-Wunused-but-set-variable] > 602 | struct pnv_phb*phb; > | ^~~ > >

Re: [PATCH v2 1/5] selftests/powerpc: Add test of stack expansion logic

2020-07-30 Thread Michael Ellerman
On Fri, 24 Jul 2020 19:25:24 +1000, Michael Ellerman wrote: > We have custom stack expansion checks that it turns out are extremely > badly tested and contain bugs, surprise. So add some tests that > exercise the code and capture the current boundary conditions. > > The signal test currently

Re: [char-misc-next V2] mei: hdcp: fix mei_hdcp_verify_mprime() input paramter

2020-07-30 Thread Gustavo A. R. Silva
Hi Tomas, On 7/30/20 02:02, Tomas Winkler wrote: > wired_cmd_repeater_auth_stream_req_in has a variable > length array at the end. we use struct_size() overflow > macro to determine the size for the allocation and sending > size. > My comments here:

Re: [PATCH v2 1/1] rcu/tree: Drop the lock before entering to page allocator

2020-07-30 Thread Joel Fernandes
On Mon, Jul 27, 2020 at 11:10:12PM +0200, Uladzislau Rezki (Sony) wrote: > If the kernel is built with CONFIG_PROVE_RAW_LOCK_NESTING > option, the lockedp will complain about violation of the > nesting rules: > > > [ 28.060389] = > [ 28.060389] [ BUG: Invalid wait

Re: [PATCH v4] scripts: use pkg-config to locate libcrypto

2020-07-30 Thread Rolf Eike Beer
Am Montag, 27. April 2020, 10:11:28 CEST schrieb Rolf Eike Beer: > From 082ba542ca4c710dcf592a6f9233603b9275d05d Mon Sep 17 00:00:00 2001 > From: Rolf Eike Beer > Date: Thu, 22 Nov 2018 16:40:49 +0100 > Subject: [PATCH 1/2] scripts: use pkg-config to locate libcrypto > > Otherwise build fails if

Re: [PATCH] perf/x86: Reset the counter to prevent the leak for a RDPMC task

2020-07-30 Thread peterz
On Thu, Jul 30, 2020 at 05:38:15AM -0700, kan.li...@linux.intel.com wrote: > From: Kan Liang > > The counter value of a perf task may leak to another RDPMC task. Sure, but nowhere did you explain why that is a problem. > The RDPMC instruction is only available for the X86 platform. Only apply

Re: [PATCH] arm64: mm: add message to die() in die_kernel_fault()

2020-07-30 Thread Yue Hu
On Thu, 30 Jul 2020 13:27:23 +0100 Catalin Marinas wrote: > On Thu, Jul 30, 2020 at 07:47:57PM +0800, Yue Hu wrote: > > From: Yue Hu > > > > Just to identify the kernel fault more clearly. > > > > Signed-off-by: Yue Hu > > --- > > arch/arm64/mm/fault.c | 2 +- > > 1 file changed, 1

[RFC PATCH 0/3] ARM: mstar: msc313 intc driver

2020-07-30 Thread Daniel Palmer
This is the first driver for the MStar/SigmaStar chips. All of the chips so far have two instances of this controller. One instance controls what are called "IRQ" interrupts by the vendor code I have seen. The other instance controls what are called "FIQ" interrupts by the vendor code.

[RFC PATCH 2/3] ARM: mstar: msc313-intc interrupt controller driver

2020-07-30 Thread Daniel Palmer
Add a driver for the two peripheral interrupt controllers in MStar MSC313 and other MStar/Sigmastar Armv7 SoCs. Supports both the "IRQ" and "FIQ" controllers that forward interrupts from the various IP blocks inside the SoC to the ARM GIC. They are basically the same thing except for one

[RFC PATCH 1/3] dt: bindings: interrupt-controller: Add binding description for msc313-intc

2020-07-30 Thread Daniel Palmer
Adds a YAML description of the binding for the msc313-intc. Signed-off-by: Daniel Palmer Tested-by: Willy Tarreau --- .../mstar,msc313-intc.yaml| 79 +++ MAINTAINERS | 1 + 2 files changed, 80 insertions(+) create mode

[RFC PATCH 3/3] ARM: mstar: Add interrupt controller to base dtsi

2020-07-30 Thread Daniel Palmer
Add the IRQ and FIQ intc instances to the base MStar/SigmaStar v7 dtsi. All of the know SoCs have both and at the same place with their common IPs using the same interrupt lines. Signed-off-by: Daniel Palmer Tested-by: Willy Tarreau --- arch/arm/boot/dts/mstar-v7.dtsi | 20

Re: [PATCH v2 0/2] Remove MT6779 UART3 clock support

2020-07-30 Thread Hanks Chen
Hi all, Gentle ping on this patch. Thanks! Hanks Chen On Wed, 2020-07-22 at 17:21 +0200, Matthias Brugger wrote: > > On 22/07/2020 13:16, Hanks Chen wrote: > > On Wed, 2020-07-22 at 10:43 +0200, Matthias Brugger wrote: > >> > >> On 22/07/2020 05:09, Hanks Chen wrote: > >>> remove the

Re: [PATCH 3/4] KVM: SVM: Add GHCB Accessor functions

2020-07-30 Thread Joerg Roedel
On Wed, Jul 29, 2020 at 08:43:28AM -0700, Sean Christopherson wrote: > Rather than manually calculate the byte/bit indices just use __set_bit() > and test_bit(). That will also solve the variable declaration issue. > > E.g. > > #define GHB_BITMAP_IDX(field) \ > (offsetof(struct

sdX - Another fun fact.

2020-07-30 Thread Ywe Cærlyn
The name Unix seems to go back to a Scanza (pre-christian name of Norway) tribe, also. We earlier discussed the Sami Tor idol, and this is where it seems to go. These facts also make the name sdX fit perfectly, again a supply and demand principle based OS. Serenity! Ywe Cærlyn

Re: [PATCH][next] ALSA: vmaster: Use flex_array_size() helper in memcpy()

2020-07-30 Thread Gustavo A. R. Silva
On 7/30/20 03:41, Takashi Iwai wrote: > On Thu, 30 Jul 2020 00:18:29 +0200, > Gustavo A. R. Silva wrote: >> >> Make use of the flex_array_size() helper to calculate the size of a >> flexible array member within an enclosing structure. >> >> This helper offers defense-in-depth against potential

[PATCH 1/2] ARM: dts: imx27: Change nand node name to nand-controller

2020-07-30 Thread Anson Huang
Change i.MX27 nand node name from "nand" to "nand-controller" to be compliant with yaml schema, it requires the nodename to be "nand-controller". Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx27.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:20PM +0300, Kirill Tkhai wrote: > Currently, there is no a way to list or iterate all or subset of namespaces > in the system. Some namespaces are exposed in /proc/[pid]/ns/ directories, > but some also may be as open files, which are not attached to a process. > When

[PATCH 2/2] ARM: dts: imx: Change gpmi nand node name to nand-controller

2020-07-30 Thread Anson Huang
Change i.MX SoCs nand node name from "gpmi-nand" to "nand-controller" to be compliant with yaml schema, it requires the nodename to be "nand-controller". Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx23-evk.dts| 2 +- arch/arm/boot/dts/imx23.dtsi | 2 +-

RE: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-07-30 Thread David Laight
> This is quite clever, but now I’m wondering just how much kernel help > is really needed. In your series, the trampoline is an non-executable > page. I can think of at least two alternative approaches, and I'd > like to know the pros and cons. > > 1. Entirely userspace: a return trampoline

Re: Upcoming: fscache rewrite

2020-07-30 Thread Jeff Layton
On Thu, 2020-07-30 at 12:51 +0100, David Howells wrote: > Hi Linus, Trond/Anna, Steve, Eric, > > I have an fscache rewrite that I'm tempted to put in for the next merge > window: > > >

RE: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default

2020-07-30 Thread Anson Huang
Hi, Philipp > Subject: Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default > > Hi Anson, > > On Thu, 2020-07-30 at 02:11 +, Anson Huang wrote: > > Hi, Philipp/Rob > > > > > Subject: Re: [PATCH V3 3/3] pci: imx: Select RESET_IMX7 by default > > > > > > On Wed, 2020-07-29 at 09:26

[PATCH 1/2] habanalabs: Replace dma-fence mechanism with completions

2020-07-30 Thread Oded Gabbay
From: Ofir Bitton habanalabs driver uses dma-fence mechanism for synchronization. dma-fence mechanism was designed solely for GPUs, hence we purpose a simpler mechanism based on completions to replace current dma-fence objects. Signed-off-by: Ofir Bitton Cc: Greg Kroah-Hartman Cc: Daniel

[PATCH 2/2] habanalabs: add information about PCIe controller

2020-07-30 Thread Oded Gabbay
From: Ofir Bitton Update firmware header with new API for getting pcie info such as tx/rx throughput and replay counter. These counters are needed by customers for monitor and maintenance of multiple devices. Add new opcodes to the INFO ioctl to retrieve these counters. Signed-off-by: Ofir

Re: [RFC][PATCH] exec: Freeze the other threads during a multi-threaded exec

2020-07-30 Thread Eric W. Biederman
Linus Torvalds writes: > On Tue, Jul 28, 2020 at 6:23 AM Eric W. Biederman > wrote: >> >> For exec all I care about are user space threads. So it appears the >> freezer infrastructure adds very little. > > Yeah. 99% of the freezer stuff is for just adding the magic notations > for kernel

Re: [PATCH 11/23] fs: Add /proc/namespaces/ directory

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 15:18, Alexey Dobriyan wrote: > On Thu, Jul 30, 2020 at 03:00:19PM +0300, Kirill Tkhai wrote: > >> # ls /proc/namespaces/ -l >> lrwxrwxrwx 1 root root 0 Jul 29 16:50 'cgroup:[4026531835]' -> >> 'cgroup:[4026531835]' >> lrwxrwxrwx 1 root root 0 Jul 29 16:50 'ipc:[4026531839]' -> >>

Re: [PATCH v3 2/4] objtool: Move orc outside of check

2020-07-30 Thread peterz
On Thu, Jul 30, 2020 at 01:40:42PM +0100, Julien Thierry wrote: > > > On 7/30/20 10:57 AM, pet...@infradead.org wrote: > > On Thu, Jul 30, 2020 at 10:41:41AM +0100, Julien Thierry wrote: > > > + if (file->elf->changed) > > > + return elf_write(file->elf); > > > +

RE: [PATCH v2 2/2] ASoC: Intel: Add period size constraint on strago board

2020-07-30 Thread Lu, Brent
> On Thu, Jul 30, 2020 at 04:13:35PM +0800, Brent Lu wrote: > > From: Yu-Hsuan Hsu > > > > The CRAS server does not set the period size in hw_param so ALSA will > > calculate a value for period size which is based on the buffer size > > and other parameters. The value may not always be aligned

Re: [PATCH] vgacon: Fix an out-of-bounds in vgacon_scrollback_update()

2020-07-30 Thread Yang Yingliang
On 2020/7/30 19:04, Jiri Slaby wrote: On 13. 07. 20, 12:57, Yang Yingliang wrote: I got a slab-out-of-bounds report when I doing fuzz test. [ 334.989515] == [ 334.989577] BUG: KASAN: slab-out-of-bounds in

[PATCH v5 1/4] dt-bindings: input: gpio-vibrator: Don't require enable-gpios

2020-07-30 Thread Ondrej Jirman
It is possible to turn the motor on/off just by enabling/disabling the vcc-supply. Change the binding to require either enable-gpios or vcc-supply or both. Signed-off-by: Ondrej Jirman Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/input/gpio-vibrator.yaml | 7 ++- 1 file

[PATCH v5 2/4] input: gpio-vibra: Allow to use vcc-supply alone to control the vibrator

2020-07-30 Thread Ondrej Jirman
Make enable-gpio optional to allow using this driver with boards that have vibrator connected to a power supply without intermediate gpio based enable circuitry. Also avoid a case where neither regulator nor enable gpio is specified, and bail out in probe in such a case. Signed-off-by: Ondrej

[PATCH v5 4/4] ARM: dts: sun8i-a83t-tbs-a711: Increase voltage on the vibrator

2020-07-30 Thread Ondrej Jirman
Vibrator motor is weak at the current voltage. Increase the voltage. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts

[PATCH v5 3/4] ARM: dts: sun8i-a83t-tbs-a711: Add support for the vibrator motor

2020-07-30 Thread Ondrej Jirman
The board has a vibrator motor. Hook it to the input subsystem. According to the PMIC specification, LDO needs to be enabled (value 0b11) to achieve the specified max driving current of 150mA. We can't drive the motor with just GPIO mode. In GPIO mode the chip is probably just using the regular

[PATCH v5 0/4] Add support for vibrator motor for TBS A711 Tablet

2020-07-30 Thread Ondrej Jirman
The tablet has a vibrator motor. This patch series exposes it via input subsystem (EV_FF). I'd like to ask input maintainers to take the patches 1 and 2. Patches 3 and 4 should go via the sunxi tree. The change to the vibrator driver is meant to enable toggling the vibrator motor just via a

[PATCH] KVM: arm64: Ensure that all nVHE hyp code is in .hyp.text

2020-07-30 Thread David Brazdil
Some compilers may put a subset of generated functions into '.text.*' ELF sections and the linker may leverage this division to optimize ELF layout. Unfortunately, the recently introduced HYPCOPY command assumes that all executable code (with the exception of specialized sections such as

Re: [PATCH][next] mlxsw: spectrum_cnt: Use flex_array_size() helper in memcpy()

2020-07-30 Thread Gustavo A. R. Silva
On 7/30/20 04:21, Ido Schimmel wrote: > On Wed, Jul 29, 2020 at 05:58:03PM -0500, Gustavo A. R. Silva wrote: >> Make use of the flex_array_size() helper to calculate the size of a >> flexible array member within an enclosing structure. >> >> This helper offers defense-in-depth against potential

Re: [PATCH 11/23] fs: Add /proc/namespaces/ directory

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 03:00:19PM +0300, Kirill Tkhai wrote: > This is a new directory to show all namespaces, which can be > accessed from this /proc tasks credentials. > > Every /proc is related to a pid_namespace, and the pid_namespace > is related to a user_namespace. The items, we show in

Re: [PATCH v3 2/4] objtool: Move orc outside of check

2020-07-30 Thread Julien Thierry
On 7/30/20 2:22 PM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 01:40:42PM +0100, Julien Thierry wrote: On 7/30/20 10:57 AM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 10:41:41AM +0100, Julien Thierry wrote: + if (file->elf->changed) +

[PATCH v10 3/3] clk: mediatek: add UART0 clock support

2020-07-30 Thread Hanks Chen
Add MT6779 UART0 clock support. Fixes: 710774e04861 ("clk: mediatek: Add MT6779 clock support") Signed-off-by: Wendell Lin Signed-off-by: Hanks Chen Reviewed-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt6779.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v10 1/3] dt-bindings: pinctrl: add bindings for MediaTek MT6779 SoC

2020-07-30 Thread Hanks Chen
From: Andy Teng Add devicetree bindings for MediaTek MT6779 pinctrl driver. Signed-off-by: Andy Teng Signed-off-by: Hanks Chen --- .../pinctrl/mediatek,mt6779-pinctrl.yaml | 202 ++ 1 file changed, 202 insertions(+) create mode 100644

[PATCH v10 2/3] arm64: dts: add dts nodes for MT6779

2020-07-30 Thread Hanks Chen
this adds initial MT6779 dts settings for board support, including cpu, gic, timer, ccf, pinctrl, uart, sysirq...etc. Signed-off-by: Hanks Chen --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt6779-evb.dts | 31 +++

[PATCH v10 0/3] Add basic SoC Support for Mediatek MT6779 SoC

2020-07-30 Thread Hanks Chen
Change since v10: Commit "dt-bindings: pinctrl: add bindings for MediaTek MT6779 SoC" -- remove the patches which were applied to linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b07b616214857c9db01e2807cde2f6bba8019fc3 -- follow the latest 'dt-schema' and

Re: [PATCH 09/23] ns: Introduce ns_idr to be able to iterate all allocated namespaces in the system

2020-07-30 Thread Kirill Tkhai
On 30.07.2020 15:23, Matthew Wilcox wrote: > On Thu, Jul 30, 2020 at 03:00:08PM +0300, Kirill Tkhai wrote: >> This patch introduces a new IDR and functions to add/remove and iterate >> registered namespaces in the system. It will be used to list namespaces >> in /proc/namespaces/... in next

Re: [PATCH v3 4/4] objtool: orc_gen: Move orc_entry out of instruction structure

2020-07-30 Thread peterz
On Thu, Jul 30, 2020 at 01:40:48PM +0100, Julien Thierry wrote: > > > On 7/30/20 11:03 AM, pet...@infradead.org wrote: > > On Thu, Jul 30, 2020 at 10:41:43AM +0100, Julien Thierry wrote: > > > One orc_entry is associated with each instruction in the object file, > > > but having the orc_entry

Re: [PATCH] firewire: firewire-cdev.h: Avoid the use of one-element array

2020-07-30 Thread Gustavo A. R. Silva
NACK! Please, stop doing this. You clearly don't know what you're doing. You're just blindly copying/pasting all this. The subject line has nothing to do with what the patch does and we don't want any of these transformations in UAPI for now. As I already said here:

Re: [PATCH 01/23] ns: Add common refcount into ns_common add use it as counter for net_ns

2020-07-30 Thread Christian Brauner
On Thu, Jul 30, 2020 at 02:59:25PM +0300, Kirill Tkhai wrote: > Currently, every type of namespaces has its own counter, > which is stored in ns-specific part. Say, @net has > struct net::count, @pid has struct pid_namespace::kref, etc. > > This patchset introduces unified counter for all types >

Re: [PATCH] vgacon: Fix an out-of-bounds in vgacon_scrollback_update()

2020-07-30 Thread Jiri Slaby
On 30. 07. 20, 15:24, Yang Yingliang wrote: > > On 2020/7/30 19:04, Jiri Slaby wrote: >> On 13. 07. 20, 12:57, Yang Yingliang wrote: >>> I got a slab-out-of-bounds report when I doing fuzz test. >>> >>> [  334.989515] >>> == >>> [ 

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-07-30 Thread Christian Brauner
[Cc: linux-api] On Thu, Jul 30, 2020 at 03:08:53PM +0200, Christian Brauner wrote: > On Thu, Jul 30, 2020 at 02:59:20PM +0300, Kirill Tkhai wrote: > > Currently, there is no a way to list or iterate all or subset of namespaces > > in the system. Some namespaces are exposed in /proc/[pid]/ns/

[v1] drm/msm/dpu: Fix scale params in plane validation

2020-07-30 Thread Kalyan Thota
Plane validation uses an API drm_calc_scale which will return src/dst value as a scale ratio. when viewing the range on a scale the values should fall in as Upscale ratio < Unity scale < Downscale ratio for src/dst formula Fix the min and max scale ratios to suit the API accordingly.

Re: [PATCH 0/2] Fix st7703 panel initialization failures

2020-07-30 Thread Ondřej Jirman
Hello, On Wed, Jul 29, 2020 at 05:48:09PM +0200, Guido Günther wrote: > Hi, > On Sat, Jul 18, 2020 at 07:42:15PM +0200, Ondřej Jirman wrote: > > Hello, > > > > On Sat, Jul 18, 2020 at 07:31:24PM +0200, Guido Günther wrote: > > > Hi, > > > On Thu, Jul 16, 2020 at 04:32:09PM +0200, Ondřej Jirman

Re: [net-next v5 PATCH 0/7] Add PRP driver

2020-07-30 Thread Murali Karicheri
Hi Dave, On 7/27/20 3:21 PM, David Miller wrote: From: Murali Karicheri Date: Wed, 22 Jul 2020 10:40:15 -0400 This series is dependent on the following patches sent out to netdev list. All (1-3) are already merged to net/master as of sending this, but not on the net-next master branch. So

Re: [PATCH v3 4/4] objtool: orc_gen: Move orc_entry out of instruction structure

2020-07-30 Thread Julien Thierry
On 7/30/20 2:33 PM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 01:40:48PM +0100, Julien Thierry wrote: On 7/30/20 11:03 AM, pet...@infradead.org wrote: On Thu, Jul 30, 2020 at 10:41:43AM +0100, Julien Thierry wrote: One orc_entry is associated with each instruction in the object

Re: [net-next iproute2 PATCH v3 1/2] iplink: hsr: add support for creating PRP device similar to HSR

2020-07-30 Thread Murali Karicheri
Hi Dave, On 7/17/20 11:22 AM, Murali Karicheri wrote: This patch enhances the iplink command to add a proto parameters to create PRP device/interface similar to HSR. Both protocols are quite similar and requires a pair of Ethernet interfaces. So re-use the existing HSR iplink command to create

Re: [PATCH 03/10] media: uapi: h264: Split prediction weight parameters

2020-07-30 Thread Nicolas Dufresne
Le samedi 25 juillet 2020 à 22:30 +0900, Alexandre Courbot a écrit : > On Thu, Jul 16, 2020 at 5:23 AM Ezequiel Garcia > wrote: > > The prediction weight parameters are only required under > > certain conditions, which depend on slice header parameters. > > > > The slice header syntax specifies

Re: [PATCH v2 2/2] ASoC: Intel: Add period size constraint on strago board

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 01:23:57PM +, Lu, Brent wrote: > > On Thu, Jul 30, 2020 at 04:13:35PM +0800, Brent Lu wrote: > > > From: Yu-Hsuan Hsu > > > > > > The CRAS server does not set the period size in hw_param so ALSA will > > > calculate a value for period size which is based on the buffer

Re: [Linux-kernel-mentees] [PATCH v3] media/v4l2-core: Fix kernel-infoleak in video_put_user()

2020-07-30 Thread Arnd Bergmann
On Thu, Jul 30, 2020 at 1:48 PM Andy Shevchenko wrote: > On Thu, Jul 30, 2020 at 11:18:04AM +0200, Arnd Bergmann wrote: > > The in_ia32_syscall() check should be completely reliable in telling whether > > we are called from read() by an ia32 task or not, and we use the same > > logic for

Re: [PATCH] KVM: arm64: Ensure that all nVHE hyp code is in .hyp.text

2020-07-30 Thread Marc Zyngier
On Thu, 30 Jul 2020 14:25:19 +0100, David Brazdil wrote: > Some compilers may put a subset of generated functions into '.text.*' > ELF sections and the linker may leverage this division to optimize ELF > layout. Unfortunately, the recently introduced HYPCOPY command assumes > that all executable

[PATCH] sched/core: add unlikely in group_has_capacity()

2020-07-30 Thread Qi Zheng
1. The group_has_capacity() function is only called in group_classify(). 2. Before calling the group_has_capacity() function, group_is_overloaded() will first judge the following formula, if it holds, the group_classify() will directly return the group_overloaded.

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