[PATCH RESEND] mm: fix some typos and code style problems

2021-04-19 Thread Shijie Luo
fix some typos and code style problems in mm. gfp.h: s/MAXNODES/MAX_NUMNODES mmzone.h: s/then/than rmap.c: s/__vma_split()/__vma_adjust() swap.c: s/__mod_zone_page_stat/__mod_zone_page_state, s/is is/is swap_state.c: s/whoes/whose z3fold.c: code style problem fix in z3fold_unregister_migration zsm

Re: [PATCH v3] drivers/clocksource/mediatek: Ack and disable interrupts on suspend

2021-04-19 Thread Daniel Lezcano
On 12/04/2021 05:22, Evan Benn wrote: > Interrupts are disabled during suspend before this driver disables its > timers. ARM trusted firmware will abort suspend if the timer irq is > pending, so ack and disable the timer interrupt during suspend. > > Signed-off-by: Evan Benn > --- > > Changes in

Re: [PATCH] MAINTAINERS: adjust to removing i2c designware platform data

2021-04-19 Thread Andy Shevchenko
eviewed-by: Andy Shevchenko Thanks for the catch! > Signed-off-by: Lukas Bulwahn > --- > applies cleanly on next-20210419 > > Andy, please ack. > Lee, please pick this minor patch on your -next tree. > > MAINTAINERS | 1 - > 1 file changed, 1 deletion(-) > >

[PATCH v5 0/7] Add SR-IOV support in PCIe Endpoint Core

2021-04-19 Thread Kishon Vijay Abraham I
Patch series *) Adds support to add virtual functions to enable endpoint controller which supports SR-IOV capability *) Add support in Cadence endpoint driver to configure virtual functions *) Enable pci_endpoint_test driver to create pci_device for virtual functions v1 of the patch series c

[PATCH v5 2/7] PCI: endpoint: Add support to add virtual function in endpoint core

2021-04-19 Thread Kishon Vijay Abraham I
Add support to add virtual function in endpoint core. The virtual function can only be associated with a physical function instead of a endpoint controller. Provide APIs to associate a virtual function with a physical function here. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/

[PATCH v5 1/7] dt-bindings: PCI: pci-ep: Add binding to specify virtual function

2021-04-19 Thread Kishon Vijay Abraham I
Add binding to specify virtual function (associated with each physical function) in endpoint mode. Signed-off-by: Kishon Vijay Abraham I Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/pci/pci-ep.yaml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/device

[PATCH v5 3/7] PCI: endpoint: Add support to link a physical function to a virtual function

2021-04-19 Thread Kishon Vijay Abraham I
While the physical function has to be linked to endpoint controller, the virtual function has to be linked to a physical function. Add support to link a physical function to a virtual function in pci-ep-cfs. Signed-off-by: Kishon Vijay Abraham I --- drivers/pci/endpoint/pci-ep-cfs.c | 24 +++

[PATCH v5 4/7] PCI: endpoint: Add virtual function number in pci_epc ops

2021-04-19 Thread Kishon Vijay Abraham I
Add virtual function number in pci_epc ops. EPC controller driver can perform virtual function specific initialization based on the virtual function number. Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadence/pcie-cadence-ep.c | 44 +++--- .../pci/controller/dwc/pcie-designwar

[PATCH v5 5/7] PCI: cadence: Add support to configure virtual functions

2021-04-19 Thread Kishon Vijay Abraham I
Now that support for SR-IOV is added in PCIe endpoint core, add support to configure virtual functions in the Cadence PCIe EP driver. Signed-off-by: Kishon Vijay Abraham I --- .../pci/controller/cadence/pcie-cadence-ep.c | 241 +++--- drivers/pci/controller/cadence/pcie-cadence.h |

[PATCH v5 6/7] misc: pci_endpoint_test: Populate sriov_configure ops to configure SR-IOV device

2021-04-19 Thread Kishon Vijay Abraham I
Populate sriov_configure ops with pci_sriov_configure_simple to configure SR-IOV device. Signed-off-by: Kishon Vijay Abraham I --- drivers/misc/pci_endpoint_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/misc/pci_endpoint_test.c b/drivers/misc/pci_endpoint_test.c index 1b2868

[PATCH v5 7/7] Documentation: PCI: endpoint/pci-endpoint-cfs: Guide to use SR-IOV

2021-04-19 Thread Kishon Vijay Abraham I
Add Documentation to help users use PCI endpoint to create virtual functions using configfs. An endpoint function is designated as a virtual endpoint function device when it is linked to a physical endpoint function device (instead of a endpoint controller). Signed-off-by: Kishon Vijay Abraham I

Re: [PATCH 00/13] [RFC] Rust support

2021-04-19 Thread Peter Zijlstra
On Mon, Apr 19, 2021 at 10:26:57AM +0200, Peter Zijlstra wrote: > https://godbolt.org/z/85xoPxeE5 That wants _Atomic on the seq definition for clang. > void writer(void) > { > atomic_store_explicit(&seq, seq+1, memory_order_relaxed); > atomic_thread_fence(memory_order_acquire); > >

[PATCH v5 2/9] dt-bindings: touchscreen: Initial commit of wacom,generic

