Re: [PATCH] iommu: Check dev->iommu in iommu_dev_xxx functions

2021-01-26 Thread Robin Murphy
On Tue, 26 Jan 2021 13:06:29 + Shameer Kolothum wrote: > The device iommu probe/attach might have failed leaving dev->iommu > to NULL and device drivers may still invoke these functions resulting > a crash in iommu vendor driver code. Hence make sure we check that. > > Signed-off-by: Shameer

Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules

2021-01-26 Thread Greg KH
On Tue, Jan 26, 2021 at 06:44:44AM -0600, Justin Forbes wrote: > On Tue, Jan 26, 2021 at 2:21 AM Greg KH wrote: > > > > On Mon, Jan 25, 2021 at 04:07:57PM -0600, Josh Poimboeuf wrote: > > > On Tue, Jan 26, 2021 at 06:44:35AM +0900, Masahiro Yamada wrote: > > > > > > If people use a different compi

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

2021-01-26 Thread Tom Rix
On 1/25/21 6:40 PM, Xu Yilun wrote: > On Mon, Jan 25, 2021 at 06:22:55PM -0800, Moritz Fischer wrote: >> On Mon, Jan 25, 2021 at 11:00:38AM -0800, Tom Rix wrote: >>> On 1/25/21 12:49 AM, Xu Yilun wrote: This patch supports the DFL drivers be written in userspace. This is realized by exp

Re: [PATCH] arm: smp: remove unused variable

2021-01-26 Thread Wolfram Sang
> What I'm saying is... don't expect me to always review patches that > are for fixing code that other people have contributed - I wish those > who introduce regressions would stick around and attend to breakage > that they cause, instead of hoping that someone else will do that > for them. It's

Re: [PATCH] net: mdiobus: Prevent spike on MDIO bus reset signal

2021-01-26 Thread Russell King - ARM Linux admin
On Tue, Jan 26, 2021 at 02:14:40PM +0100, Andrew Lunn wrote: > On Tue, Jan 26, 2021 at 08:33:37AM +0100, Mike Looijmans wrote: > > The mdio_bus reset code first de-asserted the reset by allocating with > > GPIOD_OUT_LOW, then asserted and de-asserted again. In other words, if > > the reset signal d

Re: [PATCH v2 1/1] mm/madvise: replace ptrace attach requirement for process_madvise

2021-01-26 Thread Michal Hocko
On Wed 20-01-21 14:17:39, Jann Horn wrote: > On Wed, Jan 13, 2021 at 3:22 PM Michal Hocko wrote: > > On Tue 12-01-21 09:51:24, Suren Baghdasaryan wrote: > > > On Tue, Jan 12, 2021 at 9:45 AM Oleg Nesterov wrote: > > > > > > > > On 01/12, Michal Hocko wrote: > > > > > > > > > > On Mon 11-01-21 09:

[RFC PATCH v1 5/5] KVM: arm64: Adapt page-table code to new handling of coalescing tables

2021-01-26 Thread Yanan Wang
With new handling of coalescing tables, we can install the block entry before unmap of the old table mappings. So make the installation in stage2_map_walk_table_pre(), and elide the installation from function stage2_map_walk_table_post(). Signed-off-by: Yanan Wang --- arch/arm64/kvm/hyp/pgtable.

RE: [PATCH V9 01/10] dt-bindings: remoteproc: convert imx rproc bindings to json-schema

2021-01-26 Thread Peng Fan
Hi Rob, > Subject: [PATCH V9 01/10] dt-bindings: remoteproc: convert imx rproc > bindings to json-schema Do you have time to give a look and including https://patchwork.kernel.org/project/linux-remoteproc/ patch/1611191015-22584-3-git-send-email-peng@nxp.com/ If could get your R-b or A-b tag

Re: [RFC PATCH 1/2] arm64/cpuinfo: Move init_cpu_features() ahead of setup.c::early_fixmap_init()

2021-01-26 Thread Will Deacon
On Wed, Jan 13, 2021 at 09:40:46AM +0800, Jia He wrote: > Move init_cpu_features() ahead of setup_arch()->early_fixmap_init(), which > is the preparation work for checking the condition to assign > arm64_use_ng_mappings as cpus_have_const_cap(ARM64_UNMAP_KERNEL_AT_EL0). > > Besides, jump_label_ini

Re: [v7,5/7] PCI: mediatek-gen3: Add MSI support

2021-01-26 Thread Marc Zyngier
On 2021-01-13 11:39, Jianjun Wang wrote: Add MSI support for MediaTek Gen3 PCIe controller. This PCIe controller supports up to 256 MSI vectors, the MSI hardware block diagram is as follows: +-+ | GIC | +-+ ^

[PATCH] drm/omap: dsi: fix unreachable code in dsi_vc_send_short()

2021-01-26 Thread menglong8 . dong
From: Menglong Dong The 'r' in dsi_vc_send_short() is of type 'unsigned int', so the 'r < 0' can't be true. Fix this by introducing a 'err' insteaded. Fixes: 1ed6253856cb ("drm/omap: dsi: switch dsi_vc_send_long/short to mipi_dsi_msg") Signed-off-by: Menglong Dong --- drivers/gpu/drm/omapdrm

[PATCH 0/6] ceph: convert to new netfs read helpers

2021-01-26 Thread Jeff Layton
This patchset converts ceph to use the new netfs readpage, write_begin, and readahead helpers to handle buffered reads. This is a substantial reduction in code in ceph, but shouldn't really affect functionality in any way. Ilya, if you don't have any objections, I'll plan to let David pull this se

[PATCH v1] arm64: dts: add spi nodes for MT6779

