Re: [RFC] linux-next panic in hugepage_subpool_put_pages()

2021-02-23 Thread Gerald Schaefer
On Tue, 23 Feb 2021 15:57:40 +0100 Gerald Schaefer wrote: [...] > What I do not understand is how __free_huge_page() would be called at all > in the call trace below (set_max_huge_pages -> alloc_pool_huge_page -> > __free_huge_page -> hugepage_subpool_put_pages). From the code it seems > that

Re: [PATCH v4 bpf-next 2/6] bpf: prevent deadlock from recursive bpf_task_storage_[get|delete]

2021-02-23 Thread Alexei Starovoitov
On 2/22/21 11:19 PM, Andrii Nakryiko wrote: + bpf_task_storage_lock(); sdata = bpf_local_storage_update( task, (struct bpf_local_storage_map *)map, value, map_flags); this should probably be container_of() instead of casting bpf_task_storage.c uses casting in

[PATCH] USB: serial: cp210x: add some more GE USB IDs

2021-02-23 Thread Sebastian Reichel
GE CS1000 has some more custom USB IDs for CP2102N; add them to the driver to have working auto-probing. Signed-off-by: Sebastian Reichel --- drivers/usb/serial/cp210x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index

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

2021-02-23 Thread Luck, Tony
On Tue, Feb 23, 2021 at 07:33:46AM -0800, Andy Lutomirski wrote: > > > 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

Re: [PATCH] remoteproc: core: Remove casting to rproc_handle_resource_t

2021-02-23 Thread Mathieu Poirier
On Mon, 22 Feb 2021 at 15:48, Sami Tolvanen wrote: > > Hi, > > On Sun, Feb 21, 2021 at 11:18 PM Jindong Yue wrote: > > > > There are four different callback functions that are used for the > > rproc_handle_resource_t callback that all have different second > > parameter types. > > > >

Re: [PATCH v2] memcg: charge before adding to swapcache on swapin

