[PATCH v2 2/4] phy: Add ethernet serdes configuration option

2020-11-10 Thread Steen Hegelund
Provide a new ethernet phy configuration structure, that allow PHYs used for ethernet to be configured with speed, media type and clock information. Signed-off-by: Lars Povlsen Signed-off-by: Steen Hegelund --- include/linux/phy/phy-ethernet-serdes.h | 49 + include/linu

Re: [PATCH v1 03/24] arm64: Move MAIR_EL1_SET to asm/memory.h

2020-11-10 Thread Marc Zyngier
On 2020-11-09 11:32, David Brazdil wrote: KVM currently initializes MAIR_EL2 to the value of MAIR_EL1. In preparation for initializing MAIR_EL2 before MAIR_EL1, move the constant into a shared header file. Signed-off-by: David Brazdil --- arch/arm64/include/asm/memory.h | 13 + a

[PATCH v2 4/4] arm64: dts: sparx5: Add Sparx5 serdes driver node

2020-11-10 Thread Steen Hegelund
From: Lars Povlsen Add Sparx5 serdes driver node, and enable it generally for all reference boards. Signed-off-by: Lars Povlsen Signed-off-by: Steen Hegelund --- arch/arm64/boot/dts/microchip/sparx5.dtsi | 195 ++ 1 file changed, 195 insertions(+) diff --git a/arch/arm64/

[PATCH v2 1/4] dt-bindings: phy: Add sparx5-serdes bindings

2020-11-10 Thread Steen Hegelund
Document the Sparx5 ethernet serdes phy driver bindings. Signed-off-by: Lars Povlsen Signed-off-by: Steen Hegelund --- .../bindings/phy/microchip,sparx5-serdes.yaml | 283 ++ 1 file changed, 283 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/microchip,s

[PATCH] ASoC: intel: SND_SOC_INTEL_KEEMBAY should depend on ARCH_KEEMBAY

