[PATCH v2 1/4] clk: imx: clk-imx8qxp: Add SCU clocks support for DC0 PLL clocks

2020-12-01 Thread Liu Ying
This patch adds SCU clocks support for i.MX8qxp DC0 subsystem PLL clocks. Cc: Michael Turquette Cc: Stephen Boyd Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: Dong Aisheng Signed-off-by: Liu Ying --- v1->v2: * Trivial tweak - Move PLL

[PATCH v2 3/4] clk: imx: clk-imx8qxp: Register DC0 display clocks with imx_clk_scu2()

2020-12-01 Thread Liu Ying
This patch corrects display clocks for i.MX8qxp DC0 subsystem by calling imx_clk_scu2() to register them, instead of calling imx_clk_scu(). The reason is that the clocks can source from various parents. The clock source selection is controlled by Distributed Slave System Controller(DSC).

[PATCH v2 4/4] clk: imx: clk-imx8qxp: Add some SCU clocks support for MIPI-LVDS subsystems

2020-12-01 Thread Liu Ying
This patch adds some SCU clocks support for i.MX8qxp MIPI-LVDS subsystems. Cc: Michael Turquette Cc: Stephen Boyd Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: Dong Aisheng Signed-off-by: Liu Ying --- v1->v2: * No change.

[PATCH v2 2/4] clk: imx: clk-imx8qxp: Add SCU clocks support for DC0 bypass clocks

2020-12-01 Thread Liu Ying
This patch adds SCU clocks support for i.MX8qxp DC0 subsystem bypass clocks. Cc: Michael Turquette Cc: Stephen Boyd Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: Dong Aisheng Cc: Rob Herring Signed-off-by: Liu Ying --- v1->v2: *

[PATCH v2 0/4] Add some clocks support for i.MX8qxp DC0/MIPI-LVDS subsystems

2020-12-01 Thread Liu Ying
This patch set adds some SCU clocks support for i.MX8qxp DC0/MIPI-LVDS subsystems. With this patch set, some basic clocks for i.MX8qxp LVDS displays can be got by drivers. v1->v2: * Drop LPCG clocks as they can be registered directly in an in-tree new DT binding way. * Add DC0 bypass clocks

[PATCH] media: venus: preserve DRC state across seeks

2020-12-01 Thread Alexandre Courbot
DRC events can happen virtually at anytime, including when we are starting a seek. Should this happen, we must make sure to return to the DRC state, otherwise the firmware will expect buffers of the new resolution whereas userspace will still work with the old one. Returning to the DRC state upon

RE: [PATCH Xilinx Alveo 0/8] Xilinx Alveo/XRT patch overview

2020-12-01 Thread Sonal Santan
> -Original Message- > From: Xu Yilun > Sent: Tuesday, December 1, 2020 6:14 PM > To: Sonal Santan > Cc: linux-kernel@vger.kernel.org; Sonal Santan ; linux- > f...@vger.kernel.org; Max Zhen ; Lizhi Hou > ; Michal Simek ; Stefano Stabellini > ; devicet...@vger.kernel.org > Subject: Re:

[PATCH 1/6] mm/gup: perform check_dax_vmas only when FS_DAX is enabled

2020-12-01 Thread Pavel Tatashin
There is no need to check_dax_vmas() and run through the npage loop of pinned pages if FS_DAX is not enabled. Add a stub check_dax_vmas() function for no-FS_DAX case. Signed-off-by: Pavel Tatashin --- mm/gup.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/mm/gup.c b/mm/gup.c index

[PATCH 5/6] mm: honor PF_MEMALLOC_NOMOVABLE for all allocations

2020-12-01 Thread Pavel Tatashin
PF_MEMALLOC_NOMOVABLE is only honored for CMA allocations, extend this flag to work for any allocations by removing __GFP_MOVABLE from gfp_mask when this flag is passed in the current context, thus prohibiting allocations from ZONE_MOVABLE. Signed-off-by: Pavel Tatashin --- mm/hugetlb.c| 2

[PATCH 2/6] mm/gup: don't pin migrated cma pages in movable zone

2020-12-01 Thread Pavel Tatashin
In order not to fragment CMA the pinned pages are migrated. However, they are migrated to ZONE_MOVABLE, which also should not have pinned pages. Remove __GFP_MOVABLE, so pages can be migrated to zones where pinning is allowed. Signed-off-by: Pavel Tatashin --- mm/gup.c | 2 +- 1 file changed,

[PATCH 6/6] mm/gup: migrate pinned pages out of movable zone

2020-12-01 Thread Pavel Tatashin
We do not allocate pin pages in ZONE_MOVABLE, but if pages were already allocated before pinning they need to migrated to a different zone. Currently, we migrate movable CMA pages only. Generalize the function that migrates CMA pages to migrate all movable pages. Signed-off-by: Pavel Tatashin

[PATCH 3/6] mm/gup: make __gup_longterm_locked common

2020-12-01 Thread Pavel Tatashin
__gup_longterm_locked() has CMA || FS_DAX version and a common stub version. In the preparation of prohibiting longterm pinning of pages from movable zone make the CMA || FS_DAX version common, and delete the stub version. Signed-off-by: Pavel Tatashin --- mm/gup.c | 13 - 1 file

[PATCH 4/6] mm cma: rename PF_MEMALLOC_NOCMA to PF_MEMALLOC_NOMOVABLE

2020-12-01 Thread Pavel Tatashin
PF_MEMALLOC_NOCMA is used for longterm pinning and has an effect of clearing _GFP_MOVABLE or prohibiting allocations from ZONE_MOVABLE. We will prohibit allocating any pages that are getting longterm pinned from ZONE_MOVABLE, and we would want to unify and re-use this flag. So, rename it to

