Re: [PATCH] ARM: dts: colibri-imx6ull: Change drive strength for usdhc2

2021-03-07 Thread Shawn Guo
On Thu, Mar 04, 2021 at 10:31:39AM +0100, Philippe Schenker wrote: > The current setting reflects about 86 Ohms of source-impedance > on the SDIO signals where the WiFi board is hooked up. PCB traces are > routed with 50 Ohms impedance and there are no serial resistors on > those traces. > > This

Re: [PATCH] x86/tsc: mark tsc reliable for qualified platforms

2021-03-07 Thread Feng Tang
On Wed, Mar 03, 2021 at 10:51:31PM +0800, Thomas Gleixner wrote: > On Tue, Mar 02 2021 at 10:52, Feng Tang wrote: > > There are cases that tsc clocksource are wrongly judged as unstable by > > clocksource watchdogs like hpet, acpi_pm or 'refined-jiffies'. While > > there is hardly a general reliabl

Re: [PATCH V2] arm64: dts: imx8mp: add wdog2/3 nodes

2021-03-07 Thread Shawn Guo
On Sun, Mar 07, 2021 at 06:30:03PM +0800, peng@oss.nxp.com wrote: > From: Peng Fan > > There is wdog[2,3] in i.MX8MP, so add them. > > Signed-off-by: Peng Fan Applied, thanks.

Re: [PATCH 03/17] usb: xhci-mtk: get the microframe boundary for ESIT

2021-03-07 Thread Chunfeng Yun
On Fri, 2021-03-05 at 12:13 +0300, Sergei Shtylyov wrote: > Hello! > > On 05.03.2021 12:02, Chunfeng Yun wrote: > > > Tune the boundary for FS/LS ESIT due to CS: > > For ISOC out-ep, the controller starts transfer data after > > the first SS; for others, the data is already transfered > > Tr

Re: [PATCH 16/17] usb: common: add function to get interval expressed in us unit

2021-03-07 Thread Chunfeng Yun
On Fri, 2021-03-05 at 10:33 -0500, Alan Stern wrote: > On Fri, Mar 05, 2021 at 05:02:54PM +0800, Chunfeng Yun wrote: > > Add a new function to convert bInterval into the time expressed > > in 1us unit. > > > > Signed-off-by: Chunfeng Yun > > --- > > > --- a/drivers/usb/common/common.c > > +++ b/

Re: [PATCH] iommu/dma: Resurrect the "forcedac" option

2021-03-07 Thread Lu Baolu
Hi Robin, On 3/6/21 12:32 AM, Robin Murphy wrote: In converting intel-iommu over to the common IOMMU DMA ops, it quietly lost the functionality of its "forcedac" option. Since this is a handy thing both for testing and for performance optimisation on certain platforms, reimplement it under the c

Re: [PATCH 16/17] usb: common: add function to get interval expressed in us unit

2021-03-07 Thread Chunfeng Yun
On Fri, 2021-03-05 at 16:47 +0100, Greg Kroah-Hartman wrote: > On Fri, Mar 05, 2021 at 10:33:12AM -0500, Alan Stern wrote: > > On Fri, Mar 05, 2021 at 05:02:54PM +0800, Chunfeng Yun wrote: > > > Add a new function to convert bInterval into the time expressed > > > in 1us unit. > > > > > > Signed-o

[PATCH v12 0/2] UIO support for dfl devices

2021-03-07 Thread Xu Yilun
This patchset supports some dfl device drivers written in userspace. There are some Q&A about why UIO driver is needed in v11: >From Greg: Why are you saying that an ethernet driver should be using the UIO interface? And why can't you use the existing UIO drivers that bind to memory regi

[PATCH v12 1/2] uio: uio_dfl: add userspace i/o driver for DFL bus

2021-03-07 Thread Xu Yilun
This patch supports the DFL drivers be written in userspace. This is realized by exposing the userspace I/O device interfaces. The driver now only binds the ether group feature, which has no irq. So the irq support is not implemented yet. Signed-off-by: Xu Yilun Reviewed-by: Tom Rix --- v9: swi

[PATCH v12 2/2] Documentation: fpga: dfl: Add description for DFL UIO support

2021-03-07 Thread Xu Yilun
This patch adds description for UIO support for dfl devices on DFL bus. Signed-off-by: Xu Yilun Reviewed-by: Tom Rix Reviewed-by: Wu Hao --- v2: no doc in v1, add it for v2. v3: some documentation fixes. v4: documentation change since the driver matching is changed. v5: no change. v6: improve t

Imortant Issue REF: 50163

2021-03-07 Thread i...@alicewalton.com
-- I'm Mrs Alice Walton, I have an important issue to discuss with you, for details. Revert to My Private email: alicewalton...@outlook.co.th

Re: [PATCH 2/5] iommu/vt-d: Remove WO permissions on second-level paging entries