2021-01-26 Thread Mason Zhang
This patch adds support spi to MT6779 SOC Signed-off-by: Mason Zhang --- arch/arm64/boot/dts/mediatek/mt6779.dtsi | 96 1 file changed, 96 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6779.dtsi b/arch/arm64/boot/dts/mediatek/mt6779.dtsi index 370f309d32de.

[PATCH 5/6] ceph: plug write_begin into read helper

2021-01-26 Thread Jeff Layton
Convert ceph_write_begin to use the netfs_write_begin helper. Most of the ops we need for it are already in place from the readpage conversion but we do add a new check_write_begin op since ceph needs to be able to vet whether there is an incompatible writeback already in flight before reading in t

Re: [PATCH v4 0/2] add support for GPIO based counter

2021-01-26 Thread Marc Kleine-Budde
On 1/26/21 2:12 PM, Oleksij Rempel wrote: > changes v4: > - use IRQ_NOAUTOEN to not enable IRQ by default > - rename gpio_ from name pattern and make this driver work any IRQ > source. > > changes v3: > - convert counter to atomic_t What's the guaranteed width of atomic_t? IIRC a long time ago

Re: [PATCH 04/21] clk: qcom: clk-regmap: Provide missing description for 'devm_clk_register_regmap()'s dev param

2021-01-26 Thread Bjorn Andersson
On Tue 26 Jan 06:45 CST 2021, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/clk/qcom/clk-regmap.c:97: warning: Function parameter or member > 'dev' not described in 'devm_clk_register_regmap' > > Cc: Andy Gross > Cc: Bjorn Andersson > Cc: Michael Turquette

Re: [PATCH] irqchip: ls-extirq: add flag IRQCHIP_SKIP_SET_WAKE to remove call trace

2021-01-26 Thread Marc Zyngier
On 2021-01-26 11:00, Biwen Li wrote: From: Biwen Li Add flag IRQCHIP_SKIP_SET_WAKE to remove call trace as follow, [useless trace] More importantly, what is the bug that you are fixing? M. -- Jazz is not dead. It just smells funny...

Re: [RFC PATCH v0] mm/slub: Let number of online CPUs determine the slub page order

2021-01-26 Thread Michal Hocko
On Tue 26-01-21 14:38:14, Vincent Guittot wrote: > On Tue, 26 Jan 2021 at 09:52, Michal Hocko wrote: > > > > On Thu 21-01-21 19:19:21, Vlastimil Babka wrote: > > [...] > > > We could also start questioning the very assumption that number of cpus > > > should > > > affect slab page size in the fir

[PATCH v1] arm64: dts: add spi node for MT6779

2021-01-26 Thread Mason Zhang
This patch adds support spi to MT6779 SOC Signed-off-by: Mason Zhang --- arch/arm64/boot/dts/mediatek/mt6779.dtsi | 96 1 file changed, 96 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6779.dtsi b/arch/arm64/boot/dts/mediatek/mt6779.dtsi index 370f309d32de.

Re: [PATCH 13/21] clk: qcom: gcc-ipq4019: Remove unused variable 'ret'

2021-01-26 Thread Bjorn Andersson
On Tue 26 Jan 06:45 CST 2021, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/clk/qcom/gcc-ipq4019.c: In function ‘clk_cpu_div_set_rate’: > drivers/clk/qcom/gcc-ipq4019.c:1279:6: warning: variable ‘ret’ set but not > used [-Wunused-but-set-variable] > > Cc: And

Re: [PATCH 16/21] clk: qcom: mmcc-msm8974: Remove unused static const tables 'mmcc_xo_mmpll0_1_2_gpll0{map}'

2021-01-26 Thread Bjorn Andersson
On Tue 26 Jan 06:45 CST 2021, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/clk/qcom/mmcc-msm8974.c:85:27: warning: ‘mmcc_xo_mmpll0_1_2_gpll0’ > defined but not used [-Wunused-const-variable=] > drivers/clk/qcom/mmcc-msm8974.c:77:32: warning: > ‘mmcc_xo_mmpll

Re: [PATCH] arm64: dts: rockchip: more user friendly name of sound nodes

2021-01-26 Thread Heiko Stuebner
On Mon, 11 Jan 2021 00:19:13 +0900, Katsuhiro Suzuki wrote: > This patch changes device name to more user friendly name of > Analog and SPDIF sound nodes for rk3399-rockpro64. Applied, thanks! [1/1] arm64: dts: rockchip: more user friendly name of sound nodes commit: 5b295839ba3cd78f4142699

Re: [PATCH 01/12] docs: path-lookup: update follow_managed() part

2021-01-26 Thread Greg KH
On Tue, Jan 26, 2021 at 03:24:32PM +0800, Fox Chen wrote: > No follow_managed() anymore, handle_mounts(), > traverse_mounts(), will do the job. > see commit: 9deed3ebca244663530782631834e706a86a8c8f When referencing commits in changelogs, please use the documented way, which for this one would be

Re: [RFC PATCH 1/2] ASoC: soc-component: add snd_soc_component_read/write_field()

2021-01-26 Thread Srinivas Kandagatla
On 26/01/2021 13:36, Mark Brown wrote: On Tue, Jan 26, 2021 at 12:20:19PM +, Srinivas Kandagatla wrote: +#define __soc_component_field_shift(x) (__builtin_ffs(x) - 1) Why not have this be a static inline? Sure, that makes it even better to validate the mask aswell! +unsigned int

[PATCH v2 0/4] Add support for QCOM SPMI Flash LEDs

2021-01-26 Thread Nícolas F . R . A . Prado
Hi, this patch series adds support for Qualcomm's SPMI Flash LEDs present in the PM8941 PMIC. It is used as part of MSM8974 based devices, like the Nexus 5 (hammerhead), as a camera flash or as a lantern when in torch mode. Patch 1 adds the dt-bindings for the driver, together with a header for t