2021-04-19 Thread Alistair Francis
Signed-off-by: Alistair Francis --- .../input/touchscreen/wacom,generic.yaml | 48 +++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/wacom,generic.yaml diff --git a/Documentation/devicetree/bindings/input/touchscre

[PATCH v5 1/9] dt-bindings: Add Wacom to vendor bindings

2021-04-19 Thread Alistair Francis
Signed-off-by: Alistair Francis --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index a8e1e8d2ef20..996f4de2fff5 100644

[PATCH v5 4/9] Input: wacom_i2c - Add touchscren properties

2021-04-19 Thread Alistair Francis
Connect touchscreen properties to the wacom_i2c. Signed-off-by: Alistair Francis --- drivers/input/touchscreen/wacom_i2c.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/wacom_i2c.c b/drivers/input/touchscreen/wacom_i2c.c index dd3fc54d3825.

[PATCH v5 3/9] Input: wacom_i2c - Add device tree support to wacom_i2c

2021-04-19 Thread Alistair Francis
Allow the wacom-i2c device to be exposed via device tree. Signed-off-by: Alistair Francis --- drivers/input/touchscreen/wacom_i2c.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/input/touchscreen/wacom_i2c.c b/drivers/input/touchscreen/wacom_i2c.c index 1afc6bde2891..dd3fc

[PATCH v5 5/9] Input: wacom_i2c - Add support for distance and tilt x/y

2021-04-19 Thread Alistair Francis
This is based on the out of tree rM2 driver. Signed-off-by: Alistair Francis --- v5: - Check the firmware version drivers/input/touchscreen/wacom_i2c.c | 34 +-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/wacom_i2c.c b/driv

[PATCH v5 6/9] Input: wacom_i2c - Clean up the query device fields

2021-04-19 Thread Alistair Francis
Improve the query device fields to be more verbose. Signed-off-by: Alistair Francis --- drivers/input/touchscreen/wacom_i2c.c | 64 ++- 1 file changed, 44 insertions(+), 20 deletions(-) diff --git a/drivers/input/touchscreen/wacom_i2c.c b/drivers/input/touchscreen/wacom

[PATCH v5 7/9] Input: wacom_i2c - Add support for vdd regulator

2021-04-19 Thread Alistair Francis
Add support for a VDD regulator. This allows the kernel to prove the Wacom-I2C device on the rM2. Signed-off-by: Alistair Francis --- drivers/input/touchscreen/wacom_i2c.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/input/touchscreen/wacom_i2c.c b/drivers/inp

[PATCH v5 8/9] ARM: imx_v6_v7_defconfig: Enable Wacom I2C

2021-04-19 Thread Alistair Francis
Enable the Wacom I2C in the imx defconfig as it is used by the reMarkable2 tablet. Signed-off-by: Alistair Francis --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 70928

[PATCH v5 9/9] ARM: dts: imx7d: remarkable2: add wacom digitizer device

2021-04-19 Thread Alistair Francis
Enable the wacom_i2c touchscreen for the reMarkable2. Signed-off-by: Alistair Francis --- arch/arm/boot/dts/imx7d-remarkable2.dts | 61 + 1 file changed, 61 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-remarkable2.dts b/arch/arm/boot/dts/imx7d-remarkable2.dts inde

Re: [PATCH 05/15] x86: Implement function_nocfi

2021-04-19 Thread Rasmus Villemoes
On 17/04/2021 00.28, Kees Cook wrote: > On Fri, Apr 16, 2021 at 03:06:17PM -0700, Andy Lutomirski wrote: >> The >> foo symbol would point to whatever magic is needed. > > No, the symbol points to the jump table entry. Direct calls get minimal > overhead and indirect calls can add the "is this fun

[PATCH] ARM: imx7d-remarkable2.dts: Add WiFi support

2021-04-19 Thread Alistair Francis
Signed-off-by: Alistair Francis --- arch/arm/boot/dts/imx7d-remarkable2.dts | 91 + 1 file changed, 91 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-remarkable2.dts b/arch/arm/boot/dts/imx7d-remarkable2.dts index 8cbae656395c..c3dda2b92fe6 100644 --- a/arch/arm/boot

[PATCH v5 1/5] dt-bindings: mfd: Initial commit of silergy,sy7636a.yaml

2021-04-19 Thread Alistair Francis
Initial support for the Silergy SY7636A Power Management chip and regulator. Signed-off-by: Alistair Francis --- v5: - Improve the documentation .../bindings/mfd/silergy,sy7636a.yaml | 70 +++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v5 2/5] mfd: sy7636a: Initial commit

2021-04-19 Thread Alistair Francis
Initial support for the Silergy SY7636A Power Management chip. Signed-off-by: Alistair Francis --- v5: - Don't use regmap-irq drivers/mfd/Kconfig | 9 drivers/mfd/Makefile| 1 + drivers/mfd/sy7636a.c | 82 + include/linux/mfd/sy7

Re: [PATCH] preempt/dynamic: fix typo in macro conditional statement

2021-04-19 Thread Peter Zijlstra
On Sat, Apr 10, 2021 at 03:35:23PM +0800, Zhouyi Zhou wrote: > commit 40607ee97e4e ("preempt/dynamic: Provide irqentry_exit_cond_resched() > static call") tried to provide irqentry_exit_cond_resched() static call > in irqentry_exit, but has a typo in macro conditional statement. > > This patch fi

