Re: [PATCH] gcc-plugins: latent_entropy: remove unneeded semicolon

2021-03-03 Thread Kees Cook
On Sat, 18 Apr 2020 15:05:21 +0800, Jason Yan wrote: > Fix the following coccicheck warning: > > scripts/gcc-plugins/latent_entropy_plugin.c:539:2-3: Unneeded semicolon Applied to for-next/gcc-plugins, thanks! [1/1] gcc-plugins: latent_entropy: remove unneeded semicolon

Re: [PATCH] gcc-plugins: structleak: remove unneeded variable 'ret'

2021-03-03 Thread Kees Cook
On Sat, 18 Apr 2020 15:05:05 +0800, Jason Yan wrote: > Fix the following coccicheck warning: > > scripts/gcc-plugins/structleak_plugin.c:177:14-17: Unneeded variable: > "ret". Return "0" on line 207 Applied to for-next/gcc-plugins, thanks! [1/1] gcc-plugins: structleak: remove unneeded variable

Re: [PATCH AUTOSEL 5.10 22/47] clk: qcom: gdsc: Implement NO_RET_PERIPH flag

2021-03-03 Thread Stephen Boyd
Quoting Sasha Levin (2021-03-02 03:56:21) > From: AngeloGioacchino Del Regno > > [ Upstream commit 785c02eb35009a4be6dbc68f4f7d916e90b7177d ] > > In some rare occasions, we want to only set the RETAIN_MEM bit, but > not the RETAIN_PERIPH one: this is seen on at least SDM630/636/660's > GPU-GX

Re: [PATCH 12/15] ASoC: cs42l42: Wait at least 150us after writing SCLK_PRESENT

2021-03-03 Thread kernel test robot
in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Lucas-Tanure/Report-jack-and-button-detection-Capture-Support/20210303-012348 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next config: microblaze-randconfig-c003

Re: [PATCH] mm/memcg: set memcg when split pages

