Re: [PATCH] arm64: disable patchable function entry on big-endian clang builds

2020-05-05 Thread Torsten Duwe
Hi Arnd, Mark and others, this may not be worth arguing but I'm currently fighting excessive workarounds in another area and so this triggers me, so I have to make a remark ;-) On Tue, 5 May 2020 15:25:56 +0100 Mark Rutland wrote: > On Tue, May 05, 2020 at 04:12:36PM +0200, Arnd Bergmann

Re: [PATCH] bpf: Tweak BPF jump table optimizations for objtool compatibility

2020-05-05 Thread Alexei Starovoitov
avoid code churn, so how about we step back and debug it first? Which version of gcc are you using and what .config? I've tried: Linux version 5.7.0-rc2 (gcc version 10.0.1 20200505 (prerelease) (GCC) CONFIG_UNWINDER_ORC=y # CONFIG_RETPOLINE is not set and objtool didn't complain. I would like to re

Re: [PATCH v5 3/6] fs: Enable to enforce noexec mounts or file exec through O_MAYEXEC

2020-05-05 Thread Randy Dunlap
On 5/5/20 9:55 AM, Mickaël Salaün wrote: > > > On 05/05/2020 17:44, Randy Dunlap wrote: >> On 5/5/20 8:31 AM, Mickaël Salaün wrote: >>> diff --git a/security/Kconfig b/security/Kconfig >>> index cd3cc7da3a55..d8fac9240d14 100644 >>> --- a/security/Kconfig >>> +++ b/security/Kconfig >>> @@ -230,6

Re: [PATCH v4 resend 2] dt-bindings: net: btusb: DT fix s/interrupt-name/interrupt-names/

2020-05-05 Thread Brian Norris
On Tue, May 5, 2020 at 6:36 AM Geert Uytterhoeven wrote: > > The standard DT property name is "interrupt-names". > > Fixes: fd913ef7ce619467 ("Bluetooth: btusb: Add out-of-band wakeup support") > Signed-off-by: Geert Uytterhoeven > Acked-by: Rob Herring If it matters: Reviewed-by: Brian

[PATCH v3] PCI/ASPM: Enable ASPM for bridge-to-bridge link

2020-05-05 Thread Kai-Heng Feng
The TI PCIe-to-PCI bridge prevents the Intel SoC from entering power state deeper than PC3 due to disabled ASPM, consumes lots of unnecessary power. On Windows ASPM L1 is enabled on the device and its upstream bridge, so it can make the Intel SoC reach PC8 or PC10 to save lots of power. In short,

Re: [PATCH 0/4] eliminate SECTOR related magic numbers and duplicated conversions

2020-05-05 Thread antlists
On 05/05/2020 12:55, Zhen Lei wrote: When I studied the code of mm/swap, I found "1 << (PAGE_SHIFT - 9)" appears many times. So I try to clean up it. 1. Replace "1 << (PAGE_SHIFT - 9)" or similar with SECTORS_PER_PAGE 2. Replace "PAGE_SHIFT - 9" with SECTORS_PER_PAGE_SHIFT 3. Replace "9" with

Re: [PATCH v6 2/2] mmc: host: meson-mx-sdhc: new driver for the Amlogic Meson SDHC host

2020-05-05 Thread Ulf Hansson
On Tue, 5 May 2020 at 18:05, Jerome Brunet wrote: > > > On Tue 05 May 2020 at 10:17, Ulf Hansson wrote: > > > [...] > > > >> >> > + > >> >> > + return devm_of_clk_add_hw_provider(dev, of_clk_hw_onecell_get, > >> >> > +onecell_data); > >> >> > >> >> I

Re: [PATCH v2 0/5] Statsfs: a new ram-based file sytem for Linux kernel statistics

2020-05-05 Thread Christian Borntraeger
Adding Stefan Raspl, who has done a lot of kvm_stat work in the past. On 05.05.20 19:21, Paolo Bonzini wrote: > On 05/05/20 19:07, David Rientjes wrote: >>> I am totally in favor of having a binary format, but it should be >>> introduced as a separate series on top of this one---and preferably by

Re: Re: [PATCH net v2 0/2] Revert the 'socket_alloc' life cycle change

2020-05-05 Thread Paul E. McKenney
On Tue, May 05, 2020 at 07:05:53PM +0200, SeongJae Park wrote: > On Tue, 5 May 2020 09:37:42 -0700 Eric Dumazet wrote: > > > > > > > On 5/5/20 9:31 AM, Eric Dumazet wrote: > > > > > > > > > On 5/5/20 9:25 AM, Eric Dumazet wrote: > > >> > > >> > > >> On 5/5/20 9:13 AM, SeongJae Park wrote: >

[RFC PATCH v1] ima: verify mprotect change is consistent with mmap policy

2020-05-05 Thread Mimi Zohar
Files can be mmap'ed read/write and later changed to execute to circumvent IMA's mmap appraise policy rules. Due to locking issues (mmap semaphore would be taken prior to i_mutex), files can not be measured or appraised at this point. Eliminate this integrity gap, by denying the mprotect

Re: [PATCH 05/11] net: core: provide devm_register_netdev()

2020-05-05 Thread Jakub Kicinski
On Tue, 5 May 2020 16:02:25 +0200 Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Provide devm_register_netdev() - a device resource managed variant > of register_netdev(). This new helper will only work for net_device > structs that have a parent device assigned and are devres

Re: [PATCH v6 1/2] x86: fix bitops.h warning with a moved cast

2020-05-05 Thread Nick Desaulniers
On Tue, May 5, 2020 at 8:14 AM Andy Shevchenko wrote: > > On Mon, May 04, 2020 at 06:14:43PM -0700, Jesse Brandeburg wrote: > > On Mon, 4 May 2020 12:51:12 -0700 > > Nick Desaulniers wrote: > > > > > Sorry for the very late report. It turns out that if your config > > > tickles