[PATCH v5 3/5] regulator: sy7636a: Initial commit

2021-04-19 Thread Alistair Francis
Initial support for the Silergy SY7636A-regulator Power Management chip. Signed-off-by: Alistair Francis --- v5: - Simplify the implementation drivers/regulator/Kconfig | 6 ++ drivers/regulator/Makefile| 1 + drivers/regulator/sy7636a-regulator.c | 127

[PATCH v5 4/5] ARM: imx_v6_v7_defconfig: Enable silergy,sy7636a

2021-04-19 Thread Alistair Francis
Enable the silergy,sy7636a and silergy,sy7636a-regulator for the reMarkable2. Signed-off-by: Alistair Francis --- arch/arm/configs/imx_v6_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index cd80e85d

[PATCH v5 5/5] ARM: dts: imx7d: remarkable2: Enable silergy,sy7636a

2021-04-19 Thread Alistair Francis
Enable the silergy,sy7636a and silergy,sy7636a-regulator on the reMarkable2. Signed-off-by: Alistair Francis --- arch/arm/boot/dts/imx7d-remarkable2.dts | 61 + 1 file changed, 61 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-remarkable2.dts b/arch/arm/boot/dts/imx

Re: [PATCH 6/7] mfd: wm831x: Correct kerneldoc

2021-04-19 Thread Charles Keepax
On Mon, Apr 19, 2021 at 10:17:25AM +0200, Krzysztof Kozlowski wrote: > Correct kerneldoc function name to fix W=1 warning: > > drivers/mfd/wm831x-core.c:121: warning: > expecting prototype for wm831x_reg_unlock(). Prototype was for > wm831x_reg_lock() instead > > Signed-off-by: Krzysztof K

[PATCH] secretmem: optimize page_is_secretmem()

2021-04-19 Thread Mike Rapoport
From: Mike Rapoport Kernel test robot reported -4.2% regression of will-it-scale.per_thread_ops due to commit "mm: introduce memfd_secret system call to create "secret" memory areas". The perf profile of the test indicated that the regression is caused by page_is_secretmem() called from gup_pte_

Re: [PATCH] [v4, 1/1] clocksource/drivers/timer-mediatek: optimize systimer irq clear flow on shutdown

2021-04-19 Thread Daniel Lezcano
On 09/04/2021 11:22, Fengquan Chen wrote: > mtk_syst_clkevt_shutdown is called after irq disabled in suspend flow, > clear any pending systimer irq when shutdown to avoid suspend aborted > due to timer irq pending > > Also as for systimer in mediatek socs, there must be firstly enable > timer befo

[PATCH v2 0/2] Improve IPA mechanisms in low temperature state

2021-04-19 Thread Lukasz Luba
Hi all, This v2 patch set aims to address the issues present in IPA when the temperature is below the first trip point and cooling devices are not throttled. The first patch adds a basic check of cooling devices power to keep the internal statistics fresh. This allows to avoid issue when the stati

[PATCH v2 1/2] thermal: power_allocator: maintain the device statistics from going stale

2021-04-19 Thread Lukasz Luba
When the temperature is below the first activation trip point the cooling devices are not checked, so they cannot maintain fresh statistics. It leads into the situation, when temperature crosses first trip point, the statistics are stale and show state for very long period. This has impact on IPA a

[PATCH v2 2/2] thermal: power_allocator: update once cooling devices when temp is low

2021-04-19 Thread Lukasz Luba
The cooling device state change generates an event, also when there is no need, because temperature is low and device is not throttled. Avoid to unnecessary update the cooling device which means also not sending event. The cooling device state has not changed because the temperature is still below

Re: [PATCH V2 0/9] intel_pmc_core: Add sub-state requirements and mode

2021-04-19 Thread Hans de Goede
Hi, On 4/17/21 5:12 AM, David E. Box wrote: > - Patch 1 and 2 remove the use of the global struct pmc_dev > - Patches 3-7 add support for reading low power mode sub-state > requirements, latching sub-state status on different low power mode > events, and displaying the sub-state residency in m

[PATCH 1/2] dt-bindings: Add E Ink to vendor bindings

2021-04-19 Thread Alistair Francis
Add the E Ink Corporation to the vendor bindings. Signed-off-by: Alistair Francis --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-pr

[PATCH 2/2] drm/panel: Add support for E Ink VB3300-KCA

2021-04-19 Thread Alistair Francis
Add support for the 10.3" E Ink panel described at: https://www.eink.com/product.html?type=productdetail&id=7 Signed-off-by: Alistair Francis --- drivers/gpu/drm/panel/panel-simple.c | 29 1 file changed, 29 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-sim

Re: [PATCH v4 04/13] mm/mempolicy: allow preferred code to take a nodemask

2021-04-19 Thread Feng Tang
On Wed, Apr 14, 2021 at 02:55:39PM +0200, Michal Hocko wrote: > On Wed 17-03-21 11:40:01, Feng Tang wrote: > > From: Dave Hansen > > > > Create a helper function (mpol_new_preferred_many()) which is usable > > both by the old, single-node MPOL_PREFERRED and the new > > MPOL_PREFERRED_MANY. > > >

Re: [PATCH v2 09/10] KVM: Don't take mmu_lock for range invalidation unless necessary