2021-03-03 Thread Johannes Weiner
On Tue, Mar 02, 2021 at 12:24:41PM -0800, Hugh Dickins wrote: > On Tue, 2 Mar 2021, Michal Hocko wrote: > > [Cc Johannes for awareness and fixup Nick's email] > > > > On Tue 02-03-21 01:34:51, Zhou Guanghui wrote: > > > When split page, the memory cgroup info recorded in first page is > > > not

[PATCH] Leds: made enum led_brightness into typedef

2021-03-03 Thread Antoni Przybylik
In TODO it was written: * Get rid of enum led_brightness It is really an integer, as maximum is configurable. Get rid of it, or make it into typedef or something. So I made it into typedef. Signed-off-by: Antoni Przybylik --- drivers/leds/TODO | 5

Re: [PATCH AUTOSEL 5.11 26/52] clk: qcom: gdsc: Implement NO_RET_PERIPH flag

2021-03-03 Thread Stephen Boyd
Quoting Sasha Levin (2021-03-02 03:55:07) > From: AngeloGioacchino Del Regno > > [ Upstream commit 785c02eb35009a4be6dbc68f4f7d916e90b7177d ] > > In some rare occasions, we want to only set the RETAIN_MEM bit, but > not the RETAIN_PERIPH one: this is seen on at least SDM630/636/660's > GPU-GX

[PATCH] ASoC: cs42l42: fix semicolon.cocci warnings

2021-03-03 Thread kernel test robot
/linux/commits/Lucas-Tanure/Report-jack-and-button-detection-Capture-Support/20210303-012348 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next cs42l42.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/codecs/cs42l42.c +++ b/sound/soc

Re: Why do kprobes and uprobes singlestep?

2021-03-03 Thread Alexei Starovoitov
On Tue, Mar 2, 2021 at 1:02 PM Andy Lutomirski wrote: > > > > On Mar 2, 2021, at 12:24 PM, Alexei Starovoitov > > wrote: > > > > On Tue, Mar 2, 2021 at 10:38 AM Andy Lutomirski wrote: > >> > >> Is there something like a uprobe test suite? How maintained / > >> actively used is uprobe? > > >

Re: [PATCH 10/13] rcu/nocb: Delete bypass_timer upon nocb_gp wakeup

2021-03-03 Thread Paul E. McKenney
On Tue, Feb 23, 2021 at 01:10:08AM +0100, Frederic Weisbecker wrote: > A NOCB-gp wake up can safely delete the nocb_bypass_timer. nocb_gp_wait() > is going to check again the bypass state and rearm the bypass timer if > necessary. > > Signed-off-by: Frederic Weisbecker > Cc: Josh Triplett > Cc:

[V1,1/1] platform/x86: add support for Advantech software defined button

2021-03-03 Thread YingChieh, Ho
From: "Andrea.Ho" Advantech sw_button is a ACPI event trigger button. With this driver, we can report KEY_EVENT on the Advantech Tabletop Network Appliances products and it has been tested in FWA1112VC. Add the software define button support to report EV_REP key_event (BTN_TRIGGER_HAPPY) by

Re: [PATCH v5 0/5] mm/hugetlb: Early cow on fork, and a few cleanups

2021-03-03 Thread Linus Torvalds
On Tue, Mar 2, 2021 at 5:47 PM Peter Xu wrote: > > As Jason and Wei pointed out, I think some userspace still got corrupted data > without this series when using hugetlb backend. I don't think it'll suite for > a late RC release but it'll still be great if it can be considered as an early > rc

Re: [Cocci] linux-kernel janitorial RFP: Mark static arrays as const

2021-03-03 Thread Joe Perches
On Tue, 2021-03-02 at 22:41 +0100, Julia Lawall wrote: > > On Tue, 2 Mar 2021, Joe Perches wrote: > > > Here is a possible opportunity to reduce data usage in the kernel. > > Does it actually reduce data usage? Yes, at least for gcc. For instance: $ gcc --version gcc (Ubuntu

Re: [PATCH v17 1/9] mm: memory_hotplug: factor out bootmem core functions to bootmem_info.c

2021-03-03 Thread Singh, Balbir
On 26/2/21 12:21 am, Muchun Song wrote: > Move bootmem info registration common API to individual bootmem_info.c. > And we will use {get,put}_page_bootmem() to initialize the page for the > vmemmap pages or free the vmemmap pages to buddy in the later patch. > So move them out of

[PATCH v24 10/14] mm/damon/dbgfs: Support multiple contexts

2021-03-03 Thread SeongJae Park
From: SeongJae Park In some use cases, users would want to run multiple monitoring context. For example, if a user wants a high precision monitoring and dedicating multiple CPUs for the job is ok, because DAMON creates one monitoring thread per one context, the user can split the monitoring

[PATCH v24 11/14] Documentation: Add documents for DAMON

2021-03-03 Thread SeongJae Park
From: SeongJae Park This commit adds documents for DAMON under `Documentation/admin-guide/mm/damon/` and `Documentation/vm/damon/`. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/guide.rst | 159 ++ Documentation/admin-guide/mm/damon/index.rst | 15 +

Re: [RFC net-next] net: dsa: rtl8366rb: support bridge offloading

2021-03-03 Thread Florian Fainelli
On 2/23/2021 10:12 PM, DENG Qingfang wrote: > Use port isolation registers to configure bridge offloading. > Remove the VLAN init, as we have proper CPU tag and bridge offloading > support now. > > Signed-off-by: DENG Qingfang > --- > This is not tested, as I don't have a RTL8366RB board. And

CONGRATULATIONS €2.200.000.00 HAVE BEEN DONATED TO YOU.

2021-03-03 Thread MR
Hello, I'm Stefano Pessina, an Italian business tycoon, investor, and philanthropist.the vice chairman, chief executive officer (CEO), and the single largest shareholder of Walgreens Boots Alliance. I gave away 25 percent of my personal wealth to charity. And I also pledged to give away the

[PATCH V9 0/4] dt: Add fdtoverlay rule and statically build unittest

2021-03-03 Thread Viresh Kumar
Hi, This patchset adds a generic rule for applying overlays using fdtoverlay tool and then updates unittests to get built statically using the same. V8->V9: - Added some comment in patch 3/4 based on Frank's suggestions. V7->V8: - Patch 1 is new. - Platforms need to use dtb-y += foo.dtb instead

[PATCH V9 2/4] kbuild: Add generic rule to apply fdtoverlay

2021-03-03 Thread Viresh Kumar
From: Rob Herring Add a generic rule to apply fdtoverlay in Makefile.lib, so every platform doesn't need to carry the complex rule. The platform's Makefile only needs to have this now: DTC_FLAGS_foo_base += -@ foo-dtbs := foo_base.dtb foo_overlay1.dtbo foo_overlay2.dtbo dtb-y := foo.dtb We

Re: Broken kretprobe stack traces

2021-03-03 Thread Masami Hiramatsu
Hi Daniel, On Tue, 02 Mar 2021 17:15:13 -0800 "Daniel Xu" wrote: > Hi Masami, > > Jakub reported a bug with kretprobe stack traces -- wondering if you've gotten > any bug reports related to stack traces being broken for kretprobes. Yeah, stack dumper must check the stack entry is kretprobe'd

RE: Re: [PATCH v25 4/4] scsi: ufs: Add HPB 2.0 support

2021-03-03 Thread Daejun Park
> > +bool ufshpb_is_legacy(struct ufs_hba *hba) > > +{ > > +return hba->ufshpb_dev.is_legacy; > > +} > > + > > static struct ufshpb_lu *ufshpb_get_hpb_data(struct scsi_device *sdev) > > { > > return sdev->hostdata; > > @@ -64,9 +69,19 @@ static bool

RE: Re: [PATCH v25 4/4] scsi: ufs: Add HPB 2.0 support

2021-03-03 Thread Daejun Park
> > @@ -1812,8 +2307,9 @@ void ufshpb_get_geo_info(struct ufs_hba *hba, u8 > > *geo_buf) > > void ufshpb_get_dev_info(struct ufs_hba *hba, u8 *desc_buf) > > { > > struct ufshpb_dev_info *hpb_dev_info = >ufshpb_dev; > > -int version; > > +int version, ret; > >

[PATCH] powerpc/prom: move the device tree to the right space

2021-03-03 Thread Youlin Song
If the device tree has been allocated memory and it will be in the memblock reserved space.Obviously it is in a valid memory declaration and will be mapped by the kernel. Signed-off-by: Youlin Song --- arch/powerpc/kernel/prom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH V9 3/4] of: unittest: Create overlay_common.dtsi and testcases_common.dtsi

2021-03-03 Thread Viresh Kumar
In order to build-test the same unit-test files using fdtoverlay tool, move the device nodes from the existing overlay_base.dts and testcases_common.dts files to .dtsi counterparts. The .dts files now include the new .dtsi files, resulting in exactly the same behavior as earlier. The .dtsi files

[PATCH V9 1/4] kbuild: Simplify builds with CONFIG_OF_ALL_DTBS

2021-03-03 Thread Viresh Kumar
We update 'extra-y' based on CONFIG_OF_ALL_DTBS three times. It would be far more straight forward if we rather update dtb-y to include all .dtb files if CONFIG_OF_ALL_DTBS is enabled. Signed-off-by: Viresh Kumar --- scripts/Makefile.lib | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH V9 4/4] of: unittest: Statically apply overlays using fdtoverlay

2021-03-03 Thread Viresh Kumar
Now that fdtoverlay is part of the kernel build, start using it to test the unitest overlays we have by applying them statically. Create two new base files static_base_1.dts and static_base_2.dts which includes other .dtsi files. Some unittest overlays deliberately contain errors that unittest

Re: [PATCH] swiotlb: Fix type of max_slot

2021-03-03 Thread Kunihiko Hayashi
On Tue, 2 Mar 2021 15:20:08 -0500 Konrad Rzeszutek Wilk wrote: > On 3/2/21 12:21 PM, Kunihiko Hayashi wrote: > > After the refactoring phase, the type of max_slot has changed from unsigned > > long to unsigned int. The return type of the function get_max_slots() and > > the 4th argument type of

Re: exec error: BUG: Bad rss-counter

2021-03-03 Thread Ilya Lipnitskiy
On Tue, Mar 2, 2021 at 11:37 AM Eric W. Biederman wrote: > > Ilya Lipnitskiy writes: > > > On Mon, Mar 1, 2021 at 12:43 PM Eric W. Biederman > > wrote: > >> > >> Ilya Lipnitskiy writes: > >> > >> > Eric, All, > >> > > >> > The following error appears when running Linux 5.10.18 on an embedded

[PATCH v1] hwmon: (nct6883) Support NCT6686D

2021-03-03 Thread Jiqi Li
Add support for NCT6686D chip used in the Lenovo P620. Signed-off-by: Jiqi Li Reviewed-by: Mark Pearson --- drivers/hwmon/nct6683.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/nct6683.c b/drivers/hwmon/nct6683.c index a23047a3bfe2..256e8d62f858

Re: [PATCH V1] mmc: sdhci: Check for reset prior to DMA address unmap

2021-03-03 Thread Adrian Hunter
On 24/02/21 12:53 pm, Pradeep P V K wrote: > For data read commands, SDHC may initiate data transfers even before it > completely process the command response. In case command itself fails, > driver un-maps the memory associated with data transfer but this memory > can still be accessed by SDHC

[PATCH 1/2] mm: correctly determine LAST_CPUPID_WIDTH

2021-03-03 Thread Yu Zhao
The naming convention used in include/linux/page-flags-layout.h: *_SHIFT: the number of bits trying to allocate *_WIDTH: the number of bits successfully allocated So when it comes to LAST_CPUPID_WIDTH, we need to check whether all previous *_WIDTH and LAST_CPUPID_SHIFT can fit into page

Re: [PATCH] gpio: regmap: move struct gpio_regmap definition

2021-03-03 Thread Álvaro Fernández Rojas
Hi Linus, > El 2 mar 2021, a las 23:39, Linus Walleij escribió: > > On Tue, Mar 2, 2021 at 7:14 PM Álvaro Fernández Rojas > wrote: > >> I'm trying to add support for bcm63xx pin controllers, and Linus >> suggested that I could use gpio regmap instead of adding duplicated code. >> However, I

RE: [PATCH v2 2/3] scsi: ufs-qcom: Disable interrupt in reset path

2021-03-03 Thread Avri Altman
> > On 2021-02-28 22:23, Avri Altman wrote: > >> > >> From: Nitin Rawat > >> > >> Disable interrupt in reset path to flush pending IRQ handler in order > >> to > >> avoid possible NoC issues. > >> > >> Signed-off-by: Nitin Rawat > >> Signed-off-by: Can Guo Reviewed-by: Avri Altman > >> ---

[PATCH 2/2] mm: clean up include/linux/page-flags-layout.h

2021-03-03 Thread Yu Zhao
Tidy things up and delete comments stating the obvious with typos or making no sense. Signed-off-by: Yu Zhao --- include/linux/page-flags-layout.h | 62 +++ mm/mm_init.c | 4 -- 2 files changed, 29 insertions(+), 37 deletions(-) diff --git

[PATCH] module: remove duplicate include in arch/arm/mach-sa1100/hackkit.c

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai 'linux/tty.h' included in 'arch/arm/mach-sa1100/hackkit.c' is duplicated. Signed-off-by: Zhang Yunkai --- arch/arm/mach-sa1100/hackkit.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-sa1100/hackkit.c b/arch/arm/mach-sa1100/hackkit.c index

Re: [PATCH] spi: mediatek: Re-license MTK SPI driver as Dual MIT/GPL

2021-03-03 Thread Greg Kroah-Hartman
On Wed, Mar 03, 2021 at 10:56:36AM +0800, Leilk Liu wrote: > From: "leilk.liu" > > It is wanted to use MTK spi bus driver with GPL-2.0 or MIT license. > But now it is only licensed as GPL-2.0, so re-license it as dual > MIT/GPL. > > Signed-off-by: leilk.liu Please use your name here, not an

Re: [PATCH] net/mlx5: use kvfree() for memory allocated with kvzalloc()

2021-03-03 Thread Roi Dayan
On 2021-03-03 4:40 AM, angkery wrote: From: Junlin Yang It is allocated with kvzalloc(), the corresponding release function should not be kfree(), use kvfree() instead. Generated by: scripts/coccinelle/api/kfree_mismatch.cocci Signed-off-by: Junlin Yang ---

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

2021-03-03 Thread dillon . minfei
From: dillon min This patchset intend to add art-pi board support, this board developed by rt-thread(https://www.rt-thread.org/). Board resources: 8MiB QSPI flash 16MiB SPI flash 32MiB SDRAM AP6212 wifi,bt,fm comb sw context: - as stm32h750 just has 128k bytes internal flash, so running a fw

[PATCH 2/8] Documentation: arm: stm32: Add stm32h750 value line

2021-03-03 Thread dillon . minfei
From: dillon min detail information can be found at: https://www.st.com/en/microcontrollers-microprocessors/stm32h750-value-line.html Signed-off-by: dillon min --- Documentation/arm/index.rst| 1 + Documentation/arm/stm32/stm32h750-overview.rst | 33

[PATCH] vt: keyboard, fix uninitialized variables warning

2021-03-03 Thread Li Wang
drivers/tty/vt/keyboard.c: In function 'vt_do_kdgkb_ioctl': drivers/tty/vt/keyboard.c: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] return ret; ^~~ kernel-source/drivers/tty/vt/keyboard.c: warning: 'kbs' may be used uninitialized in this function

[PATCH] selftests/bpf: Simplify the calculation of variables

2021-03-03 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./tools/testing/selftests/bpf/test_sockmap.c:735:35-37: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- tools/testing/selftests/bpf/test_sockmap.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] crypto: mediatek - remove obsolete documentation

2021-03-03 Thread Vic Wu
The crypto mediatek driver has been replaced by the inside-secure driver now. Remove DT bindings documentation and update crypto engine nodes to the mt7623.dtsi files. Signed-off-by: Vic Wu Acked-by: Ryder Lee --- Documentation/devicetree/bindings/crypto/mediatek-crypto.txt | 25

Re: [PATCH 5.4 000/340] 5.4.102-rc1 review

2021-03-03 Thread Hanjun Guo
On 2021/3/2 0:09, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.102 release. There are 340 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH v4 01/10] coresight: syscfg: Initial coresight system configuration

