Re: [PATCH 01/12] ima: Have the LSM free its audit rule

2020-06-22 Thread Tyler Hicks
On 2020-06-22 17:55:59, Casey Schaufler wrote: > On 6/22/2020 5:32 PM, Tyler Hicks wrote: > > Ask the LSM to free its audit rule rather than directly calling kfree(). > > Both AppArmor and SELinux do additional work in their audit_rule_free() > > hooks. Fix memory leaks by allowing the LSMs to

Re:❕ Mein letztes Hallo liegt schon Tage zurück. Ist bei dir alles ok?

2020-06-22 Thread Bernd Weber
Das ist deine Chance - https://frigraddschedbe1884.blogspot.co.il/ Alles Gute und bis bald Bernd Weber =NEWS= Pulisic will be big for Chelsea - boss Lampard after 2-1 win at Villa Chelsea boss Frank Lampard backs Christian Pulisic to play

Re: [PATCH 0/4] Change i.MX/MXS SoCs ocotp/iim node name to efuse

2020-06-22 Thread Shawn Guo
On Thu, May 28, 2020 at 11:12:46AM +0800, Anson Huang wrote: > In the nvmem yaml schema, it requires the nodename to be one of > "eeprom|efuse|nvram", so need to change all i.MX/MXS SoCs ocotp/iim node > name to efuse: > > MXS platforms: i.MX23/28; > i.MX platforms with IIM:

Re: RFC - kernel selftest result documentation (KTAP)

2020-06-22 Thread David Gow
On Sat, Jun 20, 2020 at 11:03 PM Frank Rowand wrote: > > On 2020-06-20 01:44, David Gow wrote: > > On Sat, Jun 20, 2020 at 1:58 AM Frank Rowand wrote: > >> > >> On 2020-06-16 07:08, Paolo Bonzini wrote: > >>> On 15/06/20 21:07, Bird, Tim wrote: > > > >> Finally, > >> - Should a SKIP

[PATCH 2/2] drivers/base/memory: rename base_memory_block_id to memory_block_id

2020-06-22 Thread Wei Yang
memory_block may have a larger granularity than section, this is why we have base_section_nr. But base_memory_block_id seems a little misleading, since there is no larger granularity concept which groups several memory_block. What we need here is the exact memory_block_id to a section_nr. Let's

[PATCH 1/2] drivers/base/memory: init_memory_block() first parameter is not necessary

2020-06-22 Thread Wei Yang
The first parameter of init_memory_block() is intended to retrieve the memory_block initiated. But now, we never use it. Drop it for now. Signed-off-by: Wei Yang --- drivers/base/memory.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/base/memory.c

[PATCH 5.7 v2] x86/crypto: aesni: Fix build with LLVM_IAS=1

2020-06-22 Thread Sedat Dilek
When building with LLVM_IAS=1 means using Clang's Integrated Assembly (IAS) from LLVM/Clang >= v10.0.1-rc1+ instead of GNU/as from GNU/binutils I see the following breakage in Debian/testing AMD64: :15:74: error: too many positional arguments PRECOMPUTE 8*3+8(%rsp), %xmm1, %xmm2, %xmm3, %xmm4,

Re: [PATCH 6/6] arm64: defconfig: Enable Qualcomm IPCC driver

2020-06-22 Thread Manivannan Sadhasivam
On Mon, Jun 22, 2020 at 03:27:47PM -0700, Bjorn Andersson wrote: > The IPCC hardware block provides a mechanism for triggering interrupts > between co-processors in recent Qualcomm SoCs. This is used as basis for > most form of communication between co-processors, so enable this > support. > >

[PATCH v2 10/29] arm64: dts: realtek: rtd139x: Add chip info node

2020-06-22 Thread Andreas Färber
Add a DT node for chip identification. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd139x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd139x.dtsi b/arch/arm64/boot/dts/realtek/rtd139x.dtsi index

Re: [PATCH 5/6] arm64: dts: qcom: sm8250: Add remoteprocs

2020-06-22 Thread Manivannan Sadhasivam
On Mon, Jun 22, 2020 at 03:27:46PM -0700, Bjorn Andersson wrote: > Add remoteproc nodes for the audio, compute and sensor cores, define > glink for each one and enable them on the MTP with appropriate firmware > defined. > > Signed-off-by: Bjorn Andersson Reviewed-by: Manivannan Sadhasivam

[PATCH v2 12/29] arm64: dts: realtek: rtd16xx: Add chip info node

2020-06-22 Thread Andreas Färber
Add a DT node for chip identification. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi index

[PATCH v2 00/29] ARM: Realtek DHC SoC info

2020-06-22 Thread Andreas Färber
Hello, This series adds a soc bus driver for Realtek Digital Home Center SoC families. v2 is rebased on syscon and RTD1319, adjusts field widths and incorporates data additions from Stanley's monolithic patch. The previous RFC's reg hack is superseded in v2 with a trivial read-only eFuse

[PATCH v2 06/29] soc: realtek: chip: Detect RTD1296

2020-06-22 Thread Andreas Färber
Detection logic from downstream drivers/soc/realtek/rtd129x/rtk_chip.c. Acked-by: James Tai Signed-off-by: Andreas Färber --- TODO: Name the bit in ISO_CHIP_INFO1:bound_opts. v1 -> v2: * Instead of direct iso register access use the new syscon regmap drivers/soc/realtek/chip.c | 27

