[PATCH v7 59/72] x86/sev-es: Handle VMMCALL Events

2020-09-07 Thread Joerg Roedel
From: Tom Lendacky Implement a handler for #VC exceptions caused by VMMCALL instructions. This patch is only a starting point, VMMCALL emulation under SEV-ES needs further hypervisor-specific changes to provide additional state. Signed-off-by: Tom Lendacky [ jroe...@suse.de: Adapt to #VC handli

[PATCH v7 60/72] x86/sev-es: Handle #AC Events

2020-09-07 Thread Joerg Roedel
From: Joerg Roedel Implement a handler for #VC exceptions caused by #AC exceptions. The #AC exception is just forwarded to do_alignment_check() and not pushed down to the hypervisor, as requested by the SEV-ES GHCB Standardization Specification. Signed-off-by: Joerg Roedel --- arch/x86/kernel/

[PATCH v7 71/72] x86/efi: Add GHCB mappings when SEV-ES is active

2020-09-07 Thread Joerg Roedel
From: Tom Lendacky Calling down to EFI runtime services can result in the firmware performing VMGEXIT calls. The firmware is likely to use the GHCB of the OS (e.g., for setting EFI variables), so each GHCB in the system needs to be identity mapped in the EFI page tables, as unencrypted, to avoid

[PATCH v7 58/72] x86/sev-es: Handle MWAIT/MWAITX Events

2020-09-07 Thread Joerg Roedel
From: Tom Lendacky Implement a handler for #VC exceptions caused by MWAIT and MWAITX instructions. Signed-off-by: Tom Lendacky [ jroe...@suse.de: Adapt to #VC handling infrastructure ] Co-developed-by: Joerg Roedel Signed-off-by: Joerg Roedel --- arch/x86/kernel/sev-es.c | 10 ++ 1 f

[PATCH v7 62/72] x86/paravirt: Allow hypervisor specific VMMCALL handling under SEV-ES

2020-09-07 Thread Joerg Roedel
From: Joerg Roedel Add two new paravirt callbacks to provide hypervisor specific processor state in the GHCB and to copy state from the hypervisor back to the processor. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/x86_init.h | 16 +++- arch/x86/kernel/sev-es.c| 12

[PATCH v7 72/72] x86/sev-es: Check required CPU features for SEV-ES

2020-09-07 Thread Joerg Roedel
From: Martin Radev Make sure the machine supports RDRAND, otherwise there is no trusted source of of randomness in the system. To also check this in the pre-decompression stage, make has_cpuflag not depend on CONFIG_RANDOMIZE_BASE anymore. Signed-off-by: Martin Radev Signed-off-by: Joerg Roede

[PATCH v7 61/72] x86/sev-es: Handle #DB Events

2020-09-07 Thread Joerg Roedel
From: Joerg Roedel Handle #VC exceptions caused by #DB exceptions in the guest. Those must be handled outside of instrumentation_begin()/end() so that the handler will not be raised recursively. Handle them by calling the kernels debug exception handler. Signed-off-by: Joerg Roedel --- arch/x

[PATCH v7 63/72] x86/kvm: Add KVM specific VMMCALL handling under SEV-ES

2020-09-07 Thread Joerg Roedel
From: Tom Lendacky Implement the callbacks to copy the processor state required by KVM to the GHCB. Signed-off-by: Tom Lendacky [ jroe...@suse.de: - Split out of a larger patch - Adapt to different callback functions ] Co-developed-by: Joerg Roedel Signed-off-by: Joerg Roede

[PATCH v7 66/72] x86/realmode: Setup AP jump table

2020-09-07 Thread Joerg Roedel
From: Tom Lendacky As part of the GHCB specification, the booting of APs under SEV-ES requires an AP jump table when transitioning from one layer of code to another (e.g. when going from UEFI to the OS). As a result, each layer that parks an AP must provide the physical address of an AP jump tabl

[PATCH v7 67/72] x86/smpboot: Load TSS and getcpu GDT entry before loading IDT

2020-09-07 Thread Joerg Roedel
From: Joerg Roedel The IDT on 64bit contains vectors which use paranoid_entry() and/or IST stacks. To make these vectors work the TSS and the getcpu GDT entry need to be set up before the IDT is loaded. Signed-off-by: Joerg Roedel --- arch/x86/include/asm/processor.h | 1 + arch/x86/kernel/cp

Paid Post

2020-09-07 Thread Edward Blackford
Hi! Hope you are having a great day! I have come across your site, and I strongly feel that your website is a perfect match for us. We are a content marketing agency, and we’d be thrilled if you’d allow us to post relevant and non-promotional content on your website. You can help us by placing

[PATCH v7 56/72] x86/sev-es: Handle INVD Events

2020-09-07 Thread Joerg Roedel
From: Tom Lendacky Implement a handler for #VC exceptions caused by INVD instructions. Since Linux should never use INVD, just mark it as unsupported. Signed-off-by: Tom Lendacky [ jroe...@suse.de: Adapt to #VC handling infrastructure ] Co-developed-by: Joerg Roedel Signed-off-by: Joerg Roedel

RE: [PATCH net-next] net: xilinx: remove redundant null check before clk_disable_unprepare()

2020-09-07 Thread Radhey Shyam Pandey
> -Original Message- > From: Zhang Changzhong > Sent: Monday, September 7, 2020 6:32 PM > To: Radhey Shyam Pandey ; da...@davemloft.net; > k...@kernel.org; Michal Simek > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: [PATCH net-next] net: xilinx: remove redundant nul

[PATCH v7 69/72] x86/sev-es: Support CPU offline/online