2021-03-03 Thread Suzuki K Poulose
On 1/28/21 5:09 PM, Mike Leach wrote: Creates an system management API to allow complex configurations and features to be programmed into a CoreSight infrastructure. A feature is defined as a programming set for a device or class of devices. A configuration is a set of features across the

Re: [PATCH] spi: mediatek: Re-license MTK SPI driver as Dual MIT/GPL

2021-03-03 Thread Leilk Liu
On Wed, 2021-03-03 at 08:18 +0100, Greg Kroah-Hartman wrote: > On Wed, Mar 03, 2021 at 10:56:36AM +0800, Leilk Liu wrote: > > From: "leilk.liu" > > > > It is wanted to use MTK spi bus driver with GPL-2.0 or MIT license. > > But now it is only licensed as GPL-2.0, so re-license it as dual > >

Re: [PATCH v2 1/3] scsi: ufs: Minor adjustments to error handling

2021-03-03 Thread Can Guo
Hi Avri, On 2021-03-03 15:22, Avri Altman wrote: In error handling prepare stage, after SCSI requests are blocked, do a down/up_write(clk_scaling_lock) to clean up the queuecommand() path. Meanwhile, stop eeh_work in case it disturbs error recovery. Moreover, reset ufshcd_state at the

Re: [PATCH 1/2] Makefile: Remove '--gcc-toolchain' flag