[PATCH v2 1/4] dt-bindings: leds: Add binding for qcom-spmi-flash

2021-01-26 Thread Nícolas F . R . A . Prado
Add devicetree binding for QCOM SPMI Flash LEDs, which are part of PM8941, and are used both as lantern and camera flash. Signed-off-by: Nícolas F. R. A. Prado --- Changes in v2: - Add this commit .../bindings/leds/leds-qcom-spmi-flash.yaml | 94 +++ .../dt-bindings/leds/leds-

Re: [PATCH 18/21] clk: qcom: clk-rpm: Remove a bunch of superfluous code

2021-01-26 Thread Bjorn Andersson
On Tue 26 Jan 06:45 CST 2021, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/clk/qcom/clk-rpm.c:453:29: warning: ‘clk_rpm_branch_ops’ defined but > not used [-Wunused-const-variable=] > > Cc: Andy Gross > Cc: Bjorn Andersson > Cc: Michael Turquette > Cc: Ste

[PATCH 4/6] ceph: convert readpage to fscache read helper

2021-01-26 Thread Jeff Layton
Have the ceph KConfig select NETFS_SUPPORT. Add a new netfs ops structure and the operations for it. Convert ceph_readpage to use the new netfs_readpage helper. Signed-off-by: Jeff Layton --- fs/ceph/Kconfig | 1 + fs/ceph/addr.c | 149 fs/ceph

[PATCH v2 3/4] ARM: qcom_defconfig: Enable QCOM SPMI Flash LEDs

2021-01-26 Thread Nícolas F . R . A . Prado
Enable module for the Qualcomm SPMI Flash LEDs present on the PM8941 PMIC. Signed-off-by: Nícolas F. R. A. Prado --- Changes in v2: - Enabled CONFIG_LEDS_CLASS_FLASH since the driver now depends on it. arch/arm/configs/qcom_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/ar

[PATCH v2 2/4] leds: Add driver for QCOM SPMI Flash LEDs

2021-01-26 Thread Nícolas F . R . A . Prado
Add driver for the Qualcomm SPMI Flash LEDs. These are controlled through an SPMI bus and are part of the PM8941 PMIC. There are two LEDs present in the chip, and can be used independently as camera flash or together in torch mode to act as a lantern. Signed-off-by: Nícolas F. R. A. Prado --- Cha

Re: 回复: 回复: [PATCH] rcu: Release per-cpu krcp page cache when CPU going offline

2021-01-26 Thread Uladzislau Rezki
> > 发件人: Uladzislau Rezki > 发送时间: 2021年1月22日 22:31 > 收件人: Zhang, Qiang > 抄送: Uladzislau Rezki; Paul E. McKenney; r...@vger.kernel.org; > linux-kernel@vger.kernel.org > 主题: Re: 回复: [PATCH] rcu: Release per-cpu krcp page cache when CPU going > offline > >

[PATCH v2 4/4] ARM: dts: qcom: pm8941: Add nodes for QCOM SPMI Flash LEDs

2021-01-26 Thread Nícolas F . R . A . Prado
Add the necessary devicetree nodes for the Qualcomm SPMI Flash LEDs present in PM8941. Signed-off-by: Nícolas F. R. A. Prado --- Changes in v2: - Moved from hammerhead dts to pm8941 dtsi, as it was this way downstream - Now using values from leds-qcom-spmi-flash.h arch/arm/boot/dts/qcom-pm8941.

Re: [PATCH] media: firmware: qcom_scm: Simplify the calculation of variables

2021-01-26 Thread Bjorn Andersson
On Tue 26 Jan 02:52 CST 2021, Jiapeng Zhong wrote: > Fix the following coccicheck warnings: > > ./drivers/firmware/qcom_scm.c:324:20-22: WARNING !A || A && B is > equivalent to !A || B. > Reviewed-by: Bjorn Andersson > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Zhong > --- > drivers

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-01-26 Thread Guoqing Jiang
On 1/26/21 13:58, Donald Buczek wrote: Hmm, how about wake the waiter up in the while loop of raid5d? @@ -6520,6 +6532,11 @@ static void raid5d(struct md_thread *thread) md_check_recovery(mddev); spin_lock_irq(&conf->device_lock);  

Re: [PATCH] venus: core: Parse firmware-name DT property

2021-01-26 Thread AngeloGioacchino Del Regno
Il 26/01/21 09:42, Stanimir Varbanov ha scritto: On production devices the firmware could be located on different places, this path could be provided by special firmware-name DT property. Here we check for existence of such DT property and if it exist take the firmware path from there. Otherwise

Re: [PATCH -next] scsi: gdth: Remove unused including

2021-01-26 Thread kernel test robot
Hi Zou, Thank you for the patch! Yet something to improve: [auto build test ERROR on next-20210125] url: https://github.com/0day-ci/linux/commits/Zou-Wei/scsi-gdth-Remove-unused-including-linux-version-h/20210126-144114 base:59fa6a163ffabc1bf25c5e0e33899e268a96d3cc config: arc

[PATCH v1] arm64: dts: add spi node for MT6779

2021-01-26 Thread Mason Zhang
This patch adds support spi to MT6779 SOC Signed-off-by: Mason Zhang --- arch/arm64/boot/dts/mediatek/mt6779.dtsi | 96 1 file changed, 96 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6779.dtsi b/arch/arm64/boot/dts/mediatek/mt6779.dtsi index 370f309d32de.

[PATCH bpf-next] samples/bpf: Add include dir for MIPS Loongson64 to fix build errors

2021-01-26 Thread Tiezhu Yang
There exists many build errors when make M=samples/bpf on the Loongson platform, this issue is MIPS related, x86 compiles just fine. Here are some errors: CLANG-bpf samples/bpf/sockex2_kern.o In file included from samples/bpf/sockex2_kern.c:2: In file included from ./include/uapi/linux/in.h:24

