RE: [PATCH 3/8] scsi: ufshpb: Add region's reads counter

2021-01-31 Thread Avri Altman
> > On Mon, Feb 01, 2021 at 07:12:53AM +, Avri Altman wrote: > > > > +#define WORK_PENDING 0 > > > > +#define ACTIVATION_THRSHLD 4 /* 4 IOs */ > > > Rather than fixing it with macro, how about using sysfs and make it > > > configurable? > > Yes. > > I will add a patch making all the logic

[PATCH] ceph: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-01-31 Thread Jiapeng Chong
Fix the following coccicheck warning: ./fs/ceph/debugfs.c:347:0-23: WARNING: congestion_kb_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/ceph/debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] PM: hibernate: add sanity check on power_kobj

2021-01-31 Thread Abel Wu
The @power_kobj is initialized in pm_init() which is the same initcall level as pm_disk_init(). Although this dependency is guaranteed based on the current initcall serial execution model, it would still be better do a cost-less sanity check to avoid oops once the dependency is broken.

[PATCH] treewide: remove unneeded semicolon

2021-01-31 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/virtio/virtio-trace/trace-agent-ctl.c:78:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/virtio/virtio-trace/trace-agent-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v3] misc: bcm-vk: only support ttyVK if CONFIG_TTY is set

2021-01-31 Thread Greg Kroah-Hartman
On Sun, Jan 31, 2021 at 03:30:49PM -0800, Scott Branden wrote: > Correct compile issue if CONFIG_TTY is not set by > only adding ttyVK devices if CONFIG_BCM_VK_TTY is set. > > Reported-by: Randy Dunlap > Signed-off-by: Scott Branden > > --- > Changes since v2: > - add CONFIG_BCM_VK_TTY > - add

[PATCH] fault_inject: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-01-31 Thread Jiapeng Chong
Fix the following coccicheck warning: ./lib/fault-inject.c:187:0-23: WARNING: fops_stacktrace_depth should be defined with DEFINE_DEBUGFS_ATTRIBUTE. ./lib/fault-inject.c:169:0-23: WARNING: fops_ul should be defined with DEFINE_DEBUGFS_ATTRIBUTE. Reported-by: Abaci Robot Signed-off-by: Jiapeng

[PATCH 1/3] iio: Add relative sensitivity support

2021-01-31 Thread Ye Xiang
Some hid sensors may use relative sensitivity such as als sensor. This patch adds relative sensitivity checking for all hid sensors. Signed-off-by: Ye Xiang --- .../hid-sensors/hid-sensor-attributes.c | 75 ++- drivers/iio/industrialio-core.c | 1 +

[PATCH 3/3] iio: Add relative hysteresis in ABI documentation

2021-01-31 Thread Ye Xiang
Add relative hysteresis in ABI documentation. Signed-off-by: Ye Xiang --- Documentation/ABI/testing/sysfs-bus-iio | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index d957f5da5c04..1c51db7eb8ef

[PATCH 2/3] iio: hid-sensor-als: Add relative hysteresis support

2021-01-31 Thread Ye Xiang
Hid sensor als uses relative hysteresis, this patch adds the support. Signed-off-by: Ye Xiang --- drivers/iio/light/hid-sensor-als.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c index

[PATCH 0/3] Add relative hysteresis support for hid sensors

2021-01-31 Thread Ye Xiang
Currently, hid sensor als are using the relative hysteresis. This patch series add the relative hysteresis for hid sensors. Ye Xiang (3): iio: Add relative sensitivity support iio: hid-sensor-als: Add relative hysteresis support iio: Add relative hysteresis in ABI documentation

Re: [PATCH] serial: 8250: add option to disable registration of legacy ISA ports

2021-01-31 Thread Greg Kroah-Hartman
On Sun, Jan 31, 2021 at 09:25:33PM +0200, Andy Shevchenko wrote: > On Thursday, January 28, 2021, Mans Rullgard wrote: > > > On systems that do not have the traditional PC ISA serial ports, the > > 8250 driver still creates non-functional device nodes. This change > > makes only ports that

[PATCH] perf metricgroup: remove unneeded semicolon

2021-01-31 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/perf/util/metricgroup.c:382:3-4: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/perf/util/metricgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/metricgroup.c

Re: [PATCH 1/4] perf/core: Add support to exclude kernel mode instruction tracing

2021-01-31 Thread Sai Prakash Ranjan
Hi Peter, On 2021-01-30 01:00, Peter Zijlstra wrote: On Sat, Jan 30, 2021 at 12:35:10AM +0530, Sai Prakash Ranjan wrote: Here the idea is to protect such important information from all users including root users since root privileges does not have to mean full control over the kernel [1] and

Re: [PATCH] memory: tegra186-emc: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-01-31 Thread Krzysztof Kozlowski
On Mon, Feb 01, 2021 at 03:00:40PM +0800, Jiapeng Chong wrote: > Fix the following coccicheck warning: > > ./drivers/memory/tegra/tegra186-emc.c:158:0-23: WARNING: > tegra186_emc_debug_max_rate_fops should be defined with > DEFINE_DEBUGFS_ATTRIBUTE. > >

Re: [PATCH] Revert "bfq: Fix computation of shallow depth"

