Re: [PATCH v6 0/5] prerequisites for device reserved local mem rework

2019-05-27 Thread Christoph Hellwig
Thanks. Applied the whole series to dma-mapping for-next.

RE: [PATCH v5 4/6] usb: roles: add API to get usb_role_switch by node

2019-05-27 Thread Biju Das
Hi Chunfeng Yun, + Chen Yu Thanks for the feedback. > Subject: Re: [PATCH v5 4/6] usb: roles: add API to get usb_role_switch by > node > > Hi Heikki & Biju, > On Fri, 2019-05-24 at 15:44 +0300, Heikki Krogerus wrote: > > On Wed, May 22, 2019 at 02:57:33PM +, Biju Das wrote: > > > Hi Heikki,

Re: [PATCH RFC] mm/madvise: implement MADV_STOCKPILE (kswapd from user space)

2019-05-27 Thread Michal Hocko
On Tue 28-05-19 09:25:13, Konstantin Khlebnikov wrote: > On 27.05.2019 17:39, Michal Hocko wrote: > > On Mon 27-05-19 16:21:56, Michal Hocko wrote: > > > On Mon 27-05-19 16:12:23, Michal Hocko wrote: > > > > [Cc linux-api. Please always cc this list when proposing a new user > > > > visible api.

[PATCH][next] qed: fix spelling mistake "inculde" -> "include"

2019-05-27 Thread Colin King
From: Colin Ian King There is a spelling mistake in a DP_INFO message. Fix it. Signed-off-by: Colin Ian King --- drivers/net/ethernet/qlogic/qed/qed_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_dev.c b/drivers/net/ethernet/qlogi

[PATCHv6 5/6] arm64: dts: lx2160a: Add PCIe controller DT nodes

2019-05-27 Thread Z.q. Hou
From: Hou Zhiqiang The LX2160A integrated 6 PCIe Gen4 controllers. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V6: - No change. .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 163 ++ 1 file changed, 163 insertions(+) diff --git a/arch/arm64/boot/dts/freescal

[PATCHv6 4/6] PCI: mobiveil: Add PCIe Gen4 RC driver for NXP Layerscape SoCs

2019-05-27 Thread Z.q. Hou
From: Hou Zhiqiang This PCIe controller is based on the Mobiveil GPEX IP, which is compatible with the PCI Express™ Base Specification, Revision 4.0. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V6: - Change the file name pci-layerscape-gen4.c to pcie-layerscape-gen4.c. - Chang

[PATCHv6 6/6] arm64: defconfig: Enable CONFIG_PCIE_LAYERSCAPE_GEN4

2019-05-27 Thread Z.q. Hou
From: Hou Zhiqiang Enable the PCIe Gen4 controller driver for Layerscape SoCs. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V6: - Change the macro name to CONFIG_PCIE_LAYERSCAPE_GEN4. arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/c

Re: [Question: devm_kfree] When should devm_kfree() be used?

2019-05-27 Thread Greg KH
On Tue, May 28, 2019 at 08:32:57AM +0800, Gen Zhang wrote: > devm_kmalloc() is used to allocate memory for a driver dev. Comments > above the definition and doc > (https://www.kernel.org/doc/Documentation/driver-model/devres.txt) all > imply that allocated the memory is automatically freed on driv

[PATCHv6 1/6] PCI: mobiveil: Refactor Mobiveil PCIe Host Bridge IP driver

2019-05-27 Thread Z.q. Hou
From: Hou Zhiqiang Refactor the Mobiveil PCIe Host Bridge IP driver to make it easier to add support for both RC and EP mode driver. This patch moved the Mobiveil driver to an new directory 'drivers/pci/controller/mobiveil' and refactor it according to the RC and EP abstraction. Signed-off-by: H

[PATCHv6 3/6] dt-bindings: PCI: Add NXP Layerscape SoCs PCIe Gen4 controller

2019-05-27 Thread Z.q. Hou
From: Hou Zhiqiang Add PCIe Gen4 controller DT bindings of NXP Layerscape SoCs. Signed-off-by: Hou Zhiqiang Reviewed-by: Rob Herring --- V6: - Change the file name layerscape-pci-gen4.txt to layerscape-pcie-gen4.txt. .../bindings/pci/layerscape-pcie-gen4.txt | 52 +++ MA

[PATCHv6 0/6] PCI: refactor Mobiveil driver and add PCIe Gen4 driver for NXP Layerscape SoCs

2019-05-27 Thread Z.q. Hou
From: Hou Zhiqiang This patch set is aim to refactor the Mobiveil driver and add PCIe support for NXP Layerscape series SoCs integrated Mobiveil's PCIe Gen4 controller. This patch set depends on: http://patchwork.ozlabs.org/project/linux-pci/list/?series=102378 Hou Zhiqiang (6): PCI: mobiveil

[PATCHv6 2/6] PCI: mobiveil: Make mobiveil_host_init() can be used to re-init host

2019-05-27 Thread Z.q. Hou
From: Hou Zhiqiang Make the mobiveil_host_init() function can be used to re-init host controller's PAB and GPEX CSR register block, as NXP integrated Mobiveil IP has to reset and then re-init the PAB and GPEX CSR registers upon hot-reset. Signed-off-by: Hou Zhiqiang Reviewed-by: Subrahmanya Lin

Re: [PATCH v6 0/5] prerequisites for device reserved local mem rework

2019-05-27 Thread Greg KH
On Tue, May 28, 2019 at 07:58:31AM +0200, Christoph Hellwig wrote: > On Thu, May 23, 2019 at 09:07:55AM +0200, Greg KH wrote: > > I have no objection for you just taking this whole series as-is, no need > > to worry about merge conflicts with the USB tree, I doubt anything will > > be touching this

[v7 PATCH 1/2] mm: vmscan: remove double slab pressure by inc'ing sc->nr_scanned

2019-05-27 Thread Yang Shi
The commit 9092c71bb724 ("mm: use sc->priority for slab shrink targets") has broken up the relationship between sc->nr_scanned and slab pressure. The sc->nr_scanned can't double slab pressure anymore. So, it sounds no sense to still keep sc->nr_scanned inc'ed. Actually, it would prevent from addi

[v7 PATCH 2/2] mm: vmscan: correct some vmscan counters for THP swapout

2019-05-27 Thread Yang Shi
Since commit bd4c82c22c36 ("mm, THP, swap: delay splitting THP after swapped out"), THP can be swapped out in a whole. But, nr_reclaimed and some other vm counters still get inc'ed by one even though a whole THP (512 pages) gets swapped out. This doesn't make too much sense to memory reclaim. Fo

[RESEND PATCH] ARM: dts: sun7i: olimex-lime2: Enable ac and power supplies

2019-05-27 Thread Priit Laes
Lime2 has battery connector so enable these supplies. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts index

Re: [RFC 7/7] mm: madvise support MADV_ANONYMOUS_FILTER and MADV_FILE_FILTER

2019-05-27 Thread Michal Hocko
On Tue 28-05-19 12:26:32, Minchan Kim wrote: > On Mon, May 27, 2019 at 02:44:11PM +0200, Michal Hocko wrote: > > On Mon 27-05-19 16:58:11, Minchan Kim wrote: > > > On Tue, May 21, 2019 at 08:26:28AM +0200, Michal Hocko wrote: > > > > On Tue 21-05-19 11:55:33, Minchan Kim wrote: > > > > > On Mon, Ma

Re: [PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-05-27 Thread Alexey Kardashevskiy
On 28/05/2019 15:36, Oliver wrote: > On Tue, May 28, 2019 at 2:03 PM Shawn Anastasio wrote: >> >> Introduce a new pcibios function pcibios_ignore_alignment_request >> which allows the PCI core to defer to platform-specific code to >> determine whether or not to ignore alignment requests for PCI

[PATCH 07/13] bus: ti-sysc: Handle swsup idle mode quirks

2019-05-27 Thread Tony Lindgren
Some modules have idlemodes wired, but not completely functional. We have quirks for SWSUP_SIDLE and SWSUP_SIDLE_ACT to manage interconnect target modules without hardware support, but we've been only using them so far in legacy mode. Let's add support for SWSUP quirks in non-legacy mode too. Sign

[PATCH 01/13] bus: ti-sysc: Add support for missing clockdomain handling

2019-05-27 Thread Tony Lindgren
We need to let ti-sysc driver manage clockdomain autoidle for the duration of of reset, enable and idle. And we need to do it before we enable the clock and after we disable it. Currently we are still relying on platform callbacks indirectly managing clockdomain autoidle. But I noticed that for dev

[PATCH 10/13] bus: ti-sysc: Do rstctrl reset handling in two phases

2019-05-27 Thread Tony Lindgren
We need to deassert rstctrl resets before enabling clocks to avoid clock "failed to enable" errors. For asserting rstctrl reset, the clocks need to be enabled. As the reset controller status is not available for arrays, let's use devm_reset_control_get_optional() so we can get the status after res

[PATCH 05/13] bus: ti-sysc: Enable interconnect target module autoidle bit on enable

2019-05-27 Thread Tony Lindgren
For interconnect target modules with autoidle bit wired, we need to manage it for enable and disable. Signed-off-by: Tony Lindgren --- drivers/bus/ti-sysc.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c --- a/drive

[PATCH 03/13] bus: ti-sysc: Make OCP reset work for sysstatus and sysconfig reset bits

2019-05-27 Thread Tony Lindgren
We've had minimal OCP softreset support in ti-sysc interconnect target module driver only used for MCAN driver so far. But it turns out that MCAN has the sysstatus register resetdone bit inverted compared to most other modules. Let's make OCP softreset work for other typical cases with reset statu

[PATCH 09/13] bus: ti-sysc: Add support for disabling module without legacy mode

2019-05-27 Thread Tony Lindgren
We must not assert reset for modules with no child device drivers until in runtime_suspend. Otherwise register access will fail without legacy mode helping us. Let's add a flag for disable_on_idle and move the reset driver handling to runtime suspend and resume. We can then also use the disable_on

[PATCH 06/13] bus: ti-sysc: Handle clockactivity for enable and disable

2019-05-27 Thread Tony Lindgren
Modules with clockactivity need it configured during enable. Signed-off-by: Tony Lindgren --- drivers/bus/ti-sysc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -845,6 +845,7 @@

Re: [PATCH 1/4] arm64: module: create module allocations without exec permissions

2019-05-27 Thread Ard Biesheuvel
On 5/28/19 7:35 AM, Anshuman Khandual wrote: On 05/23/2019 03:52 PM, Ard Biesheuvel wrote: Now that the core code manages the executable permissions of code regions of modules explicitly, it is no longer necessary to create I guess the permission transition for various module sections happen

[PATCH 11/13] bus: ti-sysc: Detect uarts also on omap34xx

2019-05-27 Thread Tony Lindgren
Looks like we currently only detect UART on omap36xx, let's also add support for omap34xx. And let's also fix the SWSUP mode, it should be SWSUP_SIDLE for omap3, not SWSUP_SIDLE_ACT like for omap4 and later. Note that we are still booting omap3 for most part without ti-sysc, so no need to treat th

[PATCH 04/13] bus: ti-sysc: Allow QUIRK_LEGACY_IDLE even if legacy_mode is not set

2019-05-27 Thread Tony Lindgren
We need to specify QUIRK_LEGACY_IDLE for device drivers that still have pm_runtime_irq_safe() set like 8250. Signed-off-by: Tony Lindgren --- drivers/bus/ti-sysc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c --- a/drivers/bus/ti-sysc.c +++

Re: [PATCH RFC] mm/madvise: implement MADV_STOCKPILE (kswapd from user space)

2019-05-27 Thread Konstantin Khlebnikov
On 27.05.2019 17:39, Michal Hocko wrote: On Mon 27-05-19 16:21:56, Michal Hocko wrote: On Mon 27-05-19 16:12:23, Michal Hocko wrote: [Cc linux-api. Please always cc this list when proposing a new user visible api. Keeping the rest of the email intact for reference] On Mon 27-05-19 13:05:58,

[PATCH 08/13] bus: ti-sysc: Set ENAWAKEUP if available

2019-05-27 Thread Tony Lindgren
Some modules have ENAWAKEUP bit that we need to configure when not relying on platform data callbacks. Signed-off-by: Tony Lindgren --- drivers/bus/ti-sysc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c --- a/drivers/bus/ti-sysc.c +++ b/d

[PATCH 13/13] ARM: dts: Drop legacy custom hwmods property for omap4 mmc

2019-05-27 Thread Tony Lindgren
With recent ti-sysc driver changes, we can now finally probe most modules without needing the custom ti,hwmods property. Let's drop it for omap4 MMC as we can test that for runtime PM for core retention idle mode for wlcore WLAN. Cc: devicet...@vger.kernel.org Cc: Rob Herring Signed-off-by: Tony

[PATCH 12/13] ARM: dts: Drop legacy custom hwmods property for omap4 uart

2019-05-27 Thread Tony Lindgren
With recent ti-sysc driver changes, we can now finally probe most modules without needing the custom ti,hwmods property. Let's start with omap4 uart as we can test that for runtime PM for core retention idle mode. Cc: devicet...@vger.kernel.org Cc: Rob Herring Signed-off-by: Tony Lindgren ---

[PATCH 02/13] bus: ti-sysc: Support 16-bit writes too

2019-05-27 Thread Tony Lindgren
We need to also support 16-bit writes for i2c in addition to the reads when we start configuring the sysconfig register for reset and idle modes. Signed-off-by: Tony Lindgren --- drivers/bus/ti-sysc.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/

[PATCHv2 00/13] ti-sysc driver changes to drop custom hwmods property

2019-05-27 Thread Tony Lindgren
Hi all, Here are changes to improve ti-sysc driver to the point where we can finally drop the custom hwmods property for most cases. This series drops hwmods property only for omap4 UART and MMC as those can be tested with core retention idle. I'll be posting more patches for dropping hwmods prop

Re: [PATCH] list_lru: fix memory leak in __memcg_init_list_lru_node

2019-05-27 Thread Michal Hocko
On Mon 27-05-19 21:32:02, Shakeel Butt wrote: > Syzbot reported following memory leak: > > da RBX: 0003 RCX: 00441f79 > BUG: memory leak > unreferenced object 0x888114f26040 (size 32): > comm "syz-executor626", pid 7056, jiffies 4294948701 (age 39.410s) > hex du

Re: [PATCH 00/12] ti-sysc driver changes to drop custom hwmods property

2019-05-27 Thread Tony Lindgren
* Keerthy [190528 00:58]: > > > On 27/05/19 5:43 PM, Tony Lindgren wrote: > > Hi all, > > > > Here are changes to improve ti-sysc driver to the point where we can > > finally drop the custom hwmods property for most cases. This series > > drops hwmods property only for omap4 UART and MMC as tho

Re: [PATCH v3 2/2] drm/komeda: Adds limitation check for AFBC wide block not support Rot90

2019-05-27 Thread james qian wang (Arm Technology China)
On Tue, May 28, 2019 at 11:57:05AM +0800, Lowry Li (Arm Technology China) wrote: > From: "Lowry Li (Arm Technology China)" > > Komeda series hardware doesn't support Rot90 for AFBC wide block. So > add limitation check to reject it if such configuration has been posted. > > Signed-off-by: Lowry

Re: [PATCH RESEND v2] KVM: X86: Implement PV sched yield hypercall

2019-05-27 Thread Wanpeng Li
On Tue, 28 May 2019 at 14:08, kbuild test robot wrote: > > Hi Wanpeng, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on kvm/linux-next] > [also build test ERROR on v5.2-rc2 next-20190524] > [if your patch is applied to the wrong git tree, please drop us a note t

Re: [PATCH v2] configfs: Fix use-after-free when accessing sd->s_dentry

2019-05-27 Thread Christoph Hellwig
Thanks, applied to configfs-for-next.

Re: [PATCH] mpt3sas_ctl: fix double-fetch bug in _ctl_ioctl_main()

2019-05-27 Thread Suganath Prabu Subramani
Please consider this patch as Ack-by: Suganath Prabu S Thanks, Suganath. On Mon, May 27, 2019 at 6:27 AM Gen Zhang wrote: > > In _ctl_ioctl_main(), 'ioctl_header' is fetched the first time from > userspace. 'ioctl_header.ioc_number' is then checked. The legal result > is saved to 'ioc'. Then,

Re: [PATCH RESEND v2] KVM: X86: Implement PV sched yield hypercall

2019-05-27 Thread kbuild test robot
Hi Wanpeng, Thank you for the patch! Yet something to improve: [auto build test ERROR on kvm/linux-next] [also build test ERROR on v5.2-rc2 next-20190524] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

[PATCH RESEND V13 5/5] arm64: dts: imx: add i.MX8QXP thermal support

2019-05-27 Thread Anson . Huang
From: Anson Huang Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- No change, just rebase the patch to top of linux-next and below my patch: https://patchwork.kernel.org/patch/10962185/ --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 37 ++ 1 f

[PATCH RESEND V13 4/5] defconfig: arm64: add i.MX system controller thermal support

2019-05-27 Thread Anson . Huang
From: Anson Huang This patch enables CONFIG_IMX_SC_THERMAL as module. Signed-off-by: Anson Huang --- No change, just rebase the patch to top of linux-next and based on below my patch: https://patchwork.kernel.org/patch/10959025/ --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insert

[PATCH RESEND V13 1/5] dt-bindings: fsl: scu: add thermal binding

2019-05-27 Thread Anson . Huang
From: Anson Huang NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller, the system controller is in charge of system power, clock and thermal sensors etc. management, Linux kernel has to communicate with system controller via MU (message unit) IPC to get temperature from

[PATCH RESEND V13 3/5] thermal: imx_sc: add i.MX system controller thermal support

2019-05-27 Thread Anson . Huang
From: Anson Huang i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and thermal sensors etc.. This patch adds i.MX system controller thermal driver support, Linux kernel has to communicate with system controlle

[PATCH RESEND V13 2/5] thermal: of-thermal: add API for getting sensor ID from DT

2019-05-27 Thread Anson . Huang
From: Anson Huang On some platforms like i.MX8QXP, the thermal driver needs a real HW sensor ID from DT thermal zone, the HW sensor ID is used to get temperature from SCU firmware, and the virtual sensor ID starting from 0 to N is NOT used at all, this patch adds new API thermal_zone_of_get_senso

[PATCH net-next] hinic: fix a bug in set rx mode

2019-05-27 Thread Xue Chaojing
in set_rx_mode, __dev_mc_sync and netdev_for_each_mc_addr will repeatedly set the multicast mac address. so we delete this loop. Signed-off-by: Xue Chaojing --- drivers/net/ethernet/huawei/hinic/hinic_main.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/huawei/hinic

Re: [bugreport] kernel 5.2 pblk bad header/extent: invalid extent entries

2019-05-27 Thread Mikhail Gavrilov
On Mon, 27 May 2019 at 21:16, Mikhail Gavrilov wrote: > > I am bisected issue. I hope it help understand what is happened on my > computer. > > $ git bisect log > git bisect start > # good: [e93c9c99a629c61837d5a7fc2120cd2b6c70dbdd] Linux 5.1 > git bisect good e93c9c99a629c61837d5a7fc2120cd2b6c70

[RFCv1 03/12] media: mtk-vcodec: constify formats

2019-05-27 Thread Alexandre Courbot
Formats are read-only internal memory structures, so make them const. Signed-off-by: Alexandre Courbot --- .../platform/mtk-vcodec/mtk_vcodec_dec.c | 19 ++- .../platform/mtk-vcodec/mtk_vcodec_drv.h | 2 +- .../platform/mtk-vcodec/mtk_vcodec_enc.c | 19 ++-

[RFCv1 08/12] media: mtk-vcodec: add SCP firmware ops

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong Add support for communicating with the SCP firmware, which will be used by MT8183. Signed-off-by: Yunfei Dong Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot [acourbot: refactor, cleanup and split] --- .../platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 3 +

Re: [PATCH v6 0/5] prerequisites for device reserved local mem rework

2019-05-27 Thread Christoph Hellwig
On Thu, May 23, 2019 at 09:07:55AM +0200, Greg KH wrote: > I have no objection for you just taking this whole series as-is, no need > to worry about merge conflicts with the USB tree, I doubt anything will > be touching this area of code anytime soon. > > So if you want to take it now, feel free t

[RFCv1 12/12] media: mtk-vcodec: enable MT8183 decoder

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong Now that all the supporting blocks are present, enable decoder for MT8183. Signed-off-by: Yunfei Dong Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot [acourbot: refactor, cleanup and split] Change-Id: I5696b186fae16f12b97745247331732beb1192e2 --- driver

[RFCv1 06/12] media: mtk-vcodec: move stateful ops into their own file

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong We are planning to add support for stateless formats to this driver. Part of the driver will be shared between stateful and stateless formats, but a few ops need to be specialized for both. Extract the stateful part of the driver and move it into its own file, accessible through

[RFCv1 09/12] media: mtk-vcodec: vdec: support stateless API

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong Support the stateless codec API that will be used by MT8183. Signed-off-by: Yunfei Dong Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot [acourbot: refactor, cleanup and split] --- drivers/media/platform/mtk-vcodec/Makefile| 2 + .../platform/mtk-vc

[RFCv1 11/12] media: mtk-vcodec: vdec: add media device if using stateless api

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong The stateless API requires a media device for issuing requests. Add one if it turns out we are using it. Signed-off-by: Yunfei Dong Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot [acourbot: refactor, cleanup and split] --- drivers/media/platform/Kconfig

[RFCv1 10/12] media: mtk-vcodec: vdec: support stateless H.264 decoding

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong Add the firmware interface allowing to decode H.264 in a stateless manner. Signed-off-by: Yunfei Dong Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot [acourbot: refactor, cleanup and split] --- .../mtk-vcodec/vdec/vdec_h264_req_if.c| 533

[RFCv1 05/12] media: mtk-vcodec: support single-buffer frames

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong MT8183 will use a multi-planar format backed by a single buffer. Adapt the existing code to be able to handle such frames instead of assuming each frame is backed by two buffers. Signed-off-by: Yunfei Dong Co-developed-by: Alexandre Courbot Signed-off-by: Alexandre Courbot [

[RFCv1 04/12] media: mtk-vcodec: fix copyright indent

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong Minor identation fix for copyright notice in a few source files. Signed-off-by: Yunfei Dong [acourbot: refactor, cleanup and split] Signed-off-by: Alexandre Courbot --- .../platform/mtk-vcodec/mtk_vcodec_drv.h | 26 +-- .../platform/mtk-vcodec/mtk_vcodec

[RFCv1 01/12] media: mtk-vcodec: avoid unneeded pointer-to-long conversions

2019-05-27 Thread Alexandre Courbot
The interface used to communicate with the firmware casts pointers into unsigned longs and back again in order to store private references, all of this for pointers that remain purely in the kernel. Replace these unsigned longs with void pointers to make the code a bit sturdier and easier to follow

[RFCv1 07/12] media: mtk-vcodec: abstract firmware interface

2019-05-27 Thread Alexandre Courbot
From: Yunfei Dong MT8183's codec firwmare is run by a different remote processor from MT8173. While the firmware interface is basically the same, the way to invoke it differs. Abstract all firmware calls under a layer that will allow us to handle both firmware types transparently. Signed-off-by:

[RFCv1 02/12] media: mtk-vcodec: remove unneeded proxy functions

2019-05-27 Thread Alexandre Courbot
We were getting the codec interface through a proxy function that does not bring anything compared to just accessing the interface definition directly, so just do that. Also make the decoder interfaces const. Signed-off-by: Alexandre Courbot --- .../media/platform/mtk-vcodec/vdec/vdec_h264_if.c

[RFCv1 00/12] media: mtk-vcodec: support for MT8183 decoder

2019-05-27 Thread Alexandre Courbot
This series is a refactoring/split of the initial patch for MT8183 codec support that was posted for Chrome OS [1] in order to make it upstreamable. The line count has been significantly reduced compared to the initial patch, although support for the MT8183 encoder is not here yet to limit the amo

Re: [PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-05-27 Thread Shawn Anastasio
On 5/28/19 12:36 AM, Oliver wrote: On Tue, May 28, 2019 at 2:03 PM Shawn Anastasio wrote: Introduce a new pcibios function pcibios_ignore_alignment_request which allows the PCI core to defer to platform-specific code to determine whether or not to ignore alignment requests for PCI resources

KASAN: invalid-free in tomoyo_realpath_from_path

2019-05-27 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:f4aa8012 cxgb4: Make t4_get_tp_e2c_map static git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=173328baa0 kernel config: https://syzkaller.appspot.com/x/.config?x=d137eb988ffd93c3 dashboard link: h

Re: [PATCH v3 14/16] powerpc/32: implement fast entry for syscalls on BOOKE

2019-05-27 Thread Michael Ellerman
Christophe Leroy writes: > Le 23/05/2019 à 09:00, Christophe Leroy a écrit : > > [...] > >>> arch/powerpc/kernel/head_fsl_booke.o: In function `SystemCall': >>> arch/powerpc/kernel/head_fsl_booke.S:416: undefined reference to >>> `kvmppc_handler_BOOKE_INTERRUPT_SYSCALL_SPRN_SRR1' >>> Makefile:105

Re: [PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-05-27 Thread Oliver
On Tue, May 28, 2019 at 2:03 PM Shawn Anastasio wrote: > > Introduce a new pcibios function pcibios_ignore_alignment_request > which allows the PCI core to defer to platform-specific code to > determine whether or not to ignore alignment requests for PCI resources. > > The existing behavior is to

Re: [PATCH 1/4] arm64: module: create module allocations without exec permissions

2019-05-27 Thread Anshuman Khandual
On 05/23/2019 03:52 PM, Ard Biesheuvel wrote: > Now that the core code manages the executable permissions of code > regions of modules explicitly, it is no longer necessary to create I guess the permission transition for various module sections happen through module_enable_[ro|nx]() after alloc

Re: [PATCH] userfaultfd: selftest: fix compiler warning

2019-05-27 Thread Mike Rapoport
On Mon, May 27, 2019 at 03:18:59PM +, Alakesh Haloi wrote: > Fixes following compiler warning > > userfaultfd.c: In function ‘usage’: > userfaultfd.c:126:2: warning: format not a string literal and no format > arguments [-Wformat-security] > fprintf(stderr, examples); > > Signed-off-b

Re: [PATCH 0/5] firmware: Add support for loading compressed files

2019-05-27 Thread Takashi Iwai
On Mon, 20 May 2019 11:26:42 +0200, Takashi Iwai wrote: > > Hi, > > this is a patch set to add the support for loading compressed firmware > files. > > The primary motivation is to reduce the storage size; e.g. currently > the amount of /lib/firmware on my machine counts up to 419MB, and this >

Re: MIPS r4k cache operations with SMP enabled

2019-05-27 Thread Chris Packham
On 28/05/19 2:52 PM, Chris Packham wrote: > Hi, > > I'm trying to port a fairly old Broadcom integrated chip (BCM6818) to > the latest Linux kernel using the mips/bmips support. > > The chip has a BMIPS4355 core. This has two "thread processors" (cpu > cores) with separate I-caches but a shared D

Re: [PATCH v4 00/30] coresight: Support for ACPI bindings

2019-05-27 Thread Leo Yan
Hi Suzuki, On Wed, May 22, 2019 at 11:34:33AM +0100, Suzuki K Poulose wrote: > This series adds the support for CoreSight devices on ACPI based > platforms. The device connections are encoded as _DSD graph property[0], > with CoreSight specific extensions to indicate the direction of data > flow a

Re: [PATCH net 4/4] net/udpgso_bench_tx: audit error queue

2019-05-27 Thread Fred Klassen
> On May 27, 2019, at 6:15 PM, Willem de Bruijn > wrote: >> I wanted to discuss whether or not to attach a buffer to the >> recvmsg(fd, &msg, MSG_ERRQUEUE). Without it, I have >> MSG_TRUNC errors in my msg_flags. Either I have to add >> a buffer, or ignore that error flag. > > Either sounds r

[PATCH v3] coredump: Split pipe command whitespace before expanding template

2019-05-27 Thread Paul Wise
Save the offsets of the start of each argument to avoid having to update pointers to each argument after every corename krealloc and to avoid having to duplicate the memory for the dump command. Executable names containing spaces were previously being expanded from %e or %E and then split in the m

[PATCH v2] phy: renesas: rcar-gen2: Fix memory leak at error paths

2019-05-27 Thread Yoshihiro Shimoda
This patch fixes memory leak at error paths of the probe function. In for_each_child_of_node, if the loop returns, the driver should call of_put_node() before returns. Reported-by: Julia Lawall Fixes: 1233f59f745 ("phy: Renesas R-Car Gen2 PHY driver") Signed-off-by: Yoshihiro Shimoda Reviewed-by

linux-next: Tree for May 28

2019-05-27 Thread Stephen Rothwell
Hi all, Changes since 20190524: The drm-fixes tree lost its build failure. The akpm-current tree gained a build failure due to an interaction with the ftrace tree for which I reverted 2 commits. Non-merge commits (relative to Linus' tree): 2262 2431 files changed, 83504 insertions(+), 36801 de

[PATCH 1/1] arm64: dts: rockchip: add core dtsi file for RK3399Pro SoCs

2019-05-27 Thread Jianqun Xu
This patch adds core dtsi file for Rockchip RK3399Pro SoCs, include rk3399.dtsi. Also enable these nodes: - dfi/dmc for ddr devfreq - pcie/pcie_phy - sdhci/sdio/emmc/sdmmc Signed-off-by: Jianqun Xu --- arch/arm64/boot/dts/rockchip/rk3399pro.dtsi | 111 1 file changed, 111 in

Re: [RESEND PATCH 0/3] Allow custom PCI resource alignment on pseries

2019-05-27 Thread Oliver
On Tue, May 28, 2019 at 2:09 PM Shawn Anastasio wrote: > > > > On 5/27/19 11:01 PM, Oliver wrote: > > On Tue, May 28, 2019 at 8:56 AM Shawn Anastasio wrote: > >> > >> Hello all, > >> > >> This patch set implements support for user-specified PCI resource > >> alignment on the pseries platform for

RE: [EXT] Re: [V3 1/2] dmaengine: fsl-dpaa2-qdma: Add the DPDMAI(Data Path DMA Interface) support

2019-05-27 Thread Peng Ma
Hi Vinod Sorry to replay so late. The dpaa2 qdma driver is based on FSL_MC_BUS and FSL_MC_DPIO, so It will used those two drivers Functions or structs. This patch provides some necessary functions and structs for qdma driver(next patch: dpaa2-qdma.c) The dpaa2 driver is not only to write some re

Re: [RFC] printk/sysrq: Don't play with console_loglevel

2019-05-27 Thread Sergey Senozhatsky
On (05/28/19 13:15), Sergey Senozhatsky wrote: > On (05/28/19 01:24), Dmitry Safonov wrote: > [..] > > While handling sysrq the console_loglevel is bumped to default to print > > sysrq headers. It's done to print sysrq messages with WARNING level for > > consumers of /proc/kmsg, though it sucks by

Re: [PATCH] list_lru: fix memory leak in __memcg_init_list_lru_node

2019-05-27 Thread Shakeel Butt
On Mon, May 27, 2019 at 9:32 PM Shakeel Butt wrote: > > Syzbot reported following memory leak: > > da RBX: 0003 RCX: 00441f79 > BUG: memory leak > unreferenced object 0x888114f26040 (size 32): > comm "syz-executor626", pid 7056, jiffies 4294948701 (age 39.410s) >

[PATCH] list_lru: fix memory leak in __memcg_init_list_lru_node

2019-05-27 Thread Shakeel Butt
Syzbot reported following memory leak: da RBX: 0003 RCX: 00441f79 BUG: memory leak unreferenced object 0x888114f26040 (size 32): comm "syz-executor626", pid 7056, jiffies 4294948701 (age 39.410s) hex dump (first 32 bytes): 40 60 f2 14 81 88 ff ff 40 60 f2 14

[PATCH] vt: configurable number of console devices

2019-05-27 Thread Trevor Bourget
Having 63 vt devices for embedded systems might be overkill, so provide a configuration MAX_NR_CONSOLES to allow this consumption to be reduced. Signed-off-by: Trevor Bourget --- drivers/tty/Kconfig | 9 + include/uapi/linux/vt.h | 4 2 files changed, 13 insertions(+) diff --gi

Re: [PATCH] scsi: ufs: Check that space was properly alloced in copy_query_response

2019-05-27 Thread Alim Akhtar
Hi Avri On 5/21/19 1:54 PM, Avri Altman wrote: > struct ufs_dev_cmd is the main container that supports device management > commands. In the case of a read descriptor request, we assume that the > proper space was allocated in dev_cmd to hold the returning descriptor. > > This is no longer true,

Re: [RFC] printk/sysrq: Don't play with console_loglevel

2019-05-27 Thread Sergey Senozhatsky
On (05/28/19 12:21), Tetsuo Handa wrote: [..] > What I suggested in my proposal ("printk: Introduce "store now but print > later" prefix." at > https://lore.kernel.org/lkml/1550896930-12324-1-git-send-email-penguin-ker...@i-love.sakura.ne.jp/T/#u > ) > is "whether the caller wants to defer printi

Re: [PATCH 1/2] vfio: ABI for setting mdev display flip eventfd

2019-05-27 Thread Alex Williamson
On Tue, 28 May 2019 01:42:57 + "Zhang, Tina" wrote: > > -Original Message- > > From: intel-gvt-dev [mailto:intel-gvt-dev-boun...@lists.freedesktop.org] On > > Behalf Of Alex Williamson > > Sent: Monday, May 27, 2019 10:05 PM > > To: Zhang, Tina > > Cc: k...@vger.kernel.org; linux-ker

Re: [RFC] printk/sysrq: Don't play with console_loglevel

2019-05-27 Thread Sergey Senozhatsky
On (05/28/19 01:24), Dmitry Safonov wrote: [..] > While handling sysrq the console_loglevel is bumped to default to print > sysrq headers. It's done to print sysrq messages with WARNING level for > consumers of /proc/kmsg, though it sucks by the following reasons: > - changing console_loglevel may

Re: [RESEND PATCH 0/3] Allow custom PCI resource alignment on pseries

2019-05-27 Thread Shawn Anastasio
On 5/27/19 11:01 PM, Oliver wrote: On Tue, May 28, 2019 at 8:56 AM Shawn Anastasio wrote: Hello all, This patch set implements support for user-specified PCI resource alignment on the pseries platform for hotplugged PCI devices. Currently on pseries, PCI resource alignments specified with

[PATCH v3 3/3] powerpc/pseries: Allow user-specified PCI resource alignment after init

2019-05-27 Thread Shawn Anastasio
On pseries, custom PCI resource alignment specified with the commandline argument pci=resource_alignment is disabled due to PCI resources being managed by the firmware. However, in the case of PCI hotplug the resources are managed by the kernel, so custom alignments should be honored in these cases

[PATCH v3 0/3] Allow custom PCI resource alignment on pseries

2019-05-27 Thread Shawn Anastasio
Changes from v2 to v3: - Fix wrong return type of ppc pcibios_ignore_alignment_request (Not sure how my local compile didn't catch that!) Hello all, This patch set implements support for user-specified PCI resource alignment on the pseries platform for hotplugged PCI devices. Currently on p

[PATCH v3 2/3] powerpc/64: Enable pcibios_after_init hook on ppc64

2019-05-27 Thread Shawn Anastasio
Enable the pcibios_after_init hook on all powerpc platforms. This hook is executed at the end of pcibios_init and was previously only available on CONFIG_PPC32. Since it is useful and not inherently limited to 32-bit mode, remove the limitation and allow it on all powerpc platforms. Signed-off-by

[PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-05-27 Thread Shawn Anastasio
Introduce a new pcibios function pcibios_ignore_alignment_request which allows the PCI core to defer to platform-specific code to determine whether or not to ignore alignment requests for PCI resources. The existing behavior is to simply ignore alignment requests when PCI_PROBE_ONLY is set. This i

Re: [RESEND PATCH 0/3] Allow custom PCI resource alignment on pseries

2019-05-27 Thread Oliver
On Tue, May 28, 2019 at 8:56 AM Shawn Anastasio wrote: > > Hello all, > > This patch set implements support for user-specified PCI resource > alignment on the pseries platform for hotplugged PCI devices. > Currently on pseries, PCI resource alignments specified with the > pci=resource_alignment co

RE: [v4 PATCH] RISC-V: Add an Image header that boot loader can parse.

2019-05-27 Thread Anup Patel
> -Original Message- > From: Troy Benjegerdes > Sent: Tuesday, May 28, 2019 5:11 AM > To: Karsten Merker > Cc: Ard Biesheuvel ; Albert Ou > ; Jonathan Corbet ; Anup Patel > ; Zong Li ; Atish Patra > ; Nick Kossifidis ; Palmer Dabbelt > ; paul.walms...@sifive.com; linux- > ri...@lists.in

linux-next: build failure after merge of the akpm-current tree

2019-05-27 Thread Stephen Rothwell
Hi all, After merging the akpm-current tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from arch/arm/mm/extable.c:6: include/linux/uaccess.h:302:29: error: static declaration of 'probe_user_read' follows non-static declaration static __always_inline lo

Re: [RFC 7/7] mm: madvise support MADV_ANONYMOUS_FILTER and MADV_FILE_FILTER

2019-05-27 Thread Minchan Kim
On Mon, May 27, 2019 at 02:44:11PM +0200, Michal Hocko wrote: > On Mon 27-05-19 16:58:11, Minchan Kim wrote: > > On Tue, May 21, 2019 at 08:26:28AM +0200, Michal Hocko wrote: > > > On Tue 21-05-19 11:55:33, Minchan Kim wrote: > > > > On Mon, May 20, 2019 at 11:28:01AM +0200, Michal Hocko wrote: > >

[net-next,v3 2/2] net: phy: sfp: enable i2c-bus detection on ACPI based systems

2019-05-27 Thread Ruslan Babayev
Lookup I2C adapter using the "i2c-bus" device property on ACPI based systems similar to how it's done with DT. An example DSD describing an SFP on an ACPI based system: Device (SFP0) { Name (_HID, "PRP0001") Name (_CRS, ResourceTemplate() { GpioIo(Exclusive, PullDefault, 0, 0,

Re: [RFC] printk/sysrq: Don't play with console_loglevel

2019-05-27 Thread Tetsuo Handa
On 2019/05/28 9:24, Dmitry Safonov wrote: > Provide KERN_UNSUPPRESSED printk() annotation for such legacy places. > Make sysrq print the headers unsuppressed instead of changing > console_loglevel. I think that kdb also wants to use KERN_UNSUPPRESSED for making sure that messages are printed. But

[net-next,v3 0/2] Enable SFP on ACPI based systems

2019-05-27 Thread Ruslan Babayev
Changes: v2: more descriptive commit body v3: made 'i2c_acpi_find_adapter_by_handle' static inline Ruslan Babayev (2): i2c: acpi: export i2c_acpi_find_adapter_by_handle net: phy: sfp: enable i2c-bus detection on ACPI based systems drivers/i2c/i2c-core-acpi.c | 3 ++- drivers/net/phy/sfp.c

Re: [PATCH v3 3/3] tests: add close_range() tests

2019-05-27 Thread Michael Ellerman
Christian Brauner writes: > This adds basic tests for the new close_range() syscall. > - test that no invalid flags can be passed > - test that a range of file descriptors is correctly closed > - test that a range of file descriptors is correctly closed if there there > are already closed file d

[net-next,v3 1/2] i2c: acpi: export i2c_acpi_find_adapter_by_handle

2019-05-27 Thread Ruslan Babayev
This allows drivers to lookup i2c adapters on ACPI based systems similar to of_get_i2c_adapter_by_node() with DT based systems. Signed-off-by: Ruslan Babayev Cc: xe-linux-exter...@cisco.com --- drivers/i2c/i2c-core-acpi.c | 3 ++- include/linux/i2c.h | 6 ++ 2 files changed, 8 insert

  1   2   3   4   5   6   7   8   9   >