Re: [PATCH] optee: simplify i2c access

2021-01-26 Thread Arnd Bergmann
On Tue, Jan 26, 2021 at 12:50 PM Jorge Ramirez-Ortiz, Foundries wrote: > On 26/01/21, Arnd Bergmann wrote: > > On Tue, Jan 26, 2021 at 9:08 AM Jorge Ramirez-Ortiz, Foundries > > > > The fixes tag only describes which commit introduced the bug, it is > > irrelevant > > what type of bug this is. >

Re: [PATCH v2 3/9] clk: qcom: Add SDM660 Multimedia Clock Controller (MMCC) driver

2021-01-26 Thread AngeloGioacchino Del Regno
Il 26/01/21 14:39, Stanimir Varbanov ha scritto: On 1/13/21 8:38 PM, AngeloGioacchino Del Regno wrote: From: Martin Botka Add a driver for the multimedia clock controller found on SDM660 based devices. This should allow most multimedia device drivers to probe and control their clocks. Signe

Re: [RFC PATCH 1/2] arm64/cpuinfo: Move init_cpu_features() ahead of setup.c::early_fixmap_init()

2021-01-26 Thread Mark Rutland
On Tue, Jan 26, 2021 at 01:57:13PM +, Will Deacon wrote: > > @@ -297,16 +297,20 @@ void __init __no_sanitize_address setup_arch(char > > **cmdline_p) > > */ > > arm64_use_ng_mappings = kaslr_requires_kpti(); > > > > - early_fixmap_init(); > > - early_ioremap_init(); > > - > > -

Re: [PATCH v6] usb: xhci-mtk: fix unreleased bandwidth data

2021-01-26 Thread Greg Kroah-Hartman
On Tue, Jan 26, 2021 at 02:02:00PM +0800, Chunfeng Yun wrote: > Hi Ikjoon, > > Can I put this patch into my patch series about bandwidth scheduler? > the series also include "[RFC PATCH v3 1/5] usb: xhci-mtk: improve > bandwidth scheduling with multi-TT", put them together will help to fix > depen

Re: [PATCH 04/24] kvm: x86/mmu: change TDP MMU yield function returns to match cond_resched

2021-01-26 Thread Paolo Bonzini
On 20/01/21 19:38, Sean Christopherson wrote: On Tue, Jan 12, 2021, Ben Gardon wrote: Currently the TDP MMU yield / cond_resched functions either return nothing or return true if the TLBs were not flushed. These are confusing semantics, especially when making control flow decisions in calling fu

Re: [PATCH] lkdtm: fix memory copy size for WRITE_KERN

2021-01-26 Thread Candle Sun
On Mon, Jan 25, 2021 at 6:37 PM David Laight wrote: > > From: Candle Sun > > Sent: 25 January 2021 08:56 > > > > From: Candle Sun > > > > Though do_overwritten() follows do_nothing() in source code, the final > > memory address order is determined by compiler. We can't always assume > > address o

Re: [PATCH v6] usb: xhci-mtk: fix unreleased bandwidth data

2021-01-26 Thread Greg Kroah-Hartman
On Wed, Jan 13, 2021 at 06:05:11PM +0800, Ikjoon Jang wrote: > xhci-mtk needs XHCI_MTK_HOST quirk functions in add_endpoint() and > drop_endpoint() to handle its own sw bandwidth management. > > It stores bandwidth data into an internal table every time > add_endpoint() is called, and drops those

[PATCH 3/6] ceph: fix fscache invalidation

2021-01-26 Thread Jeff Layton
Ensure that we invalidate the fscache whenever we invalidate the pagecache. Signed-off-by: Jeff Layton --- fs/ceph/caps.c | 1 + fs/ceph/inode.c | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index ca07dfc60652..c40f713d6d21 100644 --- a/fs/ceph/caps.c +++

Re: [RFC PATCH 2/2] arm64: kpti: Update arm64_use_ng_mappings before pagetable mapping

2021-01-26 Thread Will Deacon
On Wed, Jan 13, 2021 at 09:40:47AM +0800, Jia He wrote: > There is a 10s stall in idmap_kpti_install_ng_mappings when kernel boots > on a Ampere EMAG server. > > Commit f992b4dfd58b ("arm64: kpti: Add ->enable callback to remap > swapper using nG mappings") updates the nG bit runtime if kpti is re

Re: [PATCHv3 6/6] fpga: stratix10-soc: extend driver for bitstream authentication

2021-01-26 Thread Richard Gong
Hi Moritz, On 1/25/21 11:09 PM, Moritz Fischer wrote: On Mon, Jan 25, 2021 at 02:56:28PM -0600, richard.g...@linux.intel.com wrote: From: Richard Gong Extend FPGA manager driver to support FPGA bitstream authentication on Intel SocFPGA platforms. Signed-off-by: Richard Gong --- v3: add hand

[PATCH 1/6] ceph: disable old fscache readpage handling

2021-01-26 Thread Jeff Layton
With the new netfs read helper functions, we won't need a lot of this infrastructure as it handles the pagecache pages itself. Rip out the read handling for now, and much of the old infrastructure that deals in individual pages. The cookie handling is mostly unchanged, however. Signed-off-by: Jef

Re: [PATCH 08/24] kvm: x86/mmu: Add lockdep when setting a TDP MMU SPTE

2021-01-26 Thread Paolo Bonzini
On 12/01/21 19:10, Ben Gardon wrote: Add lockdep to __tdp_mmu_set_spte to ensure that SPTEs are only modified under the MMU lock. This lockdep will be updated in future commits to reflect and validate changes to the TDP MMU's synchronization strategy. No functional change intended. Reviewed-by:

Re: [PATCH 09/24] kvm: x86/mmu: Don't redundantly clear TDP MMU pt memory

2021-01-26 Thread Paolo Bonzini
On 12/01/21 19:10, Ben Gardon wrote: The KVM MMU caches already guarantee that shadow page table memory will be zeroed, so there is no reason to re-zero the page in the TDP MMU page fault handler. No functional change intended. Reviewed-by: Peter Feiner Signed-off-by: Ben Gardon --- arch/x

Re: [PATCH] lkdtm: fix memory copy size for WRITE_KERN

2021-01-26 Thread Candle Sun
On Tue, Jan 26, 2021 at 5:16 AM Nick Desaulniers wrote: > > On Mon, Jan 25, 2021 at 12:56 AM Candle Sun wrote: > > > > From: Candle Sun > > > > Though do_overwritten() follows do_nothing() in source code, the final > > memory address order is determined by compiler. We can't always assume > > ad

Re: [PATCH v4 4/5] dt-bindings: clock: Add SM8350 GCC clock bindings

2021-01-26 Thread Bjorn Andersson
On Tue 26 Jan 02:00 CST 2021, Vinod Koul wrote: > On 25-01-21, 11:25, Bjorn Andersson wrote: > > On Sun 17 Jan 22:43 CST 2021, Vinod Koul wrote: > > > > > Add device tree bindings for global clock controller on SM8350 SoCs. > > > > > > Reviewed-by: Rob Herring > > > Signed-off-by: Vinod Koul >

[PATCH v1] arm64: dts: add spi node for MT6779

2021-01-26 Thread Mason Zhang
This patch adds support spi to MT6779 SOC Signed-off-by: Mason Zhang --- arch/arm64/boot/dts/mediatek/mt6779.dtsi | 96 1 file changed, 96 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6779.dtsi b/arch/arm64/boot/dts/mediatek/mt6779.dtsi index 370f309d32de.

Re: [PATCH v5] arm64: Enable perf events based hard lockup detector

2021-01-26 Thread Will Deacon
Hi Sumit, On Fri, Jan 15, 2021 at 05:31:41PM +0530, Sumit Garg wrote: > With the recent feature added to enable perf events to use pseudo NMIs > as interrupts on platforms which support GICv3 or later, its now been > possible to enable hard lockup detector (or NMI watchdog) on arm64 > platforms. S

Re: [RFC PATCH v1 0/5] Enable CPU TTRem feature for stage-2

2021-01-26 Thread Marc Zyngier
Hi Yanan, On 2021-01-26 13:41, Yanan Wang wrote: Hi all, This series enable CPU TTRem feature for stage-2 page table and a RFC is sent for some comments, thanks. The ARMv8.4 TTRem feature offers 3 levels of support when changing block size without changing any other parameters that are liste

Re: [patch 1/8] rtc: mc146818: Prevent reading garbage - bug

2021-01-26 Thread Mickaël Salaün
Thanks for the fix! It boots now with a new message: rtc_cmos rtc_cmos: not accessible I tested with rtc=on and rtc=off (which didn't make a difference before this fix) on a microvm: https://github.com/qemu/qemu/blob/master/docs/system/i386/microvm.rst There is one issue with the memset though:

Re: [PATCH 0/4] add xhci hooks for USB offload

2021-01-26 Thread Greg KH
On Fri, Jan 22, 2021 at 05:32:58PM +0200, Mathias Nyman wrote: > On 20.1.2021 12.04, Howard Yen wrote: > > On Tue, Jan 19, 2021 at 8:47 PM Mathias Nyman > > wrote: > >> > >> On 19.1.2021 12.10, Howard Yen wrote: > >>> To let the xhci driver support USB offload, add hooks for vendor to have > >>>

[PATCH v1 1/1] arm64: dts: mt6779: add spi host dts nodes

2021-01-26 Thread Mason Zhang
From: Mason Zhang This patch adds spi dts nodes for mt6779 IC. Signed-off-by: Mason Zhang --- arch/arm64/boot/dts/mediatek/mt6779.dtsi | 96 1 file changed, 96 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6779.dtsi b/arch/arm64/boot/dts/mediatek/mt6779.d

Re: [PATCH 10/24] kvm: x86/mmu: Factor out handle disconnected pt

2021-01-26 Thread Paolo Bonzini
On 12/01/21 19:10, Ben Gardon wrote: Factor out the code to handle a disconnected subtree of the TDP paging structure from the code to handle the change to an individual SPTE. Future commits will build on this to allow asynchronous page freeing. No functional change intended. Reviewed-by: Peter

Re: [PATCH 07/24] kvm: x86/mmu: Add comment on __tdp_mmu_set_spte

2021-01-26 Thread Paolo Bonzini
On 12/01/21 19:10, Ben Gardon wrote: __tdp_mmu_set_spte is a very important function in the TDP MMU which already accepts several arguments and will take more in future commits. To offset this complexity, add a comment to the function describing each of the arguemnts. No functional change intend

Re: [PATCH 20/24] kvm: x86/mmu: Add atomic option for setting SPTEs

2021-01-26 Thread Paolo Bonzini
On 12/01/21 19:10, Ben Gardon wrote: static void handle_changed_spte(struct kvm *kvm, int as_id, gfn_t gfn, - u64 old_spte, u64 new_spte, int level); + u64 old_spte, u64 new_spte, int level, + bool atomic);

Re: [PATCH] mmc: brcmstb: Fix sdhci_pltfm_suspend link error

2021-01-26 Thread Ulf Hansson
On Mon, 25 Jan 2021 at 18:40, Florian Fainelli wrote: > > +Nicolas, > > On 1/25/2021 4:50 AM, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > sdhci_pltfm_suspend() is only available when CONFIG_PM_SLEEP > > support is built into the kernel, which caused a regression > > in a recent bugfix: >