2021-01-31 Thread Lin Feng
Hi, it seems that this patch was blocked by linux mailist servers, so ping again. Based on https://patchwork.kernel.org/project/linux-block/patch/20201210094433.25491-1-j...@suse.cz/, it looks like we have made a consensus about bfqd->word_depths[2][2]'s changing, so now the computation codes

Re: [RFC 01/20] mm/tlb: fix fullmm semantics

2021-01-31 Thread Nadav Amit
> On Jan 30, 2021, at 6:57 PM, Andy Lutomirski wrote: > > On Sat, Jan 30, 2021 at 5:19 PM Nadav Amit wrote: >>> On Jan 30, 2021, at 5:02 PM, Andy Lutomirski wrote: >>> >>> On Sat, Jan 30, 2021 at 4:16 PM Nadav Amit wrote: From: Nadav Amit fullmm in mmu_gather is supposed to

Re: [PATCH 3/8] scsi: ufshpb: Add region's reads counter

2021-01-31 Thread gre...@linuxfoundation.org
On Mon, Feb 01, 2021 at 07:12:53AM +, Avri Altman wrote: > > > +#define WORK_PENDING 0 > > > +#define ACTIVATION_THRSHLD 4 /* 4 IOs */ > > Rather than fixing it with macro, how about using sysfs and make it > > configurable? > Yes. > I will add a patch making all the logic configurable. > As

[PATCH] misc: rtsx: Remove unneeded return variable

2021-01-31 Thread Yang Li
This patch removes unneeded return variables, using only '0' instead. It fixes the following warning detected by coccinelle: ./drivers/misc/cardreader/rtsx_pcr.c:1808:5-8: Unneeded variable: "ret". Return "0" on line 1833. Reported-by: Abaci Robot Signed-off-by: Yang Li ---

Re: [PATCH v2] nvme-multipath: Early exit if no path is available

2021-01-31 Thread Hannes Reinecke
On 2/1/21 3:16 AM, Chao Leng wrote: On 2021/1/29 17:20, Hannes Reinecke wrote: On 1/29/21 9:46 AM, Chao Leng wrote: On 2021/1/29 16:33, Hannes Reinecke wrote: On 1/29/21 8:45 AM, Chao Leng wrote: On 2021/1/29 15:06, Hannes Reinecke wrote: On 1/29/21 4:07 AM, Chao Leng wrote: On

Re: [RFC 13/20] mm/tlb: introduce tlb_start_ptes() and tlb_end_ptes()

2021-01-31 Thread Nadav Amit
> On Jan 31, 2021, at 2:07 AM, Damian Tometzki wrote: > > On Sat, 30. Jan 16:11, Nadav Amit wrote: >> From: Nadav Amit >> >> Introduce tlb_start_ptes() and tlb_end_ptes() which would be called >> before and after PTEs are updated and TLB flushes are deferred. This >> will be later be used for

Re: [RFC 08/20] mm: store completed TLB generation

2021-01-31 Thread Nadav Amit
> On Jan 31, 2021, at 12:32 PM, Andy Lutomirski wrote: > > On Sat, Jan 30, 2021 at 4:16 PM Nadav Amit wrote: >> From: Nadav Amit >> >> To detect deferred TLB flushes in fine granularity, we need to keep >> track on the completed TLB flush generation for each mm. >> >> Add logic to track for

Re: linux-next: build warning after merge of the akpm tree

2021-01-31 Thread Vijayanand Jitta
On 1/28/2021 2:16 PM, Stephen Rothwell wrote: > Hi all, > > After merging the akpm tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > lib/stackdepot.c: In function 'is_stack_depot_disabled': > lib/stackdepot.c:154:2: warning: ignoring return value of

Re: [PATCH v6 1/4] crypto: Add support for ECDSA signature verification

