[syzbot] KCSAN: data-race in start_this_handle / start_this_handle

2021-03-11 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:a74e6a01 Merge tag 's390-5.12-3' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=159f69ecd0 kernel config: https://syzkaller.appspot.com/x/.config?x=de394bbaade74fb7 das

Re: [PATCH 1/2] net: core: datagram.c: Fix use of assignment in if condition

2021-03-11 Thread Eric Dumazet
On Thu, Mar 11, 2021 at 11:34 AM Shubhankar Kuranagatti wrote: > > The assignment inside the if condition has been changed to > initialising outside the if condition. > > Signed-off-by: Shubhankar Kuranagatti > --- > net/core/datagram.c | 31 --- > 1 file changed, 20

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

2021-03-11 Thread Stephen Rothwell
Hi all, After merging the amdgpu tree, today's linux-next build (htmldocs) produced this warning: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:143: warning: Function parameter or member 'list' not described in 'dal_allocation' drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:143: warning:

Re: [PATCH v9 7/8] arm64: dts: imx8qxp: Add jpeg encoder/decoder nodes

2021-03-11 Thread Hans Verkuil
Hi Mirela, On 11/03/2021 01:28, Mirela Rabulea (OSS) wrote: > From: Mirela Rabulea > > Add jpeg decoder/encoder nodes, for now on imx8qxp only. > The same should work on imx8qm, but it was not tested. FYI: I've posted a pull request for this driver, and once it is merged in our media tree this

Re: Re: [PATCH] infiniband/core: Fix a use after free in cm_work_handler

2021-03-11 Thread Leon Romanovsky
On Thu, Mar 11, 2021 at 06:29:19PM +0800, lyl2...@mail.ustc.edu.cn wrote: > In the implementation of destory_cm_id(), it restores cm_id_priv by > "cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);". > > And the last line of destory_cm_id() calls "(void)iwcm_deref_id(cm_id_priv);" > to f

Re: [PATCH 1/3] ASoC: simple-card-utils: Fix device module clock

2021-03-11 Thread Sameer Pujar
On 3/11/2021 3:57 PM, Michael Walle wrote: I've had a closer look at this and it seems you're messing around with the clock of the codec's node (which is _not_ a subnode of the simple-audio-card). I don't think this is correct. I guess you should rather set the clock property in the codec sub

[PATCH] configfs: Fix config_item refcnt error in __configfs_open_file()

2021-03-11 Thread gregkh
From: Daniel Rosenberg __configfs_open_file() used to use configfs_get_config_item, but changed in commit b0841eefd969 ("configfs: provide exclusion between IO and removals") to just call to_item. The error path still tries to clean up the reference, incorrectly decrementing the ref count. Signe

Re: [PATCH RESEND][next] mtd: cfi: Fix fall-through warnings for Clang

2021-03-11 Thread Vignesh Raghavendra
On 3/5/21 1:49 PM, Gustavo A. R. Silva wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple > warnings by explicitly adding multiple break statements and a return > instead of letting the code fall through to the next case. > > Link: https://github.com/KSPP/linux/iss

Re: [PATCH V2 08/25] perf/x86: Hybrid PMU support for hardware cache event

2021-03-11 Thread Peter Zijlstra
On Wed, Mar 10, 2021 at 08:37:44AM -0800, kan.li...@linux.intel.com wrote: > From: Kan Liang > > The hardware cache events are different among hybrid PMUs. Each hybrid > PMU should have its own hw cache event table. > > Reviewed-by: Andi Kleen > Signed-off-by: Kan Liang > --- > arch/x86/event

re: scsi: sg: Replace sg_allow_access()

2021-03-11 Thread Colin Ian King
Hi, Static analysis on linux-next with Coverity has detected an issue in drivers/scsi/sg.c in function sg_remove_sfp_usercontext with the following recent commit: commit 0c32296d73ec5dec64729eb555f1a29ded8a7272 Author: Douglas Gilbert Date: Fri Feb 19 21:00:28 2021 -0500 scsi: sg: Replace

Re: [PATCH] ARM: dts: stm32: fix usart 2 & 3 pinconf to wake up with flow control