[PATCH v2 14/29] soc: realtek: chip: Add RTD1319 revisions

2020-06-22 Thread Andreas Färber
From: Stanley Chang Identify RTD1319 SoC revisions B00 to B02. Signed-off-by: Stanley Chang Signed-off-by: Andreas Färber --- v2: New * Split out from Stanley's v1 drivers/soc/realtek/chip.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/soc/realtek/chip.c

[PATCH v2 13/29] soc: realtek: chip: Add RTD1319 info

2020-06-22 Thread Andreas Färber
Revision based on downstream drivers/soc/realtek/rtd13xx/rtk_chip.c. Signed-off-by: Stanley Chang Signed-off-by: Andreas Färber --- v2: New * Filled in chip ID based on Stanley's v1 drivers/soc/realtek/chip.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v2 02/29] soc: Add Realtek DHC chip info driver for RTD1195 and RTD1295

2020-06-22 Thread Andreas Färber
Add a soc bus driver to print chip model and revision details. Revisions from downstream drivers/soc/realtek/rtd{119x,129x}/rtk_chip.c. Signed-off-by: Andreas Färber --- v1 -> v2: * Added entry to MAINTAINERS * Changed chip_id and chip_rev from u32 to u16, based on reg field definitions *

[PATCH v2 07/29] arm64: dts: realtek: rtd129x: Extend chip-info reg with CHIP_INFO1

2020-06-22 Thread Andreas Färber
This additional register is needed to distinguish RTD1296 from RTD1295. Signed-off-by: Andreas Färber --- v1 -> v2: * Switched from reg to new iso-syscon phandle arch/arm64/boot/dts/realtek/rtd129x.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 08/29] soc: realtek: chip: Detect RTD1293

2020-06-22 Thread Andreas Färber
Logic self-determined by comparing DS418j and DS418 registers. Signed-off-by: Andreas Färber --- TODO: Identify the bit in ISO_CHIP_INFO1:bound_opts and what it really means. v1 -> v2: * Rebased onto iso syscon regmap drivers/soc/realtek/chip.c | 5 - 1 file changed, 4 insertions(+),

[PATCH] i2c: designware: Fix functionality in !CONFIG_ACPI case

2020-06-22 Thread John Stultz
On the HiKey board, where CONFIG_ACPI is not set, we started to see a graphics regression where the adv7511 HDMI bridge driver wasn't probing. This was due to the i2c bus failing to start up. I bisected the problem down to commit f9288fcc5c615 ("i2c: designware: Move ACPI parts into common

[PATCH v2 21/29] arm64: dts: realtek: rtd139x: Add eFuse node

2020-06-22 Thread Andreas Färber
Add a DT node for eFuse. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd139x.dtsi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/realtek/rtd139x.dtsi b/arch/arm64/boot/dts/realtek/rtd139x.dtsi index

[PATCH v2 26/29] soc: realtek: chip: Detect RTD1294

2020-06-22 Thread Andreas Färber
Detection logic from downstream include/soc/realtek/rtd129x_cpu.h. Signed-off-by: Andreas Färber --- Note: We don't have any RTD1294 .dtsi/.dts yet. v1 -> v2: * Instead of direct eFuse register access use nvmem cell API * Warn on errors other than deferred probing

[PATCH v2 27/29] nvmem: core: Grammar fixes for help text

2020-06-22 Thread Andreas Färber
It's "an unsigned" but "a U". Similarly, "an entry" but "a binary entry". While at it, also drop superfluous articles for negative and zero. Fixes: 8b977c5498b8 ("nvmem: core: add nvmem_cell_read_u64") Fixes: 0a9b2d1ce422 ("nvmem: core: add nvmem_cell_read_u16") Fixes: d026d70a2e94 ("nvmem:

[PATCH v2 29/29] soc: realtek: chip: Adopt nvmem_cell_read_u8() helper

2020-06-22 Thread Andreas Färber
Replace the local helper with the newly introduced official one. Cc: Srinivas Kandagatla Signed-off-by: Andreas Färber --- This could be squashed if the new API and this commit were to get merged in subsequent merge windows or with the help of a topic branch. v2: New

[PATCH v2 25/29] arm64: dts: realtek: rtd129x: Add eFuse package_id to chip-info

2020-06-22 Thread Andreas Färber
Add the package_id field as sub-node to eFuse and reference it for chip identification. Signed-off-by: Andreas Färber --- v1 -> v2: * Instead of extending reg, use nvmem-cells reference for eFuse arch/arm64/boot/dts/realtek/rtd129x.dtsi | 16 +--- 1 file changed, 9

[PATCH v2 19/29] ARM: dts: rtd1195: Add eFuse node

2020-06-22 Thread Andreas Färber
Add a DT node for eFuse. Signed-off-by: Andreas Färber --- v2: New arch/arm/boot/dts/rtd1195.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/rtd1195.dtsi b/arch/arm/boot/dts/rtd1195.dtsi index 5ad0e81c37af..2ae08f6da9e8 100644 ---

Re: [PATCH RFC v8 02/11] vhost: use batched get_vq_desc version

