Re: [PATCH 0/6] Allow signals for IO threads

2021-04-01 Thread Linus Torvalds
On Thu, Apr 1, 2021 at 9:00 AM Stefan Metzmacher wrote: > > I haven't tried it, but it seems gdb tries to use PTRACE_PEEKUSR > against the last thread tid listed under /proc//tasks/ in order to > get the architecture for the userspace application Christ, what an odd hack. Why wouldn't it just do

[PATCH v17 15/17] RISC-V: KVM: Add SBI v0.1 support

2021-04-01 Thread Anup Patel
From: Atish Patra The KVM host kernel is running in HS-mode needs so we need to handle the SBI calls coming from guest kernel running in VS-mode. This patch adds SBI v0.1 support in KVM RISC-V. Almost all SBI v0.1 calls are implemented in KVM kernel module except GETCHAR and PUTCHART calls which

[GIT PULL] sound fixes for 5.12-rc6

2021-04-01 Thread Takashi Iwai
Linus, please pull sound fixes for v5.12-rc6 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.12-rc6 The topmost commit is 417eadfdd9e25188465280edf3668ed163fda2d0 sound fixes for 5.12-rc6 Thin

Re: [PATCH printk v2 3/5] printk: remove NMI tracking

2021-04-01 Thread Petr Mladek
On Tue 2021-03-30 17:35:10, John Ogness wrote: > All NMI contexts are handled the same as the safe context: store the > message and defer printing. There is no need to have special NMI > context tracking for this. Using in_nmi() is enough. > > Signed-off-by: John Ogness This is another great win

Re: [PATCH net] net: udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...);

2021-04-01 Thread David Ahern
On 4/1/21 12:59 AM, Norman Maurer wrote: > From: Norman Maurer > > Support for UDP_GRO was added in the past but the implementation for > getsockopt was missed which did lead to an error when we tried to > retrieve the setting for UDP_GRO. This patch adds the missing switch > case for UDP_GRO >

Re: [PATCH 12/13] KVM: x86/mmu: Fast invalidation for TDP MMU

2021-04-01 Thread Paolo Bonzini
On 01/04/21 18:50, Ben Gardon wrote: This is just cosmetic, but I'd prefer to keep the call to kvm_tdp_mmu_invalidate_roots at the original place, so that it's clear in the next patch that it's two separate parts because of the different locking requirements. I'm not sure exactly what you mean a

Re: [syzbot] WARNING in mntput_no_expire (2)

2021-04-01 Thread syzbot
syzbot has bisected this issue to: commit 73d90386b559d6f4c3c5db5e6bb1b68aae8fd3e7 Author: Damien Le Moal Date: Thu Jan 28 04:47:27 2021 + nvme: cleanup zone information initialization bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1440e986d0 start commit: d19cc4bf

[PATCH v17 04/17] RISC-V: KVM: Implement VCPU interrupts and requests handling

2021-04-01 Thread Anup Patel
This patch implements VCPU interrupts and requests which are both asynchronous events. The VCPU interrupts can be set/unset using KVM_INTERRUPT ioctl from user-space. In future, the in-kernel IRQCHIP emulation will use kvm_riscv_vcpu_set_interrupt() and kvm_riscv_vcpu_unset_interrupt() functions t

Re: [PATCH 07/13] KVM: x86/mmu: Make TDP MMU root refcount atomic

2021-04-01 Thread Ben Gardon
On Wed, Mar 31, 2021 at 3:22 PM Sean Christopherson wrote: > > On Wed, Mar 31, 2021, Ben Gardon wrote: > > In order to parallelize more operations for the TDP MMU, make the > > refcount on TDP MMU roots atomic, so that a future patch can allow > > multiple threads to take a reference on the root c

Re: [PATCH] ARM: OMAP: Fix use of possibly uninitialized irq variable

2021-04-01 Thread Nathan Chancellor
On Thu, Apr 01, 2021 at 06:11:27PM +0200, Maciej Falkowski wrote: > The current control flow of IRQ number assignment to `irq` variable > allows a request of IRQ of unspecified value, > generating a warning under Clang compilation with omap1_defconfig on > linux-next: > > arch/arm/mach-omap1/pm.c

Re: [PATCH v2 2/2] KVM: nSVM: improve SYSENTER emulation on AMD

2021-04-01 Thread Paolo Bonzini
On 01/04/21 17:31, Vitaly Kuznetsov wrote: + svm->sysenter_eip_hi = guest_cpuid_is_intel(vcpu) ? (data >> 32) : 0; (Personal taste) I'd suggest we keep the whole 'sysenter_eip'/'sysenter_esp' even if we only use the upper 32 bits of it. That would reduce the code churn a little bi

[PATCH v2 3/9] KVM: x86: implement KVM_CAP_SET_GUEST_DEBUG2

2021-04-01 Thread Maxim Levitsky
Store the supported bits into KVM_GUESTDBG_VALID_MASK macro, similar to how arm does this. Signed-off-by: Maxim Levitsky --- arch/x86/include/asm/kvm_host.h | 9 + arch/x86/kvm/x86.c | 2 ++ 2 files changed, 11 insertions(+) diff --git a/arch/x86/include/asm/kvm_host.h b/ar