2021-01-31 Thread yumeng
在 2021/2/1 7:32, Stefan Berger 写道: +/** + * ecc_get_curve() - Get a curve given its curve_id + * + * @curve_id: Id of the curve + * + * Returns pointer to the curve data, NULL if curve is not available + */ +const struct ecc_curve *ecc_get_curve(unsigned int curve_id); + /** *

Re: [PATCH 2/2] vdpa/mlx5: Restore the hardware used index after change map

2021-01-31 Thread Jason Wang
On 2021/2/1 下午2:38, Eli Cohen wrote: On Mon, Feb 01, 2021 at 02:00:35PM +0800, Jason Wang wrote: On 2021/2/1 下午1:52, Eli Cohen wrote: On Mon, Feb 01, 2021 at 11:36:23AM +0800, Jason Wang wrote: On 2021/2/1 上午2:55, Eli Cohen wrote: On Fri, Jan 29, 2021 at 11:49:45AM +0800, Jason Wang wrote:

Re: [PATCH] x86/fault: Send SIGBUS to user process always for hwpoison page access.

2021-01-31 Thread Aili Yao
On Fri, 29 Jan 2021 14:55:29 -0800 "Luck, Tony" wrote: > Thanks for the explanation and test code. I think I see better what > is going on here. > > [I took your idea for using madvise(...MADV_HWPOISON) and added a new "-S" > option to my einj_mem_uc test program to use madvise instead of

RE: [PATCH 6/8] scsi: ufshpb: Add hpb dev reset response

2021-01-31 Thread Avri Altman
> > Hi Avri, > > > + list_for_each_entry_safe(rgn, next_rgn, _info->lh_lru_rgn, > > + list_lru_rgn) > How about replace list_for_each_entry_safe to list_for_each_entry? Done. Can also use the relaxed version in the timeout handler as well (patch 7/8). Thanks,

Re: [PATCH 2/2] soc: mediatek: pm-domains: Add domain_supply cap for mfg_async PD

2021-01-31 Thread kernel test robot
Hi Bilal, Thank you for the patch! Yet something to improve: [auto build test ERROR on soc/for-next] [also build test ERROR on clk/clk-next linux/master next-20210125] [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

Re: [PATCH v4 1/2] bio: limit bio max size

2021-01-31 Thread Ming Lei
On Mon, Feb 01, 2021 at 11:52:48AM +0900, Changheun Lee wrote: > > On Fri, Jan 29, 2021 at 12:49:08PM +0900, Changheun Lee wrote: > > > bio size can grow up to 4GB when muli-page bvec is enabled. > > > but sometimes it would lead to inefficient behaviors. > > > in case of large chunk direct I/O, -

RE: [PATCH 1/1] clk: aspeed: modify some default clks are critical

2021-01-31 Thread Ryan Chen
> -Original Message- > From: Andrew Jeffery > Sent: Monday, January 25, 2021 8:47 AM > To: Ryan Chen ; Samuel Holland > ; Stephen Boyd ; Joel Stanley > > Cc: BMC-SW ; linux-aspeed > ; Michael Turquette > ; Linux Kernel Mailing List > ; linux-...@vger.kernel.org; Linux ARM > > Subject:

Re: [PATCH 00/15] dmaengine: dw-edma: HDMA support

2021-01-31 Thread Vinod Koul
On 15-12-20, 18:30, Gustavo Pimentel wrote: > This patch series adds the HDMA support, as long the IP design has set > the compatible register map parameter, which allows compatibility at > some degree for the existing Synopsys DesignWare eDMA driver that is > already available on the Kernel. > >

Re: short-circuit and over-current IRQs

2021-01-31 Thread Matti Vaittinen
On Sat, 2021-01-30 at 16:43 +0100, AngeloGioacchino Del Regno wrote: > Il 29/01/21 10:14, Matti Vaittinen ha scritto: > > On Thu, 2021-01-28 at 12:10 +, Mark Brown wrote: > > > On Thu, Jan 28, 2021 at 09:23:08AM +, Vaittinen, Matti wrote: > > > > On Wed, 2021-01-27 at 16:32 +, Mark

RE: [PATCH 4/8] scsi: ufshpb: Make eviction depends on region's reads

2021-01-31 Thread Avri Altman
> > > Hi Avri, > > > + /* > > + * in host control mode, verify that the exiting region > > + * has less reads > > + */ > > + if (ufshpb_mode == HPB_HOST_CONTROL && > > + atomic64_read(>reads) > (EVICTION_THRSHLD >>

RE: [PATCH 3/8] scsi: ufshpb: Add region's reads counter

2021-01-31 Thread Avri Altman
> > +#define WORK_PENDING 0 > > +#define ACTIVATION_THRSHLD 4 /* 4 IOs */ > Rather than fixing it with macro, how about using sysfs and make it > configurable? Yes. I will add a patch making all the logic configurable. As all those are hpb-related parameters, I think module parameters are more

[PATCH] mwifiex: Report connected BSS with cfg80211_connect_bss()

2021-01-31 Thread Yen-lin Lai
When a network is moved or reconfigured on the different channel, there can be multiple BSSes with the same BSSID and SSID in scan result before the old one expires. Then, it can cause cfg80211_connect_result to map current_bss to a bss with the wrong channel. Let mwifiex_cfg80211_assoc return

Re: [PATCH v3 03/34] mailbox: vpu-ipc-mailbox: Add support for Intel VPU IPC mailbox

2021-01-31 Thread Jassi Brar
On Fri, Jan 29, 2021 at 8:21 PM wrote: > > From: Daniele Alessandrelli > > Add mailbox controller enabling inter-processor communication (IPC) > between the CPU (aka, the Application Processor - AP) and the VPU on > Intel Movidius SoCs like Keem Bay. > > The controller uses HW FIFOs to enable

[PATCH] lib: stackdepot: fix ignoring return value warning

2021-01-31 Thread vjitta
From: Vijayanand Jitta fix the below ignoring return value warning for kstrtobool in is_stack_depot_disabled function. lib/stackdepot.c: In function 'is_stack_depot_disabled': lib/stackdepot.c:154:2: warning: ignoring return value of 'kstrtobool' declared with attribute 'warn_unused_result'

[PATCH next v3 09/16] arm64: dts: mediatek: mt8173: fix dtbs_check warning

2021-01-31 Thread Chunfeng Yun
Harmonize nodes names, compatibles and remove unused property. Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 4 +--- arch/arm64/boot/dts/mediatek/mt8173.dtsi| 13 +++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff

[PATCH next v3 13/16] arm64: dts: mediatek: mt8183: fix dtbs_check warning

2021-01-31 Thread Chunfeng Yun
Harmonize node names, compatibles and properties. Signed-off-by: Chunfeng Yun --- v3: remove property clock-names suggested by CK v2: no changes --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH next v3 08/16] dt-bindings: usb: mediatek: musb: add mt8516 compatbile

2021-01-31 Thread Chunfeng Yun
Add support mt8516 compatbile Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- Documentation/devicetree/bindings/usb/mediatek,musb.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/mediatek,musb.yaml

[PATCH next v3 03/16] dt-bindings: phy: mediatek: dsi-phy: modify compatible dependence

2021-01-31 Thread Chunfeng Yun
mt7623-mipi-tx is compatible to mt2701-mipi-tx, and use "mediatek,mt2701-mipi-tx" instead on MT7623, so modify the compatible items to make dependence clear. Cc: Chun-Kuang Hu Cc: Philipp Zabel Signed-off-by: Chunfeng Yun --- v3: modify commit message suggested by CK v2: separate two patches

[PATCH next v3 11/16] arm64: dts: mediatek: mt8516: harmonize node names and compatibles

2021-01-31 Thread Chunfeng Yun
This is used to fix dtbs_check warning: harmonize node names and compatibles; add property "usb-role-switch" for connector dependence. Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 9 +

[PATCH next v3 12/16] arm64: dts: mediatek: mt7622: harmonize node names and compatibles

2021-01-31 Thread Chunfeng Yun
This is used to fix dtbs_check warning Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi

[PATCH next v3 15/16] arm: dts: mt7623: harmonize node names and compatibles

2021-01-31 Thread Chunfeng Yun
This is used to fix dtbs_check warning Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- arch/arm/boot/dts/mt7623.dtsi | 26 ++ arch/arm/boot/dts/mt7623n.dtsi | 4 ++-- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/mt7623.dtsi

[PATCH] memory: tegra186-emc: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-01-31 Thread Jiapeng Chong
Fix the following coccicheck warning: ./drivers/memory/tegra/tegra186-emc.c:158:0-23: WARNING: tegra186_emc_debug_max_rate_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE. ./drivers/memory/tegra/tegra186-emc.c:128:0-23: WARNING: tegra186_emc_debug_min_rate_fops should be defined with

[PATCH next v3 02/16] dt-bindings: usb: mediatek: fix yamllint check warning

2021-01-31 Thread Chunfeng Yun
Fix warning: "too many spaces inside brackets" Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 2 +- Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml| 6 +++---

[PATCH next v3 16/16] arm: dts: mt2701: harmonize node names and compatibles

2021-01-31 Thread Chunfeng Yun
This is used to fix dtbs_check warning Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- arch/arm/boot/dts/mt2701.dtsi | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index

[PATCH next v3 14/16] arm: dts: mt7629: harmonize node names and compatibles

2021-01-31 Thread Chunfeng Yun
This is used to fix dtbs_check warning Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- arch/arm/boot/dts/mt7629.dtsi | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi index

[PATCH next v3 01/16] dt-bindings: usb: fix yamllint check warning

2021-01-31 Thread Chunfeng Yun
Fix warning: "missing starting space in comment" Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- Documentation/devicetree/bindings/usb/usb-device.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/usb-device.yaml

[PATCH next v3 10/16] arm64: dts: mediatek: mt2712: harmonize node names

2021-01-31 Thread Chunfeng Yun
This is used to fix dtbs_check warning. Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi

[PATCH next v3 05/16] dt-bindings: phy: mediatek: tphy: change patternProperties

2021-01-31 Thread Chunfeng Yun
The phy may be named as pcie-phy when the T-PHY only supports PCIe mode, it's also the similar case for SATA, named as sata-phy. Signed-off-by: Chunfeng Yun --- v2~v3: no changes --- Documentation/devicetree/bindings/phy/mediatek,tphy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH next v3 04/16] dt-bindings: phy: mediatek: hdmi-phy: modify compatible items

2021-01-31 Thread Chunfeng Yun
mt7623-hdmi-tx is compatible to mt2701-hdmi-tx, and the compatible "mediatek,mt7623-hdmi-tx" is not supported in driver, in fact uses "mediatek,mt2701-hdmi-tx" instead on MT7623, so changes the compatible items to make dependence clear. Cc: Chun-Kuang Hu Cc: Philipp Zabel Signed-off-by:

[PATCH next v3 06/16] dt-bindings: usb: mtk-xhci: add optional assigned clock properties

2021-01-31 Thread Chunfeng Yun
Add optional property "assigned-clock" and "assigned-clock-parents" used by mt7629. Signed-off-by: Chunfeng Yun --- v3: no changes v2: separate compatible out of the patch --- .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml| 8 1 file changed, 8 insertions(+) diff --git

[PATCH next v3 07/16] dt-bindings: usb: mtk-xhci: add compatible for mt2701 and mt7623

2021-01-31 Thread Chunfeng Yun
Add two compatible for mt2701 and mt7623; Signed-off-by: Chunfeng Yun --- v3: no changes v2: new patch separated from [6/15] --- Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

linux-next: build warning after merge of the net-next tree

2021-01-31 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (htmldocs) produced this warning: Documentation/networking/device_drivers/ethernet/mellanox/mlx5.rst:16: WARNING: Unknown target name: "mlx5 port function". Introduced by commit 142d93d12dc1 ("net/mlx5: Add devlink

[PATCH v14 07/11] KVM: vmx/pmu: Reduce the overhead of LBR pass-through or cancellation

2021-01-31 Thread Like Xu
When the LBR records msrs has already been pass-through, there is no need to call vmx_update_intercept_for_lbr_msrs() again and again, and vice versa. Signed-off-by: Like Xu Reviewed-by: Andi Kleen --- arch/x86/kvm/vmx/pmu_intel.c | 13 + arch/x86/kvm/vmx/vmx.h | 3 +++ 2

Re: [PATCH] dmaengine: qcom: bam_dma: Add LOCK and UNLOCK flag bit support

2021-01-31 Thread Vinod Koul
On 01-02-21, 11:52, mda...@codeaurora.org wrote: > On 2021-02-01 11:35, Vinod Koul wrote: > > On 27-01-21, 23:56, mda...@codeaurora.org wrote: > > > The actual LOCK/UNLOCK flag should be set on hardware command > > > descriptor. > > > so this flag setting should be done in DMA engine driver.

Re: [PATCH] nbd: Fix NULL pointer in flush_workqueue

2021-01-31 Thread Sun Ke
hi,Markus 在 2021/1/29 3:42, Markus Elfring 写道: … +++ b/drivers/block/nbd.c @@ -2011,12 +2011,20 @@ static int nbd_genl_disconnect(struct sk_buff *skb, struct genl_info *info) index); return -EINVAL; } + mutex_lock(>config_lock); if

