Re: [PATCH v4] binder: tell userspace to dump current backtrace when detected oneway spamming

2021-04-09 Thread Greg KH
On Fri, Apr 09, 2021 at 11:40:57AM +0800, Hang Lu wrote: > When async binder buffer got exhausted, some normal oneway transactions > will also be discarded and may cause system or application failures. By > that time, the binder debug information we dump may not be relevant to > the root cause.

[PATCH] ASoC: Intel: bytcr_wm5102: remove useless variable

2021-04-09 Thread Jiapeng Chong
Fix the following gcc warning: sound/soc/intel/boards/bytcr_wm5102.c:216:40: warning: ‘byt_wm5102_dai_params’ defined but not used. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- sound/soc/intel/boards/bytcr_wm5102.c | 8 1 file changed, 8 deletions(-) diff --git

[PATCH v4 2/3] Documentation: riscv: Add documentation that describes the VM layout

2021-04-09 Thread Alexandre Ghiti
This new document presents the RISC-V virtual memory layout and is based one the x86 one: it describes the different limits of the different regions of the virtual address space. Signed-off-by: Alexandre Ghiti --- Documentation/riscv/index.rst | 1 + Documentation/riscv/vm-layout.rst | 63

[PATCH v4 3/3] riscv: Prepare ptdump for vm layout dynamic addresses

2021-04-09 Thread Alexandre Ghiti
This is a preparatory patch for sv48 support that will introduce dynamic PAGE_OFFSET. Dynamic PAGE_OFFSET implies that all zones (vmalloc, vmemmap, fixaddr...) whose addresses depend on PAGE_OFFSET become dynamic and can't be used to statically initialize the array used by ptdump to identify the

Re: [PATCH -next] hwrng: exynos - fix PM reference leak in exynos_trng_probe()

2021-04-09 Thread Krzysztof Kozlowski
On Fri, 9 Apr 2021 at 08:11, Ye Weihua wrote: > > pm_runtime_get_sync will increment pm usage counter even it failed. > Forgetting to putting operation will result in reference leak here. > Fix it by replacing it with pm_runtime_resume_and_get to keep usage > counter balanced. > > Reported-by:

Re: [PATCH v1 1/1] kernel.h: Split out panic and oops helpers

2021-04-09 Thread Andrew Morton
On Wed, 7 Apr 2021 11:46:37 +0300 Andy Shevchenko wrote: > On Wed, Apr 7, 2021 at 11:17 AM Kees Cook wrote: > > > > On Tue, Apr 06, 2021 at 04:31:58PM +0300, Andy Shevchenko wrote: > > > kernel.h is being used as a dump for all kinds of stuff for a long time. > > > Here is the attempt to start

Re: [PATCH -next] clk: qcom: Add missing MODULE_DEVICE_TABLE

2021-04-09 Thread Manivannan Sadhasivam
On Thu, Apr 08, 2021 at 09:55:09PM +0800, Chen Hui wrote: > Add missing MODULE_DEVICE_TABLE entries to support module autoloading, > as these drivers can be compiled as external modules. > > Signed-off-by: Chen Hui Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- >

Re: [next] drivers/cdrom/gdrom.c:586:61: error: 'rq' undeclared (first use in this function)

2021-04-09 Thread Naresh Kamboju
Hi Chaitanya, On Fri, 9 Apr 2021 at 11:01, Chaitanya Kulkarni wrote: > > On 4/8/21 22:21, Naresh Kamboju wrote: > > Linux next tag 20210408 architecture sh builds failed due to these errors. > > > > # to reproduce this build locally: > > > > make --silent --keep-going --jobs=8 > >

[PATCH -next] powerpc/powernv: make symbol 'mpipl_kobj' static

2021-04-09 Thread Bixuan Cui
The sparse tool complains as follows: arch/powerpc/platforms/powernv/opal-core.c:74:16: warning: symbol 'mpipl_kobj' was not declared. This symbol is not used outside of opal-core.c, so marks it static. Reported-by: Hulk Robot Signed-off-by: Bixuan Cui ---

Re: [PATCH V1 1/2] soc: qcom: aoss: Expose send for generic usecase

2021-04-09 Thread Manivannan Sadhasivam
On Sun, Apr 04, 2021 at 12:17:52PM -0500, Bjorn Andersson wrote: > On Fri 02 Apr 01:17 CDT 2021, Deepak Kumar Singh wrote: > > > Not all upcoming usecases will have an interface to allow the aoss > > driver to hook onto. Expose the send api and create a get function to > > enable drivers to send

Re: [PATCH 00/13] tty.h cleanups

2021-04-09 Thread Johan Hovold
On Thu, Apr 08, 2021 at 08:01:08PM +0200, Greg Kroah-Hartman wrote: > On Thu, Apr 08, 2021 at 04:25:22PM +0200, Johan Hovold wrote: > > On Thu, Apr 08, 2021 at 02:51:21PM +0200, Greg Kroah-Hartman wrote: > > > Turns out there is a lot of tty-internal stuff in include/linux/tty.h > > > that do not

[PATCH] ARM: dts: mvebu: fix SPI device node

2021-04-09 Thread Arnd Bergmann
From: Arnd Bergmann dtc warns about a mismatched address: arch/arm/boot/dts/armada-385-atl-x530.dts:171.14-199.4: Warning (spi_bus_reg): /soc/spi@10680/spi-flash@0: SPI bus unit address format error, expected "1" I assume the "reg" property is correct here, so adjust the unit address

Re: [PATCH] crypto: chelsio: fix incorrect kernel-doc comment syntax in file

