Re: [syzbot] possible deadlock in io_sq_thread_finish

2021-03-07 Thread Pavel Begunkov
On 07/03/2021 12:39, Pavel Begunkov wrote: > On 07/03/2021 09:49, syzbot wrote: >> Hello, >> >> syzbot found the following issue on: >> >> HEAD commit:a38fd874 Linux 5.12-rc2 >> git tree: upstream >> console output: https://syzkaller.appspot.com/x/log.txt?x=143ee02ad0 >> kernel config

include/linux/scatterlist.h:137:10: error: use of undeclared identifier 'max_mapnr'

2021-03-07 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a38fd8748464831584a19438cbb3082b5a2dab15 commit: 4f0e8eef772ee4438f304b2178bc28c958b6c13d riscv: Add numa support for riscv64 platform date: 7 weeks ago config: riscv-randconfig-r005-20210307 (attached as

Re: [PATCH v3 1/6] ACPI: scan: Extend acpi_walk_dep_device_list()

2021-03-07 Thread Daniel Scally
Hi Andy On 22/02/2021 13:34, Andy Shevchenko wrote: > On Mon, Feb 22, 2021 at 3:12 PM Daniel Scally wrote: >> The acpi_walk_dep_device_list() is not as generalisable as its name >> implies, serving only to decrement the dependency count for each >> dependent device of the input. Extend the functi

Re: [PATCH v3 0/5] arm64: dts: librem5 phone and devkit dts and config updates

2021-03-07 Thread Shawn Guo
On Fri, Feb 19, 2021 at 11:04:34AM +0100, Martin Kepplinger wrote: > Angus Ainslie (1): > arm64: dts: librem5: protect some partitions of the nor-flash > > Guido Günther (3): > arm64: dts: imx8mq-librem5-devkit: Drop buck3 startup-ramp-delay > arm64: dts: librem5: Drop assigned-clocks from S

Re: [PATCH v3 4/5] arm64: dts: librem5: protect some partitions of the nor-flash

2021-03-07 Thread Shawn Guo
On Fri, Feb 19, 2021 at 11:04:38AM +0100, Martin Kepplinger wrote: > From: Angus Ainslie > > These sections should be read only as they contain important data. > > Signed-off-by: Angus Ainslie > Signed-off-by: Martin Kepplinger > --- > .../boot/dts/freescale/imx8mq-librem5.dtsi | 17

[PATCH v6 6/8] selftests/brute: Add tests for the Brute LSM

2021-03-07 Thread John Wood
Add tests to check the brute LSM functionality and cover fork/exec brute force attacks crossing the following privilege boundaries: 1.- setuid process 2.- privilege changes 3.- network to local Also, as a first step check that fork/exec brute force attacks without crossing any privilege boundariy

Re: [PATCH v1 0/6] arm64: dts: librem5-devkit: Improve audio support

2021-03-07 Thread Shawn Guo
On Sun, Feb 21, 2021 at 12:07:05PM +0100, Guido Günther wrote: > So far only headphone output worked. Thesse patches add support for the > built in speaker and mic, allow a headset microphone to work and wire up jack > detection so audio output can switch to headphones automatically. They also > a

Re: [PATCH v1 1/1] gpiolib: Read "gpio-line-names" from a firmware node

2021-03-07 Thread Bartosz Golaszewski
On Fri, Mar 5, 2021 at 1:02 PM Andy Shevchenko wrote: > > On STM32MP1, the GPIO banks are subnodes of pin-controller@50002000, > see arch/arm/boot/dts/stm32mp151.dtsi. The driver for > pin-controller@50002000 is in drivers/pinctrl/stm32/pinctrl-stm32.c > and iterates over all of its DT subnodes wh

[PATCH AUTOSEL 5.11 02/12] pstore: Fix warning in pstore_kill_sb()

2021-03-07 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit 9c7d83ae6ba67d6c6199cce24573983db3b56332 ] syzbot is hitting WARN_ON(pstore_sb != sb) at pstore_kill_sb() [1], for the assumption that pstore_sb != NULL is wrong because pstore_fill_super() will not assign pstore_sb = sb when new_inode() for d_make_root() ret

[PATCH AUTOSEL 5.11 05/12] pstore/ram: Rate-limit "uncorrectable error in header" message

2021-03-07 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit 7db688e99c0f770ae73e0f1f3fb67f9b64266445 ] 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 messa

[PATCH AUTOSEL 5.11 07/12] tracing: Skip selftests if tracing is disabled

2021-03-07 Thread Sasha Levin
From: "Steven Rostedt (VMware)" [ Upstream commit ee666a185558ac9a929e53b902a568442ed62416 ] If tracing is disabled for some reason (traceoff_on_warning, command line, etc), the ftrace selftests are guaranteed to fail, as their results are defined by trace data in the ring buffers. If the ring b

[PATCH AUTOSEL 5.11 08/12] nvme-pci: mark Seagate Nytro XM1440 as QUIRK_NO_NS_DESC_LIST.

