[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 al

[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 comp

[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 30a7782aa0d9..8f96d4e4c46

[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 32ed0e4a364

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 17

[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 Docume

[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 6fd12a2d766e..5ad0e81c37a

[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 b/arch/arm64/boot/dts/

[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 e41be02f2e3a..e4271ef

[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 100644

[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 d2a4553bcf39..84dde5a20

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 events

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 issu

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 a/arc

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 "6

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 > --- > arch/arm64/co

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, L

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 advantage

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 as-i

[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. Cle

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 Wind

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 i

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 request

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 kee

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 window-re

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: we

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 supporti

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 requ

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 > [235530.

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 v

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, I

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 imx_mu_run

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 n

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 t

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. > > Signed

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 d

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 obj_

[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 are

[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 ab

[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 allo

[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 the

[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 memor

[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 | 3

[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"), cma

[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 successfu

[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 p

[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 d

[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 Revie

[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 non

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 alphabeticall

[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 mult

[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 Reviewed-by:

[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 pre_a

[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 obje

[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 th

[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 fo

[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: S

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 +

Re: [RESEND PATCH 2/3] nouveau: fix mixed normal and device private page migration

2020-06-22 Thread Ralph Campbell
On 6/22/20 5:30 PM, John Hubbard wrote: On 2020-06-22 16:38, Ralph Campbell wrote: The OpenCL function clEnqueueSVMMigrateMem(), without any flags, will migrate memory in the given address range to device private memory. The source pages might already have been migrated to device private memor

Re: [PATCH v2 1/3] mfd: core: Make a best effort attempt to match devices with the correct of_nodes

2020-06-22 Thread Frank Rowand
On 2020-06-22 20:17, Frank Rowand wrote: > On 2020-06-22 17:23, Frank Rowand wrote: >> On 2020-06-22 14:11, Lee Jones wrote: >>> On Mon, 22 Jun 2020, Frank Rowand wrote: >>> On 2020-06-22 10:10, Lee Jones wrote: > On Mon, 22 Jun 2020, Frank Rowand wrote: > >> On 2020-06-22 03:50, L

Re: [PATCH 07/10] media: mtk-vcodec: venc: remove redundant code

2020-06-22 Thread Tiffany Lin
On Mon, 2020-06-22 at 22:10 +0900, Alexandre Courbot wrote: > On Fri, Jun 19, 2020 at 3:59 PM Tiffany Lin wrote: > > > > On Wed, 2020-05-20 at 17:27 +0900, Alexandre Courbot wrote: > > > vidioc_try_fmt() does clamp height and width when called on the OUTPUT > > > queue, so clamping them prior to c

[PATCH] drm/omap: Remove aggregate initialization of new_mode in omap_connector_mode_valid

2020-06-22 Thread Nathan Chancellor
After commit 42acb06b01b1 ("drm: pahole struct drm_display_mode"), clang warns: drivers/gpu/drm/omapdrm/omap_connector.c:92:39: warning: braces around scalar initializer [-Wbraced-scalar-init] struct drm_display_mode new_mode = { { 0 } }; ^~

Re: [PATCH] tpm_tis_spi: Prefer async probe

2020-06-22 Thread Jarkko Sakkinen
On Fri, Jun 19, 2020 at 02:20:01PM -0700, Douglas Anderson wrote: > On a Chromebook I'm working on I noticed a big (~1 second) delay > during bootup where nothing was happening. Right around this big > delay there were messages about the TPM: > > [2.311352] tpm_tis_spi spi0.0: TPM ready IRQ c

linux-next: manual merge of the drm-intel tree with Linus' tree

2020-06-22 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/i915_drv.h between commit: 7fb81e9d8073 ("drm/i915: Use drmm_add_final_kfree") from Linus' tree and commit: 8a25c4be583d ("drm/i915/params: switch to device specific parameters") from the drm

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

2020-06-22 Thread Oliver O'Halloran
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 keep it that way. > > > > Sure, I got confused for some time about

Re: [virtio-dev] Re: [PATCH v5 0/3] Support virtio cross-device resources

2020-06-22 Thread David Stevens
Unless there are any remaining objections to these patches, what are the next steps towards getting these merged? Sorry, I'm not familiar with the workflow for contributing patches to Linux. Thanks, David On Tue, Jun 9, 2020 at 6:53 PM Michael S. Tsirkin wrote: > > On Tue, Jun 09, 2020 at 10:25:

Re: [PATCH] KVM: VMX: Stop context switching MSR_IA32_UMWAIT_CONTROL

2020-06-22 Thread Sean Christopherson
On Tue, Jun 23, 2020 at 09:21:28AM +0800, Xiaoyao Li wrote: > On 6/23/2020 8:51 AM, Sean Christopherson wrote: > >Remove support for context switching between the guest's and host's > >desired UMWAIT_CONTROL. Propagating the guest's value to hardware isn't > >required for correct functionality, e.

Re: [PATCH 06/10] media: mtk-vcodec: venc: specify supported formats per-chip

2020-06-22 Thread Tiffany Lin
On Mon, 2020-06-22 at 21:44 +0900, Alexandre Courbot wrote: > On Fri, Jun 19, 2020 at 4:26 PM Tiffany Lin wrote: > > > > On Wed, 2020-05-20 at 17:27 +0900, Alexandre Courbot wrote: > > > Different chips have different supported bitrate ranges. Move the list > > > of supported formats to the platfo

[PATCH v2] arm64/module: Optimize module load time by optimizing PLT counting

2020-06-22 Thread Saravana Kannan
When loading a module, module_frob_arch_sections() tries to figure out the number of PLTs that'll be needed to handle all the RELAs. While doing this, it tries to dedupe PLT allocations for multiple R_AARCH64_CALL26 relocations to the same symbol. It does the same for R_AARCH64_JUMP26 relocations.

Re: [PATCH v2 3/3] mm/shuffle: remove dynamic reconfiguration

2020-06-22 Thread Wei Yang
On Fri, Jun 19, 2020 at 02:59:22PM +0200, David Hildenbrand wrote: >Commit e900a918b098 ("mm: shuffle initial free memory to improve >memory-side-cache utilization") promised "autodetection of a >memory-side-cache (to be added in a follow-on patch)" over a year ago. > >The original series included

Re: [PATCH] isofs: fix High Sierra dirent flag accesses

2020-06-22 Thread Egor Chelak
On 6/23/2020 12:22 AM, Matthew Wilcox wrote: > It's been about 22 years since I contributed the patch which added > support for the Acorn extensions ;-) But I'm pretty sure that it's not > possible to have an Acorn CD-ROM that is also an HSF CD-ROM. That is, > all Acorn formatted CD-ROMs are ISO-

Re: [PATCH] KVM: VMX: Stop context switching MSR_IA32_UMWAIT_CONTROL

2020-06-22 Thread Xiaoyao Li
On 6/23/2020 8:51 AM, Sean Christopherson wrote: Remove support for context switching between the guest's and host's desired UMWAIT_CONTROL. Propagating the guest's value to hardware isn't required for correct functionality, e.g. KVM intercepts reads and writes to the MSR, and the latency effect

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

2020-06-22 Thread Jeffrey Hugo
On Mon, Jun 22, 2020 at 4:03 PM 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 Looks sane to me. Reviewed-by: Jeffrey Hugo

Re: [PATCH 1/2] media: omap3isp: Remove cacheflush.h

2020-06-22 Thread Laurent Pinchart
Hi Nathan, Thank you for the patch. On Mon, Jun 22, 2020 at 04:47:39PM -0700, Nathan Chancellor wrote: > After mm.h was removed from the asm-generic version of cacheflush.h, > s390 allyesconfig shows several warnings of the following nature: > > In file included from ./arch/s390/include/generate

Re: [PATCH net-next v9 2/5] net: phy: Add a helper to return the index for of the internal delay

2020-06-22 Thread Dan Murphy
David On 6/22/20 5:40 PM, David Miller wrote: From: Dan Murphy Date: Fri, 19 Jun 2020 11:18:10 -0500 +s32 phy_get_internal_delay(struct phy_device *phydev, struct device *dev, + const int *delay_values, int size, bool is_rx) +{ + int i; + s32 delay; Pleas

Re: [PATCH net-next v9 1/5] dt-bindings: net: Add tx and rx internal delays

2020-06-22 Thread Dan Murphy
David Thanks for the review On 6/22/20 5:40 PM, David Miller wrote: From: Dan Murphy Date: Fri, 19 Jun 2020 11:18:09 -0500 @@ -162,6 +162,19 @@ properties: description: Specifies a reference to a node representing a SFP cage. + + rx-internal-delay-ps: Do you really want t

Re: [PATCH v2 1/3] mfd: core: Make a best effort attempt to match devices with the correct of_nodes

2020-06-22 Thread Frank Rowand
On 2020-06-22 17:23, Frank Rowand wrote: > On 2020-06-22 14:11, Lee Jones wrote: >> On Mon, 22 Jun 2020, Frank Rowand wrote: >> >>> On 2020-06-22 10:10, Lee Jones wrote: On Mon, 22 Jun 2020, Frank Rowand wrote: > On 2020-06-22 03:50, Lee Jones wrote: >> On Thu, 18 Jun 2020, Frank

Re: [PATCH] KVM: x86/mmu: Don't put invalid SPs back on the list of active pages

2020-06-22 Thread Sean Christopherson
On Tue, Jun 23, 2020 at 02:23:53AM +0200, Paolo Bonzini wrote: > On 22/06/20 21:18, Sean Christopherson wrote: > > diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c > > index fdd05c233308..fa5bd3f987dd 100644 > > --- a/arch/x86/kvm/mmu/mmu.c > > +++ b/arch/x86/kvm/mmu/mmu.c > > @@ -2757,

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

2020-06-22 Thread Alexey Kardashevskiy
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 window-removing part of remove_ddw into a new function >>> (remove_dma_window), so i

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

2020-06-22 Thread Alexey Kardashevskiy
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 supporting the DDW option starting with LoPAR level 2.7 implement >>> ibm,ddw-exten

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 04:58, Leonardo Bras wrote: > Hello Alexey, thank you for the feedback! > > On Mon, 2020-06-22 at 20:02 +1000, Alexey Kardashevskiy wrote: >> >> On 19/06/2020 15:06, Leonardo Bras wrote: >>> From LoPAR level 2.8, "ibm,ddw-extensions" index 3 can make the number of >>> outputs from

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

2020-06-22 Thread Alexey Kardashevskiy
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 Window Manipulation Calls", it's recommended to remove the >>> default DMA wind

Re: [PATCH 4/4] iommu/arm-smmu-v3: Remove cmpxchg() in arm_smmu_cmdq_issue_cmdlist()

2020-06-22 Thread kernel test robot
://github.com/0day-ci/linux/commits/John-Garry/iommu-arm-smmu-v3-Improve-cmdq-lock-efficiency/20200623-013438 base: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next config: arm64-randconfig-c024-20200622 (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 If you fix the

[PATCH v5 1/2] remoteproc: qcom: Add per subsystem SSR notification

2020-06-22 Thread Rishabh Bhatnagar
Currently there is a single notification chain which is called whenever any remoteproc shuts down. This leads to all the listeners being notified, and is not an optimal design as kernel drivers might only be interested in listening to notifications from a particular remoteproc. Create a global list

[PATCH v5 0/2] Extend SSR notifications framework

2020-06-22 Thread Rishabh Bhatnagar
This set of patches gives kernel client drivers the ability to register for a particular remoteproc's SSR notifications. Also the notifications are extended to before/after-powerup/shutdown stages. It also fixes the bug where clients need to register for notifications again if the platform driver i

[PATCH v5 2/2] remoteproc: qcom: Add notification types to SSR

2020-06-22 Thread Rishabh Bhatnagar
The SSR subdevice only adds callback for the unprepare event. Add callbacks for prepare, start and prepare events. The client driver for a particular remoteproc might be interested in knowing the status of the remoteproc while undergoing SSR, not just when the remoteproc has finished shutting down.

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

2020-06-22 Thread Nathan Chancellor
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 imx_mu_runtime_resume(struct device *dev) |^ drivers/

Re: [PATCH v2 0/3] Preventing job distribution to isolated CPUs

2020-06-22 Thread Nitesh Narayan Lal
On 6/22/20 7:45 PM, Nitesh Narayan Lal wrote: > > Testing > === > * Patch 1:

linux-next: manual merge of the net-next tree with the net tree

2020-06-22 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/xfrm/xfrm_device.c between commit: 94579ac3f6d0 ("xfrm: Fix double ESP trailer insertion in IPsec crypto offload.") from the net tree and commit: 272c2330adc9 ("xfrm: bail early on slave pass over skb") from

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