Re: [PATCH 4.9.257 1/1] futex: Fix OWNER_DEAD fixup

2021-02-23 Thread Zhengyejian (Zetta)
On 2021/2/23 21:00, Greg KH wrote: On Mon, Feb 22, 2021 at 09:11:43PM +0800, Zhengyejian (Zetta) wrote: On 2021/2/22 20:36, Greg KH wrote: On Mon, Feb 22, 2021 at 08:20:38PM +0800, Zhengyejian (Zetta) wrote: On 2021/2/22 20:07, Greg KH wrote: On Mon, Feb 22, 2021 at 11:54:24AM +, L

Re: [PATCH 1/3] power: supply: bq27xxx: fix sign of current_now for newer ICs

2021-02-23 Thread Pali Rohár
On Tuesday 23 February 2021 15:49:46 Andreas Kemnade wrote: > On Tue, 23 Feb 2021 15:11:20 +0100 > Matthias Schiffer wrote: > > > Commit cd060b4d0868 ("power: supply: bq27xxx: fix polarity of current_now") > > changed the sign of current_now for all bq27xxx variants, but on BQ28Z610 > > I'm now s

Re: [PATCH -next] nvmem: Fix return value check in rmem_read()

2021-02-23 Thread Nicolas Saenz Julienne
On Tue, 2021-02-23 at 14:22 +, Wei Yongjun wrote: > In case of error, the function memremap() returns NULL pointer > not ERR_PTR(). The IS_ERR() test in the return value check > should be replaced with NULL test. > > Fixes: 5a3fa75a4d9c ("nvmem: Add driver to expose reserved memory as nvmem")

Re: [PATCH 2/3] drm/nouveau/kms/nv50-: Report max cursor size to userspace

2021-02-23 Thread Ilia Mirkin
On Tue, Feb 23, 2021 at 9:26 AM Alex Riesen wrote: > > Lyude Paul, Tue, Jan 19, 2021 02:54:13 +0100: > > diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c > > b/drivers/gpu/drm/nouveau/dispnv50/disp.c > > index c6367035970e..5f4f09a601d4 100644 > > --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c

Re: [PATCH RFC 3/4] perf/core: Add support for SIGTRAP on perf events

2021-02-23 Thread Dmitry Vyukov
On Tue, Feb 23, 2021 at 3:34 PM Marco Elver wrote: > > Adds bit perf_event_attr::sigtrap, which can be set to cause events to > send SIGTRAP (with si_code TRAP_PERF) to the task where the event > occurred. To distinguish perf events and allow user space to decode > si_perf (if set), the event type

[RFC] linux-next panic in hugepage_subpool_put_pages()

2021-02-23 Thread Gerald Schaefer
Hi, LTP triggered a panic on s390 in hugepage_subpool_put_pages() with linux-next 5.12.0-20210222, see below. It crashes on the spin_lock(&spool->lock) at the beginning, because the passed-in *spool points to 004e, which is not addressable memory. It rather looks like some flags and n

Re: [RESEND v3 1/2] dt-bindings: drm/bridge: anx7625: Add power supplies

2021-02-23 Thread Robert Foss
Hey Hsin-Yi, Thanks for the patch, and sorry about the delays in reviewing this. This patch does not apply to the drm-misc/for-linux-next branch due to some other changes having been merged. On Sat, 20 Feb 2021 at 07:10, Hsin-Yi Wang wrote: > > anx7625 requires 3 power supply regulators. > > Si

Re: [PATCH RFC 4/4] perf/core: Add breakpoint information to siginfo on SIGTRAP