Re: [PATCH 2/2] vdpa/mlx5: Restore the hardware used index after change map

2021-01-31 Thread Eli Cohen
On Mon, Feb 01, 2021 at 02:00:35PM +0800, Jason Wang wrote: > > On 2021/2/1 下午1:52, Eli Cohen wrote: > > On Mon, Feb 01, 2021 at 11:36:23AM +0800, Jason Wang wrote: > > > On 2021/2/1 上午2:55, Eli Cohen wrote: > > > > On Fri, Jan 29, 2021 at 11:49:45AM +0800, Jason Wang wrote: > > > > > On

Re: [PATCH RFC v2 06/10] vdpa_sim: cleanup kiovs in vdpasim_free()

2021-01-31 Thread Jason Wang
On 2021/1/28 下午10:41, Stefano Garzarella wrote: vringh_getdesc_iotlb() allocates memory to store the kvec, that is freed with vringh_kiov_cleanup(). vringh_getdesc_iotlb() is able to reuse a kvec previously allocated, so in order to avoid to allocate the kvec for each request, we are not

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

2021-01-31 Thread Xu Yilun
This patchset supports some dfl device drivers written in userspace. In the patchset v1, the "driver_override" interface should be used to bind the DFL UIO driver to DFL devices. But there is concern that the "driver_override" interface is not OK itself. In v2, we use a new matching algorithem.