2021-02-23 Thread Shakeel Butt
On Mon, Feb 22, 2021 at 9:55 PM Shakeel Butt wrote: [snip] > --- a/include/linux/memcontrol.h > +++ b/include/linux/memcontrol.h > @@ -596,6 +596,9 @@ static inline bool mem_cgroup_below_min(struct mem_cgroup > *memcg) > } > > int mem_cgroup_charge(struct page *page, struct mm_struct *mm,

Re: [PATCH 2/2] KVM: vmx/pmu: Clear DEBUGCTLMSR_LBR bit on the debug breakpoint event

2021-02-23 Thread Sean Christopherson
On Tue, Feb 23, 2021, Like Xu wrote: > When the processor that support model-specific LBR generates a debug > breakpoint event, it automatically clears the LBR flag. This action > does not clear previously stored LBR stack MSRs. (Intel SDM 17.4.2) > > Signed-off-by: Like Xu > --- >

Re: [PATCH v2 5/5] iio: dac: ad5686: Add PWM as a trigger source

2021-02-23 Thread Lars-Peter Clausen
On 2/18/21 3:05 PM, Jonathan Cameron wrote: On Wed, 17 Feb 2021 10:34:38 +0200 Alexandru Ardelean wrote: From: Mircea Caprioru A PWM signal will be used as a trigger source to have a deterministic sampling frequency since this family of DAC has no hardware interrupt source. This feature is

interrupt.c:undefined reference to `replay_soft_interrupts'

2021-02-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3b9cdafb5358eb9f3790de2f728f765fef100731 commit: 344bb20b159dd0996e521c0d4c131a6ae10c322a powerpc/syscall: Make interrupt.c buildable on PPC32 date: 12 days ago config: powerpc64-randconfig-r013-20210223

[PATCH v3 0/1] iio: adc: ad7124: allow more than 8 channels

2021-02-23 Thread alexandru.tachici
From: Alexandru Tachici Currently AD7124-8 driver cannot use more than 8 IIO channels because it was assigning the channel configurations bijectively to channels specified in the device-tree. This is not possible to do when using more than 8 channels as AD7124-8 has only 8 configuration

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

2021-02-23 Thread Florian Fainelli
On 2/23/2021 8:01 AM, Álvaro Fernández Rojas wrote: > Some devices may need to perform a reset before using the RNG, such as the > BCM6368. > > Signed-off-by: Álvaro Fernández Rojas Since the reset is unique to the 6368, you may want to make the property mandatory for the 6368 compatible

[PATCH v3 1/1] iio: adc: ad7124: allow more than 8 channels

2021-02-23 Thread alexandru.tachici
From: Alexandru Tachici Currently AD7124-8 driver cannot use more than 8 IIO channels because it was assigning the channel configurations bijectively to channels specified in the device-tree. This is not possible to do when using more than 8 channels as AD7124-8 has only 8 configuration

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

2021-02-23 Thread Steven Rostedt
On Tue, 23 Feb 2021 15:57:57 + Andrew Scull wrote: > 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

Re: [PATCH v2] netdevsim: fib: remove unneeded semicolon

2021-02-23 Thread Jakub Kicinski
On Tue, 23 Feb 2021 10:28:46 +0800 Jiapeng Chong wrote: > Fix the following coccicheck warnings: > > ./drivers/net/netdevsim/fib.c:564:2-3: Unneeded semicolon. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong # Form letter - net-next is closed We have already sent the networking

Re: [PATCH v2 02/14] clk: stm32mp1: merge 'ck_hse_rtc' and 'ck_rtc' into one clock

2021-02-23 Thread gabriel.fernan...@foss.st.com
On 2/19/21 2:27 AM, Stephen Boyd wrote: Quoting gabriel.fernan...@foss.st.com (2021-02-12 00:08:40) On 2/9/21 9:00 AM, Stephen Boyd wrote: Quoting gabriel.fernan...@foss.st.com (2021-01-26 01:01:08) From: Gabriel Fernandez 'ck_rtc' has multiple clocks as input (ck_hsi, ck_lsi, and

Re: [PATCH] mtd: rawnand: qcom: update last code word register

2021-02-23 Thread Miquel Raynal
Hello, Md Sadre Alam wrote on Tue, 23 Feb 2021 01:34:27 +0530: > From QPIC version 2.0 onwards new register got added to read last a new > codeword. This change will add the READ_LOCATION_LAST_CW_n register. Add support for this

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

2021-02-23 Thread Mathieu Poirier
Good morning, I have received your patchset but currently don't see having the time to look at it before the middle of March. Thanks, Mathieu On Tue, 23 Feb 2021 at 08:44, Ben Levinsky wrote: > > R5 is included in Xilinx Zynq UltraScale MPSoC so by adding this > remotproc driver, we can boot

Re: [PATCH 1/2] optee: fix tee out of memory failure seen during kexec reboot

2021-02-23 Thread Allen Pais
- /* -* Ask OP-TEE to free all cached shared memory objects to decrease -* reference counters and also avoid wild pointers in secure world -* into the old shared memory range. -*/ - optee_disable_shm_cache(optee); + if (shutdown) { +

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

2021-02-23 Thread Steven Rostedt
On Tue, 23 Feb 2021 15:57:56 + Andrew Scull wrote: > 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. Fixes: 1b4cfe3c0a30d ("lib/bug.c: exclude non-BUG/WARN exceptions from

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

2021-02-23 Thread Alex Riesen
Alex Riesen, Tue, Feb 23, 2021 16:51:26 +0100: > Ilia Mirkin, Tue, Feb 23, 2021 16:46:52 +0100: > > I'd recommend using xf86-video-nouveau in any case, but some distros > > I would like try this out. Do you know how to force the xorg server to > choose this driver instead of modesetting? Found

Re: [PATCH] mtd: rawnand: qcom: Add helper to configure location register

2021-02-23 Thread Miquel Raynal
Hello, Md Sadre Alam wrote on Mon, 22 Feb 2021 20:35:43 +0530: > This change will add helper nandc_set_read_loc() to configure > location register value. QPIC V2 on wards there is separate > location register to read the last code word. This helper > will use to configure location register for

[PATCH v2 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 --- v2: change flag name and improve documentation as suggested by Alan Stern.

[PATCH v2 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 --- v2: change flag name and improve documentation as suggested by Alan Stern.

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

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

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,

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

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

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

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

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

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

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

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

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

[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

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

[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

[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

[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

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

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

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

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

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

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

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

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

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

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

[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

[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

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

[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

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

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 >

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

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

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

[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

[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

[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

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

[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

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

[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

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

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 =

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

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

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

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

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

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

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

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

[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

[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

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

[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

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

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

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

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 >

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

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 &

[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

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

[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

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