[PATCH 0/6] prohibit pinning pages in ZONE_MOVABLE

2020-12-01 Thread Pavel Tatashin
When page is pinned it cannot be moved and its physical address stays the same until pages is unpinned. This is useful functionality to allows userland to implementation DMA access. For example, it is used by vfio in vfio_pin_pages(). However, this functionality breaks memory hotplug/hotremove

Re: [PATCH RFC 03/39] KVM: x86/xen: register shared_info page

2020-12-01 Thread Ankur Arora
On 2020-12-01 5:26 p.m., David Woodhouse wrote On Tue, 2020-12-01 at 16:40 -0800, Ankur Arora wrote: On 2020-12-01 5:07 a.m., David Woodhouse wrote: On Wed, 2019-02-20 at 20:15 +, Joao Martins wrote: +static int kvm_xen_shared_info_init(struct kvm *kvm, gfn_t gfn) +{ + struct

RE: [PATCH] x86/gpu: add JSL stolen memory support

2020-12-01 Thread Surendrakumar Upadhyay, TejaskumarX
Yes it fails all the tests which are allocating from this stolen memory bunch. For example IGT tests like " igt@kms_frontbuffer_tracking@-[fbc|fbcpsr].* | igt@kms_fbcon_fbt@fbc.* " are failing as they totally depend to work on stolen memory. Thanks, Tejas > -Original Message- > From:

Re: [PATCH RFC 02/39] KVM: x86/xen: intercept xen hypercalls if enabled

2020-12-01 Thread Ankur Arora
On 2020-12-01 1:48 a.m., David Woodhouse wrote: On Wed, 2019-02-20 at 20:15 +, Joao Martins wrote: Add a new exit reason for emulator to handle Xen hypercalls. Albeit these are injected only if guest has initialized the Xen hypercall page I've reworked this a little. I didn't like the

[PATCH 2/2] ARM: dts: aspeed: Add LCLK to lpc-snoop

2020-12-01 Thread John Wang
Signed-off-by: John Wang --- arch/arm/boot/dts/aspeed-g4.dtsi | 1 + arch/arm/boot/dts/aspeed-g5.dtsi | 1 + arch/arm/boot/dts/aspeed-g6.dtsi | 1 + 3 files changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi index f606fc01ff13..2364b660f2e4

[PATCH 1/2] misc: Add clock control logic into Aspeed LPC SNOOP driver

2020-12-01 Thread John Wang
From: Jae Hyun Yoo If LPC SNOOP driver is registered ahead of lpc-ctrl module, LPC SNOOP block will be enabled without heart beating of LCLK until lpc-ctrl enables the LCLK. This issue causes improper handling on host interrupts when the host sends interrupt in that time frame. Then kernel

Re: [PATCH 5/8] i2c: omap: fix reference leak when pm_runtime_get_sync fails

2020-12-01 Thread Vignesh Raghavendra
On 12/1/20 3:01 PM, Qinglang Miao wrote: > The PM reference count is not expected to be incremented on > return in omap_i2c_probe() and omap_i2c_remove(). > > However, pm_runtime_get_sync will increment the PM reference > count even failed. Forgetting to putting operation will result > in a

Re: [PATCH 4.19 00/57] 4.19.161-rc1 review

2020-12-01 Thread Naresh Kamboju
On Tue, 1 Dec 2020 at 14:31, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.161 release. > There are 57 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[PATCH v2 3/4] powerpc: Reintroduce is_kvm_guest in a new avatar

2020-12-01 Thread Srikar Dronamraju
Introduce a static branch that would be set during boot if the OS happens to be a KVM guest. Subsequent checks to see if we are on KVM will rely on this static branch. This static branch would be used in vcpu_is_preempted in a subsequent patch. Cc: linuxppc-dev Cc: LKML Cc: Michael Ellerman

[PATCH v2 4/4] powerpc/paravirt: Use is_kvm_guest in vcpu_is_preempted

2020-12-01 Thread Srikar Dronamraju
If its a shared lpar but not a KVM guest, then see if the vCPU is related to the calling vCPU. On PowerVM, only cores can be preempted. So if one vCPU is a non-preempted state, we can decipher that all other vCPUs sharing the same core are in non-preempted state. Cc: linuxppc-dev Cc: LKML Cc:

Re: [PATCH v2 bpf-next 00/13] Atomics for eBPF

2020-12-01 Thread Yonghong Song
On 12/1/20 6:00 PM, Andrii Nakryiko wrote: On Mon, Nov 30, 2020 at 7:51 PM Yonghong Song wrote: On 11/30/20 9:22 AM, Yonghong Song wrote: On 11/28/20 5:40 PM, Alexei Starovoitov wrote: On Fri, Nov 27, 2020 at 09:53:05PM -0800, Yonghong Song wrote: On 11/27/20 9:57 AM, Brendan

Re: mapcount corruption regression

2020-12-01 Thread Dan Williams
On Tue, Dec 1, 2020 at 7:43 PM Matthew Wilcox wrote: > > On Tue, Dec 01, 2020 at 06:28:45PM -0800, Dan Williams wrote: > > On Tue, Dec 1, 2020 at 12:49 PM Matthew Wilcox wrote: > > > > > > On Tue, Dec 01, 2020 at 12:42:39PM -0800, Dan Williams wrote: > > > > On Mon, Nov 30, 2020 at 6:24 PM

[PATCH v2 1/4] powerpc: Refactor is_kvm_guest declaration to new header

2020-12-01 Thread Srikar Dronamraju
Only code/declaration movement, in anticipation of doing a kvm-aware vcpu_is_preempted. No additional changes. Cc: linuxppc-dev Cc: LKML Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Nathan Lynch Cc: Gautham R Shenoy Cc: Peter Zijlstra Cc: Valentin Schneider Cc: Juri Lelli Cc: Waiman Long

[PATCH v2 2/4] powerpc: Rename is_kvm_guest to check_kvm_guest

2020-12-01 Thread Srikar Dronamraju
is_kvm_guest() will be reused in subsequent patch in a new avatar. Hence rename is_kvm_guest to check_kvm_guest. No additional changes. Cc: linuxppc-dev Cc: LKML Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Nathan Lynch Cc: Gautham R Shenoy Cc: Peter Zijlstra Cc: Valentin Schneider Cc:

[PATCH v2 0/4] Powerpc: Better preemption for shared processor

2020-12-01 Thread Srikar Dronamraju
Currently, vcpu_is_preempted will return the yield_count for shared_processor. On a PowerVM LPAR, Phyp schedules at SMT8 core boundary i.e all CPUs belonging to a core are either group scheduled in or group scheduled out. This can be used to better predict non-preempted CPUs on PowerVM shared

RE: [PATCH] exfat: Avoid allocating upcase table using kcalloc()

2020-12-01 Thread Sungjong Seo
> The table for Unicode upcase conversion requires an order-5 allocation, > which may fail on a highly-fragmented system: > > pool-udisksd: page allocation failure: order:5, > mode:0x40dc0(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), > nodemask=(null),cpuset=/,mems_allowed=0 > CPU: 4 PID: 3756880 Comm:

Re: [PATCH v13 0/4] userspace MHI client interface driver

2020-12-01 Thread Jeffrey Hugo
On 12/1/2020 7:55 PM, Jakub Kicinski wrote: On Tue, 1 Dec 2020 13:48:36 -0700 Jeffrey Hugo wrote: On 12/1/2020 1:03 PM, Jakub Kicinski wrote: On Tue, 1 Dec 2020 12:40:50 -0700 Jeffrey Hugo wrote: On 12/1/2020 12:29 PM, Jakub Kicinski wrote: On Fri, 27 Nov 2020 19:26:02 -0800 Hemant Kumar

Re: [PATCH 5.4 00/98] 5.4.81-rc1 review

2020-12-01 Thread Naresh Kamboju
On Tue, 1 Dec 2020 at 14:34, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.81 release. > There are 98 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH 5.9 000/152] 5.9.12-rc1 review

