Re: [GIT PULL] More power management updates for v5.11-rc1

2020-12-22 Thread pr-tracker-bot
The pull request you sent on Tue, 22 Dec 2020 20:13:35 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > pm-5.11-rc1-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4960821a4d80781fd3e63cd71fb1b38c2dadb915 Thank you! -- Deet-doot-dot, I

Re: [GIT PULL] More ACPI updates for v5.11-rc1

2020-12-22 Thread pr-tracker-bot
The pull request you sent on Tue, 22 Dec 2020 20:15:22 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git > acpi-5.11-rc1-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/614cb5894306cfa2c7d9b6168182876ff5948735 Thank you! -- Deet-doot-dot,

Re: [GIT PULL 1/2] Kbuild updates for v5.11-rc1

2020-12-22 Thread pr-tracker-bot
The pull request you sent on Wed, 23 Dec 2020 01:45:59 +0900: > git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git > tags/kbuild-v5.11 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7b95f0563ab5a8f75195cdd4b2c3325c0c1df319 Thank you! -- Deet-d

Re: [GIT PULL] hwmon updates for v5.11-take2

2020-12-22 Thread pr-tracker-bot
The pull request you sent on Tue, 22 Dec 2020 08:22:44 -0800: > git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git > hwmon-for-v5.11-take2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4e31dcc0a9231462f0e275544b5aebc668481a4e Thank you! -- Deet

Re: [PATCH v3 4/9] platform/surface: aggregator: Add trace points

2020-12-22 Thread Steven Rostedt
On Mon, 21 Dec 2020 19:39:54 +0100 Maximilian Luz wrote: > Add trace points to the Surface Aggregator subsystem core. These trace > points can be used to track packets, requests, and allocations. They are > further intended for debugging and testing/validation, specifically in > combination with

Re: [PATCH v3 5/9] platform/surface: aggregator: Add error injection capabilities

2020-12-22 Thread Steven Rostedt
On Mon, 21 Dec 2020 19:39:55 +0100 Maximilian Luz wrote: > This commit adds error injection hooks to the Surface Serial Hub > communication protocol implementation, to: > > - simulate simple serial transmission errors, > > - drop packets, requests, and responses, simulating communication >

[ANNOUNCE] rt-tests-1.10

2020-12-22 Thread John Kacur
Dear RT Folks, I'm pleased to announce rt-tests-1.10 To download rt-tests: using git, clone one of the following git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git https://kernel.googlesource.com/pub/scm/utils/rt-tests/rt-tests.git

Re: [PATCH v5 1/7] scsi: ufs: Add "wb_on" sysfs node to control WB on/off

2020-12-22 Thread Bean Huo
On Tue, 2020-12-22 at 21:57 +0100, Bean Huo wrote: > > > May this operation race with UFS shutdown flow? > > > > > > To be more clear, ufshcd_wb_ctrl() here may be executed after > > > host > > > clock > > > is disabled by shutdown flow? > > > > > > If yes, we need to avoid it. > > > > I have t

Re: kernel BUG at lib/string.c:LINE! (6)

2020-12-22 Thread Florian Westphal
Linus Torvalds wrote: > On Tue, Dec 22, 2020 at 6:44 AM syzbot > wrote: > > > > The issue was bisected to: > > > > commit 2f78788b55ba ("ilog2: improve ilog2 for constant arguments") > > That looks unlikely, although possibly some constant folding > improvement might make the fortify code notice

[PATCH v2] drivers/soc/litex: support 32-bit subregisters, 64-bit CPUs