2021-03-03 Thread Masahiro Yamada
Hi. On Wed, Mar 3, 2021 at 6:44 AM Fangrui Song wrote: > > Reviewed-by: Fangrui Song > > Thanks for the clean-up! > --gcc-toolchain= is an obsscure way searching for GCC installation prefixes > (--prefix). > The logic is complex and different for different distributions/architectures. > > If

Re: [PATCH] scsi: ufs: Fix incorrect ufshcd_state after ufshcd_reset_and_restore()

2021-03-03 Thread Can Guo
On 2021-03-02 16:14, Adrian Hunter wrote: On 2/03/21 9:01 am, Avri Altman wrote: If ufshcd_probe_hba() fails it sets ufshcd_state to UFSHCD_STATE_ERROR, however, if it is called again, as it is within a loop in ufshcd_reset_and_restore(), and succeeds, then it will not set the state back

Re: [PATCH v2 1/3] scsi: ufs: Minor adjustments to error handling

2021-03-03 Thread Can Guo
On 2021-03-03 18:03, Can Guo wrote: Hi Avri, On 2021-03-03 15:22, Avri Altman wrote: In error handling prepare stage, after SCSI requests are blocked, do a down/up_write(clk_scaling_lock) to clean up the queuecommand() path. Meanwhile, stop eeh_work in case it disturbs error recovery.

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

2021-03-03 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c:2252:40-45: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[ANNOUNCE] Git v2.31.0-rc1