2020-12-01 Thread Naresh Kamboju
On Tue, 1 Dec 2020 at 14:38, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.9.12 release. > There are 152 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[arm64] db410c: BUG: Invalid wait context

2020-12-01 Thread Naresh Kamboju
While running kselftests on arm64 db410c platform "BUG: Invalid wait context" noticed at different runs this specific platform running stable-rc 5.9.12-rc1. While running these two test cases we have noticed this BUG and not easily reproducible. # selftests: bpf: test_xdp_redirect.sh #

Re: [PATCH 2/5] kunit: tool: fix unit test so it can run from non-root dir

2020-12-01 Thread David Gow
On Wed, Dec 2, 2020 at 3:00 AM Daniel Latypov wrote: > > On Mon, Nov 30, 2020 at 11:33 PM David Gow wrote: > > > > On Tue, Dec 1, 2020 at 7:33 AM Daniel Latypov wrote: > > > > > > get_absolute_path() makes an attempt to allow for this. > > > But that doesn't work as soon as os.chdir() gets

Re: [PATCH v13 0/4] userspace MHI client interface driver

2020-12-01 Thread Bjorn Andersson
On Tue 01 Dec 13:29 CST 2020, Jakub Kicinski wrote: > On Fri, 27 Nov 2020 19:26:02 -0800 Hemant Kumar wrote: > > This patch series adds support for UCI driver. UCI driver enables userspace > > clients to communicate to external MHI devices like modem and WLAN. UCI > > driver > > probe creates

Re: [PATCH v2 2/2] arm64: dts: qcom: db845c: Enable gpi_dma0 node

2020-12-01 Thread Vinod Koul
On 01-12-20, 19:06, Bjorn Andersson wrote: > On Mon 30 Nov 22:25 CST 2020, Vinod Koul wrote: > > > gpi_dma0 can be used for spi and i2c transfers on db845c, so enable it > > > > Signed-off-by: Vinod Koul > > --- > > arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 4 > > 1 file changed, 4

[PATCH] MAINTAINERS: Add entries for Toshiba Visconti5 watchdog driver

2020-12-01 Thread Nobuhiro Iwamatsu
Add entries for Toshiba Visconti5 watchdog driver and binding. Signed-off-by: Nobuhiro Iwamatsu --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2daa6ee673f7..f3ad5c290a8b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2627,8 +2627,10 @@ S:

[PATCH] arm64: dts: visconti: Add watchdog support for TMPV7708 SoC

2020-12-01 Thread Nobuhiro Iwamatsu
Add watchdog node in TMPV7708's dtsi, and tmpv7708-rm-mbrc boards's dts. Signed-off-by: Nobuhiro Iwamatsu --- arch/arm64/boot/dts/toshiba/tmpv7708-rm-mbrc.dts | 5 + arch/arm64/boot/dts/toshiba/tmpv7708.dtsi| 12 2 files changed, 17 insertions(+) diff --git

Re: [PATCH v3] lib: Convert test_hexdump.c to KUnit

2020-12-01 Thread Arpitha Raghunandan
On 01/12/20 4:36 pm, Andy Shevchenko wrote: > On Tue, Dec 1, 2020 at 9:21 AM Arpitha Raghunandan <98.a...@gmail.com> wrote: >> Convert test lib/test_hexdump.c to KUnit. More information about >> KUnit can be found at: >> https://www.kernel.org/doc/html/latest/dev-tools/kunit/index.html. >> KUnit