2020-12-22 Thread Gabriel Somlo
The upstream LiteX project now defaults to using 32-bit subregisters (see https://github.com/enjoy-digital/litex/commit/a2b71fde). This patch expands on commit 22447a99c97e, adding support for handling both 8 and 32 bit LiteX CSR (MMIO) subregisters, as controlled by the LITEX_SUBREG_SIZE Kconfig

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Andrea Arcangeli
On Tue, Dec 22, 2020 at 02:14:41PM -0700, Yu Zhao wrote: > This works but I don't prefer this option because 1) this is new > way of making pte_wrprotect safe and 2) it's specific to ufd and > can't be applied to clear_soft_dirty() which has no "catcher". No I didn't look into clear_soft_dirty iss

Re: kernel BUG at lib/string.c:LINE! (6)

2020-12-22 Thread Linus Torvalds
On Tue, Dec 22, 2020 at 6:44 AM syzbot wrote: > > The issue was bisected to: > > commit 2f78788b55ba ("ilog2: improve ilog2 for constant arguments") That looks unlikely, although possibly some constant folding improvement might make the fortify code notice something with it. > detected buffer ov

Re: [RFC PATCH 4/4] powerpc: Use common of_kexec_setup_new_fdt()

2020-12-22 Thread Thiago Jung Bauermann
Rob Herring writes: > Signed-off-by: Rob Herring > --- > > After the IMA changes, delete_fdt_mem_rsv() can also be removed. > > arch/powerpc/kexec/file_load.c | 125 ++--- > 1 file changed, 6 insertions(+), 119 deletions(-) Reviewed-by: Thiago Jung Bauermann Sho

Re: [RFC PATCH 2/4] of: Add a common kexec FDT setup function

2020-12-22 Thread Thiago Jung Bauermann
Rob Herring writes: > Both arm64 and powerpc do essentially the same FDT /chosen setup for > kexec. We can simply combine everything each arch does. The differences > are either omissions that arm64 should have or additional properties > that will be ignored. > > The differences relative to the

Re: [RFC PATCH 3/4] arm64: Use common of_kexec_setup_new_fdt()

2020-12-22 Thread Thiago Jung Bauermann
Rob Herring writes: > Signed-off-by: Rob Herring > --- > arch/arm64/kernel/machine_kexec_file.c | 123 + > 1 file changed, 3 insertions(+), 120 deletions(-) Reviewed-by: Thiago Jung Bauermann -- Thiago Jung Bauermann IBM Linux Technology Center

RE: v5.10: sched_cpu_dying() hits BUG_ON during hibernation: kernel BUG at kernel/sched/core.c:7596!

2020-12-22 Thread Dexuan Cui
> From: Valentin Schneider > Sent: Tuesday, December 22, 2020 5:40 AM > To: Dexuan Cui > Cc: mi...@redhat.com; pet...@infradead.org; juri.le...@redhat.com; > vincent.guit...@linaro.org; dietmar.eggem...@arm.com; > rost...@goodmis.org; bseg...@google.com; mgor...@suse.de; > bris...@redhat.com; x..

Re: building csky with CC=clang

2020-12-22 Thread Fangrui Song
On 2020-12-22, 'Nick Desaulniers' via Clang Built Linux wrote: Hello! I was playing with some of LLVM's experimental backends (m68k) and saw there was a CSKY backend. I rebuilt LLVM to support CSKY, but I ran into trouble building the kernel before even getting to the compiler invocation: $ ARCH

Re: [RFC PATCH 1/4] powerpc: Rename kexec elfcorehdr_addr to elf_headers_mem

2020-12-22 Thread Thiago Jung Bauermann
Hello Rob, Thank you for making this series. Rob Herring writes: > Align with arm64 name so common code can use it. > > Signed-off-by: Rob Herring > --- > arch/powerpc/include/asm/kexec.h | 2 +- > arch/powerpc/kexec/file_load.c| 4 ++-- > arch/powerpc/kexec/file_load_64.c | 4 ++-- >

Re: [PATCH -tip V2 00/10] workqueue: break affinity initiatively

2020-12-22 Thread Dexuan-Linux Cui
On Fri, Dec 18, 2020 at 8:11 AM Lai Jiangshan wrote: > > From: Lai Jiangshan > > 06249738a41a ("workqueue: Manually break affinity on hotplug") > said that scheduler will not force break affinity for us. > > But workqueue highly depends on the old behavior. Many parts of the codes > relies on it,

Re: [PATCHSET] saner elf compat

2020-12-22 Thread Al Viro
On Tue, Dec 22, 2020 at 08:04:31PM +, Al Viro wrote: > FWIW, on debian/mips64el (both stretch and buster) the test fails with the > distro kernels (4.9- and 4.19-based) as well as with 5.10-rc1 and > 5.10-rc1+that series, all in the same way: > [Current thread is 1 (LWP 4154)] > (gdb) p/x foo

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Andrea Arcangeli
On Tue, Dec 22, 2020 at 12:58:18PM -0800, Nadav Amit wrote: > I had somewhat similar ideas - saving in each page-struct the generation, > which would allow to: (1) extend pte_same() to detect interim changes > that were reverted (RO->RW->RO) and (2) per-PTE pending flushes. What don't you feel saf

Re: [GIT PULL REQUEST] watchdog - v5.11 Merge window

2020-12-22 Thread Linus Torvalds
On Tue, Dec 22, 2020 at 9:42 AM Wim Van Sebroeck wrote: > > git://www.linux-watchdog.org/linux-watchdog.git linux-watchdog-5.11-rc1 There's no such tag there. Forgot to push out? I can see the the top-of-tree has the SHA1 that you mention: > for you to fetch changes up to 0b9491b621196a5d7f1

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Andrea Arcangeli
On Tue, Dec 22, 2020 at 12:19:49PM -0800, Nadav Amit wrote: > Perhaps any change to PTE in a page-table should increase a page-table > generation that we would save in the page-table page-struct (next to the The current rule is that by the time in the page fault we find a pte/hugepmd in certain st

Re: [PATCH v3 03/24] wfx: add Makefile/Kconfig

2020-12-22 Thread Jérôme Pouiller
On Tuesday 22 December 2020 16:02:38 CET Kalle Valo wrote: > Jerome Pouiller writes: > > > From: Jérôme Pouiller > > > > Signed-off-by: Jérôme Pouiller > > [...] > > > +wfx-$(CONFIG_SPI) += bus_spi.o > > +wfx-$(subst m,y,$(CONFIG_MMC)) += bus_sdio.o > > Why this subst? And why only for MMC?

drivers/clocksource/timer-clint.c:72:24: sparse: sparse: cast removes address space '__iomem' of expression

2020-12-22 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8653b778e454a7708847aeafe689bce07aeeb94e commit: 2ac6795fcc085e8d03649f1bbd0d70aaff612cad clocksource/drivers: Add CLINT timer driver date: 4 months ago config: riscv-randconfig-s031-20201221 (attached as

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Yu Zhao
On Tue, Dec 22, 2020 at 02:31:52PM -0500, Andrea Arcangeli wrote: > On Mon, Dec 21, 2020 at 07:19:35PM -0800, Andy Lutomirski wrote: > > instance of this (with mmap_sem held for write) in x86: > > mark_screen_rdonly(). Dare I ask how broken this is? We could likely > > That one is buggy despite

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Nadav Amit
> On Dec 22, 2020, at 11:31 AM, Andrea Arcangeli wrote: > > From 4ace4d1b53f5cb3b22a5c2dc33facc4150b112d6 Mon Sep 17 00:00:00 2001 > From: Andrea Arcangeli > Date: Tue, 22 Dec 2020 14:30:16 -0500 > Subject: [PATCH 1/1] mm: userfaultfd: avoid leaving stale TLB after > userfaultfd_writeprotect() >

Hello My Dearest,

2020-12-22 Thread MRS. ROSETTA DOUGLASS
Greetings! I am Mrs. Rosetta Douglass, I have decided to donate what I have to you/Churches/ Motherless babies/Less privileged/Widows' because I have been suffering from throat cancer for two years now and I have a short life to leave according to my doctor, I am entrusting this charity project to

Re: [PATCH 13/13] dt-bindings: cpufreq: qcom-hw: Add bindings for 8998

2020-12-22 Thread AngeloGioacchino Del Regno
Il 08/12/20 19:11, Rob Herring ha scritto: Hello! Replying very late seem to be obligatory for me nowadays so for this and for any other late replies: I'm sorry! On Thu, Nov 26, 2020 at 07:45:59PM +0100, AngeloGioacchino Del Regno wrote: The OSM programming addition has been done under the qco

[PATCH] ACPI: NFIT: fix flexible_array.cocci warnings

2020-12-22 Thread Julia Lawall
From: kernel test robot Zero-length and one-element arrays are deprecated, see Documentation/process/deprecated.rst Flexible-array members should be used instead. Generated by: scripts/coccinelle/misc/flexible_array.cocci Fixes: 7b36c1398fb6 ("coccinelle: misc: add flexible_array.cocci script")

Re: [PATCH v5 1/7] scsi: ufs: Add "wb_on" sysfs node to control WB on/off

2020-12-22 Thread Bean Huo
On Tue, 2020-12-22 at 21:50 +0100, Bean Huo wrote: > > > > May this operation race with UFS shutdown flow? > > > > To be more clear, ufshcd_wb_ctrl() here may be executed after host > > clock > > is disabled by shutdown flow? > > > > If yes, we need to avoid it. > > > > Thanks, > > Stanley Chu

Re: [dm-devel] DM's filesystem lookup in dm_get_dev_t() [was: Re: linux-next: manual merge of the device-mapper tree with Linus' tree]

2020-12-22 Thread Alasdair G Kergon
On Tue, Dec 22, 2020 at 06:24:09PM +0100, Hannes Reinecke wrote: > However, lookup_bdev() now always recurses into the filesystem, causing > multipath to stall in an all-paths-down scenario. I have not read the background about whatever the new problem is - I'm jumping in cold seeing this messag

RE: [PATCH] zsmalloc: do not use bit_spin_lock

2020-12-22 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Vitaly Wool [mailto:vitaly.w...@konsulko.com] > Sent: Tuesday, December 22, 2020 10:44 PM > To: Song Bao Hua (Barry Song) > Cc: Shakeel Butt ; Minchan Kim ; Mike > Galbraith ; LKML ; linux-mm > ; Sebastian Andrzej Siewior ; > NitinGupta ; Sergey Senozhatsky >

Re: [PATCH v3 12/24] wfx: add hif_api_*.h

2020-12-22 Thread Jérôme Pouiller
On Tuesday 22 December 2020 16:20:46 CET Kalle Valo wrote: > Jerome Pouiller writes: > > > --- /dev/null > > +++ b/drivers/net/wireless/silabs/wfx/hif_api_general.h > > @@ -0,0 +1,267 @@ > > +/* SPDX-License-Identifier: Apache-2.0 */ > > +/* > > + * WFx hardware interface definitions > > + * > >

[PATCH] fs: binfmt_em86: check return code of remove_arg_zero

2020-12-22 Thread Nick Desaulniers
remove_arg_zero is declared as __must_check. Looks like it can return -EFAULT on failure. Cc: Masahiro Yamada Cc: Miguel Ojeda Reported-by: Guenter Roeck Signed-off-by: Nick Desaulniers --- fs/binfmt_em86.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/binfmt_em86.c

Re: [PATCH v3 09/24] wfx: add hwio.c/hwio.h

2020-12-22 Thread Jérôme Pouiller
On Tuesday 22 December 2020 16:27:01 CET Greg Kroah-Hartman wrote: > > On Tue, Dec 22, 2020 at 05:10:11PM +0200, Kalle Valo wrote: > > Jerome Pouiller writes: > > > > > +/* > > > + * Internal helpers. > > > + * > > > + * About CONFIG_VMAP_STACK: > > > + * When CONFIG_VMAP_STACK is enabled, it is

Re: [PATCH v13 2/6] powerpc: Move arch independent ima kexec functions to drivers/of/kexec.c

2020-12-22 Thread Lakshmi Ramasubramanian
On 12/22/20 11:45 AM, Mimi Zohar wrote: On Tue, 2020-12-22 at 10:53 -0800, Lakshmi Ramasubramanian wrote: On 12/22/20 6:26 AM, Mimi Zohar wrote: Hi Mimi, On Sat, 2020-12-19 at 09:57 -0800, Lakshmi Ramasubramanian wrote: diff --git a/arch/powerpc/kexec/Makefile b/arch/powerpc/kexec/Makefile

Re: [PATCH] Bluetooth: btrtl: Enable central-peripheral role

2020-12-22 Thread Marcel Holtmann
Hi Abhishek, > Enable the central-peripheral role on RTL8822CE. This enables creating > connections while there is an existing connection in the slave role. > > This change can be confirmed in userspace via `bluetoothctl show` which > will now show "Roles: central-peripheral". > > Reviewed-by: D

Re: [Aspeed, v2 2/2] net: ftgmac100: Change the order of getting MAC address

2020-12-22 Thread Andrew Lunn
On Tue, Dec 22, 2020 at 09:46:52PM +0100, Heiner Kallweit wrote: > On 22.12.2020 21:14, Hongwei Zhang wrote: > > Dear Reviewer, > > > > Use native MAC address is preferred over other choices, thus change the > > order > > of reading MAC address, try to read it from MAC chip first, if it's not > >

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Nadav Amit
> On Dec 22, 2020, at 12:34 PM, Andy Lutomirski wrote: > > On Sat, Dec 19, 2020 at 2:06 PM Nadav Amit wrote: >>> [ I have in mind another solution, such as keeping in each page-table a >>> “table-generation” which is the mm-generation at the time of the change, >>> and only flush if “table-gener

Re: [PATCH v5 1/7] scsi: ufs: Add "wb_on" sysfs node to control WB on/off

2020-12-22 Thread Bean Huo
On Tue, 2020-12-22 at 14:12 +0800, Can Guo wrote: > > > +return -EOPNOTSUPP; > > > + > > > +if (kstrtouint(buf, 0, &wb_enable)) > > > +return -EINVAL; > > > + > > > +if (wb_enable != 0 && wb_enable != 1) > > > +return -EINVAL; > > > + > > > +pm_runtim

[PATCH] sh: check return code of request_irq

2020-12-22 Thread Nick Desaulniers
request_irq is marked __must_check, but the call in shx3_prepare_cpus has a void return type, so it can't propagate failure to the caller. Follow cues from hexagon and just print an error. Fixes: c7936b9abcf5 ("sh: smp: Hook in to the generic IPI handler for SH-X3 SMP.") Cc: Miguel Ojeda Cc: Pau

Re: [PATCH bpf-next 1/2] bpf: Add a bpf_kallsyms_lookup helper

2020-12-22 Thread Florent Revest
On Fri, Dec 18, 2020 at 4:20 AM Alexei Starovoitov wrote: > As far as 6 arg issue: > long bpf_snprintf(const char *out, u32 out_size, > const char *fmt, u32 fmt_size, > const void *data, u32 data_len); > Yeah. It won't work as-is, but fmt_size is unnecessary now

Re: [PATCH v5 1/7] scsi: ufs: Add "wb_on" sysfs node to control WB on/off

2020-12-22 Thread Bean Huo
On Tue, 2020-12-22 at 14:08 +0800, Stanley Chu wrote: > > + if (kstrtouint(buf, 0, &wb_enable)) > > + return -EINVAL; > > + > > + if (wb_enable != 0 && wb_enable != 1) > > + return -EINVAL; > > + > > + pm_runtime_get_sync(hba->dev); > > + res = ufshcd_wb_ctrl

Re: [Aspeed, v2 2/2] net: ftgmac100: Change the order of getting MAC address

2020-12-22 Thread Heiner Kallweit
On 22.12.2020 21:14, Hongwei Zhang wrote: > Dear Reviewer, > > Use native MAC address is preferred over other choices, thus change the order > of reading MAC address, try to read it from MAC chip first, if it's not > availabe, then try to read it from device tree. > > > Hi Heiner, > >> From:

Re: [PATCH] mm: add prototype for __add_to_page_cache_locked()

2020-12-22 Thread Matthew Wilcox
On Tue, Dec 22, 2020 at 07:49:52PM +0530, Souptick Joarder wrote: > Otherwise it cause gcc warning: > ^~~ That line is just confusing. > ../mm/filemap.c:830:14: warning: no previous prototype for > ‘__add_to_page_cache_locked’ [-Wmissing-prototypes] > noinline int __add_to_

Re: [PATCH bpf-next 1/2] bpf: Add a bpf_kallsyms_lookup helper

2020-12-22 Thread Florent Revest
On Fri, Dec 18, 2020 at 9:47 PM Andrii Nakryiko wrote: > > On Fri, Dec 18, 2020 at 12:36 PM Alexei Starovoitov > wrote: > > > > On Fri, Dec 18, 2020 at 10:53:57AM -0800, Andrii Nakryiko wrote: > > > On Thu, Dec 17, 2020 at 7:20 PM Alexei Starovoitov > > > wrote: > > > > > > > > On Thu, Dec 17, 2

Re: [PATCH v1 0/5] dm: dm-user: New target that proxies BIOs to userspace

2020-12-22 Thread Palmer Dabbelt
On Tue, 22 Dec 2020 06:36:16 PST (-0800), snit...@redhat.com wrote: On Tue, Dec 22 2020 at 8:32am -0500, Christoph Hellwig wrote: On Mon, Dec 14, 2020 at 07:00:57PM -0800, Palmer Dabbelt wrote: > I haven't gotten a whole lot of feedback, so I'm inclined to at least have some > reasonable per

Re: [PATCH v5] close_range.2: new page documenting close_range(2)

2020-12-22 Thread Michael Kerrisk (man-pages)
Hello Stephen, Thank you for your revisions! I still have a few comments. On 12/21/20 8:46 PM, Stephen Kitt wrote: > This documents close_range(2) based on information in > 278a5fbaed89dacd04e9d052f4594ffd0e0585de, > 60997c3d45d9a67daf01c56d805ae4fec37e0bd8, and > 582f1fb6b721facf04848d2ca57f3446

[PATCH] arch: mips: Remove unused BOARD_INGENIC Kconfig option

2020-12-22 Thread Bert Vermeulen
Board support depends on MACH_INGENIC, not BOARD_INGENIC. Signed-off-by: Bert Vermeulen --- arch/mips/generic/Kconfig | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/mips/generic/Kconfig b/arch/mips/generic/Kconfig index 55d9aed7ced9..5216c850b7e2 100644 --- a/arch/mips/generic/Kco

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Andy Lutomirski
On Sat, Dec 19, 2020 at 2:06 PM Nadav Amit wrote: > > [ I have in mind another solution, such as keeping in each page-table a > > “table-generation” which is the mm-generation at the time of the change, > > and only flush if “table-generation”==“mm-generation”, but it requires > > some thought on

Re: [PATCH v2 2/6] dt-bindings: arm: fsl: Add Engicam i.Core MX8M Mini C.TOUCH 2.0

2020-12-22 Thread Krzysztof Kozlowski
On Tue, Dec 22, 2020 at 09:25:40PM +0100, Krzysztof Kozlowski wrote: > On Tue, 22 Dec 2020 at 19:28, Jagan Teki wrote: > > > > On Mon, Dec 21, 2020 at 8:17 PM Jagan Teki > > wrote: > > > > > > On Mon, Dec 21, 2020 at 8:12 PM Krzysztof Kozlowski > > > wrote: > > > > > > > > On Mon, Dec 21, 2020

Re: [dm-devel] [PATCH v1 0/5] dm: dm-user: New target that proxies BIOs to userspace

2020-12-22 Thread Palmer Dabbelt
On Tue, 22 Dec 2020 05:32:46 PST (-0800), Christoph Hellwig wrote: On Mon, Dec 14, 2020 at 07:00:57PM -0800, Palmer Dabbelt wrote: I haven't gotten a whole lot of feedback, so I'm inclined to at least have some reasonable performance numbers before bothering with a v2. FYI, my other main worry

building csky with CC=clang

2020-12-22 Thread Nick Desaulniers
Hello! I was playing with some of LLVM's experimental backends (m68k) and saw there was a CSKY backend. I rebuilt LLVM to support CSKY, but I ran into trouble building the kernel before even getting to the compiler invocation: $ ARCH=csky CROSS_COMPILE=csky-linux-gnu- make CC=clang -j71 defconfig

Re: [PATCH v2 2/6] dt-bindings: arm: fsl: Add Engicam i.Core MX8M Mini C.TOUCH 2.0

2020-12-22 Thread Krzysztof Kozlowski
On Tue, 22 Dec 2020 at 19:28, Jagan Teki wrote: > > On Mon, Dec 21, 2020 at 8:17 PM Jagan Teki wrote: > > > > On Mon, Dec 21, 2020 at 8:12 PM Krzysztof Kozlowski wrote: > > > > > > On Mon, Dec 21, 2020 at 08:09:47PM +0530, Jagan Teki wrote: > > > > On Mon, Dec 21, 2020 at 7:35 PM Krzysztof Kozlo

Re: [PATCH v5 4/9] riscv: Fixup patch_text panic in ftrace

2020-12-22 Thread Atish Patra
On Thu, Dec 17, 2020 at 8:04 AM wrote: > > From: Guo Ren > > Just like arm64, we can't trace the function in the patch_text path. > > Here is the bug log: > > [ 45.234334] Unable to handle kernel paging request at virtual address > ffd38ae80900 > [ 45.242313] Oops [#1] > [ 45.244600] M

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Andrea Arcangeli
On Tue, Dec 22, 2020 at 08:15:53PM +, Matthew Wilcox wrote: > On Tue, Dec 22, 2020 at 02:31:52PM -0500, Andrea Arcangeli wrote: > > My previous suggestion to use a mutex to serialize > > userfaultfd_writeprotect with a mutex will still work, but we can run > > as many wrprotect and un-wrprotect

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Nadav Amit
> On Dec 22, 2020, at 11:44 AM, Andrea Arcangeli wrote: > > On Mon, Dec 21, 2020 at 02:55:12PM -0800, Nadav Amit wrote: >> wouldn’t mmap_write_downgrade() be executed before mprotect_fixup() (so > > I assume you mean "in" mprotect_fixup, after change_protection. > > If you would downgrade the m

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Andy Lutomirski
On Mon, Dec 21, 2020 at 8:16 PM Linus Torvalds wrote: > > On Mon, Dec 21, 2020 at 7:19 PM Andy Lutomirski wrote: > > > > Ugh, this is unpleasantly complicated. > > What I *should* have said is that *because* userfaultfd is changing > the VM layout, it should always act as if it had to take the mm

Re: [PATCH bpf-next 1/2] bpf: Add a bpf_kallsyms_lookup helper

2020-12-22 Thread Florent Revest
On Tue, Dec 22, 2020 at 3:18 PM Christoph Hellwig wrote: > > FYI, there is a reason why kallsyms_lookup is not exported any more. > I don't think adding that back through a backdoor is a good idea. Did you maybe mean kallsyms_lookup_name (the one that looks an address up based on a symbol name) ?

Re: [PATCH] arch: consolidate pm_power_off callback

2020-12-22 Thread Enrico Weigelt, metux IT consult
On 22.12.20 19:54, Geert Uytterhoeven wrote: Hi, > On Tue, Dec 22, 2020 at 7:46 PM Enrico Weigelt, metux IT consult > wrote: >> Move the pm_power_off callback into one global place and also add an >> function for conditionally calling it (when not NULL), in order to remove >> code duplication in

[Aspeed, v2 2/2] net: ftgmac100: Change the order of getting MAC address

2020-12-22 Thread Hongwei Zhang
Dear Reviewer, Use native MAC address is preferred over other choices, thus change the order of reading MAC address, try to read it from MAC chip first, if it's not availabe, then try to read it from device tree. Hi Heiner, > From: Heiner Kallweit > Sent: Monday, December 21, 2020 4:37 PM > >

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Matthew Wilcox
On Tue, Dec 22, 2020 at 02:31:52PM -0500, Andrea Arcangeli wrote: > My previous suggestion to use a mutex to serialize > userfaultfd_writeprotect with a mutex will still work, but we can run > as many wrprotect and un-wrprotect as we want in parallel, as long as > they're not simultaneous, we can d

[Aspeed, v2 0/2] net: ftgmac100: Change the order of getting MAC address

2020-12-22 Thread Hongwei Zhang
Dear Reviewer, Use native MAC address is preferred over other choices, thus change the order of reading MAC address, try to read it from MAC chip first, if it's not availabe, then try to read it from device tree. Thanks, --Hongwei Changelog: v2: - Corrected comments in the patch v1: https://pa

[Aspeed, v2 1/2] net: ftgmac100: Change the order of getting MAC address

2020-12-22 Thread Hongwei Zhang
Change the order of reading MAC address, try to read it from MAC chip first, if it's not availabe, then try to read it from device tree. Fixes: 35c54922dc97 ("ARM: dts: tacoma: Add reserved memory for ramoops") Signed-off-by: Hongwei Zhang --- drivers/net/ethernet/faraday/ftgmac100.c | 22 ++

Re: [PATCH v3 0/5] Add Microchip PolarFire Soc Support

2020-12-22 Thread Atish Patra
On Mon, Dec 21, 2020 at 7:19 PM Palmer Dabbelt wrote: > > On Fri, 04 Dec 2020 00:58:30 PST (-0800), Atish Patra wrote: > > This series adds minimal support for Microchip Polar Fire Soc Icicle kit. > > It is rebased on v5.10-rc6 and depends on clock support. > > Only MMC and ethernet drivers are en

Re: sparc32: Init process fails to load with generic kmap atomic

2020-12-22 Thread Arnd Bergmann
On Tue, Dec 22, 2020 at 7:01 PM Andreas Larsson wrote: > > Unfortunately I did not see this problem before I encountered it in > master. Commit 3293efa9780712ad8504689e0c296d2bd33827d5 > ... > > I will have to continue to dig deeper into this in January. If anyone > has any ideas how this could st

Re: [PATCHSET] saner elf compat

2020-12-22 Thread Al Viro
On Wed, Dec 16, 2020 at 09:44:53AM +, Maciej W. Rozycki wrote: > On Wed, 16 Dec 2020, Al Viro wrote: > > > > It may be worth pushing through GDB's gdb.threads/tls-core.exp test > > > case, > > > making sure no UNSUPPORTED results have been produced due to resource > > > limits preventing a

drivers/clocksource/timer-clint.c:72:24: sparse: sparse: cast removes address space '__iomem' of expression

2020-12-22 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8653b778e454a7708847aeafe689bce07aeeb94e commit: 2ac6795fcc085e8d03649f1bbd0d70aaff612cad clocksource/drivers: Add CLINT timer driver date: 4 months ago config: riscv-randconfig-s031-20201221 (attached as

Re: [PATCH v5 09/12] media: uvcvideo: Implement UVC_QUIRK_PRIVACY_DURING_STREAM

2020-12-22 Thread Ricardo Ribalda
HI Laurent Thanks for your review! On Tue, Dec 22, 2020 at 11:30 AM Laurent Pinchart wrote: > > Hi Ricardo, > > Thank you for the patch. > > On Mon, Dec 21, 2020 at 05:48:16PM +0100, Ricardo Ribalda wrote: > > Some devices, can only read the privacy_pin if the device is > > s/devices,/devices/ >

Re: [RFC PATCH 1/3] mm: support hugetlb free page reporting

2020-12-22 Thread Alexander Duyck
On Mon, Dec 21, 2020 at 11:47 PM Liang Li wrote: > > Free page reporting only supports buddy pages, it can't report the > free pages reserved for hugetlbfs case. On the other hand, hugetlbfs > is a good choice for a system with a huge amount of RAM, because it > can help to reduce the memory manag

Re: [PATCH v2 1/7] iommu/io-pgtable: Introduce dynamic io-pgtable fmt registration

2020-12-22 Thread isaacm
On 2020-12-22 11:27, Robin Murphy wrote: On 2020-12-22 00:44, Isaac J. Manjarres wrote: The io-pgtable code constructs an array of init functions for each page table format at compile time. This is not ideal, as this increases the footprint of the io-pgtable code, as well as prevents io-pgtable

Re: [PATCH v3] drivers: clk: make gpio-gated clock support optional

2020-12-22 Thread Enrico Weigelt, metux IT consult
On 20.12.20 06:30, Stephen Boyd wrote: > It looks like it needs to be a bool Kconfig to match how it used to be. > A module would be interesting, but would require more changes > presumably, like getting rid of builtin_platform_driver() and replacing > it with module_platform_driver(). Okay, I'll

[PATCH] i2c-imx.c: Synthesize end of transaction events without idle interrupts

2020-12-22 Thread Kevin Paul Herbert
Only the Layerscape SoCs have interrupts on bus idle, which facilitate sending events which complete slave bus transactions. Add support for synthesizing missing events. If we see a master request, or a newly addressed slave request, if the last event sent to the backend was I2C_SLAVE_READ_REQUEST

Re: [PATCH v2 3/7] iommu/arm-smmu: Add dependency on io-pgtable format modules

2020-12-22 Thread isaacm
On 2020-12-22 11:27, Robin Murphy wrote: On 2020-12-22 00:44, Isaac J. Manjarres wrote: The SMMU driver depends on the availability of the ARM LPAE and ARM V7S io-pgtable format code to work properly. In preparation Nit: we don't really depend on v7s - we *can* use it if it's available, addres

Re: [PATCH v13 2/6] powerpc: Move arch independent ima kexec functions to drivers/of/kexec.c

2020-12-22 Thread Mimi Zohar
On Tue, 2020-12-22 at 10:53 -0800, Lakshmi Ramasubramanian wrote: > On 12/22/20 6:26 AM, Mimi Zohar wrote: > > Hi Mimi, > > > > > On Sat, 2020-12-19 at 09:57 -0800, Lakshmi Ramasubramanian wrote: > >> > >> diff --git a/arch/powerpc/kexec/Makefile b/arch/powerpc/kexec/Makefile > >> index 4aff6846

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Andrea Arcangeli
On Mon, Dec 21, 2020 at 02:55:12PM -0800, Nadav Amit wrote: > wouldn’t mmap_write_downgrade() be executed before mprotect_fixup() (so I assume you mean "in" mprotect_fixup, after change_protection. If you would downgrade the mmap_lock to read there, then it'd severely slowdown the non contention

Re: [PATCH v4] s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated

2020-12-22 Thread Halil Pasic
On Tue, 22 Dec 2020 16:57:06 +0100 Cornelia Huck wrote: > On Tue, 22 Dec 2020 10:37:01 -0500 > Tony Krowiak wrote: > > > On 12/21/20 11:05 PM, Halil Pasic wrote: > > > On Mon, 21 Dec 2020 13:56:25 -0500 > > > Tony Krowiak wrote: > > > >> static int vfio_ap_mdev_group_notifier(struct not

Re: [PATCH] erofs: support direct IO for uncompressed file

2020-12-22 Thread Gao Xiang
Hi Christoph, On Tue, Dec 22, 2020 at 02:22:34PM +, Christoph Hellwig wrote: > Please do not add new callers of __blockdev_direct_IO and use the modern > iomap variant instead. We've talked about this topic before. The current status is that iomap doesn't support tail-packing inline data yet

Re: [PATCH v2 28/48] soc/tegra: Introduce core power domain driver

2020-12-22 Thread Dmitry Osipenko
22.12.2020 22:21, Dmitry Osipenko пишет: >>> + if (IS_ERR(opp)) { >>> + dev_err(&genpd->dev, "failed to find OPP for level %u: %pe\n", >>> + level, opp); >>> + return PTR_ERR(opp); >>> + } >>> + >>> + err = dev_pm_opp_set_voltage(&genpd->dev, opp); >> IIU

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Andrea Arcangeli
On Mon, Dec 21, 2020 at 07:19:35PM -0800, Andy Lutomirski wrote: > instance of this (with mmap_sem held for write) in x86: > mark_screen_rdonly(). Dare I ask how broken this is? We could likely That one is buggy despite it takes the mmap_write_lock... inverting the last two lines would fix it th

Re: [PATCH v2 1/7] iommu/io-pgtable: Introduce dynamic io-pgtable fmt registration

2020-12-22 Thread Robin Murphy
On 2020-12-22 00:44, Isaac J. Manjarres wrote: The io-pgtable code constructs an array of init functions for each page table format at compile time. This is not ideal, as this increases the footprint of the io-pgtable code, as well as prevents io-pgtable formats from being built as kernel modules

Re: [PATCH v2 44/48] ARM: tegra: Add OPP tables and power domains to Tegra30 device-tree

2020-12-22 Thread Dmitry Osipenko
22.12.2020 12:14, Viresh Kumar пишет: > On 17-12-20, 21:06, Dmitry Osipenko wrote: >> diff --git a/arch/arm/boot/dts/tegra30-peripherals-opp.dtsi >> b/arch/arm/boot/dts/tegra30-peripherals-opp.dtsi >> index cbe84d25e726..983db1a06682 100644 >> --- a/arch/arm/boot/dts/tegra30-peripherals-opp.dtsi >

Re: [PATCH v2 43/48] ARM: tegra: Add OPP tables and power domains to Tegra20 device-tree

2020-12-22 Thread Dmitry Osipenko
22.12.2020 08:47, Viresh Kumar пишет: > On 17-12-20, 21:06, Dmitry Osipenko wrote: >> diff --git a/arch/arm/boot/dts/tegra20-peripherals-opp.dtsi >> b/arch/arm/boot/dts/tegra20-peripherals-opp.dtsi >> index b84afecea154..7e015cdfbc55 100644 >> --- a/arch/arm/boot/dts/tegra20-peripherals-opp.dtsi >

Re: [PATCH v2 3/7] iommu/arm-smmu: Add dependency on io-pgtable format modules

2020-12-22 Thread Robin Murphy
On 2020-12-22 00:44, Isaac J. Manjarres wrote: The SMMU driver depends on the availability of the ARM LPAE and ARM V7S io-pgtable format code to work properly. In preparation Nit: we don't really depend on v7s - we *can* use it if it's available, address constraints are suitable, and the SMMU

Re: [PATCH] Documentation/submitting-patches: Add blurb about backtraces in commit messages

2020-12-22 Thread Borislav Petkov
On Tue, Dec 22, 2020 at 10:59:22AM -0800, Sean Christopherson wrote: > On Tue, Dec 22, 2020, Borislav Petkov wrote: > > Ok, here's the next one which I think, is also, not really controversial. > > Heh, are you trying to jinx yourself? I was trying to conjure up some bikeshedding... and there it

Re: [PATCH v2 28/48] soc/tegra: Introduce core power domain driver

2020-12-22 Thread Dmitry Osipenko
22.12.2020 09:40, Viresh Kumar пишет: > On 17-12-20, 21:06, Dmitry Osipenko wrote: >> +++ b/drivers/soc/tegra/core-power-domain.c >> @@ -0,0 +1,125 @@ >> +// SPDX-License-Identifier: GPL-2.0+ >> +/* >> + * NVIDIA Tegra SoC Core Power Domain Driver >> + */ >> + >> +#include >> +#include >> +#inclu

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-22 Thread Nadav Amit
> On Dec 22, 2020, at 10:30 AM, Yu Zhao wrote: > > On Tue, Dec 22, 2020 at 04:40:32AM -0800, Nadav Amit wrote: >>> On Dec 21, 2020, at 1:24 PM, Yu Zhao wrote: >>> >>> On Mon, Dec 21, 2020 at 12:26:22PM -0800, Linus Torvalds wrote: On Mon, Dec 21, 2020 at 12:23 PM Nadav Amit wrote: > U

Re: [PATCH v2 19/48] opp: Fix adding OPP entries in a wrong order if rate is unavailable

2020-12-22 Thread Dmitry Osipenko
22.12.2020 12:12, Viresh Kumar пишет: > On 17-12-20, 21:06, Dmitry Osipenko wrote: >> Fix adding OPP entries in a wrong (opposite) order if OPP rate is >> unavailable. The OPP comparison is erroneously skipped if OPP rate is >> missing, thus OPPs are left unsorted. >> >> Signed-off-by: Dmitry Osipe

Re: [PATCH v2 15/48] opp: Support set_opp() customization without requiring to use regulators

2020-12-22 Thread Dmitry Osipenko
22.12.2020 12:01, Viresh Kumar пишет: > On 17-12-20, 21:06, Dmitry Osipenko wrote: >> Support set_opp() customization without requiring to use regulators. This >> is needed by drivers which want to use dev_pm_opp_set_rate() for changing >> rates of a multiple clocks and don't need to touch regulato

Re: [PATCH v2 02/48] dt-bindings: memory: tegra30: emc: Replace core regulator with power domain

2020-12-22 Thread Dmitry Osipenko
22.12.2020 01:54, Rob Herring пишет: > On Thu, Dec 17, 2020 at 09:05:52PM +0300, Dmitry Osipenko wrote: >> Power domain fits much better than a voltage regulator in regards to >> a proper hardware description and from a software perspective as well. >> Hence replace the core regulator with the powe

Re: [PATCH v2 14/48] opp: Filter out OPPs based on availability of a required-OPP

2020-12-22 Thread Dmitry Osipenko
22.12.2020 11:59, Viresh Kumar пишет: > On 17-12-20, 21:06, Dmitry Osipenko wrote: >> A required OPP may not be available, and thus, all OPPs which are using >> this required OPP should be unavailable too. >> >> Signed-off-by: Dmitry Osipenko >> --- >> drivers/opp/core.c | 11 ++- >> 1 fi

Re: [PATCH v2 06/48] dt-bindings: clock: tegra: Document clocks sub-node

2020-12-22 Thread Dmitry Osipenko
22.12.2020 03:14, Rob Herring пишет: > On Thu, Dec 17, 2020 at 09:05:56PM +0300, Dmitry Osipenko wrote: >> Document "clocks" sub-node which describes Tegra SoC clocks that require >> a higher voltage of the core power domain in order to operate properly on >> a higher rates. > > Seems like an odd

[PATCH] mm/page_reporting: use list_entry_is_head() in page_reporting_cycle()

2020-12-22 Thread sh
replace '&next->lru != list' with list_entry_is_head(). No functional change. Signed-off-by: sh --- mm/page_reporting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_reporting.c b/mm/page_reporting.c index cd8e13d41df4..c50d93ffa252 100644 --- a/mm/page_reporting.c

Re: [PATCH v2 11/48] opp: Add dev_pm_opp_find_level_ceil()

2020-12-22 Thread Dmitry Osipenko
22.12.2020 09:42, Viresh Kumar пишет: > On 17-12-20, 21:06, Dmitry Osipenko wrote: >> Add a ceil version of the dev_pm_opp_find_level(). It's handy to have if >> levels don't start from 0 in OPP table and zero usually means a minimal >> level. >> >> Signed-off-by: Dmitry Osipenko > > Why doesn't

Re: [PATCH v2 13/48] opp: Add resource-managed versions of OPP API functions

2020-12-22 Thread Dmitry Osipenko
22.12.2020 11:55, Viresh Kumar пишет: > On 17-12-20, 21:06, Dmitry Osipenko wrote: >> Add resource-managed versions of OPP API functions. This removes a need >> from drivers to store and manage OPP table pointers. >> >> Signed-off-by: Dmitry Osipenko >> --- >> drivers/opp/core.c | 173 +++

[GIT PULL] More ACPI updates for v5.11-rc1

2020-12-22 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-5.11-rc1-2 with top-most commit 538fcf57aaee6ad78a05f52b69a99baa22b33418 Merge branches 'acpi-scan', 'acpi-pnp' and 'acpi-sleep' on top of commit aab7ce2b099bd9df82573cd3170acf6518fde

Re: [PATCH 2/3] aspeed-video: clear spurious interrupt bits unconditionally

2020-12-22 Thread Zev Weiss
On Mon, Dec 21, 2020 at 10:47:37PM CST, Joel Stanley wrote: On Tue, 15 Dec 2020 at 02:46, Zev Weiss wrote: Instead of testing and conditionally clearing them one by one, we can instead just unconditionally clear them all at once. Signed-off-by: Zev Weiss I had a poke at the assembly and it

Re: [PATCH v2 00/48] Introduce core voltage scaling for NVIDIA Tegra20/30 SoCs

2020-12-22 Thread Dmitry Osipenko
22.12.2020 12:15, Viresh Kumar пишет: > On 18-12-20, 16:51, Dmitry Osipenko wrote: >> Alright, although I haven't pretended that v2 patches should be merged >> right away since they are fundamentally different from v1, and thus, all >> patches need to be reviewed first. > > I agree. I have done so

[GIT PULL] More power management updates for v5.11-rc1

2020-12-22 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-5.11-rc1-2 with top-most commit c3a74f8e25e97166ca0f954414825ae98a3209f6 Merge branch 'pm-cpufreq' on top of commit b4ec805464a4a0299216a003278351d0b4806450 Merge tag 'pm-5.11-rc1' of

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