2020-09-07 Thread Joerg Roedel
From: Joerg Roedel Add a play_dead handler when running under SEV-ES. This is needed because the hypervisor can't deliver an SIPI request to restart the AP. Instead the kernel has to issue a VMGEXIT to halt the VCPU until the hypervisor wakes it up again. Signed-off-by: Joerg Roedel --- arch/x

Re: [PATCH 8/9] perf test: Free aliases for PMU event map aliases test

2020-09-07 Thread Namhyung Kim
Hello, On Mon, Sep 7, 2020 at 7:31 PM John Garry wrote: > > On 07/09/2020 04:45, Namhyung Kim wrote: > > The aliases were never released causing the following leaks: > > > >Indirect leak of 1224 byte(s) in 9 object(s) allocated from: > > #0 0x7feefb830628 in malloc > > (/lib/x86_64-linu

Re: [RESEND PATCH v12 2/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC

2020-09-07 Thread Miquel Raynal
Hi Murugan, A few more comments below, but I guess the driver looks better now. > +struct ebu_nand_controller { > + struct nand_controller controller; > + struct nand_chip chip; > + struct device *dev; > + void __iomem *ebu; > + void __iomem *hsnand; > + struct dma_chan *d

[PATCH RFC 00/10] KFENCE: A low-overhead sampling-based memory safety error detector

2020-09-07 Thread Marco Elver
This adds the Kernel Electric-Fence (KFENCE) infrastructure. KFENCE is a low-overhead sampling-based memory safety error detector of heap use-after-free, invalid-free, and out-of-bounds access errors. This series enables KFENCE for the x86 and arm64 architectures, and adds KFENCE hooks to the SLAB

[BUG]: KVM: arm64: Fix symbol dependency in __hyp_call_panic_nvhe

2020-09-07 Thread H. Nikolaus Schaller
Hi, it seems as if your patch 34f379956e9d7 ("KVM: arm64: Fix symbol dependency in __hyp_call_panic_nvhe") [ Upstream commit b38b298aa4397e2dc74a89b4dd3eac9e59b64c96 ] fails to compile in v5.8.7 for me (using an aarch64 gcc 4.9 cross-toolchain to try to build a kernel for the PinePhone): CC

[PATCH RFC 05/10] mm, kfence: insert KFENCE hooks for SLUB

2020-09-07 Thread Marco Elver
From: Alexander Potapenko Inserts KFENCE hooks into the SLUB allocator. We note the addition of the 'orig_size' argument to slab_alloc*() functions, to be able to pass the originally requested size to KFENCE. When KFENCE is disabled, there is no additional overhead, since these functions are __a

[PATCH RFC 02/10] x86, kfence: enable KFENCE for x86

2020-09-07 Thread Marco Elver
From: Alexander Potapenko Add architecture specific implementation details for KFENCE and enable KFENCE for the x86 architecture. In particular, this implements the required interface in for setting up the pool and providing helper functions for protecting and unprotecting pages. For x86, we ne

[PATCH RFC 06/10] kfence, kasan: make KFENCE compatible with KASAN

2020-09-07 Thread Marco Elver
From: Alexander Potapenko We make KFENCE compatible with KASAN for testing KFENCE itself. In particular, KASAN helps to catch any potential corruptions to KFENCE state, or other corruptions that may be a result of freepointer corruptions in the main allocators. To indicate that the combination o

[PATCH RFC 01/10] mm: add Kernel Electric-Fence infrastructure

2020-09-07 Thread Marco Elver
From: Alexander Potapenko This adds the Kernel Electric-Fence (KFENCE) infrastructure. KFENCE is a low-overhead sampling-based memory safety error detector of heap use-after-free, invalid-free, and out-of-bounds access errors. KFENCE is designed to be enabled in production kernels, and has near

[PATCH RFC 04/10] mm, kfence: insert KFENCE hooks for SLAB

2020-09-07 Thread Marco Elver
From: Alexander Potapenko Inserts KFENCE hooks into the SLAB allocator. We note the addition of the 'orig_size' argument to slab_alloc*() functions, to be able to pass the originally requested size to KFENCE. When KFENCE is disabled, there is no additional overhead, since these functions are __a

Re: [PATCH] arm64: dts: marvell: espressobin: Add ethernet switch aliases

2020-09-07 Thread Andrew Lunn
> My dts-foo is a little rusty, but now that you labeled the ports in the > .dtsi, can this whole "switch0" block reduced to something like: > > &switch0port1 { > label = "lan1"; > }; > > &switch0port3 { > label = "wan"; > }; Probably yes. But that is definitely too much for stable.

Re: [PATCH] arm64: dts: marvell: espressobin: Add ethernet switch aliases

2020-09-07 Thread Andrew Lunn
On Mon, Sep 07, 2020 at 06:13:16PM +0200, Pali Rohár wrote: > On Monday 07 September 2020 17:43:53 Andrew Lunn wrote: > > > I would not say it is a "new feature". But rather that patch in this > > > email fixes issue that Linux kernel did not set correct MAC address for > > > DSA slave ports. I thi

[PATCH RFC 09/10] kfence, Documentation: add KFENCE documentation

2020-09-07 Thread Marco Elver
Add KFENCE documentation in dev-tools/kfence.rst, and add to index. Co-developed-by: Alexander Potapenko Signed-off-by: Alexander Potapenko Signed-off-by: Marco Elver --- Documentation/dev-tools/index.rst | 1 + Documentation/dev-tools/kfence.rst | 285 + 2 files

Re: [PATCH v8 15/18] nitro_enclaves: Add Makefile for the Nitro Enclaves driver

2020-09-07 Thread Paraschiv, Andra-Irina
On 07/09/2020 12:00, Greg KH wrote: On Fri, Sep 04, 2020 at 08:37:15PM +0300, Andra Paraschiv wrote: Signed-off-by: Andra Paraschiv Reviewed-by: Alexander Graf --- Changelog v7 -> v8 * No changes. v6 -> v7 * No changes. v5 -> v6 * No changes. v4 -> v5 * No changes. v3 -> v4 * No

[PATCH RFC 08/10] kfence, lockdep: make KFENCE compatible with lockdep

2020-09-07 Thread Marco Elver
Lockdep checks that dynamic key registration is only performed on keys that are not static objects. With KFENCE, it is possible that such a dynamically allocated key is a KFENCE object which may, however, be allocated from a static memory pool (if HAVE_ARCH_KFENCE_STATIC_POOL). Therefore, ignore K

[PATCH RFC 03/10] arm64, kfence: enable KFENCE for ARM64

2020-09-07 Thread Marco Elver
Add architecture specific implementation details for KFENCE and enable KFENCE for the arm64 architecture. In particular, this implements the required interface in . Currently, the arm64 version does not yet use a statically allocated memory pool, at the cost of a pointer load for each is_kfence_add

Re: [PATCH net-next RFC v3 01/14] devlink: Add reload action option to devlink reload command

2020-09-07 Thread Moshe Shemesh
On 9/4/2020 10:56 PM, Jakub Kicinski wrote: External email: Use caution opening links or attachments On Fri, 4 Sep 2020 11:04:50 +0200 Jiri Pirko wrote: Thu, Sep 03, 2020 at 09:47:19PM CEST, k...@kernel.org wrote: On Thu, 3 Sep 2020 07:57:29 +0200 Jiri Pirko wrote: Wed, Sep 02, 2020 at 05:

[PATCH v12 2/9] x86: kdump: make the lower bound of crash kernel reservation consistent

2020-09-07 Thread Chen Zhou
The lower bounds of crash kernel reservation and crash kernel low reservation are different, use the consistent value CRASH_ALIGN. Suggested-by: Dave Young Signed-off-by: Chen Zhou --- arch/x86/kernel/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/se

Re: [PATCH v3 0/5] PCIe aardvark controller improvements

2020-09-07 Thread Lorenzo Pieralisi
On Mon, Sep 07, 2020 at 01:10:33PM +0200, Pali Rohár wrote: > Hi, > > we have some more improvements for PCIe aardvark controller (Armada 3720 > SOC - EspressoBIN and Turris MOX). > > The main improvement is that with these patches the driver can be compiled > as a module, and can be reloaded at

[PATCH RFC 10/10] kfence: add test suite

2020-09-07 Thread Marco Elver
Add KFENCE test suite, testing various error detection scenarios. Makes use of KUnit for test organization. Since KFENCE's interface to obtain error reports is via the console, the test verifies that KFENCE outputs expected reports to the console. Co-developed-by: Alexander Potapenko Signed-off-b

Re: [PATCH v5 2/2] dt-bindings: mediatek: mt6359: add codec document

2020-09-07 Thread Tzung-Bi Shih
On Thu, Aug 20, 2020 at 3:40 AM Mark Brown wrote: > > On Wed, Aug 19, 2020 at 11:42:27PM +0800, Tzung-Bi Shih wrote: > > > But I found struct mfd_cell also contains member .of_compatible. What > > is the difference if we use compatible string (as is) for this device > > instead of falling back to

[PATCH v12 9/9] kdump: update Documentation about crashkernel

2020-09-07 Thread Chen Zhou
For arm64, the behavior of crashkernel=X has been changed, which tries low allocation in DMA zone, and fall back to high allocation if it fails. We can also use "crashkernel=X,high" to select a high region above DMA zone, which also tries to allocate at least 256M low memory in DMA zone automatical

[PATCH v12 1/9] x86: kdump: move CRASH_ALIGN to 2M

2020-09-07 Thread Chen Zhou
CONFIG_PHYSICAL_ALIGN can be selected from 2M to 16M and default value is 2M, so move CRASH_ALIGN to 2M, with smaller value reservation can have more chance to succeed. And replace the hard-coded alignment with macro CRASH_ALIGN in function reserve_crashkernel(). Suggested-by: Dave Young Signed-o

[PATCH v12 4/9] x86: kdump: move reserve_crashkernel[_low]() into crash_core.c

2020-09-07 Thread Chen Zhou
Make the functions reserve_crashkernel[_low]() as generic. Arm64 will use these to reimplement crashkernel=X. There is no functional change. Signed-off-by: Chen Zhou --- arch/x86/include/asm/kexec.h | 25 + arch/x86/kernel/setup.c | 163 +-- include/linux/c

Re: [PATCH] Coccinelle: api: Add SmPL script “use_devm_platform_get_and_ioremap_resource.cocci”

2020-09-07 Thread Julia Lawall
> +@replacement depends on patch@ > +expression base, device1, device2, index, private, resource; > +@@ > +( > +-resource = platform_get_resource(device1, IORESOURCE_MEM, index); > + base = > +- devm_ioremap_resource > ++ devm_platform_get_and_ior

[PATCH v12 5/9] arm64: kdump: introduce some macroes for crash kernel reservation

2020-09-07 Thread Chen Zhou
Introduce macro CRASH_ALIGN for alignment, macro CRASH_ADDR_LOW_MAX for upper bound of low crash memory, macro CRASH_ADDR_HIGH_MAX for upper bound of high crash memory, use macroes instead. Besides, keep consistent with x86, use CRASH_ALIGN as the lower bound of crash kernel reservation. Signed-o

[PATCH v12 6/9] arm64: kdump: reimplement crashkernel=X

2020-09-07 Thread Chen Zhou
There are following issues in arm64 kdump: 1. We use crashkernel=X to reserve crashkernel below 4G, which will fail when there is no enough low memory. 2. If reserving crashkernel above 4G, in this case, crash dump kernel will boot failure because there is no low memory available for allocation. 3.

Re: [PATCH v4 1/1] drm: allow limiting the scatter list size.

2020-09-07 Thread Daniel Vetter
On Mon, Sep 7, 2020 at 1:24 PM Gerd Hoffmann wrote: > > Add drm_device argument to drm_prime_pages_to_sg(), so we can > call dma_max_mapping_size() to figure the segment size limit > and call into __sg_alloc_table_from_pages() with the correct > limit. > > This fixes virtio-gpu with sev. Possibly

[PATCH v12 0/9] support reserving crashkernel above 4G on arm64 kdump

2020-09-07 Thread Chen Zhou
There are following issues in arm64 kdump: 1. We use crashkernel=X to reserve crashkernel below 4G, which will fail when there is no enough low memory. 2. If reserving crashkernel above 4G, in this case, crash dump kernel will boot failure because there is no low memory available for allocation. 3.

[PATCH v12 7/9] kdump: add threshold for the required memory

2020-09-07 Thread Chen Zhou
For crashkernel=X, if required size X is too large and leads to very little free low memory after low allocation, the system may not work normally. So add a threshold and go for high allocation directly if the required size is too large. The value of threshold is set as the half of the low memory.

Re: [PATCH 23/23] Documentation: gpio: add documentation for gpio-mockup

2020-09-07 Thread Andy Shevchenko
On Mon, Sep 07, 2020 at 02:57:29PM +0200, Bartosz Golaszewski wrote: > On Mon, Sep 7, 2020 at 2:38 PM Andy Shevchenko > wrote: > > > > On Mon, Sep 07, 2020 at 02:06:15PM +0200, Bartosz Golaszewski wrote: > > > On Mon, Sep 7, 2020 at 1:53 PM Andy Shevchenko > > > wrote: > > > > On Mon, Sep 07, 202

[PATCH v12 3/9] x86: kdump: use macro CRASH_ADDR_LOW_MAX in functions reserve_crashkernel[_low]()

2020-09-07 Thread Chen Zhou
To make the functions reserve_crashkernel[_low]() as generic, replace some hard-coded numbers with macro CRASH_ADDR_LOW_MAX. Signed-off-by: Chen Zhou --- arch/x86/kernel/setup.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/setup.c b/arch/x86/ker

Re: [PATCH 23/23] Documentation: gpio: add documentation for gpio-mockup

2020-09-07 Thread Bartosz Golaszewski
On Mon, Sep 7, 2020 at 2:22 PM Greg Kroah-Hartman wrote: > > On Mon, Sep 07, 2020 at 02:06:15PM +0200, Bartosz Golaszewski wrote: > > On Mon, Sep 7, 2020 at 1:53 PM Andy Shevchenko > > wrote: > > > > > > On Mon, Sep 07, 2020 at 12:26:34PM +0200, Bartosz Golaszewski wrote: > > > > On Mon, Sep 7, 2

Re: [PATCH RFC 0/7] net: bridge: cfm: Add support for Connectivity Fault Management(CFM)

2020-09-07 Thread Nikolay Aleksandrov
On Sun, 2020-09-06 at 20:21 +0200, Horatiu Vultur wrote: > The 09/04/2020 15:44, Stephen Hemminger wrote: > > On Fri, 4 Sep 2020 09:15:20 + > > Henrik Bjoernlund wrote: > > > > > Connectivity Fault Management (CFM) is defined in 802.1Q section 12.14. > > > > > > [snip] > > > Currently this

Re: [PATCH] misc: fastrpc: add ioctl for attaching to sensors pd

2020-09-07 Thread Jonathan Marek
On 9/7/20 8:33 AM, Greg Kroah-Hartman wrote: On Mon, Aug 31, 2020 at 08:32:59PM -0400, Jonathan Marek wrote: Initializing sensors requires attaching to pd 2. Add an ioctl for that. This corresponds to FASTRPC_INIT_ATTACH_SENSORS in the downstream driver. Signed-off-by: Jonathan Marek --- dr

Re: [PATCH 8/9] perf test: Free aliases for PMU event map aliases test

2020-09-07 Thread John Garry
On 07/09/2020 14:20, Namhyung Kim wrote: I also notice that we have other paths like this, where the allocated pmu (and aliases) are not freed for later error paths, it seems: parse_events_add_pmu() -> perf_pmu_find() -> pmu_lookup() -> pmu_add_cpu_aliases(). I had a quick look at the rest of t

Re: [PATCH] misc: fastrpc: add ioctl for attaching to sensors pd

2020-09-07 Thread Srinivas Kandagatla
On 07/09/2020 14:47, Jonathan Marek wrote: On 9/7/20 8:36 AM, Srinivas Kandagatla wrote: On 01/09/2020 01:32, Jonathan Marek wrote: -#define FASTRPC_IOCTL_MMAP  _IOWR('R', 6, struct fastrpc_req_mmap) -#define FASTRPC_IOCTL_MUNMAP    _IOWR('R', 7, struct fastrpc_req_mun

Re: [PATCH] misc: fastrpc: add ioctl for attaching to sensors pd

2020-09-07 Thread Srinivas Kandagatla
On 07/09/2020 14:51, Jonathan Marek wrote: @@ -1477,7 +1477,10 @@ static long fastrpc_device_ioctl(struct file *file, unsigned int cmd,   err = fastrpc_invoke(fl, argp);   break;   case FASTRPC_IOCTL_INIT_ATTACH: -    err = fastrpc_init_attach(fl); +    err = fastr

Re: [PATCH] PR_SPEC_DISABLE_NOEXEC support for arm64.

2020-09-07 Thread Will Deacon
On Fri, Jul 17, 2020 at 04:05:32AM -0700, Anthony Steinhauser wrote: > For x64 it was already implemented in: > https://github.com/torvalds/linux/commit/71368af > > The rationale is the same as for the x64 implementation. > > Signed-off-by: Anthony Steinhauser > --- > > It's actively attempted

Re: [PATCH] drivers/perf: xgene_pmu: Fix uninitialized resource struct

2020-09-07 Thread Will Deacon
On Wed, Sep 02, 2020 at 02:27:29PM -0400, Mark Salter wrote: > diff --git a/drivers/perf/xgene_pmu.c b/drivers/perf/xgene_pmu.c > index edac28cd25dd..fdbbd0804b92 100644 > --- a/drivers/perf/xgene_pmu.c > +++ b/drivers/perf/xgene_pmu.c > @@ -1483,6 +1483,7 @@ xgene_pmu_dev_ctx *acpi_get_pmu_hw_inf(

[PATCH] tracing: fix double free

2020-09-07 Thread trix
From: Tom Rix clang static analyzer reports this problem trace_events_hist.c:3824:3: warning: Attempt to free released memory kfree(hist_data->attrs->var_defs.name[i]); In parse_var_defs() if there is a problem allocating var_defs.expr, the earlier var_defs.name is freed. This free is dup

Re: [PATCH] misc: fastrpc: add ioctl for attaching to sensors pd

2020-09-07 Thread Jonathan Marek
On 9/7/20 9:58 AM, Srinivas Kandagatla wrote: On 07/09/2020 14:51, Jonathan Marek wrote: @@ -1477,7 +1477,10 @@ static long fastrpc_device_ioctl(struct file *file, unsigned int cmd,   err = fastrpc_invoke(fl, argp);   break;   case FASTRPC_IOCTL_INIT_ATTACH: -    err =

Re: [PATCH v8 3/3] binder: add transaction latency tracer

2020-09-07 Thread Frankie Chang
On Mon, 2020-09-07 at 14:25 +0200, Greg Kroah-Hartman wrote: > On Mon, Sep 07, 2020 at 08:00:55PM +0800, Frankie Chang wrote: > > From: "Frankie.Chang" > > > > Record start/end timestamp for binder transaction. > > When transaction is completed or transaction is free, > > it would be checked if t

Re: [PATCH v4 08/10] vfio/fsl-mc: trigger an interrupt via eventfd

2020-09-07 Thread Diana Craciun OSS
Hi Eric, On 9/4/2020 11:02 AM, Auger Eric wrote: Hi Diana, On 8/26/20 11:33 AM, Diana Craciun wrote: This patch allows to set an eventfd for fsl-mc device interrupts and also to trigger the interrupt eventfd from userspace for testing. All fsl-mc device interrupts are MSIs. The MSIs are alloc

Re: [PATCH] misc: fastrpc: add ioctl for attaching to sensors pd

2020-09-07 Thread Jonathan Marek
On 9/7/20 10:01 AM, Srinivas Kandagatla wrote: On 07/09/2020 14:47, Jonathan Marek wrote: On 9/7/20 8:36 AM, Srinivas Kandagatla wrote: On 01/09/2020 01:32, Jonathan Marek wrote: -#define FASTRPC_IOCTL_MMAP  _IOWR('R', 6, struct fastrpc_req_mmap) -#define FASTRPC_IOCTL_MUNMAP  

[PATCH v10 5/6] node: Add access1 class to represent CPU to memory characteristics

2020-09-07 Thread Jonathan Cameron
New access1 class is nearly the same as access0, but always provides characteristics for CPUs to memory. The existing access0 class provides characteristics to nearest or direct connnect initiator which may be a Generic Initiator such as a GPU or network adapter. This new class allows thread pla

Re: [PATCH v6 04/13] usb: dwc3: Add splitdisable quirk for Hisilicon Kirin Soc

2020-09-07 Thread Felipe Balbi
Hi Mauro, Mauro Carvalho Chehab writes: > Hi Felipe/Greg, > > What's the status of this patch? to be frank, I don't think I have this in my inbox anymore. > I tested here, together with the Hikey 970 phy RFC patches I sent > last week. > > Without this patch, the USB HID driver receives -EPR

Re: [PATCH v7] perf test: Introduce script for Arm CoreSight testing

2020-09-07 Thread Suzuki K Poulose
On 09/07/2020 02:01 PM, Leo Yan wrote: We need a simple method to test Perf with Arm CoreSight drivers, this could be used for smoke testing when new patch is coming for perf or CoreSight drivers, and we also can use the test to confirm if the CoreSight has been enabled successfully on new platfo

[PATCH v10 2/6] x86: Support Generic Initiator only proximity domains

2020-09-07 Thread Jonathan Cameron
In common with memoryless domains we only register GI domains if the proximity node is not online. If a domain is already a memory containing domain, or a memoryless domain there is nothing to do just because it also contains a Generic Initiator. Signed-off-by: Jonathan Cameron --- arch/x86/incl

Re: [PATCH v8 17/18] nitro_enclaves: Add overview documentation

2020-09-07 Thread Greg KH
On Mon, Sep 07, 2020 at 04:43:11PM +0300, Paraschiv, Andra-Irina wrote: > > > On 07/09/2020 12:01, Greg KH wrote: > > > > On Fri, Sep 04, 2020 at 08:37:17PM +0300, Andra Paraschiv wrote: > > > Signed-off-by: Andra Paraschiv > > > Reviewed-by: Alexander Graf > > > --- > > > Changelog > > > > >

Re: [PATCH v10 30/30] videobuf2: use sgtable-based scatterlist wrappers

2020-09-07 Thread Marek Szyprowski
Hi Tomasz, On 07.09.2020 15:07, Tomasz Figa wrote: > On Fri, Sep 4, 2020 at 3:35 PM Marek Szyprowski > wrote: >> Use recently introduced common wrappers operating directly on the struct >> sg_table objects and scatterlist page iterators to make the code a bit >> more compact, robust, easier to fo

Re: [PATCH v5 2/3] firmware: arm_scmi: Add SCMI System Power Control driver

2020-09-07 Thread Cristian Marussi
Hi Sudeep thanks for the review. On Mon, Sep 07, 2020 at 05:43:51PM +0100, Sudeep Holla wrote: > On Wed, Aug 19, 2020 at 05:10:01PM +0100, Cristian Marussi wrote: > > Add an SCMI System Power control driver to handle platform's requests > > carried by SYSTEM_POWER_STATE_NOTIFIER notifications: su

[PATCH net-next] net: ethernet: dnet: Remove set but unused variable 'len'

2020-09-07 Thread Wang Hai
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/dnet.c: In function dnet_start_xmit drivers/net/ethernet/dnet.c:511:15: warning: variable ‘len’ set but not used [-Wunused-but-set-variable] commit 4796417417a6 ("dnet: Dave DNET ethernet controller driver (updated)") involved t

Re: [PATCH v6 6/9] kernel: entry: Support Syscall User Dispatch for common syscall entry

2020-09-07 Thread Andy Lutomirski
> On Sep 7, 2020, at 3:15 AM, Christian Brauner > wrote: > > On Fri, Sep 04, 2020 at 04:31:44PM -0400, Gabriel Krisman Bertazi wrote: >> Syscall User Dispatch (SUD) must take precedence over seccomp, since the >> use case is emulation (it can be invoked with a different ABI) such that >> sec

[PATCH net] hinic: fix rewaking txq after netif_tx_disable

2020-09-07 Thread Luo bin
When calling hinic_close in hinic_set_channels, all queues are stopped after netif_tx_disable, but some queue may be rewaken in free_tx_poll by mistake while drv is handling tx irq. If one queue is rewaken core may call hinic_xmit_frame to send pkt after netif_tx_disable within a short time which m

Re: [PATCH] soundwire: stream: fix an invalid free

2020-09-07 Thread Vinod Koul
Hello Tom, On 05-09-20, 12:26, t...@redhat.com wrote: > From: Tom Rix > > clang static analyzer reports this problem > > stream.c:872:2: warning: Argument to kfree() is a constant > address (18446744073709551092), which is not memory > allocated by malloc() > kfree(stream); >

[PATCH AUTOSEL 5.8 07/53] drivers/net/wan/lapbether: Added needed_tailroom

2020-09-07 Thread Sasha Levin
From: Xie He [ Upstream commit 1ee39c1448c4e0d480c5b390e2db1987561fb5c2 ] The underlying Ethernet device may request necessary tailroom to be allocated by setting needed_tailroom. This driver should also set needed_tailroom to request the tailroom needed by the underlying Ethernet device to be a

[PATCH AUTOSEL 5.8 02/53] dmaengine: acpi: Put the CSRT table after using it

2020-09-07 Thread Sasha Levin
From: Hanjun Guo [ Upstream commit 7eb48dd094de5fe0e216b550e73aa85257903973 ] The acpi_get_table() should be coupled with acpi_put_table() if the mapped table is not used at runtime to release the table mapping, put the CSRT table buf after using it. Signed-off-by: Hanjun Guo Link: https://lo

Re: [PATCH] arm64: dts: marvell: espressobin: Add ethernet switch aliases

2020-09-07 Thread Andre Heider
Hi Pali, On 07/09/2020 13:27, Pali Rohár wrote: Espressobin boards have 3 ethernet ports and some of them got assigned more then one MAC address. MAC addresses are stored in U-Boot environment. Since commit a2c7023f7075c ("net: dsa: read mac address from DT for slave device") kernel can use MAC

[PATCH AUTOSEL 5.8 05/53] rxrpc: Keep the ACK serial in a var in rxrpc_input_ack()

2020-09-07 Thread Sasha Levin
From: David Howells [ Upstream commit 68528d937dcd675e79973061c1a314db598162d1 ] Keep the ACK serial number in a variable in rxrpc_input_ack() as it's used frequently. Signed-off-by: David Howells Signed-off-by: Sasha Levin --- net/rxrpc/input.c | 21 +++-- 1 file changed, 11

[PATCH AUTOSEL 5.8 06/53] netfilter: nft_set_rbtree: Detect partial overlap with start endpoint match

2020-09-07 Thread Sasha Levin
From: Stefano Brivio [ Upstream commit 0726763043dc10dd4c12481f050b1a5ef8f15410 ] Getting creative with nft and omitting the interval_overlap() check from the set_overlap() function, without omitting set_overlap() altogether, led to the observation of a partial overlap that wasn't detected, and

[PATCH AUTOSEL 5.8 03/53] MIPS: Loongson64: Do not override watch and ejtag feature

2020-09-07 Thread Sasha Levin
From: Jiaxun Yang [ Upstream commit 433c1ca0d441ee0b88fdd83c84ee6d6d43080dcd ] Do not override ejtag feature to 0 as Loongson 3A1000+ do have ejtag. For watch, as KVM emulated CPU doesn't have watch feature, we should not enable it unconditionally. Signed-off-by: Jiaxun Yang Reviewed-by: Huaca

[PATCH AUTOSEL 5.8 04/53] netfilter: conntrack: allow sctp hearbeat after connection re-use

2020-09-07 Thread Sasha Levin
From: Florian Westphal [ Upstream commit cc5453a5b7e90c39f713091a7ebc53c1f87d1700 ] If an sctp connection gets re-used, heartbeats are flagged as invalid because their vtag doesn't match. Handle this in a similar way as TCP conntrack when it suspects that the endpoints and conntrack are out-of-

[PATCH AUTOSEL 5.8 12/53] ALSA: hda/tegra: Program WAKEEN register for Tegra

2020-09-07 Thread Sasha Levin
From: Mohan Kumar [ Upstream commit 23d63a31d9f44d7daeac0d1fb65c6a73c70e5216 ] The WAKEEN bits are used to indicate which bits in the STATESTS register may cause wake event during the codec state change request. Configure the WAKEEN register for the Tegra to detect the wake events. Signed-off-b

Re: [PATCH 02/25] dt-bindings: iio: adc: exynos-adc: require second interrupt with touch screen

2020-09-07 Thread Krzysztof Kozlowski
On Mon, 7 Sep 2020 at 18:39, Jonathan Cameron wrote: > > On Mon, 7 Sep 2020 18:11:18 +0200 > Krzysztof Kozlowski wrote: > > > The ADC in S3C/S5P/Exynos SoCs can be used also for handling touch > > screen. In such case the second interrupt is required. This second > > interrupt can be anyway pr

[PATCH AUTOSEL 5.8 14/53] ibmvnic fix NULL tx_pools and rx_tools issue at do_reset

2020-09-07 Thread Sasha Levin
From: Mingming Cao [ Upstream commit 9f13457377907fa253aef560e1a37e1ca4197f9b ] At the time of do_rest, ibmvnic tries to re-initalize the tx_pools and rx_pools to avoid re-allocating the long term buffer. However there is a window inside do_reset that the tx_pools and rx_pools were freed before

[PATCH AUTOSEL 5.8 13/53] drivers/dma/dma-jz4780: Fix race condition between probe and irq handler

2020-09-07 Thread Sasha Levin
From: Madhuparna Bhowmik [ Upstream commit 6d6018fc30bee67290dbed2fa51123f7c6f3d691 ] In probe, IRQ is requested before zchan->id is initialized which can be read in the irq handler. Hence, shift request irq after other initializations complete. Found by Linux Driver Verification project (linux

[PATCH AUTOSEL 5.8 18/53] wireless: fix wrong 160/80+80 MHz setting

2020-09-07 Thread Sasha Levin
From: Shay Bar [ Upstream commit 3579994476b65cb5e272ff0f720a1fd31322e53f ] Fix cfg80211_chandef_usable(): consider IEEE80211_VHT_CAP_EXT_NSS_BW when verifying 160/80+80 MHz. Based on: "Table 9-272 — Setting of the Supported Channel Width Set subfield and Extended NSS BW Support subfield at a

[PATCH AUTOSEL 5.8 15/53] net: hns3: Fix for geneve tx checksum bug

2020-09-07 Thread Sasha Levin
From: Yi Li [ Upstream commit a156998fc92d3859c8e820f1583f6d0541d643c3 ] when skb->encapsulation is 0, skb->ip_summed is CHECKSUM_PARTIAL and it is udp packet, which has a dest port as the IANA assigned. the hardware is expected to do the checksum offload, but the hardware will not do the checks

[PATCH AUTOSEL 5.8 16/53] xfs: fix off-by-one in inode alloc block reservation calculation

2020-09-07 Thread Sasha Levin
From: Brian Foster [ Upstream commit 657f101930bc6c5b41bd7d6c22565c4302a80d33 ] The inode chunk allocation transaction reserves inobt_maxlevels-1 blocks to accommodate a full split of the inode btree. A full split requires an allocation for every existing level and a new root block, which means

Re: [PATCH 0/2] PCI: dwc: Add support to handle prefetchable memory separately

2020-09-07 Thread Lorenzo Pieralisi
On Mon, Jul 06, 2020 at 10:05:06AM +0530, Vidya Sagar wrote: > > > On 18-Jun-20 12:26 AM, Vidya Sagar wrote: > > > > > > On 02-Jun-20 10:37 PM, Gustavo Pimentel wrote: > > > External email: Use caution opening links or attachments > > > > > > > > > On Tue, Jun 2, 2020 at 11:9:38, Vidya Sagar

[PATCH AUTOSEL 5.8 17/53] drivers/net/wan/lapbether: Set network_header before transmitting

2020-09-07 Thread Sasha Levin
From: Xie He [ Upstream commit 91244d108441013b7367b3b4dcc6869998676473 ] Set the skb's network_header before it is passed to the underlying Ethernet device for transmission. This patch fixes the following issue: When we use this driver with AF_PACKET sockets, there would be error messages of:

Re: [PATCH v5.4.y 0/3] vfio: Fix for CVE-2020-12888

2020-09-07 Thread Sasha Levin
On Sun, Sep 06, 2020 at 07:37:57PM +0530, Ajay Kaher wrote: CVE-2020-12888 Kernel: vfio: access to disabled MMIO space of some devices may lead to DoS scenario The VFIO modules allow users (guest VMs) to enable or disable access to the devices' MMIO memory address spaces. If a user attempts to a

[PATCH AUTOSEL 5.8 20/53] mac80211: reduce packet loss event false positives

2020-09-07 Thread Sasha Levin
From: Felix Fietkau [ Upstream commit 47df8e059b49a80c179fae39256bcd7096810934 ] When running a large number of packets per second with a high data rate and long A-MPDUs, the packet loss threshold can be reached very quickly when the link conditions change. This frequently shows up as spurious d

[PATCH AUTOSEL 5.8 19/53] cfg80211: regulatory: reject invalid hints

2020-09-07 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 47caf685a6854593348f216e0b489b71c10cbe03 ] Reject invalid hints early in order to not cause a kernel WARN later if they're restored to or similar. Reported-by: syzbot+d451401ffd00a6067...@syzkaller.appspotmail.com Link: https://syzkaller.appspot.com/bug?ext

[PATCH AUTOSEL 5.8 21/53] cfg80211: Adjust 6 GHz frequency to channel conversion

2020-09-07 Thread Sasha Levin
From: Amar Singhal [ Upstream commit 2d9b55508556ccee6410310fb9ea2482fd3328eb ] Adjust the 6 GHz frequency to channel conversion function, the other way around was previously handled. Signed-off-by: Amar Singhal Link: https://lore.kernel.org/r/1592599921-10607-1-git-send-email-asing...@codeau

[PATCH AUTOSEL 5.8 22/53] net: usb: Fix uninit-was-stored issue in asix_read_phy_addr()

2020-09-07 Thread Sasha Levin
From: Himadri Pandya [ Upstream commit a092b7233f0e000cc6f2c71a49e2ecc6f917a5fc ] The buffer size is 2 Bytes and we expect to receive the same amount of data. But sometimes we receive less data and run into uninit-was-stored issue upon read. Hence modify the error check on the return value to ma

[PATCH AUTOSEL 5.8 23/53] xfs: initialize the shortform attr header padding entry

2020-09-07 Thread Sasha Levin
From: "Darrick J. Wong" [ Upstream commit 125eac243806e021f33a1fdea3687eccbb9f7636 ] Don't leak kernel memory contents into the shortform attr fork. Signed-off-by: Darrick J. Wong Reviewed-by: Eric Sandeen Reviewed-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Sasha Levin

[PATCH AUTOSEL 5.8 33/53] nvme-rdma: serialize controller teardown sequences

2020-09-07 Thread Sasha Levin
From: Sagi Grimberg [ Upstream commit 5110f40241d08334375eb0495f174b1d2c07657e ] In the timeout handler we may need to complete a request because the request that timed out may be an I/O that is a part of a serial sequence of controller teardown or initialization. In order to complete the reques

[PATCH AUTOSEL 5.8 24/53] ARC: show_regs: fix r12 printing and simplify

2020-09-07 Thread Sasha Levin
From: Vineet Gupta [ Upstream commit e5c388b4b967037a0e00b60194b0dbcf94881a9b ] when working on ARC64, spotted an issue in ARCv2 reg file printing. print_reg_file() assumes contiguous reg-file whereas in ARCv2 they are not: r12 comes before r0-r11 due to hardware auto-save. Apparently this issue

[PATCH AUTOSEL 5.8 26/53] media: gpio-ir-tx: spinlock is not needed to disable interrupts

2020-09-07 Thread Sasha Levin
From: Sean Young [ Upstream commit 1451b93223bbe3b4e9c91fca6b451d00667c5bf0 ] During bit-banging the IR on a gpio pin, we cannot be scheduled or have anything interrupt us, else the generated signal will be incorrect. Therefore, we need to disable interrupts on the local cpu. This also disables

[PATCH AUTOSEL 5.8 30/53] nvme-tcp: serialize controller teardown sequences

2020-09-07 Thread Sasha Levin
From: Sagi Grimberg [ Upstream commit d4d61470ae48838f49e668503e840e1520b97162 ] In the timeout handler we may need to complete a request because the request that timed out may be an I/O that is a part of a serial sequence of controller teardown or initialization. In order to complete the reques

[PATCH AUTOSEL 5.8 01/53] ARC: HSDK: wireup perf irq

2020-09-07 Thread Sasha Levin
From: Vineet Gupta [ Upstream commit fe81d927b78c4f0557836661d32e41ebc957b024 ] Newer version of HSDK aka HSDK-4xD (with dual issue HS48x4 CPU) wired up the perf interrupt, so enable that in DT. This is OK for old HSDK where this irq is ignored because pct irq is not wired up in hardware. Signe

[PATCH AUTOSEL 5.8 28/53] nvme-fabrics: don't check state NVME_CTRL_NEW for request acceptance

2020-09-07 Thread Sasha Levin
From: Sagi Grimberg [ Upstream commit d7144f5c4cf4de95fdc3422943cf51c06aeaf7a7 ] NVME_CTRL_NEW should never see any I/O, because in order to start initialization it has to transition to NVME_CTRL_CONNECTING and from there it will never return to this state. Reviewed-by: Christoph Hellwig Signe

[PATCH AUTOSEL 5.8 32/53] nvme-tcp: fix reset hang if controller died in the middle of a reset

2020-09-07 Thread Sasha Levin
From: Sagi Grimberg [ Upstream commit e5c01f4f7f623e768e868bcc08d8e7ceb03b75d0 ] If the controller becomes unresponsive in the middle of a reset, we will hang because we are waiting for the freeze to complete, but that cannot happen since we have commands that are inflight holding the q_usage_co

[PATCH AUTOSEL 5.8 29/53] nvme: have nvme_wait_freeze_timeout return if it timed out

2020-09-07 Thread Sasha Levin
From: Sagi Grimberg [ Upstream commit 7cf0d7c0f3c3b0203aaf81c1bc884924d8fdb9bd ] Users can detect if the wait has completed or not and take appropriate actions based on this information (e.g. weather to continue initialization or rather fail and schedule another initialization attempt). Reviewe

[PATCH AUTOSEL 5.8 27/53] nvmet-tcp: Fix NULL dereference when a connect data comes in h2cdata pdu

2020-09-07 Thread Sasha Levin
From: Ziye Yang [ Upstream commit a6ce7d7b4adaebc27ee7e78e5ecc378a1cfc221d ] When handling commands without in-capsule data, we assign the ttag assuming we already have the queue commands array allocated (based on the queue size information in the connect data payload). However if the connect it

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