2020-06-22 Thread Jason Wang
On 2020/6/23 上午12:00, Michael S. Tsirkin wrote: On Wed, Jun 17, 2020 at 11:19:26AM +0800, Jason Wang wrote: On 2020/6/11 下午7:34, Michael S. Tsirkin wrote: static void vhost_vq_free_iovecs(struct vhost_virtqueue *vq) { kfree(vq->descs); @@ -394,6 +400,9 @@ static long

[PATCH v2 22/29] arm64: dts: realtek: rtd16xx: Add eFuse node

2020-06-22 Thread Andreas Färber
Add a DT node for eFuse. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi index 04cb546142a0..3c955fc7450c 100644

[PATCH v2 18/29] nvmem: Add Realtek DHC eFuse driver

2020-06-22 Thread Andreas Färber
Implement enough of a read-only nvmem driver to easily read efuse cells. Cc: Cheng-Yu Lee Signed-off-by: Andreas Färber --- v2: New MAINTAINERS | 1 + drivers/nvmem/Kconfig | 9 drivers/nvmem/Makefile| 2 + drivers/nvmem/rtk-dhc-efuse.c | 86

[PATCH v2 28/29] nvmem: core: Add nvmem_cell_read_u8()

2020-06-22 Thread Andreas Färber
Complement the u16, u32 and u64 helpers with a u8 variant to ease accessing byte-sized values. This helper will be useful for Realtek Digital Home Center platforms, which store some byte and sub-byte sized values in non-volatile memory. Signed-off-by: Andreas Färber --- v2: New

[PATCH v2 16/29] soc: realtek: chip: Detect RTD1392

2020-06-22 Thread Andreas Färber
From: Stanley Chang Distinguish RTD1392 from RTD1395 via ISO_CHIP_INFO1 register. Signed-off-by: Stanley Chang Signed-off-by: Andreas Färber --- TODO: Name the bit in ISO_CHIP_INFO1:bound_opts. Note: We don't have any RTD1392 .dtsi/.dts yet. v2: New * Split out from Stanley's v1

[PATCH v2 23/29] arm64: dts: realtek: rtd13xx: Add eFuse node

2020-06-22 Thread Andreas Färber
Add a DT node for eFuse. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd13xx.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd13xx.dtsi b/arch/arm64/boot/dts/realtek/rtd13xx.dtsi index e4271ef5cb1e..ed5ee7cc6a44 100644

[PATCH v2 05/29] dt-bindings: soc: realtek: rtd1195-chip: Add iso-syscon property

2020-06-22 Thread Andreas Färber
Allow to optionally specify a phandle to iso syscon to identify the chip. RTD1295 family will want to check the ISO_CHIP_INFO1 register. Signed-off-by: Andreas Färber --- A SoC specific binding would defeat the purpose of the generic Linux driver detecting the SoC based on registers. Simply

[PATCH v2 01/29] dt-bindings: soc: Add Realtek RTD1195 chip info binding

2020-06-22 Thread Andreas Färber
Define a binding for RTD1195 and later DHC SoCs' chip info registers. Add the new directory to MAINTAINERS. Signed-off-by: Andreas Färber --- Note: The binding gets extended compatibly twice with additional properties. Could be squashed later if approved. v1 -> v2: * Dropped quotes for

[PATCH v2 24/29] dt-bindings: soc: realtek: rtd1195-chip: Allow nvmem-cells property

2020-06-22 Thread Andreas Färber
Allow to optionally specify nvmem cells to identify the chip. RTD1295 family will want the eFuse package_id cell. Signed-off-by: Andreas Färber --- v1 -> v2: * Instead of extending reg, allow nvmem-cells reference for eFuse .../bindings/soc/realtek/realtek,rtd1195-chip.yaml | 12

[PATCH v2 20/29] arm64: dts: realtek: rtd129x: Add eFuse node

2020-06-22 Thread Andreas Färber
Add a DT node for eFuse. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd129x.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd129x.dtsi b/arch/arm64/boot/dts/realtek/rtd129x.dtsi index

[PATCH v2 09/29] soc: realtek: chip: Add RTD1395 info

2020-06-22 Thread Andreas Färber
Chip ID from BPi-M4. Revisions based on downstream drivers/soc/realtek/rtd139x/rtk_chip.c. Signed-off-by: Andreas Färber --- v2: New drivers/soc/realtek/chip.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/soc/realtek/chip.c b/drivers/soc/realtek/chip.c index

Re: [PATCH 13/16] mm: support THP migration to device private memory

2020-06-22 Thread Huang, Ying
Ralph Campbell writes: > On 6/22/20 4:54 PM, Yang Shi wrote: >> On Mon, Jun 22, 2020 at 4:02 PM John Hubbard wrote: >>> >>> On 2020-06-22 15:33, Yang Shi wrote: On Mon, Jun 22, 2020 at 3:30 PM Yang Shi wrote: > On Mon, Jun 22, 2020 at 2:53 PM Zi Yan wrote: >> On 22 Jun 2020, at

[PATCH v2 17/29] dt-bindings: nvmem: Add Realtek RTD1195 eFuse

2020-06-22 Thread Andreas Färber
Add a DT binding for eFuse on Realtek Digital Home Center SoCs. Signed-off-by: Andreas Färber --- v2: New .../bindings/nvmem/realtek,rtd1195-efuse.yaml | 53 +++ MAINTAINERS | 1 + 2 files changed, 54 insertions(+) create mode 100644

[PATCH v2 04/29] ARM: dts: rtd1195: Add chip info node

2020-06-22 Thread Andreas Färber
Add a DT node for chip identification. Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased onto SB2 syscon arch/arm/boot/dts/rtd1195.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rtd1195.dtsi b/arch/arm/boot/dts/rtd1195.dtsi index

[PATCH v2 03/29] arm64: dts: realtek: rtd129x: Add chip info node

2020-06-22 Thread Andreas Färber
Add a DT node for chip identification. Acked-by: James Tai Signed-off-by: Andreas Färber --- v1 -> v2: * Rebased onto SB2 syscon arch/arm64/boot/dts/realtek/rtd129x.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd129x.dtsi

[PATCH v2 15/29] arm64: dts: realtek: rtd13xx: Add chip info node

2020-06-22 Thread Andreas Färber
Add a DT node for chip identification. Signed-off-by: Andreas Färber --- v2: New arch/arm64/boot/dts/realtek/rtd13xx.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd13xx.dtsi b/arch/arm64/boot/dts/realtek/rtd13xx.dtsi index

[PATCH v2 11/29] soc: realtek: chip: Add RTD1619 info

2020-06-22 Thread Andreas Färber
Revisions based on downstream drivers/soc/realtek/rtd16xx/rtk_chip.c. Signed-off-by: Andreas Färber --- v2: New drivers/soc/realtek/chip.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/soc/realtek/chip.c b/drivers/soc/realtek/chip.c index aa7ca6bb1e64..e3220187e336

[PATCH] [net] dcb_doit: remove redundant skb check

2020-06-22 Thread Gaurav Singh
skb cannot be NULL here since its already being accessed before: sock_net(skb->sk). Remove the redundant null check. Signed-off-by: Gaurav Singh --- net/dcb/dcbnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c index

Re: [PATCH v2] ARM: dts: imx6qdl-gw: add Gateworks System Controller support

2020-06-22 Thread Shawn Guo
On Thu, Jun 18, 2020 at 09:19:09AM -0700, Tim Harvey wrote: > Add Gateworks System Controller support to Gateworks Ventana boards: > - add dt bindings for GSC mfd driver and hwmon driver for ADC's and > fan controllers. > - add dt bindings for gpio-keys driver for push-button and interrupt

Re: [PATCH 4/6] arm64: dts: qcom: sm8250: Add SMP2P nodes

2020-06-22 Thread Manivannan Sadhasivam
On Mon, Jun 22, 2020 at 03:27:45PM -0700, Bjorn Andersson wrote: > SMP2P is used for interrupting and being interrupted about remoteproc > state changes related to the audio, compute and sensor subsystems. > > Signed-off-by: Bjorn Andersson Reviewed-by: Manivannan Sadhasivam Thanks, Mani >

Re: RFC: KTAP documentation - expected messages

2020-06-22 Thread David Gow
On Mon, Jun 22, 2020 at 6:45 AM Frank Rowand wrote: > > Tim Bird started a thread [1] proposing that he document the selftest result > format used by Linux kernel tests. > > [1] > https://lore.kernel.org/r/cy4pr13mb1175b804e31e502221bc8163fd...@cy4pr13mb1175.namprd13.prod.outlook.com > > The

Re: [PATCH 3/6] arm64: dts: qcom: sm8250: Add QMP AOSS node

2020-06-22 Thread Manivannan Sadhasivam
On Mon, Jun 22, 2020 at 03:27:44PM -0700, Bjorn Andersson wrote: > Add a node for the QMP AOSS. > > Signed-off-by: Bjorn Andersson Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > arch/arm64/boot/dts/qcom/sm8250.dtsi | 14 ++ > 1 file changed, 14 insertions(+) > > diff

Re: linux-next build error (9)

2020-06-22 Thread Stephen Rothwell
Hi Peter, On Mon, 22 Jun 2020 11:49:23 +0200 Peter Zijlstra wrote: > > On Mon, Jun 22, 2020 at 02:37:12AM -0700, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:27f11fea Add linux-next specific files for 202

Re: [v4 PATCH 0/3] Extend coredump functionality

2020-06-22 Thread rishabhb
On 2020-06-22 15:23, Bjorn Andersson wrote: On Wed 27 May 13:26 PDT 2020, Rishabh Bhatnagar wrote: This patch series moves the coredump functionality to a separate file and adds "inline" coredump feature. Inline coredump directly copies segments from device memory during coredump to userspace.

Re: [PATCH 2/6] arm64: dts: qcom: sm8250: Add IPCC

2020-06-22 Thread Manivannan Sadhasivam
On Mon, Jun 22, 2020 at 03:27:43PM -0700, Bjorn Andersson wrote: > Add the IPCC node, used to send and receive IPC signals with > remoteprocs. > > Signed-off-by: Bjorn Andersson > --- > arch/arm64/boot/dts/qcom/sm8250.dtsi | 10 ++ > 1 file changed, 10 insertions(+) > > diff --git

Re: [PATCH 4/4] powerpc/pseries/iommu: Remove default DMA window before creating DDW

2020-06-22 Thread Leonardo Bras
On Tue, 2020-06-23 at 12:35 +1000, Alexey Kardashevskiy wrote: > > I am not sure if this is true in general, but in this device (SR-IOV > > VF) I am testing it will return 0 windows if the default DMA window is > > not deleted, and 1 after it's deleted. > > Since pHyp can only create windows in

Re: [PATCH] arm64: defconfig: Enable Qualcomm SM8250 pinctrl driver

2020-06-22 Thread Manivannan Sadhasivam
On Mon, Jun 22, 2020 at 03:00:48PM -0700, Bjorn Andersson wrote: > The SM8250 pinctrl driver provides pin configuration, pin muxing and > GPIO pin control for many pins on the SM8250 SoC. > > Signed-off-by: Bjorn Andersson Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- >

Re: [PATCH 4/4] powerpc/pseries/iommu: Remove default DMA window before creating DDW

2020-06-22 Thread Alexey Kardashevskiy
On 23/06/2020 12:31, Leonardo Bras wrote: > On Tue, 2020-06-23 at 11:11 +1000, Alexey Kardashevskiy wrote: >> >> On 23/06/2020 04:59, Leonardo Bras wrote: >>> Hello Alexey, thanks for the feedback! >>> >>> On Mon, 2020-06-22 at 20:02 +1000, Alexey Kardashevskiy wrote: On 19/06/2020 15:06,

Re: [RFC] Bypass filesystems for reading cached pages

2020-06-22 Thread Dave Chinner
On Mon, Jun 22, 2020 at 08:18:57PM +0100, Matthew Wilcox wrote: > On Mon, Jun 22, 2020 at 10:32:15AM +1000, Dave Chinner wrote: > > On Fri, Jun 19, 2020 at 08:50:36AM -0700, Matthew Wilcox wrote: > > > > > > This patch lifts the IOCB_CACHED idea expressed by Andreas to the VFS. > > > The

Re: [PATCH] kbuild: Provide way to actually disable stack protector

2020-06-22 Thread Masahiro Yamada
On Tue, Jun 23, 2020 at 4:02 AM Kees Cook wrote: > > Some builds of GCC enable stack protector by default. Simply removing > the arguments is not sufficient to disable stack protector, as the stack > protector for those GCC builds must be explicitly disabled. (Removing the > arguments is left

[RFC PATCH v3 0/5] scsi: ufs: Add Host Performance Booster Support

2020-06-22 Thread Daejun Park
Changelog: v2 -> v3 1. Add checking input module parameter value. 2. Change base commit from 5.8/scsi-queue to 5.9/scsi-queue. 3. Cleanup for unused variables and label. v1 -> v2 1. Change the full boilerplate text to SPDX style. 2. Adopt dynamic allocation for sub-region data structure. 3.

Re: [PATCH 4/4] powerpc/pseries/iommu: Remove default DMA window before creating DDW

2020-06-22 Thread Leonardo Bras
On Tue, 2020-06-23 at 11:11 +1000, Alexey Kardashevskiy wrote: > > On 23/06/2020 04:59, Leonardo Bras wrote: > > Hello Alexey, thanks for the feedback! > > > > On Mon, 2020-06-22 at 20:02 +1000, Alexey Kardashevskiy wrote: > > > On 19/06/2020 15:06, Leonardo Bras wrote: > > > > On LoPAR "DMA

Re: [PATCH 1/4] powerpc/pseries/iommu: Update call to ibm,query-pe-dma-windows

2020-06-22 Thread Alexey Kardashevskiy
On 23/06/2020 12:14, Leonardo Bras wrote: > On Tue, 2020-06-23 at 11:12 +1000, Alexey Kardashevskiy wrote: > [snip] > +static int query_ddw_out_sz(struct device_node *par_dn) Can easily be folded into query_ddw(). >>> >>> Sure, but it will get inlined by the compiler, and I think

Re: kbuild: separate kerneldoc warnings from compiler warnings

2020-06-22 Thread Valdis Klētnieks
On Mon, 22 Jun 2020 14:10:13 +0900, Masahiro Yamada said: > > This patch introduces a new build flag 'K=1' which controls whether > > kerneldoc > > warnings should be issued, separating them from the compiler warnings that > > W= > > controls. > I do not understand why this change is needed.

Re: [PATCH v8] mm: Proactive compaction

2020-06-22 Thread Nathan Chancellor
On Tue, Jun 16, 2020 at 01:45:27PM -0700, Nitin Gupta wrote: > For some applications, we need to allocate almost all memory as > hugepages. However, on a running system, higher-order allocations can > fail if the memory is fragmented. Linux kernel currently does on-demand > compaction as we

Re: [PATCH 3/4] powerpc/pseries/iommu: Move window-removing part of remove_ddw into remove_dma_window

2020-06-22 Thread Leonardo Bras
On Tue, 2020-06-23 at 11:33 +1000, Oliver O'Halloran wrote: > On Tue, Jun 23, 2020 at 11:12 AM Alexey Kardashevskiy wrote: > > On 23/06/2020 04:59, Leonardo Bras wrote: > > > > Also, despite this particular file, the "pdn" name is usually used for > > > > struct pci_dn (not device_node), let's

Re: [PATCH 3/4] powerpc/pseries/iommu: Move window-removing part of remove_ddw into remove_dma_window

2020-06-22 Thread Leonardo Bras
On Tue, 2020-06-23 at 11:12 +1000, Alexey Kardashevskiy wrote: > > On 23/06/2020 04:59, Leonardo Bras wrote: > > Hello Alexey, thanks for the feedback! > > > > On Mon, 2020-06-22 at 20:02 +1000, Alexey Kardashevskiy wrote: > > > On 19/06/2020 15:06, Leonardo Bras wrote: > > > > Move the

RE: [kbuild] drivers/usb/gadget/udc/fsl_udc_core.c:1055 fsl_ep_fifo_status() error: we previously assumed '_ep->desc' could be null (see line 1055)

2020-06-22 Thread Ran Wang
Hi Dan On Tuesday, June 23, 2020 2:20 AM, Dan Carpenter wrote: > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > Reported-by: Dan Carpenter > > New smatch warnings: > drivers/usb/gadget/udc/fsl_udc_core.c:1055 fsl_ep_fifo_status() error:

Re: [PATCH 2/4] powerpc/pseries/iommu: Implement ibm,reset-pe-dma-windows rtas call

2020-06-22 Thread Leonardo Bras
On Tue, 2020-06-23 at 11:11 +1000, Alexey Kardashevskiy wrote: > > On 23/06/2020 04:58, Leonardo Bras wrote: > > Hello Alexey, thanks for the feedback! > > > > On Mon, 2020-06-22 at 20:02 +1000, Alexey Kardashevskiy wrote: > > > On 19/06/2020 15:06, Leonardo Bras wrote: > > > > Platforms

Re: [PATCH 1/4] io_uring: fix hanging iopoll in case of -EAGAIN

2020-06-22 Thread Jens Axboe
On 6/22/20 8:07 PM, Jens Axboe wrote: > On 6/22/20 4:16 PM, Pavel Begunkov wrote: >> io_do_iopoll() won't do anything with a request unless >> req->iopoll_completed is set. So io_complete_rw_iopoll() has to set >> it, otherwise io_do_iopoll() will poll a file again and again even >> though the

Re: [PATCH v7 5/8] loop: be paranoid on exit and prevent new additions / removals

2020-06-22 Thread Bart Van Assche
On 2020-06-22 05:27, Luis Chamberlain wrote: > Note: this will bring you sanity if you try to figure out *why* we still > get: > > [235530.144343] debugfs: Directory 'loop0' with parent 'block' already > present! > [235530.149477] blktrace: debugfs_dir not present for loop0 so skipping >

Re: [PATCH v4 3/3] arm64: dts: realtek: Add RTD1319 SoC and Realtek Pym Particles EVB

2020-06-22 Thread Andreas Färber
Hi James, Am 21.06.20 um 01:32 schrieb Andreas Färber: From: James Tai Add Device Trees for Realtek RTD1319 SoC family, RTD1319 SoC and Realtek Pym Particles EVB. Signed-off-by: James Tai Signed-off-by: Andreas Färber --- v3 -> v4: * Updated Realtek copyright for 2 out of 3 files from

Re: [PATCH 1/4] powerpc/pseries/iommu: Update call to ibm,query-pe-dma-windows

2020-06-22 Thread Leonardo Bras
On Tue, 2020-06-23 at 11:12 +1000, Alexey Kardashevskiy wrote: [snip] > > > > +static int query_ddw_out_sz(struct device_node *par_dn) > > > > > > Can easily be folded into query_ddw(). > > > > Sure, but it will get inlined by the compiler, and I think it reads > > better this way. > > I mean,

RE: [PATCH] mailbox: imx: Mark PM functions as __maybe_unused

2020-06-22 Thread Aisheng Dong
> From: Nathan Chancellor > Sent: Tuesday, June 23, 2020 9:04 AM > > When CONFIG_PM and CONFIG_PM_SLEEP are unset, the following warnings > occur: > > drivers/mailbox/imx-mailbox.c:638:12: warning: 'imx_mu_runtime_resume' > defined but not used [-Wunused-function] > 638 | static int

Re: [PATCH 1/4] io_uring: fix hanging iopoll in case of -EAGAIN

2020-06-22 Thread Jens Axboe
On 6/22/20 4:16 PM, Pavel Begunkov wrote: > io_do_iopoll() won't do anything with a request unless > req->iopoll_completed is set. So io_complete_rw_iopoll() has to set > it, otherwise io_do_iopoll() will poll a file again and again even > though the request of interest was completed long ago. I

Re: [PATCH V4 2/2] clk: imx8mp: add mu root clk

2020-06-22 Thread Stephen Boyd
Quoting peng@nxp.com (2020-06-02 20:36:00) > From: Peng Fan > > Add mu root clk for mu mailbox usage. > > Reviewed-by: Dong Aisheng > Signed-off-by: Peng Fan > --- Acked-by: Stephen Boyd

Re: [PATCH V3 3/3] clk: vc5: Enable addition output configurations of the Versaclock

2020-06-22 Thread Stephen Boyd
Quoting Adam Ford (2020-06-03 08:43:29) > The existing driver is expecting the Versaclock to be pre-programmed, > and only sets the output frequency. Unfortunately, not all devices > are pre-programmed, and the Versaclock chip has more options beyond > just the frequency. > > This patch enables

Re: [PATCH V3 2/3] dt: Add additional option bindings for IDT VersaClock

2020-06-22 Thread Stephen Boyd
Quoting Adam Ford (2020-06-03 08:43:28) > The VersaClock driver now supports some additional bindings to support > child nodes which can configure optional settings like mode, voltage > and slew. > > This patch updates the binding document to describe what is available > in the driver. > >

RE: [PATCH] mm: cma: Return cma->name directly in cma_get_name

2020-06-22 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Nathan Chancellor [mailto:natechancel...@gmail.com] > Sent: Tuesday, June 23, 2020 1:59 PM > To: Andrew Morton > Cc: linux...@kvack.org; linux-kernel@vger.kernel.org; > clang-built-li...@googlegroups.com; Song Bao Hua (Barry Song) > ; Nathan Chancellor > >

Re: [PATCH V3 1/3] clk: vc5: Allow Versaclock driver to support multiple instances

2020-06-22 Thread Stephen Boyd
Quoting Adam Ford (2020-06-03 08:43:27) > Currently, the Versaclock driver is only expecting one instance and > uses hard-coded names for the various clock names. Unfortunately, > this is a problem when there is more than one instance of the driver, > because the subsequent instantiations of the

Re: [PATCH v4 2/4] dt-bindings: clock: rpmcc: Document MSM8936 compatible

2020-06-22 Thread Stephen Boyd
Quoting Vincent Knecht (2020-06-13 00:27:43) > Acked-by: Rob Herring > Signed-off-by: Vincent Knecht > --- Applied to clk-next

Re: [PATCH v4 1/4] clk: qcom: smd: Add support for MSM8936 rpm clocks

2020-06-22 Thread Stephen Boyd
Quoting Vincent Knecht (2020-06-13 00:27:42) > Add missing definition of rpm clk for msm8936 soc (also used by msm8939) > > Signed-off-by: Vincent Knecht > --- Applied to clk-next

[PATCH v7 06/19] mm: memcg/slab: obj_cgroup API

2020-06-22 Thread Roman Gushchin
Obj_cgroup API provides an ability to account sub-page sized kernel objects, which potentially outlive the original memory cgroup. The top-level API consists of the following functions: bool obj_cgroup_tryget(struct obj_cgroup *objcg); void obj_cgroup_get(struct obj_cgroup *objcg); void

[PATCH v7 03/19] mm: memcg: convert vmstat slab counters to bytes

2020-06-22 Thread Roman Gushchin
In order to prepare for per-object slab memory accounting, convert NR_SLAB_RECLAIMABLE and NR_SLAB_UNRECLAIMABLE vmstat items to bytes. To make it obvious, rename them to NR_SLAB_RECLAIMABLE_B and NR_SLAB_UNRECLAIMABLE_B (similar to NR_KERNEL_STACK_KB). Internally global and per-node counters

[PATCH v7 10/19] mm: memcg/slab: deprecate memory.kmem.slabinfo

2020-06-22 Thread Roman Gushchin
Deprecate memory.kmem.slabinfo. An empty file will be presented if corresponding config options are enabled. The interface is implementation dependent, isn't present in cgroup v2, and is generally useful only for core mm debugging purposes. In other words, it doesn't provide any value for the

[PATCH v7 17/19] mm: memcg/slab: use a single set of kmem_caches for all allocations

2020-06-22 Thread Roman Gushchin
Instead of having two sets of kmem_caches: one for system-wide and non-accounted allocations and the second one shared by all accounted allocations, we can use just one. The idea is simple: space for obj_cgroup metadata can be allocated on demand and filled only for accounted allocations. It

[PATCH v7 02/19] mm: memcg: prepare for byte-sized vmstat items

2020-06-22 Thread Roman Gushchin
To implement per-object slab memory accounting, we need to convert slab vmstat counters to bytes. Actually, out of 4 levels of counters: global, per-node, per-memcg and per-lruvec only two last levels will require byte-sized counters. It's because global and per-node counters will be counting

[PATCH v7 00/19] The new cgroup slab memory controller

2020-06-22 Thread Roman Gushchin
This is v7 of the slab cgroup controller rework. The patchset moves the accounting from the page level to the object level. It allows to share slab pages between memory cgroups. This leads to a significant win in the slab utilization (up to 45%) and the corresponding drop in the total kernel

[PATCH v7 16/19] mm: memcg/slab: remove redundant check in memcg_accumulate_slabinfo()

2020-06-22 Thread Roman Gushchin
memcg_accumulate_slabinfo() is never called with a non-root kmem_cache as a first argument, so the is_root_cache(s) check is redundant and can be removed without any functional change. Signed-off-by: Roman Gushchin Reviewed-by: Vlastimil Babka Reviewed-by: Shakeel Butt --- mm/slab_common.c |

[PATCH] mm: cma: Return cma->name directly in cma_get_name

2020-06-22 Thread Nathan Chancellor
clang warns: mm/cma.c:55:14: warning: address of array 'cma->name' will always evaluate to 'true' [-Wpointer-bool-conversion] return cma->name ? cma->name : "(undefined)"; ~^~~~ ~ 1 warning generated. After commit e7f0557d7de9 ("mm: cma: fix the name of CMA areas"),

[PATCH v7 09/19] mm: memcg/slab: charge individual slab objects instead of pages

2020-06-22 Thread Roman Gushchin
Switch to per-object accounting of non-root slab objects. Charging is performed using obj_cgroup API in the pre_alloc hook. Obj_cgroup is charged with the size of the object and the size of metadata: as now it's the size of an obj_cgroup pointer. If the amount of memory has been charged

[PATCH v7 13/19] mm: memcg/slab: simplify memcg cache creation

2020-06-22 Thread Roman Gushchin
Because the number of non-root kmem_caches doesn't depend on the number of memory cgroups anymore and is generally not very big, there is no more need for a dedicated workqueue. Also, as there is no more need to pass any arguments to the memcg_create_kmem_cache() except the root kmem_cache, it's

[PATCH v7 12/19] mm: memcg/slab: use a single set of kmem_caches for all accounted allocations

2020-06-22 Thread Roman Gushchin
This is fairly big but mostly red patch, which makes all accounted slab allocations use a single set of kmem_caches instead of creating a separate set for each memory cgroup. Because the number of non-root kmem_caches is now capped by the number of root kmem_caches, there is no need to shrink or

[PATCH v7 14/19] mm: memcg/slab: remove memcg_kmem_get_cache()

2020-06-22 Thread Roman Gushchin
The memcg_kmem_get_cache() function became really trivial, so let's just inline it into the single call point: memcg_slab_pre_alloc_hook(). It will make the code less bulky and can also help the compiler to generate a better code. Signed-off-by: Roman Gushchin Reviewed-by: Vlastimil Babka

[PATCH v7 15/19] mm: memcg/slab: deprecate slab_root_caches

2020-06-22 Thread Roman Gushchin
Currently there are two lists of kmem_caches: 1) slab_caches, which contains all kmem_caches, 2) slab_root_caches, which contains only root kmem_caches. And there is some preprocessor magic to have a single list if CONFIG_MEMCG_KMEM isn't enabled. It was required earlier because the number of