Re: [PATCH v1] scsi: lpfc: Add auto select on IRQ_POLL

2021-01-26 Thread James Smart
On 1/25/2021 4:05 PM, Tong Zhang wrote: lpfc depends on irq_poll library, but it is not selected automatically. When irq_poll is not selected, compiling it can run into following error ERROR: modpost: "irq_poll_init" [drivers/scsi/lpfc/lpfc.ko] undefined! ERROR: modpost: "irq_poll_sched" [driver

Re: [PATCH v3 1/1] loop: scale loop device by introducing per device lock

2021-01-26 Thread Pavel Tatashin
On Tue, Jan 26, 2021 at 4:24 AM Petr Vorel wrote: > > Hi, > > > Currently, loop device has only one global lock: > > loop_ctl_mutex. > > > This becomes hot in scenarios where many loop devices are used. > > > Scale it by introducing per-device lock: lo_mutex that protects the > > fields in struct

Re: [PATCH v6] usb: xhci-mtk: fix unreleased bandwidth data

2021-01-26 Thread Mathias Nyman
On 26.1.2021 16.13, Greg Kroah-Hartman wrote: > On Wed, Jan 13, 2021 at 06:05:11PM +0800, Ikjoon Jang wrote: >> xhci-mtk needs XHCI_MTK_HOST quirk functions in add_endpoint() and >> drop_endpoint() to handle its own sw bandwidth management. >> >> It stores bandwidth data into an internal table ever

Re: [PATCH 19/24] kvm: x86/mmu: Protect tdp_mmu_pages with a lock

2021-01-26 Thread Paolo Bonzini
On 21/01/21 22:32, Sean Christopherson wrote: Coming back to this series, I wonder if the RCU approach is truly necessary to get the desired scalability. If both zap_collapsible_sptes() and NX huge page recovery zap_only_ leaf SPTEs, then the only path that can actually unlink a shadow page whi

Re: [PATCH 04/13] livepatch: move klp_find_object_module to module.c

2021-01-26 Thread Jessica Yu
+++ Christoph Hellwig [21/01/21 08:49 +0100]: To uncouple the livepatch code from module loader internals move a slightly refactored version of klp_find_object_module to module.c This allows to mark find_module static and removes one of the last users of module_mutex outside of module.c. Signed-

Re: [PATCH 16/24] kvm: mmu: Wrap mmu_lock assertions

2021-01-26 Thread Paolo Bonzini
On 12/01/21 19:10, Ben Gardon wrote: Wrap assertions and warnings checking the MMU lock state in a function which uses lockdep_assert_held. While the existing checks use a few different functions to check the lock state, they are all better off using lockdep_assert_held. This will support a refac

Re: [PATCH v2 6/9] clk: qcom: mmcc-msm8996: Migrate gfx3d clock to clk_rcg2_gfx3d

2021-01-26 Thread Bjorn Andersson
On Wed 13 Jan 12:38 CST 2021, AngeloGioacchino Del Regno wrote: > In commit 734bdefdb043 ("clk: qcom: rcg2: Stop hardcoding gfx3d > pingpong parent numbers") the gfx3d ping-pong ops (clk_gfx3d_ops) I believe you're referring to patch 5 here, which when merged won't have this hash. So you'd need t

Re: [PATCH v3 1/1] loop: scale loop device by introducing per device lock

2021-01-26 Thread Pavel Tatashin
On Tue, Jan 26, 2021 at 4:53 AM Chaitanya Kulkarni wrote: > > On 1/25/21 12:15 PM, Pavel Tatashin wrote: > > Currently, loop device has only one global lock: > > loop_ctl_mutex. > Above line can be :- > Currently, loop device has only one global lock: loop_ctl_mutex. OK > > Also please provide a

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

2021-01-26 Thread Jiri Kosina
On Tue, 19 Jan 2021, Randy Dunlap wrote: > Clean up kernel-doc notation in 2 files > and in drivers/hid/hid-quirks.c. > > Cc: Jiri Kosina > Cc: Benjamin Tissoires > Cc: linux-in...@vger.kernel.org > > rebase & resend: > [PATCH 1/2 v2] HID: correct kernel-doc notation in > [PATCH 2/2 v2] HID:

[PATCH 5.10 148/199] x86/cpu/amd: Set __max_die_per_package on AMD

2021-01-26 Thread Greg Kroah-Hartman
From: Yazen Ghannam commit 76e2fc63ca40977af893b724b00cc2f8e9ce47a4 upstream. Set the maximum DIE per package variable on AMD using the NodesPerProcessor topology value. This will be used by RAPL, among others, to determine the maximum number of DIEs on the system in order to do per-DIE manipula

Re: [PATCH net-next] hv_netvsc: Copy packets sent by Hyper-V out of the receive buffer

2021-01-26 Thread Andrea Parri
On Tue, Jan 26, 2021 at 12:38:47PM +0100, Andrea Parri (Microsoft) wrote: > Pointers to receive-buffer packets sent by Hyper-V are used within the > guest VM. Hyper-V can send packets with erroneous values or modify > packet fields after they are processed by the guest. To defend against > these

Re: [PATCH v6 3/4] usb: dwc3: Resize TX FIFOs to meet EP bursting requirements

2021-01-26 Thread Wesley Cheng
On 1/22/2021 4:15 PM, Thinh Nguyen wrote: > Hi, > > Wesley Cheng wrote: >> Some devices have USB compositions which may require multiple endpoints >> that support EP bursting. HW defined TX FIFO sizes may not always be >> sufficient for these compositions. By utilizing flexible TX FIFO >> all

[PATCH] drm/msm: remove redundant NULL check

2021-01-26 Thread Jiapeng Zhong
Fix below warnings reported by coccicheck: ./drivers/gpu/drm/msm/msm_gem.c:991:3-9: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- drivers/gpu/drm/msm/msm_gem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) d