2021-03-07 Thread Sasha Levin
From: Julian Einwag [ Upstream commit 5e112d3fb89703a4981ded60561b5647db3693bf ] The kernel fails to fully detect these SSDs, only the character devices are present: [ 10.785605] nvme nvme0: pci function :04:00.0 [ 10.876787] nvme nvme1: pci function :81:00.0 [ 13.198614] nvme nvm

[PATCH AUTOSEL 5.11 09/12] nvme-pci: mark Kingston SKC2000 as not supporting the deepest power state

2021-03-07 Thread Sasha Levin
From: Zoltán Böszörményi [ Upstream commit dc22c1c058b5c4fe967a20589e36f029ee42a706 ] My 2TB SKC2000 showed the exact same symptoms that were provided in 538e4a8c57 ("nvme-pci: avoid the deepest sleep state on Kingston A2000 SSDs"), i.e. a complete NVME lockup that needed cold boot to get it bac

[PATCH AUTOSEL 5.11 01/12] btrfs: avoid checking for RO block group twice during nocow writeback

2021-03-07 Thread Sasha Levin
From: Filipe Manana [ Upstream commit 20903032cd9f0260b99aeab92e6540f0350e4a23 ] During the nocow writeback path, we currently iterate the rbtree of block groups twice: once for checking if the target block group is RO with the call to btrfs_extent_readonly()), and once again for getting a nocow

[PATCH AUTOSEL 5.11 12/12] nvmet: model_number must be immutable once set

2021-03-07 Thread Sasha Levin
From: Max Gurtovoy [ Upstream commit d9f273b7585c380d7a10d4b3187ddc2d37f2740b ] In case we have already established connection to nvmf target, it shouldn't be allowed to change the model_number. E.g. if someone will identify ctrl and get model_number of "my_model" later on will change the model_

[PATCH AUTOSEL 5.11 10/12] nvme-pci: add quirks for Lexar 256GB SSD

2021-03-07 Thread Sasha Levin
From: Pascal Terjan [ Upstream commit 6e6a6828c517fb6819479bf5187df5f39084eb9e ] Add the NVME_QUIRK_NO_NS_DESC_LIST and NVME_QUIRK_IGNORE_DEV_SUBNQN quirks for this buggy device. Reported and tested in https://bugs.mageia.org/show_bug.cgi?id=28417 Signed-off-by: Pascal Terjan Signed-off-by: C

[PATCH AUTOSEL 5.11 11/12] nvme-fabrics: fix kato initialization

2021-03-07 Thread Sasha Levin
From: Martin George [ Upstream commit 32feb6de47242e54692eceab52cfae8616aa0518 ] Currently kato is initialized to NVME_DEFAULT_KATO for both discovery & i/o controllers. This is a problem specifically for non-persistent discovery controllers since it always ends up with a non-zero kato value. Fi

[PATCH AUTOSEL 5.11 06/12] drm/amdgpu: enable BACO runpm by default on sienna cichlid and navy flounder

2021-03-07 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 25951362db7b3791488ec45bf56c0043f107b94b ] It works fine and was only disabled because primary GPUs don't enter runpm if there is a console bound to the fbdev due to the kmap. This will at least allow runpm on secondary cards. Reviewed-by: Evan Quan Review

[PATCH AUTOSEL 5.10 4/8] tracing: Skip selftests if tracing is disabled

2021-03-07 Thread Sasha Levin
From: "Steven Rostedt (VMware)" [ Upstream commit ee666a185558ac9a929e53b902a568442ed62416 ] If tracing is disabled for some reason (traceoff_on_warning, command line, etc), the ftrace selftests are guaranteed to fail, as their results are defined by trace data in the ring buffers. If the ring b

[PATCH AUTOSEL 5.10 3/8] drm/amdgpu: enable BACO runpm by default on sienna cichlid and navy flounder

2021-03-07 Thread Sasha Levin
From: Alex Deucher [ Upstream commit 25951362db7b3791488ec45bf56c0043f107b94b ] It works fine and was only disabled because primary GPUs don't enter runpm if there is a console bound to the fbdev due to the kmap. This will at least allow runpm on secondary cards. Reviewed-by: Evan Quan Review

[PATCH AUTOSEL 5.10 8/8] nvmet: model_number must be immutable once set

2021-03-07 Thread Sasha Levin
From: Max Gurtovoy [ Upstream commit d9f273b7585c380d7a10d4b3187ddc2d37f2740b ] In case we have already established connection to nvmf target, it shouldn't be allowed to change the model_number. E.g. if someone will identify ctrl and get model_number of "my_model" later on will change the model_

[PATCH AUTOSEL 5.10 7/8] nvme-fabrics: fix kato initialization

2021-03-07 Thread Sasha Levin
From: Martin George [ Upstream commit 32feb6de47242e54692eceab52cfae8616aa0518 ] Currently kato is initialized to NVME_DEFAULT_KATO for both discovery & i/o controllers. This is a problem specifically for non-persistent discovery controllers since it always ends up with a non-zero kato value. Fi

[PATCH AUTOSEL 5.4 1/5] pstore/ram: Rate-limit "uncorrectable error in header" message