2021-04-19 Thread Wanpeng Li
On Fri, 2 Apr 2021 at 08:59, Sean Christopherson wrote: > > Avoid taking mmu_lock for unrelated .invalidate_range_{start,end}() > notifications. Because mmu_notifier_count must be modified while holding > mmu_lock for write, and must always be paired across start->end to stay > balanced, lock eli

Re: [PATCH AUTOSEL 5.10 41/46] net/rds: Avoid potential use after free in rds_send_remove_from_sock

2021-04-19 Thread Pavel Machek
Hi! > From: Aditya Pakki > > [ Upstream commit 0c85a7e87465f2d4cbc768e245f4f45b2f299b05 ] > > In case of rs failure in rds_send_remove_from_sock(), the 'rm' resource > is freed and later under spinlock, causing potential use-after-free. > Set the free pointer to NULL to avoid undefined behavior

Re:Greetings.

2021-04-19 Thread MR.CHRIS MARK
Hello, I have a project that will profit you and I, please reply ASAP with your Names and Mobile Phone for full details. MR.CHRIS MARK

[PATCH 1/3] kfence: await for allocation using wait_event

2021-04-19 Thread Marco Elver
On mostly-idle systems, we have observed that toggle_allocation_gate() is a cause of frequent wake-ups, preventing an otherwise idle CPU to go into a lower power state. A late change in KFENCE's development, due to a potential deadlock [1], required changing the scheduling-friendly wait_event_time

[PATCH 0/3] kfence: optimize timer scheduling

2021-04-19 Thread Marco Elver
We have observed that mostly-idle systems with KFENCE enabled wake up otherwise idle CPUs, preventing such to enter a lower power state. Debugging revealed that KFENCE spends too much active time in toggle_allocation_gate(). While the first version of KFENCE was using all the right bits to be sche

[PATCH 2/3] kfence: maximize allocation wait timeout duration

2021-04-19 Thread Marco Elver
The allocation wait timeout was initially added because of warnings due to CONFIG_DETECT_HUNG_TASK=y [1]. While the 1 sec timeout is sufficient to resolve the warnings (given the hung task timeout must be 1 sec or larger) it may cause unnecessary wake-ups if the system is idle. [1] https://lkml.ke

[PATCH 3/3] kfence: use power-efficient work queue to run delayed work

2021-04-19 Thread Marco Elver
Use the power-efficient work queue, to avoid the pathological case where we keep pinning ourselves on the same possibly idle CPU on systems that want to be power-efficient [1]. [1] https://lwn.net/Articles/731052/ Signed-off-by: Marco Elver --- mm/kfence/core.c | 5 +++-- 1 file changed, 3 inser

Re: [patch] x86/crash: fix crash_setup_memmap_entries() out-of-bounds access

2021-04-19 Thread Borislav Petkov
Here's an attempt to explain what this fixes: --- From: Mike Galbraith Date: Fri, 16 Apr 2021 14:02:07 +0200 Subject: [PATCH] x86/crash: Fix crash_setup_memmap_entries() out-of-bounds access Commit in Fixes: added support for kexec-ing a kernel on panic using a new system call. As part of it, i

Re: [PATCH 0/2] sunxi: Enforce consistent MMC numbering

2021-04-19 Thread Andre Przywara
On Mon, 19 Apr 2021 11:17:19 +0800 Chen-Yu Tsai wrote: Hi, > On Mon, Apr 19, 2021 at 10:52 AM Samuel Holland wrote: > > > > Dealing with the inconsistent numbering has been a major pain, and > > there is a solution with (as far as I can tell) no tangible downsides. > > So let's use it. Thanks

Re: [tip: x86/urgent] x86/dma: Tear down DMA ops on driver unbind

2021-04-19 Thread Jean-Philippe Brucker
On Sat, Apr 17, 2021 at 02:06:44PM +0200, Borislav Petkov wrote: > Nope, sorry, no joy. Zapping it from tip. > > With that patch, it fails booting on my test box with messages like > (typing up from video I took): > > ... > ata: softreset failed (1st FIS failed) > ahci :03:00:1: AMD-Vi: Event

Re: [PATCH 0/9] sched: Core scheduling interfaces

2021-04-19 Thread Peter Zijlstra
On Sat, Apr 17, 2021 at 09:35:07PM -0400, Joel Fernandes wrote: > On Tue, Apr 06, 2021 at 10:16:12AM -0400, Tejun Heo wrote: > > Hello, > > > > On Mon, Apr 05, 2021 at 02:46:09PM -0400, Joel Fernandes wrote: > > > Yeah, its at http://lore.kernel.org/r/20200822030155.ga414...@google.com > > > as me

[PATCH v3] drm/bridge/sii8620: fix dependency on extcon

2021-04-19 Thread Robert Foss
The DRM_SIL_SII8620 kconfig has a weak `imply` dependency on EXTCON, which causes issues when sii8620 is built as a builtin and EXTCON is built as a module. The symptoms are 'undefined reference' errors caused by the symbols in EXTCON not being available to the sii8620 driver. Fixes: 688838442147

Re: [PATCH 00/13] [RFC] Rust support