2020-11-10 Thread Geert Uytterhoeven
The Intel Keem Bay audio module is only present on Intel Keem Bay SoCs. Hence add a dependency on ARCH_KEEMBAY, to prevent asking the user about this driver when configuring a kernel without Intel Keem Bay platform support. Fixes: c544912bcc2dc806 ("ASoC: Intel: Add makefiles and kconfig changes f

Re: [PATCH v3 6/7] gpio: exar: switch to using regmap

2020-11-10 Thread Jan Kiszka
On 10.11.20 15:30, Bartosz Golaszewski wrote: > On Tue, Nov 10, 2020 at 3:26 PM Andy Shevchenko > wrote: >> >> On Tue, Nov 10, 2020 at 04:26:24PM +0200, Andy Shevchenko wrote: >>> On Tue, Nov 10, 2020 at 01:34:05PM +0100, Bartosz Golaszewski wrote: From: Bartosz Golaszewski We ca

[PATCH] ASoC: fsl: SND_SOC_FSL_AUD2HTX should depend on ARCH_MXC

2020-11-10 Thread Geert Uytterhoeven
The Freescale/NXP AUDIO TO HDMI TX module is only present on NXP i.MX 8 Series SoCs. Hence add a dependency on ARCH_MXC, to prevent asking the user about this driver when configuring a kernel without i.MX 8 platform support. Fixes: 8a24c834c053ef1b ("ASoC: fsl_aud2htx: Add aud2htx module driver")

Re: [PATCH v3 6/7] gpio: exar: switch to using regmap

2020-11-10 Thread Bartosz Golaszewski
On Tue, Nov 10, 2020 at 3:50 PM Jan Kiszka wrote: > > > On 10.11.20 15:30, Bartosz Golaszewski wrote: > > On Tue, Nov 10, 2020 at 3:26 PM Andy Shevchenko > > wrote: > >> > >> On Tue, Nov 10, 2020 at 04:26:24PM +0200, Andy Shevchenko wrote: > >>> On Tue, Nov 10, 2020 at 01:34:05PM +0100, Bartosz G

Re: [PATCH] kfence: Avoid stalling work queue task without allocations

2020-11-10 Thread Marco Elver
On Tue, 10 Nov 2020 at 15:25, Dmitry Vyukov wrote: > On Tue, Nov 10, 2020 at 2:53 PM Marco Elver wrote: > > To toggle the allocation gates, we set up a delayed work that calls > > toggle_allocation_gate(). Here we use wait_event() to await an > > allocation and subsequently disable the static bra

Re: [PATCH v5 07/17] virt: acrn: Introduce an ioctl to set vCPU registers state

2020-11-10 Thread Greg Kroah-Hartman
On Tue, Nov 10, 2020 at 09:14:19PM +0800, Shuo A Liu wrote: > > And there really is no validation of > > any fields? > > Yes. Because HSM driver has little knowledge to do the validation. What is "HSM driver"? And you all are ready for fuzzers to break this into small pieces, right? No validati

Re: [PATCH 1/2] console: Remove dummy con_font_op() callback implementations

2020-11-10 Thread Greg Kroah-Hartman
On Tue, Nov 10, 2020 at 01:49:46PM +0100, Daniel Vetter wrote: > On Fri, Nov 06, 2020 at 11:50:58AM +0100, Greg Kroah-Hartman wrote: > > On Sat, Oct 31, 2020 at 03:24:41AM -0400, Peilin Ye wrote: > > > `struct console_font` is a UAPI structure, thus ideally should not be > > > used for kernel inter

Re: [tip: x86/apic] x86/io_apic: Cleanup trigger/polarity helpers

2020-11-10 Thread Tom Lendacky
On 11/10/20 8:34 AM, Thomas Gleixner wrote: > On Tue, Nov 10 2020 at 07:10, Borislav Petkov wrote: > >> On Mon, Nov 09, 2020 at 05:15:03PM -0600, Tom Lendacky wrote: >>> [ 105.325371] hpet: Lost 9601 RTC interrupts >>> [ 105.485766] hpet: Lost 9600 RTC interrupts >>> [ 105.639182] hpet: Lost 96

Re: Linux 4.14.205

2020-11-10 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 9b0fd7096ab8..fff3ca75d35a 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 14 -SUBLEVEL = 204 +SUBLEVEL = 205 EXTRAVERSION = NAME = Petit Gorille diff --git a/arch/arc/kernel/entry.S b/arc

Re: Linux 4.4.242

2020-11-10 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index f47580803754..0ba3fd914426 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 241 +SUBLEVEL = 242 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S index 5e3f1ed

Linux 4.4.242

2020-11-10 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.4.242 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Linux 5.4.76

2020-11-10 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.4.76 kernel. All users of the 5.4 kernel series must upgrade. The updated 5.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y and can be browsed at the normal kernel.org git web browser:

[PATCH v4 3/7] gpio: exar: switch to a simpler IDA interface

2020-11-10 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We don't need to specify any ranges when allocating IDs so we can switch to ida_alloc() and ida_free() instead of the ida_simple_ counterparts. ida_simple_get(ida, 0, 0, gfp) is equivalent to ida_alloc_range(ida, 0, UINT_MAX, gfp) which is equivalent to ida_alloc(ida, g

[PATCH v4 2/7] gpio: exar: include idr.h

2020-11-10 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This driver uses IDA APIs but doesn't include the relevant header. This fixes it. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-exar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-exar.c b/drivers/gpio/gpio-exar.c index 4202dd363a11

[PATCH v4 0/7] gpio: exar: refactor the driver

2020-11-10 Thread Bartosz Golaszewski
From: Bartosz Golaszewski I just wanted to convert the driver to using simpler IDA API but ended up quickly converting it to using regmap. Unfortunately I don't have the HW to test it so marking the patches that introduce functional change as RFT and Cc'ing the original author. v1 -> v2: - add n

Linux 4.9.242

2020-11-10 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.9.242 kernel. All users of the 4.9 kernel series must upgrade. The updated 4.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.y and can be browsed at the normal kernel.org git web browser:

[PATCH v4 7/7] gpio: exar: use devm action for freeing the IDA and drop remove()

2020-11-10 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We can simplify the error path in probe() and drop remove() entirely if we provide a devm action for freeing the device ID. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-exar.c | 27 --- 1 file changed, 12 insertions(+), 15 deletions

Linux 4.14.205

2020-11-10 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.14.205 kernel. All users of the 4.14 kernel series must upgrade. The updated 4.14.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.14.y and can be browsed at the normal kernel.org git web browser

Linux 5.9.7

2020-11-10 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.9.7 kernel. All users of the 5.9 kernel series must upgrade. The updated 5.9.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.9.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.19.156

2020-11-10 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 9fc16d34e1bb..82891b34e19e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 155 +SUBLEVEL = 156 EXTRAVERSION = NAME = "People's Front" diff --git a/arch/arc/kernel/entry.S b/

Re: Linux 5.4.76

2020-11-10 Thread Greg Kroah-Hartman
diff --git a/Documentation/asm-annotations.rst b/Documentation/asm-annotations.rst new file mode 100644 index ..29ccd6e61fe5 --- /dev/null +++ b/Documentation/asm-annotations.rst @@ -0,0 +1,216 @@ +Assembler Annotations += + +Copyright (c) 2017-2019 Jiri Slaby + +Th

Linux 4.19.156

2020-11-10 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.19.156 kernel. All users of the 4.19 kernel series must upgrade. The updated 4.19.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y and can be browsed at the normal kernel.org git web browser

[PATCH v4 5/7] gpio: exar: unduplicate address and offset computation

2020-11-10 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Provide and use helpers for calculating the register address and bit offset instead of hand coding it in every function. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-exar.c | 40 1 file changed, 28 insertions(+), 12

[PATCH v4 6/7] gpio: exar: switch to using regmap

2020-11-10 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We can simplify the code in gpio-exar by using regmap. This allows us to drop the mutex (regmap provides its own locking) and we can also reuse regmap's bit operations instead of implementing our own update function. Signed-off-by: Bartosz Golaszewski --- drivers/gpio

Re: Linux 4.9.242

2020-11-10 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index c4f3d2ea9b43..d41de2c1159e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 241 +SUBLEVEL = 242 EXTRAVERSION = NAME = Roaring Lionus diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S index 705a68208

linux-kernel@vger.kernel.org

2020-11-10 Thread Bartosz Golaszewski
From: Bartosz Golaszewski It's more elegant to use a helper local variable to store the address of the underlying struct device than to dereference pdev everywhere. It also has the benefit of avoiding unnecessary line breaks. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-exar.c | 15

[PATCH v4 1/7] gpio: exar: add a newline after the copyright notice

2020-11-10 Thread Bartosz Golaszewski
From: Bartosz Golaszewski It's customary to have a newline between the copyright header and the includes. Add one to gpio-exar. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpio-exar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-exar.c b/drivers/gpio/gpio-exar.

Re: [PATCH v3] reboot: allow to specify reboot mode via sysfs

2020-11-10 Thread Petr Mladek
On Mon 2020-11-09 17:45:38, Matteo Croce wrote: > From: Matteo Croce > > The kernel cmdline reboot= option offers some sort of control > on how the reboot is issued. > Add handles in sysfs to allow setting these reboot options, so they > can be changed when the system is booted, other than at boo

Re: [PATCH 3/4] powercap/drivers/dtpm: Add API for dynamic thermal power management

2020-11-10 Thread Daniel Lezcano
On 10/11/2020 12:05, Lukasz Luba wrote: > > Actually I've found one issue when I have been trying to clean > my testing branch with modified scmi-cpufreq.c. IMO, those errors are not the dtpm framework fault but the scmi-cpufreq. You should add a component in the drivers/powercap which does the

Re: [PATCH v7 15/18] NTB: Add support for EPF PCI-Express Non-Transparent Bridge

2020-11-10 Thread Arnd Bergmann
On Tue, Nov 10, 2020 at 3:20 PM Kishon Vijay Abraham I wrote: > On 10/11/20 7:55 am, Sherry Sun wrote: > > But for VOP, only two boards are needed(one board as host and one board as > > card) to realize the > > communication between the two systems, so my question is what are the > > advantages

Re: [PATCH v3 6/7] gpio: exar: switch to using regmap

2020-11-10 Thread Andy Shevchenko
On Tue, Nov 10, 2020 at 03:52:00PM +0100, Bartosz Golaszewski wrote: > On Tue, Nov 10, 2020 at 3:50 PM Jan Kiszka wrote: > > On 10.11.20 15:30, Bartosz Golaszewski wrote: ... > > Removing the line that Andy found made things work here. And switching > > to 16 for reg_bits didn't make things wors

RE: [PATCH] Documentation: x86: fix thread_info's position

2020-11-10 Thread David Laight
From: Yang Mingzhe > Sent: 10 November 2020 14:21 > > The bottom of the stack is where the first item was added to the stack, > usually at the zero offset. Actually, the thread_info structure at the > end of the stack. Nope, most stacks 'grow down'. So the first item pushed is at address 8k (for

Re: [PATCH v4 6/7] gpio: exar: switch to using regmap

2020-11-10 Thread Andy Shevchenko
On Tue, Nov 10, 2020 at 03:55:51PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > We can simplify the code in gpio-exar by using regmap. This allows us to > drop the mutex (regmap provides its own locking) and we can also reuse > regmap's bit operations instead of implementing

Re: [PATCH 3/4] powercap/drivers/dtpm: Add API for dynamic thermal power management

2020-11-10 Thread Lukasz Luba
On 11/10/20 2:59 PM, Daniel Lezcano wrote: On 10/11/2020 12:05, Lukasz Luba wrote: Actually I've found one issue when I have been trying to clean my testing branch with modified scmi-cpufreq.c. IMO, those errors are not the dtpm framework fault but the scmi-cpufreq. True, I have added th

Re: [PATCH] mmc: meson-gx: remove IRQF_ONESHOT

2020-11-10 Thread Jerome Brunet
On Thu 08 Oct 2020 at 11:08, Ulf Hansson wrote: > > Thomas, thanks a lot for helping out and looking at this! > > It looks like the testing of the patch below went well. Are you > intending to queue up the patch via your tip tree? > > If you need any help, just tell us! > > Kind regards > Uffe >

Re: [PATCH v3 01/16] dt-bindings: usb: usb-hcd: Convert generic USB properties to DT schema

2020-11-10 Thread Serge Semin
It seems noone is going to get involved in the discussion. Therefore I'll fix the patch in the way I suggested in my previous message. Alas I'll have to remove the reviewed-by tags of Rob from some patches. -Sergey On Mon, Oct 26, 2020 at 07:46:49PM +0300, Serge Semin wrote: > Folks, any comment

Re: [PATCH v4 0/7] gpio: exar: refactor the driver

2020-11-10 Thread Andy Shevchenko
On Tue, Nov 10, 2020 at 03:55:45PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > I just wanted to convert the driver to using simpler IDA API but ended up > quickly converting it to using regmap. Unfortunately I don't have the HW > to test it so marking the patches that introd

[PATCH v1] drivers: make struct device_driver::remove return void

2020-11-10 Thread Uwe Kleine-König
The driver core doesn't check the return value of the remove callback because there is only little software can do when hardware disappears. So change the callback to not return a value at all and adapt all users. The motivation for this change is that some driver authors have a misconception abou

Re: [PATCH v1 06/24] kvm: arm64: Support per_cpu_ptr in nVHE hyp code

2020-11-10 Thread Marc Zyngier
On 2020-11-09 11:32, David Brazdil wrote: When compiling with __KVM_NVHE_HYPERVISOR__ redefine per_cpu_offset() to __hyp_per_cpu_offset() which looks up the base of the nVHE per-CPU region of the given cpu and computes its offset from the .hyp.data..percpu section. This enables use of per_cpu_p

Re: [PATCH v4 6/7] gpio: exar: switch to using regmap

2020-11-10 Thread Andy Shevchenko
On Tue, Nov 10, 2020 at 05:04:47PM +0200, Andy Shevchenko wrote: > On Tue, Nov 10, 2020 at 03:55:51PM +0100, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > We can simplify the code in gpio-exar by using regmap. This allows us to > > drop the mutex (regmap provides its own lockin

Re: [RFC PATCH] mm: memcg/slab: Stop reparented obj_cgroups from charging root

2020-11-10 Thread Shakeel Butt
On Mon, Nov 9, 2020 at 5:28 PM Roman Gushchin wrote: > > On Fri, Oct 23, 2020 at 12:30:53PM -0400, Johannes Weiner wrote: > > On Wed, Oct 21, 2020 at 12:33:22PM -0700, Roman Gushchin wrote: > > > On Tue, Oct 20, 2020 at 02:18:22PM -0400, Johannes Weiner wrote: > > > > On Tue, Oct 20, 2020 at 10:07

Re: [PATCH v12 2/3] Since the original trace_binder_transaction_received cannot precisely present the real finished time of transaction, adding a trace_binder_txn_latency_free at the point of free tra

2020-11-10 Thread Greg Kroah-Hartman
On Tue, Nov 10, 2020 at 10:19:14PM +0800, Frankie Chang wrote: > From: "Frankie.Chang" > > Signed-off-by: Frankie.Chang > Acked-by: Todd Kjos What happened to the subject line here? The changelog body is in the subject line, and the subject is gone? Can you fix this up for all of these patch

[PATCH v4 1/3] dt-bindings: media: atmel: csi2dc: add bindings for microchip csi2dc

2020-11-10 Thread Eugen Hristev
Add bindings documentation for Microchip CSI2 Demultiplexer controller. CSI2DC is a demultiplexer from Synopsys IDI interface specification to parallel interface connection or direct memory access. Signed-off-by: Eugen Hristev --- Changes in v4: - Removed property for inter-line-delay and for cl

[PATCH v4 3/3] MAINTAINERS: add microchip csi2dc

2020-11-10 Thread Eugen Hristev
Add Microchip CSI2DC driver in the list. Signed-off-by: Eugen Hristev --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2ec6fda103f8..3392a5803743 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11472,6 +11472,13 @@ L: alsa-de...@alsa-p

[PATCH v4 2/3] media: atmel: introduce microchip csi2dc driver

2020-11-10 Thread Eugen Hristev
Microchip CSI2DC (CSI2 Demultiplexer Controller) is a misc bridge device that converts a byte stream in IDI Synopsys format (coming from a CSI2HOST) to a pixel stream that can be captured by a sensor controller. Signed-off-by: Eugen Hristev --- Hello, There still are some open questions regardin

Re: [PATCH v4 6/7] gpio: exar: switch to using regmap

2020-11-10 Thread Bartosz Golaszewski
On Tue, Nov 10, 2020 at 4:09 PM Andy Shevchenko wrote: > > On Tue, Nov 10, 2020 at 05:04:47PM +0200, Andy Shevchenko wrote: > > On Tue, Nov 10, 2020 at 03:55:51PM +0100, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > > > We can simplify the code in gpio-exar by using regmap. T

Re: [PATCH] phy: phylink: Fix CuSFP issue in phylink

2020-11-10 Thread Russell King - ARM Linux admin
On Tue, Nov 10, 2020 at 03:16:34PM +0100, Bjarni Jonasson wrote: > > Russell King - ARM Linux admin writes: > > > On Tue, Nov 10, 2020 at 11:06:42AM +0100, Bjarni Jonasson wrote: > >> There is an issue with the current phylink driver and CuSFPs which > >> results in a callback to the phylink vali

Re: [PATCH RFC v2 00/17] KVM: x86/pmu: Add support to enable Guest PEBS via DS

2020-11-10 Thread Peter Zijlstra
On Mon, Nov 09, 2020 at 10:12:37AM +0800, Like Xu wrote: > The Precise Event Based Sampling(PEBS) supported on Intel Ice Lake server > platforms can provide an architectural state of the instruction executed > after the instruction that caused the event. This patch set enables the > the PEBS via DS

Re: [PATCH] arm64: dts: freescale: fix typo Makefile

2020-11-10 Thread Anders Roxell
On Fri, 6 Nov 2020 at 16:12, Krzysztof Kozlowski wrote: > > On Thu, Nov 05, 2020 at 12:18:23PM +0100, Anders Roxell wrote: > > While trying to do 'make dtbs_install' the following error shows up > > > > make[3]: *** No rule to make target > > > > '/srv/src/kernel/next/out/obj-arm64-next-2020110

[PATCH v8 0/9] mm: introduce memfd_secret system call to create "secret" memory areas

2020-11-10 Thread Mike Rapoport
From: Mike Rapoport Hi, This is an implementation of "secret" mappings backed by a file descriptor. The file descriptor backing secret memory mappings is created using a dedicated memfd_secret system call The desired protection mode for the memory is configured using flags parameter of the syst

[PATCH v8 1/9] mm: add definition of PMD_PAGE_ORDER

2020-11-10 Thread Mike Rapoport
From: Mike Rapoport The definition of PMD_PAGE_ORDER denoting the number of base pages in the second-level leaf page is already used by DAX and maybe handy in other cases as well. Several architectures already have definition of PMD_ORDER as the size of second level page table, so to avoid confl

[PATCH v8 2/9] mmap: make mlock_future_check() global

2020-11-10 Thread Mike Rapoport
From: Mike Rapoport It will be used by the upcoming secret memory implementation. Signed-off-by: Mike Rapoport --- mm/internal.h | 3 +++ mm/mmap.c | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mm/internal.h b/mm/internal.h index c43ccdddb0f6..ae146a260b14 10064

[PATCH v8 3/9] set_memory: allow set_direct_map_*_noflush() for multiple pages

2020-11-10 Thread Mike Rapoport
From: Mike Rapoport The underlying implementations of set_direct_map_invalid_noflush() and set_direct_map_default_noflush() allow updating multiple contiguous pages at once. Add numpages parameter to set_direct_map_*_noflush() to expose this ability with these APIs. Signed-off-by: Mike Rapoport

[PATCH v8 4/9] mm: introduce memfd_secret system call to create "secret" memory areas

2020-11-10 Thread Mike Rapoport
From: Mike Rapoport Introduce "memfd_secret" system call with the ability to create memory areas visible only in the context of the owning process and not mapped not only to other processes but in the kernel page tables as well. The user will create a file descriptor using the memfd_secret() sys

[PATCH v8 5/9] secretmem: use PMD-size pages to amortize direct map fragmentation

2020-11-10 Thread Mike Rapoport
From: Mike Rapoport Removing a PAGE_SIZE page from the direct map every time such page is allocated for a secret memory mapping will cause severe fragmentation of the direct map. This fragmentation can be reduced by using PMD-size pages as a pool for small pages for secret memory mappings. Add a

[PATCH v8 7/9] PM: hibernate: disable when there are active secretmem users

2020-11-10 Thread Mike Rapoport
From: Mike Rapoport It is unsafe to allow saving of secretmem areas to the hibernation snapshot as they would be visible after the resume and this essentially will defeat the purpose of secret memory mappings. Prevent hibernation whenever there are active secret memory users. Signed-off-by: Mik

[PATCH v8 6/9] secretmem: add memcg accounting

2020-11-10 Thread Mike Rapoport
From: Mike Rapoport Account memory consumed by secretmem to memcg. The accounting is updated when the memory is actually allocated and freed. Signed-off-by: Mike Rapoport --- mm/filemap.c | 2 +- mm/secretmem.c | 42 +- 2 files changed, 42 insertions(

[PATCH v8 9/9] secretmem: test: add basic selftest for memfd_secret(2)

2020-11-10 Thread Mike Rapoport
From: Mike Rapoport The test verifies that file descriptor created with memfd_secret does not allow read/write operations, that secret memory mappings respect RLIMIT_MEMLOCK and that remote accesses with process_vm_read() and ptrace() to the secret memory fail. Signed-off-by: Mike Rapoport ---

[PATCH v8 8/9] arch, mm: wire up memfd_secret system call were relevant

2020-11-10 Thread Mike Rapoport
From: Mike Rapoport Wire up memfd_secret system call on architectures that define ARCH_HAS_SET_DIRECT_MAP, namely arm64, risc-v and x86. Signed-off-by: Mike Rapoport Acked-by: Palmer Dabbelt Acked-by: Arnd Bergmann --- arch/arm64/include/asm/unistd.h| 2 +- arch/arm64/include/asm/uni

RE: [PATCH 1/5] misc: Add Synopsys DesignWare xData IP driver

2020-11-10 Thread Gustavo Pimentel
Hi Greg, On Mon, Nov 9, 2020 at 17:31:8, Greg Kroah-Hartman wrote: > On Thu, Oct 29, 2020 at 08:13:36PM +0100, Gustavo Pimentel wrote: > > Add Synopsys DesignWare xData IP driver. This driver enables/disables > > the PCI traffic generator module pertain to the Synopsys DesignWare > > prototype.

[PATCH] ASoc: adi: Kconfig: Remove depends on for ADI reference designs

2020-11-10 Thread Alexandru Ardelean
From: Bogdan Togorean Audio ADI reference designs are also used on some ZynqMP boards, and can also be used on Intel FPGA boards and also on some more complex FPGA combinations (FPGA cards connected through PCIe). This change removes the dependency on Microblaze and Zynq architectures to allow t

Re: [PATCH v2] mm: memcg/slab: Fix root memcg vmstats

2020-11-10 Thread Shakeel Butt
On Mon, Nov 9, 2020 at 7:10 PM Muchun Song wrote: > > If we reparent the slab objects to the root memcg, when we free > the slab object, we need to update the per-memcg vmstats to keep > it correct for the root memcg. Now this at least affects the vmstat > of NR_KERNEL_STACK_KB for !CONFIG_VMAP_ST

Re: [PATCH] mm/zsmalloc: include sparsemem.h for MAX_PHYSMEM_BITS

2020-11-10 Thread Arnd Bergmann
On Tue, Nov 10, 2020 at 1:24 PM Stefan Agner wrote: > On 2020-11-10 12:21, Arnd Bergmann wrote: > > Good idea. I wonder what other architectures need the same though. > > >> That's what x86 does: > >> > >> $ git grep -w MAX_POSSIBLE_PHYSMEM_BITS arch/ > >> arch/x86/include/asm/pgtable-3level_types

Re: [PATCH V9 1/4] perf/core: Add PERF_SAMPLE_DATA_PAGE_SIZE

2020-11-10 Thread Liang, Kan
On 11/4/2020 12:11 PM, Liang, Kan wrote: On 10/13/2020 12:34 PM, Peter Zijlstra wrote: Subject: perf,mm: Handle non-page-table-aligned hugetlbfs From: Peter Zijlstra Date: Fri, 9 Oct 2020 11:09:27 +0200 A limited nunmber of architectures support hugetlbfs sizes that do not align with the p

[PATCH] arm64: zynqmp: Move gic node to axi bus

2020-11-10 Thread Michal Simek
The reason for this change is that after change from amba to axi U-Boot started to show error like: Unable to update property /axi/ethernet@ff0e:mac-address, err=FDT_ERR_NOTFOUND Unable to update property /axi/ethernet@ff0e:local-mac-address, err=FDT_ERR_NOTFOUND The reason is implementa

Re: linux-next: build warnings after merge of the rcu tree

2020-11-10 Thread Paul E. McKenney
On Tue, Nov 10, 2020 at 05:59:52PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the rcu tree, today's linux-next build (htmldocs) > produced these warnings: > > Documentation/RCU/Design/Requirements/Requirements.rst:119: WARNING: > Malformed table. My bad, apologies, queuing an al

Re: [PATCH V3] memory: tegra: add missing put_device() call in error path of tegra_emc_probe()

2020-11-10 Thread Krzysztof Kozlowski
On Tue, Nov 10, 2020 at 09:33:11AM +0800, Yu Kuai wrote: > The reference to device obtained with of_find_device_by_node() should > be dropped. Thus add jump target to fix the exception handling for this > function implementation. > > Fixes: 73a7f0a90641("memory: tegra: Add EMC (external memory con

[PATCH v2 3/3] riscv: defconfig: enable gpio support for HiFive Unleashed

2020-11-10 Thread Sagar Shrikant Kadam
Ethernet phy VSC8541-01 on HiFive Unleashed has its reset line connected to a gpio, so enable GPIO driver's required to reset the phy. Signed-off-by: Sagar Shrikant Kadam --- arch/riscv/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/configs/defconfig b/arch/ri

[PATCH v2 2/3] dts: phy: add GPIO number and active state used for phy reset

2020-11-10 Thread Sagar Shrikant Kadam
The GEMGXL_RST line on HiFive Unleashed is pulled low and is using GPIO number 12. Add these reset-gpio details to dt-node using which the linux phylib can reset the phy. Signed-off-by: Sagar Shrikant Kadam --- arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 1 + 1 file changed, 1 insertio

[PATCH v2 0/3] fix macb phy probe failure if phy-reset is not handled

2020-11-10 Thread Sagar Shrikant Kadam
HiFive Unleashed is having VSC8541-01 ethernet phy device and requires a specific reset sequence of 0-1-0-1 in order to use it in unmanaged mode. This series addresses a corner case where phy reset is not handled by boot stages prior to linux. Somewhat similar unreliable phy probe failure was repor

[PATCH v2 1/3] dts: phy: fix missing mdio device and probe failure of vsc8541-01 device

2020-11-10 Thread Sagar Shrikant Kadam
HiFive unleashed A00 board has VSC8541-01 ethernet phy, this device is identified as a Revision B device as described in device identification registers. In order to use this phy in the unmanaged mode, it requires a specific reset sequence of logical 0-1-0-1 transition on the NRESET pin as document

Re: [PATCH] mm: memcg/slab: enable slab memory accounting atomically

2020-11-10 Thread Johannes Weiner
On Mon, Nov 09, 2020 at 05:06:15PM -0800, Roman Gushchin wrote: > Many kernel memory accounting paths are guarded by the > memcg_kmem_enabled_key static key. It changes it's state during > the onlining of the first non-root cgroup. However is doesn't > happen atomically: before all call sites will

[PATCH v2] mfd: kempld-core: Check for DMI definition before ACPI

2020-11-10 Thread Michael Brunner
Change the detection order to priorize DMI table entries over available ACPI entries. This makes it more easy for product developers to patch product specific handling into the driver. Furthermore it allows to simplify the implementation a bit and especially to remove the need to force synchronous

Re: [PATCH] audit: remove unused macros

2020-11-10 Thread Richard Guy Briggs
On 2020-11-06 16:31, Alex Shi wrote: > Some unused macros could cause gcc warning: > kernel/audit.c:68:0: warning: macro "AUDIT_UNINITIALIZED" is not used > [-Wunused-macros] > kernel/auditsc.c:104:0: warning: macro "AUDIT_AUX_IPCPERM" is not used > [-Wunused-macros] > kernel/auditsc.c:82:0: warnin

Re: [PATCH][next] cpumask: allocate enough space for string and trailing '\0' char

2020-11-10 Thread Paul E. McKenney
On Mon, Nov 09, 2020 at 11:57:15PM -0500, Paul Gortmaker wrote: > > > On 2020-11-09 8:07 p.m., Qian Cai wrote: > > On Mon, 2020-11-09 at 13:04 +, Colin King wrote: > > > From: Colin Ian King > > > > > > Currently the allocation of cpulist is based on the length of buf but does > > > not inc

Re: [PATCH v1 07/24] kvm: arm64: Create nVHE copy of cpu_logical_map

2020-11-10 Thread Marc Zyngier
On 2020-11-09 11:32, David Brazdil wrote: When KVM starts validating host's PSCI requests, it will need to map MPIDR back to the CPU ID. To this end, copy cpu_logical_map into nVHE hyp memory when KVM is initialized. Only copy the information for CPUs that are online at the point of KVM initiali

Re: [PATCH v2] mm: memcg/slab: Fix root memcg vmstats

2020-11-10 Thread Johannes Weiner
On Tue, Nov 10, 2020 at 11:10:15AM +0800, Muchun Song wrote: > If we reparent the slab objects to the root memcg, when we free > the slab object, we need to update the per-memcg vmstats to keep > it correct for the root memcg. Now this at least affects the vmstat > of NR_KERNEL_STACK_KB for !CONFIG

Re: [PATCH 03/24] perf: Add build id data in mmap2 event

2020-11-10 Thread Arnaldo Carvalho de Melo
Em Tue, Nov 10, 2020 at 01:22:32PM +0100, Peter Zijlstra escreveu: > On Tue, Nov 10, 2020 at 08:54:26AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Tue, Nov 10, 2020 at 09:07:16AM +0100, Peter Zijlstra escreveu: > > > On Mon, Nov 09, 2020 at 10:53:54PM +0100, Jiri Olsa wrote: > > > > Adding suppo

[PATCHv2] arm64: dts: freescale: fix typo Makefile

2020-11-10 Thread Anders Roxell
While trying to do 'make dtbs_install' the following error shows up make[3]: *** No rule to make target '/tmp/out/obj-dir/dtbinstallfreescale/imx8mm-kontron-n801x-s.dts', needed by '__dtbs_install'. Fix typo in imx8mm-kontron-n801x-s.dts change file ending to *.dtb Fixes: 8668d8b2e67f ("arm64

Re: [PATCH v5 1/9] lib: zstd: Add zstd compatibility wrapper

2020-11-10 Thread David Sterba
On Mon, Nov 09, 2020 at 02:01:41PM -0500, Chris Mason wrote: > On 6 Nov 2020, at 13:38, Christoph Hellwig wrote: > > You just keep resedning this crap, don't you? Haven't you been told > > multiple times to provide a proper kernel API by now? > > You do consistently ask for a shim layer, but you

Re: [PATCH v1 08/24] kvm: arm64: Move hyp-init params to a per-CPU struct

2020-11-10 Thread Marc Zyngier
On 2020-11-09 11:32, David Brazdil wrote: Once we start initializing KVM on newly booted cores before the rest of the kernel, parameters to __do_hyp_init will need to be provided by EL2 rather than EL1. At that point it will not be possible to pass its four arguments directly because PSCI_CPU_ON

Re: [PATCH v2 0/4] support for global CPU list abbreviations

2020-11-10 Thread Paul E. McKenney
On Mon, Nov 09, 2020 at 11:07:21PM -0500, Paul Gortmaker wrote: > RFC/v1 ---> v2: > > commit #1: >leave one line stub behind for !SMP solving build failures. >Reported by Randy Dunlap and various build bots. > > commit #4 >manage to remember '\0' char in strlen from one line to the ne

Re: [PATCH][next] cpumask: allocate enough space for string and trailing '\0' char

2020-11-10 Thread Colin Ian King
On 10/11/2020 15:24, Paul E. McKenney wrote: > On Mon, Nov 09, 2020 at 11:57:15PM -0500, Paul Gortmaker wrote: >> >> >> On 2020-11-09 8:07 p.m., Qian Cai wrote: >>> On Mon, 2020-11-09 at 13:04 +, Colin King wrote: From: Colin Ian King Currently the allocation of cpulist is based

Re: [RFC] fs: Avoid to use lockdep information if it's turned off

2020-11-10 Thread David Sterba
On Tue, Nov 10, 2020 at 09:37:37AM +0800, Boqun Feng wrote: > Filipe Manana reported a warning followed by task hanging after attempts > to freeze a filesystem[1]. The problem happened in a LOCKDEP=y kernel, > and percpu_rwsem_is_held() provided incorrect results when > debug_locks == 0. Although t

Re: drivers/mtd/maps/physmap-bt1-rom.c:78:18: sparse: sparse: cast removes address space '__iomem' of expression

2020-11-10 Thread Miquel Raynal
Hi Serge, Serge Semin wrote on Tue, 10 Nov 2020 14:38:27 +0300: > Hello Miquel, > > A situation noted by the warning below won't cause any problem because > the casting is done to a non-dereferenced variable. It is utilized > as a pointer bias later in that function. Shall we just ignore the >

Re: [PATCH] net: sched: fix misspellings using misspell-fixer tool

2020-11-10 Thread Menglong Dong
Hi, John. On Tue, Nov 10, 2020 at 5:23 AM John Fastabend wrote: > > Hi, you will want to add net-next to the [PATCH *] line next time > to make it clear this is for net-next. The contents make it > obvious in this case though. > > Also I'm not sure why the bpf@ include but OK. Thanks for your su

[PATCH] perf/intel: Remove Perfmon-v4 counter_freezing support

2020-11-10 Thread Peter Zijlstra
On Tue, Nov 10, 2020 at 04:12:57PM +0100, Peter Zijlstra wrote: > On Mon, Nov 09, 2020 at 10:12:37AM +0800, Like Xu wrote: > > The Precise Event Based Sampling(PEBS) supported on Intel Ice Lake server > > platforms can provide an architectural state of the instruction executed > > after the instruc

[rcu:rcu/next] BUILD SUCCESS c0a41bf9dbc751692c8cb1a44bfd48e70e8bef7f

2020-11-10 Thread kernel test robot
onfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a003-20201110 x86_64 randc

[PATCH] arm64: dts: mcbin-singleshot: add heartbeat LED

2020-11-10 Thread Tomasz Maciej Nowak
With board revision 1.3, SolidRun moved the power LED to the middle of the board. In old place of power LED a GPIO controllable heartbeat LED was added. This commit only touches Single Shot variant, since only this variant is all revision 1.3. Reported-by: Alexandra Alth Signed-off-by: Tomasz Mac

bootconfig length parse error in kernel

2020-11-10 Thread Chen Yu
Hi Masami, Thanks for writing bootconfig and it is useful for boot up trace event debugging. However it was found that on 5.10-rc2 the bootconfig does not work and it shows "'bootconfig' found on command line, but no bootconfig found" And the reason for this is the kernel found the magic number to

[PATCH RT 1/5] net: Properly annotate the try-lock for the seqlock

2020-11-10 Thread Steven Rostedt
5.4.74-rt42-rc2 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior In patch ("net/Qdisc: use a seqlock instead seqcount") the seqcount has been replaced with a seqlock to allow to reader to boost the preempted writer. Th

[PATCH RT 4/5] timers: Dont block on ->expiry_lock for TIMER_IRQSAFE

2020-11-10 Thread Steven Rostedt
5.4.74-rt42-rc2 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior PREEMPT_RT does not spin and wait until a running timer completes its callback but instead it blocks on a sleeping lock to prevent a deadlock. This blocking

[PATCH RT 5/5] Linux 5.4.74-rt42-rc2

2020-11-10 Thread Steven Rostedt
5.4.74-rt42-rc2 stable review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (VMware)" --- localversion-rt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt index 629e0b4384b8..9338de9953e3 1

[PATCH RT 0/5] Linux 5.4.74-rt42-rc2

2020-11-10 Thread Steven Rostedt
Dear RT Folks, This is the RT stable review cycle of patch 5.4.74-rt42-rc2. Please scream at me if I messed something up. Please test the patches too. The -rc release will be uploaded to kernel.org and will be deleted when the final release is out. This is just a review release (or release can

[PATCH RT 3/5] ptrace: fix ptrace_unfreeze_traced() race with rt-lock

2020-11-10 Thread Steven Rostedt
5.4.74-rt42-rc2 stable review patch. If anyone has any objections, please let me know. -- From: Oleg Nesterov The patch "ptrace: fix ptrace vs tasklist_lock race" changed ptrace_freeze_traced() to take task->saved_state into account, but ptrace_unfreeze_traced() has the same pro

[PATCH RT 2/5] mm/memcontrol: Disable preemption in __mod_memcg_lruvec_state()

2020-11-10 Thread Steven Rostedt
5.4.74-rt42-rc2 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior The callers expect disabled preemption/interrupts while invoking __mod_memcg_lruvec_state(). This works mainline because a lock of somekind is acquired. Use

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