Re: [PATCH v3 1/1] clk: qcom: smd: Add support for SDM660 rpm clocks

2020-06-22 Thread Stephen Boyd
Quoting Konrad Dybcio (2020-06-22 02:02:52) > Add rpm smd clocks, PMIC and bus clocks which are required on > SDM630/660 (and APQ variants) for clients to vote on. > > changes since v2: > - separate from SDM630 enablement series > - fix indentation in Docs > - sort compatible strings

[PATCH v7 04/19] mm: slub: implement SLUB version of obj_to_index()

2020-06-22 Thread Roman Gushchin
This commit implements SLUB version of the obj_to_index() function, which will be required to calculate the offset of obj_cgroup in the obj_cgroups vector to store/obtain the objcg ownership data. To make it faster, let's repeat the SLAB's trick introduced by commit 6a2d7a955d8d ("SLAB: use a

[PATCH v7 11/19] mm: memcg/slab: move memcg_kmem_bypass() to memcontrol.h

2020-06-22 Thread Roman Gushchin
To make the memcg_kmem_bypass() function available outside of the memcontrol.c, let's move it to memcontrol.h. The function is small and nicely fits into static inline sort of functions. It will be used from the slab code. Signed-off-by: Roman Gushchin Reviewed-by: Vlastimil Babka

[PATCH v7 08/19] mm: memcg/slab: save obj_cgroup for non-root slab objects

2020-06-22 Thread Roman Gushchin
Store the obj_cgroup pointer in the corresponding place of page->obj_cgroups for each allocated non-root slab object. Make sure that each allocated object holds a reference to obj_cgroup. Objcg pointer is obtained from the memcg->objcg dereferencing in memcg_kmem_get_cache() and passed from

[PATCH v7 05/19] mm: memcontrol: decouple reference counting from page accounting

2020-06-22 Thread Roman Gushchin
From: Johannes Weiner The reference counting of a memcg is currently coupled directly to how many 4k pages are charged to it. This doesn't work well with Roman's new slab controller, which maintains pools of objects and doesn't want to keep an extra balance sheet for the pages backing those

[PATCH v7 18/19] kselftests: cgroup: add kernel memory accounting tests

2020-06-22 Thread Roman Gushchin
Add some tests to cover the kernel memory accounting functionality. These are covering some issues (and changes) we had recently. 1) A test which allocates a lot of negative dentries, checks memcg slab statistics, creates memory pressure by setting memory.max to some low value and checks