2021-03-07 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit 7db688e99c0f770ae73e0f1f3fb67f9b64266445 ] 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 messa

[PATCH AUTOSEL 5.10 1/8] pstore: Fix warning in pstore_kill_sb()

2021-03-07 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit 9c7d83ae6ba67d6c6199cce24573983db3b56332 ] syzbot is hitting WARN_ON(pstore_sb != sb) at pstore_kill_sb() [1], for the assumption that pstore_sb != NULL is wrong because pstore_fill_super() will not assign pstore_sb = sb when new_inode() for d_make_root() ret

[PATCH AUTOSEL 5.11 03/12] btrfs: subpage: fix the false data csum mismatch error

2021-03-07 Thread Sasha Levin
From: Qu Wenruo [ Upstream commit c28ea613fafad910d08f67efe76ae552b1434e44 ] [BUG] When running fstresss, we can hit strange data csum mismatch where the on-disk data is in fact correct (passes scrub). With some extra debug info added, we have the following traces: 0482us: btrfs_do_readpage:

[PATCH AUTOSEL 5.10 2/8] pstore/ram: Rate-limit "uncorrectable error in header" message

2021-03-07 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit 7db688e99c0f770ae73e0f1f3fb67f9b64266445 ] 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 messa

[PATCH AUTOSEL 5.10 6/8] nvme-pci: add quirks for Lexar 256GB SSD

2021-03-07 Thread Sasha Levin
From: Pascal Terjan [ Upstream commit 6e6a6828c517fb6819479bf5187df5f39084eb9e ] Add the NVME_QUIRK_NO_NS_DESC_LIST and NVME_QUIRK_IGNORE_DEV_SUBNQN quirks for this buggy device. Reported and tested in https://bugs.mageia.org/show_bug.cgi?id=28417 Signed-off-by: Pascal Terjan Signed-off-by: C

[PATCH AUTOSEL 5.11 04/12] selftests: kvm: Mmap the entire vcpu mmap area

2021-03-07 Thread Sasha Levin
From: Aaron Lewis [ Upstream commit 6528fc0a11de3d16339cf17639e2f69a68fcaf4d ] The vcpu mmap area may consist of more than just the kvm_run struct. Allocate enough space for the entire vcpu mmap area. Without this, on x86, the PIO page, for example, will be missing. This is problematic when dea

[PATCH AUTOSEL 5.10 5/8] nvme-pci: mark Seagate Nytro XM1440 as QUIRK_NO_NS_DESC_LIST.

2021-03-07 Thread Sasha Levin
From: Julian Einwag [ Upstream commit 5e112d3fb89703a4981ded60561b5647db3693bf ] The kernel fails to fully detect these SSDs, only the character devices are present: [ 10.785605] nvme nvme0: pci function :04:00.0 [ 10.876787] nvme nvme1: pci function :81:00.0 [ 13.198614] nvme nvm

[PATCH AUTOSEL 5.4 2/5] tracing: Skip selftests if tracing is disabled

2021-03-07 Thread Sasha Levin
From: "Steven Rostedt (VMware)" [ Upstream commit ee666a185558ac9a929e53b902a568442ed62416 ] If tracing is disabled for some reason (traceoff_on_warning, command line, etc), the ftrace selftests are guaranteed to fail, as their results are defined by trace data in the ring buffers. If the ring b

[PATCH AUTOSEL 5.4 4/5] nvme-pci: add quirks for Lexar 256GB SSD

2021-03-07 Thread Sasha Levin
From: Pascal Terjan [ Upstream commit 6e6a6828c517fb6819479bf5187df5f39084eb9e ] Add the NVME_QUIRK_NO_NS_DESC_LIST and NVME_QUIRK_IGNORE_DEV_SUBNQN quirks for this buggy device. Reported and tested in https://bugs.mageia.org/show_bug.cgi?id=28417 Signed-off-by: Pascal Terjan Signed-off-by: C

[PATCH AUTOSEL 4.19 3/3] nvme-fabrics: fix kato initialization

2021-03-07 Thread Sasha Levin
From: Martin George [ Upstream commit 32feb6de47242e54692eceab52cfae8616aa0518 ] Currently kato is initialized to NVME_DEFAULT_KATO for both discovery & i/o controllers. This is a problem specifically for non-persistent discovery controllers since it always ends up with a non-zero kato value. Fi

[PATCH AUTOSEL 4.19 1/3] pstore/ram: Rate-limit "uncorrectable error in header" message

2021-03-07 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit 7db688e99c0f770ae73e0f1f3fb67f9b64266445 ] 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 messa

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

2021-03-07 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit 7db688e99c0f770ae73e0f1f3fb67f9b64266445 ] 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 messa

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

2021-03-07 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit 7db688e99c0f770ae73e0f1f3fb67f9b64266445 ] 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 messa

[PATCH AUTOSEL 4.19 2/3] tracing: Skip selftests if tracing is disabled