2021-04-09 Thread Herbert Xu
On Mon, Mar 29, 2021 at 04:15:14PM +0530, Aditya Srivastava wrote: > The opening comment mark '/**' is used for highlighting the beginning of > kernel-doc comments. > The header for drivers/crypto/chelsio/chcr_core.c follows this syntax, but > the content inside does not comply with kernel-doc. >

Re: crypto: possible NULL reference

2021-04-09 Thread Herbert Xu
On Mon, Mar 29, 2021 at 09:11:17PM -0700, Randy Dunlap wrote: > > Is there something else protecting the improper use of > in these cases? or is a patch warranted? The curve ID is always hard-coded and AFAIK we don't have any use-cases where an unsupported curve ID is used. Cheers, -- Email:

Re: [PATCH v2 16/21] ipmi: kcs_bmc: Add a "raw" character device interface

2021-04-09 Thread Arnd Bergmann
On Fri, Mar 19, 2021 at 7:31 AM Andrew Jeffery wrote: > > The existing IPMI chardev encodes IPMI behaviours as the name suggests. > However, KCS devices are useful beyond IPMI (or keyboards), as they > provide a means to generate IRQs and exchange arbitrary data between a > BMC and its host

Re: [PATCH 4/4] KVM: hyper-v: Advertise support for fast XMM hypercalls

2021-04-09 Thread Siddharth Chandrasekaran
On Fri, Apr 09, 2021 at 09:38:03AM +0200, Vitaly Kuznetsov wrote: > Siddharth Chandrasekaran writes: > > On Thu, Apr 08, 2021 at 04:44:23PM +0200, Vitaly Kuznetsov wrote: > >> Siddharth Chandrasekaran writes: > >> > On Thu, Apr 08, 2021 at 02:05:53PM +0200, Vitaly Kuznetsov wrote: > >> >>

Re: [PATCH v3 1/2] kunit: add a KUnit test for SLUB debugging functionality

2021-04-09 Thread Brendan Higgins
On Thu, Apr 8, 2021 at 10:19 AM Daniel Latypov wrote: > > On Thu, Apr 8, 2021 at 3:30 AM Marco Elver wrote: > > > > On Tue, 6 Apr 2021 at 12:57, Vlastimil Babka wrote: > > > > > > > > > On 4/1/21 11:24 PM, Marco Elver wrote: > > > > On Thu, 1 Apr 2021 at 21:04, Daniel Latypov wrote: > > > >> >

[PATCH -next] drm/hisilicon/kirin: Remove redundant DRM_ERROR call in dsi_parse_dt()

2021-04-09 Thread Chen Hui
There is a error message within devm_ioremap_resource already, so remove the DRM_ERROR call to avoid redundant error message. Signed-off-by: Chen Hui --- drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

Re: [PATCH v2] crypto: hisilicon/qm - delete redundant code

2021-04-09 Thread Herbert Xu
On Fri, Apr 02, 2021 at 07:22:30PM +0800, Kai Ye wrote: > The "qdma" is a structure variable instead of actual data. This > structure doesn't need to be zerod, The memset is useless and redundant. > So delete it. > > Signed-off-by: Kai Ye > --- > Changes v1 -> v2: > Re-edit the description. >

Re: [PATCH] crypto: qat: Fix a double free in adf_create_ring

2021-04-09 Thread Herbert Xu
On Fri, Apr 02, 2021 at 10:13:48AM -0700, Lv Yunlong wrote: > In adf_create_ring, if the callee adf_init_ring() failed, the callee will > free the ring->base_addr by dma_free_coherent() and return -EFAULT. Then > adf_create_ring will goto err and the ring->base_addr will be freed again > in

Re: [PATCH v1 2/2] drivers/gpu/drm: don't select DMA_CMA or CMA from aspeed or etnaviv

2021-04-09 Thread David Hildenbrand
On 08.04.21 15:19, Arnd Bergmann wrote: On Thu, Apr 8, 2021 at 2:50 PM Linus Walleij wrote: On Thu, Apr 8, 2021 at 2:01 PM David Hildenbrand wrote: This is something you could do using a hidden helper symbol like config DRMA_ASPEED_GFX bool "Aspeed display driver" select

Re: [RFC][PATCH] mm: Split page_has_private() in two to better handle PG_private_2

2021-04-09 Thread David Howells
Linus Torvalds wrote: > > #define PAGE_FLAGS_PRIVATE \ > > (1UL << PG_private | 1UL << PG_private_2) > > I think this should be re-named to be PAGE_FLAGS_CLEANUP, because I > don't think it makes any other sense to "combine" the two PG_private* > bits any

Re: [RFC v2] KVM: x86: Support KVM VMs sharing SEV context

2021-04-09 Thread Paolo Bonzini
On 09/04/21 03:18, James Bottomley wrote: If you want to share ASIDs you have to share the firmware that the running VM has been attested to. Once the VM moves from LAUNCH to RUNNING, the PSP won't allow the VMM to inject any more firmware or do any more attestations. I think Steve is

[PATCH] [v2] dmaengine: tegra20: Fix runtime PM imbalance on error

2021-04-09 Thread Dinghao Liu
pm_runtime_get_sync() will increase the runtime PM counter even it returns an error. Thus a pairing decrement is needed to prevent refcount leak. Fix this by replacing this API with pm_runtime_resume_and_get(), which will not change the runtime PM counter on error. Signed-off-by: Dinghao Liu ---

Re: [PATCH 1/6] PM: runtime: enable wake irq after runtime_suspend hook called

2021-04-09 Thread Chunfeng Yun
On Fri, 2021-04-09 at 08:39 +0300, Tony Lindgren wrote: > * Chunfeng Yun [210409 01:54]: > > On Thu, 2021-04-08 at 19:41 +0200, Rafael J. Wysocki wrote: > > > On Thu, Apr 8, 2021 at 11:35 AM Chunfeng Yun > > > wrote: > > > > > > > > When the dedicated wake irq is level trigger, enable it before