2021-03-03 Thread Junio C Hamano
A release candidate Git v2.31.0-rc1 is now available for testing at the usual places. It is comprised of 631 non-merge commits since v2.30.0, contributed by 67 people, 21 of which are new faces. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/testing/ The following

Re: [PATCH v2 05/10] fsdax: Replace mmap entry in case of CoW

2021-03-03 Thread ruansy.f...@fujitsu.com
> > > > if (dirty) > > __mark_inode_dirty(mapping->host, I_DIRTY_PAGES); > > I still think the __mark_inode_dirty should just be moved into the one > caller that needs it. I found that the dirty flag will be used in the next few lines, so I keep this function inside. If I

[PATCH AUTOSEL 4.14 02/13] mmc: mxs-mmc: Fix a resource leak in an error handling path in 'mxs_mmc_probe()'

2021-03-03 Thread Sasha Levin
From: Christophe JAILLET [ Upstream commit 0bb7e560f821c7770973a94e346654c4bdccd42c ] If 'mmc_of_parse()' fails, we must undo the previous 'dma_request_chan()' call. Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/20201208203527.49262-1-christophe.jail...@wanadoo.fr

Re: [PATCH v1] microblaze: tag highmem_setup() with __meminit

2021-03-03 Thread Michal Simek
On 3/2/21 10:04 AM, David Hildenbrand wrote: > On 01.03.21 23:18, Oscar Salvador wrote: >> On Mon, Mar 01, 2021 at 12:47:49PM +0100, David Hildenbrand wrote: >>> With commit a0cd7a7c4bc0 ("mm: simplify free_highmem_page() and >>> free_reserved_page()") the kernel test robot complains about a

[PATCH v3 04/32] KVM: arm64: Initialize kvm_nvhe_init_params early

2021-03-03 Thread Quentin Perret
Move the initialization of kvm_nvhe_init_params in a dedicated function that is run early, and only once during KVM init, rather than every time the KVM vectors are set and reset. This also opens the opportunity for the hypervisor to change the init structs during boot, hence simplifying the

Re: [PATCH 01/12] Documentation: add BCM6328 pincontroller binding documentation

2021-03-03 Thread Linus Walleij
On Thu, Feb 25, 2021 at 5:42 PM Álvaro Fernández Rojas wrote: > Add binding documentation for the pincontrol core found in BCM6328 SoCs. > > Signed-off-by: Álvaro Fernández Rojas > Signed-off-by: Jonas Gorski (...) > + interrupts-extended: > +description: > + One interrupt per each

Re: [PATCH V3 XRT Alveo 11/18] fpga: xrt: UCS platform driver

2021-03-03 Thread Tom Rix
On 2/17/21 10:40 PM, Lizhi Hou wrote: > Add UCS driver. UCS is a hardware function discovered by walking xclbin What does UCS stand for ? add to commit log > metadata. A platform device node will be created for it. > UCS enables/disables the dynamic region clocks. > > Signed-off-by: Sonal Santan

Re: [PATCH v2 1/3] mtd: partitions: ofpart: skip subnodes parse with compatible

2021-03-03 Thread Ansuel Smith
On Tue, Mar 02, 2021 at 05:53:54PM +0100, Rafał Miłecki wrote: > On 16.02.2021 22:26, Ansuel Smith wrote: > > If a partitions structure is not used, parse direct subnodes as > > fixed-partitions only if a compatible is not found or is of type > > fixed-partition. A parser can be used directly on

Re: [PATCH net-next RFC v4] net: hdlc_x25: Queue outgoing LAPB frames

2021-03-03 Thread Jakub Kicinski
On Tue, 02 Mar 2021 08:04:20 +0100 Martin Schiller wrote: > On 2021-03-01 09:56, Xie He wrote: > > On Sun, Feb 28, 2021 at 10:56 PM Martin Schiller wrote: > >> I mean the change from only one hdlc interface to both hdlc and > >> hdlc_x25. > >> > >> I can't estimate how many users are out there

Re: [PATCH v21 08/26] x86/mm: Introduce _PAGE_COW