Re: [PATCH 0/3] pinctrl: at91-pio4: add support for slew-rate

2021-01-26 Thread Linus Walleij
On Mon, Jan 25, 2021 at 11:19 AM Claudiu Beznea wrote: > This series adds support for slew rate on SAMA7G5. Along with this > patch 3/3 fixes some checkpatch.pl warnings. Nicolas/Ludovic, can one of you review and ACK this patch set? Yours, Linus Walleij

[PATCH v1] mtd: spi-nor: add ACPI support for non-JEDEC SPI-NOR

2021-01-26 Thread Flavio Suligoi
In a x86 machine, an additional device can be described inside the BIOS ACPI tables. For example, an I2C GPIO expander, a LED, etc., can be successfully declared in ACPI, so that the related device driver can start automatically at the boot. But for the SPI NOR devices, the ACPI description works

[PATCH 5.10 114/199] iio: adc: ti_am335x_adc: remove omitted iio_kfifo_free()

2021-01-26 Thread Greg Kroah-Hartman
From: Alexandru Ardelean commit 7e6d9788aa02333a4353058816d52b9a90aae0d3 upstream. When the conversion was done to use devm_iio_kfifo_allocate(), a call to iio_kfifo_free() was omitted (to be removed). This change removes it. Fixes: 3c5308058899 ("iio: adc: ti_am335x_adc: alloc kfifo & IRQ via

Re: [PATCH 15/24] kvm: mmu: Wrap mmu_lock cond_resched and needbreak

2021-01-26 Thread Paolo Bonzini
On 21/01/21 01:19, Sean Christopherson wrote: What if we simply make the common mmu_lock a union? The rwlock_t is probably a bit bigger, but that's a few bytes for an entire VM. And maybe this would entice/inspire other architectures to move to a similar MMU model. Looking more at this, there

[regression v5.11-rc1] btqca: suspend fails with QCA6390

2021-01-26 Thread Kalle Valo
Hi, I got Dell XPS 13 9310 laptop which has QCA6390 wlan/bt device. I noticed that on v5.11-rc1 suspend fails every time like this: [ 91.134305] Bluetooth: hci0: SSR or FW download time out [ 91.134314] PM: dpm_run_callback(): acpi_subsys_suspend+0x0/0x50 returns -110 [ 91.134331] PM: Devic

Re: [PATCH v5 2/2] dt-bindings: pinctrl: Add bindings for Awinic AW9523/AW9523B

2021-01-26 Thread Rob Herring
On Mon, 25 Jan 2021 19:22:19 +0100, AngeloGioacchino Del Regno wrote: > Add bindings for the Awinic AW9523/AW9523B I2C GPIO Expander driver. > > Signed-off-by: AngeloGioacchino Del Regno > > --- > .../pinctrl/awinic,aw9523-pinctrl.yaml| 139 ++ > 1 file changed, 139 inse

Re: [PATCH] arm: dts: IPQ4019: add SDHCI VQMMC LDO node

2021-01-26 Thread Robert Marko
On Mon, Jan 25, 2021 at 5:50 PM Bjorn Andersson wrote: > > On Mon 07 Sep 05:19 CDT 2020, Robert Marko wrote: > > > Since we now have driver for the SDHCI VQMMC LDO needed > > for I/0 voltage levels lets introduce the necessary node for it. > > > > Signed-off-by: Robert Marko > > Cc: Luka Perkov

Re: [PATCH 1/2] [REPOST] dt-bindings: qcom,pdc: Add compatible for SM8250

2021-01-26 Thread Marc Zyngier
On Fri, 15 Jan 2021 14:39:40 +0530, Vinod Koul wrote: > Add the compatible string for SM8250 SoC from Qualcomm. This compatible > is used already in DTS files but not documented yet Applied to irq/irqchip-5.12, thanks! [1/2] dt-bindings: qcom,pdc: Add compatible for SM8250 commit: e6f93c011

Re: [PATCH v8 2/2] iio: accel: Add support for the Bosch-Sensortec BMI088

2021-01-26 Thread Linus Walleij
On Mon, Jan 25, 2021 at 4:07 PM Mike Looijmans wrote: > The BMI088 is a combined module with both accelerometer and gyroscope. > This adds the accelerometer driver support for the SPI interface. > The gyroscope part is already supported by the BMG160 driver. > > Signed-off-by: Mike Looijmans Ex

Re: [RESEND PATCH v2] arm/mm/ptdump:Add address markers for KASAN regions

2021-01-26 Thread carver4lio
On 1/21/21 4:36 PM, Linus Walleij wrote: > On Wed, Jan 20, 2021 at 1:54 PM Hailong liu wrote: > >> From: Hailong Liu >> >> ARM has recently supported KASAN, so I think that it's time to add KASAN >> regions for PTDUMP on ARM. >> >> I have tested this patch with QEMU + vexpress-a15. Both CONFIG_A

Re: [PATCH v1] mm/memory_hotplug: MEMHP_MERGE_RESOURCE -> MHP_MERGE_RESOURCE

2021-01-26 Thread Michael S. Tsirkin
On Tue, Jan 26, 2021 at 12:58:29PM +0100, David Hildenbrand wrote: > Let's make "MEMHP_MERGE_RESOURCE" consistent with "MHP_NONE", "mhp_t" and > "mhp_flags". As discussed recently [1], "mhp" is our internal > acronym for memory hotplug now. > > [1] > https://lore.kernel.org/linux-mm/c37de2d0-28a1

Re: [PATCH 01/12] perf/core: Add PERF_SAMPLE_WEIGHT_EXT

2021-01-26 Thread Peter Zijlstra
On Tue, Jan 19, 2021 at 12:38:20PM -0800, kan.li...@linux.intel.com wrote: > @@ -900,6 +901,13 @@ enum perf_event_type { >*char data[size]; } && PERF_SAMPLE_AUX >* { u64 data_page_size;} && > PERF_SAMPLE_DATA_PAGE_SIZE >*

[PATCH] drm/gem: remove redundant NULL check

2021-01-26 Thread Jiapeng Zhong
Fix below warnings reported by coccicheck: ./drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c:80:2-8: WARNING: NULL check before some freeing functions is not needed. ./drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c:612:2-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Ab

[PATCH 5.10 055/199] xen: Fix event channel callback via INTX/GSI

2021-01-26 Thread Greg Kroah-Hartman
From: David Woodhouse [ Upstream commit 3499ba8198cad47b731792e5e56b9ec2a78a83a2 ] For a while, event channel notification via the PCI platform device has been broken, because we attempt to communicate with xenstore before we even have notifications working, with the xs_reset_watches() call in x

[PATCH 5.10 063/199] HID: logitech-hidpp: Add product ID for MX Ergo in Bluetooth mode

2021-01-26 Thread Greg Kroah-Hartman
From: Nicholas Miell [ Upstream commit 7de843dbaaa68aa514090e6226ed7c6374fd7e49 ] The Logitech MX Ergo trackball supports HID++ 4.5 over Bluetooth. Add its product ID to the table so we can get battery monitoring support. (The hid-logitech-hidpp driver already recognizes it when connected via a

[PATCH 5.10 099/199] drm/vc4: Unify PCM cards driver_name

2021-01-26 Thread Greg Kroah-Hartman
From: Nicolas Saenz Julienne [ Upstream commit 33c74535b03ecf11359de14bc88302595b1de44f ] User-space ALSA matches a card's driver name against an internal list of aliases in order to select the correct configuration for the system. When the driver name isn't defined, the match is performed again

Re: [PATCH v1] mm/memory_hotplug: MEMHP_MERGE_RESOURCE -> MHP_MERGE_RESOURCE

2021-01-26 Thread Oscar Salvador
On Tue, Jan 26, 2021 at 12:58:29PM +0100, David Hildenbrand wrote: > Let's make "MEMHP_MERGE_RESOURCE" consistent with "MHP_NONE", "mhp_t" and > "mhp_flags". As discussed recently [1], "mhp" is our internal > acronym for memory hotplug now. > > [1] > https://lore.kernel.org/linux-mm/c37de2d0-28a1

[PATCH 5.10 064/199] drm/amd/display: Fix to be able to stop crc calculation

2021-01-26 Thread Greg Kroah-Hartman
From: Wayne Lin [ Upstream commit 02ce73b01e09e388614b22b7ebc71debf4a588f0 ] [Why] Find out when we try to disable CRC calculation, crc generation is still enabled. Main reason is that dc_stream_configure_crc() will never get called when the source is AMDGPU_DM_PIPE_CRC_SOURCE_NONE. [How] Add c

Re: [RFC PATCH 1/2] Use pause-on-trace with the latency tracers

2021-01-26 Thread Steven Rostedt
Sorry for the late reply. On Tue, 19 Jan 2021 17:43:43 +0100 Viktor Rosendahl wrote: > Eaerlier, tracing was disabled when reading the trace file. This behavior > was changed with: > > commit 06e0a548bad0 ("tracing: Do not disable tracing when reading the > trace file"). > > This doesn't see

Re: [PATCH] s390: allow reschedule on syscall restart

2021-01-26 Thread Sven Schnelle
Christian Borntraeger writes: > On 21.01.21 15:39, Sven Schnelle wrote: >> Commit 845f44e8ef28 ("sched: Report local wake up on resched blind zone >> within idle loop") from next-20210121 causes a warning because s390 >> doesn't call sched_resched_local_allow() when restarting a syscall. >> >> S

Re: [PATCH 03/12] perf/x86/intel: Add perf core PMU support for Sapphire Rapids

2021-01-26 Thread Peter Zijlstra
On Tue, Jan 19, 2021 at 12:38:22PM -0800, kan.li...@linux.intel.com wrote: > @@ -2319,6 +2474,17 @@ static void __icl_update_topdown_event(struct > perf_event *event, > { > u64 delta, last = 0; > > + /* > + * Although the unsupported topdown events are not exposed to users, > +

Re: [PATCH 03/12] perf/x86/intel: Add perf core PMU support for Sapphire Rapids

2021-01-26 Thread Peter Zijlstra
On Tue, Jan 19, 2021 at 12:38:22PM -0800, kan.li...@linux.intel.com wrote: > @@ -3671,6 +3853,31 @@ static int intel_pmu_hw_config(struct perf_event > *event) > } > } > > + /* > + * To retrieve complete Memory Info of the load latency event, an > + * auxiliary e

[PATCH v4 1/1] loop: scale loop device by introducing per device lock

2021-01-26 Thread Pavel Tatashin
Currently, loop device has only one global lock: loop_ctl_mutex. This becomes hot in scenarios where many loop devices are used. Scale it by introducing per-device lock: lo_mutex that protects modifications of all fields in struct loop_device. Keep loop_ctl_mutex to protect global data: loop_ind

[PATCH v4 0/1] scale loop device lock

2021-01-26 Thread Pavel Tatashin
Changelog v4 - Added review-by Petr Vorel - Addressed comments from Chaitanya Kulkarni v3 - Added review-by Tyler - Sync with mainline v2 - Addressed Tyler Hicks comments - added mutex_destroy() - comment in lo_open() - added lock around lo_disk === In our environment we are using

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