Re: [PATCH v2 3/5] xen/events: only register debug interrupt for 2-level events

2020-10-22 Thread Jan Beulich
On 22.10.2020 11:49, Juergen Gross wrote: > @@ -2080,10 +2080,12 @@ void __init xen_init_IRQ(void) > int ret = -EINVAL; > evtchn_port_t evtchn; > > - if (fifo_events) > + if (xen_fifo_events) > ret = xen_evtchn_fifo_init(); > - if (ret < 0) > + if (ret <

Re: BTI interaction between seccomp filters in systemd and glibc mprotect calls, causing service failures

2020-10-22 Thread Topi Miettinen
On 22.10.2020 10.54, Szabolcs Nagy wrote: The 10/21/2020 22:44, Jeremy Linton wrote: There is a problem with glibc+systemd on BTI enabled systems. Systemd has a service flag "MemoryDenyWriteExecute" which uses seccomp to deny PROT_EXEC changes. Glibc enables BTI only on segments which are marked

[PATCH v4 0/3] mainline Plymovent M2M and BAS board

2020-10-22 Thread Oleksij Rempel
changes v4: - add PLYBAS board - PLYM2M: add touchscreen node - PLYM2M: add rename led nodes to led-x changes v3: - use old style copyright text changes v2: - fsl.yaml: reorder ply,plym2m - imx6dl-plym2m.dts: use hyphen instead of underscore in phy-clock Oleksij Rempel (5): dt-bindings: vendor

[PATCH v4 5/5] ARM: dts: add Plymovent BAS board

2020-10-22 Thread Oleksij Rempel
Plymovent BAS is a base system controller produced for the Plymovent filter systems. Co-Developed-by: David Jander Signed-off-by: David Jander Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6dl-plybas.dts | 394

[PATCH v4 1/5] dt-bindings: vendor-prefixes: Add an entry for Plymovent

2020-10-22 Thread Oleksij Rempel
Add "ply" entry for Plymovent Group BV: https://www.plymovent.com/ Signed-off-by: Oleksij Rempel Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Docum

[PATCH v4 3/5] ARM: dts: add Plymovent M2M board

2020-10-22 Thread Oleksij Rempel
Plymovent M2M is a control interface produced for the Plymovent filter systems. Co-Developed-by: David Jander Signed-off-by: David Jander Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/imx6dl-plym2m.dts | 446 2 fil

[PATCH v4 2/5] dt-bindings: arm: fsl: add Plymovent M2M board

2020-10-22 Thread Oleksij Rempel
Add Plymovent Group BV M2M iMX6dl based board Signed-off-by: Oleksij Rempel Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.ya

[PATCH v4 4/5] dt-bindings: arm: fsl: add Plymovent BAS board

2020-10-22 Thread Oleksij Rempel
Add Plymovent Group BV BAS iMX6dl based board Signed-off-by: Oleksij Rempel --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index e94a455eeab9..

Re: [PATCH] x86/alternative: don't call text_poke() in lazy TLB mode

2020-10-22 Thread Peter Zijlstra
On Thu, Oct 22, 2020 at 11:24:39AM +0200, Jürgen Groß wrote: > On 09.10.20 16:42, Juergen Gross wrote: > > When running in lazy TLB mode the currently active page tables might > > be the ones of a previous process, e.g. when running a kernel thread. > > > > This can be problematic in case kernel c

Re: [PATCH v8 2/4] SFH: PCIe driver to add support of AMD sensor fusion hub

2020-10-22 Thread Richard Neumann
Hi all, on a quick glance, I noticed, that the sensor masks (*_EN) are no longer derived from their indices: amd_sfh_pcie.h: enum sensor_idx { accel_idx = 0, gyro_idx = 1, mag_idx = 2, als_idx = 19 }; amd_sfh_pcie.c: #define ACEL_EN BIT(

Re: [PATCH 01/13] dt-bindings: arm: fsl: update TQ-Systems SoMs and boards based on i.MX7

2020-10-22 Thread Matthias Schiffer
On Fri, 2020-09-18 at 13:29 +0200, Matthias Schiffer wrote: > Introduce compatible strings for the TQMa7x SoMs. > > Signed-off-by: Matthias Schiffer Hello Shawn, what is the status of this patch series? I've found the series marked as "archived" in patchwork [1], but I can't find it in any pub

Re: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Viresh Kumar
On 22-10-20, 09:11, Peter Zijlstra wrote: > Well, but we need to do something to force people onto schedutil, > otherwise we'll get more crap like this thread. > > Can we take the choice away? Only let Kconfig select which governors are > available and then set the default ourselves? I mean, the e

Re: Buggy commit tracked to: "Re: [PATCH 2/9] iov_iter: move rw_copy_check_uvector() into lib/iov_iter.c"

2020-10-22 Thread Greg KH
On Thu, Oct 22, 2020 at 11:36:40AM +0200, David Hildenbrand wrote: > On 22.10.20 11:32, David Laight wrote: > > From: David Hildenbrand > >> Sent: 22 October 2020 10:25 > > ... > >> ... especially because I recall that clang and gcc behave slightly > >> differently: > >> > >> https://github.com/hjl

[tip: x86/urgent] x86/alternative: Don't call text_poke() in lazy TLB mode

2020-10-22 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: abee7c494d8c41bb388839bccc47e06247f0d7de Gitweb: https://git.kernel.org/tip/abee7c494d8c41bb388839bccc47e06247f0d7de Author:Juergen Gross AuthorDate:Fri, 09 Oct 2020 16:42:25 +02:00 Committe

Re: [RFC PATCH net-next 7/9] net: dsa: microchip: ksz9477: add hardware time stamping support

2020-10-22 Thread Vladimir Oltean
On Thu, Oct 22, 2020 at 12:01:26PM +0300, Vladimir Oltean wrote: > On Wed, Oct 21, 2020 at 08:02:17PM -0700, Richard Cochran wrote: > > On Thu, Oct 22, 2020 at 02:39:35AM +0300, Vladimir Oltean wrote: > > > So how _does_ that work for TI PHYTER? > > > > > > As far as we understand, the PHYTER appea

Re: [PATCH v2] reset: meson: make it possible to build as a module

2020-10-22 Thread Philipp Zabel
Hi Neil, thank you for the patch. On Mon, 2020-10-19 at 16:48 +0200, Neil Armstrong wrote: > In order to reduce the kernel Image size on multi-platform distributions, > make it possible to build the reset controller driver as a module. > > This partially reverts 8290924e ("reset: meson: make it

Re: [RFC PATCH net-next 1/9] dt-bindings: net: dsa: convert ksz bindings document to yaml

2020-10-22 Thread Kurt Kanzenbach
On Wed Oct 21 2020, Florian Fainelli wrote: > On 10/21/2020 5:16 PM, Vladimir Oltean wrote: >> On Wed, Oct 21, 2020 at 08:52:01AM +0200, Kurt Kanzenbach wrote: >>> On Mon Oct 19 2020, Christian Eggers wrote: >>> The node names should be switch. See dsa.yaml. >>> +compatible = "micr

Re: [PATCH 2/5] thermal: devfreq_cooling: get a copy of device status

2020-10-22 Thread Lukasz Luba
Hi Ionela, On 10/7/20 5:11 PM, Ionela Voinescu wrote: On Monday 21 Sep 2020 at 13:20:04 (+0100), Lukasz Luba wrote: Devfreq cooling needs to now the correct status of the device in order to operate. Do not rely on Devfreq last_status which might be a stale data and get more up-to-date values o

Re: [PATCH] interconnect: qcom: Ensure that the floor bandwidth value is enforced

2020-10-22 Thread Akash Asthana
On 10/21/2020 9:29 PM, Georgi Djakov wrote: Take into account the initial bandwidth from the framework and update the internal sum and max values before committing if needed. This will ensure that the floor bandwidth values are enforced until the providers get into sync state. Fixes: 7d3b0b0d8

[PATCHv2 3/4] coresight: etb10: Fix possible NULL ptr dereference in etb_enable_perf()

2020-10-22 Thread Sai Prakash Ranjan
There was a report of NULL pointer dereference in ETF enable path for perf CS mode with PID monitoring. It is almost 100% reproducible when the process to monitor is something very active such as chrome and with ETF as the sink. But code path shows that ETB has a similar path as ETF, so there coul

[PATCHv2 2/4] coresight: tmc-etf: Fix NULL ptr dereference in tmc_enable_etf_sink_perf()

2020-10-22 Thread Sai Prakash Ranjan
There was a report of NULL pointer dereference in ETF enable path for perf CS mode with PID monitoring. It is almost 100% reproducible when the process to monitor is something very active such as chrome and with ETF as the sink and not ETR. Currently in a bid to find the pid, the owner is dereferen

[PATCHv2 0/4] coresight: etf/etb10/etr: Fix NULL pointer dereference crashes

2020-10-22 Thread Sai Prakash Ranjan
There was a report of NULL pointer dereference in ETF enable path for perf CS mode with PID monitoring. It is almost 100% reproducible when the process to monitor is something very active such as chrome and with ETF as the sink and not ETR. Currently in a bid to find the pid, the owner is dereferen

[PATCHv2 1/4] perf/core: Export is_kernel_event()

2020-10-22 Thread Sai Prakash Ranjan
Export is_kernel_event() to be used by coresight drivers in later changes to check for kernel events and bail out. Suggested-by: Suzuki K Poulose Signed-off-by: Sai Prakash Ranjan --- include/linux/perf_event.h | 2 ++ kernel/events/core.c | 3 ++- 2 files changed, 4 insertions(+), 1 dele

[PATCHv2 4/4] coresight: tmc-etr: Fix possible NULL ptr dereference in get_perf_etr_buf_cpu_wide()

2020-10-22 Thread Sai Prakash Ranjan
There was a report of NULL pointer dereference in ETF enable path for perf CS mode with PID monitoring. It is almost 100% reproducible when the process to monitor is something very active such as chrome and with ETF as the sink but the ETR may also be susceptible to this crash. Currently in a bid

[PATCH] checkpatch: ignore ethtool CamelCase constants

2020-10-22 Thread Łukasz Stelmach
Ignore CamelCase constants describing Ethernet link parameters defined in include/uapi/linux/ethtool.h. Signed-off-by: Łukasz Stelmach --- scripts/checkpatch.pl | 4 1 file changed, 4 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index fab38b493cef..31789c090140

Re: [sparc64] lockdep: Fix lockdep recursion - call trace

2020-10-22 Thread Peter Zijlstra
On Thu, Oct 22, 2020 at 12:21:55PM +0300, Anatoly Pugachev wrote: > Hello! > > Bisected the following linux calltrace after v5.9 : > > [8.650198] systemd[1]: Started Journal Service. > [9.028125] [ cut here ] > [9.028171] WARNING: CPU: 11 PID: 499 at > net/netf

Re: [PATCH v6 3/6] can: ctucanfd: add support for CTU CAN FD open-source IP core - bus independent part.

2020-10-22 Thread Pavel Machek
Hi! > From: Martin Jerabek > > This driver adds support for the CTU CAN FD open-source IP core. > More documentation and core sources at project page > (https://gitlab.fel.cvut.cz/canbus/ctucanfd_ip_core). > The core integration to Xilinx Zynq system as platform driver > is available (https://gi

RE: [PATCH v3] net: macb: add support for high speed interface

2020-10-22 Thread Parshuram Raju Thombare
>If you're going to support pcs_ops for the 10GBASE-R mode, can you >also convert macb to use pcs_ops for the lower speed modes as well? Ok, I will add pcs_ops for low speed as well. In fact, having single pcs_ops and using check for interface type within each method of pcs_ops to decide appropria

Re: [PATCH] x86/alternative: don't call text_poke() in lazy TLB mode

2020-10-22 Thread Jürgen Groß
On 22.10.20 12:45, Peter Zijlstra wrote: On Thu, Oct 22, 2020 at 11:24:39AM +0200, Jürgen Groß wrote: On 09.10.20 16:42, Juergen Gross wrote: When running in lazy TLB mode the currently active page tables might be the ones of a previous process, e.g. when running a kernel thread. This can be p

[PATCH v2 0/2] perf PMU events test: Add scenario for arch std events

2020-10-22 Thread John Garry
The small series covers the following: - Tidy error handling in jevents a bit - Expands on PMU events test to cover jevents arch std events support Differences to v1: - Revert to original logic in jevents.c error path John Garry (2): perf jevents: Tidy error handling perf jevents: Add test fo

[PATCH v2 1/2] perf jevents: Tidy error handling

2020-10-22 Thread John Garry
There is much duplication in the error handling for directory transvering for prcessing JSONs. Factor out the common code to tidy a bit. Signed-off-by: John Garry --- tools/perf/pmu-events/jevents.c | 83 ++--- 1 file changed, 35 insertions(+), 48 deletions(-) diff

[PATCH v2 2/2] perf jevents: Add test for arch std events

2020-10-22 Thread John Garry
Recently there was an undetected breakage for std arch event support. Add support in "PMU events" testcase to detect such breakages. For this, the "test" arch needs has support added to process std arch events. And a test event is added for the test, ifself. Also add a few code comments to help

Re: [PATCH 2/2] thermal: cpufreq_cooling: Reuse effective_cpu_util()

2020-10-22 Thread Viresh Kumar
On 22-10-20, 11:05, Peter Zijlstra wrote: > On Thu, Oct 22, 2020 at 02:02:55PM +0530, Viresh Kumar wrote: > > One of the issues I see with this is that schedutil may not be > > available in all configurations and it is still absolutely fine to > > using the suggested helper to get the energy number

Re: [PATCH 1/2] coresight: tmc-etf: Fix NULL ptr dereference in tmc_enable_etf_sink_perf()

2020-10-22 Thread Sai Prakash Ranjan
On 2020-10-22 14:57, Suzuki Poulose wrote: On 10/22/20 9:02 AM, Sai Prakash Ranjan wrote: On 2020-10-21 15:38, Suzuki Poulose wrote: On 10/21/20 8:29 AM, Sai Prakash Ranjan wrote: On 2020-10-20 21:40, Sai Prakash Ranjan wrote: On 2020-10-14 21:29, Sai Prakash Ranjan wrote: On 2020-10-14 18:4

Re: [PATCHv2 0/4] coresight: etf/etb10/etr: Fix NULL pointer dereference crashes

2020-10-22 Thread Sai Prakash Ranjan
On 2020-10-22 16:27, Sai Prakash Ranjan wrote: There was a report of NULL pointer dereference in ETF enable path for perf CS mode with PID monitoring. It is almost 100% reproducible when the process to monitor is something very active such as chrome and with ETF as the sink and not ETR. Currently

Re: [RFC PATCH net-next 7/9] net: dsa: microchip: ksz9477: add hardware time stamping support

2020-10-22 Thread Christian Eggers
Hi Vladimir, On Thursday, 22 October 2020, 12:50:14 CEST, Vladimir Oltean wrote: > If the hardware supports p2p one-step, it subtracts the ingress time > stamp value from the Pdelay_Request correction field. The user space > software stack then simply copies the correction field into the > Pdelay

Re: [PATCH 1/2] coresight: tmc-etf: Fix NULL ptr dereference in tmc_enable_etf_sink_perf()

2020-10-22 Thread Suzuki Poulose
On 10/22/20 12:07 PM, Sai Prakash Ranjan wrote: On 2020-10-22 14:57, Suzuki Poulose wrote: On 10/22/20 9:02 AM, Sai Prakash Ranjan wrote: On 2020-10-21 15:38, Suzuki Poulose wrote: On 10/21/20 8:29 AM, Sai Prakash Ranjan wrote: On 2020-10-20 21:40, Sai Prakash Ranjan wrote: On 2020-10-14 21:

Re: [PATCH v1 5/5] drm/i915/display: Introduce DEFINE_STORE_ATTRIBUTE for debugfs

2020-10-22 Thread kernel test robot
Hi Luo, Thank you for the patch! Yet something to improve: [auto build test ERROR on mkp-scsi/for-next] [also build test ERROR on scsi/for-next linus/master next-20201022] [cannot apply to hnaz-linux-mm/master v5.9] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

Re: [PATCH v4 3/3] ARM: dts: add Van der Laan LANMCU board

2020-10-22 Thread Krzysztof Kozlowski
On Thu, Oct 22, 2020 at 12:27:33PM +0200, Oleksij Rempel wrote: > Van der Laan LANMCU is a module for the food storage rooms to control > proper gas composition. > > Co-Developed-by: Robin van der Gracht > Signed-off-by: Robin van der Gracht > Signed-off-by: Oleksij Rempel > Reviewed-by: Krzysz

Re: [PATCH 3/5] thermal: devfreq_cooling: add new registration functions with Energy Model

2020-10-22 Thread Lukasz Luba
On 10/7/20 1:07 PM, Ionela Voinescu wrote: Hi Lukasz, On Monday 21 Sep 2020 at 13:20:05 (+0100), Lukasz Luba wrote: The Energy Model (EM) framework supports devices such as Devfreq. Create new registration functions which automatically register EM for the thermal devfreq_cooling devices. Thi

Re: [sparc64] lockdep: Fix lockdep recursion - call trace

2020-10-22 Thread Peter Zijlstra
On Thu, Oct 22, 2020 at 01:00:16PM +0200, Peter Zijlstra wrote: > On Thu, Oct 22, 2020 at 12:21:55PM +0300, Anatoly Pugachev wrote: > > Hello! > > > > Bisected the following linux calltrace after v5.9 : > > > > [8.650198] systemd[1]: Started Journal Service. > > [9.028125] [ c

Re: [PATCH 1/2] coresight: tmc-etf: Fix NULL ptr dereference in tmc_enable_etf_sink_perf()

2020-10-22 Thread Sai Prakash Ranjan
On 2020-10-22 16:44, Suzuki Poulose wrote: On 10/22/20 12:07 PM, Sai Prakash Ranjan wrote: On 2020-10-22 14:57, Suzuki Poulose wrote: On 10/22/20 9:02 AM, Sai Prakash Ranjan wrote: On 2020-10-21 15:38, Suzuki Poulose wrote: On 10/21/20 8:29 AM, Sai Prakash Ranjan wrote: On 2020-10-20 21:40,

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

2020-10-22 Thread Robin Murphy
On 2020-10-22 02:07, Vanshi Konda wrote: On Thu, Oct 22, 2020 at 12:44:15AM +0100, Robin Murphy wrote: On 2020-10-21 12:02, Jonathan Cameron wrote: On Wed, 21 Oct 2020 09:43:21 +0530 Anshuman Khandual wrote: On 10/20/2020 11:39 PM, Valentin Schneider wrote: Hi, Nit on the subject: this on

AW: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Walter Harms
To avoid this #ifdef jungle .. I guess it would be save to search for a governor even ones that are not enabled. and a second thing: can we change the subject please ? jm2c wh Von: Peter Zijlstra [pet...@infradead.org] Gesendet: Donnerstag, 22. Oktobe

Re: [PATCHv2 0/4] coresight: etf/etb10/etr: Fix NULL pointer dereference crashes

2020-10-22 Thread Sai Prakash Ranjan
On 2020-10-22 16:40, Sai Prakash Ranjan wrote: On 2020-10-22 16:27, Sai Prakash Ranjan wrote: There was a report of NULL pointer dereference in ETF enable path for perf CS mode with PID monitoring. It is almost 100% reproducible when the process to monitor is something very active such as chrome

Re: [PATCH 26/29] arm64: dts: exynos: Harmonize DWC USB3 DT nodes name

2020-10-22 Thread Serge Semin
On Tue, Oct 20, 2020 at 02:43:28PM +0200, Krzysztof Kozlowski wrote: > On Tue, Oct 20, 2020 at 02:59:56PM +0300, Serge Semin wrote: > > In accordance with the DWC USB3 bindings the corresponding node > > name is suppose to comply with the Generic USB HCD DT schema, which > > requires the USB nodes

Re: [PATCH v6 6/6] docs: ctucanfd: CTU CAN FD open-source IP core documentation.

2020-10-22 Thread Pavel Machek
On Thu 2020-10-22 10:36:21, Pavel Pisa wrote: > CTU CAN FD IP core documentation based on Martin Jeřábek's diploma theses > Open-source and Open-hardware CAN FD Protocol Support > https://dspace.cvut.cz/handle/10467/80366 > . > --- > .../ctu/FSM_TXT_Buffer_user.png | Bin 0 -> 174807

Re: [PATCH 4/5] thermal: devfreq_cooling: remove old power model and use EM

2020-10-22 Thread Lukasz Luba
On 10/7/20 4:12 PM, Ionela Voinescu wrote: Hi Lukasz, On Monday 21 Sep 2020 at 13:20:06 (+0100), Lukasz Luba wrote: [..] /** - * freq_get_state() - get the cooling state corresponding to a frequency + * freq_get_state() - get the performance index corresponding to a frequency If we chang

[PATCH] kcsan: Never set up watchpoints on NULL pointers

2020-10-22 Thread Marco Elver
Avoid setting up watchpoints on NULL pointers, as otherwise we would crash inside the KCSAN runtime (when checking for value changes) instead of the instrumented code. Because that may be confusing, skip any address less than PAGE_SIZE. Signed-off-by: Marco Elver --- kernel/kcsan/encoding.h | 6

Re: [PATCH 2/2] thermal: cpufreq_cooling: Reuse effective_cpu_util()

2020-10-22 Thread Rafael J. Wysocki
On Thu, Oct 22, 2020 at 1:07 PM Viresh Kumar wrote: > > On 22-10-20, 11:05, Peter Zijlstra wrote: > > On Thu, Oct 22, 2020 at 02:02:55PM +0530, Viresh Kumar wrote: > > > One of the issues I see with this is that schedutil may not be > > > available in all configurations and it is still absolutely

Re: [PATCHv2 2/4] coresight: tmc-etf: Fix NULL ptr dereference in tmc_enable_etf_sink_perf()

2020-10-22 Thread Peter Zijlstra
On Thu, Oct 22, 2020 at 04:27:52PM +0530, Sai Prakash Ranjan wrote: > Looking at the ETR and other places in the kernel, ETF and the > ETB are the only places trying to dereference the task(owner) > in tmc_enable_etf_sink_perf() which is also called from the > sched_in path as in the call trace.

Re: [RFC PATCH net-next 7/9] net: dsa: microchip: ksz9477: add hardware time stamping support

2020-10-22 Thread Vladimir Oltean
On Thu, Oct 22, 2020 at 01:11:40PM +0200, Christian Eggers wrote: > Hi Vladimir, > > On Thursday, 22 October 2020, 12:50:14 CEST, Vladimir Oltean wrote: > after applying the RX timestamp correctly to the correction field (shifting > the nanoseconds by 16), That modification should have been done

[PATCH] arm64: dts: rockchip: rk3399-orangepi: Properly define the type C connector.

2020-10-22 Thread Alexis Ballier
Tested: - USB3 Gigabit adapter - USB2 mass storage The wiring is the same as the pinebook pro according to the schematics, thus this patch is heavily based on its dts. Signed-off-by: Alexis Ballier Cc: devicet...@vger.kernel.org Cc: Heiko Stuebner Cc: linux-arm-ker...@lists.infradead.org Cc: li

Re: [RFCv2 08/16] KVM: Use GUP instead of copy_from/to_user() to access guest memory

2020-10-22 Thread Kirill A. Shutemov
On Tue, Oct 20, 2020 at 10:29:44AM -0700, Ira Weiny wrote: > On Tue, Oct 20, 2020 at 09:18:51AM +0300, Kirill A. Shutemov wrote: > > New helpers copy_from_guest()/copy_to_guest() to be used if KVM memory > > protection feature is enabled. > > > > Signed-off-by: Kirill A. Shutemov > > --- > > inc

Re: [PATCH] printk: handle blank console arguments passed in.

2020-10-22 Thread Petr Mladek
On Thu 2020-10-08 14:52:38, Sergey Senozhatsky wrote: > On (20/10/08 01:29), Sergey Senozhatsky wrote: > > On (20/10/07 08:57), Guenter Roeck wrote: > > > On 10/7/20 5:30 AM, Sergey Senozhatsky wrote: > > > > [..] > > > > > I can see to options: Link /dev/console to /dev/null if there is no > >

Re: [PATCH 2/2] thermal: cpufreq_cooling: Reuse effective_cpu_util()

2020-10-22 Thread Peter Zijlstra
On Thu, Oct 22, 2020 at 04:36:56PM +0530, Viresh Kumar wrote: > On 22-10-20, 11:05, Peter Zijlstra wrote: > > On Thu, Oct 22, 2020 at 02:02:55PM +0530, Viresh Kumar wrote: > > > One of the issues I see with this is that schedutil may not be > > > available in all configurations and it is still abso

Re: [PATCH v6 4/6] can: ctucanfd: CTU CAN FD open-source IP core - PCI bus support.

2020-10-22 Thread Pavel Machek
Hi! > @@ -12,4 +12,13 @@ config CAN_CTUCANFD > > if CAN_CTUCANFD > > +config CAN_CTUCANFD_PCI > + tristate "CTU CAN-FD IP core PCI/PCIe driver" > + depends on PCI > + help > + This driver adds PCI/PCIe support for CTU CAN-FD IP core. > + The project providing FPGA des

Re: [PATCH v7 1/4] KEYS: trusted: Add generic trusted keys framework

2020-10-22 Thread Sumit Garg
On Wed, 21 Oct 2020 at 17:55, Mimi Zohar wrote: > > On Wed, 2020-10-21 at 11:16 +0530, Sumit Garg wrote: > > Thanks Mimi for your comments. > > > > On Wed, 21 Oct 2020 at 08:51, Mimi Zohar wrote: > > > > > > On Wed, 2020-10-07 at 15:37 +0530, Sumit Garg wrote: > > > > > > > +/* > > > > + * truste

[RFC 0/2] printk: Official way to mute consoles

2020-10-22 Thread Petr Mladek
The long discussion about handling empty console= came up with several problems. This patchset tries to solve the two original problems with empty console="" parameter: + Prevent the potential crash by registering console for /dev/console. + Prevent the performance regression by muting the con

Re: [PATCH] ARM: dts: r8a7742-iwg21d-q7-dbcm-ca: Enable VIN instances

2020-10-22 Thread Geert Uytterhoeven
Hi Prabhakar, On Wed, Oct 14, 2020 at 4:56 PM Lad Prabhakar wrote: > Enable VIN instances along with OV5640 as endpoints on the adapter board. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das Thanks for your patch! Reviewed-by: Geert Uytterhoeven I believe the "data-shift" patches f

Re: [PATCH v6 5/6] can: ctucanfd: CTU CAN FD open-source IP core - platform/SoC support.

2020-10-22 Thread Pavel Machek
Hi! > +++ b/drivers/net/can/ctucanfd/Kconfig > @@ -21,4 +21,15 @@ config CAN_CTUCANFD_PCI > PCIe board with PiKRON.com designed transceiver riser shield is > available > at https://gitlab.fel.cvut.cz/canbus/pcie-ctu_can_fd . > > +config CAN_CTUCANFD_PLATFORM > + tristate "CT

[RFC 1/2] printk: Add kernel parameter: mute_console

2020-10-22 Thread Petr Mladek
Users use various undocumented ways how to completely disable console output. It is usually done by passing an invalid console name, for example, console="", console=null. It mostly works but just by chance. The console name is added to the list of preferred consoles and the variable "preferred_co

Re: [PATCH v3 12/16] PCI: Obey iomem restrictions for procfs mmap

2020-10-22 Thread Jason Gunthorpe
On Thu, Oct 22, 2020 at 09:00:44AM +0200, Daniel Vetter wrote: > On Thu, Oct 22, 2020 at 1:20 AM Jason Gunthorpe wrote: > > > > On Wed, Oct 21, 2020 at 09:24:08PM +0200, Daniel Vetter wrote: > > > On Wed, Oct 21, 2020 at 6:37 PM Jason Gunthorpe wrote: > > > > > > > > On Wed, Oct 21, 2020 at 05:54

RFC 2/2] printk: Restore and document obsolete ways to disable console output

2020-10-22 Thread Petr Mladek
The commit 48021f98130880dd7 ("printk: handle blank console arguments passed in.") prevented crash caused by empty console= parameter value. Unfortunately, this value is widely used on Chromebooks to disable the console output. The above commit caused performance regression because the messages we

Re: [PATCH 2/5] thermal: devfreq_cooling: get a copy of device status

2020-10-22 Thread Lukasz Luba
Hi Daniel, On 10/14/20 3:34 PM, Daniel Lezcano wrote: On 21/09/2020 14:20, Lukasz Luba wrote: Devfreq cooling needs to now the correct status of the device in order to operate. Do not rely on Devfreq last_status which might be a stale data and get more up-to-date values of the load. Devfreq fr

Re: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Rafael J. Wysocki
On Thursday, October 22, 2020 12:47:03 PM CEST Viresh Kumar wrote: > On 22-10-20, 09:11, Peter Zijlstra wrote: > > Well, but we need to do something to force people onto schedutil, > > otherwise we'll get more crap like this thread. > > > > Can we take the choice away? Only let Kconfig select whic

[PATCH v2 1/2] kcsan: selftest: Ensure that address is at least PAGE_SIZE

2020-10-22 Thread Marco Elver
In preparation of supporting only addresses not within the NULL page, change the selftest to never use addresses that are less than PAGE_SIZE. Signed-off-by: Marco Elver --- v2: * Introduce patch to series. --- kernel/kcsan/selftest.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel

[PATCH v2 2/2] kcsan: Never set up watchpoints on NULL pointers

2020-10-22 Thread Marco Elver
Avoid setting up watchpoints on NULL pointers, as otherwise we would crash inside the KCSAN runtime (when checking for value changes) instead of the instrumented code. Because that may be confusing, skip any address less than PAGE_SIZE. Signed-off-by: Marco Elver --- kernel/kcsan/encoding.h | 6

Re: [PATCH] kcsan: Never set up watchpoints on NULL pointers

2020-10-22 Thread Marco Elver
On Thu, 22 Oct 2020 at 13:30, Marco Elver wrote: > > Avoid setting up watchpoints on NULL pointers, as otherwise we would > crash inside the KCSAN runtime (when checking for value changes) instead > of the instrumented code. > > Because that may be confusing, skip any address less than PAGE_SIZE.

Re: [PATCH 1/2] x86: Remove led/gpio setup from pcengines platform driver

2020-10-22 Thread Enrico Weigelt, metux IT consult
On 21.10.20 23:54, Ed W wrote: Hi, > OK, I've just sent a new patch which conditionally configures GPIOs for > boards with older firmware's > (older than 4.10.0). as mentioned in my reply to it: still breaks existing userlands as device names and keycodes change. userland would need to become d

Re: [RFCv2 08/16] KVM: Use GUP instead of copy_from/to_user() to access guest memory

2020-10-22 Thread Matthew Wilcox
On Tue, Oct 20, 2020 at 01:25:59AM -0700, John Hubbard wrote: > Should copy_to_guest() use pin_user_pages_unlocked() instead of gup_unlocked? > We wrote a "Case 5" in Documentation/core-api/pin_user_pages.rst, just for > this > situation, I think: > > > CASE 5: Pinning in order to write to the

Re: [PATCH v5 1/5] arm64: Add framework to turn IPI as NMI

2020-10-22 Thread Sumit Garg
On Wed, 21 Oct 2020 at 15:57, Marc Zyngier wrote: > > On 2020-10-20 12:22, Sumit Garg wrote: > > On Tue, 20 Oct 2020 at 15:38, Marc Zyngier wrote: > >> > >> On 2020-10-20 07:43, Sumit Garg wrote: > >> > On Mon, 19 Oct 2020 at 17:07, Marc Zyngier wrote: > >> > >> [...] > >> > >> >> > +{ > >> >> >

Re: [PATCH] checkpatch: ignore ethtool CamelCase constants

2020-10-22 Thread Joe Perches
On Thu, 2020-10-22 at 13:01 +0200, Łukasz Stelmach wrote: > Ignore CamelCase constants describing Ethernet link parameters defined > in include/uapi/linux/ethtool.h. [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -5295,6 +5295,10 @@ sub process { > #CamelCase >

[PATCH 2/2] cpufreq: Drop restore_freq from struct cpufreq_policy

2020-10-22 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The restore_freq field in struct cpufreq_policy is only used by __target_index() in one place and a local variable in that function may as well be used instead of it, so drop it and modify __target_index() accordingly. Signed-off-by: Rafael J. Wysocki --- drivers/cpufre

[PATCH 0/2] cpufreq: intel_pstate: Avoid missing HWP max limit updates with powersave governor

2020-10-22 Thread Rafael J. Wysocki
Hi All, There is a problem in intel_pstate that if it works in the passive mode with HWP enabled and the "powersave" governor is used on top of it, then changing the policy max frequency doesn't cause the HWP max limit to be updated which is quite confusing. That happens because of two checks, on

[PATCH 1/2] cpufreq: intel_pstate: Avoid missing HWP max updates in passive mode

2020-10-22 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If the cpufreq policy max limit is changed when intel_pstate operates in the passive mode with HWP enabled and the "powersave" governor is used on top of it, the HWP max limit is not updated as appropriate. Namely, in the "powersave" governor case, the target P-state is a

Re: [PATCH 2/2] thermal: cpufreq_cooling: Reuse effective_cpu_util()

2020-10-22 Thread Peter Zijlstra
On Thu, Oct 22, 2020 at 01:30:01PM +0200, Rafael J. Wysocki wrote: > Many people use intel_pstate in the active mode with HWP enabled too. We now have HWP-passive supported, afaict. So we should discourage that. That is; I'll care less and less about people not using schedutil as time goes on.

[PATCH] hwmon: (pmbus) Add driver for STMicroelectronics PM6764TR Voltage Regulator

2020-10-22 Thread Charles Hsu
Add the pmbus driver for the STMicroelectronics pm6764tr voltage regulator. Signed-off-by: Charles Hsu --- drivers/hwmon/pmbus/Kconfig| 8 drivers/hwmon/pmbus/Makefile | 1 + drivers/hwmon/pmbus/pm6764tr.c | 76 ++ 3 files changed, 85 insertions(+) c

Re: [RFCv2 09/16] KVM: mm: Introduce VM_KVM_PROTECTED

2020-10-22 Thread Kirill A. Shutemov
On Wed, Oct 21, 2020 at 06:47:32PM +, Edgecombe, Rick P wrote: > On Tue, 2020-10-20 at 09:18 +0300, Kirill A. Shutemov wrote: > > include/linux/mm.h | 8 > > mm/gup.c| 20 > > mm/huge_memory.c| 20 > > mm/memory.c |

default cpufreq gov, was: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Peter Zijlstra
On Thu, Oct 22, 2020 at 01:45:25PM +0200, Rafael J. Wysocki wrote: > On Thursday, October 22, 2020 12:47:03 PM CEST Viresh Kumar wrote: > > On 22-10-20, 09:11, Peter Zijlstra wrote: > > > Well, but we need to do something to force people onto schedutil, > > > otherwise we'll get more crap like this

Re: [RFCv2 14/16] KVM: Handle protected memory in __kvm_map_gfn()/__kvm_unmap_gfn()

2020-10-22 Thread Kirill A. Shutemov
On Wed, Oct 21, 2020 at 06:50:28PM +, Edgecombe, Rick P wrote: > On Tue, 2020-10-20 at 09:18 +0300, Kirill A. Shutemov wrote: > > @@ -467,7 +477,7 @@ void iounmap(volatile void __iomem *addr) > > p = find_vm_area((void __force *)addr); > > > > if (!p) { > > - printk(KERN_ERR

Re: [RFCv2 14/16] KVM: Handle protected memory in __kvm_map_gfn()/__kvm_unmap_gfn()

2020-10-22 Thread Kirill A. Shutemov
On Thu, Oct 22, 2020 at 05:26:47AM +0200, Halil Pasic wrote: > On Tue, 20 Oct 2020 09:18:57 +0300 > "Kirill A. Shutemov" wrote: > > > We cannot access protected pages directly. Use ioremap() to > > create a temporary mapping of the page. The mapping is destroyed > > on __kvm_unmap_gfn(). > > > >

Re: [PATCH 2/2] thermal: cpufreq_cooling: Reuse effective_cpu_util()

2020-10-22 Thread Rafael J. Wysocki
On Thu, Oct 22, 2020 at 1:58 PM Peter Zijlstra wrote: > > On Thu, Oct 22, 2020 at 01:30:01PM +0200, Rafael J. Wysocki wrote: > > > Many people use intel_pstate in the active mode with HWP enabled too. > > We now have HWP-passive supported, afaict. So we should discourage that. Which is kind of ha

Re: [PATCH 2/2] Platform integrity information in sysfs (version 9)

2020-10-22 Thread Daniel Gutson
On Sun, Oct 4, 2020 at 1:01 AM Randy Dunlap wrote: > > On 9/30/20 9:37 AM, Daniel Gutson wrote: > > diff --git a/drivers/mtd/spi-nor/controllers/Kconfig > > b/drivers/mtd/spi-nor/controllers/Kconfig > > index 5c0e0ec2e6d1..e7eaef506fc2 100644 > > --- a/drivers/mtd/spi-nor/controllers/Kconfig > >

[GIT PULL] 9p update for 5.10-rc1

2020-10-22 Thread Dominique Martinet
Hi Linus, another harmless cycle. (sorry latest commit's message isn't great, I was half expecting a v2 but it didn't come and I remembered too late/didn't want to reword it myself; and it's still worth taking as is) Thanks, The following changes since commit 549738f15da0e5a00275977623be199fb

Re: Use after free in bcm2835_spi_remove()

2020-10-22 Thread Lukas Wunner
On Wed, Oct 14, 2020 at 02:20:16PM -0700, Florian Fainelli wrote: > In bcm2835_spi_remove(), spi_controller_unregister() will free the ctlr > reference which will lead to an use after free in bcm2835_release_dma(). > > To avoid this use after free, allocate the bcm2835_spi structure with a > diffe

Re: Buggy commit tracked to: "Re: [PATCH 2/9] iov_iter: move rw_copy_check_uvector() into lib/iov_iter.c"

2020-10-22 Thread Greg KH
On Thu, Oct 22, 2020 at 12:48:05PM +0200, Greg KH wrote: > On Thu, Oct 22, 2020 at 11:36:40AM +0200, David Hildenbrand wrote: > > On 22.10.20 11:32, David Laight wrote: > > > From: David Hildenbrand > > >> Sent: 22 October 2020 10:25 > > > ... > > >> ... especially because I recall that clang and g

Re: default cpufreq gov, was: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Rafael J. Wysocki
[CC linux-pm and Len] On Thursday, October 22, 2020 2:02:13 PM CEST Peter Zijlstra wrote: > On Thu, Oct 22, 2020 at 01:45:25PM +0200, Rafael J. Wysocki wrote: > > On Thursday, October 22, 2020 12:47:03 PM CEST Viresh Kumar wrote: > > > On 22-10-20, 09:11, Peter Zijlstra wrote: > > > > Well, but we

Re: [PATCH] hugetlb_cgroup: fix reservation accounting

2020-10-22 Thread Michael S. Tsirkin
On Wed, Oct 21, 2020 at 01:44:26PM -0700, Mike Kravetz wrote: > Michal Privoznik was using "free page reporting" in QEMU/virtio-balloon > with hugetlbfs and hit the warning below. QEMU with free page hinting > uses fallocate(FALLOC_FL_PUNCH_HOLE) to discard pages that are reported > as free by a V

Re: [PATCH v2 1/3] x86, sched: check for counters overflow in frequency invariant accounting

2020-10-22 Thread Giovanni Gherdovich
On Thu, 2020-10-22 at 10:46 +0200, Peter Zijlstra wrote: > On Sun, May 31, 2020 at 08:24:51PM +0200, Giovanni Gherdovich wrote: > > Hi Giovanni! > > > +error: > > + pr_warn("Scheduler frequency invariance went wobbly, disabling!\n"); > > + schedule_work(&disable_freq_invariance_work); > > +}

Re: [PATCH v4 3/7] of/address: Introduce of_dma_get_max_cpu_address()

2020-10-22 Thread Ard Biesheuvel
On Wed, 21 Oct 2020 at 14:35, Nicolas Saenz Julienne wrote: > > Introduce of_dma_get_max_cpu_address(), which provides the highest CPU > physical address addressable by all DMA masters in the system. It's > specially useful for setting memory zones sizes at early boot time. > > Signed-off-by: Nico

[RFC PATCH] x86: cmp_version() can be static

2020-10-22 Thread kernel test robot
Signed-off-by: kernel test robot --- pcengines-apuv2.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/pcengines-apuv2.c b/drivers/platform/x86/pcengines-apuv2.c index 45f7a89de2780c..2f579bf9917645 100644 --- a/drivers/platform/x86/pcengines-apuv2.c

Re: [PATCH 1/2] x86: Conditional init of pcengines leds/keys gpios

2020-10-22 Thread kernel test robot
Hi Ed, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tip/master] [also build test WARNING on linus/master linux/master platform-drivers-x86/for-next v5.9 next-20201022] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

[PATCH] media: v4l2-mem2mem: always call poll_wait() on queues

2020-10-22 Thread Alexandre Courbot
do_poll()/do_select() seem to set the _qproc member of poll_table to NULL the first time they are called on a given table, making subsequent calls of poll_wait() on that table no-ops. This is a problem for mem2mem which calls poll_wait() on the V4L2 queues' waitqueues only when a queue-related even

[PATCH] vfio/type1: Use the new helper to find vfio_group

2020-10-22 Thread Zenghui Yu
When attaching a new group to the container, let's use the new helper vfio_iommu_find_iommu_group() to check if it's already attached. There is no functional change. Also take this chance to add a missing blank line. Signed-off-by: Zenghui Yu --- drivers/vfio/vfio_iommu_type1.c | 17 +--

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

2020-10-22 Thread Richard Palethorpe
When use_hierarchy=1, SLAB objects which outlive their descendant memcg are moved to their parent memcg where they may be uncharged because charges are made recursively from leaf to root nodes. However when use_hierarchy=0, they are reparented directly to root and charging is not made recursively.

Re: [PATCH v4 4/4] PCI: Limit pci_alloc_irq_vectors() to housekeeping CPUs

2020-10-22 Thread Marcelo Tosatti
On Wed, Oct 21, 2020 at 10:25:48PM +0200, Thomas Gleixner wrote: > On Tue, Oct 20 2020 at 20:07, Thomas Gleixner wrote: > > On Tue, Oct 20 2020 at 12:18, Nitesh Narayan Lal wrote: > >> However, IMHO we would still need a logic to prevent the devices from > >> creating excess vectors. > > > > Manage

Re: [PATCH v1 0/5] Introduce a new helper marco DEFINE_STORE_ATTRIBUTE at seq_file.c

2020-10-22 Thread Al Viro
On Thu, Oct 22, 2020 at 04:39:52PM +0800, Luo Jiaxing wrote: > We already own DEFINE_SHOW_ATTRIBUTE() helper macro for defining attribute > for read-only file, but we found many of drivers also want a helper marco for > read-write file too. DEFINE_SHOW_ATTRIBUTE is a bloody bad idea; let's not rep

Re: [PATCH v2] net: xfrm: fix a race condition during allocing spi

2020-10-22 Thread Herbert Xu
On Thu, Oct 22, 2020 at 06:01:27PM +0800, Zhuoliang Zhang wrote: > From: zhuoliang zhang > > we found that the following race condition exists in > xfrm_alloc_userspi flow: > > user threadstate_hash_work thread >

Re: default cpufreq gov, was: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Peter Zijlstra
On Thu, Oct 22, 2020 at 02:19:29PM +0200, Rafael J. Wysocki wrote: > > However I do want to retire ondemand, conservative and also very much > > intel_pstate/active mode. > > I agree in general, but IMO it would not be prudent to do that without making > schedutil provide the same level of perform

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