2021-04-19 Thread Paolo Bonzini
On 19/04/21 10:26, Peter Zijlstra wrote: On Mon, Apr 19, 2021 at 09:53:06AM +0200, Paolo Bonzini wrote: On 19/04/21 09:32, Peter Zijlstra wrote: On Sat, Apr 17, 2021 at 04:51:58PM +0200, Paolo Bonzini wrote: On 16/04/21 09:09, Peter Zijlstra wrote: Well, the obvious example would be seqlocks.

Re: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-19 Thread Geert Uytterhoeven
Hi Dominique, CC Arnd (soc_device_match() author) On Mon, Apr 19, 2021 at 7:03 AM Dominique MARTINET wrote: > Alice Guo (OSS) wrote on Mon, Apr 19, 2021 at 12:27:22PM +0800: > > From: Alice Guo > > Update all the code that use soc_device_match > > A single patch might be difficult to accept for

Re: [PATCH v7 02/28] mm: Introduce struct folio

2021-04-19 Thread Kirill A. Shutemov
On Fri, Apr 16, 2021 at 04:55:16PM +0100, Matthew Wilcox wrote: > On Fri, Apr 09, 2021 at 07:50:39PM +0100, Matthew Wilcox (Oracle) wrote: > > A struct folio is a new abstraction to replace the venerable struct page. > > A function which takes a struct folio argument declares that it will > > opera

Re: [PATCH RESEND 3/4] docs: Add HiSilicon PTT device driver documentation

2021-04-19 Thread Daniel Thompson
On Sat, Apr 17, 2021 at 06:17:10PM +0800, Yicong Yang wrote: > Document the introduction and usage of HiSilicon PTT device driver. > > Signed-off-by: Yicong Yang > --- > Documentation/trace/hisi-ptt.rst | 326 > +++ > 1 file changed, 326 insertions(+) > crea

[PATCH] ACPI: PM: s2idle: Invoke _PTS for s2idle

2021-04-19 Thread Kai-Heng Feng
HP EliteBook 840 G8 reboots on s2idle resume, and HP EliteBook 845 G8 wakes up immediately on s2idle. Both are caused by the XMM7360 WWAN PCI card. There's a WWAN specific method to really turn off the WWAN via EC: Method (_PTS, 1, NotSerialized) // _PTS: Prepare To Sleep { ...

iwlwifi: Microcode SW error

2021-04-19 Thread Gon Solo
Hi all! My internet was very slow and I saw the following in dmesg: [Apr19 10:50] iwlwifi :02:00.0: Queue 10 is active on fifo 1 and stuck for 1 ms. SW [40, 93] HW [40, 93] FH TRB=0x0c010a037 [ +0,001244] iwlwifi :02:00.0: Microcode SW error detected. Restarting 0x200. The re

Re: [PATCH v2] PCI: Disable D3cold support on Intel XMM7360

2021-04-19 Thread Kai-Heng Feng
On Mon, Apr 12, 2021 at 4:18 PM Kai-Heng Feng wrote: > > On Mon, Mar 29, 2021 at 1:23 PM Kai-Heng Feng > wrote: > > > > On some platforms, the root port for Intel XMM7360 WWAN supports D3cold. > > When the root port is put to D3cold by system suspend or runtime > > suspend, attempt to systems res

linux-next: build failure after merge of the powerpc tree

2021-04-19 Thread Stephen Rothwell
Hi all, After merging the powerpc tree, today's linux-next build (powerpc allyesconfig) failed like this: arch/powerpc/kernel/fadump.c: In function 'crash_fadump': arch/powerpc/kernel/fadump.c:731:28: error: 'INTERRUPT_SYSTEM_RESET' undeclared (first use in this function) 731 | if (TRAP(&(f

Re: [PATCH] secretmem: optimize page_is_secretmem()

2021-04-19 Thread David Hildenbrand
On 19.04.21 10:42, Mike Rapoport wrote: From: Mike Rapoport Kernel test robot reported -4.2% regression of will-it-scale.per_thread_ops due to commit "mm: introduce memfd_secret system call to create "secret" memory areas". The perf profile of the test indicated that the regression is caused b

Build regressions/improvements in v5.12-rc8

2021-04-19 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v5.12-rc8[1] compared to v5.11[2]. Summarized: - build errors: +5/-0 - build warnings: +110/-10 JFYI, when comparing v5.12-rc8[1] to v5.12-rc7[3], the summaries are: - build errors: +0/-0 - build warnings: +0/-2 Note th

Re: [PATCH v5] printk: Userspace format enumeration support

2021-04-19 Thread Petr Mladek
On Mon 2021-04-19 09:27:43, Rasmus Villemoes wrote: > On 16/04/2021 15.56, Chris Down wrote: > > Hey Petr, Rasmus, > > >> This is great point! There are many other subsystem specific wrappers, > >> e,g, ata_dev_printk(), netdev_printk(), snd_printk(), dprintk(). > >> We should make it easy to inde

Re: [PATCH v2] MIPS: Makefile: Replace -pg with CC_FLAGS_FTRACE

2021-04-19 Thread Sergei Shtylyov
Hello! On 19.04.2021 8:51, zhaoxiao wrote: In preparation for mips supporting ftrace built on other compiler options, let's have the mips Makefiles remove the $(CC_FLAGS_FTRACE) flags, whatever these may be, rather than assuming '-pg'. But your patch is adding 'em, not removing? Signed-

Re: iwlwifi: Microcode SW error