2021-03-07 Thread Sasha Levin
From: "Steven Rostedt (VMware)" [ Upstream commit ee666a185558ac9a929e53b902a568442ed62416 ] If tracing is disabled for some reason (traceoff_on_warning, command line, etc), the ftrace selftests are guaranteed to fail, as their results are defined by trace data in the ring buffers. If the ring b

[PATCH AUTOSEL 4.14 1/2] pstore/ram: Rate-limit "uncorrectable error in header" message

2021-03-07 Thread Sasha Levin
From: Dmitry Osipenko [ Upstream commit 7db688e99c0f770ae73e0f1f3fb67f9b64266445 ] 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 messa

[PATCH AUTOSEL 4.14 2/2] tracing: Skip selftests if tracing is disabled

2021-03-07 Thread Sasha Levin
From: "Steven Rostedt (VMware)" [ Upstream commit ee666a185558ac9a929e53b902a568442ed62416 ] If tracing is disabled for some reason (traceoff_on_warning, command line, etc), the ftrace selftests are guaranteed to fail, as their results are defined by trace data in the ring buffers. If the ring b

[PATCH AUTOSEL 5.4 3/5] nvme-pci: mark Seagate Nytro XM1440 as QUIRK_NO_NS_DESC_LIST.

2021-03-07 Thread Sasha Levin
From: Julian Einwag [ Upstream commit 5e112d3fb89703a4981ded60561b5647db3693bf ] The kernel fails to fully detect these SSDs, only the character devices are present: [ 10.785605] nvme nvme0: pci function :04:00.0 [ 10.876787] nvme nvme1: pci function :81:00.0 [ 13.198614] nvme nvm

[PATCH AUTOSEL 5.4 5/5] nvme-fabrics: fix kato initialization

2021-03-07 Thread Sasha Levin
From: Martin George [ Upstream commit 32feb6de47242e54692eceab52cfae8616aa0518 ] Currently kato is initialized to NVME_DEFAULT_KATO for both discovery & i/o controllers. This is a problem specifically for non-persistent discovery controllers since it always ends up with a non-zero kato value. Fi

RE: [PATCH v10 01/20] dlb: add skeleton for DLB driver

2021-03-07 Thread Chen, Mike Ximing
> -Original Message- > From: gre...@linuxfoundation.org > Sent: Thursday, February 18, 2021 2:53 AM > To: Chen, Mike Ximing > Cc: net...@vger.kernel.org; Linux Kernel Mailing List ker...@vger.kernel.org>; da...@davemloft.net; k...@kernel.org; a...@arndb.de; > Williams, Dan J ; > pier

[PATCH] docs: don't include Documentation/Kconfig twice

2021-03-07 Thread Sergei Trofimovich
Before the change there were two inclusions of Documentation/Kconfig: lib/Kconfig.debug:source "Documentation/Kconfig" Kconfig: source "Documentation/Kconfig" Kconfig also included 'source "lib/Kconfig.debug"'. Noticed as two 'make menuconfig' entries in both top level menu and in 'Kernel

Re: [PATCH V2] arm64: dts: imx8mp: add wdog2/3 nodes

2021-03-07 Thread Fabio Estevam
On Sun, Mar 7, 2021 at 7:42 AM wrote: > > From: Peng Fan > > There is wdog[2,3] in i.MX8MP, so add them. > > Signed-off-by: Peng Fan Reviewed-by: Fabio Estevam

[PATCH v6 7/8] Documentation: Add documentation for the Brute LSM

2021-03-07 Thread John Wood
Add some info detailing what is the Brute LSM, its motivation, weak points of existing implementations, proposed solutions, enabling, disabling and self-tests. Signed-off-by: John Wood --- Documentation/admin-guide/LSM/Brute.rst | 278 Documentation/admin-guide/LSM/index

[PATCH] clk: Fix doc of clk_get_parent

2021-03-07 Thread Paul Cercueil
On error, or when the passed parameter is NULL, the return value is NULL and not a PTR_ERR()-encoded value. Signed-off-by: Paul Cercueil --- include/linux/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/clk.h b/include/linux/clk.h index 266e8de3cb51..96031

stable kernel checksumming fails

2021-03-07 Thread Ronald Warsow
hello getting stable kernels with this script: https://git.kernel.org/pub/scm/linux/kernel/git/mricon/korg-helpers.git/tree/get-verified-tarball fails since the last 2 (?) stable releases with (last lines): ... + /usr/bin/curl -L -o /home/ron/Downloads/linux-tarball-verify.1GiZid5WT.untruste

Re: [PATCH v3 1/4] devfreq: Register devfreq as a cooling device on demand

2021-03-07 Thread Chanwoo Choi
On 21. 3. 7. 오후 6:45, Daniel Lezcano wrote: Currently the default behavior is to manually having the devfreq backend to register themselves as a devfreq cooling device. Instead of adding the code in the drivers for the thermal cooling device registering, let's provide a flag in the devfreq's pro

Re: [PATCH v3 1/4] devfreq: Register devfreq as a cooling device on demand