Re: [PATCH v2] rcu/segcblist: Add debug checks for segment lengths

2020-12-01 Thread Paul E. McKenney
On Tue, Dec 01, 2020 at 05:26:32PM -0500, Joel Fernandes wrote: > On Thu, Nov 19, 2020 at 3:42 PM Joel Fernandes wrote: > > > > On Thu, Nov 19, 2020 at 12:16:15PM -0800, Paul E. McKenney wrote: > > > On Thu, Nov 19, 2020 at 02:44:35PM -0500, Joel Fernandes wrote: > > > > On Thu, Nov 19, 2020 at

Re: [PATCH] phy: samsung: Fix build break in USB2 PHY driver for Exynos5420 SoCs

2020-12-01 Thread Vinod Koul
On 01-12-20, 18:09, Marek Szyprowski wrote: > Exynos5420 variant of USB2 PHY is handled by the same code as the > Exynos5250 one. Introducing a separate Kconfig symbol for it was an > over-engineering, which turned out to cause build break for certain > configurations: > > ERROR: modpost:

Re: [PATCH V2] uapi: fix statx attribute value overlap for DAX & MOUNT_ROOT

2020-12-01 Thread Darrick J. Wong
On Tue, Dec 01, 2020 at 05:21:40PM -0600, Eric Sandeen wrote: > [*] Note: This needs to be merged as soon as possible as it's introducing an > incompatible UAPI change... > > STATX_ATTR_MOUNT_ROOT and STATX_ATTR_DAX got merged with the same value, > so one of them needs fixing. Move

Re: [PATCH] vdpa/mlx5: Use random MAC for the vdpa net instance

2020-12-01 Thread Jason Wang
On 2020/12/1 下午5:23, Cindy Lu wrote: On Mon, Nov 30, 2020 at 11:33 PM Michael S. Tsirkin wrote: On Mon, Nov 30, 2020 at 06:41:45PM +0800, Cindy Lu wrote: On Mon, Nov 30, 2020 at 5:33 PM Michael S. Tsirkin wrote: On Mon, Nov 30, 2020 at 11:27:59AM +0200, Eli Cohen wrote: On Mon, Nov 30,

Re: [PATCH v13 0/4] userspace MHI client interface driver

2020-12-01 Thread Manivannan Sadhasivam
On Tue, Dec 01, 2020 at 12:03:02PM -0800, Jakub Kicinski wrote: > On Tue, 1 Dec 2020 12:40:50 -0700 Jeffrey Hugo wrote: > > On 12/1/2020 12:29 PM, Jakub Kicinski wrote: > > > On Fri, 27 Nov 2020 19:26:02 -0800 Hemant Kumar wrote: > > >> This patch series adds support for UCI driver. UCI

Re: [PATCH v1 3/3] usb: typec: tcpci_maxim: Enable VSAFE0V signalling

2020-12-01 Thread Badhri Jagan Sridharan
On Tue, Dec 1, 2020 at 5:16 AM Guenter Roeck wrote: > > On Mon, Nov 30, 2020 at 05:32:46PM -0800, Badhri Jagan Sridharan wrote: > > Unmask EXTENDED_STATUS_MASK.vSafe0V, ALERT.Extended_Status > > and set vbus_vsafe0v to enable VSAFE0V signalling. > > > > Signed-off-by: Badhri Jagan Sridharan > >

[PATCH v2 1/3] usb: typec: tcpm: Introduce vsafe0v for vbus

2020-12-01 Thread Badhri Jagan Sridharan
TCPM at present lacks the notion of VSAFE0V. There are three vbus threshold levels that are critical to track: a. vSafe5V - VBUS “5 volts” as defined by the USB PD specification. b. vSinkDisconnect - Threshold used for transition from Attached.SNK

Re: [PATCH v1 1/3] usb: typec: tcpm: Introduce vsafe0v for vbus

2020-12-01 Thread Badhri Jagan Sridharan
On Tue, Dec 1, 2020 at 5:15 AM Guenter Roeck wrote: > > On Mon, Nov 30, 2020 at 05:32:44PM -0800, Badhri Jagan Sridharan wrote: > > TCPM at present lacks the notion of VSAFE0V. There > > are three vbus threshold levels that are critical to track: > > a. vSafe5V - VBUS “5 volts” as defined

[PATCH v2 3/3] usb: typec: tcpci_maxim: Enable VSAFE0V signalling

2020-12-01 Thread Badhri Jagan Sridharan
Unmask EXTENDED_STATUS_MASK.vSafe0V, ALERT.Extended_Status and set vbus_vsafe0v to enable VSAFE0V signalling. Signed-off-by: Badhri Jagan Sridharan --- Changes since v1: - Setting auto_discharge_disconnect to true instead of 1 as suggested by Guenter. --- drivers/usb/typec/tcpm/tcpci_maxim.c

[PATCH v2 2/3] usb: typec: tcpci: Add support to report vSafe0V

2020-12-01 Thread Badhri Jagan Sridharan
This change adds vbus_vsafe0v which when set, makes TCPM query for VSAFE0V by assigning the tcpc.is_vbus_vsafe0v callback. Also enables ALERT.ExtendedStatus which is triggered when status of EXTENDED_STATUS.vSafe0V changes. EXTENDED_STATUS.vSafe0V is set when vbus is at vSafe0V and cleared

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

2020-12-01 Thread Stephen Rothwell
Hi all, After merging the block tree, today's linux-next build (x86_64 allmodconfig) failed like this: fs/btrfs/zoned.c: In function 'btrfs_get_dev_zone_info': fs/btrfs/zoned.c:168:21: error: 'struct block_device' has no member named 'bd_part'; did you mean 'bd_partno'? 168 | nr_sectors =

Re: [PATCH v2 15/22] x86/fpu/xstate: Support ptracer-induced xstate area expansion