[PATCH v7 07/19] mm: memcg/slab: allocate obj_cgroups for non-root slab pages

2020-06-22 Thread Roman Gushchin
Allocate and release memory to store obj_cgroup pointers for each non-root slab page. Reuse page->mem_cgroup pointer to store a pointer to the allocated space. This commit temporarily increases the memory footprint of the kernel memory accounting. To store obj_cgroup pointers we'll need a place

[PATCH v7 01/19] mm: memcg: factor out memcg- and lruvec-level changes out of __mod_lruvec_state()

2020-06-22 Thread Roman Gushchin
To convert memcg and lruvec slab counters to bytes there must be a way to change these counters without touching node counters. Factor out __mod_memcg_lruvec_state() out of __mod_lruvec_state(). Signed-off-by: Roman Gushchin Acked-by: Johannes Weiner Reviewed-by: Vlastimil Babka Reviewed-by:

Re: [PATCH][v2] PM / s2idle: Clear _TIF_POLLING_NRFLAG before suspend to idle

2020-06-22 Thread Chen Yu
On Mon, Jun 22, 2020 at 09:45:35PM +0200, Rafael J. Wysocki wrote: > On Mon, Jun 22, 2020 at 7:16 PM Chen Yu wrote: > > > > Hi Rafael, > > On Mon, Jun 22, 2020 at 06:19:35PM +0200, Rafael J. Wysocki wrote: > > [cut] > > > > +{ > > > > + if (!current_clr_polling_and_test()) > > > > +

Re: [PATCH v1 0/6] mfd: Make use of software nodes

2020-06-22 Thread Serge Semin
On Sat, Jun 20, 2020 at 01:13:56PM +0300, Andy Shevchenko wrote: > On Sat, Jun 20, 2020 at 1:12 AM Serge Semin wrote: > > On Thu, Jun 18, 2020 at 11:56:54AM +0300, Andy Shevchenko wrote: > > > On Wed, Jun 17, 2020 at 01:56:48AM +0300, Serge Semin wrote: > > > > On Wed, Jun 17, 2020 at 12:40:35AM

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