2021-03-07 Thread Chanwoo Choi
On 21. 3. 7. 오후 6:45, Daniel Lezcano wrote: > Currently the default behavior is to manually having the devfreq > backend to register themselves as a devfreq cooling device. > > Instead of adding the code in the drivers for the thermal cooling > device registering, let's provide a flag in the devfre

[PATCH 0/6] clk: Ingenic JZ4760(B) support

2021-03-07 Thread Paul Cercueil
Hi, Here are a set of patches to add support for the Ingenic JZ4760(B) SoCs. One thing to note is that the ingenic,jz4760-tcu is undocumented for now, as I will update the TCU documentation in a different patchset. Zhou: the CGU code now supports overriding the PLL M/N/OD calc algorithm, please

[PATCH 1/6] dt-bindings: clock: ingenic: Add ingenic,jz4760{,b}-cgu compatibles

2021-03-07 Thread Paul Cercueil
Add ingenic,jz4760-cgu and ingenic,jz4760b-cgu compatible strings for the JZ4760 and JZ4760B SoCs respectively. Signed-off-by: Paul Cercueil --- Documentation/devicetree/bindings/clock/ingenic,cgu.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/cloc

[PATCH 3/6] clk: ingenic: Read bypass register only when there is one

2021-03-07 Thread Paul Cercueil
Rework the clock code so that the bypass register is only read when there is actually a bypass functionality. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/cgu.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/clk/ingenic/cgu.c b/drivers/cl

[PATCH 4/6] clk: ingenic: Remove pll_info.no_bypass_bit

2021-03-07 Thread Paul Cercueil
We can express that a PLL has no bypass bit by simply setting the .bypass_bit field to a negative value. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/cgu.c| 4 ++-- drivers/clk/ingenic/cgu.h| 7 +++ drivers/clk/ingenic/jz4770-cgu.c | 3 +-- 3 files changed, 6 insertio

[PATCH 2/6] clk: Support bypassing dividers

2021-03-07 Thread Paul Cercueil
When a clock is declared as both CGU_CLK_DIV and CGU_CLK_MUX, the CGU code expects the mux to be applied first, the divider second. On the JZ4760, and maybe on some other SoCs, some clocks also have a mux setting and a divider, but the divider is not applied to all parents selectable from the mux.

[PATCH 5/6] clk: ingenic: Support overriding PLLs M/N/OD calc algorithm