2020-12-01 Thread Bae, Chang Seok
> On Nov 25, 2020, at 03:33, Andy Lutomirski wrote: > > On Tue, Nov 24, 2020 at 10:22 AM Bae, Chang Seok > wrote: >> >> >>> On Nov 19, 2020, at 21:07, Andy Lutomirski wrote: >>> >>> On Thu, Nov 19, 2020 at 3:37 PM Chang S. Bae >>> wrote: diff --git

[PATCH v4 2/3] scsi: ufs: Fix a race condition between ufshcd_abort and eh_work

2020-12-01 Thread Can Guo
In current task abort routine, if task abort happens to the device W-LU, the code directly jumps to ufshcd_eh_host_reset_handler() to perform a full reset and restore then returns FAIL or SUCCESS. Commands sent to the device W-LU are most likely the SSU cmds sent during UFS PM operations. If such

[PATCH v4 1/3] scsi: ufs: Serialize eh_work with system PM events and async scan

2020-12-01 Thread Can Guo
Serialize eh_work with system PM events and async scan to make sure eh_work does not run in parallel with them. Reviewed-by: Asutosh Das Reviewed-by: Hongwu Su Signed-off-by: Can Guo --- drivers/scsi/ufs/ufshcd.c | 64 +-- drivers/scsi/ufs/ufshcd.h |

Re: [PATCH 6/8] lazy tlb: shoot lazies, a non-refcounting lazy tlb option

2020-12-01 Thread Nicholas Piggin
Excerpts from Andy Lutomirski's message of December 1, 2020 4:31 am: > other arch folk: there's some background here: > > https://lkml.kernel.org/r/calcetrvxube8lfnn-qs+dzroqaiw+sfug1j047ybyv31sat...@mail.gmail.com > > On Sun, Nov 29, 2020 at 12:16 PM Andy Lutomirski wrote: >> >> On Sat, Nov

[PATCH v4 3/3] scsi: ufs: Print host regs in IRQ handler when AH8 error happens

2020-12-01 Thread Can Guo
When AH8 error happens, all the regs and states are dumped in err handler. Sometime we need to look into host regs right after AH8 error happens, which is before leaving the IRQ handler. Reviewed-by: Bao D. Nguyen Reviewed-by: Asutosh Das Reviewed-by: Hongwu Su Signed-off-by: Can Guo ---

Re: mapcount corruption regression

2020-12-01 Thread Matthew Wilcox
On Tue, Dec 01, 2020 at 06:28:45PM -0800, Dan Williams wrote: > On Tue, Dec 1, 2020 at 12:49 PM Matthew Wilcox wrote: > > > > On Tue, Dec 01, 2020 at 12:42:39PM -0800, Dan Williams wrote: > > > On Mon, Nov 30, 2020 at 6:24 PM Matthew Wilcox > > > wrote: > > > > > > > > On Mon, Nov 30, 2020 at

[PATCH 2/2] HID: correct kernel-doc notation in hid-quirks.c

