Re: [PATCH v17 5/9] mm: hugetlb: set the PageHWPoison to the raw error page

2021-03-07 Thread Balbir Singh
On Thu, Feb 25, 2021 at 09:21:26PM +0800, Muchun Song wrote: > Because we reuse the first tail vmemmap page frame and remap it > with read-only, we cannot set the PageHWPosion on some tail pages. > So we can use the head[4].private (There are at least 128 struct > page structures associated with

Re: qemu meltdown test failure was Re: [PATCH 4.4 00/30] 4.4.260-rc1 review

2021-03-07 Thread Pavel Machek
Hi! > > > Ok, so we ran some tests. > > > > > > And they failed: > > > > > > https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/jobs/1075959449 > > > > > > [ 26.785861] > > RESULT=fail> > > > Received signal: TEST_CASE_ID=CVE-2018-3639 RESULT=fail > > > > > > Testcase name is

Re: [PATCH v3 0/4] ALSA: hda/cirrus: Add support for CS8409 HDA bridge and CS42L42 companion codec

2021-03-07 Thread Takashi Iwai
On Sat, 06 Mar 2021 12:19:30 +0100, Vitaly Rodionov wrote: > > Dell's laptops Inspiron 3500, Inspiron 3501, Inspiron 3505 are using > Cirrus Logic CS8409 HDA bridge with CS42L42 companion codec. > > The CS8409 is a multichannel HD audio routing controller. > CS8409 includes support for four

Re: [PATCH] net: mellanox: mlxsw: fix error return code of mlxsw_sp_router_nve_promote_decap()

2021-03-07 Thread Ido Schimmel
On Sat, Mar 06, 2021 at 03:32:39PM +0100, Heiner Kallweit wrote: > On 06.03.2021 15:07, Jia-Ju Bai wrote: > > When fib_entry is NULL, no error return code of > > mlxsw_sp_router_nve_promote_decap() is assigned. > > To fix this bug, err is assigned with -EINVAL in this case. > > > Again, are you

Re: [PATCH v4 4/4] mtd: spi-nor: implement OTP erase for Winbond and similar flashes

2021-03-07 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Michael-Walle/mtd-spi-nor-OTP-support/20210307-110709 base: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git spi-nor/next config: sparc-allyesconfig (attached

Re: [PATCH] infiniband: hw: cxgb4: fix error return code of close_listsrv_rpl()

2021-03-07 Thread Leon Romanovsky
On Sat, Mar 06, 2021 at 05:55:48AM -0800, Jia-Ju Bai wrote: > When ep is NULL, no error code of close_listsrv_rpl() is returned. > To fix this bug, close_listsrv_rpl() returns -EINVAL in this case. I don't think that this is an error. > > Reported-by: TOTE Robot > Signed-off-by: Jia-Ju Bai >

[PATCH] net: wan: fix error return code of uhdlc_init()

2021-03-07 Thread Jia-Ju Bai
When priv->rx_skbuff or priv->tx_skbuff is NULL, no error return code of uhdlc_init() is assigned. To fix this bug, ret is assigned with -ENOMEM in these cases. Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers/net/wan/fsl_ucc_hdlc.c | 8 ++-- 1 file changed, 6 insertions(+), 2

Re: [PATCH] ath: ath6kl: fix error return code of ath6kl_htc_rx_bundle()

2021-03-07 Thread Leon Romanovsky
On Sun, Mar 07, 2021 at 01:07:57AM -0800, Jia-Ju Bai wrote: > When hif_scatter_req_get() returns NULL to scat_req, no error return > code of ath6kl_htc_rx_bundle() is assigned. > To fix this bug, status is assigned with -EINVAL in this case. > > Reported-by: TOTE Robot > Signed-off-by: Jia-Ju Bai

[PATCH] gpu: drm: amd: amdgpu: fix error return code of amdgpu_acpi_init()

2021-03-07 Thread Jia-Ju Bai
Add error return code in error hanlding code of amdgpu_acpi_init(). Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c

[PATCH v3 2/4] devfreq/drivers/msm: Use devfreq cooling device registration

2021-03-07 Thread Daniel Lezcano
The devfreq core code is able to register the devfreq device as a cooling device if the 'is_cooling_device' flag is set in the profile. Use this flag and remove the cooling device registering code. Tested on dragonboard 845c Signed-off-by: Daniel Lezcano --- drivers/gpu/drm/msm/msm_gpu.c | 12

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

2021-03-07 Thread Daniel Lezcano
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 profile to tell the common devfreq code to

[PATCH v3 4/4] devfreq/drivers/lima: Use devfreq cooling device registration

2021-03-07 Thread Daniel Lezcano
The devfreq core code is able to register the devfreq device as a cooling device if the 'is_cooling_device' flag is set in the profile. Use this flag and remove the cooling device registering code. Signed-off-by: Daniel Lezcano --- drivers/gpu/drm/lima/lima_devfreq.c | 14 +-

[PATCH v3 3/4] devfreq/drivers/panfrost: Use devfreq cooling device registration

2021-03-07 Thread Daniel Lezcano
The devfreq core code is able to register the devfreq device as a cooling device if the 'is_cooling_device' flag is set in the profile. Use this flag and remove the cooling device registering code. Tested on rock960. Signed-off-by: Daniel Lezcano ---

[PATCH 2/2] Perf: Clean beauty directory.

2021-03-07 Thread Gon Solo
Clean up generated beauty directory. Suggested-by: Arnaldo Carvalho de Melo Signed-off-by: Andreas Wendleder --- tools/perf/Makefile.perf | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 5345ac70cd83..293e297f719d 100644 ---

[PATCH] rsi: fix error return code of rsi_load_9116_firmware()

2021-03-07 Thread Jia-Ju Bai
When kmemdup() returns NULL to ta_firmware, no error return code of rsi_load_9116_firmware() is assigned. To fix this bug, status is assigned with -ENOMEM in this case. Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers/net/wireless/rsi/rsi_91x_hal.c | 4 +++- 1 file changed, 3

[PATCH] net: hisilicon: hns: fix error return code of hns_nic_clear_all_rx_fetch()

2021-03-07 Thread Jia-Ju Bai
When hns_assemble_skb() returns NULL to skb, no error return code of hns_nic_clear_all_rx_fetch() is assigned. To fix this bug, ret is assigned with -ENOMEM in this case. Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 4 +++- 1 file

Re: [PATCH] net: mellanox: mlx5: fix error return code in mlx5_fpga_device_start()

2021-03-07 Thread Leon Romanovsky
On Thu, Mar 04, 2021 at 06:18:14AM -0800, Jia-Ju Bai wrote: > When mlx5_is_fpga_lookaside() returns a non-zero value, no error > return code is assigned. > To fix this bug, err is assigned with -EINVAL as error return code. > > Reported-by: TOTE Robot > Signed-off-by: Jia-Ju Bai > --- >

[PATCH] usb: gadget: legacy: fix error return code of msg_bind()

2021-03-07 Thread Jia-Ju Bai
When usb_otg_descriptor_alloc() returns NULL to usb_desc, no error return code of msg_bind() is assigned. To fix this bug, status is assigned with -ENOMEM in this case. Reported-by: TOTE Robot > Signed-off-by: Jia-Ju Bai --- drivers/usb/gadget/legacy/mass_storage.c | 4 +++- 1 file changed, 3

Re: [PATCH 3/3] vDPA/ifcvf: bump version string to 1.0

2021-03-07 Thread Leon Romanovsky
On Fri, Mar 05, 2021 at 10:20:00PM +0800, Zhu Lingshan wrote: > This commit bumps ifcvf driver version string to 1.0 > > Signed-off-by: Zhu Lingshan > --- > drivers/vdpa/ifcvf/ifcvf_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c

Re: [PATCH] ath: ath6kl: fix error return code of ath6kl_htc_rx_bundle()

2021-03-07 Thread Jia-Ju Bai
Hi Leon, I am quite sorry for my incorrect patches... My static analysis tool reports some possible bugs about error handling code, and thus I write some patches for the bugs that seem to be true in my opinion. Because I am not familiar with many device drivers, some of my reported bugs can

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

2021-03-07 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Vitaly-Wool/RISC-V-enable-XIP/20210307-103904 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 280d542f6ffac0e6d65dc267f92191d509b13b64 config: riscv

[PATCH 1/2] Perf: Clean generated directory, other archs.

2021-03-07 Thread Gon Solo
After a make clean there are generated directories left in the arch directories of perf. Clean them up. Suggested-by: Arnaldo Carvalho de Melo Signed-off-by: Andreas Wendleder --- tools/perf/arch/arm64/Makefile | 5 +++-- tools/perf/arch/powerpc/Makefile | 5 +++--

[PATCH] ti: wlcore: fix error return code of wl1271_cmd_build_ps_poll()

2021-03-07 Thread Jia-Ju Bai
When ieee80211_pspoll_get() returns NULL to skb, no error return code of wl1271_cmd_build_ps_poll() is assigned. To fix this bug, ret is assigned with -ENOMEM in this case. Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers/net/wireless/ti/wlcore/cmd.c | 4 +++- 1 file changed, 3

Re: [PATCH v6 2/5] USB: misc: Add onboard_usb_hub driver

2021-03-07 Thread kernel test robot
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/Matthias-Kaehlcke/USB-misc-Add-onboard_usb_hub-driver/20210307-113654 base: https://git.kernel.org/pub/scm/linux

[PATCH resend] usb: gadget: legacy: fix error return code of msg_bind()

2021-03-07 Thread Jia-Ju Bai
When usb_otg_descriptor_alloc() returns NULL to usb_desc, no error return code of msg_bind() is assigned. To fix this bug, status is assigned with -ENOMEM in this case. Reported-by: TOTE Robot > Signed-off-by: Jia-Ju Bai --- drivers/usb/gadget/legacy/mass_storage.c | 4 +++- 1 file changed, 3

[PATCH] usb: renesas_usbhs: fix error return code of usbhsf_pkt_handler()

2021-03-07 Thread Jia-Ju Bai
When __usbhsf_pkt_get() returns NULL to pkt, no error return code of usbhsf_pkt_handler() is assigned. To fix this bug, ret is assigned with -EINVAL in this case. Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers/usb/renesas_usbhs/fifo.c | 4 +++- 1 file changed, 3 insertions(+), 1

[syzbot] possible deadlock in io_sq_thread_finish

2021-03-07 Thread syzbot
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: https://syzkaller.appspot.com/x/.config?x=db9c6adb4986f2f2 dashboard link:

Re: [PATCH 2/4] mips: bmips: add BCM63268 timer reset definitions

2021-03-07 Thread Álvaro Fernández Rojas
Hi Rob, El 06/03/2021 a las 22:17, Rob Herring escribió: On Thu, Feb 25, 2021 at 08:41:59PM +0100, Álvaro Fernández Rojas wrote: Add missing timer reset definitions for BCM63268. Signed-off-by: Álvaro Fernández Rojas --- include/dt-bindings/reset/bcm63268-reset.h | 4 1 file changed,

[GIT PULL] m68k updates for 5.12 (take two)

2021-03-07 Thread Geert Uytterhoeven
Hi Linus, The following changes since commit a38fd8748464831584a19438cbb3082b5a2dab15: Linux 5.12-rc2 (2021-03-05 17:33:41 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git tags/m68k-for-v5.12-tag2 for you to fetch

Build regressions/improvements in v5.12-rc2

2021-03-07 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v5.12-rc2[1] compared to v5.11[2]. Summarized: - build errors: +2/-0 - build warnings: +116/-8 JFYI, when comparing v5.12-rc2[1] to v5.12-rc1[3], the summaries are: - build errors: +0/-0 - build warnings: +0/-1 Happy

Re: [bugreport 5.9-rc8] general protection fault in __bfq_deactivate_entity

2021-03-07 Thread Dmitry Vyukov
On Sun, Mar 7, 2021 at 11:09 AM Hillf Danton wrote: > > On Sun, 7 Mar 2021 08:46:19 +0100 Dmitry Vyukov wrote: > > On Sun, Mar 7, 2021 at 3:15 AM Hillf Danton wrote: > > > > > > Dmitry can you shed some light on the tricks to config kasan to print > > > Call Trace as the reports with the

Re: [External] Re: [PATCH v17 5/9] mm: hugetlb: set the PageHWPoison to the raw error page

2021-03-07 Thread Muchun Song
On Sun, Mar 7, 2021 at 4:19 PM Balbir Singh wrote: > > On Thu, Feb 25, 2021 at 09:21:26PM +0800, Muchun Song wrote: > > Because we reuse the first tail vmemmap page frame and remap it > > with read-only, we cannot set the PageHWPosion on some tail pages. > > So we can use the head[4].private

Re: [PATCH] platform/x86: intel_pmc: Ignore GBE LTR on Tiger Lake platforms

2021-03-07 Thread Neftin, Sasha
On 3/5/2021 21:06, David E. Box wrote: Due to a HW limitation, the Latency Tolerance Reporting (LTR) value programmed in the Tiger Lake GBE controller is not large enough to allow the platform to enter Package C10, which in turn prevents the platform from achieving its low power target during

[PATCH] usb: gadget: legacy: fix error return code of multi_bind()

2021-03-07 Thread Jia-Ju Bai
When usb_otg_descriptor_alloc() returns NULL to usb_desc, no error return code of multi_bind() is assigned. To fix this bug, status is assigned with -ENOMEM in this case. Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers/usb/gadget/legacy/multi.c | 4 +++- 1 file changed, 3

[PATCH] ath: ath6kl: fix error return code of ath6kl_htc_rx_bundle()

2021-03-07 Thread Jia-Ju Bai
When hif_scatter_req_get() returns NULL to scat_req, no error return code of ath6kl_htc_rx_bundle() is assigned. To fix this bug, status is assigned with -EINVAL in this case. Reported-by: TOTE Robot Signed-off-by: Jia-Ju Bai --- drivers/net/wireless/ath/ath6kl/htc_mbox.c | 4 +++- 1 file

Re: [PATCH] infiniband: hw: cxgb4: fix error return code of pass_open_rpl()

2021-03-07 Thread Leon Romanovsky
On Sat, Mar 06, 2021 at 05:53:17AM -0800, Jia-Ju Bai wrote: > When ep is NULL, no error code of pass_open_rpl() is returned. > To fix this bug, pass_open_rpl() returns -EINVAL in this case. Why do you think that this is an error? > > Reported-by: TOTE Robot > Signed-off-by: Jia-Ju Bai > --- >

Re: [PATCH v2 1/2] dt-bindings: interrupt-controller: document BCM6345 external interrupt controller

2021-03-07 Thread Álvaro Fernández Rojas
Hi Rob, El 06/03/2021 a las 21:14, Rob Herring escribió: On Wed, Feb 24, 2021 at 08:56:39AM +0100, Álvaro Fernández Rojas wrote: Document the binding for the BCM6345 external interrupt controller. Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Jonas Gorski Reviewed-by: Florian

[GIT PULL] Please pull powerpc/linux.git powerpc-5.12-2 tag

2021-03-07 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc fixes for 5.12: The following changes since commit fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8: Linux 5.12-rc1 (2021-02-28 16:05:19 -0800) are available in the git repository at:

Re: [RFC PATCH v2 13/13] objtool: arm64: Enable stack validation for arm64

2021-03-07 Thread Ard Biesheuvel
On Wed, 3 Mar 2021 at 18:10, Julien Thierry wrote: > > From: Raphael Gault > > Add build option to run stack validation at compile time. > > When requiring stack validation, jump tables are disabled as it > simplifies objtool analysis (without having to introduce unreliable > artifacs). In local

Re: [PATCH v1 12/15] powerpc/uaccess: Refactor get/put_user() and __get/put_user()

2021-03-07 Thread kernel test robot
' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Christophe-Leroy/powerpc-Cleanup-of-uaccess-h/20210226-015715 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next config: powerpc-randconfig-s031-20210307 (attached

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

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

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

[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 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 +

[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

[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

[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

[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

[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

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

[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 @@

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 > > >

[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: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
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 x86_64

[tip:x86/mm] BUILD SUCCESS a500fc918f7b8dc3dff2e6c74f3e73e856c18248

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/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: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

[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 |

[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

[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)

[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

[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

[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

[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 +++

[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

[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

[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

[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()

[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)

[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

[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

[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

[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.

[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.

[PATCH v4 resend 13/13] ASoC: Intel: bytcr_wm5102: Add jack detect support

2021-03-07 Thread Hans de Goede
Add jack detect support by creating a jack and calling snd_soc_component_set_jack to register the created jack with the codec. Reviewed-by: Andy Shevchenko Signed-off-by: Hans de Goede --- sound/soc/intel/boards/bytcr_wm5102.c | 28 ++- 1 file changed, 27 insertions(+),

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

2021-03-07 Thread Andi Kleen
Sorry for the late answer. I somehow missed your email earlier. > As a mitigation method, all the offending tasks involved in the attack are > killed. Or in other words, all the tasks that share the same statistics > (statistics showing a fast crash rate) are killed. So systemd will just restart

Re: [PATCH v2 1/3] mailbox: sprd: Introduce refcnt when clients requests/free channels

2021-03-07 Thread Baolin Wang
On Sat, Feb 13, 2021 at 8:22 PM Orson Zhai wrote: > > From: Orson Zhai > > Unisoc mailbox has no way to be enabled/disabled for any single channel. > They can only be set to startup or shutdown as a whole device at same time. > > Add a variable to count references to avoid mailbox FIFO being

Re: [PATCH stable v5.10 0/7] arm64: Default to 32-bit wide ZONE_DMA

2021-03-07 Thread Greg KH
On Thu, Mar 04, 2021 at 04:09:28PM +0100, Nicolas Saenz Julienne wrote: > On Thu, 2021-03-04 at 15:17 +0100, Greg KH wrote: > > On Thu, Mar 04, 2021 at 03:05:32PM +0100, Nicolas Saenz Julienne wrote: > > > Hi Greg. > > > > > > On Thu, 2021-03-04 at 14:46 +0100, Greg KH wrote: > > > > On Wed, Mar

Re: stable kernel checksumming fails

2021-03-07 Thread Konstantin Ryabitsev
On Sun, Mar 07, 2021 at 03:45:15PM +0100, Greg KH wrote: > > checksumming the downloaded kernel manually gives an "Okay" though. > > > > > > is this just me (on Fedora 33) ? > > Fails for me on Arch: > > Verifying checksum on linux-5.11.4.tar.xz > /usr/bin/sha256sum: >

Re: [xhci] usb 4-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd

2021-03-07 Thread Alan Stern
On Sat, Mar 06, 2021 at 09:49:00PM +0100, Sedat Dilek wrote: > For testing purposes, I stopped these systemd services: > > 1. systemctl stop smartmontools.service > > 2. systemctl stop udisks2.service > > Last seen xhci-reset: > > [Sat Mar 6 21:37:40 2021] SCSI ioctl error, cmd 85, prog

Re: stable kernel checksumming fails

2021-03-07 Thread Greg KH
On Sun, Mar 07, 2021 at 10:43:54AM -0500, Konstantin Ryabitsev wrote: > On Sun, Mar 07, 2021 at 03:45:15PM +0100, Greg KH wrote: > > > checksumming the downloaded kernel manually gives an "Okay" though. > > > > > > > > > is this just me (on Fedora 33) ? > > > > Fails for me on Arch: > > > >

Re: [PATCH -next] phy: ingenic: Fix a typo in ingenic_usb_phy_probe()

2021-03-07 Thread Paul Cercueil
Le ven. 5 mars 2021 à 3:49, 'Wei Yongjun a écrit : From: Wei Yongjun Fix the return value check typo which testing the wrong variable in ingenic_usb_phy_probe(). Fixes: 31de313dfdcf ("PHY: Ingenic: Add USB PHY driver using generic PHY framework.") Reported-by: Hulk Robot

Re: [PATCH] clk: Fix doc of clk_get_parent

2021-03-07 Thread Paul Cercueil
Le dim. 7 mars 2021 à 14:30, Russell King - ARM Linux admin a écrit : 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

Re: [PATCH 15/17] usb: xhci-mtk: support to build xhci-mtk-hcd.ko

2021-03-07 Thread Greg Kroah-Hartman
On Fri, Mar 05, 2021 at 05:02:53PM +0800, Chunfeng Yun wrote: > Currently xhci-hcd.ko building depends on USB_XHCI_MTK, this > is not flexible for some cases. For example: > USB_XHCI_HCD is y, and USB_XHCI_MTK is m, then we can't > implement extended functions if only update xhci-mtk.ko > This

[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

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 >>

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

[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

  1   2   3   4   5   6   7   >