[PATCH v1 2/2] iio: trigger: Fix strange (ladder-tupe) indentation

2021-04-01 Thread Andy Shevchenko
In some cases indentation looks a bit weird with starting from = sign and being in a ladder-type style. Unify it across the module. While at it, add blank line after definition block where it needed, Signed-off-by: Andy Shevchenko --- drivers/iio/industrialio-trigger.c | 25

[PATCH v17 14/17] RISC-V: KVM: Implement ONE REG interface for FP registers

2021-04-01 Thread Anup Patel
From: Atish Patra Add a KVM_GET_ONE_REG/KVM_SET_ONE_REG ioctl interface for floating point registers such as F0-F31 and FCSR. This support is added for both 'F' and 'D' extensions. Signed-off-by: Atish Patra Signed-off-by: Anup Patel Acked-by: Paolo Bonzini Reviewed-by: Paolo Bonzini Reviewe

[PATCH 3/9] sched: Trivial core scheduling cookie management

2021-04-01 Thread Peter Zijlstra
In order to not have to use pid_struct, create a new, smaller, structure to manage task cookies for core scheduling. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/sched.h |6 ++ kernel/fork.c |1 kernel/sched/Makefile |1 kernel/sched/core.c |

[PATCH v17 08/17] RISC-V: KVM: Handle WFI exits for VCPU

2021-04-01 Thread Anup Patel
We get illegal instruction trap whenever Guest/VM executes WFI instruction. This patch handles WFI trap by blocking the trapped VCPU using kvm_vcpu_block() API. The blocked VCPU will be automatically resumed whenever a VCPU interrupt is injected from user-space or from in-kernel IRQCHIP emulation.

Re: [PATCH v4 4/6] dt-bindings: PCI: Add SiFive FU740 PCIe host controller

2021-04-01 Thread Rob Herring
On Thu, Apr 01, 2021 at 02:00:52PM +0800, Greentime Hu wrote: > Add PCIe host controller DT bindings of SiFive FU740. > > Signed-off-by: Greentime Hu > --- > .../bindings/pci/sifive,fu740-pcie.yaml | 109 ++ > 1 file changed, 109 insertions(+) > create mode 100644 > Docum

[PATCH v17 10/17] RISC-V: KVM: Implement stage2 page table programming