2021-02-23 Thread Dmitry Vyukov
On Tue, Feb 23, 2021 at 3:34 PM Marco Elver wrote: > > Encode information from breakpoint attributes into siginfo_t, which > helps disambiguate which breakpoint fired. > > Note, providing the event fd may be unreliable, since the event may have > been modified (via PERF_EVENT_IOC_MODIFY_ATTRIBUTES

[GIT pull] objtool/core for 5.12

2021-02-23 Thread Thomas Gleixner
Linus, please pull the latest objtool/core branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git objtool-core-2021-02-23 up to: aafeb14e9da2: objtool: Support stack-swizzle objtool updates: - Make objtool work for big-endian cross compiles - Make stack tracking via sta

Re: [PATCH] perf-probe: dso: Add symbols in .text.* subsections to text symbol map in kenrel modules

2021-02-23 Thread Evgenii Shatokhin
On 23.02.2021 10:37, Masami Hiramatsu wrote: The kernel modules have .text.* subsections such as .text.unlikely. Since dso__process_kernel_symbol() only identify the symbols in the ".text" section as the text symbols and inserts it in the default dso in the map, the symbols in such subsections ca

[GIT PULL] Kmap conversions for 5.12

2021-02-23 Thread David Sterba
From: David Sterba Hi, this pull request contains changes regarding kmap API use and eg. conversion from kmap_atomic to kmap_local_page. The API belongs to memory management but to save cross-tree dependency headaches we've agreed to take it through the btrfs tree because there are some trivial

Re: [PATCH 1/1] net: fec: ptp: avoid register access when ipg clock is disabled

2021-02-23 Thread Heiko Thiery
Hi Richard, Am Di., 23. Feb. 2021 um 15:27 Uhr schrieb Richard Cochran : > > On Tue, Feb 23, 2021 at 09:00:32AM +0100, Heiko Thiery wrote: > > HI Jakub, > > > > Am Di., 23. Feb. 2021 um 04:00 Uhr schrieb Jakub Kicinski : > > > Why is the PTP interface registered when it can't be accessed? > > > >

Re: [REGRESSION] "split bio_kmalloc from bio_alloc_bioset" causing crash shortly after bootup

2021-02-23 Thread Christoph Hellwig
On Tue, Feb 23, 2021 at 07:37:52AM +, Chaitanya Kulkarni wrote: > On 2/22/21 23:10, Christoph Hellwig wrote: > > On Tue, Feb 23, 2021 at 03:51:23AM +, Chaitanya Kulkarni wrote: > >> Looking at the other call sites do we need something like following ? > >> Since __blk_queue_bounce() passes

Re: [PATCH RFC 4/4] perf/core: Add breakpoint information to siginfo on SIGTRAP

2021-02-23 Thread Marco Elver
On Tue, 23 Feb 2021 at 16:01, Dmitry Vyukov wrote: > > On Tue, Feb 23, 2021 at 3:34 PM Marco Elver wrote: > > > > Encode information from breakpoint attributes into siginfo_t, which > > helps disambiguate which breakpoint fired. > > > > Note, providing the event fd may be unreliable, since the ev

Re: [PATCH RESEND v2 1/2] cpu/hotplug: Fix build error of using {add,remove}_cpu() with !CONFIG_SMP

2021-02-23 Thread Qais Yousef
On 02/21/21 21:43, shuo.a@intel.com wrote: > From: Shuo Liu > > 279dcf693ac7 ("virt: acrn: Introduce an interface for Service VM to > control vCPU") introduced {add,remove}_cpu() usage and it hit below > error with !CONFIG_SMP: > > ../drivers/virt/acrn/hsm.c: In function ‘remove_cpu_store’:

Re: Linux 5.10.18

2021-02-23 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index b740f9c933cb..822a8e10d432 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 10 -SUBLEVEL = 17 +SUBLEVEL = 18 EXTRAVERSION = NAME = Kleptomaniac Octopus diff --git a/arch/arm/xen/p2m.c b/arc

Re: [Freedreno] [v4] drm/msm/disp/dpu1: turn off vblank irqs aggressively in dpu driver

2021-02-23 Thread kalyan_t
On 2021-02-22 21:38, Rob Clark wrote: On Thu, Feb 18, 2021 at 4:36 AM Kalyan Thota wrote: Set the flag vblank_disable_immediate = true to turn off vblank irqs immediately as soon as drm_vblank_put is requested so that there are no irqs triggered during idle state. This will reduce cpu wakeups

Re: [PATCH v2] gdb: lx-symbols: store the abspath()

2021-02-23 Thread Johannes Berg
On Thu, 2020-12-17 at 09:31 +0100, Jan Kiszka wrote: > On 17.12.20 09:17, Johannes Berg wrote: > > From: Johannes Berg > > > > If we store the relative path, the user might later cd to a > > different directory, and that would break the automatic symbol > > resolving that happens when a module is

Linux 5.10.18

2021-02-23 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.10.18 kernel. All users of the 5.10 kernel series must upgrade. The updated 5.10.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.10.y and can be browsed at the normal kernel.org git web browser:

Re: [REGRESSION] "split bio_kmalloc from bio_alloc_bioset" causing crash shortly after bootup

2021-02-23 Thread Christoph Hellwig
On Tue, Feb 23, 2021 at 04:08:52PM +0100, Christoph Hellwig wrote: > On Tue, Feb 23, 2021 at 07:37:52AM +, Chaitanya Kulkarni wrote: > > On 2/22/21 23:10, Christoph Hellwig wrote: > > > On Tue, Feb 23, 2021 at 03:51:23AM +, Chaitanya Kulkarni wrote: > > >> Looking at the other call sites do

Re: [PATCH RFC 4/4] perf/core: Add breakpoint information to siginfo on SIGTRAP

2021-02-23 Thread Dmitry Vyukov
On Tue, Feb 23, 2021 at 4:10 PM 'Marco Elver' via kasan-dev wrote: > > > Encode information from breakpoint attributes into siginfo_t, which > > > helps disambiguate which breakpoint fired. > > > > > > Note, providing the event fd may be unreliable, since the event may have > > > been modified (vi

[PATCH 2/2] spi: bcm63xx-hsspi: fix pm_runtime

2021-02-23 Thread Álvaro Fernández Rojas
The driver sets auto_runtime_pm to true, but it doesn't call pm_runtime_enable(), which results in "Failed to power device" when PM support is enabled. Signed-off-by: Álvaro Fernández Rojas --- drivers/spi/spi-bcm63xx-hsspi.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --gi

Re: [PATCH] mm: memcontrol: fix get_active_memcg return value

2021-02-23 Thread Shakeel Butt
On Tue, Feb 23, 2021 at 1:14 AM Muchun Song wrote: > > We use a global percpu int_active_memcg variable to store the remote > memcg when we are in the interrupt context. But get_active_memcg always > return the current->active_memcg or root_mem_cgroup. The remote memcg > (set in the interrupt cont

Re: [PATCH v2 3/3] mm: Fix missing mem cgroup soft limit tree updates

2021-02-23 Thread Johannes Weiner
On Mon, Feb 22, 2021 at 10:38:27AM -0800, Tim Chen wrote: > Johannes, > > Thanks for your feedback. Since Michal has concerns about the overhead > this patch could incur, I think we'll hold the patch for now. If later > on Michal think that this patch is a good idea, I'll incorporate these > cha

[PATCH 0/2] spi: bcm63xx: fix pm_runtime

2021-02-23 Thread Álvaro Fernández Rojas
Both BCM63xx SPI drivers enable auto_runtime_pm, but they don't call pm_runtime_enable(), which results in "Failed to power device" when PM support is enabled. Álvaro Fernández Rojas (2): spi: bcm63xx-spi: fix pm_runtime spi: bcm63xx-hsspi: fix pm_runtime drivers/spi/spi-bcm63xx-hsspi.c | 7

[PATCH 1/2] spi: bcm63xx-spi: fix pm_runtime

2021-02-23 Thread Álvaro Fernández Rojas
The driver sets auto_runtime_pm to true, but it doesn't call pm_runtime_enable(), which results in "Failed to power device" when PM support is enabled. Signed-off-by: Álvaro Fernández Rojas --- drivers/spi/spi-bcm63xx.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dri

Re: [PATCH v2] watchdog: bcm7038_wdt: add big endian support

2021-02-23 Thread Guenter Roeck
On 2/23/21 12:00 AM, Álvaro Fernández Rojas wrote: > bcm7038_wdt can be used on bmips big endian (bcm63xx) devices too. > > Signed-off-by: Álvaro Fernández Rojas With the assumption that the driver indeed does not need memory barriers, Reviewed-by: Guenter Roeck Thanks, Guenter

Re: [PATCH v7 1/6] userfaultfd: add minor fault registration mode

2021-02-23 Thread Peter Xu
On Thu, Feb 18, 2021 at 04:48:19PM -0800, Axel Rasmussen wrote: [...] > @@ -1290,14 +1299,20 @@ static int userfaultfd_register(struct > userfaultfd_ctx *ctx, > ret = -EINVAL; > if (!uffdio_register.mode) > goto out; > - if (uffdio_register.mode & ~(UFFDIO_REGISTER_

Re: [GIT pull] objtool/core for 5.12

2021-02-23 Thread Thomas Gleixner
On Tue, Feb 23 2021 at 15:02, Thomas Gleixner wrote: > Linus, > > please pull the latest objtool/core branch from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > objtool-core-2021-02-23 > > up to: aafeb14e9da2: objtool: Support stack-swizzle > > objtool updates: > > - Make ob

Re: [PATCH] mm: memcontrol: fix slub memory accounting

2021-02-23 Thread Shakeel Butt
On Tue, Feb 23, 2021 at 1:25 AM Muchun Song wrote: > > SLUB currently account kmalloc() and kmalloc_node() allocations larger > than order-1 page per-node. But it forget to update the per-memcg > vmstats. So it can lead to inaccurate statistics of "slab_unreclaimable" > which is from memory.stat.

Re: [PATCH V4 1/3] virtio: don't prompt CONFIG_VIRTIO_PCI_MODERN

2021-02-23 Thread Guenter Roeck
On 2/22/21 10:19 PM, Jason Wang wrote: > We used to prompt CONFIG_VIRTIO_PCI_MODERN to user which may bring a > lot of confusion. E.g it may break various default configs which want > virtio devices. > > So this patch fixes this by hiding the prompot and documenting the > dependency. While at it,

Re: [PATCH v3 2/2] drm/bridge: anx7625: disable regulators when power off

2021-02-23 Thread Robert Foss
Hey Hsin-Yi, This patch looks good to me, feel free to add my r-b. Reviewed-by: Robert Foss On Fri, 15 Jan 2021 at 08:05, Hsin-Yi Wang wrote: > > When suspending the driver, anx7625_power_standby() will be called to > turn off reset-gpios and enable-gpios. However, power supplies are not > disa

Re: [PATCH RESEND v2 2/2] virt: acrn: Make remove_cpu sysfs invisible with !CONFIG_HOTPLUG_CPU

2021-02-23 Thread Qais Yousef
On 02/21/21 21:43, shuo.a@intel.com wrote: > From: Shuo Liu > > Without cpu hotplug support, vCPU cannot be removed from a Service VM. > Don't expose remove_cpu sysfs when CONFIG_HOTPLUG_CPU disabled. > > Signed-off-by: Shuo Liu > Acked-by: Randy Dunlap # build-tested > Cc: Stephen Rothwel

[PATCH 0/7] PCI support for UML

2021-02-23 Thread Johannes Berg
Hi, In order to simulate some devices and write tests completely independent of real PCI devices, we continued the development of time-travel and related bits, and are adding PCI support here now. The way it works is that it communicates with the outside (of UML) with virtio, which we previously

[PATCH 5/7] um: irqs: allow invoking time-travel handler multiple times

2021-02-23 Thread Johannes Berg
From: Johannes Berg If we happen to get multiple messages while IRQS are already suspended, we still need to handle them, since otherwise the simulation blocks. Remove the "prevent nesting" part, time_travel_add_irq_event() will deal with being called multiple times just fine. Signed-off-by: Jo

[PATCH 1/7] um: allow disabling NO_IOMEM

2021-02-23 Thread Johannes Berg
From: Johannes Berg Adjust the kconfig a little to allow disabling NO_IOMEM in UML. To make an "allyesconfig" with CONFIG_NO_IOMEM=n build, adjust a few Kconfig things elsewhere and add dummy asm/fb.h and asm/vga.h files. Signed-off-by: Johannes Berg --- arch/um/Kconfig| 4 +++

[PATCH 2/7] lib: add iomem emulation (logic_iomem)

2021-02-23 Thread Johannes Berg
From: Johannes Berg Add IO memory emulation that uses callbacks for read/write to the allocated regions. The callbacks can be registered by the users using logic_iomem_alloc(). To use, an architecture must 'select LOGIC_IOMEM' in Kconfig and then include into asm/io.h to get the __raw_read*/__r

[PATCH 4/7] um: time-travel/signals: fix ndelay() in interrupt

2021-02-23 Thread Johannes Berg
From: Johannes Berg We should be able to ndelay() from any context, even from an interrupt context! However, this is broken (not functionally, but locking-wise) in time-travel because we'll get into the time-travel code and enable interrupts to handle messages on other time-travel aware subsystem

[PATCH 7/7] um: virtio/pci: enable suspend/resume

2021-02-23 Thread Johannes Berg
From: Johannes Berg The UM virtual PCI devices currently cannot be suspended properly since the virtio driver already disables VQs well before the PCI bus's suspend_noirq wants to complete the transition by writing to PCI config space. After trying around for a long time with moving the devices

[PATCH 3/7] um: remove unused smp_sigio_handler() declaration

2021-02-23 Thread Johannes Berg
From: Johannes Berg This function doesn't exist, remove its declaration. Signed-off-by: Johannes Berg --- arch/um/include/shared/kern_util.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/um/include/shared/kern_util.h b/arch/um/include/shared/kern_util.h index 2888ec812f6e..a2cfd4260

[PATCH 6/7] um: add PCI over virtio emulation driver

2021-02-23 Thread Johannes Berg
From: Johannes Berg To support testing of PCI/PCIe drivers in UML, add a PCI bus support driver. This driver uses virtio, which in UML is really just vhost-user, to talk to devices, and adds the devices to the virtual PCI bus in the system. Since virtio already allows DMA/bus mastering this real

Re: [PATCH] arm64/mm: Fixed some coding style issues

2021-02-23 Thread Will Deacon
On Mon, 22 Feb 2021 09:43:51 +0800, Zhiyuan Dai wrote: > This patch move the pointer location to fix coding style issues, > improve code reading. Applied to arm64 (for-next/fixes), thanks! [1/1] arm64/mm: Fixed some coding style issues https://git.kernel.org/arm64/c/2e8acca1911b Cheers, --

Re: [PATCH 1/2] arm64: uprobe: Return EOPNOTSUPP for AARCH32 instruction probing

2021-02-23 Thread Will Deacon
On Tue, 23 Feb 2021 16:25:34 +0800, He Zhe wrote: > As stated in linux/errno.h, ENOTSUPP should never be seen by user programs. > When we set up uprobe with 32-bit perf and arm64 kernel, we would see the > following vague error without useful hint. > > The sys_perf_event_open() syscall returned wi

Re: [PATCH v8] vfs: fix copy_file_range regression in cross-fs copies

2021-02-23 Thread Amir Goldstein
On Tue, Feb 23, 2021 at 12:31 PM Luis Henriques wrote: > > On Mon, Feb 22, 2021 at 08:25:27AM -0800, dai@oracle.com wrote: > > > > On 2/22/21 2:24 AM, Luis Henriques wrote: > > > A regression has been reported by Nicolas Boichat, found while using the > > > copy_file_range syscall to copy a tr

Re: [PATCH v8] vfs: fix copy_file_range regression in cross-fs copies

2021-02-23 Thread dai . ngo
On 2/23/21 2:32 AM, Luis Henriques wrote: On Mon, Feb 22, 2021 at 08:25:27AM -0800, dai@oracle.com wrote: On 2/22/21 2:24 AM, Luis Henriques wrote: A regression has been reported by Nicolas Boichat, found while using the copy_file_range syscall to copy a tracefs file. Before commit 5dae2

Re: [PATCH v3] x86/fault: Send a SIGBUS to user process always for hwpoison page access.

2021-02-23 Thread Andy Lutomirski
> On Feb 23, 2021, at 4:44 AM, Aili Yao wrote: > > On Fri, 5 Feb 2021 17:01:35 +0800 > Aili Yao wrote: > >> When one page is already hwpoisoned by MCE AO action, processes may not >> be killed, processes mapping this page may make a syscall include this >> page and result to trigger a VM_FAU

Re: [PATCH 2/3] x86/entry: Fix entry/exit mismatch on failed fast 32-bit syscalls

2021-02-23 Thread Andy Lutomirski
> On Feb 23, 2021, at 3:29 AM, Peter Zijlstra wrote: > > On Mon, Feb 22, 2021 at 09:50:28PM -0800, Andy Lutomirski wrote: >> On a 32-bit fast syscall that fails to read its arguments from user >> memory, the kernel currently does syscall exit work but not >> syscall exit work. This would con

Re: [PATCH] mm: memcontrol: fix get_active_memcg return value

2021-02-23 Thread Roman Gushchin
On Tue, Feb 23, 2021 at 05:11:01PM +0800, Muchun Song wrote: > We use a global percpu int_active_memcg variable to store the remote > memcg when we are in the interrupt context. But get_active_memcg always > return the current->active_memcg or root_mem_cgroup. The remote memcg > (set in the interru

Re: [PATCH] mm: memcontrol: fix slub memory accounting

2021-02-23 Thread Roman Gushchin
On Tue, Feb 23, 2021 at 05:24:23PM +0800, Muchun Song wrote: > SLUB currently account kmalloc() and kmalloc_node() allocations larger > than order-1 page per-node. But it forget to update the per-memcg > vmstats. So it can lead to inaccurate statistics of "slab_unreclaimable" > which is from memory

Re: [PATCH 2/3] drm/nouveau/kms/nv50-: Report max cursor size to userspace

2021-02-23 Thread Alex Riesen
Ilia Mirkin, Tue, Feb 23, 2021 15:56:21 +0100: > On Tue, Feb 23, 2021 at 9:26 AM Alex Riesen > wrote: > > Lyude Paul, Tue, Jan 19, 2021 02:54:13 +0100: > > > diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c > > > b/drivers/gpu/drm/nouveau/dispnv50/disp.c > > > index c6367035970e..5f4f09a601d

Re: [PATCH v7 4/6] userfaultfd: add UFFDIO_CONTINUE ioctl

2021-02-23 Thread Peter Xu
On Thu, Feb 18, 2021 at 04:48:22PM -0800, Axel Rasmussen wrote: > @@ -4645,8 +4646,18 @@ int hugetlb_mcopy_atomic_pte(struct mm_struct *dst_mm, > spinlock_t *ptl; > int ret; > struct page *page; > + int writable; > > - if (!*pagep) { > + mapping = dst_vma->vm_file->f

Re: [External] Re: [PATCH v16 4/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-02-23 Thread Oscar Salvador
On Tue, Feb 23, 2021 at 11:50:05AM +0100, Oscar Salvador wrote: > > CPU0: CPU1: > > set_compound_page_dtor(HUGETLB_PAGE_DTOR); > > memory_failure_hugetlb > > get_hwpoison_page > > __get_hwpoison_page > > get_page_unless_zero > >

[GIT PULL] Modules updates for v5.12

2021-02-23 Thread Jessica Yu
Hi Linus, Please pull below to receive modules updates for the v5.12 merge window. A summary can be found in the signed tag. Thank you, Jessica --- The following changes since commit 19c329f6808995b142b3966301f217c831e7cf31: Linux 5.11-rc4 (2021-01-17 16:37:05 -0800) are available in the G

Re: [PATCH 1/7] um: allow disabling NO_IOMEM

2021-02-23 Thread Geert Uytterhoeven
Hi Johannes, On Tue, Feb 23, 2021 at 4:27 PM Johannes Berg wrote: > From: Johannes Berg > > Adjust the kconfig a little to allow disabling NO_IOMEM in UML. To > make an "allyesconfig" with CONFIG_NO_IOMEM=n build, adjust a few > Kconfig things elsewhere and add dummy asm/fb.h and asm/vga.h files

[PATCH v26 3/5] firmware: xilinx: Add RPU configuration APIs

2021-02-23 Thread Ben Levinsky
This patch adds APIs to access to configure RPU and its processor-specific memory. That is query the run-time mode of RPU as either split or lockstep as well as API to set this mode. In addition add APIs to access configuration of the RPUs' tightly coupled memory (TCM). Signed-off-by: Ben Levinsk

[PATCH v26 4/5] dt-bindings: remoteproc: Add documentation for ZynqMP R5 rproc bindings

2021-02-23 Thread Ben Levinsky
Add binding for ZynqMP R5 OpenAMP. Represent the RPU domain resources in one device node. Each RPU processor is a subnode of the top RPU domain node. Signed-off-by: Jason Wu Signed-off-by: Wendy Liang Signed-off-by: Michal Simek Signed-off-by: Ben Levinsky --- .../xilinx,zynqmp-r5-remoteproc

[PATCH v26 0/5] Add initial zynqmp R5 remoteproc driver

2021-02-23 Thread Ben Levinsky
R5 is included in Xilinx Zynq UltraScale MPSoC so by adding this remotproc driver, we can boot the R5 sub-system in two different configurations - * Split * Lockstep The Xilinx R5 Remoteproc Driver boots the R5's via calls to the Xilinx Platform Management Unit that handles the R5

[PATCH v26 2/5] firmware: xilinx: Add shutdown/wakeup APIs

2021-02-23 Thread Ben Levinsky
Add shutdown/wakeup a resource eemi operations to shutdown or bringup a resource. Note alignment of args matches convention of other fn's in this file. The reason being that the long fn name results in aligned args that otherwise go over 80 chars so shift right to avoid this Signed-off-by: Ben Le

[PATCH v26 1/5] firmware: xilinx: Add ZynqMP firmware ioctl enums for RPU configuration.

2021-02-23 Thread Ben Levinsky
Add ZynqMP firmware ioctl enums for RPU configuration and TCM Nodes for later use via request_node and release_node Signed-off-by: Ben Levinsky --- include/linux/firmware/xlnx-zynqmp.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/include/linux/firmware/xlnx-zynqmp

[PATCH v26 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2021-02-23 Thread Ben Levinsky
R5 is included in Xilinx Zynq UltraScale MPSoC so by adding this remoteproc driver, we can boot the R5 sub-system in two different configurations - * Split * Lockstep The Xilinx R5 Remoteproc Driver boots the R5's via calls to the Xilinx Platform Management Unit that handles the R5

Re: [PATCH v3 0/8] xen/events: bug fixes and some diagnostic aids

2021-02-23 Thread Boris Ostrovsky
On 2/19/21 10:40 AM, Juergen Gross wrote: > The first four patches are fixes for XSA-332. The avoid WARN splats > and a performance issue with interdomain events. > > Patches 5 and 6 are some additions to event handling in order to add > some per pv-device statistics to sysfs and the ability to h

Re: [PATCH 1/7] um: allow disabling NO_IOMEM

2021-02-23 Thread Johannes Berg
Hi, > Can't you just use the asm-generic versions instead? Hmm, yes, for fb.h and vga.h that should work, since they should never be used. For vga.h it would be wrong since it assumes the VGA memory is mapped into the CPU memory, but since it should never run it would still address the compilatio

Re: [PATCH 2/3] drm/nouveau/kms/nv50-: Report max cursor size to userspace

2021-02-23 Thread Ilia Mirkin
On Tue, Feb 23, 2021 at 10:36 AM Alex Riesen wrote: > > Ilia Mirkin, Tue, Feb 23, 2021 15:56:21 +0100: > > On Tue, Feb 23, 2021 at 9:26 AM Alex Riesen > > wrote: > > > Lyude Paul, Tue, Jan 19, 2021 02:54:13 +0100: > > > > diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c > > > > b/drivers/gp

Re: [PATCH 0/5] block: add a sequence number to disks

2021-02-23 Thread Matteo Croce
On Sat, Feb 6, 2021 at 1:09 AM Matteo Croce wrote: > > From: Matteo Croce > > With this series a monotonically increasing number is added to disks, > precisely in the genhd struct, and it's exported in sysfs and uevent. > > This helps the userspace correlate events for devices that reuse the > sa

Re: [PATCH] xen: Replace lkml.org links with lore

2021-02-23 Thread Boris Ostrovsky
On 2/10/21 6:46 PM, Kees Cook wrote: > As started by commit 05a5f51ca566 ("Documentation: Replace lkml.org > links with lore"), replace lkml.org links with lore to better use a > single source that's more likely to stay available long-term. > > Signed-off-by: Kees Cook Reviewed-by: Boris Ostro

Re: [PATCH] mm, kasan: don't poison boot memory

2021-02-23 Thread Mike Rapoport
Hi George, On Tue, Feb 23, 2021 at 09:35:32AM -0500, George Kennedy wrote: > > On 2/23/2021 5:33 AM, Mike Rapoport wrote: > > (re-added CC) > > > > On Mon, Feb 22, 2021 at 08:24:59PM -0500, George Kennedy wrote: > > > On 2/22/2021 4:55 PM, Mike Rapoport wrote: > > > > On Mon, Feb 22, 2021 at 01:

[PATCH 1/2] dt-bindings: usb: generic-ehci: document ignore-oc flag

2021-02-23 Thread Álvaro Fernández Rojas
Over-current reporting isn't supported on some platforms such as bcm63xx. These devices will incorrectly report over-current if this flag isn't properly activated. Signed-off-by: Álvaro Fernández Rojas --- Documentation/devicetree/bindings/usb/generic-ehci.yaml | 5 + 1 file changed, 5 inser

[PATCH 2/2] usb: host: ehci-platform: add ignore-oc DT support

2021-02-23 Thread Álvaro Fernández Rojas
Over-current reporting isn't supported on some platforms such as bcm63xx. These devices will incorrectly report over-current if this flag isn't properly activated. Signed-off-by: Álvaro Fernández Rojas --- drivers/usb/host/ehci-platform.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dr

[PATCH 0/2] usb: host: ehci-platform: add ignore-oc DT support

2021-02-23 Thread Álvaro Fernández Rojas
Over-current reporting isn't supported on some platforms such as bcm63xx. These devices will incorrectly report over-current if this flag isn't properly activated. Álvaro Fernández Rojas (2): dt-bindings: usb: generic-ehci: document ignore-oc flag usb: host: ehci-platform: add ignore-oc DT sup

Re: [PATCH V4 1/3] virtio: don't prompt CONFIG_VIRTIO_PCI_MODERN

2021-02-23 Thread Daniel Díaz
Hello! If I may add to the nit-picking... On Tue, 23 Feb 2021 at 09:23, Guenter Roeck wrote: > On 2/22/21 10:19 PM, Jason Wang wrote: > > We used to prompt CONFIG_VIRTIO_PCI_MODERN to user which may bring a > > lot of confusion. E.g it may break various default configs which want > > virtio devi

Re: Sv: [PATCH] hrtimer: Interrupt storm on clock_settime

2021-02-23 Thread Anna-Maria Behnsen
Hi Micke, On Fri, 12 Feb 2021, Beckius, Mikael wrote: > Thanks for the update and sorry for the late reply. After long-term > testing of the patch, storm detection improved, it turns out that a > similar problem can occur if hrtimer_interrupt runs during > clock_settime. In this case it seems the

Re: [PATCH 2/3] drm/nouveau/kms/nv50-: Report max cursor size to userspace

2021-02-23 Thread Alex Riesen
Ilia Mirkin, Tue, Feb 23, 2021 16:46:52 +0100: > On Tue, Feb 23, 2021 at 10:36 AM Alex Riesen > wrote: > > Ilia Mirkin, Tue, Feb 23, 2021 15:56:21 +0100: > > > On Tue, Feb 23, 2021 at 9:26 AM Alex Riesen > > > wrote: > > > > > > > > This change broke X cursor in my setup, and reverting the comm

Re: UBSAN: shift-out-of-bounds in load_balance

2021-02-23 Thread Valentin Schneider
On 23/02/21 14:45, Vincent Guittot wrote: > On Tue, 23 Feb 2021 at 13:03, Valentin Schneider > wrote: >> >> >> +Vincent >> >> On 22/02/21 09:12, syzbot wrote: >> > syzbot has found a reproducer for the following issue on: >> > >> > HEAD commit:31caf8b2 Merge branch 'linus' of >> > git://git.k

Re: [PATCH] kthread: add kthread_mod_pending_delayed_work api

2021-02-23 Thread Petr Mladek
On Mon 2021-02-22 16:58:46, Yiwei Zhang wrote: > Since you awesome guys are here, I do have another kthread related > question, and hopefully to get some suggestions: > > Below are the conditions: > 1. The caller threads queuing the work are normal threads(non-RT). > 2. The worker thread is a real

Re: [RFC PATCH] scsi: smartpqi: create module parameters for LUN reset

2021-02-23 Thread Enzo Matsumiya
Hi, On 01/21, Enzo Matsumiya wrote: Commit c2922f174fa0 ("scsi: smartpqi: fix LUN reset when fw bkgnd thread is hung") added support for a timeout on LUN resets. However, when there are 2 or more devices connected to the same controller and you hot-remove one of them, I/O will stall on the dev

Re: [PATCH V4 1/3] virtio: don't prompt CONFIG_VIRTIO_PCI_MODERN

2021-02-23 Thread Michael S. Tsirkin
On Tue, Feb 23, 2021 at 09:50:35AM -0600, Daniel Díaz wrote: > Hello! > > If I may add to the nit-picking... > > On Tue, 23 Feb 2021 at 09:23, Guenter Roeck wrote: > > On 2/22/21 10:19 PM, Jason Wang wrote: > > > We used to prompt CONFIG_VIRTIO_PCI_MODERN to user which may bring a > > > lot of c

Re: [PATCH 1/2] dt-bindings: usb: generic-ehci: document ignore-oc flag

2021-02-23 Thread Alan Stern
On Tue, Feb 23, 2021 at 04:50:04PM +0100, Álvaro Fernández Rojas wrote: > Over-current reporting isn't supported on some platforms such as bcm63xx. > These devices will incorrectly report over-current if this flag isn't properly > activated. > > Signed-off-by: Álvaro Fernández Rojas > --- > Docu

Re: [RFC PATCH 0/4] KVM: arm64: Improve efficiency of stage2 page table

2021-02-23 Thread Alexandru Elisei
Hi Yanan, I wanted to review the patches, but unfortunately I get an error when trying to apply the first patch in the series: Applying: KVM: arm64: Move the clean of dcache to the map handler error: patch failed: arch/arm64/kvm/hyp/pgtable.c:464 error: arch/arm64/kvm/hyp/pgtable.c: patch does no

[PATCH v2 3/4] KVM: arm64: Use BUG and BUG_ON in nVHE hyp

2021-02-23 Thread Andrew Scull
hyp_panic() reports the address of the panic by using ELR_EL2, but this isn't a useful address when hyp_panic() is called directly. Replace such direct calls with BUG() and BUG_ON() which use BRK to trigger and exception that then goes to hyp_panic() with the correct address. Also remove the hyp_pa

[PATCH v2 2/4] bug: Factor out a getter for a bug's file line

2021-02-23 Thread Andrew Scull
There is some non-trivial config-based logic to get the file name and line number associated with a bug. Factor this out to a getter that can be resused. Signed-off-by: Andrew Scull Cc: Peter Zijlstra Cc: "Steven Rostedt (VMware)" --- include/linux/bug.h | 3 +++ lib/bug.c | 27

[PATCH v2 4/4] KVM: arm64: Log source when panicking from nVHE hyp

2021-02-23 Thread Andrew Scull
To aid with debugging, add details of the source of a panic. This is done by having nVHE hyp exit to nvhe_hyp_panic_handler() rather than directly to panic(). The handler will then add the extra details for debugging before panicking the kernel. If the panic was due to a BUG(), look up the metadat

[PATCH v2 0/4] Debug info for nVHE hyp panics

2021-02-23 Thread Andrew Scull
Panics from arm64's nVHE hyp mode are hard to interpret. This series adds some more debug info to help with diagnosis. Using BUG() in nVHE hyp gives a meaningful address to locate invariants that fail to hold. The host can also look up the bug to provide the file and line, if the debug configs are

[PATCH v2 1/4] bug: Remove redundant condition check in report_bug

2021-02-23 Thread Andrew Scull
report_bug() will return early if it cannot find a bug corresponding to the provided address. The subsequent test for the bug will always be true so remove it. Signed-off-by: Andrew Scull Cc: Peter Zijlstra Cc: "Steven Rostedt (VMware)" --- lib/bug.c | 33 +++-- 1 f

[PATCH 1/2] dt-bindings: rng: bcm2835: document reset support

2021-02-23 Thread Álvaro Fernández Rojas
Some devices may need to perform a reset before using the RNG, such as the BCM6368. Signed-off-by: Álvaro Fernández Rojas --- v2: document reset support. Documentation/devicetree/bindings/rng/brcm,bcm2835.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bi

[PATCH 2/2] hwrng: bcm2835: add reset support

2021-02-23 Thread Álvaro Fernández Rojas
BCM6368 devices need to reset the in order to generate true random numbers. This is what BCM6368 produces without a reset: root@OpenWrt:/# cat /dev/hwrng | rngtest -c 1000 rngtest 6.10 Copyright (c) 2004 by Henrique de Moraes Holschuh This is free software; see the source for copying conditions. T

[PATCH 0/2] hwrng: bcm2835: add reset support

2021-02-23 Thread Álvaro Fernández Rojas
Some devices may need to perform a reset before using the RNG, such as the BCM6368. Álvaro Fernández Rojas (2): dt-bindings: rng: bcm2835: document reset support hwrng: bcm2835: add reset support .../devicetree/bindings/rng/brcm,bcm2835.yaml | 5 + drivers/char/hw_random/bcm283

Re: [PATCH] drm/amd/display: Remove unnecessary conversion to bool

2021-02-23 Thread Alex Deucher
This was already fixed by a patch from Yang Li . Alex On Tue, Feb 23, 2021 at 1:13 AM Jiapeng Chong wrote: > > Fix the following coccicheck warnings: > > ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:8260:16-21: WARNING: > conversion to bool not needed here. > > Reported-by: Abaci Robot >

[PATCH] hrtimer: Update softirq_expires_next correctly after __hrtimer_get_next_event()

2021-02-23 Thread Anna-Maria Behnsen
hrtimer_force_reprogram() and hrtimer_interrupt() invokes __hrtimer_get_next_event() to find the earliest expiry time of hrtimer bases. __hrtimer_get_next_event() does not update cpu_base::[softirq_]_expires_next to preserve reprogramming logic. That needs to be done at the callsites. hrtimer_forc

Re: [PATCH v8] vfs: fix copy_file_range regression in cross-fs copies

2021-02-23 Thread dai . ngo
On 2/23/21 7:29 AM, dai@oracle.com wrote: On 2/23/21 2:32 AM, Luis Henriques wrote: On Mon, Feb 22, 2021 at 08:25:27AM -0800, dai@oracle.com wrote: On 2/22/21 2:24 AM, Luis Henriques wrote: A regression has been reported by Nicolas Boichat, found while using the copy_file_range sys

Re: [PATCH 1/2] dt-bindings: usb: generic-ehci: document ignore-oc flag

2021-02-23 Thread Álvaro Fernández Rojas
Hi Alan, > El 23 feb 2021, a las 16:54, Alan Stern escribió: > > On Tue, Feb 23, 2021 at 04:50:04PM +0100, Álvaro Fernández Rojas wrote: >> Over-current reporting isn't supported on some platforms such as bcm63xx. >> These devices will incorrectly report over-current if this flag isn't >> prope

Re: [PATCH] drivers: ipa: Add missing IRQF_ONESHOT

2021-02-23 Thread Alex Elder
On 2/23/21 3:09 AM, Yang Li wrote: fixed the following coccicheck: ./drivers/net/ipa/ipa_smp2p.c:186:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Make sure threaded IRQs without a primary handler are always request with IRQF_ONESHOT SMP2P interrupts are hand

Re: [PATCH] mtd: rawnand: qcom: Convert nandc to chip in Read/Write helper

2021-02-23 Thread Miquel Raynal
Hello, Md Sadre Alam wrote on Mon, 22 Feb 2021 01:55:01 +0530: > This change will convert nandc to chip in Read/Write helper, this > change is needed because if we wnated to access number of steps > in Read/Write helper then we need to get the chip->ecc.steps, > currentlly its not possible.After

Re: [PATCH] kdb: Remove redundant function definitions/prototypes

2021-02-23 Thread Doug Anderson
Hi, On Tue, Feb 23, 2021 at 4:01 AM Sumit Garg wrote: > > @@ -103,7 +103,6 @@ extern int kdb_getword(unsigned long *, unsigned long, > size_t); > extern int kdb_putword(unsigned long, unsigned long, size_t); > > extern int kdbgetularg(const char *, unsigned long *); > -extern int kdbgetu64arg(

Re: [PATCH 1/2] dt-bindings: usb: generic-ehci: document ignore-oc flag

2021-02-23 Thread Alan Stern
On Tue, Feb 23, 2021 at 05:04:57PM +0100, Álvaro Fernández Rojas wrote: > Hi Alan, > > > El 23 feb 2021, a las 16:54, Alan Stern > > escribió: > > > > On Tue, Feb 23, 2021 at 04:50:04PM +0100, Álvaro Fernández Rojas wrote: > >> Over-current reporting isn't supported on some platforms such as bc

Re: [PATCH 1/1] net: fec: ptp: avoid register access when ipg clock is disabled

2021-02-23 Thread Richard Cochran
On Tue, Feb 23, 2021 at 04:04:16PM +0100, Heiko Thiery wrote: > It is not only the PHC clock that stops. Rather, it is the entire > ethernet building block in the SOC that is disabled, including the > PHC. Sure, but why does the driver do that? Thanks, Richard

Re: [PATCH] mtd: rawnand: qcom: Add helper to check last code word

2021-02-23 Thread Miquel Raynal
Hello, Md Sadre Alam wrote on Mon, 22 Feb 2021 11:54:55 +0530: > This change will add helper qcom_nandc_is_last_cw() Use the imperative form, something like: " Add the qcom_nandc_is_last_cw() helper which checks if the input cw index is the last one or not. " > which will check for last code

RE: [PATCH v2] x86/mce: fix wrong no-return-ip logic in do_machine_check()

2021-02-23 Thread Luck, Tony
> What I think is qemu has not an easy to get the MCE signature from host or > currently no methods for this > So qemu treat all AR will be No RIPV, Do more is better than do less. RIPV would be important in the guest in the case where the guest can fix the problem that caused the machine check

Re: [PATCH 01/20] cgroup: Manual replacement of the deprecated strlcpy() with return values

2021-02-23 Thread Michal Koutný
Hello. On Mon, Feb 22, 2021 at 04:12:12PM +0100, Romain Perier wrote: > --- a/kernel/cgroup/cgroup.c > +++ b/kernel/cgroup/cgroup.c > @@ -2265,7 +2265,7 @@ int task_cgroup_path(struct task_struct *task, char > *buf, size_t buflen) Actually, this function isn't used at all. So I'd instead propos

Re: [PATCH] mtd: rawnand: qcom: Rename parameter name in macro

2021-02-23 Thread Miquel Raynal
Hello, Md Sadre Alam wrote on Mon, 22 Feb 2021 13:05:42 +0530: > This change will rename parameter name in macro > nandc_set_read_loc().renamed parameter names are > cw_offset, read_size, is_last_read_loc. > Sinc in QPIC V2 on-wards there is separate location > register to read last code word, s

Re: [PATCH] ptrace: add PTRACE_GET_RSEQ_CONFIGURATION request

2021-02-23 Thread Florian Weimer
* Piotr Figiel: > diff --git a/include/uapi/linux/ptrace.h b/include/uapi/linux/ptrace.h > index 83ee45fa634b..d54cf6b6ce7c 100644 > --- a/include/uapi/linux/ptrace.h > +++ b/include/uapi/linux/ptrace.h > @@ -102,6 +102,14 @@ struct ptrace_syscall_info { > }; > }; > > +#define PTRACE_GET_

<    1   2   3   4   5   6   7   8   9   10   >