2021-04-19 Thread Johannes Berg
On Mon, 2021-04-19 at 11:08 +0200, Gon Solo wrote: > > [Apr19 10:50] iwlwifi :02:00.0: Queue 10 is active on fifo 1 and stuck > for 1 ms. SW [40, 93] HW [40, 93] FH TRB=0x0c010a037 > [ +0,001244] iwlwifi :02:00.0: Microcode SW error detected. Restarting > 0x200. > > The rest o

Re: [PATCH 1/1] lib: scatterlist: Fix SGL length in sg_split() if !CONFIG_NEED_SG_DMA_LENGTH

2021-04-19 Thread Christoph Hellwig
On Sun, Apr 18, 2021 at 08:14:41AM +, Alexander Egorenkov wrote: > If CONFIG_NEED_SG_DMA_LENGTH is NOT enabled then sg_dma_len() is an alias > for the length field in a SGL. In that case sg_split() wrongly resets > the length of split SGLs to zero after it was set correctly before. Why is this

[PATCH 2/3] MAINTAINERS: rectify entry for HIKEY960 ONBOARD USB GPIO HUB DRIVER

2021-04-19 Thread Lukas Bulwahn
Commit 7a6ff4c4cbc3 ("misc: hisi_hikey_usb: Driver to support onboard USB gpio hub on Hikey960") refers to the non-existing file ./Documentation/devicetree/bindings/misc/hisilicon-hikey-usb.yaml, but this commit's patch series does not add any related devicetree binding in misc. So, just drop this

[PATCH 1/3] MAINTAINERS: rectify entry for ARM/TOSHIBA VISCONTI ARCHITECTURE

2021-04-19 Thread Lukas Bulwahn
Commit 836863a08c99 ("MAINTAINERS: Add information for Toshiba Visconti ARM SoCs") refers to the non-existing file toshiba,tmpv7700-pinctrl.yaml in ./Documentation/devicetree/bindings/pinctrl/. Commit 1825c1fe0057 ("pinctrl: Add DT bindings for Toshiba Visconti TMPV7700 SoC") originating from the s

[PATCH RESEND 0/3] Rectify file references for dt-bindings in MAINTAINERS

2021-04-19 Thread Lukas Bulwahn
Hi Rob, here is a patch series that cleans up all file references for dt-bindings in MAINTAINERS. It applies cleanly on next-20210416. This is a resend of the still relevant patches from the first submission of the patch series [see Link] on 2021-03-15. Could you pick this series for your device

[PATCH 3/3] MAINTAINERS: rectify entry for INTEL KEEM BAY DRM DRIVER

2021-04-19 Thread Lukas Bulwahn
Commit ed794057b052 ("drm/kmb: Build files for KeemBay Display driver") refers to the non-existing file intel,kmb_display.yaml in ./Documentation/devicetree/bindings/display/. Commit 5a76b1ed73b9 ("dt-bindings: display: Add support for Intel KeemBay Display") originating from the same patch series

Re: [RESEND PATCH 1/2] delayacct: refactor the code to simplify the implementation

2021-04-19 Thread brookxu
Balbir Singh wrote on 2021/4/19 15:01: > On Tue, Apr 13, 2021 at 09:37:26AM +0800, brookxu wrote: >> From: Chunguang Xu >> >> The existing data structure is not very convenient for >> expansion, and part of the code can be saved. Here, try >> to optimize, which can make the code more concise an

[PATCH] ice: set the value of global config lock timeout longer

2021-04-19 Thread Liwei Song
It may need hold Global Config Lock a longer time when download DDP package file, extend the timeout value to 5000ms to ensure that download can be finished before other AQ command got time to run, this will fix the issue below when probe the device, 5000ms is a test value that work with both Backp

Re: [PATCH v3 02/12] iommu: Add iommu_split_block interface

2021-04-19 Thread Keqian Zhu
Hi Baolu, On 2021/4/14 15:14, Lu Baolu wrote: > On 4/13/21 4:54 PM, Keqian Zhu wrote: >> Block(largepage) mapping is not a proper granule for dirty log tracking. >> Take an extreme example, if DMA writes one byte, under 1G mapping, the >> dirty amount reported is 1G, but under 4K mapping, the dirt

Re: [PATCH v6 03/10] KVM: selftests: Use flag CLOCK_MONOTONIC_RAW for timing

2021-04-19 Thread wangyanan (Y)
On 2021/4/19 16:22, David Laight wrote: From: wangyanan (Y) Sent: 19 April 2021 07:40 Hi Paolo, On 2021/4/17 21:23, Paolo Bonzini wrote: On 30/03/21 10:08, Yanan Wang wrote: In addition to function of CLOCK_MONOTONIC, flag CLOCK_MONOTONIC_RAW can also shield possiable impact of NTP, which

Re: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-19 Thread Dominique MARTINET
Geert Uytterhoeven wrote on Mon, Apr 19, 2021 at 11:03:24AM +0200: > > This is going to need quite some more work to be acceptable, in my > > opinion, but I think it should be possible. > > In general, this is very hard to do, IMHO. Some drivers may be used on > multiple platforms, some of them

Re: [PATCH 00/13] [RFC] Rust support