[PATCH] [v3, 1/1] clocksource/drivers/timer-mediatek: optimize systimer irq clear flow on shutdown

2021-04-09 Thread Fengquan Chen
mtk_syst_clkevt_shutdown is called after irq disabled in suspend flow, clear any pending systimer irq when shutdown to avoid suspend aborted due to timer irq pending Also as for systimer in mediatek socs, there must be firstly enable timer before clear systimer irq Fixes:

[PATCH] [v3, 1/1] clocksource/drivers/timer-mediatek: optimize systimer irq clear flow on shutdown

2021-04-09 Thread Fengquan Chen
mtk_syst_clkevt_shutdown is called after irq disabled in suspend flow, clear any pending systimer irq when shutdown to avoid suspend aborted due to timer irq pending Also as for systimer in mediatek socs, there must be firstly enable timer before clear systimer irq Fixes:

Re: [kbuild-all] Re: [PATCH] mm: gup: remove FOLL_SPLIT

2021-04-09 Thread Rong Chen
Hi John, On 3/30/21 3:08 PM, John Hubbard wrote: On 3/29/21 11:24 PM, kernel test robot wrote: Hi Yang, Thank you for the patch! Yet something to improve: [auto build test ERROR on hnaz-linux-mm/master] url:

Re: [PATCH v4 01/16] perf/x86/intel: Add x86_pmu.pebs_vmx for Ice Lake Servers

2021-04-09 Thread Like Xu
Hi Liuxiangdong, On 2021/4/9 16:33, Liuxiangdong (Aven, Cloud Infrastructure Service Product Dept.) wrote: Do you have any comments or ideas about it ? https://lore.kernel.org/kvm/606e5ef6.2060...@huawei.com/ My expectation is that there may be many fewer PEBS samples on Skylake without any

Re: [PATCH v2] tee: amdtee: unload TA only when its refcount becomes 0