2021-04-01 Thread Anup Patel
This patch implements all required functions for programming the stage2 page table for each Guest/VM. At high-level, the flow of stage2 related functions is similar from KVM ARM/ARM64 implementation but the stage2 page table format is quite different for KVM RISC-V. [jiangyifei: stage2 dirty log

[PATCH 30/30] media: atmel: atmel-isc: add microchip-xisc driver

2021-04-01 Thread Eugen Hristev
Add driver for the extended variant of the isc, the microchip XISC present on sama7g5 product. Signed-off-by: Eugen Hristev --- drivers/media/platform/Makefile | 1 + drivers/media/platform/atmel/Kconfig | 11 + drivers/media/platform/atmel/Makefile | 2 + dri

[PATCH 07/30] media: atmel: atmel-isc-base: add id to clock debug message

2021-04-01 Thread Eugen Hristev
Add the clock id to the debug message regarding clock setup Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-isc-base.c b/drivers/media/platform/atmel/atmel-i

[PATCH 27/30] media: atmel: atmel-isc-base: add support for more formats and additional pipeline modules

2021-04-01 Thread Eugen Hristev
Add support for additional formats supported by newer pipelines, and for additional pipeline modules. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 48 +++ 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/drivers/media/platform/at

[PATCH 11/30] media: atmel: atmel-isc: add SUB422 and SUB420 to register offsets

2021-04-01 Thread Eugen Hristev
Add sub420 and sub422 to the reg offsets struct. This will allow different products to have a different reg offset for these particular modules. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 4 ++-- drivers/media/platform/atmel/atmel-isc-regs.h| 4

[PATCH v2 2/6] clk: at91: pmc: execute suspend/resume only for backup mode

2021-04-01 Thread Claudiu Beznea
Before going to backup mode architecture specific PM code sets the first word in securam (and it will be cleared in a subsequent commit for the rest of power saving modes). Thus take this into account when suspending/resuming clocks. This will avoid executing unnecessary instructions when suspendin

[PATCH v17 13/17] RISC-V: KVM: FP lazy save/restore

2021-04-01 Thread Anup Patel
From: Atish Patra This patch adds floating point (F and D extension) context save/restore for guest VCPUs. The FP context is saved and restored lazily only when kernel enter/exits the in-kernel run loop and not during the KVM world switch. This way FP save/restore has minimal impact on KVM perfor

[PATCH 09/30] media: atmel: atmel-isc: extract CBC submodule config into separate function

2021-04-01 Thread Eugen Hristev
The CBC submodule should be initialized in the product specific driver as it's product specific. Other products can implement it differently Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 4 +--- drivers/media/platform/atmel/atmel-isc.h | 3 +++ drive

RE: [PATCH V4 05/18] iommu/ioasid: Redefine IOASID set and allocation APIs

2021-04-01 Thread Liu, Yi L
> From: Jean-Philippe Brucker > Sent: Thursday, April 1, 2021 8:05 PM [...] > > Also wondering about: > > * Querying IOMMU nesting capabilities before binding page tables (which > page table formats are supported?). We were planning to have a VFIO cap, > but I'm guessing we need to go back t

[PATCH v17 11/17] RISC-V: KVM: Implement MMU notifiers

2021-04-01 Thread Anup Patel
This patch implements MMU notifiers for KVM RISC-V so that Guest physical address space is in-sync with Host physical address space. This will allow swapping, page migration, etc to work transparently with KVM RISC-V. Signed-off-by: Anup Patel Acked-by: Paolo Bonzini Reviewed-by: Paolo Bonzini

Re: [PATCH 24/32] MAINTAINERS: update imi,rdacm2x-gmsl.yaml reference

2021-04-01 Thread Kieran Bingham
Hi Mauro, On 01/04/2021 13:17, Mauro Carvalho Chehab wrote: > The file name: Documentation/devicetree/bindings/media/i2c/rdacm2x-gmsl.yaml > should be, instead: > Documentation/devicetree/bindings/media/i2c/imi,rdacm2x-gmsl.yaml. > > Update its cross-reference accordingly. > > Fixes: 34009bffc1

[PATCH v17 17/17] RISC-V: KVM: Add MAINTAINERS entry

2021-04-01 Thread Anup Patel
Add myself as maintainer for KVM RISC-V and Atish as designated reviewer. Signed-off-by: Atish Patra Signed-off-by: Anup Patel Acked-by: Paolo Bonzini Reviewed-by: Paolo Bonzini Reviewed-by: Alexander Graf --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINT

[PATCH v17 05/17] RISC-V: KVM: Implement KVM_GET_ONE_REG/KVM_SET_ONE_REG ioctls

2021-04-01 Thread Anup Patel
For KVM RISC-V, we use KVM_GET_ONE_REG/KVM_SET_ONE_REG ioctls to access VCPU config and registers from user-space. We have three types of VCPU registers: 1. CONFIG - these are VCPU config and capabilities 2. CORE - these are VCPU general purpose registers 3. CSR- these are VCPU control and s

[PATCH v8 12/13] media: hantro: IMX8M: add variant for G2/HEVC codec

2021-04-01 Thread Benjamin Gaignard
Add variant to IMX8M to enable G2/HEVC codec. Define the capabilities for the hardware up to 3840x2160. G2 doesn't have postprocessor, use the same clocks and got it own interruption. Signed-off-by: Benjamin Gaignard Reviewed-by: Philipp Zabel Reviewed-by: Ezequiel Garcia --- version 8: - Add

[PATCH] cifsd: use kfree to free memory allocated by kzalloc

2021-04-01 Thread Muhammad Usama Anjum
kfree should be used to free memory allocated by kzalloc to avoid any overhead and for maintaining consistency. Fixes: 5dfeb6d945 ("cifsd: use kmalloc() for small allocations") Signed-off-by: Muhammad Usama Anjum --- This one place was left in earlier patch. I've already received responsse on tha

Re: [syzbot] BUG: unable to handle kernel paging request in bpf_trace_run2

2021-04-01 Thread syzbot
syzbot suspects this issue was fixed by commit: commit befe6d946551d65cddbd32b9cb0170b0249fd5ed Author: Steven Rostedt (VMware) Date: Wed Nov 18 14:34:05 2020 + tracepoint: Do not fail unregistering a probe due to memory failure bisection log: https://syzkaller.appspot.com/x/bisect.t

[PATCH -next] iocost: remove redundant semi-colon

2021-04-01 Thread Yang Yingliang
Signed-off-by: Yang Yingliang --- include/trace/events/iocost.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/trace/events/iocost.h b/include/trace/events/iocost.h index e282ce02fa2d..6d1626e7a4ce 100644 --- a/include/trace/events/iocost.h +++ b/include/trace/events/

[PATCH 22/30] media: atmel: atmel-isc: create callback for GAM submodule product specific

2021-04-01 Thread Eugen Hristev
Create a product specific callback for initializing the GAM submodule of the pipeline. For sama5d2 product, there is no special configuration at this moment, thus this function is a noop. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 1 + drivers/media/platf

[PATCH 26/30] media: atmel: atmel-isc-regs: add additional fields for sama7g5 type pipeline

2021-04-01 Thread Eugen Hristev
Add additional fields for registers present in sama7g5 type pipeline. Extend register masks for additional bits in sama7g5 type pipeline registers. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-regs.h | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(

[PATCH v2 4/6] clk: at91: clk-master: add register definition for sama7g5's master clock

2021-04-01 Thread Claudiu Beznea
Add register definitions for SAMA7G5's master clock. These would be also used by architecture specific power saving code. With this, update also clk-master.c. Signed-off-by: Claudiu Beznea --- drivers/clk/at91/clk-master.c | 50 --- include/linux/clk/at91_pmc.h |

Re: [PATCH v1] ovl: Fix leaked dentry

2021-04-01 Thread Vivek Goyal
On Mon, Mar 29, 2021 at 06:49:07PM +0200, Mickaël Salaün wrote: > From: Mickaël Salaün > > Since commit 6815f479ca90 ("ovl: use only uppermetacopy state in > ovl_lookup()"), overlayfs doesn't put temporary dentry when there is a > metacopy error, which leads to dentry leaks when shutting down the

Re: [PATCH V2 2/5] soc: qcom: dcc: Add driver support for Data Capture and Compare unit(DCC)

2021-04-01 Thread schowdhu
On 2021-03-30 01:35, Stephen Boyd wrote: Quoting Souradeep Chowdhury (2021-03-25 01:02:33) The DCC is a DMA Engine designed to capture and store data during system crash or software triggers.The DCC operates based on user inputs via the sysfs interface.The user gives addresses as inputs and thes

[PATCH v2 0/6] clk: at91: updates for power management and dvfs

2021-04-01 Thread Claudiu Beznea
Hi, This series addresses the power management for SAMA7G5 and also updates the master clock prescaller and master clock divider drivers to accommodate the requests at [1]. The power management part is implemented by adding save_context()/restore_context() on each clock driver (patch 1/6). Since

[PATCH 10/30] media: atmel: atmel-isc: add CBC to the reg offsets struct

2021-04-01 Thread Eugen Hristev
Add cbc to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 2 +- drivers/media/platform/atmel/atmel-isc-regs.h| 3 +++ drivers/media/platf

Re: [syzbot] WARNING in mntput_no_expire (2)

2021-04-01 Thread Christian Brauner
On Thu, Apr 01, 2021 at 07:46:13PM +0200, Christian Brauner wrote: > On Thu, Apr 01, 2021 at 10:09:18AM -0600, Jens Axboe wrote: > > On 4/1/21 9:45 AM, Christian Brauner wrote: > > > On Thu, Apr 01, 2021 at 02:09:20AM -0700, syzbot wrote: > > >> Hello, > > >> > > >> syzbot found the following issue

[PATCH 06/30] media: atmel: atmel-isc: extract CSC submodule config into separate function

2021-04-01 Thread Eugen Hristev
The CSC submodule should be initialized in the product specific driver as it's product specific. Other products can implement it differently. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 8 +--- drivers/media/platform/atmel/atmel-isc.h | 7 +++

[PATCH v17 06/17] RISC-V: KVM: Implement VCPU world-switch

2021-04-01 Thread Anup Patel
This patch implements the VCPU world-switch for KVM RISC-V. The KVM RISC-V world-switch (i.e. __kvm_riscv_switch_to()) mostly switches general purpose registers, SSTATUS, STVEC, SSCRATCH and HSTATUS CSRs. Other CSRs are switched via vcpu_load() and vcpu_put() interface in kvm_arch_vcpu_load() and

Re: [PATCH v5 04/10] coresight: etm-perf: update to handle configuration selection

2021-04-01 Thread Mike Leach
Hi Mathieu, On Wed, 31 Mar 2021 at 21:49, Mathieu Poirier wrote: > > On Tue, Mar 16, 2021 at 06:03:54PM +, Mike Leach wrote: > > Loaded coresight configurations are registered in the cs_etm\cs_config sub > > This changelog is obsolete - cs_config is no longer under cs_etm. > Agreed. > > dire

[PATCH v17 07/17] RISC-V: KVM: Handle MMIO exits for VCPU

2021-04-01 Thread Anup Patel
We will get stage2 page faults whenever Guest/VM access SW emulated MMIO device or unmapped Guest RAM. This patch implements MMIO read/write emulation by extracting MMIO details from the trapped load/store instruction and forwarding the MMIO read/write to user-space. The actual MMIO emulation will

[PATCH v2] Revert "usb: dwc3: gadget: Prevent EP queuing while stopping transfers"

2021-04-01 Thread Martin Kepplinger
commit 9de47c ("usb: dwc3: gadget: Prevent EP queuing while stopping transfers") results in the below error every time I connect the type-c connector to the dwc3, configured with serial and ethernet gadgets. I also apply the following to dwc3 on this port: dr_mode = "otg";

Re: [PATCH] drivers core: don't do anything in device_del() when device_add() fail

2021-04-01 Thread Rafael J. Wysocki
On Thu, Apr 1, 2021 at 2:56 PM Yufen Yu wrote: > > Recently, our syzbot test reported NULL pointer dereference in > device_del() by injecting memory allocation fail in device_add(). > > For now, callers of device_add(), such as add_disk(), may ignore > device_add()'s fail and go on working. In unr

Re: [PATCH RESEND 0/3] x86/sgx: eextend ioctl

2021-04-01 Thread Jethro Beekman
On 2021-04-01 18:11, Dave Hansen wrote: > On 4/1/21 7:56 AM, Raoul Strackx wrote: >> >> SOLUTION OF THIS PATCH >> This patch adds a new ioctl to enable userspace to execute EEXTEND leaf >> functions per 256 bytes of enclave memory. This enables enclaves to be >> build as specified by enclave prov

[PATCH v17 03/17] RISC-V: KVM: Implement VCPU create, init and destroy functions

2021-04-01 Thread Anup Patel
This patch implements VCPU create, init and destroy functions required by generic KVM module. We don't have much dynamic resources in struct kvm_vcpu_arch so these functions are quite simple for KVM RISC-V. Signed-off-by: Anup Patel Acked-by: Paolo Bonzini Reviewed-by: Paolo Bonzini Reviewed-by

[PATCH v8 05/13] media: hevc: Add decode params control

2021-04-01 Thread Benjamin Gaignard
Add decode params control and it associated structure to regroup all the information that are needed to decode a reference frame as it is describe in ITU-T Rec. H.265 section "8.3.2 Decoding process for reference picture set". Adapt Cedrus driver to these changes. Signed-off-by: Benjamin Gaignard

[PATCH -next] KVM: selftests: remove redundant semi-colon

2021-04-01 Thread Yang Yingliang
Signed-off-by: Yang Yingliang --- tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c b/tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c index 804ff5ff022d..1f4a0599683c

Re: [PATCH net-next] net: document a side effect of ip_local_reserved_ports

2021-04-01 Thread Eric Dumazet
On Thu, Apr 1, 2021 at 5:58 PM Otto Hollmann wrote: > > If there is overlapp between ip_local_port_range and > ip_local_reserved_ports with a huge reserved block, it will affect > probability of selecting ephemeral ports, see file > net/ipv4/inet_hashtables.c:723 > > int __inet_hash_con

[PATCH v17 09/17] RISC-V: KVM: Implement VMID allocator

2021-04-01 Thread Anup Patel
We implement a simple VMID allocator for Guests/VMs which: 1. Detects number of VMID bits at boot-time 2. Uses atomic number to track VMID version and increments VMID version whenever we run-out of VMIDs 3. Flushes Guest TLBs on all host CPUs whenever we run-out of VMIDs 4. Force updates HW S

[PATCH v2 6/9] KVM: x86: implement KVM_GUESTDBG_BLOCKEVENTS

2021-04-01 Thread Maxim Levitsky
KVM_GUESTDBG_BLOCKEVENTS is a guest debug feature that will allow KVM to block all interrupts while running. It is mostly intended to be used together with single stepping, to make it more robust, and has the following benefits: * Resuming from a breakpoint is much more reliable: When resuming e

Re: [PATCH v2 0/2] KVM: x86: nSVM: fixes for SYSENTER emulation

2021-04-01 Thread Paolo Bonzini
On 01/04/21 13:19, Maxim Levitsky wrote: This is a result of a deep rabbit hole dive in regard to why currently the nested migration of 32 bit guests is totally broken on AMD. It turns out that due to slight differences between the original AMD64 implementation and the Intel's remake, SYSENTER i

[PATCH v2 4/9] KVM: aarch64: implement KVM_CAP_SET_GUEST_DEBUG2

2021-04-01 Thread Maxim Levitsky
Move KVM_GUESTDBG_VALID_MASK to kvm_host.h and use it to return the value of this capability. Compile tested only. Signed-off-by: Maxim Levitsky --- arch/arm64/include/asm/kvm_host.h | 4 arch/arm64/kvm/arm.c | 2 ++ arch/arm64/kvm/guest.c| 5 - 3 files changed,

[PATCH 19/30] media: atmel: atmel-isc: add CC initialization function

2021-04-01 Thread Eugen Hristev
Implement the color correction (CC) submodule initialization, as a product specific function, which currently configures the neutral point in color correction. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 1 + drivers/media/platform/atmel/atmel-isc.h

[PATCH 05/30] media: atmel: atmel-isc: specialize dma cfg

2021-04-01 Thread Eugen Hristev
The dma configuration (DCFG) is specific to the product. Move this configuration in the product specific driver, and add the field inside the driver struct. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 3 +-- drivers/media/platform/atmel/atmel-isc.h

[PATCH 23/30] media: atmel: atmel-isc: create callback for RLP submodule product specific

2021-04-01 Thread Eugen Hristev
Create a product specific callback for initializing the RLP submodule of the pipeline Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 6 ++ drivers/media/platform/atmel/atmel-isc.h | 3 +++ drivers/media/platform/atmel/atmel-sama5d2-isc.c | 10 ++

Re: [PATCH v5 (RESEND) 5/7] regulator: hi6421v600-regulator: move it from staging

2021-04-01 Thread Mark Brown
On Thu, Mar 25, 2021 at 07:05:37PM +0100, Mauro Carvalho Chehab wrote: > This driver is ready for mainstream. Move it out of staging. Acked-by: Mark Brown signature.asc Description: PGP signature

[PATCH v2 9/9] KVM: SVM: implement force_intercept_exceptions_mask

2021-04-01 Thread Maxim Levitsky
Currently #TS interception is only done once. Also exception interception is not enabled for SEV guests. Signed-off-by: Maxim Levitsky --- arch/x86/include/asm/kvm_host.h | 2 + arch/x86/kvm/svm/svm.c | 70 + arch/x86/kvm/svm/svm.h | 6 ++- arc

[PATCH v2 5/6] clk: at91: clk-master: update for dvfs

2021-04-01 Thread Claudiu Beznea
SAMA7G5 supports CPU DVFS. The hardware block diagram for the clock system generating CPU clock is as follows: ++ +-->|divider1|--> CPU clock | ++ ++ +--+ | ++ |CPU P

Re: [PATCH 2/8] kernel: unmask SIGSTOP for IO threads

2021-04-01 Thread Stefan Metzmacher
Hi Jens, >>> I don't assume signals wanted by userspace should potentially handled in an >>> io_thread... >>> e.g. things set with fcntl(fd, F_SETSIG,) used together with F_SETLEASE? >> >> I guess we do actually need it, if we're not fiddling with >> wants_signal() for them. To quell Oleg's conce

Re: [PATCH v2 3/4] MIPS: uaccess: Remove get_fs/set_fs call sites

2021-04-01 Thread Thomas Bogendoerfer
On Thu, Apr 01, 2021 at 08:30:55AM +0200, Christoph Hellwig wrote: > On Wed, Mar 31, 2021 at 01:56:00PM +0200, Thomas Bogendoerfer wrote: > > +#define __get_user_nofault(dst, src, type, err_label) > > \ > > +do {

Re: [PATCH] iio: adc: bcm_iproc_adc: Use %s and __func__

2021-04-01 Thread Mugilraj D
On 01/04/21 4:00 pm, Jonathan Cameron wrote: > On Thu, 1 Apr 2021 12:24:50 +0300 > Andy Shevchenko wrote: > >> On Thu, Apr 1, 2021 at 9:27 AM Mugilraj Dhavachelvan >> wrote: >>> >>> Change function's name to %s and __func__ to fix checkpatch.pl errors. >> >> No, just drop the __func__ compl

[PATCH v17 02/17] RISC-V: Add initial skeletal KVM support

2021-04-01 Thread Anup Patel
This patch adds initial skeletal KVM RISC-V support which has: 1. A simple implementation of arch specific VM functions except kvm_vm_ioctl_get_dirty_log() which will implemeted in-future as part of stage2 page loging. 2. Stubs of required arch specific VCPU functions except kvm_arch_vcpu_

Re: [PATCH printk v2 2/5] printk: remove safe buffers

2021-04-01 Thread John Ogness
On 2021-04-01, Petr Mladek wrote: >> --- a/kernel/printk/printk.c >> +++ b/kernel/printk/printk.c >> @@ -1142,24 +1128,37 @@ void __init setup_log_buf(int early) >> new_descs, ilog2(new_descs_count), >> new_infos); >> >> -printk_safe_enter_irqsave(flags); >> +

[PATCH net-next 0/2] Enable 2.5Gbps speed for stmmac

2021-04-01 Thread Michael Sit Wei Hong
This patchset enables 2.5Gbps speed mode for stmmac. Link speed mode is detected and configured at serdes power up sequence. For 2.5G, we do not use SGMII in-band AN, we check the link speed mode in the serdes and disable the in-band AN accordingly. iperf3 and ping for 2.5Gbps and regression test

Re: [Outreachy kernel] [PATCH 1/2] staging: media: omap4iss: Ending line with argument

2021-04-01 Thread Matthew Wilcox
On Thu, Apr 01, 2021 at 04:07:38PM +0100, Beatriz Martins de Carvalho wrote: > diff --git a/drivers/staging/media/omap4iss/iss.c > b/drivers/staging/media/omap4iss/iss.c > index dae9073e7d3c..e8f724dbf810 100644 > --- a/drivers/staging/media/omap4iss/iss.c > +++ b/drivers/staging/media/omap4iss/is

[PATCH net-next 2/2] net: pcs: configure xpcs 2.5G speed mode

2021-04-01 Thread Michael Sit Wei Hong
From: Voon Weifeng Besides setting 2.5G configuration, this patch will also disable automatic speed mode change. This is due to the 2.5G mode is using the same functionality as 1G mode except the clock rate is 2.5 times the original rate. Hence, auto-negotiation is disabled to make sure it will o

REPLY ME URGENTLY

2021-04-01 Thread Elizabeth Edward
Greeting Please forgive me for stressing you with my predicaments and I sorry to approach you through this media it is because it serves the fastest means of communication. I came across your E-mail from my personal search and I decided to contact you believing you will be honest to fulfill my fin

[PATCH 29/30] media: atmel: atmel-isc-sama5d2: remove duplicate define

2021-04-01 Thread Eugen Hristev
Remove a duplicate definition of clock max divider Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-sama5d2-isc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-sama5d2-isc.c b/drivers/media/platform/atmel/atmel-sama5d2-isc.c index c56

[PATCH v1 1/2] iio: trigger: Replace explicit casting and wrong specifier with proper one

2021-04-01 Thread Andy Shevchenko
By unknown reason device name is set with an index casted from int to unsigned long while at the same time with "%ld" specifier. Both parts seems wrong to me, thus replace replace explicit casting and wrong specifier with proper one, i.e. "%u". Signed-off-by: Andy Shevchenko --- drivers/iio/indu

[PATCH v2 1/6] clk: at91: re-factor clocks suspend/resume

2021-04-01 Thread Claudiu Beznea
SAMA5D2 and SAMA7G5 have a special power saving mode (backup mode) where most of the SoC's components are powered off (including PMC). Resuming from this mode is done with the help of bootloader. Peripherals are not aware of the power saving mode thus most of them are disabling clocks in proper sus

[PATCH v2 1/9] scripts/gdb: rework lx-symbols gdb script

2021-04-01 Thread Maxim Levitsky
Fix several issues that are present in lx-symbols script: * Track module unloads by placing another software breakpoint at 'free_module' (force uninline this symbol just in case), and use remove-symbol-file gdb command to unload the symobls of the module that is unloading. That gives the

[PATCH 16/30] media: atmel: atmel-isc: add his_entry to register offsets

2021-04-01 Thread Eugen Hristev
Add his_entry to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 3 ++- drivers/media/platform/atmel/atmel-isc-regs.h| 2 ++ drivers/media

[PATCH 03/30] media: atmel: atmel-isc: add checks for limiting frame sizes

2021-04-01 Thread Eugen Hristev
When calling the subdev, certain subdev drivers will overwrite the frame size and adding sizes which are beyond the ISC's capabilities. Thus we need to ensure the frame size is cropped to the maximum caps. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 12 ++

[PATCH v2 7/8] cxl/port: Introduce cxl_port objects

2021-04-01 Thread Dan Williams
Once the cxl_root is established then other ports in the hierarchy can be attached. The cxl_port object, unlike cxl_root that is associated with host bridges, is associated with PCIE Root Ports or PCIE Switch Ports. Add cxl_port instances for all PCIE Root Ports in an ACPI0016 host bridge. The cxl_

linux-kernel@vger.kernel.org

2021-04-01 Thread Matthew Wilcox
On Wed, Mar 31, 2021 at 02:58:12PM -0700, Hugh Dickins wrote: > I suspect there's a bug in the XArray handling in collapse_file(), > which sometimes leaves empty nodes behind. Urp, yes, that can easily happen. /* This will be less messy when we use multi-index entries */ do {

[PATCH v2 8/9] KVM: x86: add force_intercept_exceptions_mask

2021-04-01 Thread Maxim Levitsky
This parameter will be used by VMX and SVM code to force interception of a set of exceptions, given by a bitmask for guest debug and/or kvm debug. This option is not intended for production. This is based on an idea first shown here: https://patchwork.kernel.org/project/kvm/patch/20160301192822.g

[PATCH v17 00/17] KVM RISC-V Support

2021-04-01 Thread Anup Patel
This series adds initial KVM RISC-V support. Currently, we are able to boot Linux on RV64/RV32 Guest with multiple VCPUs. Key aspects of KVM RISC-V added by this series are: 1. No RISC-V specific KVM IOCTL 2. Minimal possible KVM world-switch which touches only GPRs and few CSRs 3. Both RV64 and R

[PATCH v2 5/9] KVM: s390x: implement KVM_CAP_SET_GUEST_DEBUG2

2021-04-01 Thread Maxim Levitsky
Define KVM_GUESTDBG_VALID_MASK and use it to implement this capabiity. Compile tested only. Signed-off-by: Maxim Levitsky --- arch/s390/include/asm/kvm_host.h | 4 arch/s390/kvm/kvm-s390.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/arch/s390/include/asm/kvm_host.h b/arc

Re: [PATCH V2 1/8] dt-bindings: remoteproc: imx_rproc: add fsl, auto-boot property

2021-04-01 Thread Rob Herring
On Tue, 30 Mar 2021 17:12:47 +0800, peng@oss.nxp.com wrote: > From: Peng Fan > > Add an optional property "fsl,auto-boot" to indicate remote processor > auto boot. > > Signed-off-by: Peng Fan > --- > .../devicetree/bindings/remoteproc/fsl,imx-rproc.yaml | 6 ++ > 1 file changed,

Re: [PATCH] usb: isp1301-omap: Add missing gpiod_add_lookup_table function

2021-04-01 Thread Nathan Chancellor
On Thu, Apr 01, 2021 at 06:20:32PM +0200, Maciej Falkowski wrote: > The gpiod table was added without any usage making it unused > as reported by Clang compilation from omap1_defconfig on linux-next: > > arch/arm/mach-omap1/board-h2.c:347:34: warning: unused variable > 'isp1301_gpiod_table' [-Wun

[PATCH 4/9] sched: Default core-sched policy

2021-04-01 Thread Peter Zijlstra
Implement default core scheduling policy. - fork() / clone(): inherit cookie from parent - exec(): if cookie then new cookie Did that exec() thing want to change cookie on suid instead, just like perf_event_exit_task() ? Note that sched_core_fork() is called from under tasklist_lock, and not f

RE: [PATCH net-next v4 0/6] stmmac: Add XDP support

2021-04-01 Thread Song, Yoong Siang
> Hi, > > This is the v4 patch series for adding XDP native support to stmmac. > > Changes in v4: > 5/6: Move TX clean timer setup to the end of NAPI RX process and > group it under stmmac_finalize_xdp_rx(). > Also, fixed stmmac_xdp_xmit_back() returns STMMAC_XDP_CONSUMED > if XDP

[PATCH v8 00/13] Add HANTRO G2/HEVC decoder support for IMX8MQ

2021-04-01 Thread Benjamin Gaignard
The IMX8MQ got two VPUs but until now only G1 has been enabled. This series aim to add the second VPU (aka G2) and provide basic HEVC decoding support. To be able to decode HEVC it is needed to add/update some of the structures in the uapi. In addition of them one HANTRO dedicated control is requ

[PATCH v2 2/9] KVM: introduce KVM_CAP_SET_GUEST_DEBUG2

2021-04-01 Thread Maxim Levitsky
This capability will allow the user to know which KVM_GUESTDBG_* bits are supported. Signed-off-by: Maxim Levitsky --- Documentation/virt/kvm/api.rst | 3 +++ include/uapi/linux/kvm.h | 1 + 2 files changed, 4 insertions(+) diff --git a/Documentation/virt/kvm/api.rst b/Documentation/virt/

Re: [PATCH] PCI: merge slot and bus reset implementations

2021-04-01 Thread Alex Williamson
On Thu, 1 Apr 2021 15:27:37 +0300 Leon Romanovsky wrote: > On Thu, Apr 01, 2021 at 05:37:16AM +, Raphael Norwitz wrote: > > Slot resets are bus resets with additional logic to prevent a device > > from being removed during the reset. Currently slot and bus resets have > > separate implementat

[PATCH v4 3/4] cxl/mem: Do not rely on device_add() side effects for dev_set_name() failures

2021-04-01 Thread Dan Williams
While device_add() will happen to catch dev_set_name() failures it is a broken pattern to follow given that the core may try to fall back to a different name. Add explicit checking for dev_set_name() failures to be cleaned up by put_device(). Skip cdev_device_add() and proceed directly to put_devi

[PATCH] ASoC: topology: fix typo error about asoc.h

2021-04-01 Thread samirweng1979
From: wengjianfeng change 'freqency' to 'frequecy' Signed-off-by: wengjianfeng --- include/uapi/sound/asoc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/sound/asoc.h b/include/uapi/sound/asoc.h index da61398..0066eee 100644 --- a/include/uapi/sound/asoc

Re: Fix hibernation in FIPS mode?

2021-04-01 Thread Chris von Recklinghausen
On 4/1/21 9:38 AM, Rafael J. Wysocki wrote: On Thu, Apr 1, 2021 at 10:47 AM Ard Biesheuvel wrote: On Tue, 30 Mar 2021 at 21:56, Simo Sorce wrote: On Tue, 2021-03-30 at 21:45 +0200, Ard Biesheuvel wrote: On Tue, 30 Mar 2021 at 20:05, Simo Sorce wrote: On Tue, 2021-03-30 at 16:46 +0200, Rafa

[PATCH 14/30] media: atmel: atmel-isc: add DMA to register offsets

2021-04-01 Thread Eugen Hristev
Add dma to the reg offsets struct. This will allow different products to have a different reg offset for this particular module. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c | 19 --- drivers/media/platform/atmel/atmel-isc-regs.h | 3 +++ driver

[PATCH 15/30] media: atmel: atmel-isc: add support for version register

2021-04-01 Thread Eugen Hristev
Add support for version register and print it at probe time. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-regs.h| 5 + drivers/media/platform/atmel/atmel-isc.h | 2 ++ drivers/media/platform/atmel/atmel-sama5d2-isc.c | 5 + 3 files changed, 12 inser

Re: [PATCH 1/3] arm64: dts: xilinx: Add the clock nodes for zynqmp

2021-04-01 Thread Michal Simek
Hi Jan, On 3/27/21 8:55 PM, Jan Kiszka wrote: > On 07.11.19 10:44, Rajan Vaja wrote: >> Add clock nodes for zynqmp based on CCF. >> >> Signed-off-by: Rajan Vaja >> --- >> arch/arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi | 222 >> + >> arch/arm64/boot/dts/xilinx/zynqmp-zc12

[PATCH v2 0/2] Tow minor changes of eMMC sanitize

2021-04-01 Thread Bean Huo
From: Bean Huo Changelog: V1--V2: 1. change wrong nouns in patch 1/2 commit message Bean Huo (2): mmc: core: Let sanitize timeout readable/writable via sysfs mmc: core: Let sanitize not retry in case timeout drivers/mmc/core/block.c | 13 +++--- drivers/mmc/core/mmc.c | 81 ++

[PATCH v1 1/1] driver core: Replace printf() specifier and drop unneeded casting

2021-04-01 Thread Andy Shevchenko
The size_t type has very well established specifier, i.e. "%zu", use it directly instead of casting to unsigned long with "%lu". Signed-off-by: Andy Shevchenko --- drivers/base/devres.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/devres.c b/drivers/base/d

[PATCH v2 0/9] KVM: my debug patch queue

2021-04-01 Thread Maxim Levitsky
Hi! I would like to publish two debug features which were needed for other stuff I work on. One is the reworked lx-symbols script which now actually works on at least gdb 9.1 (gdb 9.2 was reported to fail to load the debug symbols from the kernel for some reason, not related to this patch) and up

[PATCH v4 1/4] cxl/mem: Use sysfs_emit() for attribute show routines

2021-04-01 Thread Dan Williams
While none the CXL sysfs attributes are threatening to overrun a PAGE_SIZE of output, it is good form to use the recommended helpers. Fixes: b39cb1052a5c ("cxl/mem: Register CXL memX devices") Reported-by: Jason Gunthorpe Reviewed-by: Ben Widawsky Reviewed-by: Jason Gunthorpe Signed-off-by: Dan

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