Re: [PATCH RFC v2 05/10] vringh: add vringh_kiov_length() helper

2021-01-31 Thread Jason Wang
On 2021/1/28 下午10:41, Stefano Garzarella wrote: This new helper returns the total number of bytes covered by a vringh_kiov. Suggested-by: Jason Wang Signed-off-by: Stefano Garzarella Acked-by: Jason Wang --- include/linux/vringh.h | 11 +++ 1 file changed, 11 insertions(+)

[Patch v3 net-next 5/7] octeontx2-af: advertised link modes support on cgx

2021-01-31 Thread Hariprasad Kelam
From: Christina Jacob CGX supports setting advertised link modes on physical link. This patch adds support to derive cgx mode from ethtool link mode and pass it to firmware to configure the same. Signed-off-by: Christina Jacob Signed-off-by: Sunil Goutham Signed-off-by: Hariprasad Kelam ---

Re: [PATCH RFC v2 03/10] vringh: reset kiov 'consumed' field in __vringh_iov()

2021-01-31 Thread Jason Wang
On 2021/1/28 下午10:41, Stefano Garzarella wrote: __vringh_iov() overwrites the contents of riov and wiov, in fact it resets the 'i' and 'used' fields, but also the consumed field should be reset to avoid an inconsistent state. Signed-off-by: Stefano Garzarella I had a question(I remember

[Patch v3 net-next 4/7] octeontx2-af: Physical link configuration support

2021-01-31 Thread Hariprasad Kelam
From: Christina Jacob CGX LMAC, the physical interface support link configuration parameters like speed, auto negotiation, duplex etc. Firmware saves these into memory region shared between firmware and this driver. This patch adds mailbox handler set_link_mode, fw_data_get to configure and

[PATCH v14 11/11] selftests: kvm/x86: add test for pmu msr MSR_IA32_PERF_CAPABILITIES

2021-01-31 Thread Like Xu
This test will check the effect of various CPUID settings on the MSR_IA32_PERF_CAPABILITIES MSR, check that whatever user space writes with KVM_SET_MSR is _not_ modified from the guest and can be retrieved with KVM_GET_MSR, and check that invalid LBR formats are rejected. Signed-off-by: Like Xu

[Patch v3 net-next 0/7] ethtool support for fec and link configuration

2021-01-31 Thread Hariprasad Kelam
This series of patches add support for forward error correction(fec) and physical link configuration. Patches 1&2 adds necessary mbox handlers for fec mode configuration request and to fetch stats. Patch 3 registers driver callbacks for fec mode configuration and display. Patch 4&5 adds support of

[Patch v3 net-next 1/7] octeontx2-af: forward error correction configuration

2021-01-31 Thread Hariprasad Kelam
From: Christina Jacob CGX block supports forward error correction modes baseR and RS. This patch adds support to set encoding mode and to read corrected/uncorrected block counters Adds new mailbox handlers set_fec to configure encoding modes and fec_stats to read counters and also increase mbox

[Patch v3 net-next 2/7] octeontx2-af: Add new CGX_CMD to get PHY FEC statistics

2021-01-31 Thread Hariprasad Kelam
From: Felix Manlunas This patch adds support to fetch fec stats from PHY. The stats are put in the shared data struct fwdata. A PHY driver indicates that it has FEC stats by setting the flag fwdata.phy.misc.has_fec_stats Besides CGX_CMD_GET_PHY_FEC_STATS, also add CGX_CMD_PRBS and

[PATCH v14 10/11] KVM: vmx/pmu: Expose LBR_FMT in the MSR_IA32_PERF_CAPABILITIES

2021-01-31 Thread Like Xu
Userspace could enable guest LBR feature when the exactly supported LBR format value is initialized to the MSR_IA32_PERF_CAPABILITIES and the LBR is also compatible with vPMU version and host cpu model. The LBR could be enabled on the guest if host perf supports LBR (checked via

[PATCH v14 08/11] KVM: vmx/pmu: Emulate legacy freezing LBRs on virtual PMI

2021-01-31 Thread Like Xu
The current vPMU only supports Architecture Version 2. According to Intel SDM "17.4.7 Freezing LBR and Performance Counters on PMI", if IA32_DEBUGCTL.Freeze_LBR_On_PMI = 1, the LBR is frozen on the virtual PMI and the KVM would emulate to clear the LBR bit (bit 0) in IA32_DEBUGCTL. Also, guest

[GIT PULL 1/2] drivers: soc: Keystone update for v5.12

2021-01-31 Thread Santosh Shilimkar
The following changes since commit 5c8fe583cce542aa0b84adc939ce85293de36e5e: Linux 5.11-rc1 (2020-12-27 15:30:22 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/ssantosh/linux-keystone.git tags/drivers_soc_for_5.12 for you to fetch changes up

[PATCH] mm: workingset: clarify eviction order and distance calculation

2021-01-31 Thread Oscar Salvador
The premise of the refault distance is that it can be seen as a deficit of the inactive list space, so that if the inactive list would have had (R - E) more slots, the page would not have been evicted but promoted to the active list instead. However, the way the code is ordered right now set us

Re: [PATCH] add chan->cl check in mbox_chan_received_data()

2021-01-31 Thread Jassi Brar
On Thu, Jan 7, 2021 at 5:53 AM haidong yao wrote: > > Hi Jassi Brar > > Thank you very much for your reply. > > Look at the function sprd_mbox_outbox_isr . > > Chan is !NULL. > > chan->cl is NULL when the client driver not loaded, the controller > driver don't know the client driver loaded

[PATCH] powerpc/603: Fix protection of user pages mapped with PROT_NONE

2021-01-31 Thread Christophe Leroy
On book3s/32, page protection is defined by the PP bits in the PTE which provide the following protection depending on the access keys defined in the matching segment register: - PP 00 means RW with key 0 and N/A with key 1. - PP 01 means RW with key 0 and RO with key 1. - PP 10 means RW with both

Re: [PATCH RFC v2 02/10] vringh: add 'iotlb_lock' to synchronize iotlb accesses

2021-01-31 Thread Jason Wang
On 2021/1/29 下午5:18, Stefano Garzarella wrote: On Fri, Jan 29, 2021 at 03:43:40PM +0800, Jason Wang wrote: On 2021/1/28 下午10:41, Stefano Garzarella wrote: Usually iotlb accesses are synchronized with a spinlock. Let's request it as a new parameter in vringh_set_iotlb() and hold it when we

Re: [PATCH] dmaengine: qcom: bam_dma: Add LOCK and UNLOCK flag bit support

2021-01-31 Thread mdalam
On 2021-02-01 11:35, Vinod Koul wrote: On 27-01-21, 23:56, mda...@codeaurora.org wrote: On 2021-01-19 22:15, Vinod Koul wrote: > On 18-01-21, 09:21, mda...@codeaurora.org wrote: > > On 2021-01-15 11:28, Vinod Koul wrote: > > > On 14-01-21, 01:20, mda...@codeaurora.org wrote: > > > > On

Re: usb: dwc3: gadget: skip pullup and set_speed after suspend

2021-01-31 Thread Jung Daehwan
On Sun, Jan 24, 2021 at 05:31:57PM +0200, Felipe Balbi wrote: > > Hi, > > Daehwan Jung writes: > > Sometimes dwc3_gadget_pullup and dwc3_gadget_set_speed are called after > > entering suspend. That's why it needs to check whether suspend > > > > 1. dwc3 sends disconnect uevent and turn off.

Re: [RFC 03/20] mm/mprotect: do not flush on permission promotion

2021-01-31 Thread Nadav Amit
> On Jan 31, 2021, at 4:10 AM, Andrew Cooper wrote: > > On 31/01/2021 01:07, Andy Lutomirski wrote: >> Adding Andrew Cooper, who has a distressingly extensive understanding >> of the x86 PTE magic. > > Pretty sure it is all learning things the hard way... > >> On Sat, Jan 30, 2021 at 4:16 PM

[PATCH v14 11/11] selftests: kvm/x86: add test for pmu msr MSR_IA32_PERF_CAPABILITIES

2021-01-31 Thread Like Xu
This test will check the effect of various CPUID settings on the MSR_IA32_PERF_CAPABILITIES MSR, check that whatever user space writes with KVM_SET_MSR is _not_ modified from the guest and can be retrieved with KVM_GET_MSR, and check that invalid LBR formats are rejected. Signed-off-by: Like Xu

[PATCH v14 08/11] KVM: vmx/pmu: Emulate legacy freezing LBRs on virtual PMI

2021-01-31 Thread Like Xu
The current vPMU only supports Architecture Version 2. According to Intel SDM "17.4.7 Freezing LBR and Performance Counters on PMI", if IA32_DEBUGCTL.Freeze_LBR_On_PMI = 1, the LBR is frozen on the virtual PMI and the KVM would emulate to clear the LBR bit (bit 0) in IA32_DEBUGCTL. Also, guest

Re: [PATCH RFC v2 09/10] vdpa_sim_blk: implement ramdisk behaviour

2021-01-31 Thread Jason Wang
On 2021/1/28 下午10:41, Stefano Garzarella wrote: The previous implementation wrote only the status of each request. This patch implements a more accurate block device simulator, providing a ramdisk-like behavior. Signed-off-by: Stefano Garzarella --- v2: - used %zd %zx to print size_t and

[PATCH v14 10/11] KVM: vmx/pmu: Expose LBR_FMT in the MSR_IA32_PERF_CAPABILITIES

2021-01-31 Thread Like Xu
Userspace could enable guest LBR feature when the exactly supported LBR format value is initialized to the MSR_IA32_PERF_CAPABILITIES and the LBR is also compatible with vPMU version and host cpu model. The LBR could be enabled on the guest if host perf supports LBR (checked via

[PATCH v14 09/11] KVM: vmx/pmu: Release guest LBR event via lazy release mechanism

2021-01-31 Thread Like Xu
The vPMU uses GUEST_LBR_IN_USE_IDX (bit 58) in 'pmu->pmc_in_use' to indicate whether a guest LBR event is still needed by the vcpu. If the vcpu no longer accesses LBR related registers within a scheduling time slice, and the enable bit of LBR has been unset, vPMU will treat the guest LBR event as

[PATCH v14 07/11] KVM: vmx/pmu: Reduce the overhead of LBR pass-through or cancellation

2021-01-31 Thread Like Xu
When the LBR records msrs has already been pass-through, there is no need to call vmx_update_intercept_for_lbr_msrs() again and again, and vice versa. Signed-off-by: Like Xu Reviewed-by: Andi Kleen --- arch/x86/kvm/vmx/pmu_intel.c | 13 + arch/x86/kvm/vmx/vmx.h | 3 +++ 2

Re: [PATCH RFC v2 10/10] vdpa_sim_blk: handle VIRTIO_BLK_T_GET_ID

2021-01-31 Thread Jason Wang
On 2021/1/28 下午10:41, Stefano Garzarella wrote: Handle VIRTIO_BLK_T_GET_ID request, always answering the "vdpa_blk_sim" string. Signed-off-by: Stefano Garzarella --- v2: - made 'vdpasim_blk_id' static [Jason] Acked-by: Jason Wang --- drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 15

Re: [PATCH] dmaengine: qcom: bam_dma: Add LOCK and UNLOCK flag bit support

2021-01-31 Thread Vinod Koul
On 27-01-21, 23:56, mda...@codeaurora.org wrote: > On 2021-01-19 22:15, Vinod Koul wrote: > > On 18-01-21, 09:21, mda...@codeaurora.org wrote: > > > On 2021-01-15 11:28, Vinod Koul wrote: > > > > On 14-01-21, 01:20, mda...@codeaurora.org wrote: > > > > > On 2021-01-12 15:40, Vinod Koul wrote: > >

Re: [PATCH 2/2] soc: mediatek: pm-domains: Add domain_supply cap for mfg_async PD

2021-01-31 Thread Hsin-Yi Wang
On Mon, Feb 1, 2021 at 1:45 PM Bilal Wasim wrote: > > The mfg_async power domain in mt8173 is used to power up imgtec > gpu. This domain requires the da9211 regulator to be enabled before > the power domain can be enabled successfully. > > Signed-off-by: Bilal Wasim Reviewed-by: Hsin-Yi Wang

Re: [PATCH 1/2] soc: mediatek: pm-domains: Use correct mask for bus_prot_clr

2021-01-31 Thread Hsin-Yi Wang
On Mon, Feb 1, 2021 at 1:45 PM Bilal Wasim wrote: > > When "bus_prot_reg_update" is false, the driver should use > INFRA_TOPAXI_PROTECTEN for both setting and clearing the bus > protection. However, the driver does not use this mask for > clearing bus protection which causes failure when booting

Re: [PATCH 2/2] vdpa/mlx5: Restore the hardware used index after change map

2021-01-31 Thread Jason Wang
On 2021/2/1 下午1:52, Eli Cohen wrote: On Mon, Feb 01, 2021 at 11:36:23AM +0800, Jason Wang wrote: On 2021/2/1 上午2:55, Eli Cohen wrote: On Fri, Jan 29, 2021 at 11:49:45AM +0800, Jason Wang wrote: On 2021/1/28 下午9:41, Eli Cohen wrote: When a change of memory map occurs, the hardware resources

Re: [PATCH v2 1/3] usb: typec: Determine common SVDM Versions

2021-01-31 Thread Kyle Tso
On Mon, Feb 1, 2021 at 12:21 AM Guenter Roeck wrote: > > On 1/31/21 7:18 AM, Kyle Tso wrote: > > Changes since v1: > > - removed the "local" variables (svdm_version) in tcpm.c and > > (altmodes/ucsi)/displayport.c > > - added a member "svdm_version" in struct typec_capabilities indicating > >

Re: [PATCH] dmaengine: INTEL_LDMA should depend on X86

2021-01-31 Thread Vinod Koul
On 29-01-21, 14:17, Geert Uytterhoeven wrote: > The Intel Lightning Mountain (LGM) DMA controller is only present on > Intel Lightning Mountain SoCs. Hence add a dependency on X86, to > prevent asking the user about this driver when configuring a kernel > without Intel Lightning Mountain platform

[next PATCH] usb: xhci-mtk: skip dropping bandwidth of unchecked endpoints

2021-01-31 Thread Chunfeng Yun
For those unchecked endpoints, we don't allocate bandwidth for them, so no need free the bandwidth, otherwise will decrease the allocated bandwidth. Meanwhile use xhci_dbg() instead of dev_dbg() to print logs and rename bw_ep_list_new as bw_ep_chk_list. Fixes: 1d69f9d901ef ("usb: xhci-mtk: fix

Re: [PATCH] dmaengine: ti: k3-psil: optimize struct psil_endpoint_config for size

2021-01-31 Thread Vinod Koul
On 29-01-21, 21:31, Grygorii Strashko wrote: > Optimize struct psil_endpoint_config for size by > - reordering fields > - grouping bitfields > - change mapped_channel_id type to s16 (32K channel is enough) > - default_flow_id type to s16 as it's assigned to -1 > > before: > textdata

[PATCH net] net: lapb: Copy the skb before sending a packet

2021-01-31 Thread Xie He
When sending a packet, we will prepend it with an LAPB header. This modifies the shared parts of a cloned skb, so we should copy the skb rather than just clone it, before we prepend the header. In "Documentation/networking/driver.rst" (the 2nd point), it states that drivers shouldn't modify the

Re: [PATCH v3 0/4] dmaengine: rcar-dmac: Add support for R-Car V3U

2021-01-31 Thread Vinod Koul
On 28-01-21, 09:44, Geert Uytterhoeven wrote: > Hi Vinod, > > This patch series adds support for the Direct Memory Access Controller > variant in the Renesas R-Car V3U (R8A779A0) SoC, to both DT bindings and > driver. Applied all, thanks -- ~Vinod

[PATCH] mmc: core: Use host instead of card argument to mmc_spi_send_csd()

2021-01-31 Thread Yue Hu
From: Yue Hu Since mmc_send_cxd_data() does not care card if opcode is MMC_SEND_CSD. Signed-off-by: Yue Hu --- drivers/mmc/core/mmc_ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index baa6314..265d95e

Re: [PATCH] watchdog: qcom: Remove incorrect usage of QCOM_WDT_ENABLE_IRQ

2021-01-31 Thread Sai Prakash Ranjan
On 2021-01-31 22:33, Jorge Ramirez-Ortiz, Foundries wrote: On 28/01/21, Sai Prakash Ranjan wrote: On 2021-01-28 13:49, Jorge Ramirez-Ortiz, Foundries wrote: > On 26/01/21, Sai Prakash Ranjan wrote: > > As per register documentation, QCOM_WDT_ENABLE_IRQ which is BIT(1) > > of watchdog control

Re: [PATCH 2/2] vdpa/mlx5: Restore the hardware used index after change map

2021-01-31 Thread Eli Cohen
On Mon, Feb 01, 2021 at 11:36:23AM +0800, Jason Wang wrote: > > On 2021/2/1 上午2:55, Eli Cohen wrote: > > On Fri, Jan 29, 2021 at 11:49:45AM +0800, Jason Wang wrote: > > > On 2021/1/28 下午9:41, Eli Cohen wrote: > > > > When a change of memory map occurs, the hardware resources are destroyed > > > >

Re: [PATCH RFC v2 08/10] vdpa: add vdpa simulator for block device

2021-01-31 Thread Jason Wang
On 2021/1/28 下午10:41, Stefano Garzarella wrote: From: Max Gurtovoy This will allow running vDPA for virtio block protocol. Signed-off-by: Max Gurtovoy [sgarzare: various cleanups/fixes] Signed-off-by: Stefano Garzarella Acked-by: Jason Wang --- v2: - rebased on top of other changes

[PATCH v2 0/2] resolve read hystersis return invalid argument issue for hid sensors

2021-01-31 Thread Ye Xiang
This patch series move get sensitivity attribute to common layer and resolve read hystersis return invalid argument issue for hid sensors als, incli-3d, rotation, and press on intel ISH Platform. --- v2: - separate the add relative sensitivity patch to the next patch series. Ye Xiang (2):

  1   2   3   4   5   6   >