2021-04-09 Thread Dan Carpenter
On Mon, Apr 05, 2021 at 03:13:09PM +0530, Rijo Thomas wrote: > @@ -340,7 +398,8 @@ int handle_open_session(struct tee_ioctl_open_session_arg > *arg, u32 *info, > > int handle_load_ta(void *data, u32 size, struct tee_ioctl_open_session_arg > *arg) > { > - struct tee_cmd_load_ta cmd = {0};

Re: [PATCH v2] platform/x86: add Gigabyte WMI temperature driver

2021-04-09 Thread Thomas Weißschuh
On Do, 2021-04-08T08:00-0700, Guenter Roeck wrote: > On 4/8/21 2:36 AM, Hans de Goede wrote: > > On 4/7/21 9:43 PM, Thomas Weißschuh wrote: > >> On Mi, 2021-04-07T17:54+0200, Hans de Goede wrote: > > Jean, Guenter, > > > > Thomas has been working on a WMI driver to expose various motherboard > >

[PATCH v4 0/3] Move kernel mapping outside the linear mapping

2021-04-09 Thread Alexandre Ghiti
I decided to split sv48 support in small series to ease the review. This patchset pushes the kernel mapping (modules and BPF too) to the last 4GB of the 64bit address space, this allows to: - implement relocatable kernel (that will come later in another patchset) that requires to move the

Re: [PATCH v2 10/21] ipmi: kcs_bmc: Turn the driver data-structures inside-out

2021-04-09 Thread Zev Weiss
On Fri, Apr 09, 2021 at 12:59:09AM CDT, Andrew Jeffery wrote: > > >On Fri, 9 Apr 2021, at 13:27, Zev Weiss wrote: >> On Fri, Mar 19, 2021 at 01:27:41AM CDT, Andrew Jeffery wrote: >> >Make the KCS device drivers responsible for allocating their own memory. >> > >> >Until now the private data for

Re: [PATCH 17/17] bit_spinlock: Track bit spin locks with lockdep

2021-04-09 Thread kernel test robot
plied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Matthew-Wilcox-Oracle/Provide-lockdep-tracking-for-bit-spin-locks/20210409-110522

Re: [PATCH 09/20] kbuild: arm64: use common install script

2021-04-09 Thread Greg Kroah-Hartman
On Thu, Apr 08, 2021 at 08:08:18PM -0700, Kees Cook wrote: > On Wed, Apr 07, 2021 at 07:34:08AM +0200, Greg Kroah-Hartman wrote: > > The common scripts/install.sh script will now work for arm65, no changes > > nit: arm64 Hah! Thanks for the reviews, I'll be doing a new series soon based on

[PATCH -next] media: sunxi: sun8i-rotate: fix PM reference leak in rotate_start_streaming()

2021-04-09 Thread Xiang Yang
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. Fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced. Reported-by: Hulk Robot Signed-off-by: Xiang Yang ---

Re: [PATCH v2 16/21] ipmi: kcs_bmc: Add a "raw" character device interface

2021-04-09 Thread Andrew Jeffery
On Fri, 9 Apr 2021, at 14:47, Zev Weiss wrote: > On Fri, Mar 19, 2021 at 01:27:47AM CDT, Andrew Jeffery wrote: > >The existing IPMI chardev encodes IPMI behaviours as the name suggests. > >However, KCS devices are useful beyond IPMI (or keyboards), as they > >provide a means to generate IRQs

Re: [PATCH v3 1/2] USB:ehci:Add a whitelist for EHCI controllers

2021-04-09 Thread Greg KH
On Fri, Apr 09, 2021 at 11:00:14AM +0800, Longfang Liu wrote: > Some types of EHCI controllers do not have SBRN registers. > By comparing the white list, the operation of reading the SBRN > registers is skipped. > > Subsequent EHCI controller types without SBRN registers can be > directly added

Re: [PATCH v2 0/2] USB:ehci:fix the no SRBN register problem

2021-04-09 Thread Greg KH
On Fri, Apr 09, 2021 at 10:42:35AM +0800, liulongfang wrote: > On 2021/4/8 22:53, Alan Stern wrote: > > On Thu, Apr 08, 2021 at 09:49:18PM +0800, Longfang Liu wrote: > >> (1) Add a whitelist for EHCI devices without SBRN registers. > >> (2) Add Kunpeng920's EHCI device to the whitelist. > >> > >>

Re: [PATCH] clk: uniphier: Fix potential infinite loop

2021-04-09 Thread Masahiro Yamada
On Thu, Apr 8, 2021 at 12:25 AM Colin King wrote: > > From: Colin Ian King > > The for-loop iterates with a u8 loop counter i and compares this > with the loop upper limit of num_parents that is an int type. > There is a potential infinite loop if num_parents is larger than > the u8 loop

[PATCH -next] powerpc/xmon: Make symbol 'spu_inst_dump' static

2021-04-09 Thread Pu Lehui
Fix sparse warning: arch/powerpc/xmon/xmon.c:4216:1: warning: symbol 'spu_inst_dump' was not declared. Should it be static? This symbol is not used outside of xmon.c, so make it static. Signed-off-by: Pu Lehui --- arch/powerpc/xmon/xmon.c | 3 +-- 1 file changed, 1 insertion(+), 2

Re: [PATCH v5 2/4] drivers/tty/serial/8250: refactor sirq and lpc address setting code

2021-04-09 Thread Zev Weiss
On Fri, Apr 09, 2021 at 12:06:16AM CDT, Andrew Jeffery wrote: On Thu, 8 Apr 2021, at 10:46, Zev Weiss wrote: This splits dedicated aspeed_vuart_set_{sirq,lpc_address}() functions out of the sysfs store functions in preparation for adding DT properties that will be poking the same registers.

Re: [PATCH 2/2] KVM: x86: Fix split-irqchip vs interrupt injection window request

2021-04-09 Thread Lai Jiangshan
On Fri, Nov 27, 2020 at 7:26 PM Paolo Bonzini wrote: > > kvm_cpu_accept_dm_intr and kvm_vcpu_ready_for_interrupt_injection are > a hodge-podge of conditions, hacked together to get something that > more or less works. But what is actually needed is much simpler; > in both cases the fundamental

RE: [PATCH 2/3] fpga: dfl: Add DFL bus driver for Altera SPI Master

2021-04-09 Thread Wu, Hao
> On Fri, Apr 09, 2021 at 12:02:47PM +0800, Wu, Hao wrote: > > > > > > > > > > + > > > > > > > > > > +static void dfl_spi_altera_remove(struct dfl_device > > > > > > > > > > *dfl_dev) > > > > > > > > > > +{ > > > > > > > > > > +struct dfl_altera_spi *aspi = > > > > > > > > > >

Re: [PATCH] crypto: cbc - fix coding style

2021-04-09 Thread Herbert Xu
On Thu, Apr 01, 2021 at 03:31:41PM +0800, Zhiqi Song wrote: > Fixed following checkpatch error: > - do not use assignment in if condition > > Signed-off-by: Zhiqi Song > --- > crypto/cbc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) This patch does not appear to improve the code.

Re: [RFC v3 0/2] CPU-Idle latency selftest framework

2021-04-09 Thread Pratik Sampat
Hello Doug, On 09/04/21 10:53 am, Doug Smythies wrote: Hi Pratik, I tried V3 on a Intel i5-10600K processor with 6 cores and 12 CPUs. The core to cpu mappings are: core 0 has cpus 0 and 6 core 1 has cpus 1 and 7 core 2 has cpus 2 and 8 core 3 has cpus 3 and 9 core 4 has cpus 4 and 10 core 5

Re: [PATCH v2 5/5] crypto: hisilicon/sgl - fix the sg buf unmap

2021-04-09 Thread Herbert Xu
On Tue, Mar 30, 2021 at 03:39:06PM +0800, Kai Ye wrote: > Add clear data operation for sge data. > > Signed-off-by: Kai Ye > --- > drivers/crypto/hisilicon/sgl.c | 14 +- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/drivers/crypto/hisilicon/sgl.c

Re: [PATCH] mm/mapping_dirty_helpers: Guard hugepage pud's usage

2021-04-09 Thread Intel
On 4/8/21 9:15 PM, Zack Rusin wrote: Lets make sure we don't use pud hugepage helpers on architectures which do not support it. This fixes the code on arm64. nits: Perhaps be a little more specific about what it fixes? I figure it's a compilation failure? Also please use imperative form:

[PATCH net] net: hns3: Trivial spell fix in hns3 driver

2021-04-09 Thread Salil Mehta
Some trivial spelling mistakes which caught my eye during the review of the code. Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)

Re: [PATCH v2 00/10] Initial support for Nuvoton WPCM450 BMC SoC

2021-04-09 Thread Jonathan Neuschäfer
On Fri, Apr 09, 2021 at 04:37:34AM +, Joel Stanley wrote: > On Tue, 6 Apr 2021 at 21:59, Jonathan Neuschäfer > wrote: > > > > On Tue, Apr 06, 2021 at 05:15:01PM +0200, Arnd Bergmann wrote: > > > On Tue, Apr 6, 2021 at 2:09 PM Jonathan Neuschäfer > > > wrote: > > > > > > > > This series adds

Re: [PATCH v4 1/2] KVM: arm64: Move CMOs from user_mem_abort to the fault handlers

2021-04-09 Thread Quentin Perret
Hi Yanan, On Friday 09 Apr 2021 at 11:36:51 (+0800), Yanan Wang wrote: > diff --git a/arch/arm64/kvm/hyp/pgtable.c b/arch/arm64/kvm/hyp/pgtable.c > +static void stage2_invalidate_icache(void *addr, u64 size) > +{ > + if (icache_is_aliasing()) { > + /* Flush any kind of VIPT icache

Re: [PATCH 1/2] linux/kconfig.h: replace IF_ENABLED() with PTR_IF() in

2021-04-09 Thread Paul Cercueil
Hi Masahiro, Le ven. 9 avril 2021 à 5:58, Masahiro Yamada a écrit : is included from all the kernel-space source files, including C, assembly, linker scripts. It is intended to contain minimal set of macros to evaluate CONFIG options. IF_ENABLED() is an intruder here because (x ? y : z)

Re: [v7,3/3] thermal: mediatek: add another get_temp ops for thermal sensors

2021-04-09 Thread Daniel Lezcano
On 16/03/2021 08:01, Michael Kao wrote: > Provide thermal zone to read thermal sensor > in the SoC. We can read all the thermal sensors > value in the SoC by the node /sys/class/thermal/ > > In mtk_thermal_bank_temperature, return -EAGAIN instead of -EACCESS > on the first read of sensor that

[PATCH v2 -next 0/3] Add missing MODULE_DEVICE_TABLE

2021-04-09 Thread Chen Hui
v2: - separate from one patch into three patches - add fixes tags Chen Hui (3): clk: qcom: a7-pll: Add missing MODULE_DEVICE_TABLE clk: qcom: a53-pll: Add missing MODULE_DEVICE_TABLE clk: qcom: apss-ipq-pll: Add missing MODULE_DEVICE_TABLE drivers/clk/qcom/a53-pll.c | 1 +

[PATCH v2 -next 2/3] clk: qcom: a53-pll: Add missing MODULE_DEVICE_TABLE

2021-04-09 Thread Chen Hui
CONFIG_QCOM_A53PLL is tristate option and therefore this driver can be compiled as a module. This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module. Fixes: 0c6ab1b8f894 ("clk: qcom: Add

[PATCH v2 -next 1/3] clk: qcom: a7-pll: Add missing MODULE_DEVICE_TABLE

2021-04-09 Thread Chen Hui
CONFIG_QCOM_A7PLL is tristate option and therefore this driver can be compiled as a module. This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module. Fixes: 5a5223ffd7ef ("clk: qcom: Add A7

[PATCH v2 -next 3/3] clk: qcom: apss-ipq-pll: Add missing MODULE_DEVICE_TABLE

2021-04-09 Thread Chen Hui
CONFIG_IPQ_APSS_PLL is tristate option and therefore this driver can be compiled as a module. This patch adds missing MODULE_DEVICE_TABLE definition which generates correct modalias for automatic loading of this driver when it is built as an external module. Fixes: ecd2bacfbbc4 ("clk: qcom: Add

[PATCH net-next 0/3] net: add new properties for of_get_mac_address from nvmem

2021-04-09 Thread Joakim Zhang
This patch set adds new properties for of_get_mac_address from nvmem. Fugang Duan (3): dt-bindings: net: add new properties for of_get_mac_address from nvmem net: ethernet: add property "nvmem_macaddr_swap" to swap macaddr bytes order of_net: add property "nvmem-mac-address" for

[PATCH net-next 1/3] dt-bindings: net: add new properties for of_get_mac_address from nvmem

2021-04-09 Thread Joakim Zhang
From: Fugang Duan Currently, of_get_mac_address supports NVMEM, some platforms MAC address that read from NVMEM efuse requires to swap bytes order, so add new property "nvmem_macaddr_swap" to specify the behavior. If the MAC address is valid from NVMEM, add new property "nvmem-mac-address" in

Re: [PATCH] mm/page_alloc: Ensure that HUGETLB_PAGE_ORDER is less than MAX_ORDER

2021-04-09 Thread Anshuman Khandual
On 4/9/21 1:54 PM, David Hildenbrand wrote: > On 09.04.21 07:55, Anshuman Khandual wrote: >> pageblock_order must always be less than MAX_ORDER, otherwise it might lead >> to an warning during boot. A similar problem got fixed on arm64 platform >> with the commit 79cc2ed5a716 ("arm64/mm: Drop

[PATCH net-next 2/3] net: ethernet: add property "nvmem_macaddr_swap" to swap macaddr bytes order

2021-04-09 Thread Joakim Zhang
From: Fugang Duan ethernet controller driver call .of_get_mac_address() to get the mac address from devictree tree, if these properties are not present, then try to read from nvmem. For example, read MAC address from nvmem: of_get_mac_address() of_get_mac_addr_nvmem()

Re: [PATCH v4] USB:ehci:fix Kunpeng920 ehci hardware problem

2021-04-09 Thread liulongfang
On 2021/4/9 16:31, Longfang Liu wrote: > Kunpeng920's EHCI controller does not have SBRN register. > Reading the SBRN register when the controller driver is > initialized will get 0. > > When rebooting the EHCI driver, ehci_shutdown() will be called. > if the sbrn flag is 0, ehci_shutdown() will

Re: [PATCH 1/6] PM: runtime: enable wake irq after runtime_suspend hook called

2021-04-09 Thread Chunfeng Yun
On Fri, 2021-04-09 at 13:32 +0800, Ikjoon Jang wrote: > Hi Chunfeng, > > On Thu, Apr 8, 2021 at 5:35 PM Chunfeng Yun wrote: > > > > When the dedicated wake irq is level trigger, enable it before > > calling runtime_suspend, will trigger an interrupt. > > > > e.g. > > for a low level trigger

[PATCH] gpu/drm: mediatek: hdmi: check for valid modes on MT8167

2021-04-09 Thread Neil Armstrong
On MT8167, only CEA modes and anything using a clock below 148500 is supported for HDMI. This change adds some checks to make sure the video format is OK for MT8167. Signed-off-by: Fabien Parent Signed-off-by: Neil Armstrong --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 17 + 1

[PATCH -next] hwrng: exynos - fix PM reference leak in exynos_trng_probe()

2021-04-09 Thread Ye Weihua
pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to putting operation will result in reference leak here. Fix it by replacing it with pm_runtime_resume_and_get to keep usage counter balanced. Reported-by: Hulk Robot Signed-off-by: Ye Weihua ---

Re: [PATCH v4] binder: tell userspace to dump current backtrace when detected oneway spamming

2021-04-09 Thread Hang Lu
On 4/9/2021 2:08 PM, Greg KH wrote: > On Fri, Apr 09, 2021 at 11:40:57AM +0800, Hang Lu wrote: >> When async binder buffer got exhausted, some normal oneway transactions >> will also be discarded and may cause system or application failures. By >> that time, the binder debug information we dump

Re: [PATCH 4/4] mm/hugeltb: handle the error case in hugetlb_fix_reserve_counts()

2021-04-09 Thread Miaohe Lin
On 2021/4/9 13:04, Andrew Morton wrote: > On Fri, 9 Apr 2021 11:17:49 +0800 Miaohe Lin wrote: > >> On 2021/4/9 7:25, Mike Kravetz wrote: >>> On 4/2/21 2:32 AM, Miaohe Lin wrote: A rare out of memory error would prevent removal of the reserve map region for a page.

Re: [PATCH v4 08/16] KVM: x86/pmu: Add IA32_DS_AREA MSR emulation to manage guest DS buffer

2021-04-09 Thread Xu, Like
Hi Peter, On 2021/4/8 15:52, Peter Zijlstra wrote: This is because in the early part of this function, we have operations:     if (x86_pmu.flags & PMU_FL_PEBS_ALL)         arr[0].guest &= ~cpuc->pebs_enabled;     else         arr[0].guest &= ~(cpuc->pebs_enabled & PEBS_COUNTER_MASK); and

Re: [PATCH] crypto: deflate - Remove useless call "zlib_inflateEnd"

2021-04-09 Thread Herbert Xu
On Wed, Mar 31, 2021 at 11:34:57AM +0800, Jiapeng Chong wrote: > Fix the following whitescan warning: > > Calling "zlib_inflateEnd(>decomp_stream)" is only useful for its > return value, which is ignored. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > crypto/deflate.c | 1

Re: [RFC PATCH 5/5] tracing: Add the osnoise tracer

2021-04-09 Thread Daniel Bristot de Oliveira
On 4/8/21 5:58 PM, Jonathan Corbet wrote: > Daniel Bristot de Oliveira writes: > > A quick nit: > >> Documentation/trace/osnoise_tracer.rst | 149 ++ >> include/linux/ftrace_irq.h | 16 + >> include/trace/events/osnoise.h | 141 ++ >> kernel/trace/Kconfig

Re: Problem in pfmemalloc skb handling in net/core/dev.c

2021-04-09 Thread Mel Gorman
On Thu, Apr 08, 2021 at 11:52:01AM -0700, Xie He wrote: > Hi Mel Gorman, > > I may have found a problem in pfmemalloc skb handling in > net/core/dev.c. I see there are "if" conditions checking for > "sk_memalloc_socks() && skb_pfmemalloc(skb)", and when the condition > is true, the skb is handled

Re: [PATCH -next] ASoC: sti: sti_uniperif: add missing MODULE_DEVICE_TABLE

2021-04-09 Thread Arnaud POULIQUEN
On 4/9/21 3:59 AM, Chen Lifu wrote: > This patch adds missing MODULE_DEVICE_TABLE definition which generates > correct modalias for automatic loading of this driver when it is built > as an external module. > > Reported-by: Hulk Robot > Signed-off-by: Chen Lifu Reviewed-by: Arnaud Pouliquen

Re: [PATCH][V2] crypto: sa2ul: Fix memory leak of rxd

2021-04-09 Thread Herbert Xu
On Thu, Apr 01, 2021 at 04:28:39PM +0100, Colin King wrote: > From: Colin Ian King > > There are two error return paths that are not freeing rxd and causing > memory leaks. Fix these. > > Addresses-Coverity: ("Resource leak") > Fixes: 00c9211f60db ("crypto: sa2ul - Fix DMA mapping API usage")

Re: [PATCH][next] crypto: sun8i-ss: Fix memory leak of pad

2021-04-09 Thread Herbert Xu
On Thu, Apr 01, 2021 at 04:18:27PM +0100, Colin King wrote: > From: Colin Ian King > > It appears there are several failure return paths that don't seem > to be free'ing pad. Fix these. > > Addresses-Coverity: ("Resource leak") > Fixes: d9b45418a917 ("crypto: sun8i-ss - support hash

Re: [PATCH] crypto:hisilicon/sec - fixup checking the 3DES weak key

2021-04-09 Thread Herbert Xu
On Fri, Apr 02, 2021 at 10:47:57AM +0800, Kai Ye wrote: > skcipher: Add a verifying to check whether the triple DES key > is weak. > > Signed-off-by: Kai Ye > --- > drivers/crypto/hisilicon/sec2/sec_crypto.c | 13 +++-- > 1 file changed, 11 insertions(+), 2 deletions(-) Patch applied.

Re: [PATCH 02/10] mm/numa: automatically generate node migration order

2021-04-09 Thread Oscar Salvador
On Thu, Apr 08, 2021 at 02:51:20PM -0700, Dave Hansen wrote: > I've fleshed out the description a bit. I hope this helps? Yes, thanks Dave, both additions look fine to me. -- Oscar Salvador SUSE L3

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

2021-04-09 Thread David Hildenbrand
On 09.04.21 09:14, Alex Ghiti wrote: Le 4/9/21 à 2:51 AM, Alexandre Ghiti a écrit : From: Vitaly Wool Introduce XIP (eXecute In Place) support for RISC-V platforms. It allows code to be executed directly from non-volatile storage directly addressable by the CPU, such as QSPI NOR flash which

Re: [Freedreno] [PATCH 1/3] drm/msm/mdp5: Configure PP_SYNC_HEIGHT to double the vtotal

2021-04-09 Thread Marijn Suijten
Hi Abhinav, Angelo, Rob, On 4/9/21 2:08 AM, Rob Clark wrote: On Thu, Apr 8, 2021 at 4:16 PM AngeloGioacchino Del Regno wrote: Il gio 8 apr 2021, 21:05 Rob Clark ha scritto: On Wed, Apr 7, 2021 at 12:11 PM AngeloGioacchino Del Regno wrote: Il 07/04/21 20:19, abhin...@codeaurora.org ha

[PATCH] [v2] media: imx: imx7-mipi-csis: Fix runtime PM imbalance in mipi_csis_s_stream

2021-04-09 Thread Dinghao Liu
When v4l2_subdev_call() fails, a pairing PM usage counter decrement is needed to keep the counter balanced. It's the same for the following error paths in case 'enable' is on. Signed-off-by: Dinghao Liu --- Changelog: v2: - Use pm_runtime_put() to balance the refcount. ---

Re: [PATCH v1 1/1] kernel.h: Split out panic and oops helpers

2021-04-09 Thread Andy Shevchenko
On Thu, Apr 08, 2021 at 11:23:03PM -0700, Andrew Morton wrote: > On Wed, 7 Apr 2021 11:46:37 +0300 Andy Shevchenko > wrote: > > > On Wed, Apr 7, 2021 at 11:17 AM Kees Cook wrote: > > > > > > On Tue, Apr 06, 2021 at 04:31:58PM +0300, Andy Shevchenko wrote: > > > > kernel.h is being used as a

Re: [Outreachy kernel] Re: [PATCH 1/2 v2] staging: media: hantro: Align line break to the open parenthesis in file hantro_hw.h

2021-04-09 Thread Vaishali Thakkar
On Thu, Apr 8, 2021 at 7:41 PM ascordeiro wrote: > > Em qui, 2021-04-08 às 13:20 -0300, Ezequiel Garcia escreveu: > > Ola Aline, > Ola Ezequiel, > > > Welcome to the kernel community. Hope you enjoy some of this > > Outreachy adventures. > Thank you! > > > Normally, when you submit a v2, we want

[PATCH] media: staging/intel-ipu3: Fix race condition during set_fmt

2021-04-09 Thread Ricardo Ribalda
Do not modify imgu_pipe->nodes[inode].vdev_fmt.fmt.pix_mp, until the format has been correctly validated. Otherwise, even if we use a backup variable, there is a period of time where imgu_pipe->nodes[inode].vdev_fmt.fmt.pix_mp might have an invalid value that can be used by other functions. Cc:

Re: [PATCH V11 3/5] kbuild: Allow .dtso format for overlay source files

2021-04-09 Thread Masahiro Yamada
On Tue, Mar 16, 2021 at 5:01 PM Geert Uytterhoeven wrote: > > Hi Frank, > > On Tue, Mar 16, 2021 at 6:39 AM Frank Rowand wrote: > > On 3/15/21 5:12 PM, Laurent Pinchart wrote: > > > On Tue, Mar 16, 2021 at 02:43:45AM +0900, Masahiro Yamada wrote: > > >> But how can we fix

Re: [PATCH v2 12/21] ipmi: kcs_bmc: Strip private client data from struct kcs_bmc

2021-04-09 Thread Andrew Jeffery
On Fri, 9 Apr 2021, at 13:37, Zev Weiss wrote: > On Fri, Mar 19, 2021 at 01:27:43AM CDT, Andrew Jeffery wrote: > >Move all client-private data out of `struct kcs_bmc` into the KCS client > >implementation. > > > >With this change the KCS BMC core code now only concerns itself with > >abstract

[PATCH v4 1/3] riscv: Move kernel mapping outside of linear mapping

2021-04-09 Thread Alexandre Ghiti
This is a preparatory patch for relocatable kernel and sv48 support. The kernel used to be linked at PAGE_OFFSET address therefore we could use the linear mapping for the kernel mapping. But the relocated kernel base address will be different from PAGE_OFFSET and since in the linear mapping, two

Re: [PATCH v5 3/4] drivers/tty/serial/8250: add aspeed, lpc-io-reg and aspeed, lpc-interrupts DT properties

2021-04-09 Thread Zev Weiss
On Fri, Apr 09, 2021 at 12:14:54AM CDT, Andrew Jeffery wrote: Hi Zev, A couple of minor comments: On Thu, 8 Apr 2021, at 10:46, Zev Weiss wrote: These allow describing all the Aspeed VUART attributes currently available via sysfs. aspeed,sirq aspeed,lpc-interrupts now Ah right, thanks.

[Outreachy kernel] [PATCH v5] staging: rtl8723bs: Remove camelcase in several files

2021-04-09 Thread Fabio M. De Francesco
Remove camelcase in bFwCurrentInPSMode, a variable used by code of several subdirectories/files of the driver. Issue detected by checkpatch.pl. Delete the unnecessary "b" (that stands for "byte") from the beginning of the name. Signed-off-by: Fabio M. De Francesco --- Changes from v4: Mention

Re: [PATCH -next] mmc: sdhci-msm: Remove unnecessary error log

2021-04-09 Thread Manivannan Sadhasivam
On Fri, Apr 09, 2021 at 09:54:24AM +0800, Jia Yang wrote: > devm_ioremap_resource() has recorded error log, so it's > unnecessary to record log again. > > Reported-by: Hulk Robot > Signed-off-by: Jia Yang Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > drivers/mmc/host/sdhci-msm.c

Re: [PATCH 3/4] mm/hugeltb: fix potential wrong gbl_reserve value for hugetlb_acct_memory()

2021-04-09 Thread Miaohe Lin
On 2021/4/9 12:37, Mike Kravetz wrote: > On 4/8/21 8:01 PM, Miaohe Lin wrote: >> On 2021/4/9 6:53, Mike Kravetz wrote: >>> >>> Yes, add a comment to hugetlb_unreserve_pages saying that !resv_map >>> implies freed == 0. >>> >> >> Sounds good! >> >>> It would also be helpful to check for (chg -

[PATCH -next v2] clocksource/drivers/qcom: add missing iounmap() on error in msm_dt_timer_init()

2021-04-09 Thread Yang Yingliang
base and cpu0_base are not unmapped on error path, add the missing iounmap() before return msm_dt_timer_init() in the error handling cases. Fixes: 6e3321631ac2 ("ARM: msm: Add DT support to msm_timer") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang Reviewed-by: Manivannan Sadhasivam ---

Re: [RFC 0/4] Fix machine check recovery for copy_from_user

2021-04-09 Thread Aili Yao
On Thu, 8 Apr 2021 14:39:09 + "Luck, Tony" wrote: > > I have one scenario, may you take into account: > > > > If one copyin case occurs, write() returned by your patch, the user process > > may > > check the return values, for errors, it may exit the process, then the > > error page > >

[PATCH] arm: mach-s3c: Remove unnecessary break

2021-04-09 Thread Wan Jiabing
There is a return above the break. The break here is unnecessary. Remove it. Signed-off-by: Wan Jiabing --- arch/arm/mach-s3c/mach-rx1950.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-s3c/mach-rx1950.c b/arch/arm/mach-s3c/mach-rx1950.c index 6e19add158a9..9da94686001a

Re: [Outreachy kernel] [PATCH 2/2] media: zoran: replace bit shifts by BIT() macro

2021-04-09 Thread Julia Lawall
On Fri, 9 Apr 2021, Mitali Borkar wrote: > On Fri, Apr 09, 2021 at 12:10:06AM +0200, Julia Lawall wrote: > > > > > > On Fri, 9 Apr 2021, Mitali Borkar wrote: > > > > > On Thu, Apr 08, 2021 at 11:15:07PM +0200, Julia Lawall wrote: > > > > > > > > > > > > On Fri, 9 Apr 2021, Mitali Borkar wrote:

Re: [PATCH V2 1/2] soc: qcom: aoss: Expose send for generic usecase

2021-04-09 Thread kernel test robot
' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Deepak-Kumar-Singh/soc-qcom-aoss-Expose-send-for-generic-usecase/20210409-124213 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 17e7124aad766b3f158943acb51467f86220afe9

Re: [PATCH v3][next] xfs: Replace one-element arrays with flexible-array members

2021-04-09 Thread Gustavo A. R. Silva
Hi! I think I might have caught the issue: diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index e5e0713bebcd8..9231457371100 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -1937,17 +1937,17 @@ xfs_init_zones(void) goto out_destroy_trans_zone;

[PATCH 2/2] drm/ttm: optimize the pool shrinker a bit

2021-04-09 Thread Christian König
Switch back to using a spinlock again by moving the IOMMU unmap outside of the locked region. Signed-off-by: Christian König --- drivers/gpu/drm/ttm/ttm_pool.c | 40 +++--- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_pool.c

[PATCH 1/2] mm/vmscan: add sync_shrinkers function

2021-04-09 Thread Christian König
To be able to switch to a spinlock and reduce lock contention in the TTM shrinker we don't want to hold a mutex while unmapping and freeing pages from the pool. But then we somehow need to prevent a race between (for example) the shrinker trying to free pages and hotplug trying to remove the

Re: [PATCH 1/1] arm64: dts: mt8183-kukui: Enable thermal Tboard

2021-04-09 Thread Hsin-Yi Wang
On Fri, Apr 9, 2021 at 3:12 PM Michael Kao wrote: > > Add Tboard thermal sensor settings. > > pull-up voltage: 1800 mv > pull-up resistor: 75K > > Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc ) > AuxIn = Vsense * 4096 / 1500 > > TEST=boot kukui > check

Re: [RFC PATCH v1 00/11] Manage the top tier memory in a tiered memory

2021-04-09 Thread Michal Hocko
On Thu 08-04-21 13:29:08, Shakeel Butt wrote: > On Thu, Apr 8, 2021 at 11:01 AM Yang Shi wrote: [...] > > The low priority jobs should be able to be restricted by cpuset, for > > example, just keep them on second tier memory nodes. Then all the > > above problems are gone. Yes, if the aim is to

Re: [PATCH] staging: media: zoran: add '*' in subsequent line

2021-04-09 Thread Hans Verkuil
Hi Mitali, On 09/04/2021 01:05, Mitali Borkar wrote: > Added '*' in susbsequent lines for block comments to meet linux kernel > coding style. > > Signed-off-by: Mitali Borkar > --- > drivers/staging/media/zoran/zr36050.c | 34 +-- > 1 file changed, 17 insertions(+), 17

  1   2   3   4   5   6   7   8   9   10   >