2020-12-01 Thread Randy Dunlap
s.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) --- linux-next-20201201.orig/drivers/hid/hid-quirks.c +++ linux-next-20201201/drivers/hid/hid-quirks.c @@ -1029,7 +1029,7 @@ static DEFINE_MUTEX(dquirks_lock); /* Runtime ("dynamic") quirks ma

[PATCH 1/2] HID: correct kernel-doc notation in

2020-12-01 Thread Randy Dunlap
Cc: linux-in...@vger.kernel.org --- include/linux/hid-sensor-hub.h |9 + include/linux/hid.h| 15 +++ 2 files changed, 16 insertions(+), 8 deletions(-) --- linux-next-20201201.orig/include/linux/hid.h +++ linux-next-20201201/include/linux/hid.h @@ -918,7 +918,

[PATCH 0/2] HID: fix some kernel-doc notations

2020-12-01 Thread Randy Dunlap
Clean up kernel-doc notation in 2 files and in drivers/hid/hid-quirks.c. Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: linux-in...@vger.kernel.org [PATCH 1/2] HID: correct kernel-doc notation in [PATCH 2/2] HID: correct kernel-doc notation in hid-quirks.c drivers/hid/hid-quirks.c | 25

Re: [PATCH v1 2/3] usb: typec: tcpci: Add support to report vSafe0V

2020-12-01 Thread Badhri Jagan Sridharan
On Tue, Dec 1, 2020 at 5:27 AM Guenter Roeck wrote: > > On Mon, Nov 30, 2020 at 05:32:45PM -0800, Badhri Jagan Sridharan wrote: > > This change adds vbus_vsafe0v which when set, makes TCPM > > query for VSAFE0V by assigning the tcpc.is_vbus_vsafe0v callback. > > Also enables ALERT.ExtendedStatus

Re: [RFC PATCH] blk-mq: Clean up references when freeing rqs

2020-12-01 Thread Ming Lei
On Tue, Dec 01, 2020 at 09:02:18PM +0800, John Garry wrote: > It has been reported many times that a use-after-free can be intermittently > found when iterating busy requests: > > - > https://lore.kernel.org/linux-block/8376443a-ec1b-0cef-8244-ed584b96f...@huawei.com/ > - >

[PATCH v3] f2fs: compress: support compress level

2020-12-01 Thread Chao Yu
Expand 'compress_algorithm' mount option to accept parameter as format of :, by this way, it gives a way to allow user to do more specified config on lz4 and zstd compression level, then f2fs compression can provide higher compress ratio. In order to set compress level for lz4 algorithm, it needs

[PATCH v4] f2fs: compress: add compress_inode to cache compressed blocks

2020-12-01 Thread Chao Yu
Support to use address space of inner inode to cache compressed block, in order to improve cache hit ratio of random read. Signed-off-by: Chao Yu --- v4: - fix "two or more data types in declaration specifiers" compile error. Documentation/filesystems/f2fs.rst | 3 + fs/f2fs/compress.c

Re: [PATCH v1 1/4] usb: typec: tcpm: Pass down negotiated rev to update retry count

2020-12-01 Thread Badhri Jagan Sridharan
Sure. Done ! Just sent out v2 version of the patch. Thanks, Badhri. On Tue, Dec 1, 2020 at 2:32 AM Heikki Krogerus wrote: > > On Mon, Nov 30, 2020 at 08:22:34PM -0800, Badhri Jagan Sridharan wrote: > > nRetryCount was updated from 3 to 2 between PD2.0 and PD3.0 spec. > > nRetryCount in "Table

[PATCH v2] usb: typec: tcpm: Pass down negotiated rev to update retry count

2020-12-01 Thread Badhri Jagan Sridharan
nRetryCount was updated from 3 to 2 between PD2.0 and PD3.0 spec. nRetryCount in "Table 6-34 Counter parameters" of the PD 2.0 spec is set to 3, whereas, nRetryCount in "Table 6-59 Counter parameters" is set to 2. Pass down negotiated rev in pd_transmit so that low level chip drivers can update

Re: [PATCH RESEND] tty/serial/imx: Enable TXEN bit in imx_poll_init().

2020-12-01 Thread jiladahe1997
On 2020/12/2 0:47, Greg KH wrote: On Wed, Dec 02, 2020 at 07:03:08AM +0800, jiladahe1997 wrote: From: Mingrui Ren As described in Documentation, poll_init() is called by kgdb to initialize hardware which supports both poll_put_char() and poll_get_char(). It's necessary to enable TXEN bit,

[v2 1/2] rtc: pcf2127: properly set flag WD_CD for rtc chips(pcf2129, pca2129)

2020-12-01 Thread Biwen Li
From: Biwen Li Properly set flag WD_CD for rtc chips(pcf2129, pca2129) Signed-off-by: Biwen Li --- Change in v2: - set flag WD_CD according to compatible drivers/rtc/rtc-pcf2127.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-pcf2127.c

[v2 2/2] rtc: pcf2127: clear these flags TSF1, TSF2 before enabling interrupt generation

2020-12-01 Thread Biwen Li
From: Biwen Li Clear these flags TSF1, TSF2 before enabling interrupt generation Signed-off-by: Biwen Li --- Change in v2: - clear flag TSF2 drivers/rtc/rtc-pcf2127.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git

Re: [PATCH 6/8] lazy tlb: shoot lazies, a non-refcounting lazy tlb option

2020-12-01 Thread Nicholas Piggin
Excerpts from Andy Lutomirski's message of November 29, 2020 1:54 pm: > On Sat, Nov 28, 2020 at 8:02 AM Nicholas Piggin wrote: >> >> On big systems, the mm refcount can become highly contented when doing >> a lot of context switching with threaded applications (particularly >> switching between

Re: [PATCH Xilinx Alveo 7/8] fpga: xrt: Alveo management physical function driver

2020-12-01 Thread Xu Yilun
> +static int xmgmt_main_event_cb(struct platform_device *pdev, > + enum xrt_events evt, void *arg) > +{ > + struct xmgmt_main *xmm = platform_get_drvdata(pdev); > + struct xrt_event_arg_subdev *esd = (struct xrt_event_arg_subdev *)arg; > + enum xrt_subdev_id id; > + int

[PATCH] MIPS: KASLR: Fix sync_icache() trapped in loop when synci_step is zero

2020-12-01 Thread Jinyang He
Reading synci_step by using rdhwr instruction may return zero if no cache need be synchronized. On the one hand, to make sure all load operation and store operation finished we do __sync() for every platform. On the other hand, some platform need operate synci one time although step is zero.

Re: [PATCH v8 02/16] kbuild: add support for Clang LTO

2020-12-01 Thread Masahiro Yamada
On Wed, Dec 2, 2020 at 6:37 AM 'Sami Tolvanen' via Clang Built Linux wrote: > > This change adds build system support for Clang's Link Time > Optimization (LTO). With -flto, instead of ELF object files, Clang > produces LLVM bitcode, which is compiled into native code at link > time, allowing the

[PATCH v14 4/4] bus: mhi: Add userspace client interface driver

2020-12-01 Thread Hemant Kumar
This MHI client driver allows userspace clients to transfer raw data between MHI device and host using standard file operations. Driver instantiates UCI device object which is associated to device file node. UCI device object instantiates UCI channel object when device file node is opened. UCI

[PATCH v14 3/4] docs: Add documentation for userspace client interface

2020-12-01 Thread Hemant Kumar
MHI userspace client driver is creating device file node for user application to perform file operations. File operations are handled by MHI core driver. Currently QMI MHI channel is supported by this driver. Signed-off-by: Hemant Kumar --- Documentation/mhi/index.rst | 1 +

[PATCH v14 0/4] userspace MHI client interface driver

2020-12-01 Thread Hemant Kumar
This patch series adds support for UCI driver. UCI driver enables userspace clients to communicate to external MHI devices like modem and WLAN. UCI driver probe creates standard character device file nodes for userspace clients to perform open, read, write, poll and release file operations. These

[PATCH v14 1/4] bus: mhi: core: Add helper API to return number of free TREs

2020-12-01 Thread Hemant Kumar
Introduce mhi_get_free_desc_count() API to return number of TREs available to queue buffer. MHI clients can use this API to know before hand if ring is full without calling queue API. Signed-off-by: Hemant Kumar Reviewed-by: Jeffrey Hugo Reviewed-by: Manivannan Sadhasivam ---

[PATCH v14 2/4] bus: mhi: core: Move MHI_MAX_MTU to external header file

2020-12-01 Thread Hemant Kumar
Currently this macro is defined in internal MHI header as a TRE length mask. Moving it to external header allows MHI client drivers to set this upper bound for the transmit buffer size. Signed-off-by: Hemant Kumar Reviewed-by: Jeffrey Hugo Reviewed-by: Manivannan Sadhasivam ---

[tip:x86/misc] BUILD SUCCESS 83321c335dccba262a57378361d63da96b8166d6

2020-12-01 Thread kernel test robot
allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a004-20201201 i386 randconfig-a005-20201201 i386 randconfig

[tip:master] BUILD SUCCESS 4e6680ee5111f78eca62456b82fabe7803c85977

2020-12-01 Thread kernel test robot
allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a004-20201201 i386 randconfig-a005

[tip:x86/platform] BUILD SUCCESS 6043082c96844fa3a047896212e2da0adc1dde81

2020-12-01 Thread kernel test robot
i386 randconfig-a004-20201201 i386 randconfig-a005-20201201 i386 randconfig-a001-20201201 i386 randconfig-a002-20201201 i386 randconfig-a006-20201201 i386 randconfig-a003-20201201 x86_64

Re: [PATCH v13 0/4] userspace MHI client interface driver

2020-12-01 Thread Jakub Kicinski
On Tue, 1 Dec 2020 13:48:36 -0700 Jeffrey Hugo wrote: > On 12/1/2020 1:03 PM, Jakub Kicinski wrote: > > On Tue, 1 Dec 2020 12:40:50 -0700 Jeffrey Hugo wrote: > >> On 12/1/2020 12:29 PM, Jakub Kicinski wrote: > >>> On Fri, 27 Nov 2020 19:26:02 -0800 Hemant Kumar wrote: > This patch

Re: [PATCH drm/hisilicon v2 1/4] drm/hisilicon: Assgin local variable to drm_device

2020-12-01 Thread tiantao (H)
在 2020/12/2 10:06, tiantao (H) 写道: 在 2020/12/1 21:44, Thomas Zimmermann 写道: Hi Am 01.12.20 um 14:05 schrieb tiantao (H): 在 2020/12/1 20:36, Thomas Zimmermann 写道: Hi Am 01.12.20 um 13:26 schrieb tiantao (H): 在 2020/12/1 20:17, Thomas Zimmermann 写道: Hi Am 01.12.20 um 12:55 schrieb

Re: [PATCH 1/8] lazy tlb: introduce exit_lazy_tlb

2020-12-01 Thread Nicholas Piggin
Excerpts from Andy Lutomirski's message of November 29, 2020 10:38 am: > On Sat, Nov 28, 2020 at 8:01 AM Nicholas Piggin wrote: >> >> This is called at points where a lazy mm is switched away or made not >> lazy (by its owner switching back). >> >> Signed-off-by: Nicholas Piggin >> --- >>

Re: [PATCH 2/8] x86: use exit_lazy_tlb rather than membarrier_mm_sync_core_before_usermode

2020-12-01 Thread Nicholas Piggin
Excerpts from Andy Lutomirski's message of November 29, 2020 3:55 am: > On Sat, Nov 28, 2020 at 8:02 AM Nicholas Piggin wrote: >> >> And get rid of the generic sync_core_before_usermode facility. This is >> functionally a no-op in the core scheduler code, but it also catches >> >> This helper is

Re: [PATCH 5/8] lazy tlb: allow lazy tlb mm switching to be configurable

2020-12-01 Thread Nicholas Piggin
Excerpts from Andy Lutomirski's message of November 29, 2020 10:36 am: > On Sat, Nov 28, 2020 at 8:02 AM Nicholas Piggin wrote: >> >> NOMMU systems could easily go without this and save a bit of code >> and the refcount atomics, because their mm switch is a no-op. I >> haven't flipped them over

Re: [PATCH v7 00/17] Add support for Clang LTO

2020-12-01 Thread Masahiro Yamada
On Wed, Dec 2, 2020 at 2:31 AM Kees Cook wrote: > > On Mon, Nov 30, 2020 at 12:01:31PM +, Will Deacon wrote: > > Hi Sami, > > > > On Wed, Nov 18, 2020 at 02:07:14PM -0800, Sami Tolvanen wrote: > > > This patch series adds support for building the kernel with Clang's > > > Link Time

Re: linux-next: Fixes tag needs some work in the mailbox tree

2020-12-01 Thread Steven Rostedt
On Wed, 2 Dec 2020 12:39:39 +1100 Stephen Rothwell wrote: > Hi all, > > In commit > > 983df5f2699f ("samples/ftrace: Mark my_tramp[12]? global") > > Fixes tag > > Fixes: 9d907f1ae80b8 ("ftrace/samples: Add a sample module that implements > modify_ftrace_direct()") > > has these

Re: [PATCH v2 2/2] kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1

2020-12-01 Thread Masahiro Yamada
On Wed, Dec 2, 2020 at 5:56 AM Kees Cook wrote: > > On Tue, Dec 01, 2020 at 10:31:37PM +0900, Masahiro Yamada wrote: > > On Wed, Nov 25, 2020 at 7:22 AM Kees Cook wrote: > > > > > > On Thu, Nov 19, 2020 at 01:13:27PM -0800, Nick Desaulniers wrote: > > > > On Thu, Nov 19, 2020 at 12:57 PM Nathan

[PATCH v2] PCI: Fix Oops caused by uninitialized slot->list in pci_slot_release()

2020-12-01 Thread Jubin Zhong
Once kobject_init_and_add() failed, pci_slot_release() is called to delete slot->list from parent->slots. But slot->list is intialized afterwards, so we ran into the following crash: Unable to handle kernel NULL pointer dereference at virtual address ... CPU: 10 PID: 1 Comm:

Re: scheduling while atomic in z3fold

2020-12-01 Thread Mike Galbraith
On Mon, 2020-11-30 at 17:03 +0100, Sebastian Andrzej Siewior wrote: > On 2020-11-30 16:01:11 [+0100], Mike Galbraith wrote: > > On Mon, 2020-11-30 at 15:52 +0100, Sebastian Andrzej Siewior wrote: > > > How do you test this? I triggered a few oom-killer and I have here git > > > gc running for a

Re: [PATCH 2/2] statx: move STATX_ATTR_DAX attribute handling to filesystems

2020-12-01 Thread Ira Weiny
On Tue, Dec 01, 2020 at 04:26:43PM -0600, Eric Sandeen wrote: > On 12/1/20 4:12 PM, Linus Torvalds wrote: > > On Tue, Dec 1, 2020 at 2:03 PM Eric Sandeen wrote: > >> > >> That's why I was keen to just add DAX unconditionally at this point, and > >> if we want > >> to invent/refine meanings for

Re: mapcount corruption regression

2020-12-01 Thread Dan Williams
On Tue, Dec 1, 2020 at 12:49 PM Matthew Wilcox wrote: > > On Tue, Dec 01, 2020 at 12:42:39PM -0800, Dan Williams wrote: > > On Mon, Nov 30, 2020 at 6:24 PM Matthew Wilcox wrote: > > > > > > On Mon, Nov 30, 2020 at 05:20:25PM -0800, Dan Williams wrote: > > > > Kirill, Willy, compound page

Re: [PATCH] vdpa/mlx5: Use random MAC for the vdpa net instance

2020-12-01 Thread Cindy Lu
On Tue, Dec 1, 2020 at 7:32 PM Michael S. Tsirkin wrote: > > On Tue, Dec 01, 2020 at 05:23:18PM +0800, Cindy Lu wrote: > > On Mon, Nov 30, 2020 at 11:33 PM Michael S. Tsirkin wrote: > > > > > > On Mon, Nov 30, 2020 at 06:41:45PM +0800, Cindy Lu wrote: > > > > On Mon, Nov 30, 2020 at 5:33 PM

Re: [PATCH v9 0/8] Carry forward IMA measurement log on kexec on ARM64

2020-12-01 Thread Lakshmi Ramasubramanian
On 12/1/20 11:15 AM, Mimi Zohar wrote: On Tue, 2020-12-01 at 11:10 -0800, Lakshmi Ramasubramanian wrote: On 12/1/20 3:34 AM, Mimi Zohar wrote: On Sat, 2020-11-21 at 06:38 -0800, Lakshmi Ramasubramanian wrote: On 11/21/20 5:57 AM, Rob Herring wrote: On Fri, Nov 13, 2020 at 11:22:35AM -0800,

Re: [PATCH v2 bpf-next 12/13] bpf: Add tests for new BPF atomic operations

2020-12-01 Thread Andrii Nakryiko
On Fri, Nov 27, 2020 at 10:01 AM Brendan Jackman wrote: > > This relies on the work done by Yonghong Song in > https://reviews.llvm.org/D72184 > > Note the hackery in the Makefile that is necessary to avoid breaking > tests for people who haven't yet got a version of Clang supporting > V4. It

Re: [PATCH Xilinx Alveo 0/8] Xilinx Alveo/XRT patch overview

2020-12-01 Thread Xu Yilun
On Sat, Nov 28, 2020 at 04:00:32PM -0800, Sonal Santan wrote: > Hello, > > This patch series adds management physical function driver for Xilinx Alveo > PCIe > accelerator cards, https://www.xilinx.com/products/boards-and-kits/alveo.html > This driver is part of Xilinx Runtime (XRT) open source

Re: [PATCH net-next 0/4] net: ipa: IPA v4.5 aggregation and Qtime

2020-12-01 Thread Jakub Kicinski
On Mon, 30 Nov 2020 17:37:08 -0600 Alex Elder wrote: > This series updates some IPA register definitions that change in > substantive ways for IPA v4.5. > > One register defines parameters used by an endpoint to aggregate > multiple packets into a buffer. The size and position of most > fields

Re: [PATCH 1/2] uapi: fix statx attribute value overlap for DAX & MOUNT_ROOT

2020-12-01 Thread Ira Weiny
On Tue, Dec 01, 2020 at 10:57:11AM -0600, Eric Sandeen wrote: > STATX_ATTR_MOUNT_ROOT and STATX_ATTR_DAX got merged with the same value, > so one of them needs fixing. Move STATX_ATTR_DAX. > > While we're in here, clarify the value-matching scheme for some of the > attributes, and explain why the

RE: [PATCH] rtc: pcf2127: clear the flag TSF1 before enabling interrupt generation

2020-12-01 Thread Biwen Li (OSS)
> > Hi, > > On 01/12/2020 16:47:46+0800, Biwen Li wrote: > > From: Biwen Li > > > > - clear the flag TSF1 before enabling interrupt generation > > - properly set flag WD_CD for rtc chips(pcf2129, pca2129) > > > > This change has to be a separate patch. Sure, np. Will separate the patch in v2.

Re: [PATCH v6 06/18] virt: acrn: Introduce VM management interfaces

2020-12-01 Thread Shuo A Liu
On Tue 1.Dec'20 at 11:09:47 +0100, Greg Kroah-Hartman wrote: On Tue, Dec 01, 2020 at 05:38:41PM +0800, shuo.a@intel.com wrote: + vm_param->reserved0 = 0; + vm_param->reserved1 = 0; NO! This means that userspace can put whatever crud they want in those fields,

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