2021-03-03 Thread Yu, Yu-cheng
On 3/1/2021 7:52 AM, Borislav Petkov wrote: On Wed, Feb 17, 2021 at 02:27:12PM -0800, Yu-cheng Yu wrote: [...] static inline pmd_t pmd_mkdirty(pmd_t pmd) { - return pmd_set_flags(pmd, _PAGE_DIRTY | _PAGE_SOFT_DIRTY); + pmdval_t dirty = _PAGE_DIRTY; + + /* Avoid creating

Re: XDP socket rings, and LKMM litmus tests

2021-03-03 Thread Paul E. McKenney
On Tue, Mar 02, 2021 at 04:14:46PM -0500, Alan Stern wrote: > On Tue, Mar 02, 2021 at 07:46:27PM +0100, Björn Töpel wrote: > > Hi! > > > > Firstly; The long Cc-list is to reach the LKMM-folks. > > > > Some background; the XDP sockets use a ring-buffer to communicate > > between the kernel and

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

2021-03-03 Thread Suren Baghdasaryan
On Mon, Feb 1, 2021 at 9:34 PM Suren Baghdasaryan wrote: > > On Thu, Jan 28, 2021 at 11:08 PM Suren Baghdasaryan wrote: > > > > On Thu, Jan 28, 2021 at 11:51 AM Suren Baghdasaryan > > wrote: > > > > > > On Tue, Jan 26, 2021 at 5:52 AM 'Michal Hocko' via kernel-team > > > wrote: > > > > > > >

[PATCH v5 2/2] Input: move to use request_irq by IRQF_NO_AUTOEN flag

2021-03-03 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. On the other hand, request_irq() after setting IRQ_NOAUTOEN as below irq_set_status_flags(irq, IRQ_NOAUTOEN);

Re: [PATCH] mm/memcg: set memcg when split pages

2021-03-03 Thread Hugh Dickins
On Tue, 2 Mar 2021, Johannes Weiner wrote: > On Tue, Mar 02, 2021 at 12:24:41PM -0800, Hugh Dickins wrote: > > On Tue, 2 Mar 2021, Michal Hocko wrote: > > > [Cc Johannes for awareness and fixup Nick's email] > > > > > > On Tue 02-03-21 01:34:51, Zhou Guanghui wrote: > > > > When split page, the

Re: [PATCH v4 1/1] kernel/crash_core: Add crashkernel=auto for vmcore creation

2021-03-03 Thread john . p . donnelly
On 2/25/21 6:38 PM, Dave Young wrote: On 02/23/21 at 09:41am, Saeed Mirzamohammadi wrote: This adds crashkernel=auto feature to configure reserved memory for vmcore creation. CONFIG_CRASH_AUTO_STR is defined to be set for different kernel distributions and different archs based on their needs.

Re: [PATCH v2] mm: vmstat: add cma statistics

2021-03-03 Thread John Hubbard
On 3/2/21 10:33, Minchan Kim wrote: Since CMA is used more widely, it's worth to have CMA allocation statistics into vmstat. With it, we could know how agressively system uses cma allocation and how often it fails. Signed-off-by: Minchan Kim --- * from v1 -

Re: [PATCH] netdevsim: init u64 stats for 32bit hardware

2021-03-03 Thread Jakub Kicinski
On Tue, 2 Mar 2021 12:55:47 +0100 Dmitry Vyukov wrote: > On Tue, Mar 2, 2021 at 10:06 AM Hillf Danton wrote: > > On Mar 2, 2021 at 16:40 Dmitry Vyukov wrote: > > >I hoped this would get at least into 5.12. syzbot can't start testing > > >arm32 because of this. FWIW the submission never got

Re: [PATCH] iommu/tegra-smmu: Fix mc errors on tegra124-nyan

2021-03-03 Thread Nicolin Chen
On Sat, Feb 27, 2021 at 12:59:17PM +0300, Dmitry Osipenko wrote: > 25.02.2021 09:27, Nicolin Chen пишет: > ... > >> The partially revert should be okay, but it's not clear to me what makes > >> difference for T124 since I don't see that problem on T30, which also > >> has active display at a boot

[PATCH v5 0/2] add IRQF_NO_AUTOEN for request_irq

2021-03-03 Thread Barry Song
-v5: * add the same check for IRQF_NO_AUTOEN in request_nmi() * combine a dozen of separate patches of input into one (hopefully this could easy the life of the maintainers) -v4: * remove the irq_settings magic for NOAUTOEN with respect to Thomas's comment Barry Song (2): genirq:

Re: [PATCH v1] pstore/ram: Rate-limit "uncorrectable error in header" message

2021-03-03 Thread Kees Cook
On Tue, 2 Mar 2021 12:58:50 +0300, Dmitry Osipenko wrote: > There is a quite huge "uncorrectable error in header" flood in KMSG > on a clean system boot since there is no pstore buffer saved in RAM. > Let's silence the redundant noisy messages by rate-limiting the printk > message. Now there are

[PATCH v5 1/2] genirq: add IRQF_NO_AUTOEN for request_irq

2021-03-03 Thread Barry Song
Many drivers don't want interrupts enabled automatically due to request_irq(). So they are handling this issue by either way of the below two: (1) irq_set_status_flags(irq, IRQ_NOAUTOEN); request_irq(dev, irq...); (2) request_irq(dev, irq...); disable_irq(irq); The code in the second way is silly

[PATCH v10 2/2] ufs: sysfs: Resume the proper scsi device

2021-03-03 Thread Asutosh Das
Resumes the actual scsi device the unit descriptor of which is being accessed instead of the hba alone. Signed-off-by: Asutosh Das --- drivers/scsi/ufs/ufs-sysfs.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/drivers/scsi/ufs/ufs-sysfs.c

Re: [PATCH 7/7] kdump: Use vmlinux_build_id() to simplify

2021-03-03 Thread Stephen Boyd
Quoting Baoquan He (2021-03-02 00:19:09) > On 03/01/21 at 09:47am, Stephen Boyd wrote: > > - note_sec->n_hdr.n_descsz, > > - BUILD_ID_MAX); > > - return; > > - } > > - n_remain -= sizeof(struct

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

2021-03-03 Thread Josh Poimboeuf
On Mon, Jan 25, 2021 at 02:42:10PM -0600, Josh Poimboeuf wrote: > When building out-of-tree kernel modules, the build system doesn't > require the GCC version to match the version used to build the original > kernel. That's probably [1] fine. > > In fact, for many distros, the version of GCC

Re: [PATCH 5/7] printk: Make %pS and friends print module build ID

2021-03-03 Thread Stephen Boyd
Quoting Steven Rostedt (2021-03-01 18:43:19) > On Mon, 1 Mar 2021 09:47:47 -0800 > Stephen Boyd wrote: > > > The %pS printk format (among some others) is used to print kernel > > addresses symbolically. When the kernel prints an address inside of a > > module, the kernel prints the addresses'

Re: [PATCH] Revert "arm64: dts: amlogic: add missing ethernet reset ID"

2021-03-03 Thread Kevin Hilman
Hi Neil, Neil Armstrong writes: > It has been reported on IRC and in KernelCI boot tests, this change breaks > internal PHY support on the Amlogic G12A/SM1 Based boards. > > We suspect the added signal to reset more than the Ethernet MAC but also > the MDIO/(RG)MII mux used to redirect the MAC

Re: [PATCH 0/2] tracing: Detect unsafe dereferencing of pointers from trace events

2021-03-03 Thread Peter Chen
On 21-03-02 09:56:05, Steven Rostedt wrote: > On Tue, 2 Mar 2021 16:23:55 +0800 > Peter Chen wrote: > > s it looks like it uses %pa which IIUC from the printk code, it > > > >> dereferences the pointer to find it's virtual address. The event has > > > >> this as the field: > > > >> > > > >>

Re: [PATCH] recordmcount: Fix the wrong use of w* in arm64_is_fake_mcount()

2021-03-03 Thread Li Huafei
On 2021/3/3 6:30, Steven Rostedt wrote: On Thu, 25 Feb 2021 16:01:17 + Will Deacon wrote: On Thu, Feb 25, 2021 at 09:44:26AM -0500, Steven Rostedt wrote: This requires an acked-by from one of the ARM64 maintainers. -- Steve On Thu, 25 Feb 2021 22:07:47 +0800 Li Huafei wrote:

[PATCH] KVM: arm64: Fix unaligned addr case in mmu walking

2021-03-03 Thread Jia He
If the start addr is not aligned with the granule size of that level. loop step size should be adjusted to boundary instead of simple kvm_granual_size(level) increment. Otherwise, some mmu entries might miss the chance to be walked through. E.g. Assume the unmap range [data->addr, data->end] is

RE: Re: [PATCH v25 4/4] scsi: ufs: Add HPB 2.0 support

2021-03-03 Thread Daejun Park
> > > > static void __ufshpb_evict_region(struct ufshpb_lu *hpb, > >struct ufshpb_region *rgn) > > { > > @@ -1209,6 +1579,16 @@ static void ufshpb_lu_parameter_init(struct > > ufs_hba *hba, > > u32 entries_per_rgn; > > u64 rgn_mem_size, tmp;

Re: [PATCH] ASoC: wm8960: Remove bitclk relax condition

2021-03-03 Thread S.j. Wang
> > > > Using a higher bitclk then expected doesn't always work. > > Here is an example: > > > > aplay -Dhw:0,0 -d 5 -r 48000 -f S24_LE -c 2 audio48k24b2c.wav > > > > In this case, the required bitclk is 48000 * 24 * 2 = 2304000 but the > > closest bitclk that can be derived is 3072000. Since the

[PATCH] module: remove extra spaces in include/asm-generic/tlb.h

2021-03-03 Thread menglong8 . dong
From: Zhang Yunkai Some typos are found out by codespell tool: "# define" should be "#define". Signed-off-by: Zhang Yunkai --- include/asm-generic/tlb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h index

Re: [PATCH] spi: mediatek: Re-license MTK SPI driver as Dual MIT/GPL

2021-03-03 Thread Axel Lin
Leilk Liu 於 2021年3月3日 週三 上午10:57寫道: > > From: "leilk.liu" > > It is wanted to use MTK spi bus driver with GPL-2.0 or MIT license. > But now it is only licensed as GPL-2.0, so re-license it as dual > MIT/GPL. > > Signed-off-by: leilk.liu Acked-by: Axel Lin

[PATCH] hwmon: (nct6883) Support NCT6686D

2021-03-03 Thread Jiqi Li
Add support for NCT6686D chip used in the Lenovo P620. Signed-off-by: Jiqi Li Reviewed-by: Mark Pearson --- drivers/hwmon/nct6683.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/nct6683.c b/drivers/hwmon/nct6683.c index a23047a3bfe2..256e8d62f858

[PATCH v2] ASoC: wm8960: Remove bitclk relax condition in wm8960_configure_sysclk

2021-03-03 Thread Shengjiu Wang
The call sequence in wm8960_configure_clocking is ret = wm8960_configure_sysclk(); if (ret >= 0) goto configure_clock; ret = wm8960_configure_pll(); configure_clock: ... wm8960_configure_sysclk is called before wm8960_configure_pll, as there is bitclk relax on both

Re: [PATCH 1/2] Makefile: Remove '--gcc-toolchain' flag

2021-03-03 Thread Sedat Dilek
On Tue, Mar 2, 2021 at 10:07 PM Nathan Chancellor wrote: > > This is not necessary anymore now that we specify '--prefix=', which > tells clang exactly where to find the GNU cross tools. This has been > verified with self compiled LLVM 10.0.1 and LLVM 13.0.0 as well as a > distribution version of

[PATCH] ima: Fix the error code for restoring the PCR value

2021-03-03 Thread Li Huafei
In ima_restore_measurement_list(), hdr[HDR_PCR].data is pointing to a buffer of type u8, which contains the dumped 32-bit pcr value. Currently, only the least significant byte is used to restore the pcr value. We should convert hdr[HDR_PCR].data to a pointer of type u32 before fetching the value

回复: [External] Re: 回复: [PATCH] hwmon: (nct6883) Support NCT6886d

2021-03-03 Thread Jiqi JQ9 Li
Thanks, I will re-send another email about this patch. Please check it. Regards, Jiqi -邮件原件- 发件人: Guenter Roeck 代表 Guenter Roeck 发送时间: 2021年3月3日 2:46 收件人: Jiqi JQ9 Li ; jdelv...@suse.com; linux-hw...@vger.kernel.org; linux-kernel@vger.kernel.org 抄送: Mark RH Pearson 主题: [External] Re:

Re: [PATCH] module: remove extra spaces in include/asm-generic/tlb.h

2021-03-03 Thread Matthew Wilcox
On Tue, Mar 02, 2021 at 07:04:43PM -0800, menglong8.d...@gmail.com wrote: > From: Zhang Yunkai > > Some typos are found out by codespell tool: > > "# define" should be "#define". Your tool is broken. This is a style used by some to indicate nesting.

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

2021-03-03 Thread Aili Yao
On Tue, 2 Mar 2021 19:39:53 -0800 "Luck, Tony" wrote: > On Fri, Feb 26, 2021 at 10:59:15AM +0800, Aili Yao wrote: > > Hi naoya, tony: > > > > > > > > Idea for what we should do next ... Now that x86 is calling > > > > memory_failure() > > > > from user context ... maybe parallel calls for

Re: [PATCH v25 4/4] scsi: ufs: Add HPB 2.0 support

2021-03-03 Thread Can Guo
On 2021-02-26 15:35, Daejun Park wrote: This patch supports the HPB 2.0. The HPB 2.0 supports read of varying sizes from 4KB to 512KB. In the case of Read (<= 32KB) is supported as single HPB read. In the case of Read (36KB ~ 512KB) is supported by as a combination of write buffer command and

Re: [PATCH v10 2/2] ufs: sysfs: Resume the proper scsi device

2021-03-03 Thread Can Guo
On 2021-03-03 06:52, Asutosh Das wrote: Resumes the actual scsi device the unit descriptor of which is being accessed instead of the hba alone. Signed-off-by: Asutosh Das Reviewed-by: Can Guo --- drivers/scsi/ufs/ufs-sysfs.c | 30 +- 1 file changed, 17

Re: [PATCH] Leds: made enum led_brightness into typedef

2021-03-03 Thread Marek Behun
This patch touches only code in drivers/leds and include/linux/leds.h. Meanwhile enum led_brightness is used in many other parts of kernel as well, just try git grep "enum led_brightness" Also changing it probably to a simple int would be better. But if we wanted a typedef anyway, it should be

[PATCH v2 3/5] mm: memcontrol: charge kmem pages by using obj_cgroup APIs

2021-03-03 Thread Muchun Song
Since Roman series "The new cgroup slab memory controller" applied. All slab objects are charged via the new APIs of obj_cgroup. The new APIs introduce a struct obj_cgroup to charge slab objects. It prevents long-living objects from pinning the original memory cgroup in the memory. But there are

[PATCH v2 2/5] mm: memcontrol: make page_memcg{_rcu} only applicable for non-kmem page

2021-03-03 Thread Muchun Song
We want to reuse the obj_cgroup APIs to charge the kmem pages when If we do that, we should store an object cgroup pointer to page->memcg_data for the kmem pages. Finally, page->memcg_data can have 3 different meanings. 1) For the slab pages, page->memcg_data points to an object cgroups

[PATCH v2 4/5] mm: memcontrol: introduce remote objcg charging API

2021-03-03 Thread Muchun Song
The remote memcg charing APIs is a mechanism to charge pages to a given memcg. Since all kernel memory are charged by using obj_cgroup APIs. Actually, we want to charge kernel memory to the remote object cgroup instead of memory cgroup. So introduce remote objcg charging APIs to charge the kmem

[PATCH v2 0/7] Add basic support for Loongson-2K1000

2021-03-03 Thread Qing Zhang
These patches support single-core DTS boot to the serial port login interface, which can be operated using conventional commands. I have successfully tested it on the Loongson 2K1000 machine. pmon: http://cgit.loongnix.org/cgit/pmon-loongson3/ Qing Zhang (7): MIPS: Loongson64: DeviceTree for

[PATCH] HID: intel_ish-hid: HBM: Use connected standby state bit during suspend/resume

2021-03-03 Thread Ye Xiang
ISH firmware uses connected standby state bit (CONNECTED_STANDBY_STATE_BIT bit 1) to notify current power state to sensors instead of suspend state bit (bit 0). So send both SUSPEND_STATE_BIT and CONNECTED_STANDBY_STATE_BIT to firmware to be compatible with the previous version. Signed-off-by:

[PATCH v26 0/4] scsi: ufs: Add Host Performance Booster Support

2021-03-03 Thread Daejun Park
Changelog: v25 -> v26 1. Fix wrong chunk size checking for HPB 1.0. 2. Fix wrong max data size for HPB single command. 3. Fix typo error v24 -> v25 1. Change write buffer API for unmap region. 2. Add checking hpb_enable for avoiding unnecessary memory allocation. 3. Change pr_info to dev_info.

<    8   9   10   11   12   13   14   15   16   17   >