2021-03-07 Thread Lu Baolu
Hi Joerg, On 3/4/21 8:26 PM, Joerg Roedel wrote: On Thu, Feb 25, 2021 at 02:26:51PM +0800, Lu Baolu wrote: When the first level page table is used for IOVA translation, it only supports Read-Only and Read-Write permissions. The Write-Only permission is not supported as the PRESENT bit (implying

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

2021-03-07 Thread Stephen Rothwell
Hi all, In commit 47c45c39d1a4 ("drm/amdkfd: Use a new capability bit for SRAM ECC") Fixes tag Fixes: 7ec177bdcfc1 ("drm/amdkfd: fix set kfd node ras properties value") has these problem(s): - Target SHA1 does not exist Maybe you meant: Fixes: 5436ab94cd94 ("drm/amdkfd: fix set kfd no

Re: [PATCH v3 0/4] Some improvement for Intel MAX 10 MFD drivers

2021-03-07 Thread Xu Yilun
Hi Lee: Could you please help on review this patchset? They are some improvements for intel-m10-bmc MFD driver. Thanks, Yilun On Mon, Mar 01, 2021 at 01:59:41PM +0800, Xu Yilun wrote: > This patchset is some improvements for intel-m10-bmc and its subdevs. > > Main changes from v1: > - Add a pat

Re: [PATCH v2,1/3] dt-bindings: media: mtk-vcodec: Separating mtk vcodec encoder node

2021-03-07 Thread Irui Wang
On Sat, 2021-03-06 at 13:46 -0700, Rob Herring wrote: > On Thu, Feb 25, 2021 at 03:36:01PM +0800, Irui Wang wrote: > > Updates binding document since the avc and vp8 hardware encoder in > > MT8173 are now separated. Separate "mediatek,mt8173-vcodec-enc" to > > "mediatek,mt8173-vcodec-enc-vp8" and "

Re: [PATCH 2/3] dt-bindings: phy: brcm,ns-usb2-phy: bind single CRU reg

2021-03-07 Thread Rob Herring
On Fri, Feb 26, 2021 at 12:45:00PM +0100, Rafał Miłecki wrote: > From: Rafał Miłecki > > The old binding was using whole DMU space. It was an overkill. DMU is a > big block which contains e.g. CRU which contains e.g. PLLs, PHY, pinctrl > and thermal blocks. > > Rework the binding to directly use

linux-next: Fixes tags need some work in the tip tree

2021-03-07 Thread Stephen Rothwell
Hi all, In commit eca8f0c80a00 ("hrtimer: Update softirq_expires_next correctly after __hrtimer_get_next_event()") Fixes tag Fixes: da70160462e ("hrtimer: Implement support for softirq based hrtimers") has these problem(s): - Target SHA1 does not exist Maybe you meant Fixes: 5da70160

[PATCH v2] tracing/tools: Remove unneeded semicolon

2021-03-07 Thread Xu Wang
fix semicolon.cocci warning: tools/tracing/latency/latency-collector.c:1021:2-3: Unneeded semicolon Signed-off-by: Xu Wang --- Changes since v2: - Fix another instance of superfluous semicolon. --- tools/tracing/latency/latency-collector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-

Re: [PATCH] x86/perf: Fix guest_get_msrs static call if there is no PMU

2021-03-07 Thread Xu, Like
On 2021/3/6 6:33, Sean Christopherson wrote: Handle a NULL x86_pmu.guest_get_msrs at invocation instead of patching in perf_guest_get_msrs_nop() during setup. If there is no PMU, setup "If there is no PMU" ... How to set up this kind of environment, and what changes are needed in .config or b

Re: Errant readings on LM81 with T2080 SoC

2021-03-07 Thread Chris Packham
On 8/03/21 1:31 pm, Guenter Roeck wrote: > On 3/7/21 2:52 PM, Chris Packham wrote: >> Hi, >> >> I've got a system using a PowerPC T2080 SoC and among other things has >> an LM81 hwmon chip. >> >> Under a high CPU load we see errant readings from the LM81 as well as >> actual failures. It's the err

[syzbot] WARNING: ODEBUG bug in net_dm_cmd_trace

2021-03-07 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d310ec03 Merge tag 'perf-core-2021-02-17' of git://git.ker.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=108adb32d0 kernel config: https://syzkaller.appspot.com/x/.config?x=2b8307379601586a das

Re: [PATCH v2] erofs: fix bio->bi_max_vecs behavior change

2021-03-07 Thread Gao Xiang
Hi Chao, On Mon, Mar 08, 2021 at 09:29:30AM +0800, Chao Yu wrote: > On 2021/3/6 12:04, Gao Xiang wrote: > > From: Gao Xiang > > > > Martin reported an issue that directory read could be hung on the > > latest -rc kernel with some certain image. The root cause is that > > commit baa2c7c97153 ("bl

Re: [PATCH 3/3] vDPA/ifcvf: bump version string to 1.0

2021-03-07 Thread Zhu, Lingshan
Hi Leon, Thanks for point this out, will send a V2 patchset delete it. Thanks Zhu Lingshan On 3/7/2021 5:01 PM, Leon Romanovsky wrote: On Fri, Mar 05, 2021 at 10:20:00PM +0800, Zhu Lingshan wrote: This commit bumps ifcvf driver version string to 1.0 Signed-off-by: Zhu Lingshan --- drivers

RE: [PATCH] irqchip/irq-mst: Support polarity configuration

2021-03-07 Thread 蔡沛剛
> Hi Mark-PK, > > I'm trying to understand the logic behind the changes. > It seems like the polarity of interrupts is always the same between the MStar > intc and the GIC? Low level interrupts are handled in the mstar intc and > become high level interrupts to the GIC? > I think for the Mstar

[PATCH v2] ASoC: wm8962: Relax bit clock divider searching

2021-03-07 Thread Shengjiu Wang
With S20_3LE format case, the sysclk = rate * 384, the bclk = rate * 20 * 2, there is no proper bclk divider for 384 / 40, because current condition needs exact match. So driver fails to configure the clocking: wm8962 3-001a: Unsupported BCLK ratio 9 Fix this by relaxing bitclk divider searching,

Re: [PATCH 1/3] vDPA/ifcvf: get_vendor_id returns a device specific vendor id

2021-03-07 Thread Jason Wang
On 2021/3/5 10:19 下午, Zhu Lingshan wrote: In this commit, ifcvf_get_vendor_id() will return a device specific vendor id of the probed pci device than a hard code. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

Re: [PATCH -tip 0/5] kprobes: Fix stacktrace in kretprobes

2021-03-07 Thread Masami Hiramatsu
On Sun, 7 Mar 2021 13:23:33 -0800 Daniel Xu wrote: > > kretprobe replaces the real return address with kretprobe_trampoline > > and kretprobe_trampoline *calls* trampoline_handler (this part depends > > on architecture implementation). > > Thus, if kretprobe_trampoline has no stack frame informat

[PATCH v2 03/18] usb: xhci-mtk: get the microframe boundary for ESIT

2021-03-07 Thread Chunfeng Yun
Tune the boundary for FS/LS ESIT due to CS: For ISOC out-ep, the controller starts transfer data after the first SS; for others, the data is already transferred before the last CS. Signed-off-by: Chunfeng Yun --- v2: fix typo and use ++/-- suggested by Sergei --- drivers/usb/host/xhci-mtk-sch.c

[PATCH v2 05/18] usb: xhci-mtk: use @sch_tt to check whether need do TT schedule

2021-03-07 Thread Chunfeng Yun
It's clearer to use @sch_tt to check whether need do TT schedule, no function is changed. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk-sch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci-mtk-sch.c b/drivers/usb/host/

Re: [PATCH v2] erofs: fix bio->bi_max_vecs behavior change

2021-03-07 Thread Chao Yu
On 2021/3/8 10:36, Gao Xiang wrote: Hi Chao, On Mon, Mar 08, 2021 at 09:29:30AM +0800, Chao Yu wrote: On 2021/3/6 12:04, Gao Xiang wrote: From: Gao Xiang Martin reported an issue that directory read could be hung on the latest -rc kernel with some certain image. The root cause is that commit

[PATCH v2 04/18] usb: xhci-mtk: add only one extra CS for FS/LS INTR

2021-03-07 Thread Chunfeng Yun
In USB2 Spec: "11.18.5 TT Response Generation In general, there will be two (or more) complete-split transactions scheduled for a periodic endpoint. However, for interrupt endpoints, the maximum size of the full-/low-speed transaction guarantees that it can never require more than two complete-spli

[PATCH v2 01/18] usb: xhci-mtk: remove or operator for setting schedule parameters

2021-03-07 Thread Chunfeng Yun
Side effect may happen if use or operator to set schedule parameters when the parameters are already set before. Set them directly due to other bits are reserved. Fixes: 54f6a8af3722 ("usb: xhci-mtk: skip dropping bandwidth of unchecked endpoints") Cc: stable Signed-off-by: Chunfeng Yun --- v2:

[PATCH v2 08/18] usb: xhci-mtk: remove unnecessary members of mu3h_sch_tt struct

2021-03-07 Thread Chunfeng Yun
The members @usb_tt and @tt_port in mu3h_sch_tt struct are not used after initialization, so can be removed Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk-sch.c | 7 +-- drivers/usb/host/xhci-mtk.h | 4 2 files changed, 1 insertion(+), 10 deletions(-)

[PATCH v2 06/18] usb: xhci-mtk: add a function to (un)load bandwidth info

2021-03-07 Thread Chunfeng Yun
Extract a function to load/unload bandwidth info, and remove a dummy check of TT offset. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk-sch.c | 37 ++--- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/drivers/usb/host/xhc

[PATCH v2 12/18] usb: xhci-mtk: rebuild the way to get bandwidth domain

2021-03-07 Thread Chunfeng Yun
Rebuild the function get_bw_index(), get the bandwidth domain directly instead its index of domain array. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk-sch.c | 29 +++-- 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/drivers

[PATCH v2 15/18] usb: xhci-mtk: support to build xhci-mtk-hcd.ko

2021-03-07 Thread Chunfeng Yun
Currently xhci-hcd.ko building depends on USB_XHCI_MTK, this is not flexible for some cases. For example: USB_XHCI_HCD is y, and USB_XHCI_MTK is m, then we can't implement extended functions if only update xhci-mtk.ko This patch is used to remove the dependence. Signed-off-by: Chunfeng Yun --- v2

[PATCH v2 13/18] usb: xhci-mtk: add some schedule error number

2021-03-07 Thread Chunfeng Yun
This is used to provide more information about which case causes bandwidth schedule failure. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk-sch.c | 44 ++--- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/drivers/usb/host/

[PATCH v2 02/18] usb: xhci-mtk: improve bandwidth scheduling with TT

2021-03-07 Thread Chunfeng Yun
When the USB headset is plug into an external hub, sometimes can't set config due to not enough bandwidth, so need improve LS/FS INT/ISOC bandwidth scheduling with TT. Fixes: 54f6a8af3722 ("usb: xhci-mtk: skip dropping bandwidth of unchecked endpoints") Cc: stable Signed-off-by: Yaqii Wu Signed

[PATCH v2 07/18] usb: xhci-mtk: add a function to get bandwidth boundary

2021-03-07 Thread Chunfeng Yun
This is used to simplify unit test. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk-sch.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/usb/host/xhci-mtk-sch.c b/drivers/usb/host/xhci-mtk-sch.c index 9a9685f7

[PATCH v2 18/18] usb: common: move function's kerneldoc next to its definition

2021-03-07 Thread Chunfeng Yun
Following a general rule, add the kerneldoc for a function next to it's definition, but not next to its declaration in a header file. Suggested-by: Alan Stern Suggested-by: Greg Kroah-Hartman Signed-off-by: Chunfeng Yun --- v2: new patch --- drivers/usb/common/common.c | 35 +++

[PATCH v2 16/18] usb: common: add function to get interval expressed in us unit

2021-03-07 Thread Chunfeng Yun
Add a new function to convert bInterval into the time expressed in 1us unit. Signed-off-by: Chunfeng Yun --- v2: move kerneldoc next to function's definition suggested by Alan --- drivers/usb/common/common.c | 41 + drivers/usb/core/devices.c | 21 ---

[PATCH v2 11/18] usb: xhci-mtk: use @tt_info to check the FS/LS device is under a HS hub

2021-03-07 Thread Chunfeng Yun
If the LS/FS device is connected to an external HS hub, the member @tt_info in xhci_virt_device struct in not NULL, use it to check whether a LS/FS device is under an exernal HS hub, then no need get the slot context of this device. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/

[PATCH v2 14/18] usb: xhci-mtk: remove declaration of xhci_mtk_setup()

2021-03-07 Thread Chunfeng Yun
Move xhci_driver_overrides struct variable after definition of xhci_mtk_setup(), then we can remove it's declaration. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/usb/h

[PATCH v2 09/18] usb: xhci-mtk: use clear type instead of void

2021-03-07 Thread Chunfeng Yun
Use struct usb_host_endpoint instead of void to declare the member @ep of mu3h_sch_ep_info struct. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-mtk.h b/drivers/usb/host/xhc

[PATCH v2 10/18] usb: xhci-mtk: add a member @speed in mu3h_sch_ep_info struct

2021-03-07 Thread Chunfeng Yun
This is used to drop parameter @udev for some functions, meanwhile remove some unused @udev parameter. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk-sch.c | 37 - drivers/usb/host/xhci-mtk.h | 1 + 2 files changed, 19 insertions

[PATCH v2 17/18] usb: xhci-mtk: print debug info of endpoint interval

2021-03-07 Thread Chunfeng Yun
Print bInterval and convert it into the time expressed in us or ms unit, this is the key info when allocate bandwidth failed. Signed-off-by: Chunfeng Yun --- v2: no changes --- drivers/usb/host/xhci-mtk-sch.c | 37 ++--- 1 file changed, 29 insertions(+), 8 deletions(-

Re: [PATCH 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA

2021-03-07 Thread Jason Wang
On 2021/3/5 10:19 下午, Zhu Lingshan wrote: This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-net for vDPA. C5000X-PL vendor id 0x1AF4, device id 0x1000, subvendor id 0x8086, sub device id 0x0001 To distinguish C5000X-PL from other ifcvf driven devices, the original ifcvf device is named

Re: [PATCH] media: platform: sunxi: sun6i-csi: fix error return code of sun6i_video_start_streaming()

2021-03-07 Thread Jia-Ju Bai
On 2021/3/7 20:47, Chen-Yu Tsai wrote: On Sat, Mar 6, 2021 at 10:15 PM Jia-Ju Bai wrote: When sun6i_video_remote_subdev() returns NULL to subdev, no error return code of sun6i_video_start_streaming() is assigned. To fix this bug, ret is assigned with -EINVAL in this case. Reported-by: TOTE

Re: [PATCH v3 2/5] phy: Add LVDS configuration options

2021-03-07 Thread Liu Ying
On Fri, 2021-03-05 at 16:03 +0100, Robert Foss wrote: > Hey Liu, > > This patch seems to be included in both this series and the "Add some > DRM bridge drivers support for i.MX8qm/qxp SoCs" series. Instead of > having the two series have a conflict I would suggest either merging > them (if that ma

Re: [PATCH v3 0/5] phy: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support

2021-03-07 Thread Liu Ying
On Fri, 2021-03-05 at 16:22 +0100, Robert Foss wrote: > Hey Liu, > > Looking at this series[1], all but patch#2 has been reviewed, and #2 > looks good to me. So I think this series is ready to have v4 re-spun > and and all of the r-bs from v3 added to the relevant patches. Will respin this series

[PATCH] drm/amd/display: Remove unnecessary conversion to bool

2021-03-07 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c:561:34-39: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH v2] erofs: fix bio->bi_max_vecs behavior change

2021-03-07 Thread Gao Xiang
On Mon, Mar 08, 2021 at 10:52:19AM +0800, Chao Yu wrote: > On 2021/3/8 10:36, Gao Xiang wrote: > > Hi Chao, > > > > On Mon, Mar 08, 2021 at 09:29:30AM +0800, Chao Yu wrote: > > > On 2021/3/6 12:04, Gao Xiang wrote: > > > > From: Gao Xiang > > > > > > > > Martin reported an issue that directory r

Re: [PATCH] irqchip/irq-mst: Support polarity configuration

2021-03-07 Thread Mark-PK Tsai
From: Marc Zyngier > > > > Support irq polarity configuration and save and restore the config > > when system suspend and resume. > > > > Signed-off-by: Mark-PK Tsai > > --- > > drivers/irqchip/irq-mst-intc.c | 87 -- > > 1 file changed, 84 insertions(+), 3 del

[PATCH] net: bonding: fix error return code of bond_neigh_init()

2021-03-07 Thread Jia-Ju Bai
When slave is NULL or slave_ops->ndo_neigh_setup is NULL, no error return code of bond_neigh_init() is assigned. To fix this bug, ret is assigned with -EINVAL in these cases. Fixes: 9e99bfefdbce ("bonding: fix bond_neigh_init()") Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers/net

Re: [PATCH v2] perf pmu: Validate raw event with sysfs exported format bits

2021-03-07 Thread Jin, Yao
Hi Jiri, On 3/7/2021 3:12 AM, Jiri Olsa wrote: actualy we do have bitmap_scnprintf, which is already doing the printing in a nice way.. we could use it like below, only compile tested jirka --- diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 31e975b75766..37ca5eee2667 100644

[PATCH] drm/amdgpu: Remove unnecessary conversion to bool

2021-03-07 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c:1600:40-45: WARNING: conversion to bool not needed here. ./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c:1598:40-45: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong ---

[PATCH v3] perf pmu: Validate raw event with sysfs exported format bits

2021-03-07 Thread Jin Yao
A raw PMU event (eventsel+umask) in the form of rNNN is supported by perf but lacks of checking for the validity of raw encoding. For example, bit 16 and bit 17 are not valid on KBL but perf doesn't report warning when encoding with these bits. Before: # ./perf stat -e cpu/r031234/ -a -- sleep

Re: [PATCH] Input: elan_i2c - Reduce the resume time for new dev ices

2021-03-07 Thread 'Dmitry Torokhov'
Hi Jingle, On Fri, Mar 05, 2021 at 09:50:35AM +0800, jingle wrote: > HI Dmitry: > > 1. You mean to let all devices ignore skipping reset/sleep part of device > initialization? > 2. The test team found that some old firmware will have errors (invalid > report etc...), so ELAN can only ensure that

Re: [RFC PATCH 7/8] dt-bindings: Add bindings documentation for RISC-V idle states

2021-03-07 Thread Anup Patel
On Sat, Mar 6, 2021 at 4:52 AM Rob Herring wrote: > > On Sun, Feb 21, 2021 at 03:07:57PM +0530, Anup Patel wrote: > > The RISC-V CPU idle states will be described in DT under the > > /cpus/riscv-idle-states DT node. This patch adds the bindings > > documentation for riscv-idle-states DT nodes and

Re: [PATCH v3 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-07 Thread Zi Yan
On 4 Mar 2021, at 4:59, Oscar Salvador wrote: > Physical memory hotadd has to allocate a memmap (struct page array) for > the newly added memory section. Currently, alloc_pages_node() is used > for those allocations. > > This has some disadvantages: > a) an existing memory is consumed for that pu

Re: [PATCH v7 2/4] perf tools: Add lexical definition of event name

2021-03-07 Thread nakamura.s...@fujitsu.com
Hi, jirka > > > > From: Shunsuke Nakamura > > > > > > > > Add the lexical definition of event name so that the numbers are > > > > recognizable. > > > > > > > > > > Sorry for the hassle, but it's not clear that we got a definitive > > > conclusion on this patch from v6 series: > > > > > > h

Re: [PATCH stable v5.10 0/7] arm64: Default to 32-bit wide ZONE_DMA

2021-03-07 Thread Jing Xiangfeng
On 2021/3/7 23:24, Greg KH wrote: On Thu, Mar 04, 2021 at 04:09:28PM +0100, Nicolas Saenz Julienne wrote: On Thu, 2021-03-04 at 15:17 +0100, Greg KH wrote: On Thu, Mar 04, 2021 at 03:05:32PM +0100, Nicolas Saenz Julienne wrote: Hi Greg. On Thu, 2021-03-04 at 14:46 +0100, Greg KH wrote: On

[PATCH 0/3] fix a couple of atm->phy_data related issues

2021-03-07 Thread Tong Zhang
there are two drivers(zatm and idt77252) using PRIV() (i.e. atm->phy_data) to store private data, but the driver happens to populate wrong pointers: atm->dev_data. which actually cause null-ptr-dereference in following PRIV(dev). This patch series attemps to fix those two issues along with a typo

[PATCH] scsi: aha1542: remove unneeded semicolon

2021-03-07 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/scsi/aha1542.c:693:2-3: Unneeded semicolon. ./drivers/scsi/aha1542.c:674:2-3: Unneeded semicolon. ./drivers/scsi/aha1542.c:656:2-3: Unneeded semicolon. ./drivers/scsi/aha1542.c:621:2-3: Unneeded semicolon. Reported-by: Abaci Robot Signed-off-by: J

[PATCH 3/3] atm: idt77252: fix null-ptr-dereference

2021-03-07 Thread Tong Zhang
this one is similar to the phy_data allocation fix in uPD98402, the driver allocate the idt77105_priv and store to dev_data but later dereference using dev->dev_data, which will cause null-ptr-dereference. fix this issue by changing dev_data to phy_data so that PRIV(dev) can work correctly. Signe

[PATCH 2/3] atm: uPD98402: fix incorrect allocation

2021-03-07 Thread Tong Zhang
dev->dev_data is set in zatm.c, calling zatm_start() will overwrite this dev->dev_data in uPD98402_start() and a subsequent PRIV(dev)->lock (i.e dev->phy_data->lock) will result in a null-ptr-dereference. I believe this is a typo and what it actually want to do is to allocate phy_data instead of d

[PATCH 1/3] atm: fix a typo in the struct description

2021-03-07 Thread Tong Zhang
phy_data means private PHY data not date Signed-off-by: Tong Zhang --- include/linux/atmdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/atmdev.h b/include/linux/atmdev.h index 60cd25c0461b..9b02961d65ee 100644 --- a/include/linux/atmdev.h +++ b/include/lin

[RFC] mm: Enable generic pfn_valid() to handle early sections with memmap holes

2021-03-07 Thread Anshuman Khandual
Platforms like arm and arm64 have redefined pfn_valid() because their early memory sections might have contained memmap holes caused by memblock areas tagged with MEMBLOCK_NOMAP, which should be skipped while validating a pfn for struct page backing. This scenario could be captured with a new optio

[PATCH] scsi: qedi: fix error return code of qedi_alloc_global_queues()

2021-03-07 Thread Jia-Ju Bai
When kzalloc() returns NULL to qedi->global_queues[i], no error return code of qedi_alloc_global_queues() is assigned. To fix this bug, status is assigned with -ENOMEM in this case. Fixes: ace7f46ba5fd ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver framework.") Reported-by: TOTE Robot Si

[PATCH] scsi: iscsi: Switch to using the new API kobj_to_dev()

2021-03-07 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/scsi/scsi_transport_iscsi.c:930:60-61: WARNING opportunity for kobj_to_dev(). Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/scsi_transport_iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH] mtd: maps: fix error return code of physmap_flash_remove()

2021-03-07 Thread Jia-Ju Bai
When platform_get_drvdata() returns NULL to info, no error return code of physmap_flash_remove() is assigned. To fix this bug, err is assigned with -EINVAL in this case Fixes: 73566edf9b91 ("[MTD] Convert physmap to platform driver") Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers

Re: [PATCH v3 01/11] pagemap: Introduce ->memory_failure()

2021-03-07 Thread ruansy.f...@fujitsu.com
> On Mon, Feb 8, 2021 at 2:55 AM Shiyang Ruan > wrote: > > > > When memory-failure occurs, we call this function which is implemented > > by each kind of devices. For the fsdax case, pmem device driver > > implements it. Pmem device driver will find out the block device where > > the error page

[PATCH] scsi: mpt3sas: fix error return code of mpt3sas_base_attach()

2021-03-07 Thread Jia-Ju Bai
When kzalloc() returns NULL, no error return code of mpt3sas_base_attach() is assigned. To fix this bug, r is assigned with -ENOMEM in this case. Fixes: c696f7b83ede ("scsi: mpt3sas: Implement device_remove_in_progress check in IOCTL path") Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai ---

[PATCH 2/6] usbip: fix vhci_hcd to check for stream socket

2021-03-07 Thread Shuah Khan
Fix attach_store() to validate the passed in file descriptor is a stream socket. If the file descriptor passed was a SOCK_DGRAM socket, sock_recvmsg() can't detect end of stream. Cc: sta...@vger.kernel.org Suggested-by: Tetsuo Handa Signed-off-by: Shuah Khan --- drivers/usb/usbip/vhci_sysfs.c |

[PATCH 0/6] usbip fixes to crashes found by syzbot

2021-03-07 Thread Shuah Khan
This patch series fixes the following problems founds in syzbot fuzzing. 1. The first 3 patches fix usbip-host, vhci_hcd, vudc sub-drivers to validate the passed in file descriptor is a stream socket. If the file descriptor passed was a SOCK_DGRAM socket, sock_recvmsg() can't detect end o

[PATCH 3/6] usbip: fix vudc to check for stream socket

2021-03-07 Thread Shuah Khan
Fix usbip_sockfd_store() to validate the passed in file descriptor is a stream socket. If the file descriptor passed was a SOCK_DGRAM socket, sock_recvmsg() can't detect end of stream. Cc: sta...@vger.kernel.org Suggested-by: Tetsuo Handa Signed-off-by: Shuah Khan --- drivers/usb/usbip/vudc_sys

[PATCH 4/6] usbip: fix stub_dev usbip_sockfd_store() races leading to gpf

2021-03-07 Thread Shuah Khan
usbip_sockfd_store() is invoked when user requests attach (import) detach (unimport) usb device from usbip host. vhci_hcd sends import request and usbip_sockfd_store() exports the device if it is free for export. Export and unexport are governed by local state and shared state - Shared state (usbi

[PATCH 6/6] usbip: fix vudc usbip_sockfd_store races leading to gpf

2021-03-07 Thread Shuah Khan
usbip_sockfd_store() is invoked when user requests attach (import) detach (unimport) usb gadget device from usbip host. vhci_hcd sends import request and usbip_sockfd_store() exports the device if it is free for export. Export and unexport are governed by local state and shared state - Shared stat

[PATCH 5/6] usbip: fix vhci_hcd attach_store() races leading to gpf

2021-03-07 Thread Shuah Khan
attach_store() is invoked when user requests import (attach) a device from usbip host. Attach and detach are governed by local state and shared state - Shared state (usbip device status) - Device status is used to manage the attach and detach operations on import-able devices. - Local state (tcp

[PATCH 1/6] usbip: fix stub_dev to check for stream socket

2021-03-07 Thread Shuah Khan
Fix usbip_sockfd_store() to validate the passed in file descriptor is a stream socket. If the file descriptor passed was a SOCK_DGRAM socket, sock_recvmsg() can't detect end of stream. Cc: sta...@vger.kernel.org Suggested-by: Tetsuo Handa Signed-off-by: Shuah Khan --- drivers/usb/usbip/stub_dev

Re: [RFC PATCH 10/10] vhost/vdpa: return configuration bytes read and written to user space

2021-03-07 Thread Jason Wang
On 2021/3/5 4:37 下午, Stefano Garzarella wrote: On Thu, Mar 04, 2021 at 04:31:22PM +0800, Jason Wang wrote: On 2021/3/2 10:06 下午, Stefano Garzarella wrote: On Tue, Mar 02, 2021 at 12:05:35PM +0800, Jason Wang wrote: On 2021/2/16 5:44 下午, Stefano Garzarella wrote: vdpa_get_config() and vdpa

Re: [PATCH v4] RISC-V: enable XIP

2021-03-07 Thread kernel test robot
e' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Vitaly-Wool/RISC-V-enable-XIP/20210307-103904 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 280d542f6ffac0e6d65dc267f92191d509b13b64 config: riscv-al

Re: [PATCH 2/2] mmc: jz4740: Add support for monitoring PLL clock rate changes

2021-03-07 Thread kernel test robot
Hi Paul, I love your patch! Yet something to improve: [auto build test ERROR on clk/clk-next] [also build test ERROR on linus/master v5.12-rc2] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://gi

[PATCH v4 0/5] phy: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support

2021-03-07 Thread Liu Ying
Hi, This series adds i.MX8qxp LVDS PHY mode support for the Mixel PHY in the Freescale i.MX8qxp SoC. The Mixel PHY is MIPI DPHY + LVDS PHY combo, which can works in either MIPI DPHY mode or LVDS PHY mode. The PHY mode is controlled by i.MX8qxp SCU firmware. The PHY driver would call a SCU funct

[PATCH v4 4/5] dt-bindings: phy: mixel: mipi-dsi-phy: Add Mixel combo PHY support for i.MX8qxp

2021-03-07 Thread Liu Ying
Add support for Mixel MIPI DPHY + LVDS PHY combo IP as found on Freescale i.MX8qxp SoC. Cc: Guido Günther Cc: Kishon Vijay Abraham I Cc: Vinod Koul Cc: Rob Herring Cc: NXP Linux Team Reviewed-by: Rob Herring Reviewed-by: Guido Günther Signed-off-by: Liu Ying --- v3->v4: * Add Rob's and Gui

[PATCH v4 1/5] drm/bridge: nwl-dsi: Set PHY mode in nwl_dsi_enable()

2021-03-07 Thread Liu Ying
The Northwest Logic MIPI DSI host controller embedded in i.MX8qxp works with a Mixel MIPI DPHY + LVDS PHY combo to support either a MIPI DSI display or a LVDS display. So, this patch calls phy_set_mode() from nwl_dsi_enable() to set PHY mode to MIPI DPHY explicitly. Cc: Guido Günther Cc: Robert

[PATCH v4 3/5] dt-bindings: phy: Convert mixel,mipi-dsi-phy to json-schema

2021-03-07 Thread Liu Ying
This patch converts the mixel,mipi-dsi-phy binding to DT schema format using json-schema. Comparing to the plain text version, the new binding adds the 'assigned-clocks', 'assigned-clock-parents' and 'assigned-clock-rates' properites, otherwise 'make dtbs_check' would complain that there are mis-m

[PATCH v4 5/5] phy: freescale: phy-fsl-imx8-mipi-dphy: Add i.MX8qxp LVDS PHY mode support

2021-03-07 Thread Liu Ying
i.MX8qxp SoC embeds a Mixel MIPI DPHY + LVDS PHY combo which supports either a MIPI DSI display or a LVDS display. The PHY mode is controlled by SCU firmware and the driver would call a SCU firmware function to configure the PHY mode. The single LVDS PHY has 4 data lanes to support a LVDS display

[PATCH v4 2/5] phy: Add LVDS configuration options

2021-03-07 Thread Liu Ying
This patch allows LVDS PHYs to be configured through the generic functions and through a custom structure added to the generic union. The parameters added here are based on common LVDS PHY implementation practices. The set of parameters should cover all potential users. Cc: Kishon Vijay Abraham

Re: [PATCH] scsi: iscsi: Switch to using the new API kobj_to_dev()

2021-03-07 Thread James Bottomley
On Mon, 2021-03-08 at 11:34 +0800, Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./drivers/scsi/scsi_transport_iscsi.c:930:60-61: WARNING opportunity > for kobj_to_dev(). I have to ask, what is the point of this? container_of is usually pretty safe ... as in it will detect wh

Re: [PATCH v6 1/1] iio/scmi: Adding support for IIO SCMI Based Sensors

2021-03-07 Thread Sudeep Holla
Hi Jonathan, On Tue, Feb 23, 2021 at 10:30:37AM -0800, Jyoti Bhayana wrote: > Hi Jonathan, > > Thanks for the detailed and careful review of this patch. Good to hear > that v7 is not required. Please find below answers to your > questions. Looking forward to seeing this patch merged in the next

Re: [PATCH v4] powerpc/uprobes: Validation for prefixed instruction

2021-03-07 Thread Sandipan Das
On 05/03/21 5:24 pm, Ravi Bangoria wrote: > As per ISA 3.1, prefixed instruction should not cross 64-byte > boundary. So don't allow Uprobe on such prefixed instruction. > > There are two ways probed instruction is changed in mapped pages. > First, when Uprobe is activated, it searches for all t

[PATCH v16 0/2] add power control in i2c

2021-03-07 Thread Hsin-Yi Wang
Although in the most platforms, the power of eeprom and i2c are alway on, some platforms disable the eeprom and i2c power in order to meet low power request. This patch add the pm_runtime ops to control power to support all platforms. Changes since v15: - Squash the fix[1] for v15. [1] https://

[PATCH v16 1/2] dt-binding: i2c: add bus-supply property

2021-03-07 Thread Hsin-Yi Wang
From: Bibby Hsieh In some platforms, they disable the power-supply of i2c due to power consumption reduction. This patch add bus-supply property. Signed-off-by: Bibby Hsieh Acked-by: Rob Herring Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/i2c/i2c.txt | 3 +++ 1 file cha

[PATCH v16 2/2] i2c: core: support bus regulator controlling in adapter

2021-03-07 Thread Hsin-Yi Wang
From: Bibby Hsieh Although in the most platforms, the bus power of i2c are alway on, some platforms disable the i2c bus power in order to meet low power request. We get and enable bulk regulator in i2c adapter device. Signed-off-by: Bibby Hsieh Signed-off-by: Marek Szyprowski Signed-off-by: H

Re: [PATCH v1 3/5] dt-bindings: arm: Add cpu-idle-states to Tegra194 CPU nodes

2021-03-07 Thread Sudeep Holla
On Wed, Mar 03, 2021 at 10:08:10PM -0800, Sowjanya Komatineni wrote: > This patch adds cpu-idle-states and corresponding state nodes to > Tegra194 CPU in dt-binding document > I see that this platform has PSCI support. Can you care to explain why you need additional DT bindings and driver for PSCI

Re: Errant readings on LM81 with T2080 SoC

2021-03-07 Thread Chris Packham
On 8/03/21 3:27 pm, Chris Packham wrote: > > On 8/03/21 1:31 pm, Guenter Roeck wrote: >> On 3/7/21 2:52 PM, Chris Packham wrote: >>> Hi, >>> >>> I've got a system using a PowerPC T2080 SoC and among other things has >>> an LM81 hwmon chip. >>> >>> Under a high CPU load we see errant readings from

Re: [PATCH v6 01/37] firmware: arm_scmi: review protocol registration interface

2021-03-07 Thread Sudeep Holla
On Tue, Feb 02, 2021 at 10:15:19PM +, Cristian Marussi wrote: > Extend common protocol registration routines and provide some new generic > protocols get/put helpers that can track protocols usage and automatically > perform the proper initialization and de-initialization on demand when > requi

Re: [PATCH] i2c: core: support bus regulator controlling in adapter

2021-03-07 Thread Hsin-Yi Wang
On Fri, Mar 5, 2021 at 6:20 PM Hsin-Yi Wang wrote: > > From: Bibby Hsieh > > Although in the most platforms, the bus power of i2c > are alway on, some platforms disable the i2c bus power > in order to meet low power request. > > We get and enable bulk regulator in i2c adapter device. > > Signed-o

Re: [PATCH v4 12/13] phy: cadence: phy-cadence-sierra: Model PLL_CMNLC and PLL_CMNLC1 as clocks (mux clocks)

2021-03-07 Thread Kishon Vijay Abraham I
Hi Swapnil, On 06/03/21 1:17 am, Swapnil Kashinath Jakhade wrote: > Hi Kishon, > >> -Original Message- >> From: Kishon Vijay Abraham I >> Sent: Thursday, March 4, 2021 10:11 AM >> To: Kishon Vijay Abraham I ; Vinod Koul >> ; Rob Herring ; Philipp Zabel >> ; Swapnil Kashinath Jakhade >>

<    1   2   3   4   5   6   7   >