2021-04-19 Thread Peter Zijlstra
On Mon, Apr 19, 2021 at 11:02:12AM +0200, Paolo Bonzini wrote: > > void writer(void) > > { > > atomic_store_explicit(&seq, seq+1, memory_order_relaxed); > > atomic_thread_fence(memory_order_acquire); > > This needs to be memory_order_release. The only change in the resulting > assembly

Re: [PATCH] secretmem: optimize page_is_secretmem()

2021-04-19 Thread Mike Rapoport
On Mon, Apr 19, 2021 at 11:15:02AM +0200, David Hildenbrand wrote: > On 19.04.21 10:42, Mike Rapoport wrote: > > From: Mike Rapoport > > > > Kernel test robot reported -4.2% regression of will-it-scale.per_thread_ops > > due to commit "mm: introduce memfd_secret system call to create "secret" > >

Re: [patch] x86/crash: fix crash_setup_memmap_entries() out-of-bounds access

2021-04-19 Thread DaveYoung
On 04/19/21 at 10:52am, Borislav Petkov wrote: > Here's an attempt to explain what this fixes: > > --- > From: Mike Galbraith > Date: Fri, 16 Apr 2021 14:02:07 +0200 > Subject: [PATCH] x86/crash: Fix crash_setup_memmap_entries() out-of-bounds > access > > Commit in Fixes: added support for kexe

Re: [PATCH V3 3/5] arm64: dts: renesas: Add fck to etheravb-rcar-gen3 clock-names list

2021-04-19 Thread Geert Uytterhoeven
On Wed, Feb 24, 2021 at 12:52 PM Adam Ford wrote: > The bindings have been updated to support two clocks, but the > original clock now requires the name fck. Add a clock-names > list in the device tree with fck in it. > > Signed-off-by: Adam Ford > Reviewed-by: Geert Uytterhoeven queueing in r

Re: [PATCH] net: ethernet: ravb: Fix release of refclk

2021-04-19 Thread Sergei Shtylyov
Hello! On 17.04.2021 16:23, Adam Ford wrote: The call to clk_disable_unprepare() can happen before priv is initialized. Mhm, how's that? :-/ This means moving clk_disable_unprepare out of out_release into a new label. Fixes: 8ef7adc6beb2("net: ethernet: ravb: Enable optional refclk") Si

Re: [PATCH] secretmem: optimize page_is_secretmem()

2021-04-19 Thread David Hildenbrand
On 19.04.21 11:36, Mike Rapoport wrote: On Mon, Apr 19, 2021 at 11:15:02AM +0200, David Hildenbrand wrote: On 19.04.21 10:42, Mike Rapoport wrote: From: Mike Rapoport Kernel test robot reported -4.2% regression of will-it-scale.per_thread_ops due to commit "mm: introduce memfd_secret system c

Re: [PATCH V3 5/5] arm64: dts: renesas: beacon kits: Setup AVB refclk

2021-04-19 Thread Geert Uytterhoeven
Hi Adam, On Sat, Apr 17, 2021 at 3:54 PM Adam Ford wrote: > On Thu, Mar 4, 2021 at 2:04 AM Geert Uytterhoeven > wrote: > > On Wed, Feb 24, 2021 at 12:52 PM Adam Ford wrote: > > > The AVB refererence clock assumes an external clock that runs > > > > reference > > > > > automatically. Because t

[PATCH v3 06/11] reset: stm32mp1: remove stm32mp1 reset

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez st32mp1 RCC reset driver was moved into stm32mp1 RCC clock driver. Signed-off-by: Gabriel Fernandez --- drivers/reset/Kconfig | 6 -- drivers/reset/Makefile | 1 - drivers/reset/reset-stm32mp1.c | 115 - 3 files chang

[PATCH v3 05/11] clk: stm32mp1: move RCC reset controller into RCC clock driver

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez RCC clock and reset controller shared same memory mapping. As RCC clock driver is now a module, the best way to register clock and reset controller is to do it in same driver. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 157

[PATCH v3 03/11] clk: stm32mp1: remove intermediate pll clocks

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez This patch is to prepare STM32MP1 clocks in trusted mode. Integrate the mux clock into pll clock will facilitate to have a more coherent clock tree in no trusted / trusted mode. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 65 +++

[PATCH v3 01/11] clk: stm32mp1: merge 'clk-hsi-div' and 'ck_hsi' into one clock

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez This patch is to prepare STM32MP1 clocks in trusted mode. This Merge will facilitate to have a more coherent clock tree in no trusted / trusted world. Signed-off-by: Gabriel Fernandez --- drivers/clk/clk-stm32mp1.c | 10 +- 1 file changed, 5 insertions(+), 5 del

[PATCH v3 04/11] clk: stm32mp1: convert to module driver

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez Adds support for probe deferral in way to prepare integration of the security in RCC clock and reset drivers. Some kernel clocks will be provided by the SCMI drivers. Since RCC clock driver create clocks which parents are SCMI clocks, RCC clock driver probe can be deferre

[PATCH v3 07/11] dt-bindings: clock: add IDs for SCMI clocks on stm32mp15

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp15 TZ secure firmware provides SCMI clocks for oscillators, some PLL output and few secure aware interfaces. This change defines the SCMI clock identifiers used by SCMI agents and servers. Server SCMI0 exposes clocks and reset controllers for resources under RCC[TZE

[PATCH v3 00/11] Introduce STM32MP1 RCC in secured mode

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clocks and IP resets can relate as secure resources. These resources are moved from a RCC clock/reset handle to a SCMI clock/reset_domain handle. The RCC clock driver is now dependent of the SCMI driver, then we ha

[PATCH v3 08/11] dt-bindings: reset: add IDs for SCMI reset domains on stm32mp15

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez stm32mp15 TZ secure firmware provides SCMI reset domains for secure resources. This change defines the SCMI reset domain identifiers used by SCMI agents and servers. Stm32mp15 TZ secure firmware provides SCMI clocks for oscillators, some PLL output and few secure aware in

[PATCH v3 02/11] clk: stm32mp1: merge 'ck_hse_rtc' and 'ck_rtc' into one clock

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez 'ck_rtc' has multiple clocks as input (ck_hsi, ck_lsi, and ck_hse). A divider is available only on the specific rtc input for ck_hse. This Merge will facilitate to have a more coherent clock tree in no trusted / trusted world. Signed-off-by: Gabriel Fernandez --- driver

[PATCH v3 09/11] dt-bindings: reset: add MCU HOLD BOOT ID for SCMI reset domains on stm32mp15

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez Add ID to SCMI0 to exposes reset controller for the MCU HOLD BOOT resource. Signed-off-by: Arnaud Pouliquen Signed-off-by: Gabriel Fernandez Acked-by: Rob Herring --- include/dt-bindings/reset/stm32mp1-resets.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc

[PATCH v3 11/11] clk: stm32mp1: new compatible for secure RCC support

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clock resources cannot be accessed by Linux kernel when executing in non-secure state of the CPU(s). In such configuration, the RCC clock driver must not register clocks it cannot access. They are expected to be reg

[PATCH v3 10/11] dt-bindings: clock: stm32mp1 new compatible for secure rcc

2021-04-19 Thread gabriel.fernandez
From: Gabriel Fernandez Introduce new compatible string "st,stm32mp1-rcc-secure" for stm32mp1 clock driver when the device is configured with RCC security support hardened. Signed-off-by: Etienne Carriere Signed-off-by: Gabriel Fernandez --- .../devicetree/bindings/clock/st,stm32mp1-rcc.yaml

Re: [PATCH] secretmem: optimize page_is_secretmem()

2021-04-19 Thread David Hildenbrand
On 19.04.21 11:38, David Hildenbrand wrote: On 19.04.21 11:36, Mike Rapoport wrote: On Mon, Apr 19, 2021 at 11:15:02AM +0200, David Hildenbrand wrote: On 19.04.21 10:42, Mike Rapoport wrote: From: Mike Rapoport Kernel test robot reported -4.2% regression of will-it-scale.per_thread_ops due t

Re: [PATCH 00/13] [RFC] Rust support

2021-04-19 Thread Paolo Bonzini
On 19/04/21 11:36, Peter Zijlstra wrote: On Mon, Apr 19, 2021 at 11:02:12AM +0200, Paolo Bonzini wrote: void writer(void) { atomic_store_explicit(&seq, seq+1, memory_order_relaxed); atomic_thread_fence(memory_order_acquire); This needs to be memory_order_release. The only change i

[RESEND PATCH v5 0/4] perf stat: Introduce iostat mode to provide I/O performance metrics

2021-04-19 Thread alexander . antonov
From: Alexander Antonov Resending V5 with added Acked-by: Namhyung Kim tag. Thanks, Alexander The previous version can be found at: v4: https://lkml.kernel.org/r/20210203135830.38568-1-alexander.anto...@linux.intel.com/ Changes in this revision are: v4 -> v5: - Addressed comments from Namhyun

[RESEND PATCH v5 1/4] perf stat: Basic support for iostat in perf

2021-04-19 Thread alexander . antonov
From: Alexander Antonov Add basic flow for a new iostat mode in perf. Mode is intended to provide four I/O performance metrics per each PCIe root port: Inbound Read, Inbound Write, Outbound Read, Outbound Write. The actual code to compute the metrics and attribute it to root port is in follow-on

[RESEND PATCH v5 2/4] perf stat: Helper functions for PCIe root ports list in iostat mode

2021-04-19 Thread alexander . antonov
From: Alexander Antonov Introduce helper functions to control PCIe root ports list. These helpers will be used in the follow-up patch. Acked-by: Namhyung Kim Signed-off-by: Alexander Antonov --- tools/perf/arch/x86/util/iostat.c | 110 ++ 1 file changed, 110 insert

[RESEND PATCH v5 3/4] perf stat: Enable iostat mode for x86 platforms

2021-04-19 Thread alexander . antonov
From: Alexander Antonov This functionality is based on recently introduced sysfs attributes for Intel® Xeon® Scalable processor family (code name Skylake-SP): Commit bb42b3d39781 ("perf/x86/intel/uncore: Expose an Uncore unit to IIO PMON mapping") Mode is intended to provide four I/O performance

[RESEND PATCH v5 4/4] perf: Update .gitignore file

2021-04-19 Thread alexander . antonov
From: Alexander Antonov After a "make -C tools/perf", git reports the following untracked file: perf-iostat Add this generated file to perf's .gitignore file. Acked-by: Namhyung Kim Signed-off-by: Alexander Antonov --- tools/perf/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a

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