Re: [GRUB PATCH RFC 12/18] i386/efi: Report UEFI Secure Boot status to the Linux kernel

2020-05-05 Thread Matthew Garrett
On Mon, May 4, 2020 at 4:25 PM Daniel Kiper wrote: > > Otherwise the kernel does not know its state and cannot enable various > security features depending on UEFI Secure Boot. I think this needs more context. If the kernel is loaded via the EFI boot stub, the kernel is aware of the UEFI secure

Re: [PATCH net v2 0/2] Revert the 'socket_alloc' life cycle change

2020-05-05 Thread Paul E. McKenney
On Tue, May 05, 2020 at 09:37:42AM -0700, Eric Dumazet wrote: > > > On 5/5/20 9:31 AM, Eric Dumazet wrote: > > > > > > On 5/5/20 9:25 AM, Eric Dumazet wrote: > >> > >> > >> On 5/5/20 9:13 AM, SeongJae Park wrote: > >>> On Tue, 5 May 2020 09:00:44 -0700 Eric Dumazet > >>> wrote: > >>> >

Re: [PATCH 2/4] mm/swap: use SECTORS_PER_PAGE_SHIFT to clean up code

2020-05-05 Thread Matthew Wilcox
On Tue, May 05, 2020 at 07:55:41PM +0800, Zhen Lei wrote: > +++ b/mm/swapfile.c > @@ -177,8 +177,8 @@ static int discard_swap(struct swap_info_struct *si) > > /* Do not discard the swap header page! */ > se = first_se(si); > - start_block = (se->start_block + 1) << (PAGE_SHIFT -

Re: [PATCH net v2 0/2] Revert the 'socket_alloc' life cycle change

2020-05-05 Thread Paul E. McKenney
On Tue, May 05, 2020 at 09:25:06AM -0700, Eric Dumazet wrote: > > > On 5/5/20 9:13 AM, SeongJae Park wrote: > > On Tue, 5 May 2020 09:00:44 -0700 Eric Dumazet wrote: > > > >> On Tue, May 5, 2020 at 8:47 AM SeongJae Park wrote: > >>> > >>> On Tue, 5 May 2020 08:20:50 -0700 Eric Dumazet > >>>

[PATCH] net: bareudp: avoid uninitialized variable warning

2020-05-05 Thread Arnd Bergmann
clang points out that building without IPv6 would lead to returning an uninitialized variable if a packet with family!=AF_INET is passed into bareudp_udp_encap_recv(): drivers/net/bareudp.c:139:6: error: variable 'err' is used uninitialized whenever 'if' condition is false

Re: [PATCH v2 0/5] Statsfs: a new ram-based file sytem for Linux kernel statistics

2020-05-05 Thread Paolo Bonzini
On 05/05/20 19:07, David Rientjes wrote: >> I am totally in favor of having a binary format, but it should be >> introduced as a separate series on top of this one---and preferably by >> someone who has already put some thought into the problem (which >> Emanuele and I have not, beyond ensuring

[GIT PULL] platform-drivers-x86 for 5.7-2

2020-05-05 Thread Andy Shevchenko
Hi Linus, Collected fixes for PDx96 so far. Thanks, With Best Regards, Andy Shevchenko The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136: Linux 5.7-rc1 (2020-04-12 12:35:55 -0700) are available in the Git repository at:

Re: [PATCH 1/3] leds: add aw2013 driver

2020-05-05 Thread Nikita Travkin
> Hi! > >> +#define AW2013_NAME "aw2013" > That's not really useful define. Make it NAME? Drop it? Will drop it as well as (unnecessary) lines it is used in. >> +#define AW2013_TIME_STEP 130 > I'd add comment with /* units */. Will add. >> +#define STATE_OFF 0 >> +#define STATE_KEEP 1 >>

[PATCH v3 01/10] mtd: rawnand: stm32_fmc2: manage all errors cases at probe time

2020-05-05 Thread Christophe Kerello
This patch defers its probe when the expected reset control is not yet ready. This patch also handles properly all errors cases at probe time. Signed-off-by: Christophe Kerello --- Changes in v3: - rename labels used on errors drivers/mtd/nand/raw/stm32_fmc2_nand.c | 17 +++-- 1

[PATCH v3 07/10] dt-bindings: memory-controller: add STM32 FMC2 EBI controller documentation

2020-05-05 Thread Christophe Kerello
This patch adds the documentation of the device tree bindings for the STM32 FMC2 EBI controller. Signed-off-by: Christophe Kerello --- Changes in v3: - pattern name has been modified - vendor properties have been modified - s/_/-/ - add unit suffix (-ns) on timing properties

[PATCH v3 08/10] memory: stm32-fmc2-ebi: add STM32 FMC2 EBI controller driver

2020-05-05 Thread Christophe Kerello
The driver adds the support for the STMicroelectronics FMC2 EBI controller found on STM32MP SOCs. Signed-off-by: Christophe Kerello --- Changes in v3: - Move in memory folder - Merge MFD and BUS drivers to avoid a MFD driver drivers/memory/Kconfig | 10 + drivers/memory/Makefile

[PATCH v3 06/10] dt-bindings: mtd: update STM32 FMC2 NAND controller documentation

2020-05-05 Thread Christophe Kerello
These bindings can be used on SOCs where the FMC2 NAND controller is in standalone. In case that the FMC2 embeds 2 controllers (an external bus controller and a raw NAND controller), the register base and the clock will be defined in the parent node. It is the reason why the register base address

[PATCH v3 00/10] add STM32 FMC2 EBI controller driver

2020-05-05 Thread Christophe Kerello
The FMC2 functional block makes the interface with: synchronous and asynchronous static devices (such as PSNOR, PSRAM or other memory-mapped peripherals) and NAND flash memories. Its main purposes are: - to translate AXI transactions into the appropriate external device protocol - to meet

[PATCH v3 04/10] mtd: rawnand: stm32_fmc2: cleanup

2020-05-05 Thread Christophe Kerello
This patch renames functions and local variables. This cleanup is done to get all functions starting by stm32_fmc2_nfc in the FMC2 raw NAND driver when all functions will start by stm32_fmc2_ebi in the FMC2 EBI driver. Signed-off-by: Christophe Kerello Reviewed-by: Miquel Raynal --- Changes in

[PATCH v3 05/10] mtd: rawnand: stm32_fmc2: use FIELD_PREP/FIELD_GET macros

2020-05-05 Thread Christophe Kerello
This patch removes custom macros and uses FIELD_PREP and FIELD_GET macros. Signed-off-by: Christophe Kerello Reviewed-by: Miquel Raynal --- Changes in v3: - add Miquel reviewed-by tag drivers/mtd/nand/raw/stm32_fmc2_nand.c | 177 - 1 file changed, 85

[PATCH v3 10/10] mtd: rawnand: stm32_fmc2: get resources from parent node

2020-05-05 Thread Christophe Kerello
FMC2 EBI support has been added. Common resources (registers base and clock) are now shared between the 2 drivers. It means that the common resources should now be found in the parent device when EBI node is available. Signed-off-by: Christophe Kerello --- drivers/mtd/nand/raw/Kconfig

[PATCH v3 09/10] mtd: rawnand: stm32_fmc2: use regmap APIs

2020-05-05 Thread Christophe Kerello
This patch uses regmap APIs to access all FMC2 registers. Signed-off-by: Christophe Kerello Reviewed-by: Miquel Raynal --- Changes in v3: - add Miquel reviewed-by tag drivers/mtd/nand/raw/Kconfig | 2 + drivers/mtd/nand/raw/stm32_fmc2_nand.c | 268

[PATCH v3 03/10] mtd: rawnand: stm32_fmc2: use FMC2_TIMEOUT_MS for timeouts

2020-05-05 Thread Christophe Kerello
This patch removes the constant FMC2_TIMEOUT_US. FMC2_TIMEOUT_MS will be used each time that we need to wait (except when the timeout value is set by the framework). It was seen, during stress tests with the sequencer in an overloaded system, that we could be close to 1 second, even if we never

[PATCH v3 02/10] mtd: rawnand: stm32_fmc2: remove useless inline comments

2020-05-05 Thread Christophe Kerello
Remove inline comments that are useless since function label are self explanatory. Signed-off-by: Christophe Kerello Reviewed-by: Miquel Raynal --- Changes in v3: - add Miquel reviewed-by tag drivers/mtd/nand/raw/stm32_fmc2_nand.c | 40 -- 1 file changed, 40

Re: [PATCH] firmware: arm_scmi: fix psci dependency

2020-05-05 Thread Sudeep Holla
On Tue, May 05, 2020 at 05:22:42PM +0100, Will Deacon wrote: > On Tue, May 05, 2020 at 04:04:21PM +0100, Sudeep Holla wrote: > > On Tue, May 05, 2020 at 04:08:08PM +0200, Arnd Bergmann wrote: > > > When CONFIG_ARM_PSCI_FW is disabled but CONFIG_HAVE_ARM_SMCCC is enabled, > > > arm-scmi runs into a

Re: [PATCH 3/3] vfio-pci: Invalidate mmaps and block MMIO access on disabled memory

2020-05-05 Thread Alex Williamson
On Mon, 4 May 2020 17:01:23 -0300 Jason Gunthorpe wrote: > On Mon, May 04, 2020 at 01:35:52PM -0600, Alex Williamson wrote: > > > Ok, this all makes a lot more sense with memory_lock still in the > > picture. And it looks like you're not insisting on the wait_event, we > > can block on

Re: [PATCH] KVM: X86: Declare KVM_CAP_SET_GUEST_DEBUG properly

2020-05-05 Thread Paolo Bonzini
On 05/05/20 17:47, Peter Xu wrote: > KVM_CAP_SET_GUEST_DEBUG should be supported for x86 however it's not declared > as supported. My wild guess is that userspaces like QEMU are using "#ifdef > KVM_CAP_SET_GUEST_DEBUG" to check for the capability instead, but that could > be > wrong because the

Re: [PATCH] firmware: arm_scmi: fix psci dependency

2020-05-05 Thread Sudeep Holla
On Tue, May 05, 2020 at 05:21:36PM +0100, Mark Rutland wrote: > On Tue, May 05, 2020 at 04:04:21PM +0100, Sudeep Holla wrote: > > Hi Arnd, > > > > On Tue, May 05, 2020 at 04:08:08PM +0200, Arnd Bergmann wrote: > > > When CONFIG_ARM_PSCI_FW is disabled but CONFIG_HAVE_ARM_SMCCC is enabled, > > >

Re: [PATCH] ubsan, kcsan: don't combine sanitizer with kcov

2020-05-05 Thread Marco Elver
On Tue, 5 May 2020 at 17:29, Arnd Bergmann wrote: > > On Tue, May 5, 2020 at 5:20 PM 'Marco Elver' via Clang Built Linux > wrote: > > > > --- a/lib/Kconfig.kcsan > > > +++ b/lib/Kconfig.kcsan > > > @@ -5,7 +5,7 @@ config HAVE_ARCH_KCSAN > > > > > > menuconfig KCSAN > > > bool "KCSAN:

Re: [PATCH v2 0/5] Statsfs: a new ram-based file sytem for Linux kernel statistics

2020-05-05 Thread David Rientjes
On Tue, 5 May 2020, Paolo Bonzini wrote: > >>> Since this is becoming a generic API (good!!), maybe we can discuss > >>> possible ways to optimize gathering of stats in mass? > >> Sure, the idea of a binary format was considered from the beginning in > >> [1], and it can be done either together

Re: Re: [PATCH net v2 0/2] Revert the 'socket_alloc' life cycle change

2020-05-05 Thread SeongJae Park
On Tue, 5 May 2020 09:37:42 -0700 Eric Dumazet wrote: > > > On 5/5/20 9:31 AM, Eric Dumazet wrote: > > > > > > On 5/5/20 9:25 AM, Eric Dumazet wrote: > >> > >> > >> On 5/5/20 9:13 AM, SeongJae Park wrote: > >>> On Tue, 5 May 2020 09:00:44 -0700 Eric Dumazet > >>> wrote: > >>> > On

Re: [GIT PULL] perf/core improvements and fixes

2020-05-05 Thread Arnaldo Carvalho de Melo
Em Tue, May 05, 2020 at 11:57:18AM -0500, Daniel Díaz escreveu: > Hello! > > On Tue, 5 May 2020 at 11:37, Arnaldo Carvalho de Melo > wrote: > > > > Em Mon, May 04, 2020 at 02:07:56PM -0500, Daniel Díaz escreveu: > > > Hello! > > > > > > On Fri, 24 Apr 2020 at 09:10, Andreas Gerstmayr > > >

Re: [BUG] net: chelsio: Possible buffer overflow caused by DMA failures/attacks

2020-05-05 Thread Greg KH
On Tue, May 05, 2020 at 11:50:28PM +0800, Jia-Ju Bai wrote: > In alloc_rx_resources(): >     sge->respQ.entries = >         pci_alloc_consistent(pdev, size, >respQ.dma_addr); > > Thus, "sge->respQ.entries" is a DMA value, and it is assigned to > "e" in process_pure_responses(): >     struct sge

Re: [PATCH v2 0/5] Statsfs: a new ram-based file sytem for Linux kernel statistics

2020-05-05 Thread Paolo Bonzini
On 05/05/20 18:53, Jim Mattson wrote: >>> Since this is becoming a generic API (good!!), maybe we can discuss >>> possible ways to optimize gathering of stats in mass? >> Sure, the idea of a binary format was considered from the beginning in >> [1], and it can be done either together with the

[PATCH v2] arm64: dts: rockchip: fix phy nodename for rk3328

2020-05-05 Thread Johan Jonker
A test with the command below gives for example this error: arch/arm64/boot/dts/rockchip/rk3328-evb.dt.yaml: phy@0: '#phy-cells' is a required property The phy nodename is normally used by a phy-handle. This node is however compatible with "ethernet-phy-id1234.d400", "ethernet-phy-ieee802.3-c22"

Re: [PATCH 5.6 00/73] 5.6.11-rc1 review

2020-05-05 Thread Greg Kroah-Hartman
On Tue, May 05, 2020 at 10:19:31AM -0600, shuah wrote: > On 5/5/20 9:43 AM, shuah wrote: > > On 5/5/20 9:36 AM, Takashi Iwai wrote: > > > On Tue, 05 May 2020 17:30:07 +0200, > > > shuah wrote: > > > > > > > > On 5/5/20 9:25 AM, shuah wrote: > > > > > On 5/4/20 11:57 AM, Greg Kroah-Hartman wrote:

Re: [PATCH] fsnotify: avoid gcc-10 zero-length-bounds warning

2020-05-05 Thread Linus Torvalds
On Tue, May 5, 2020 at 8:24 AM Arnd Bergmann wrote: > > Linus, let me know if you would like me to Cc you on the other gcc-10 > warning fixes I have and possibly apply some directly. Sure. If you have any of the "trivially correct, and doesn't make code look worse", push them my way. I only did

[PATCH v11 4/8] soc: aspeed: xdma: Add reset ioctl

2020-05-05 Thread Eddie James
Users of the XDMA engine need a way to reset it if something goes wrong. Problems on the host side, or user error, such as incorrect host address, may result in the DMA operation never completing and no way to determine what went wrong. Therefore, add an ioctl to reset the engine so that users can

[PATCH v11 0/8] soc: aspeed: Add XDMA engine driver

2020-05-05 Thread Eddie James
This series adds a driver to control the Aspeed XDMA engine embedded in the AST2500 and AST2600. The XDMA engine performs automatic DMA operations over PCI-E between the Aspeed SOC (acting as a BMC) and a host processor. Changes since v10: - Fix devicetree binding documentation - Add patches to

Re: [f2fs-dev] [PATCH] f2fs: get parent inode when recovering pino

2020-05-05 Thread Eric Biggers
On Tue, May 05, 2020 at 08:31:39AM -0700, Jaegeuk Kim wrote: > We had to grab the inode before retrieving i_ino. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/file.c | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c > index

[PATCH v11 1/8] dt-bindings: soc: Add Aspeed XDMA Engine

2020-05-05 Thread Eddie James
Document the bindings for the Aspeed AST25XX and AST26XX XDMA engine. Signed-off-by: Eddie James Reviewed-by: Andrew Jeffery --- .../devicetree/bindings/soc/aspeed/xdma.yaml | 103 + MAINTAINERS| 6 ++ 2 files changed, 109

[PATCH v11 6/8] ARM: dts: Aspeed: AST2500: Update XDMA engine node

2020-05-05 Thread Eddie James
Correct the pcie-device property, and add the Aspeed SCU interrupt controller include. Signed-off-by: Eddie James --- arch/arm/boot/dts/aspeed-g5.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi

[PATCH v11 3/8] soc: aspeed: xdma: Add user interface

2020-05-05 Thread Eddie James
This commits adds a miscdevice to provide a user interface to the XDMA engine. The interface provides the write operation to start DMA operations. The DMA parameters are passed as the data to the write call. The actual data to transfer is NOT passed through write. Note that both directions of DMA

[PATCH v11 2/8] soc: aspeed: Add XDMA Engine Driver

2020-05-05 Thread Eddie James
The XDMA engine embedded in the AST2500 and AST2600 SOCs performs PCI DMA operations between the SOC (acting as a BMC) and a host processor in a server. This commit adds a driver to control the XDMA engine and adds functions to initialize the hardware and memory and start DMA operations.

[PATCH v11 5/8] ARM: dts: Aspeed: AST2600: Update XDMA engine node

2020-05-05 Thread Eddie James
Add the PCI-E root complex reset, correct the pcie-device property, and add the Aspeed SCU interrupt controller include. Signed-off-by: Eddie James --- arch/arm/boot/dts/aspeed-g6.dtsi | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi

[PATCH v11 8/8] ARM: dts: Aspeed: Tacoma: Enable XDMA engine

2020-05-05 Thread Eddie James
Add a reserved memory node for the VGA memory. Add the XDMA engine node, enable it, and point it's memory region to the VGA memory. Signed-off-by: Eddie James --- arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH v11 7/8] ARM: dts: Aspeed: Witherspoon: Enable XDMA engine

2020-05-05 Thread Eddie James
Add a reserved memory node for the VGA memory. Add the XDMA engine node, enable it, and point it's memory region to the VGA memory. Signed-off-by: Eddie James --- arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git

Re: [PATCH] memcg: oom: ignore oom warnings from memory.max

2020-05-05 Thread Johannes Weiner
On Tue, May 05, 2020 at 08:03:17AM -0700, Shakeel Butt wrote: > On Tue, May 5, 2020 at 12:13 AM Michal Hocko wrote: > > So instead of potentially removing a useful information can we focus on > > the remote charging side of the problem and deal with it in a sensible > > way? That would make

RE: [PATCH 4.19 11/37] PM: hibernate: Freeze kernel threads in software_resume()

2020-05-05 Thread Dexuan Cui
> From: Pavel Machek > Sent: Tuesday, May 5, 2020 5:10 AM > To: Greg Kroah-Hartman > Cc: linux-kernel@vger.kernel.org; sta...@vger.kernel.org; Dexuan Cui > ; Rafael J. Wysocki > Subject: Re: [PATCH 4.19 11/37] PM: hibernate: Freeze kernel threads in > software_resume() > > Hi! > > > commit

Re: [GIT PULL] perf/core improvements and fixes

2020-05-05 Thread Daniel Díaz
Hello! On Tue, 5 May 2020 at 11:37, Arnaldo Carvalho de Melo wrote: > > Em Mon, May 04, 2020 at 02:07:56PM -0500, Daniel Díaz escreveu: > > Hello! > > > > On Fri, 24 Apr 2020 at 09:10, Andreas Gerstmayr > > wrote: > > > > > > On 24.04.20 15:07, Arnaldo Carvalho de Melo wrote: > > > > Em Thu,

Re: [PATCH v5 3/6] fs: Enable to enforce noexec mounts or file exec through O_MAYEXEC

2020-05-05 Thread Mickaël Salaün
On 05/05/2020 17:44, Randy Dunlap wrote: > On 5/5/20 8:31 AM, Mickaël Salaün wrote: >> diff --git a/security/Kconfig b/security/Kconfig >> index cd3cc7da3a55..d8fac9240d14 100644 >> --- a/security/Kconfig >> +++ b/security/Kconfig >> @@ -230,6 +230,32 @@ config STATIC_USERMODEHELPER_PATH >>

Re: [PATCH v2 0/5] Statsfs: a new ram-based file sytem for Linux kernel statistics

2020-05-05 Thread Jim Mattson
On Tue, May 5, 2020 at 2:18 AM Emanuele Giuseppe Esposito wrote: > > > > On 5/4/20 11:37 PM, David Rientjes wrote: > > Since this is becoming a generic API (good!!), maybe we can discuss > > possible ways to optimize gathering of stats in mass? > > Sure, the idea of a binary format was considered

Re: remove set_fs calls from the coredump code v6

2020-05-05 Thread Linus Torvalds
On Tue, May 5, 2020 at 3:13 AM Christoph Hellwig wrote: > > this series gets rid of playing with the address limit in the exec and > coredump code. Most of this was fairly trivial, the biggest changes are > those to the spufs coredump code. Ack, nice, and looks good. The only part I dislike is

Re: [PATCH v3] i2c: at91: support atomic write xfer

2020-05-05 Thread Michał Mirosław
On Tue, May 05, 2020 at 05:52:28PM +0200, Wolfram Sang wrote: > Hi, > > > I don't expect this to be used for much more than a simple write to PMIC > > to kill the power. So this patch is tailor made for exactly this purpose. > > Frankly, I don't like it much. The atomic callbacks are supposed to

Re: [PATCH v2 02/15] ARM: actions: Drop unneeded select of COMMON_CLK

2020-05-05 Thread Geert Uytterhoeven
Hi Andreas, On Tue, May 5, 2020 at 6:04 PM Andreas Färber wrote: > Am 05.05.20 um 17:07 schrieb Geert Uytterhoeven: > > Support for Actions Semi SoCs depends on ARCH_MULTI_V7, and thus on > > ARCH_MULTIPLATFORM. > > As the latter selects COMMON_CLK, there is no need for ARCH_ACTIONS to > >

Re: [PATCH] memcg: oom: ignore oom warnings from memory.max

2020-05-05 Thread Johannes Weiner
On Tue, May 05, 2020 at 08:35:45AM -0700, Shakeel Butt wrote: > On Tue, May 5, 2020 at 8:27 AM Johannes Weiner wrote: > > > > On Mon, May 04, 2020 at 12:23:51PM -0700, Shakeel Butt wrote: > > > On Mon, May 4, 2020 at 9:06 AM Michal Hocko wrote: > > > > I really hate to repeat myself but this is

Re: [PATCH v2 4/7] serial: 8250: Handle implementations not having TEMT interrupt using em485

2020-05-05 Thread Maarten Brock
On 2020-05-02 15:49, Lukas Wunner wrote: On Thu, Mar 26, 2020 at 12:14:19AM +0100, Heiko Stuebner wrote: Some 8250 ports have a TEMT interrupt but it's not a part of the 8250 standard, instead only available on some implementations. The current em485 implementation does not work on ports

Re: [GIT PULL] perf/core improvements and fixes

2020-05-05 Thread Arnaldo Carvalho de Melo
Em Mon, May 04, 2020 at 02:07:56PM -0500, Daniel Díaz escreveu: > Hello! > > On Fri, 24 Apr 2020 at 09:10, Andreas Gerstmayr wrote: > > > > On 24.04.20 15:07, Arnaldo Carvalho de Melo wrote: > > > Em Thu, Apr 23, 2020 at 04:28:46PM -0500, Daniel Díaz escreveu: > > >> On Wed, 22 Apr 2020 at

Re: [PATCH net v2 0/2] Revert the 'socket_alloc' life cycle change

2020-05-05 Thread Eric Dumazet
On 5/5/20 9:31 AM, Eric Dumazet wrote: > > > On 5/5/20 9:25 AM, Eric Dumazet wrote: >> >> >> On 5/5/20 9:13 AM, SeongJae Park wrote: >>> On Tue, 5 May 2020 09:00:44 -0700 Eric Dumazet wrote: >>> On Tue, May 5, 2020 at 8:47 AM SeongJae Park wrote: > > On Tue, 5 May 2020 08:20:50

Re: [PATCH v4 6/6] spi: spi-qcom-qspi: Use OPP API to set clk/perf state

2020-05-05 Thread Matthias Kaehlcke
Hi Rajendra, On Sun, May 03, 2020 at 05:34:29PM +0530, Rajendra Nayak wrote: > QSPI needs to vote on a performance state of a power domain depending on > the clock rate. Add support for it by specifying the perf state/clock rate > as an OPP table in device tree. > > Signed-off-by: Rajendra Nayak

Re: x86/uv cleanups

2020-05-05 Thread Andy Lutomirski
> On May 5, 2020, at 9:25 AM, Dimitri Sivanich wrote: > > Yes, we do see a need to clean up old code where it exists, but we would like > to assume this responsibility ourselves in order to ensure functional > continuity > with externally available open-sourced modules that our customers

Re: [PATCH] xenbus: avoid stack overflow warning

2020-05-05 Thread Jürgen Groß
On 05.05.20 18:12, Boris Ostrovsky wrote: On 5/5/20 12:02 PM, Jürgen Groß wrote: On 05.05.20 17:01, Arnd Bergmann wrote: On Tue, May 5, 2020 at 4:34 PM Jürgen Groß wrote: On 05.05.20 16:15, Arnd Bergmann wrote: The __xenbus_map_ring() function has two large arrays, 'map' and 'unmap' on its

Re: [PATCH 1/3] pci: Add Designated Vendor Specific Capability

2020-05-05 Thread Bjorn Helgaas
$ git log --oneline include/uapi/linux/pci_regs.h 202853595e53 PCI: pciehp: Disable in-band presence detect when possible ed22aaaede44 PCI: dwc: intel: PCIe RC controller driver bbdb2f5ecdf1 PCI: Add #defines for Enter Compliance, Transmit Margin c9c13ba428ef PCI: Add PCI_STD_NUM_BARS

[PATCH] net: ethernet: ti: am65-cpsw-nuss: fix irqs type

2020-05-05 Thread Grygorii Strashko
The K3 INTA driver, which is source TX/RX IRQs for CPSW NUSS, defines IRQs triggering type as EDGE by default, but triggering type for CPSW NUSS TX/RX IRQs has to be LEVEL as the EDGE triggering type may cause unnecessary IRQs triggering and NAPI scheduling for empty queues. It was discovered with

Re: [PATCH net v2 0/2] Revert the 'socket_alloc' life cycle change

2020-05-05 Thread Eric Dumazet
On 5/5/20 9:25 AM, Eric Dumazet wrote: > > > On 5/5/20 9:13 AM, SeongJae Park wrote: >> On Tue, 5 May 2020 09:00:44 -0700 Eric Dumazet wrote: >> >>> On Tue, May 5, 2020 at 8:47 AM SeongJae Park wrote: On Tue, 5 May 2020 08:20:50 -0700 Eric Dumazet wrote: > >

Re: [PATCH] tools/gpio: add bias flags to lsgpio

2020-05-05 Thread Bartosz Golaszewski
czw., 30 kwi 2020 o 02:10 Kent Gibson napisał(a): > > Add display of the bias flags. > > Signed-off-by: Kent Gibson > --- > tools/gpio/lsgpio.c | 12 > 1 file changed, 12 insertions(+) > > diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c > index e1430f504c13..8a71ad36f83b

Re: Re: [PATCH net v2 0/2] Revert the 'socket_alloc' life cycle change

2020-05-05 Thread Al Viro
On Tue, May 05, 2020 at 09:00:44AM -0700, Eric Dumazet wrote: > > Not exactly the 10,000,000, as it is only the possible highest number, but I > > was able to observe clear exponential increase of the number of the objects > > using slabtop. Before the start of the problematic workload, the

[PATCH v3 0/2] usb: xhci: Load Raspberry Pi 4 VL805's firmware

2020-05-05 Thread Nicolas Saenz Julienne
Newer revisions of the RPi4 need their xHCI chip, VL805, firmware to be loaded explicitly. Earlier versions didn't need that as they where using an EEPROM for that purpose. This series takes care of setting up the relevant infrastructure and run the firmware loading routine at the right moment.

[PATCH v3 2/2] usb: xhci: Load Raspberry Pi 4 VL805's firmware

2020-05-05 Thread Nicolas Saenz Julienne
When needed, RPi4's co-processor (called VideoCore) has to be instructed to load VL805's firmware (the chip providing xHCI support). VideCore's firmware expects the board's PCIe bus to be already configured in order for it to load the xHCI chip firmware. So we have to make sure this happens in

[PATCH v3 1/2] arm: rpi: Add function to trigger VL805's firmware load

2020-05-05 Thread Nicolas Saenz Julienne
On the Raspberry Pi 4, after a PCI reset, VL805's (a xHCI chip) firmware may either be loaded directly from an EEPROM or, if not present, by the SoC's VideCore (the SoC's co-processor). Introduce the function that informs VideCore that VL805 may need its firmware loaded. Signed-off-by: Nicolas

Re: [PATCH] gpio: exar: Fix bad handling for ida_simple_get error path

2020-05-05 Thread Bartosz Golaszewski
śr., 29 kwi 2020 o 15:56 Takashi Iwai napisał(a): > > The commit 7ecced0934e5 ("gpio: exar: add a check for the return value > of ida_simple_get fails") added a goto jump to the common error > handler for ida_simple_get() error, but this is wrong in two ways: > it doesn't set the proper return

Re: [PATCH net v2 0/2] Revert the 'socket_alloc' life cycle change

2020-05-05 Thread Eric Dumazet
On 5/5/20 9:13 AM, SeongJae Park wrote: > On Tue, 5 May 2020 09:00:44 -0700 Eric Dumazet wrote: > >> On Tue, May 5, 2020 at 8:47 AM SeongJae Park wrote: >>> >>> On Tue, 5 May 2020 08:20:50 -0700 Eric Dumazet >>> wrote: >>> On 5/5/20 8:07 AM, SeongJae Park wrote: > On

Re: [PATCH] gpio-f7188x: Add GPIO support for F81865

2020-05-05 Thread Bartosz Golaszewski
sob., 2 maj 2020 o 19:22 Petteri Jokinen napisał(a): > > Add GPIO support for Fintek F81865 chip. > > Datasheet: http://www.hardwaresecrets.com/datasheets/F81865_V028P.pdf > > Signed-off-by: Petteri Jokinen Patch applied, thanks! Bart

Re: [PATCH 0/4] allow multiple kthreadd's

2020-05-05 Thread J. Bruce Fields
On Tue, May 05, 2020 at 11:54:05AM -0400, Tejun Heo wrote: > Hello, Bruce. > > On Mon, May 04, 2020 at 10:15:14PM -0400, J. Bruce Fields wrote: > > We're currently using it to pass the struct svc_rqst that a new nfsd > > thread needs. But once the new thread has gotten that, I guess it could > >

Re: [PATCH] firmware: arm_scmi: fix psci dependency

2020-05-05 Thread Will Deacon
On Tue, May 05, 2020 at 04:04:21PM +0100, Sudeep Holla wrote: > On Tue, May 05, 2020 at 04:08:08PM +0200, Arnd Bergmann wrote: > > When CONFIG_ARM_PSCI_FW is disabled but CONFIG_HAVE_ARM_SMCCC is enabled, > > arm-scmi runs into a link failure: > > > > arm-linux-gnueabi-ld:

[PATCH net-next] net: ethernet: ti: am65-cpts: fix build

2020-05-05 Thread Grygorii Strashko
It's possible to have build configuration which will force PTP_1588_CLOCK=m and so TI_K3_AM65_CPTS=m while still have TI_K3_AM65_CPSW_NUSS=y. This will cause build failures: aarch64-linux-gnu-ld: ../drivers/net/ethernet/ti/am65-cpsw-nuss.o: in function `am65_cpsw_init_cpts':

Re: [PATCH] firmware: arm_scmi: fix psci dependency

2020-05-05 Thread Mark Rutland
On Tue, May 05, 2020 at 04:04:21PM +0100, Sudeep Holla wrote: > Hi Arnd, > > On Tue, May 05, 2020 at 04:08:08PM +0200, Arnd Bergmann wrote: > > When CONFIG_ARM_PSCI_FW is disabled but CONFIG_HAVE_ARM_SMCCC is enabled, > > arm-scmi runs into a link failure: > > > > arm-linux-gnueabi-ld:

Re: [PATCH v2 5/5] arm/arm64: smccc: Add ARCH_SOC_ID support

2020-05-05 Thread Will Deacon
On Mon, May 04, 2020 at 10:29:05AM +0100, Sudeep Holla wrote: > diff --git a/drivers/firmware/psci/soc_id.c b/drivers/firmware/psci/soc_id.c > new file mode 100644 > index ..b45f2d78e12e > --- /dev/null > +++ b/drivers/firmware/psci/soc_id.c > @@ -0,0 +1,165 @@ > +//

Re: [PATCH 5.6 00/73] 5.6.11-rc1 review

2020-05-05 Thread shuah
On 5/5/20 9:43 AM, shuah wrote: On 5/5/20 9:36 AM, Takashi Iwai wrote: On Tue, 05 May 2020 17:30:07 +0200, shuah wrote: On 5/5/20 9:25 AM, shuah wrote: On 5/4/20 11:57 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.6.11 release. There are 73 patches in

Re: [PATCH] gpio: tegra186: export MODULE_DEVICE_TABLE

2020-05-05 Thread Bartosz Golaszewski
wt., 5 maj 2020 o 10:45 Mian Yousaf Kaukab napisał(a): > > Export MODULE_DEVICE_TABLE since the driver can be built as a module. > > Signed-off-by: Mian Yousaf Kaukab > --- > drivers/gpio/gpio-tegra186.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpio/gpio-tegra186.c

Re: [PATCH] perf cs-etm: Move defined of traceid_list

2020-05-05 Thread Arnaldo Carvalho de Melo
Em Tue, May 05, 2020 at 08:52:18AM -0600, Mathieu Poirier escreveu: > On Tue, 5 May 2020 at 07:37, Leo Yan wrote: > > > > The variable 'traceid_list' is defined in the header file cs-etm.h, > > if multiple C files include cs-etm.h the compiler might complaint for > > multiple definition of

[PATCH v8 4/4] USB: pci-quirks: Add Raspberry Pi 4 quirk

2020-05-05 Thread Nicolas Saenz Julienne
On the Raspberry Pi 4, after a PCI reset, VL805's firmware may either be loaded directly from an EEPROM or, if not present, by the SoC's VideoCore. Inform VideoCore that VL805 was just reset. Also, as this creates a dependency between USB_PCI and VideoCore's firmware interface, and since USB_PCI

Re: Re: Re: [PATCH net v2 0/2] Revert the 'socket_alloc' life cycle change

2020-05-05 Thread SeongJae Park
On Tue, 5 May 2020 09:00:44 -0700 Eric Dumazet wrote: > On Tue, May 5, 2020 at 8:47 AM SeongJae Park wrote: > > > > On Tue, 5 May 2020 08:20:50 -0700 Eric Dumazet > > wrote: > > > > > > > > > > > On 5/5/20 8:07 AM, SeongJae Park wrote: > > > > On Tue, 5 May 2020 07:53:39 -0700 Eric Dumazet

Re: [PATCH v2 2/3] lib kallsyms: parse using io api

2020-05-05 Thread Arnaldo Carvalho de Melo
Em Tue, May 05, 2020 at 04:25:21PM +0200, Jiri Olsa escreveu: > On Fri, May 01, 2020 at 03:13:14PM -0700, Ian Rogers wrote: > > SNIP > > > diff --git a/tools/lib/symbol/kallsyms.c b/tools/lib/symbol/kallsyms.c > > index 1a7a9f877095..e335ac2b9e19 100644 > > --- a/tools/lib/symbol/kallsyms.c > >

[PATCH v8 3/4] PCI: brcmstb: Wait for Raspberry Pi's firmware when present

2020-05-05 Thread Nicolas Saenz Julienne
xHCI's PCI fixup, run at the end of pcie-brcmstb's probe, depends on RPi4's VideoCore firmware interface to be up and running. It's possible for both initializations to race, so make sure it's available prior to starting. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Florian Fainelli ---

[PATCH v8 2/4] firmware: raspberrypi: Introduce vl805 init routine

2020-05-05 Thread Nicolas Saenz Julienne
The Raspberry Pi 4 gets its USB functionality from VL805, a PCIe chip that implements xHCI. After a PCI reset, VL805's firmware may either be loaded directly from an EEPROM or, if not present, by the SoC's co-processor, VideoCore. RPi4's VideoCore OS contains both the non public firmware load

[PATCH v8 1/4] soc: bcm2835: Add notify xHCI reset property

2020-05-05 Thread Nicolas Saenz Julienne
The property is needed in order to trigger VL805's firmware load. Note that gap between the property introduced and the previous one is due to the properties not being defined. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Florian Fainelli --- include/soc/bcm2835/raspberrypi-firmware.h |

[PATCH v8 0/4] USB: pci-quirks: Add Raspberry Pi 4 quirk

2020-05-05 Thread Nicolas Saenz Julienne
On the Raspberry Pi 4, after a PCI reset, VL805's firmware may either be loaded directly from an EEPROM or, if not present, by the SoC's co-processor, VideoCore. This series adds support for the later. Note that there are a set of constraints we have to consider: - We need to make sure the

Re: [PATCH v2] arm64: cacheflush: Fix KGDB trap detection

2020-05-05 Thread Will Deacon
On Mon, 4 May 2020 18:05:18 +0100, Daniel Thompson wrote: > flush_icache_range() contains a bodge to avoid issuing IPIs when the kgdb > trap handler is running because issuing IPIs is unsafe (and not needed) > in this execution context. However the current test, based on > kgdb_connected is

Re: [PATCH] xenbus: avoid stack overflow warning

2020-05-05 Thread Boris Ostrovsky
On 5/5/20 12:02 PM, Jürgen Groß wrote: > On 05.05.20 17:01, Arnd Bergmann wrote: >> On Tue, May 5, 2020 at 4:34 PM Jürgen Groß wrote: >>> On 05.05.20 16:15, Arnd Bergmann wrote: The __xenbus_map_ring() function has two large arrays, 'map' and 'unmap' on its stack. When clang decides

Re: [PATCH 7/7] sysvipc_find_ipc should increase position index

2020-05-05 Thread Andreas Schwab
I think this is causing this bug (seen on 5.6.8): # ipcs -q -- Message Queues keymsqid owner perms used-bytes messages # ipcmk -Q Message queue id: 0 # ipcs -q -- Message Queues keymsqid owner perms used-bytes

Re: [PATCH v7 6/7] tpm: Add YAML schema for TPM TIS I2C options

2020-05-05 Thread Rob Herring
On Mon, Apr 27, 2020 at 03:49:30PM +0300, amirmi...@gmail.com wrote: > From: Amir Mizinski > > Added a YAML schema to support tpm tis i2c related dt-bindings for the I2c > PTP based physical layer. > > This patch adds the documentation for corresponding device tree bindings of > I2C based

Re: [PATCH] sched/fair: Fix nohz.next_balance update

2020-05-05 Thread Peng Liu
On Tue, May 05, 2020 at 05:43:04PM +0200, Vincent Guittot wrote: > On Tue, 5 May 2020 at 17:16, Peng Liu wrote: > > > > On Tue, May 05, 2020 at 04:27:11PM +0200, Vincent Guittot wrote: > > > Le mardi 05 mai 2020 à 21:40:56 (+0800), Peng Liu a écrit : > > > > On Mon, May 04, 2020 at 05:17:11PM

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