2021-03-11 Thread Alexandre TORGUE
Hi Valentin On 2/11/21 12:07 PM, Valentin CARON - foss wrote: Modify usart 2 & 3 pins to allow wake up from low power mode while the hardware flow control is activated. UART RTS pin need to stay configure in idle mode to receive characters in order to wake up. Fixes: 842ed898a757 ("ARM: dts: st

Re: [PATCH] hugetlb: select PREEMPT_COUNT if HUGETLB_PAGE for in_atomic use

2021-03-11 Thread Michal Hocko
On Thu 11-03-21 10:52:50, Peter Zijlstra wrote: > On Thu, Mar 11, 2021 at 10:44:56AM +0100, Michal Hocko wrote: > > On Thu 11-03-21 10:32:24, Peter Zijlstra wrote: > > > The whole changelog reads like a trainwreck, but akpm already commented > > > on that. I picked out a small factual incorrectness

Re: [PATCH] cgroup-v2: Add taskstats counters in cgroup.stat

2021-03-11 Thread Tejun Heo
On Thu, Mar 11, 2021 at 02:17:52PM +0800, Chengming Zhou wrote: > We have the netlink CGROUPSTATS_CMD_GET interface to get taskstats > of the cgroup on v1, but haven't the equivalent interface on v2, > making it difficult to calculate the per-cgroup cpu load in cadvisor > or implement the cgroup pr

Re: [PATCH] thermal: Fix spelling mistake "disabed" -> "disabled"

2021-03-11 Thread Daniel Lezcano
On 11/03/2021 10:30, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in a comment, fix it. > > Signed-off-by: Colin Ian King > --- Applied, thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro:

Re: [PATCH] mmc: sdhci: Use "mmc" directly rather than "host->mmc"

2021-03-11 Thread Adrian Hunter
On 11/03/21 11:40 am, Jisheng Zhang wrote: > Clean up the code to use the "mmc" directly instead of "host->mmc". > If the code sits in hot code path, this clean up also brings trvial > performance improvement. Take the sdhci_post_req() for example: > > before the patch: > ... > 8d0:

Re: [PATCH] mmc: sdhci-pci: Avoid comma separated statements

2021-03-11 Thread Adrian Hunter
On 11/03/21 12:14 pm, Jisheng Zhang wrote: > Use semicolons. > > Signed-off-by: Jisheng Zhang Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-pci-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-pci-core.c > b/drivers/mmc/host/sdh

Re: [PATCH v2] dt-bindings: timer: renesas,cmt: add r8a779a0 CMT support

2021-03-11 Thread Daniel Lezcano
On 11/03/2021 10:09, Wolfram Sang wrote: > Signed-off-by: Wolfram Sang > --- Applied, thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter |

Re: [PATCH] kbuild: collect minimum tool versions into scripts/min-tool-version.sh

2021-03-11 Thread Miguel Ojeda
On Thu, Mar 11, 2021 at 11:34 AM Masahiro Yamada wrote: > > Hmm, that is a simple, clean idea. > Then, we can simply read out the file > > $ cat scripts/min_versions/gcc > 4.9.0 Exactly! > I do not know how to handle > per-arch versions in this case. Perhaps we should just push for 5.1.0 everyw

Re: [PATCH v7 1/2] media: v4l2-ctrl: add controls for long term reference.

2021-03-11 Thread dikshita
Hi Hans, Thanks for your comments. I Will update the documentation based on your suggestion in the next patch. Thanks, Dikshita On 2021-03-05 14:08, Hans Verkuil wrote: Hi Dikshita, On 03/03/2021 12:09, Dikshita Agarwal wrote: Long Term Reference (LTR) frames are the frames that are encode

Re: [PATCH] configfs: Fix config_item refcnt error in __configfs_open_file()

2021-03-11 Thread Christoph Hellwig
I've actually just queued up a similar patch from Daiyue Zhang. > - goto out_put_item; > + goto out_put_module; > > if (type & CONFIGFS_ITEM_BIN_ATTR) { > buffer->bin_attr = to_bin_attr(dentry); > @@ -391,7 +391,7 @@ static int __configfs_open_file(str

Re: [PATCH 1/3] ASoC: simple-card-utils: Fix device module clock

2021-03-11 Thread Michael Walle
Am 2021-03-11 12:05, schrieb Sameer Pujar: It would work and initially I had similar patch, see [0] and related series. Suggestion is to always use "clocks" property with devices only. I see. But again, I don't think it is correct to change the clock of the codec by default. What happens if th

Re: pinctrl: core: Handling pinmux and pinconf separately

2021-03-11 Thread Michal Simek
On 3/11/21 11:57 AM, Colin Ian King wrote: > Hi, > > Static analysis on linux-next with Coverity has found a potential issue > in drivers/pinctrl/core.c with the following commit: > > commit 0952b7ec1614abf232e921aac0cc2bca8e60e162 > Author: Michal Simek > Date: Wed Mar 10 09:16:54 2021 +01

[PATCH][next] bus: mhi: core: remove redundant initialization of variables state and ee

2021-03-11 Thread Colin King
From: Colin Ian King The variables state and ee are being initialized with values that are never read and are being updated later with a new values. The initializations are redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/bus/mhi/core

Re: [PATCH] configfs: Fix use-after-free issue in __configfs_open_file

2021-03-11 Thread Christoph Hellwig
Thanks, applied.

arch/s390/kernel/perf_cpum_cf_diag.c:787 cf_diag_all_copy() warn: ignoring unreachable code.

2021-03-11 Thread kernel test robot
-20210311 (attached as .config) compiler: s390-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot smatch warnings: arch/s390/kernel/perf_cpum_cf_diag.c:787 cf_diag_all_copy() warn: ignoring unreachable code. vim +787 arch/s390/kernel

Re: [syzbot] KASAN: slab-out-of-bounds Read in squashfs_get_id

2021-03-11 Thread syzbot
syzbot suspects this issue was fixed by commit: commit e812cbb15adbbbee176baa1e8bda53059bf0 Author: Phillip Lougher Date: Tue Feb 9 21:41:50 2021 + squashfs: avoid out of bounds writes in decompressors bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11bfa48ad0 sta

Re: [PATCH] mm,hwpoison: return -EBUSY when page already poisoned

2021-03-11 Thread Aili Yao
On Thu, 11 Mar 2021 08:55:30 + HORIGUCHI NAOYA(堀口 直也) wrote: > On Wed, Mar 10, 2021 at 02:10:42PM +0800, Aili Yao wrote: > > On Fri, 5 Mar 2021 15:55:25 + > > "Luck, Tony" wrote: > > > > > > From the walk, it seems we have got the virtual address, can we just > > > > send a SIGBUS wi

Re: [PATCH v1 02/14] vfio: Update vfio_add_group_dev() API

2021-03-11 Thread Christoph Hellwig
On Wed, Mar 10, 2021 at 08:28:05AM -0700, Alex Williamson wrote: > > Yes, that series puts vfio_device everywhere so APIs like Alex needs > > to build here become trivial. > > > > The fact we both converged on this same requirement is good > > You're ahead of me in catching up with reviews Christ

Re: pinctrl: core: Handling pinmux and pinconf separately

2021-03-11 Thread Colin Ian King
On 11/03/2021 11:16, Michal Simek wrote: > > > On 3/11/21 11:57 AM, Colin Ian King wrote: >> Hi, >> >> Static analysis on linux-next with Coverity has found a potential issue >> in drivers/pinctrl/core.c with the following commit: >> >> commit 0952b7ec1614abf232e921aac0cc2bca8e60e162 >> Author: M

[PATCH v8 0/2] Add encoder ctrls for long term reference

2021-03-11 Thread Dikshita Agarwal
This series add the encoder controls for long term reference (LTR) and support for the same in venus driver. Dikshita Agarwal (2): media: v4l2-ctrl: add controls for long term reference. venus: venc: Add support for Long Term Reference (LTR) controls Changes since v7: - addressed comments reg

[PATCH v8 2/2] venus: venc: Add support for Long Term Reference (LTR) controls

2021-03-11 Thread Dikshita Agarwal
Add support for below LTR controls in encoder: - V4L2_CID_MPEG_VIDEO_LTR_COUNT - V4L2_CID_MPEG_VIDEO_FRAME_LTR_INDEX - V4L2_CID_MPEG_VIDEO_USE_LTR_FRAMES Signed-off-by: Dikshita Agarwal --- drivers/media/platform/qcom/venus/venc_ctrls.c | 49 +- 1 file changed, 48 inserti

[PATCH v8 1/2] media: v4l2-ctrl: add controls for long term reference.

2021-03-11 Thread Dikshita Agarwal
Long Term Reference (LTR) frames are the frames that are encoded sometime in the past and stored in the DPB buffer list to be used as reference to encode future frames. This change adds controls to enable this feature. Signed-off-by: Dikshita Agarwal --- .../userspace-api/media/v4l/ext-ctrls-cod

[PATCH v3 00/14] Add binding updates and DT files for SC7280 SoC

2021-03-11 Thread Rajendra Nayak
This series includes a few minor binding updates and base device tree files (to boot to shell) for SC7280 SoC and the IDP board using this SoC. Maulik Shah (3): arm64: dts: qcom: sc7280: Add RSC and PDC devices arm64: dts: qcom: Add reserved memory for fw arm64: dts: qcom: sc7280: Add cpuidl

[PATCH v3 01/14] dt-bindings: arm: qcom: Document sc7280 SoC and board

2021-03-11 Thread Rajendra Nayak
Document the sc7280 SoC and the IDP board bindings Signed-off-by: Rajendra Nayak Reviewed-by: Stephen Boyd Acked-by: Rob Herring --- Documentation/devicetree/bindings/arm/qcom.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Docu

[PATCH v3 05/14] arm64: dts: qcom: sc7280: Add RSC and PDC devices

2021-03-11 Thread Rajendra Nayak
From: Maulik Shah Add PDC interrupt controller along with apps RSC device. Also add reserved memory for command_db. Signed-off-by: Maulik Shah Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 44 1 file changed, 44 insertions(+) di

[PATCH v3 04/14] dt-bindings: qcom,pdc: Add compatible for sc7280

2021-03-11 Thread Rajendra Nayak
Add the compatible string for sc7180 SoC from Qualcomm Signed-off-by: Rajendra Nayak Reviewed-by: Stephen Boyd Acked-by: Rob Herring --- Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/in

[PATCH v3 03/14] arm64: dts: sc7280: Add basic dts/dtsi files for sc7280 soc

2021-03-11 Thread Rajendra Nayak
Add initial device tree support for the sc7280 SoC and the IDP boards based on this SoC Signed-off-by: Rajendra Nayak Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/sc7280-idp.dts | 47 + arch/arm64/boot/dts/qcom/sc7280.dtsi| 299

[PATCH v3 07/14] dt-bindings: arm-smmu: Add compatible for SC7280 SoC

2021-03-11 Thread Rajendra Nayak
From: Sai Prakash Ranjan Add the SoC specific compatible for SC7280 implementing arm,mmu-500. Signed-off-by: Sai Prakash Ranjan Signed-off-by: Rajendra Nayak Reviewed-by: Stephen Boyd Acked-by: Rob Herring --- Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 1 + 1 file changed, 1 in

[PATCH v3 08/14] arm64: dts: qcom: sc7280: Add device node for APPS SMMU

2021-03-11 Thread Rajendra Nayak
From: Sai Prakash Ranjan Adding device node for APPS SMMU available on SC7280 chipset. This is shared among the multiple client devices such as display, video, usb, mmc and others. Signed-off-by: Sai Prakash Ranjan Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 89 ++

[PATCH v3 10/14] dt-bindings: watchdog: Add compatible for SC7280 SoC

2021-03-11 Thread Rajendra Nayak
From: Sai Prakash Ranjan Add compatible for watchdog timer on SC7280 SoC. Signed-off-by: Sai Prakash Ranjan Signed-off-by: Rajendra Nayak Reviewed-by: Stephen Boyd Acked-by: Rob Herring --- Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml | 1 + 1 file changed, 1 insertion(+) diff

[PATCH v3 09/14] arm64: dts: qcom: Add reserved memory for fw

2021-03-11 Thread Rajendra Nayak
From: Maulik Shah Add fw reserved memory area for CPUCP (CPUSS control processor) and AOP (Always ON processor) Signed-off-by: Maulik Shah Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts

[PATCH v3 06/14] arm64: dts: qcom: SC7280: Add rpmhcc clock controller node

2021-03-11 Thread Rajendra Nayak
Add rpmhcc clock controller node for SC7280. Also add references to rpmhcc clocks in gcc. Signed-off-by: Taniya Das Signed-off-by: Rajendra Nayak Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm64/

[PATCH v3 14/14] arm64: dts: qcom: sc7280: Add rpmh power-domain node

2021-03-11 Thread Rajendra Nayak
Add the DT node for the rpmhpd power controller on SC7280 SoCs. Signed-off-by: Rajendra Nayak Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 47 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch

[PATCH v3 13/14] arm64: dts: qcom: sc7280: Add cpuidle states

2021-03-11 Thread Rajendra Nayak
From: Maulik Shah Add cpuidle states for little and big cpus. The latency values are preliminary placeholders and will be updated once testing provides the real numbers. Signed-off-by: Maulik Shah Signed-off-by: Rajendra Nayak Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sc7280.dts

[PATCH v3 12/14] arm64: dts: qcom: sc7280: Add SPMI PMIC arbiter device for SC7280

2021-03-11 Thread Rajendra Nayak
From: satya priya Add SPMI PMIC arbiter device to communicate with PMICs attached to SPMI bus. Signed-off-by: satya priya Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7

[PATCH v3 11/14] arm64: dts: qcom: sc7280: Add APSS watchdog node

2021-03-11 Thread Rajendra Nayak
From: Sai Prakash Ranjan Add APSS (Application Processor Subsystem) watchdog DT node for SC7280 SoC. Signed-off-by: Sai Prakash Ranjan Signed-off-by: Rajendra Nayak Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/a

Re: pinctrl: core: Handling pinmux and pinconf separately

2021-03-11 Thread Michal Simek
On 3/11/21 12:24 PM, Colin Ian King wrote: > On 11/03/2021 11:16, Michal Simek wrote: >> >> >> On 3/11/21 11:57 AM, Colin Ian King wrote: >>> Hi, >>> >>> Static analysis on linux-next with Coverity has found a potential issue >>> in drivers/pinctrl/core.c with the following commit: >>> >>> commi

[PATCH] Rectify spelling

2021-03-11 Thread Xiaofeng Cao
Change 'stanalone' to 'standalone' Change 'mesaurement' to 'measurement' Change 'nonvilatile' to 'nonvolatile' Change 'unical' to 'unique' Signed-off-by: Xiaofeng Cao --- drivers/power/supply/max1721x_battery.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

Re: elan_i2c: failed to read report data: -71

2021-03-11 Thread Nikolai Kostrigin
Hi! 05.03.2021 22:18, Uwe Kleine-König пишет: > On Thu, Mar 04, 2021 at 11:49:59AM +0300, Nikolai Kostrigin wrote: >> Hi, >> >> 04.03.2021 09:59, Uwe Kleine-König пишет: >>> Hello, >>> >>> On Wed, Mar 03, 2021 at 05:53:37PM -0800, 'Dmitry Torokhov' wrote: On Wed, Mar 03, 2021 at 09:03:30PM +0

Re: [PATCH] configfs: Fix config_item refcnt error in __configfs_open_file()

2021-03-11 Thread Greg KH
On Thu, Mar 11, 2021 at 12:16:25PM +0100, Christoph Hellwig wrote: > I've actually just queued up a similar patch from Daiyue Zhang. > > > - goto out_put_item; > > + goto out_put_module; > > > > if (type & CONFIGFS_ITEM_BIN_ATTR) { > > buffer->bin_attr = to_bi

Re: [PATCH 0/8] ARM: STM32: add art-pi(stm32h750xbh6) board support

2021-03-11 Thread dillon min
Hi Alexandre, Thanks for quickly responding. On Thu, Mar 11, 2021 at 6:26 PM Alexandre TORGUE wrote: > > Hi Dillon > > > -Original Message- > > From: dillon min > > Sent: mercredi 10 mars 2021 12:48 > > To: Rob Herring ; Maxime Coquelin > > ; Alexandre TORGUE > > ; open list:OPEN FIRMWA

Re: [PATCH v5 1/1] iio: adc: ad7124: allow more than 8 channels

2021-03-11 Thread kernel test robot
Hi, I love your patch! Perhaps something to improve: [auto build test WARNING on iio/togreg] [also build test WARNING on linux/master linus/master v5.12-rc2 next-20210311] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '-

[PATCH v2] configfs: Fix config_item refcnt error in __configfs_open_file()

2021-03-11 Thread gregkh
From: Daniel Rosenberg __configfs_open_file() used to use configfs_get_config_item, but changed in commit b0841eefd969 ("configfs: provide exclusion between IO and removals") to just call to_item. The error path still tries to clean up the reference, incorrectly decrementing the ref count. Signe

Re: [PATCH 00/13] Add binding updates and DT files for SC7280 SoC

2021-03-11 Thread Rajendra Nayak
On 3/11/2021 2:45 PM, Rajendra Nayak wrote: On 3/11/2021 5:43 AM, Bjorn Andersson wrote: On Fri 12 Feb 01:28 CST 2021, Rajendra Nayak wrote: This series includes a few minor binding updates and base device tree files (to boot to shell) for SC7280 SoC and the IDP board using this SoC. The s

Re: [PATCH] vfio/pci: Handle concurrent vma faults

2021-03-11 Thread Christoph Hellwig
On Wed, Mar 10, 2021 at 03:06:07PM -0500, Peter Xu wrote: > On Wed, Mar 10, 2021 at 02:40:11PM -0400, Jason Gunthorpe wrote: > > On Wed, Mar 10, 2021 at 11:34:06AM -0700, Alex Williamson wrote: > > > > > > I think after the address_space changes this should try to stick with > > > > a normal io_rm

Re: [PATCH] arm64: dts: ti: k3-am64-main: Add ADC nodes

2021-03-11 Thread Lokesh Vutla
On 09/03/21 6:37 pm, Vignesh Raghavendra wrote: > AM64 SoC has a single ADC IP with 8 channels. Add DT node for the same. > > Default usecase is to control ADC from non Linux core on the system on > AM642 GP EVM, therefore mark the node as reserved in k3-am642-evm.dts > file. ADC lines are not

Re: [PATCH 9/9] vfio/pci: export igd support into vendor vfio_pci driver

2021-03-11 Thread Christoph Hellwig
On Wed, Mar 10, 2021 at 08:31:27AM -0400, Jason Gunthorpe wrote: > Yes, that needs more refactoring. I'm viewing this series as a > "statement of intent" and once we commit to doing this we can go > through the bigger effort to split up vfio_pci_core and tidy its API. > > Obviously this is a big p

Re: [PATCH] hugetlb: select PREEMPT_COUNT if HUGETLB_PAGE for in_atomic use

2021-03-11 Thread Peter Zijlstra
On Thu, Mar 11, 2021 at 12:09:15PM +0100, Michal Hocko wrote: > Sorry for being dense but I do not follow. You have provided the > following example > spin_lock(&A); > > spin_lock(&A); > > if A == hugetlb_lock then we should never reenter with > free_huge_page What I'm saying is tha

Re: [PATCH v3][next] mtd: rawnand: stm32_fmc2: Fix fall-through warnings for Clang

2021-03-11 Thread Miquel Raynal
On Fri, 2021-03-05 at 08:29:53 UTC, "Gustavo A. R. Silva" wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix a couple > of warnings by explicitly adding a couple of break statements instead > of letting the code fall through to the next case. > > Link: https://github.com/KSPP/

arm64 syzbot instances

2021-03-11 Thread Dmitry Vyukov
Hi arm64 maintainers, We now have some syzbot instances testing arm64 (woohoo!) using qemu emulation. I wanted to write up the current status. There are 3 instances, first uses KASAN: https://syzkaller.appspot.com/upstream?manager=ci-qemu2-arm64 second KASAN and 32-bit userspace test load (compat

Re: [PATCH RESEND][next] mtd: mtdchar: Fix fall-through warnings for Clang

2021-03-11 Thread Miquel Raynal
On Fri, 2021-03-05 at 08:22:24 UTC, "Gustavo A. R. Silva" wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > by explicitly adding a break statement instead of letting the code fall > through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 > Sig

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

2021-03-11 Thread Miquel Raynal
On Mon, 2021-03-08 at 03:44:46 UTC, Jia-Ju Bai wrote: > 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")

Re: [PATCH RESEND][next] mtd: cfi: Fix fall-through warnings for Clang

2021-03-11 Thread Miquel Raynal
On Fri, 2021-03-05 at 08:19:33 UTC, "Gustavo A. R. Silva" wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple > warnings by explicitly adding multiple break statements and a return > instead of letting the code fall through to the next case. > > Link: https://github.co

Re: [PATCH RESEND][next] mtd: onenand: Fix fall-through warnings for Clang

2021-03-11 Thread Miquel Raynal
On Fri, 2021-03-05 at 08:23:56 UTC, "Gustavo A. R. Silva" wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > by explicitly adding a break statement instead of letting the code fall > through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 > Sig

Re: [PATCH RESEND][next] mtd: rawnand: fsmc: Fix fall-through warnings for Clang

2021-03-11 Thread Miquel Raynal
On Fri, 2021-03-05 at 08:25:59 UTC, "Gustavo A. R. Silva" wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > by explicitly adding a break statement instead of letting the code fall > through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 > Sig

Re: [PATCH -next] mtd: parsers: ofpart: make symbol 'bcm4908_partitions_quirks' static

2021-03-11 Thread Miquel Raynal
On Thu, 2021-03-04 at 06:46:00 UTC, 'Wei Yongjun wrote: > From: Wei Yongjun > > The sparse tool complains as follows: > > drivers/mtd/parsers/ofpart_core.c:25:32: warning: > symbol 'bcm4908_partitions_quirks' was not declared. Should it be static? > > This symbol is not used outside of ofpart_

Re: [PATCH v2] configfs: Fix config_item refcnt error in __configfs_open_file()

2021-03-11 Thread Christoph Hellwig
On Thu, Mar 11, 2021 at 12:35:10PM +0100, gre...@linuxfoundation.org wrote: > From: Daniel Rosenberg > > __configfs_open_file() used to use configfs_get_config_item, but changed > in commit b0841eefd969 ("configfs: provide exclusion between IO and > removals") to just call to_item. The error path

Re: [PATCH 5.10 00/47] 5.10.23-rc2 review

2021-03-11 Thread rudi
On Wed, Mar 10, 2021 at 07:29:23PM +0100, gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 5.10.23 release. > There are 47 patches in this series, all will be posted as a response > to this one. If anyone has any issues with th

[PATCH] Input: elan_i2c - fix a typo in parameter name

2021-03-11 Thread Nikolai Kostrigin
s/max_baseliune/max_baseline/ Signed-off-by: Nikolai Kostrigin --- drivers/input/mouse/elan_i2c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/mouse/elan_i2c.h b/drivers/input/mouse/elan_i2c.h index e12da5b024b0..55cdf60fe231 100644 --- a/drivers/input/mouse/

Re: [PATCH v2 00/14] Introduce STM32MP1 RCC in secured mode

2021-03-11 Thread Marek Vasut
On 3/11/21 9:08 AM, Alexandre TORGUE wrote: Hi ALex Hello everyone, [...] Subject: Re: [PATCH v2 00/14] Introduce STM32MP1 RCC in secured mode On 1/26/21 3:01 AM, gabriel.fernan...@foss.st.com wrote: From: Gabriel Fernandez Platform STM32MP1 can be used in configuration where some clocks

Re: [PATCH v2] configfs: Fix config_item refcnt error in __configfs_open_file()

2021-03-11 Thread Greg KH
On Thu, Mar 11, 2021 at 12:39:40PM +0100, Christoph Hellwig wrote: > On Thu, Mar 11, 2021 at 12:35:10PM +0100, gre...@linuxfoundation.org wrote: > > From: Daniel Rosenberg > > > > __configfs_open_file() used to use configfs_get_config_item, but changed > > in commit b0841eefd969 ("configfs: provi

Re: 'make O=' indigestion with module signing

2021-03-11 Thread Valdis Klētnieks
On Thu, 11 Mar 2021 10:49:14 +, David Howells said: > I wonder... Can you grab branch keys-cve-2020-26541-branch from: > > https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/ > > and try that? If that breaks, can you try dropping the top four commits? [/usr/src/linux

Re: [PATCH V2 2/25] x86/cpu: Add helper functions to get parameters of hybrid CPUs

2021-03-11 Thread Borislav Petkov
On Wed, Mar 10, 2021 at 08:37:38AM -0800, kan.li...@linux.intel.com wrote: > From: Ricardo Neri > > On processors with Intel Hybrid Technology (i.e., one having more than one > type of CPU in the same package), all CPUs support the same instruction > set and enumerate the same features on CPUID.

Re: [PATCH v2] f2fs: allow to change discard policy based on cached discard cmds

2021-03-11 Thread Chao Yu
On 2021/3/11 16:59, Sahitya Tummala wrote: With the default DPOLICY_BG discard thread is ioaware, which prevents the discard thread from issuing the discard commands. On low RAM setups, it is observed that these discard commands in the cache are consuming high memory. This patch aims to relax the

Re: [PATCH] mmc: sdhci: Use "mmc" directly rather than "host->mmc"

2021-03-11 Thread Ulf Hansson
On Thu, 11 Mar 2021 at 10:40, Jisheng Zhang wrote: > > Clean up the code to use the "mmc" directly instead of "host->mmc". > If the code sits in hot code path, this clean up also brings trvial > performance improvement. Take the sdhci_post_req() for example: > > before the patch: > ... >

Re: [PATCH] mmc: sdio: fix a typo in the comment of SDIO_SD_REV_3_00

2021-03-11 Thread Ulf Hansson
On Thu, 11 Mar 2021 at 10:42, Jisheng Zhang wrote: > > I believe "Spev" is typo, should be "Spec". > > Signed-off-by: Jisheng Zhang Applied for next, thanks! Kind regards Uffe > --- > include/linux/mmc/sdio.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/li

[PATCH 0/5 v3] Introduce a bulk order-0 page allocator with two in-tree users

2021-03-11 Thread Mel Gorman
Changelog since v3 o Prep new pages with IRQs enabled o Minor documentation update Changelog since v1 o Parenthesise binary and boolean comparisons o Add reviewed-bys o Rebase to 5.12-rc2 This series introduces a bulk order-0 page allocator with sunrpc and the network page pool being the first us

Re: [PATCH] mmc: sdhci-pci: Avoid comma separated statements

2021-03-11 Thread Ulf Hansson
On Thu, 11 Mar 2021 at 11:14, Jisheng Zhang wrote: > > Use semicolons. > > Signed-off-by: Jisheng Zhang Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/sdhci-pci-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/sdhci-pci-co

[PATCH 3/5] SUNRPC: Refresh rq_pages using a bulk page allocator

2021-03-11 Thread Mel Gorman
From: Chuck Lever Reduce the rate at which nfsd threads hammer on the page allocator. This improve throughput scalability by enabling the threads to run more independently of each other. Signed-off-by: Chuck Lever Signed-off-by: Mel Gorman --- net/sunrpc/svc_xprt.c | 43 ++

[PATCH 1/5] SUNRPC: Set rq_page_end differently

2021-03-11 Thread Mel Gorman
From: Chuck Lever Refactor: I'm about to use the loop variable @i for something else. As far as the "i++" is concerned, that is a post-increment. The value of @i is not used subsequently, so the increment operator is unnecessary and can be removed. Also note that nfsd_read_actor() was renamed

[PATCH 2/5] mm/page_alloc: Add a bulk page allocator

2021-03-11 Thread Mel Gorman
This patch adds a new page allocator interface via alloc_pages_bulk, and __alloc_pages_bulk_nodemask. A caller requests a number of pages to be allocated and added to a list. They can be freed in bulk using free_pages_bulk(). The API is not guaranteed to return the requested number of pages and ma

[PATCH 4/5] net: page_pool: refactor dma_map into own function page_pool_dma_map

2021-03-11 Thread Mel Gorman
From: Jesper Dangaard Brouer In preparation for next patch, move the dma mapping into its own function, as this will make it easier to follow the changes. V2: make page_pool_dma_map return boolean (Ilias) Signed-off-by: Jesper Dangaard Brouer Signed-off-by: Mel Gorman Reviewed-by: Ilias Apalo

[PATCH 5/5] net: page_pool: use alloc_pages_bulk in refill code path

2021-03-11 Thread Mel Gorman
From: Jesper Dangaard Brouer There are cases where the page_pool need to refill with pages from the page allocator. Some workloads cause the page_pool to release pages instead of recycling these pages. For these workload it can improve performance to bulk alloc pages from the page-allocator to r

Re: [PATCH] MAINTAINERS: Add entry for the software nodes

2021-03-11 Thread Andy Shevchenko
On Thu, Mar 11, 2021 at 11:25:21AM +0300, Heikki Krogerus wrote: > Making Andy and myself (Heikki) the designated reviewers of > the thing. The software node mailing list shall be > linux-a...@vger.kernel.org for now. Acked-by: Andy Shevchenko > Signed-off-by: Heikki Krogerus > --- > MAINTAINE

[PATCH 1/2] perf core: Add a kmem_cache for struct perf_event

2021-03-11 Thread Namhyung Kim
From: Namhyung Kim The kernel can allocate a lot of struct perf_event when profiling. For example, 256 cpu x 8 events x 20 cgroups = 40K instances of the struct would be allocated on a large system. The size of struct perf_event in my setup is 1152 byte. As it's allocated by kmalloc, the actual

[PATCH 2/2] perf core: Allocate perf_event in the target node memory

2021-03-11 Thread Namhyung Kim
For cpu events, it'd better allocating them in the corresponding node memory as they would be mostly accessed by the target cpu. Although perf tools sets the cpu affinity before calling perf_event_open, there are places it doesn't (notably perf record) and we should consider other external users t

Re: [PATCH V2 16/25] perf/x86: Register hybrid PMUs

2021-03-11 Thread Peter Zijlstra
On Wed, Mar 10, 2021 at 08:37:52AM -0800, kan.li...@linux.intel.com wrote: > +static void init_hybrid_pmu(int cpu) > +{ > + unsigned int fixed_mask, unused_eax, unused_ebx, unused_edx; > + struct cpu_hw_events *cpuc = &per_cpu(cpu_hw_events, cpu); > + u8 cpu_type = get_hybrid_cpu_type(c

[PATCH] Rectify spelling

2021-03-11 Thread Xiaofeng Cao
Change 'stanalone' to 'standalone' Change 'mesaurement'to 'measurement' Change 'nonvilatile'to 'nonvolatile' Change 'unical' to 'unique' Change 'unaccesable'to 'unaccessible' Change 'correcpondent' to 'correspond' Signed-off-by: Xiaofeng Cao --- drivers/powe

Re: [RESEND PATCH v5 2/4] arm64: dts: rk3399: Add dfi and dmc nodes.

2021-03-11 Thread Daniel Lezcano
On 09/03/2021 12:42, Johan Jonker wrote: > Hi Daniel, > > Some comments. Have a look if it's useful or that you disagree with. > > New nodes should be verifiable if possible. > Especially with so many properties. > Could you convert rockchip-dfi.txt and rk3399_dmc.txt to yaml instead of > changin

Re: [PATCH] hugetlb: select PREEMPT_COUNT if HUGETLB_PAGE for in_atomic use

2021-03-11 Thread Michal Hocko
On Thu 11-03-21 12:36:51, Peter Zijlstra wrote: > On Thu, Mar 11, 2021 at 12:09:15PM +0100, Michal Hocko wrote: > > > Sorry for being dense but I do not follow. You have provided the > > following example > > spin_lock(&A); > > > > spin_lock(&A); > > > > if A == hugetlb_lock then we

[PATCH 2/3] arm64: dts: imx8mq-librem5-r3: Mark buck3 as always on

2021-03-11 Thread Martin Kepplinger
From: Sebastian Krzyszkowiak Commit 66d3f246d79f ("arm64: dts: librem5: Don't mark buck3 as always on") removed always-on marking from GPU regulator, which is great for power saving - however it introduces additional i2c0 traffic which can be deadly for devices from the Dogwood batch. To workaro

[PATCH 1/3] arm64: dts: imx8mq-librem5: Hog the correct gpio

2021-03-11 Thread Martin Kepplinger
From: Guido Günther There was an additional alias in the specifier it hogged line 27 instead of line 1. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arc

Re: Re: Re: [PATCH] infiniband/core: Fix a use after free in cm_work_handler

2021-03-11 Thread lyl2019
> -原始邮件- > 发件人: "Leon Romanovsky" > 发送时间: 2021-03-11 19:05:03 (星期四) > 收件人: lyl2...@mail.ustc.edu.cn > 抄送: dledf...@redhat.com, j...@ziepe.ca, linux-r...@vger.kernel.org, > linux-kernel@vger.kernel.org > 主题: Re: Re: [PATCH] infiniband/core: Fix a use after free in cm_work_handler > > O

[PATCH 0/3] Librem 5 phone dts fixes

2021-03-11 Thread Martin Kepplinger
Two fixes for the Librem 5 phone descriptions and one resend of https://lore.kernel.org/linux-arm-kernel/20200915141622.14736-1-feste...@gmail.com/ that enables the hantro vpu staging driver. Feel free to ignore that one if we want to wait for it to be out of staging. Fabio Estevam (1): arm64: d

[PATCH 3/3] arm64: defconfig: Enable the Hantro decoder

2021-03-11 Thread Martin Kepplinger
From: Fabio Estevam Enable the Hantro decoder driver so it can be enabled by default on i.MX8M and Rockchip platforms. Signed-off-by: Fabio Estevam Reviewed-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/configs/defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --gi

Re: 'make O=' indigestion with module signing

2021-03-11 Thread David Howells
Valdis Klētnieks wrote: > So there's something weird going on with scripts/extract-cert when running > as a userid other than the owner of the source tree.. I wonder if it's > actually an OpenSSL issue... I cloned next-20210311 as one user then built it as another user usi

Re: [RESEND PATCH v5 2/4] arm64: dts: rk3399: Add dfi and dmc nodes.

2021-03-11 Thread Daniel Lezcano
On 09/03/2021 12:42, Johan Jonker wrote: > Hi Daniel, > > (This is a generic dtsi. How about cooling and dmc ??) Yeah, I will add it after. I need to figure out the right dynamic power coefficient from the different places around (android / chromeos / etc...). Any help for that is welcome. [ ..

Re: [net-next PATCH v7 07/16] net: mii_timestamper: check NULL in unregister_mii_timestamper()

2021-03-11 Thread Andy Shevchenko
On Thu, Mar 11, 2021 at 8:21 AM Calvin Johnson wrote: > > Callers of unregister_mii_timestamper() currently check for NULL > value of mii_ts before calling it. > > Place the NULL check inside unregister_mii_timestamper() and update > the callers accordingly FWIW, Reviewed-by: Andy Shevchenko (D

[PATCH v3 0/7] sched/fair: misfit task load-balance tweaks

2021-03-11 Thread Valentin Schneider
Hi folks, Here is this year's series of misfit changes. On the menu: o Patch 1 prevents pcpu kworkers from causing group_imbalanced o Patch 2 is an independent active balance cleanup o Patch 3 adds some more sched_asym_cpucapacity static branches o Patch 4 introduces yet another margin for capaci

[PATCH v3 1/7] sched/fair: Ignore percpu threads for imbalance pulls

2021-03-11 Thread Valentin Schneider
From: Lingutla Chandrasekhar In load balancing, when balancing group is unable to pull task due to ->cpus_ptr constraints from busy group, then it sets LBF_SOME_PINNED to lb env flags, as a consequence, sgc->imbalance is set for its parent domain level. which makes the group classified as imbalan

<    3   4   5   6   7   8   9   10   11   12   >