2021-03-07 Thread Paul Cercueil
SoC-specific code can now provide a callback if they need to compute the M/N/OD values in a specific way. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/cgu.c | 40 ++- drivers/clk/ingenic/cgu.h | 3 +++ 2 files changed, 30 insertions(+), 13 deletions(-

[PATCH 6/6] clk: ingenic: Add support for the JZ4760

2021-03-07 Thread Paul Cercueil
Add the CGU code and the compatible string to the TCU driver to support the JZ4760 SoC. Signed-off-by: Paul Cercueil --- drivers/clk/ingenic/Kconfig| 10 + drivers/clk/ingenic/Makefile | 1 + drivers/clk/ingenic/jz4760-cgu.c | 433 + drivers

[PATCH 1/1] Documentation/x86/boot: Correct algorithm for runtime start address

2021-03-07 Thread Adrian Huang
From: Adrian Huang Commit 8ab3820fd5b2 ("x86, kaslr: Return location from decompress_kernel") enforces CONFIG_PHYSICAL_START as the minimum relocation address when the kernel option CONFIG_RELOCATABLE is enabled. This change should be included accordingly. Signed-off-by: Adrian Huang Cc: Kees C

[PATCH v6 8/8] MAINTAINERS: Add a new entry for the Brute LSM

2021-03-07 Thread John Wood
In order to maintain the code for the Brute LSM add a new entry to the maintainers list. Signed-off-by: John Wood --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d92f85ca831d..0b88b7a1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3

Re: [PATCH] clk: Fix doc of clk_get_parent

2021-03-07 Thread Russell King - ARM Linux admin
On Sun, Mar 07, 2021 at 02:06:26PM +, Paul Cercueil wrote: > On error, or when the passed parameter is NULL, the return value is NULL > and not a PTR_ERR()-encoded value. No, the documentation is accurate. The CCF is just an implementation of the API, the file you are modifying is the definiti

Re: [PATCH v3 1/4] devfreq: Register devfreq as a cooling device on demand

2021-03-07 Thread Daniel Lezcano
On 07/03/2021 15:16, Chanwoo Choi wrote: > On 21. 3. 7. 오후 6:45, Daniel Lezcano wrote: >> Currently the default behavior is to manually having the devfreq >> backend to register themselves as a devfreq cooling device. >> >> Instead of adding the code in the drivers for the thermal cooling >> device

Re: [PATCH] clk: Fix doc of clk_get_parent

2021-03-07 Thread Paul Cercueil
Hi, Le dim. 7 mars 2021 à 14:27, Russell King - ARM Linux admin a écrit : On Sun, Mar 07, 2021 at 02:06:26PM +, Paul Cercueil wrote: On error, or when the passed parameter is NULL, the return value is NULL and not a PTR_ERR()-encoded value. No, the documentation is accurate. The CCF

Re: [PATCH] clk: Fix doc of clk_get_parent

2021-03-07 Thread Russell King - ARM Linux admin
On Sun, Mar 07, 2021 at 02:29:07PM +, Paul Cercueil wrote: > Hi, > > Le dim. 7 mars 2021 à 14:27, Russell King - ARM Linux admin > a écrit : > > On Sun, Mar 07, 2021 at 02:06:26PM +, Paul Cercueil wrote: > > > On error, or when the passed parameter is NULL, the return value is > > > NULL

[tip:locking/urgent] BUILD SUCCESS 50bf8080a94d171e843fc013abec19d8ab9f50ae

2021-03-07 Thread kernel test robot
allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210307 i386 randconfig-a003-20210307 i386

[tip:x86/vdso] BUILD SUCCESS 70c9d959226b7c5c48c119e2c1cfc1424f87b023

2021-03-07 Thread kernel test robot
werpc allnoconfig i386 randconfig-a005-20210307 i386 randconfig-a003-20210307 i386 randconfig-a002-20210307 i386 randconfig-a004-20210307 i386 randconfig-a006-20210307 i386 randconfig-a001-20210307 x

[tip:x86/mm] BUILD SUCCESS a500fc918f7b8dc3dff2e6c74f3e73e856c18248

2021-03-07 Thread kernel test robot
onfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210307 i386 randconfig-a003-202

[tip:x86/platform] BUILD SUCCESS e93d757c3f33c8a09f4aae579da4dc4500707471

2021-03-07 Thread kernel test robot
defconfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210307 i386

[tip:x86/seves] BUILD SUCCESS f3db3365c069c2a8505cdee8033fe3d22d2fe6c0

2021-03-07 Thread kernel test robot
randconfig-a005-20210307 i386 randconfig-a003-20210307 i386 randconfig-a002-20210307 i386 randconfig-a004-20210307 i386 randconfig-a006-20210307 i386 randconfig-a001-20210307 x86_64 randconfig-a013-20210307 x86_64

[tip:x86/urgent] BUILD SUCCESS 5d5675df792ff67e74a500c4c94db0f99e6a10ef

2021-03-07 Thread kernel test robot
randconfig-a005-20210307 i386 randconfig-a003-20210307 i386 randconfig-a002-20210307 i386 randconfig-a004-20210307 i386 randconfig-a006-20210307 i386 randconfig-a001-20210307 x86_64 randconfig

[tip:sched/core] BUILD SUCCESS 4117cebf1a9fcbf35b9aabf0e37b6c5eea296798

2021-03-07 Thread kernel test robot
allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210307 i386 randconfig

[tip:x86/cpu] BUILD SUCCESS 59eca2fa1934de42d8aa44d3bef655c92ea69703

2021-03-07 Thread kernel test robot
randconfig-a005-20210307 i386 randconfig-a003-20210307 i386 randconfig-a002-20210307 i386 randconfig-a004-20210307 i386 randconfig-a006-20210307 i386 randconfig-a001-20210307 x86_64 randconfig-a013-20210307 x86_64

[tip:objtool/core] BUILD SUCCESS 900b4df347bbac4874149a226143a556909faba8

2021-03-07 Thread kernel test robot
allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210307 i386 randconfig-a003-20210307 i386 randconfig-a002-20210307 i386

[tip:timers/urgent] BUILD SUCCESS eca8f0c80a005aea84df507a446fc0154fc55a32

2021-03-07 Thread kernel test robot
mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210307 i386 randconfig-a003-20210307 i386

[tip:perf/urgent] BUILD SUCCESS afbef30149587ad46f4780b1e0cc5e219745ce90

2021-03-07 Thread kernel test robot
defconfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210307 i386

[tip:master] BUILD SUCCESS 578bec1c2c6c962d48c5c5acc74d3428983c2c99

2021-03-07 Thread kernel test robot
onfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210307 i386 randconfig-a003-202

Re: stable kernel checksumming fails

2021-03-07 Thread Greg KH
On Sun, Mar 07, 2021 at 03:10:49PM +0100, Ronald Warsow wrote: > hello > > getting stable kernels with this script: > > https://git.kernel.org/pub/scm/linux/kernel/git/mricon/korg-helpers.git/tree/get-verified-tarball > > > fails since the last 2 (?) stable releases with (last lines): > > ...

[tip:locking/core] BUILD SUCCESS bdb1050ee1faaec1e78c15de8b1959176f26c655

2021-03-07 Thread kernel test robot
powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a005-20210307 i386 randconfig-a003-20210307 i386 randconfig-a002-20210307 i386

[tip:tip] BUILD SUCCESS 0e16f466004d7f04296b9676a712a32a12367d1f

2021-03-07 Thread kernel test robot
allmodconfig powerpc allnoconfig i386 randconfig-a005-20210307 i386 randconfig-a003-20210307 i386 randconfig-a002-20210307 i386 randconfig-a004-20210307 i386 randconfig-a006-20210307 i386

[gustavoars-linux:testing/warray-bounds] BUILD SUCCESS WITH WARNING 4cea190810e6547ea1a145d8841a22bf1aab44db

2021-03-07 Thread kernel test robot
n_memcpy' offset [21, 32] from the object at 'data64' is out of the bounds of referenced subobject 'buf' with type 'void *' at offset 16 [-Warray-bounds] Warning ids grouped by kconfigs: gcc_recent_errors |-- i386-randconfig-a015-20210307 | `-- arch-x86-include-

[PATCH v5 00/21] Miscellaneous fixes for resctrl selftests

2021-03-07 Thread Fenghua Yu
This patch set has several miscellaneous fixes to resctrl selftest tool that are easily visible to user. V1 had fixes to CAT test and CMT test but they were dropped in V2 because having them here made the patchset humongous. So, changes to CAT test and CMT test will be posted in another patchset.

[PATCH v5 10/21] selftests/resctrl: Fix a printed message

2021-03-07 Thread Fenghua Yu
From: Reinette Chatre Add a missing newline to the printed help text to improve readability. Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- Change Log: v5: - Remove the "notok" fix part because the API change fixes it already. tools/testing/selftests/resctrl/resctrl_tests.c | 4

[PATCH v5 04/21] selftests/resctrl: Clean up resctrl features check

2021-03-07 Thread Fenghua Yu
Checking resctrl features call strcmp() to compare feature strings (e.g. "mba", "cat" etc). The checkings are error prone and don't have good coding style. Define the constant strings in macros and call strncmp() to solve the potential issues. Suggested-by: Shuah Khan Signed-off-by: Fenghua Yu -

[PATCH v5 05/21] selftests/resctrl: Ensure sibling CPU is not same as original CPU

2021-03-07 Thread Fenghua Yu
From: Reinette Chatre The resctrl tests can accept a CPU on which the tests are run and use default of CPU #1 if it is not provided. In the CAT test a "sibling CPU" is determined that is from the same package where another thread will be run. The current algorithm with which a "sibling CPU" is d

[PATCH v5 09/21] selftests/resctrl: Share show_cache_info() by CAT and CMT tests

2021-03-07 Thread Fenghua Yu
show_cache_info() functions are defined separately in CAT and CMT tests. But the functions are same for the tests and unnecessary to be defined separately. Share the function by the tests. Suggested-by: Shuah Khan Signed-off-by: Fenghua Yu --- Change Log: v5: - Add this patch (Shuah) tools/tes

[PATCH v5 21/21] selftests/resctrl: Create .gitignore to include resctrl_tests

2021-03-07 Thread Fenghua Yu
Create .gitignore to hold the test file resctrl_tests generated after compiling. Suggested-by: Shuah Khan Signed-off-by: Fenghua Yu --- Change Log: v5: - Add this patch (Shuah) tools/testing/selftests/resctrl/.gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tools/testing/

[PATCH v5 03/21] selftests/resctrl: Fix compilation issues for other global variables

2021-03-07 Thread Fenghua Yu
Reinette reported following compilation issue on Fedora 32, gcc version 10.1.1 /usr/bin/ld: resctrl_tests.o:/resctrl.h:65: multiple definition of `bm_pid'; cache.o:/resctrl.h:65: first defined here Other variables are ppid, tests_run, llc_occup_path, is_amd. Compiler isn't happy because these var

[PATCH v5 01/21] selftests/resctrl: Enable gcc checks to detect buffer overflows

2021-03-07 Thread Fenghua Yu
David reported a buffer overflow error in the check_results() function of the cmt unit test and he suggested enabling _FORTIFY_SOURCE gcc compiler option to automatically detect any such errors. Feature Test Macros man page describes_FORTIFY_SOURCE as below "Defining this macro causes some lightw

[PATCH v5 08/21] selftests/resctrl: Call kselftest APIs to log test results

2021-03-07 Thread Fenghua Yu
Call kselftest APIs instead of using printf() to log test results for cleaner code and better future extension. Suggested-by: Shuah Khan Signed-off-by: Fenghua Yu --- Change Log: v5: - Add this patch (Shuah) tools/testing/selftests/resctrl/cat_test.c| 37 +++ tools/testing/self

[PATCH v5 14/21] selftests/resctrl: Fix MBA/MBM results reporting format

2021-03-07 Thread Fenghua Yu
MBM unit test starts fill_buf (default built-in benchmark) in a new con_mon group (c1, m1) and records resctrl reported mbm values and iMC (Integrated Memory Controller) values every second. It does this for five seconds (randomly chosen value) in total. It then calculates average of resctrl_mbm va

[PATCH v5 15/21] selftests/resctrl: Don't hard code value of "no_of_bits" variable

2021-03-07 Thread Fenghua Yu
Cache related tests (like CAT and CMT) depend on a variable called no_of_bits to run. no_of_bits defines the number of contiguous bits that should be set in the CBM mask and a user can pass a value for no_of_bits using -n command line argument. If a user hasn't passed any value, it defaults to 5 (r

[PATCH v5 07/21] selftests/resctrl: Rename CQM test as CMT test

2021-03-07 Thread Fenghua Yu
CMT (Cache Monitoring Technology) [1] is a H/W feature that reports cache occupancy of a process. resctrl selftest suite has a unit test to test CMT for LLC but the test is named as CQM (Cache Quality Monitoring). Furthermore, the unit test source file is named as cqm_test.c and several functions,

[PATCH v5 11/21] selftests/resctrl: Add config dependencies

2021-03-07 Thread Fenghua Yu
Add the config file for test dependencies. Suggested-by: Shuah Khan Signed-off-by: Fenghua Yu --- Change Log: v5: - Add this patch (Shuah) tools/testing/selftests/resctrl/config | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tools/testing/selftests/resctrl/config diff --git a/too

[PATCH v5 18/21] selftests/resctrl: Fix unmount resctrl FS

2021-03-07 Thread Fenghua Yu
umount_resctrlfs() directly attempts to unmount resctrl file system without checking if resctrl FS is already mounted or not. It returns 0 on success and on failure it prints an error message and returns an error status. Calling umount_resctrlfs() when resctrl FS isn't mounted will return an error

[PATCH v5 20/21] selftests/resctrl: Fix checking for < 0 for unsigned values

2021-03-07 Thread Fenghua Yu
Dan reported following static checker warnings tools/testing/selftests/resctrl/resctrl_val.c:545 measure_vals() warn: 'bw_imc' unsigned <= 0 tools/testing/selftests/resctrl/resctrl_val.c:549 measure_vals() warn: 'bw_resc_end' unsigned <= 0 These warnings are reported because 1. measure_vals() de

[PATCH v5 17/21] selftests/resctrl: Skip the test if requested resctrl feature is not supported

2021-03-07 Thread Fenghua Yu
There could be two reasons why a resctrl feature might not be enabled on the platform 1. H/W might not support the feature 2. Even if the H/W supports it, the user might have disabled the feature through kernel command line arguments Hence, any resctrl unit test (like cmt, cat, mbm and mba) bef

[PATCH v5 06/21] selftests/resctrl: Fix missing options "-n" and "-p"

2021-03-07 Thread Fenghua Yu
resctrl test suite accepts command line arguments (like -b, -t, -n and -p) as documented in the help. But passing -n and -p throws an invalid option error. This happens because -n and -p are missing in the list of characters that getopt() recognizes as valid arguments. Hence, they are treated as in

[PATCH v5 16/21] selftests/resctrl: Modularize resctrl test suite main() function

2021-03-07 Thread Fenghua Yu
Resctrl test suite main() function does the following things 1. Parses command line arguments passed by user 2. Some setup checks 3. Logic that calls into each unit test 4. Print result and clean up after running each unit test Introduce wrapper functions for steps 3 and 4 to modularize the main()

[PATCH v5 19/21] selftests/resctrl: Fix incorrect parsing of iMC counters

2021-03-07 Thread Fenghua Yu
iMC (Integrated Memory Controller) counters are usually at "/sys/bus/event_source/devices/" and are named as "uncore_imc_". num_of_imcs() function tries to count number of such iMC counters so that it could appropriately initialize required number of perf_attr structures that could be used to read

[PATCH v5 12/21] selftests/resctrl: Check for resctrl mount point only if resctrl FS is supported

2021-03-07 Thread Fenghua Yu
check_resctrlfs_support() does the following 1. Checks if the platform supports resctrl file system or not by looking for resctrl in /proc/filesystems 2. Calls opendir() on default resctrl file system path (i.e. /sys/fs/resctrl) 3. Checks if resctrl file system is mounted or not by looking at

[PATCH v5 02/21] selftests/resctrl: Fix compilation issues for global variables

2021-03-07 Thread Fenghua Yu
Reinette reported following compilation issue on Fedora 32, gcc version 10.1.1 /usr/bin/ld: cqm_test.o:/cqm_test.c:22: multiple definition of `cache_size'; cat_test.o:/cat_test.c:23: first defined here The same issue is reported for long_mask, cbm_mask, count_of_bits etc variables as well. Compil

[PATCH v5 13/21] selftests/resctrl: Use resctrl/info for feature detection

2021-03-07 Thread Fenghua Yu
Resctrl test suite before running any unit test (like cmt, cat, mbm and mba) should first check if the feature is enabled (by kernel and not just supported by H/W) on the platform or not. validate_resctrl_feature_request() is supposed to do that. This function intends to grep for relevant flags in

Re: [PATCH AUTOSEL 5.11 09/12] nvme-pci: mark Kingston SKC2000 as not supporting the deepest power state

2021-03-07 Thread Böszörményi Zoltán
Hi, 2021. 03. 07. 14:57 keltezéssel, Sasha Levin írta: From: Zoltán Böszörményi [ Upstream commit dc22c1c058b5c4fe967a20589e36f029ee42a706 ] My 2TB SKC2000 showed the exact same symptoms that were provided in 538e4a8c57 ("nvme-pci: avoid the deepest sleep state on Kingston A2000 SSDs"), i.e.

<    1   2   3   4   5   6   7   >