Re: [PATCH v4 2/6] drm/sprd: add Unisoc's drm kms master

2021-03-24 Thread Maxime Ripard
Hi On Mon, Feb 22, 2021 at 09:28:18PM +0800, Kevin Tang wrote: > Adds drm support for the Unisoc's display subsystem. > > This is drm kms driver, this driver provides support for the > application framework in Android, Yocto and more. > > Application framework can access Unisoc's display interne

Re: [PATCH] irqchip/gic-v3: fix OF_BAD_ADDR error handling

2021-03-24 Thread Arnd Bergmann
On Wed, Mar 24, 2021 at 11:14 AM Marc Zyngier wrote: > > On Tue, 23 Mar 2021 22:06:22 +, > Nick Desaulniers wrote: > > > > On Tue, Mar 23, 2021 at 6:18 AM Arnd Bergmann wrote: > > > > > > From: Arnd Bergmann > > > > > > When building with extra warnings enabled, clang points out a > > > mis

Re: ERROR: "devm_platform_ioremap_resource" undefined!

2021-03-24 Thread Andy Shevchenko
latform: Use > devm_platform_ioremap_resource() > date: 1 year, 7 months ago > config: s390-randconfig-r013-20210324 (attached as .config) > compiler: s390-linux-gcc (GCC) 9.3.0 > reproduce (this is a W=1 build): > wget > https://raw.githubusercontent.com/intel/lkp-tests/m

Re: [PATCH v2] sched: Warn on long periods of pending need_resched

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 10:37:43AM +0100, Peter Zijlstra wrote: > Should we perhaps take out all SCHED_DEBUG sysctls and move them to > /debug/sched/ ? (along with the existing /debug/sched_{debug,features,preemp} > files) > > Having all that in sysctl and documented gives them far too much sheen

Re: [PATCH] scsi: pm8001: avoid -Wrestrict warning

2021-03-24 Thread Jinpu Wang
On Tue, Mar 23, 2021 at 1:55 PM Arnd Bergmann wrote: > > From: Arnd Bergmann > > On some configurations, gcc warns about overlapping source and > destination arguments to snprintf: > > drivers/scsi/pm8001/pm8001_init.c: In function 'pm8001_request_msix': > drivers/scsi/pm8001/pm8001_init.c:977:3:

Re: [PATCH v2] sched: Warn on long periods of pending need_resched

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 11:54:24AM +0100, Peter Zijlstra wrote: > On Wed, Mar 24, 2021 at 10:37:43AM +0100, Peter Zijlstra wrote: > > Should we perhaps take out all SCHED_DEBUG sysctls and move them to > > /debug/sched/ ? (along with the existing > > /debug/sched_{debug,features,preemp} > > files)

Re: [PATCH v4 4/4] arm64: dts: mt8183: Add kukui-jacuzzi-juniper board

2021-03-24 Thread Ricardo Cañuelo
Hi all, On vie 19-03-2021 11:52:45, Hsin-Yi Wang wrote: > Juniper is known as Acer Chromebook Spin 311 (CP311-3H). > > Signed-off-by: Hsin-Yi Wang I picked this patch in the current rc4 kernel and booted it successfully on an Acer Chromebook Spin 311 with no noticeable problems, so: Tested-by:

Re: [PATCH v2] editorconfig: Add automatic editor configuration file

2021-03-24 Thread Rasmus Villemoes
On 03/07/2020 14.29, Jonathan Corbet wrote: [doing a bit of necromancy here] > On Fri, 3 Jul 2020 00:31:43 -0700 > Danny Lin wrote: > >> EditorConfig is a standard for defining basic editor configuration in >> projects. There is support available for 47 code editors as of writing, >> including

Re: [PATCH] treewide: remove editor modelines and cruft

2021-03-24 Thread Miguel Ojeda
Hi Masahiro, On Wed, Mar 24, 2021 at 10:57 AM Masahiro Yamada wrote: > > The section "19) Editor modelines and other cruft" in > Documentation/process/coding-style.rst clearly says, > "Do not include any of these in source files." > > I recently receive a patch to explicitly add a new one. > > Le

Re: [PATCH 1/2] net: ipv4: route.c: add likely() statements

2021-03-24 Thread Yejune Deng
My reasons are as following: ipv4_confirm_neigh() belongs to ipv4_dst_ops that family is AF_INET, and ipv4_neigh_lookup() is also added likely() when rt->rt_gw_family is equal to AF_INET. On Wed, Mar 24, 2021 at 6:34 PM Leon Romanovsky wrote: > > On Wed, Mar 24, 2021 at 11:09:22AM +0800, Yejune D

[PATCH v1 2/3] mm: remove xlate_dev_kmem_ptr()

2021-03-24 Thread David Hildenbrand
Since /dev/kmem has been removed, let's remove the xlate_dev_kmem_ptr() leftovers. Acked-by: Geert Uytterhoeven Cc: Linus Torvalds Cc: Greg Kroah-Hartman Cc: Andrew Morton Cc: Richard Henderson Cc: Ivan Kokshaysky Cc: Matt Turner Cc: Russell King Cc: Brian Cain Cc: Geert Uytterhoeven Cc:

[PATCH V2] driver core: Use unbound workqueue for deferred probes

2021-03-24 Thread Yogesh Lal
Deferred probe usually runs only on pinned kworkers, which might take longer time if a device contains multiple sub-devices. One such case is of sound card on mobile devices, where we have good number of mixers and controls per mixer. We observed boot up improvement - deferred probes take ~600ms w

Re: [PATCH net-next 1/2] net: phy: add genphy_c45_loopback

2021-03-24 Thread Heiner Kallweit
On 23.03.2021 17:46, Wong Vee Khee wrote: > Add generic code to enable C45 PHY loopback into the common phy-c45.c > file. This will allow C45 PHY drivers aceess this by setting > .set_loopback. > > Suggested-by: Heiner Kallweit > Signed-off-by: Wong Vee Khee > --- > drivers/net/phy/phy-c45.c |

Linux 5.11.9

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

Re: Linux 5.11.9

2021-03-24 Thread Greg Kroah-Hartman
diff --git a/MAINTAINERS b/MAINTAINERS index bfc1b86e3e73..b6ab9c1a2119 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1169,7 +1169,7 @@ M:Joel Fernandes M: Christian Brauner M: Hridya Valsaraju M: Suren Baghdasaryan -L: de...@driverdev.osuosl.org +L: linux-kernel

Re: [PATCH] riscv: locks: introduce ticket-based spinlock implementation

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 10:14:52AM +, guo...@kernel.org wrote: > +static inline void arch_spin_lock(arch_spinlock_t *lock) > +{ > + arch_spinlock_t lockval; > + u32 tmp; > + > + asm volatile ( > + "1: lr.w%0, %2 \n" > + " mv %1, %0

Re: [PATCH v4 4/6] drm/sprd: add Unisoc's drm display controller driver

2021-03-24 Thread Maxime Ripard
Hi, On Mon, Feb 22, 2021 at 09:28:20PM +0800, Kevin Tang wrote: > Adds DPU(Display Processor Unit) support for the Unisoc's display subsystem. > It's support multi planes, scaler, rotation, PQ(Picture Quality) and more. > > Cc: Orson Zhai > Cc: Chunyan Zhang > Signed-off-by: Kevin Tang > > v2

Re: [RFC PATCH 2/2] integrity: double check iint_cache was initialized

2021-03-24 Thread Mimi Zohar
On Wed, 2021-03-24 at 19:10 +0900, Tetsuo Handa wrote: > On 2021/03/24 1:13, Mimi Zohar wrote: > > On Wed, 2021-03-24 at 00:14 +0900, Tetsuo Handa wrote: > >> On 2021/03/23 23:47, Mimi Zohar wrote: > >>> Initially I also questioned making "integrity" an LSM. Perhaps it's > >>> time to reconsider.

[PATCH] PCI: Disable D3cold support on Intel XMM7360

2021-03-24 Thread Kai-Heng Feng
On some platforms, the root port for Intel XMM7360 WWAN supports D3cold. When the root port is put to D3cold by system suspend or runtime suspend, attempt to systems resume or runtime resume will freeze the laptop for a while, then it automatically shuts down. The root cause is unclear for now, as

Re: [PATCH v4 5/6] dt-bindings: display: add Unisoc's mipi dsi controller bindings

2021-03-24 Thread Maxime Ripard
On Mon, Feb 22, 2021 at 09:28:21PM +0800, Kevin Tang wrote: > From: Kevin Tang > > Adds MIPI DSI Controller > support for Unisoc's display subsystem. > > Cc: Orson Zhai > Cc: Chunyan Zhang > Signed-off-by: Kevin Tang > Reviewed-by: Rob Herring > --- > .../display/sprd/sprd,sharkl3-dsi-host.

Re: [PATCH] ALSA: usb-audio: Apply sample rate quirk to Logitech Connect

2021-03-24 Thread Joakim Tjernlund
On Wed, 2021-03-24 at 18:51 +0800, Ikjoon Jang wrote: > Logitech ConferenceCam Connect is a compound USB device with UVC and > UAC. Not 100% reproducible but sometimes it keeps responding STALL to > every control transfer once it receives get_freq request. > > This patch adds 046d:0x084c to a snd_

Re: [PATCH] ASoC: dt-bindings: nvidia,tegra210-ahub: Add missing child nodes

2021-03-24 Thread Sameer Pujar
On 3/24/2021 1:30 AM, Rob Herring wrote: External email: Use caution opening links or attachments The nvidia,tegra210-ahub binding is missing schema for child nodes. This results in warnings if 'additionalProperties: false' is set (or when the tools implement 'unevaluatedProperties' support)

Re: [PATCH v1 1/3] kernel/resource: make walk_system_ram_res() find all busy IORESOURCE_SYSTEM_RAM resources

2021-03-24 Thread Oscar Salvador
On Mon, Mar 22, 2021 at 05:01:58PM +0100, David Hildenbrand wrote: > It used to be true that we can have busy system RAM only on the first level > in the resourc tree. However, this is no longer holds for driver-managed > system RAM (i.e., added via dax/kmem and virtio-mem), which gets added on > l

Re: [PATCH 1/1] block: fix potential infinite loop in the negative branch in __submit_bio_noacct_mq()

2021-03-24 Thread Christoph Hellwig
On Tue, Mar 23, 2021 at 02:48:36PM +0300, Sergei Shtepa wrote: > When the blk_crypto_bio_prep() function returns false, the processing > of the bio request must end. Repeated access to blk_crypto_bio_prep() > for this same bio may lead to access to already released data, since in > this case the bi

Re: [PATCH v5 1/2] platform/x86: dell-privacy: Add support for Dell hardware privacy

2021-03-24 Thread Hans de Goede
Hi, On 3/22/21 10:38 AM, Perry Yuan wrote: > From: Perry Yuan > > add support for Dell privacy driver for the Dell units equipped > hardware privacy design, which protect users privacy of audio and > camera from hardware level. Once the audio or camera privacy mode > activated, any applications

Re: [PATCH v2 2/2] mfd: intel_quark_i2c_gpio: enable MSI interrupt

2021-03-24 Thread Andy Shevchenko
On Wed, Mar 24, 2021 at 10:47:29AM +, Lee Jones wrote: > On Wed, 24 Mar 2021, Andy Shevchenko wrote: > > On Wed, Mar 24, 2021 at 10:29:31AM +, Lee Jones wrote: > > > On Tue, 23 Mar 2021, Andy Shevchenko wrote: ... > Also, past acceptance does not guarantee ideal/correct usage. In this ca

Re: [RFC PATCH 2/2] integrity: double check iint_cache was initialized

2021-03-24 Thread Tetsuo Handa
On 2021/03/24 20:10, Mimi Zohar wrote: > On Wed, 2021-03-24 at 19:10 +0900, Tetsuo Handa wrote: >> On 2021/03/24 1:13, Mimi Zohar wrote: >>> On Wed, 2021-03-24 at 00:14 +0900, Tetsuo Handa wrote: On 2021/03/23 23:47, Mimi Zohar wrote: > Initially I also questioned making "integrity" an LSM

Re: [PATCH v2 03/12] dump_stack: Add vmlinux build ID to stack traces

2021-03-24 Thread Andy Shevchenko
On Tue, Mar 23, 2021 at 07:04:34PM -0700, Stephen Boyd wrote: > Add the running kernel's build ID[1] to the stacktrace information > header. This makes it simpler for developers to locate the vmlinux with > full debuginfo for a particular kernel stacktrace. Combined with > scripts/decode_stracktra

Re: [PATCH v3 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-24 Thread Paolo Bonzini
On 24/03/21 11:48, Kai Huang wrote: +/* Error message for EREMOVE failure, when kernel is about to leak EPC page */ +#define EREMOVE_ERROR_MESSAGE \ + "EREMOVE returned %d (0x%x), kernel bug likely. EPC page leaked, SGX may become unusuable. Please refer to Documentation/x86/sgx.rst for

[PATCH v3 00/11] Add support for synchronous signals on perf events

2021-03-24 Thread Marco Elver
The perf subsystem today unifies various tracing and monitoring features, from both software and hardware. One benefit of the perf subsystem is automatically inheriting events to child tasks, which enables process-wide events monitoring with low overheads. By default perf events are non-intrusive,

[PATCH v3 01/11] perf: Rework perf_event_exit_event()

2021-03-24 Thread Marco Elver
From: Peter Zijlstra Make perf_event_exit_event() more robust, such that we can use it from other contexts. Specifically the up and coming remove_on_exec. For this to work we need to address a few issues. Remove_on_exec will not destroy the entire context, so we cannot rely on TASK_TOMBSTONE to

[PATCH v3 02/11] perf: Apply PERF_EVENT_IOC_MODIFY_ATTRIBUTES to children

2021-03-24 Thread Marco Elver
As with other ioctls (such as PERF_EVENT_IOC_{ENABLE,DISABLE}), fix up handling of PERF_EVENT_IOC_MODIFY_ATTRIBUTES to also apply to children. Link: https://lkml.kernel.org/r/ybqvay8atmyto...@hirez.programming.kicks-ass.net Suggested-by: Dmitry Vyukov Reviewed-by: Dmitry Vyukov Signed-off-by: Ma

[PATCH v3 03/11] perf: Support only inheriting events if cloned with CLONE_THREAD

2021-03-24 Thread Marco Elver
Adds bit perf_event_attr::inherit_thread, to restricting inheriting events only if the child was cloned with CLONE_THREAD. This option supports the case where an event is supposed to be process-wide only (including subthreads), but should not propagate beyond the current process's shared environme

[PATCH v3 05/11] signal: Introduce TRAP_PERF si_code and si_perf to siginfo

2021-03-24 Thread Marco Elver
Introduces the TRAP_PERF si_code, and associated siginfo_t field si_perf. These will be used by the perf event subsystem to send signals (if requested) to the task where an event occurred. Acked-by: Geert Uytterhoeven # m68k Acked-by: Arnd Bergmann # asm-generic Signed-off-by: Marco Elver ---

[PATCH v3 04/11] perf: Add support for event removal on exec

2021-03-24 Thread Marco Elver
Adds bit perf_event_attr::remove_on_exec, to support removing an event from a task on exec. This option supports the case where an event is supposed to be process-wide only, and should not propagate beyond exec, to limit monitoring to the original process image only. Suggested-by: Peter Zijlstra

[PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-24 Thread Marco Elver
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) between the event triggering and the signal being delivered t

[PATCH v3 06/11] perf: Add support for SIGTRAP on perf events

2021-03-24 Thread Marco Elver
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 is set in si_errno. The primary motivation is to support syn

[PATCH v3 08/11] selftests/perf_events: Add kselftest for process-wide sigtrap handling

2021-03-24 Thread Marco Elver
Add a kselftest for testing process-wide perf events with synchronous SIGTRAP on events (using breakpoints). In particular, we want to test that changes to the event propagate to all children, and the SIGTRAPs are in fact synchronously sent to the thread where the event occurred. Note: The "signal

[PATCH v3 10/11] tools headers uapi: Sync tools/include/uapi/linux/perf_event.h

2021-03-24 Thread Marco Elver
Sync tool's uapi to pick up the changes adding inherit_thread, remove_on_exec, and sigtrap fields to perf_event_attr. Signed-off-by: Marco Elver --- v3: * Added to series. --- tools/include/uapi/linux/perf_event.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/incl

[PATCH v3 09/11] selftests/perf_events: Add kselftest for remove_on_exec

2021-03-24 Thread Marco Elver
Add kselftest to test that remove_on_exec removes inherited events from child tasks. Signed-off-by: Marco Elver --- v3: * Fix for latest libc signal.h. v2: * Add patch to series. --- .../testing/selftests/perf_events/.gitignore | 1 + tools/testing/selftests/perf_events/Makefile | 2 +- .

[PATCH v3 11/11] perf test: Add basic stress test for sigtrap handling

2021-03-24 Thread Marco Elver
Add basic stress test for sigtrap handling as a perf tool built-in test. This allows sanity checking the basic sigtrap functionality from within the perf tool. Note: A more elaborate kselftest version of this test can also be found in tools/testing/selftests/perf_events/sigtrap_threads.c. Signed-

Re: [PATCH] serial: imx: drop workaround for forced irq threading

2021-03-24 Thread Uwe Kleine-König
Hello Johan, On Tue, Mar 23, 2021 at 03:37:29PM +0100, Johan Hovold wrote: > On Mon, Mar 22, 2021 at 02:40:32PM +0100, Uwe Kleine-König wrote: > > On Mon, Mar 22, 2021 at 02:20:57PM +0100, Johan Hovold wrote: > > > On Mon, Mar 22, 2021 at 12:55:36PM +0100, Uwe Kleine-König wrote: > > > > On Mon, M

Re: [PATCH v2] sched: Warn on long periods of pending need_resched

2021-03-24 Thread Mel Gorman
On Mon, Mar 22, 2021 at 08:57:06PM -0700, Josh Don wrote: > From: Paul Turner > > CPU scheduler marks need_resched flag to signal a schedule() on a > particular CPU. But, schedule() may not happen immediately in cases > where the current task is executing in the kernel mode (no > preemption state

Re: [PATCH v2 07/12] scripts/decode_stacktrace.sh: Support debuginfod

2021-03-24 Thread Andy Shevchenko
On Tue, Mar 23, 2021 at 07:04:38PM -0700, Stephen Boyd wrote: > Now that stacktraces contain the build ID information we can update this > script to use debuginfod-find to locate the debuginfo for the vmlinux > and modules automatically. This can replace the existing code that > requires specifying

Re: [PATCH -next] x86: Fix unused variable 'msr_val' warning

2021-03-24 Thread Wei Liu
On Tue, Mar 23, 2021 at 10:43:02AM +0800, Xu Yihang wrote: > Fixes the following W=1 kernel build warning(s): > arch/x86/hyperv/hv_spinlock.c:28:16: warning: variable ‘msr_val’ set but not > used [-Wunused-but-set-variable] > unsigned long msr_val; > > As Hypervisor Top-Level Functional Specifi

Re: [PATCH] arm: omap2: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-03-24 Thread Tony Lindgren
* Jiapeng Chong [210202 05:43]: > Fix the following coccicheck warning: > > ./arch/arm/mach-omap2/pm-debug.c:171:0-23: WARNING: pwrdm_suspend_fops > should be defined with DEFINE_DEBUGFS_ATTRIBUTE. Thanks applying into omap-for-v5.13/soc. Tony

Re: [PATCH v1 1/3] kernel/resource: make walk_system_ram_res() find all busy IORESOURCE_SYSTEM_RAM resources

2021-03-24 Thread David Hildenbrand
On 24.03.21 12:18, Oscar Salvador wrote: On Mon, Mar 22, 2021 at 05:01:58PM +0100, David Hildenbrand wrote: It used to be true that we can have busy system RAM only on the first level in the resourc tree. However, this is no longer holds for driver-managed system RAM (i.e., added via dax/kmem an

RE: [PATCH v6 03/10] scsi: ufshpb: Add region's reads counter

2021-03-24 Thread Avri Altman
> > @@ -596,12 +615,43 @@ int ufshpb_prep(struct ufs_hba *hba, struct > > ufshcd_lrb *lrbp) > > ufshpb_set_ppn_dirty(hpb, rgn_idx, srgn_idx, srgn_offset, > >transfer_len); > > spin_unlock_irqrestore(&hpb->rgn_state_lock, flags); > > + > >

Re: [PATCH] serial: imx: drop workaround for forced irq threading

2021-03-24 Thread Uwe Kleine-König
Hello Sebastian, On Tue, Mar 23, 2021 at 10:04:13AM +0100, Sebastian Andrzej Siewior wrote: > On 2021-03-23 08:34:47 [+0100], Uwe Kleine-König wrote: > > On Mon, Mar 22, 2021 at 09:48:36PM +0100, Sebastian Andrzej Siewior wrote: > > > On 2021-03-22 14:40:32 [+0100], Uwe Kleine-König wrote: > > > >

Re: [PATCH] btrfs: fix a potential hole-punching failure

2021-03-24 Thread Filipe Manana
On Wed, Mar 24, 2021 at 11:15 AM bingjingc wrote: > > From: BingJing Chang > > In commit d77815461f04 ("btrfs: Avoid trucating page or punching hole in > a already existed hole."), existed holes can be skipped by calling > find_first_non_hole() to adjust *start and *len. However, if the given > l

Re: [PATCH] bus: ti-sysc: remove unneeded semicolon

2021-03-24 Thread Tony Lindgren
* Yang Li [210202 09:00]: > Eliminate the following coccicheck warning: > ./drivers/bus/ti-sysc.c:1595:2-3: Unneeded semicolon > ./drivers/bus/ti-sysc.c:2833:3-4: Unneeded semicolon Thanks applying into omap-for-v5.13/ti-sysc. Tony

Re: [PATCH] ARM: OMAP2+: add missing call to of_node_put()

2021-03-24 Thread Tony Lindgren
* Yang Li [210225 10:55]: > In one of the error paths of the for_each_child_of_node() loop, > add missing call to of_node_put(). Thanks applying into omap-for-v5.13/soc. Tony

[PATCH V3] workqueue/watchdog: Make unbound workqueues aware of

2021-03-24 Thread Wang Qing
There are two workqueue-specific watchdog timestamps: + @wq_watchdog_touched_cpu (per-CPU) updated by touch_softlockup_watchdog() + @wq_watchdog_touched (global) updated by touch_all_softlockup_watchdogs() watchdog_timer_fn() checks only the global @wq_watchdog_touched for un

Re: [PATCH -next] x86: Fix unused variable 'hi'

2021-03-24 Thread Wei Liu
On Tue, Mar 23, 2021 at 11:32:50AM +, Wei Liu wrote: > On Tue, Mar 23, 2021 at 10:50:13AM +0800, Xu Yihang wrote: > > Fixes the following W=1 kernel build warning(s): > > arch/x86/hyperv/hv_apic.c:58:15: warning: variable ‘hi’ set but not used > > [-Wunused-but-set-variable] > > > > Compiled

Re: [PATCH RESEND] PCI: dwc: put struct dw_pcie::{ep,pp} into a union to reduce its size

2021-03-24 Thread Alexander Lobakin
From: Krzysztof Wilczyński Date: Wed, 24 Mar 2021 02:31:42 +0100 > Hi Alexander, Hi! > Thank you for sending the patch over! > > > A single dw_pcie entity can't be a root complex and an endpoint at > > the same time. > > Nice catch! > > A small nitpick: this would be Root Complex and Endpoint,

Re: [syzbot] possible deadlock in scheduler_tick

2021-03-24 Thread Wanpeng Li
Cc David Woodhouse, On Wed, 24 Mar 2021 at 18:11, syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:1c273e10 Merge tag 'zonefs-5.12-rc4' of git://git.kernel.o.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=13c0414ed0

Re: [PATCH v5] x86/Hyper-V: Support for free page reporting

2021-03-24 Thread Wei Liu
On Tue, Mar 23, 2021 at 06:47:16PM +, Sunil Muthuswamy wrote: > Linux has support for free page reporting now (36e66c554b5c) for > virtualized environment. On Hyper-V when virtually backed VMs are > configured, Hyper-V will advertise cold memory discard capability, > when supported. This patch

Re: [RFC PATCH 2/2] integrity: double check iint_cache was initialized

2021-03-24 Thread Dmitry Vyukov
On Wed, Mar 24, 2021 at 12:21 PM Tetsuo Handa wrote: > > On 2021/03/24 20:10, Mimi Zohar wrote: > > On Wed, 2021-03-24 at 19:10 +0900, Tetsuo Handa wrote: > >> On 2021/03/24 1:13, Mimi Zohar wrote: > >>> On Wed, 2021-03-24 at 00:14 +0900, Tetsuo Handa wrote: > On 2021/03/23 23:47, Mimi Zohar

Re: [PATCH v5 1/2] platform/x86: dell-privacy: Add support for Dell hardware privacy

2021-03-24 Thread Hans de Goede
Hi, On 3/24/21 12:19 PM, Hans de Goede wrote: > Hi, > > On 3/22/21 10:38 AM, Perry Yuan wrote: >> From: Perry Yuan >> >> add support for Dell privacy driver for the Dell units equipped >> hardware privacy design, which protect users privacy of audio and >> camera from hardware level. Once the au

[tip:ras/core] BUILD SUCCESS 2ffdc2c34421561c12f843e497dd7ce898478c0f

2021-03-24 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ras/core branch HEAD: 2ffdc2c34421561c12f843e497dd7ce898478c0f x86/mce/inject: Add IPID for injection too elapsed time: 721m configs tested: 92 configs skipped: 69 The following configs have been built successfully. More

[PATCH V3,RESEND] workqueue/watchdog: Make unbound workqueues aware of touch_softlockup_watchdog()

2021-03-24 Thread Wang Qing
There are two workqueue-specific watchdog timestamps: + @wq_watchdog_touched_cpu (per-CPU) updated by touch_softlockup_watchdog() + @wq_watchdog_touched (global) updated by touch_all_softlockup_watchdogs() watchdog_timer_fn() checks only the global @wq_watchdog_touched for un

Re: [PATCH v2] sched: Warn on long periods of pending need_resched

2021-03-24 Thread Mel Gorman
On Wed, Mar 24, 2021 at 11:54:24AM +0100, Peter Zijlstra wrote: > On Wed, Mar 24, 2021 at 10:37:43AM +0100, Peter Zijlstra wrote: > > Should we perhaps take out all SCHED_DEBUG sysctls and move them to > > /debug/sched/ ? (along with the existing > > /debug/sched_{debug,features,preemp} > > files)

Re: [PATCH net-next 0/6] page_pool: recycle buffers

2021-03-24 Thread Alexander Lobakin
From: Ilias Apalodimas Date: Wed, 24 Mar 2021 09:50:38 +0200 > Hi Alexander, Hi! > On Tue, Mar 23, 2021 at 08:03:46PM +, Alexander Lobakin wrote: > > From: Ilias Apalodimas > > Date: Tue, 23 Mar 2021 19:01:52 +0200 > > > > > On Tue, Mar 23, 2021 at 04:55:31PM +, Alexander Lobakin wrote

Re: [PATCH -next] bus: ti-sysc: Use kzalloc for allocating only one thing

2021-03-24 Thread Tony Lindgren
* Zheng Yongjun [201229 15:51]: > Use kzalloc rather than kcalloc(1,...) Thanks applying into omap-for-v5.13/ti-sysc. Tony

Re: [RFC PATCH 2/2] integrity: double check iint_cache was initialized

2021-03-24 Thread Mimi Zohar
On Wed, 2021-03-24 at 12:37 +0100, Dmitry Vyukov wrote: > On Wed, Mar 24, 2021 at 12:21 PM Tetsuo Handa > wrote: > > > > On 2021/03/24 20:10, Mimi Zohar wrote: > > > On Wed, 2021-03-24 at 19:10 +0900, Tetsuo Handa wrote: > > >> On 2021/03/24 1:13, Mimi Zohar wrote: > > >>> On Wed, 2021-03-24 at 00

Re: [RESEND 1/1] arch: arm: mach-at91: pm: Move prototypes to mutually included header

2021-03-24 Thread Linus Walleij
On Wed, Mar 3, 2021 at 4:50 PM Lee Jones wrote: > On Wed, 03 Mar 2021, Alexandre Belloni wrote: > > On 03/03/2021 12:41:49+, Lee Jones wrote: > > > Both the caller and the supplier's source file should have access to > > > the include file containing the prototypes. > > > > > > Fixes the follo

Re: [PATCH v2 2/2] mfd: intel_quark_i2c_gpio: enable MSI interrupt

2021-03-24 Thread Lee Jones
On Wed, 24 Mar 2021, Andy Shevchenko wrote: > On Wed, Mar 24, 2021 at 10:47:29AM +, Lee Jones wrote: > > On Wed, 24 Mar 2021, Andy Shevchenko wrote: > > > On Wed, Mar 24, 2021 at 10:29:31AM +, Lee Jones wrote: > > > > On Tue, 23 Mar 2021, Andy Shevchenko wrote: > > ... > > > Also, past a

Re: [PATCH 2/2] arm64: print alloc free paths for address in registers

2021-03-24 Thread Mark Rutland
Hi, On Wed, Mar 24, 2021 at 12:24:59PM +0530, Maninder Singh wrote: > In case of a use after free kernel OOPs, freed path of the object is > required to debug futher. In most of cases the object address is present > in one of the registers. > > Thus check the register's address and if it belongs

Re: [RFC PATCH 2/2] integrity: double check iint_cache was initialized

2021-03-24 Thread Dmitry Vyukov
On Wed, Mar 24, 2021 at 12:49 PM Mimi Zohar wrote: > > On Wed, 2021-03-24 at 12:37 +0100, Dmitry Vyukov wrote: > > On Wed, Mar 24, 2021 at 12:21 PM Tetsuo Handa > > wrote: > > > > > > On 2021/03/24 20:10, Mimi Zohar wrote: > > > > On Wed, 2021-03-24 at 19:10 +0900, Tetsuo Handa wrote: > > > >> On

Re: [PATCH 1/2] ARM: dts: am335x-pocketbeagle: unique gpio-line-names

2021-03-24 Thread Tony Lindgren
Hi, * Drew Fustini [210127 02:04]: > Based on linux-gpio discussion [1], it is best practice to make the > gpio-line-names unique. Generic names like "[ethernet]" are replaced > with the name of the unique signal on the AM3358 SoC ball corresponding > to the gpio line. "[NC]" is also renamed to t

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-24 Thread Michal Hocko
On Wed 24-03-21 11:12:59, Oscar Salvador wrote: > On Tue, Mar 23, 2021 at 11:11:58AM +0100, Michal Hocko wrote: > > [Sorry for a long overdue review. I didn't have time to follow previous > > versions so I am sorry if some of my concerns have been discussed > > already] > > No worries, let's go ;-

Re: [PATCH 1/2] ARM: dts: omap3-echo: Update LED configuration

2021-03-24 Thread Tony Lindgren
* André Hentschel [210130 14:29]: > Changes made in 54212f5a1ba3123281877e54c1e5f672bf7563d8 and previous commits > broke with the way > the LED drivers were described in device-trees before. These adjustments fix > that. Thanks applying both into omap-for-v5.13/dt. Tony

Re: [PATCH -next] applicom: fix some err codes returned by ac_ioctl

2021-03-24 Thread Arnd Bergmann
On Wed, Mar 24, 2021 at 8:20 AM Xu Jia wrote: > > When cmd > 6 or copy_to_user() fail, The variable 'ret' would not be > returned back. Fix the 'ret' set but not used. > > Signed-off-by: Xu Jia Reviewed-by: Arnd Bergmann > diff --git a/drivers/char/applicom.c b/drivers/char/applicom.c > index

Re: [PATCH 8/8] videobuf2: handle non-contiguous DMA allocations

2021-03-24 Thread Tomasz Figa
On Tue, Mar 02, 2021 at 09:46:24AM +0900, Sergey Senozhatsky wrote: > This adds support for new noncontiguous DMA API, which > requires allocators to have two execution branches: one > for the current API, and one for the new one. > > Signed-off-by: Sergey Senozhatsky > [hch: untested conversion

Re: [RESEND PATCH] ARM: dts: am33xx-l4: fix tscadc@0 node indentation

2021-03-24 Thread Tony Lindgren
* Dario Binacchi [210314 17:17]: > Fix the broken indentation of tscadc@0 node. Applying into omap-for-v5.13/dt thanks. Tony

Re: [PATCH 0/8] videobuf2: support new noncontiguous DMA API

2021-03-24 Thread Tomasz Figa
Hi Sergey, On Tue, Mar 02, 2021 at 09:46:16AM +0900, Sergey Senozhatsky wrote: > Hello, > > RFC > > The series adds support for new noncontiguous DMA API [0] and > adds V4L2_FLAG_MEMORY_NON_COHERENT UAPI. This is similar to previous > V4L2_FLAG_MEMORY_NON_CONSISTENT (which was rename

Re: [PATCH v2 3/4] ARM: dts: am33xx-clocks: add spread spectrum support

2021-03-24 Thread Tony Lindgren
* Dario Binacchi [210318 17:28]: > Registers for adjusting the spread spectrum clocking (SSC) have been > added. As reported by the TI spruh73x RM, SSC is supported only for > LCD and MPU PLLs. Probably best to keep the series together: Acked-by: Tony Lindgren

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-24 Thread Michal Hocko
On Wed 24-03-21 13:03:29, Michal Hocko wrote: > On Wed 24-03-21 11:12:59, Oscar Salvador wrote: [...] an additional remark > > - online_pages()->move_pfn_range_to_zone(): Accounts for node/zone's > > spanned pages > > - online_pages()->zone->present_pages += nr_pages; I am pretty sure you shoul

Re: [PATCH] riscv: locks: introduce ticket-based spinlock implementation

2021-03-24 Thread Guo Ren
Thx Peter, On Wed, Mar 24, 2021 at 7:09 PM Peter Zijlstra wrote: > > On Wed, Mar 24, 2021 at 10:14:52AM +, guo...@kernel.org wrote: > > +static inline void arch_spin_lock(arch_spinlock_t *lock) > > +{ > > + arch_spinlock_t lockval; > > + u32 tmp; > > + > > + asm volatile ( > > +

Re: [PATCH] ARM: OMAP2+: use true and false for bool variable

2021-03-24 Thread Tony Lindgren
* Yang Li [210315 09:06]: > fixed the following coccicheck: > ./arch/arm/mach-omap2/powerdomain.c:1205:9-10: WARNING: return of 0/1 in > function 'pwrdm_can_ever_lose_context' with return type bool Thanks applying into omap-for-v5.13/soc. Tony

[gustavoars-linux:testing/warray-bounds] BUILD SUCCESS WITH WARNING 5d3f70f94229a766343a736bcfd026f8126ccb2f

2021-03-24 Thread kernel test robot
-with-type-struct-DInfo-at-offset | `-- fs-hfsplus-xattr.c:warning:memcpy-offset-from-the-object-at-entry-is-out-of-the-bounds-of-referenced-subobject-user_info-with-type-struct-FInfo-at-offset |-- i386-allmodconfig | |-- include-linux-fortify-string.h:warning:__builtin_memcpy-offset-from-th

Re: [PATCH v2] sched: Warn on long periods of pending need_resched

2021-03-24 Thread Peter Zijlstra
On Wed, Mar 24, 2021 at 11:42:24AM +, Mel Gorman wrote: > On Wed, Mar 24, 2021 at 11:54:24AM +0100, Peter Zijlstra wrote: > > On Wed, Mar 24, 2021 at 10:37:43AM +0100, Peter Zijlstra wrote: > > > Should we perhaps take out all SCHED_DEBUG sysctls and move them to > > > /debug/sched/ ? (along wi

[PATCH v2 0/2] support sign module with SM2-with-SM3 algorithm

2021-03-24 Thread Tianjia Zhang
The kernel module signature supports the option to use the SM3 secure hash (OSCCA GM/T 0004-2012 SM3). SM2 and SM3 always appear in pairs. The former is used for signing and the latter is used for hash calculation. To sign a kernel module, first, prepare openssl 3.0.0 alpha6 and a configuration fi

[PATCH v2 1/2] pkcs7: make parser enable SM2 and SM3 algorithms combination

2021-03-24 Thread Tianjia Zhang
Support parsing the message signature of the SM2 and SM3 algorithm combination. This group of algorithms has been well supported. One of the main users is module signature verification. Signed-off-by: Tianjia Zhang --- crypto/asymmetric_keys/pkcs7_parser.c | 7 +++ 1 file changed, 7 insertio

[PATCH v2 2/2] init/Kconfig: support sign module with SM2-with-SM3 algorithm

2021-03-24 Thread Tianjia Zhang
The kernel module signature supports the option to use the SM3 secure hash (OSCCA GM/T 0004-2012 SM3). SM2 and SM3 always appear in pairs. The former is used for signing and the latter is used for hash calculation. To sign a kernel module, first, prepare a configuration file openssl.cnf with the f

Re: [PATCH v4 1/3] pinctrl: pinctrl-single: remove unused variable

2021-03-24 Thread Tony Lindgren
* Hanna Hawa [700101 02:00]: > Remove unused parameter 'num_pins_in_register' from > pcs_allocate_pin_table(). Reviewed-by: Tony Lindgren

Re: [PATCH v4 2/3] pinctrl: pinctrl-single: remove unused parameter

2021-03-24 Thread Tony Lindgren
* Hanna Hawa [700101 02:00]: > Remove unused parameter 'pin_pos' from pcs_add_pin(). Reviewed-by: Tony Lindgren

Re: [syzbot] possible deadlock in kvm_synchronize_tsc

2021-03-24 Thread Paolo Bonzini
On 24/03/21 08:24, syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:1c273e10 Merge tag 'zonefs-5.12-rc4' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1063d14ed0 kernel config: https://syzkaller.appspot.c

Re: [RFC PATCH 2/2] integrity: double check iint_cache was initialized

2021-03-24 Thread Mimi Zohar
On Wed, 2021-03-24 at 12:58 +0100, Dmitry Vyukov wrote: > On Wed, Mar 24, 2021 at 12:49 PM Mimi Zohar wrote: > > > > On Wed, 2021-03-24 at 12:37 +0100, Dmitry Vyukov wrote: > > > On Wed, Mar 24, 2021 at 12:21 PM Tetsuo Handa > > > wrote: > > > > > > > > On 2021/03/24 20:10, Mimi Zohar wrote: > >

[PATCH v1 1/1] dmaengine: dw: Make it dependent to HAVE_IOMEM

2021-03-24 Thread Andy Shevchenko
Some architectures do not provide devm_*() APIs. Hence make the driver dependent on HAVE_IOMEM. Fixes: dbde5c2934d1 ("dw_dmac: use devm_* functions to simplify code") Reported-by: kernel test robot Signed-off-by: Andy Shevchenko --- drivers/dma/dw/Kconfig | 2 ++ 1 file changed, 2 insertions(+)

[PATCH] intel/pinctrl: check capability offset is between MMIO region

2021-03-24 Thread Roger Pau Monne
When parsing the capability list make sure the offset is between the MMIO region mapped in 'regs', or else the kernel hits a page fault. This fault has been seen when running as a Xen PVH dom0, which doesn't have the MMIO regions mapped into the domain physical memory map, despite having the devic

Re: [PATCH v4 3/3] pinctrl: pinctrl-single: fix pcs_pin_dbg_show() when bits_per_mux is not zero

2021-03-24 Thread Tony Lindgren
* Hanna Hawa [700101 02:00]: > A System Error (SError, followed by kernel panic) was detected when > trying to print the supported pins in a pinctrl device which supports > multiple pins per register. This change fixes the pcs_pin_dbg_show() in > pinctrl-single driver when bits_per_mux is not zero

[PATCH] [v2] drm/imx: imx-ldb: fix out of bounds array access warning

2021-03-24 Thread Arnd Bergmann
From: Arnd Bergmann When CONFIG_OF is disabled, building with 'make W=1' produces warnings about out of bounds array access: drivers/gpu/drm/imx/imx-ldb.c: In function 'imx_ldb_set_clock.constprop': drivers/gpu/drm/imx/imx-ldb.c:186:8: error: array subscript -22 is below array bounds of 'struct

[PATCH v4] phy: zynqmp: Handle the clock enable/disable properly

2021-03-24 Thread Manish Narani
The current driver is not handling the clock enable/disable operations properly. The clocks need to be handled correctly by enabling or disabling at appropriate places. This patch adds code to handle the same. Signed-off-by: Manish Narani Reviewed-by: Laurent Pinchart --- drivers/phy/xilinx/phy

Re: [PATCH v7 1/3] usb: dwc3: qcom: Add missing DWC3 OF node refcount decrement

2021-03-24 Thread Serge Semin
Hi Greg, On Tue, Mar 23, 2021 at 12:29:17PM +0100, Greg Kroah-Hartman wrote: > On Thu, Feb 18, 2021 at 06:40:51PM +0300, Serge Semin wrote: > > On Thu, Feb 18, 2021 at 04:32:29PM +0100, Greg Kroah-Hartman wrote: > > > On Thu, Feb 18, 2021 at 06:29:04PM +0300, Serge Semin wrote: > > > > Bjorn, Greg

Re: [syzbot] possible deadlock in scheduler_tick

2021-03-24 Thread Paolo Bonzini
On 24/03/21 12:34, Wanpeng Li wrote: Cc David Woodhouse, On Wed, 24 Mar 2021 at 18:11, syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:1c273e10 Merge tag 'zonefs-5.12-rc4' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com

[PATCH 1/2] PCI: keystone: Set mode as RootComplex for "ti,keystone-pcie" compatible

2021-03-24 Thread Kishon Vijay Abraham I
commit 23284ad677a9 ("PCI: keystone: Add support for PCIe EP in AM654x Platforms") introduced configuring "enum dw_pcie_device_mode" as part of device data ("struct ks_pcie_of_data"). However it failed to set mode for "ti,keystone-pcie" compatible. Set mode as RootComplex for "ti,keystone-pcie" com

[PATCH 0/2] PCI: Fixes in pci-keystone driver

2021-03-24 Thread Kishon Vijay Abraham I
Patch series includes a couple of fixes in pci-keystone driver for issues seen when testing Root Complex mode in K2G driver. Kishon Vijay Abraham I (2): PCI: keystone: Set mode as RootComplex for "ti,keystone-pcie" compatible PCI: keystone: Add link up check in ks_child_pcie_ops.map_bus()

[PATCH 2/2] PCI: keystone: Add link up check in ks_child_pcie_ops.map_bus()

2021-03-24 Thread Kishon Vijay Abraham I
K2G forwardS the error triggered by a link-down state (e.g., no connected endpoint device) on the system bus for PCI configuration transactions; these errors are reported as an SError at system level, which is fatal and hangs the system. So fix it similar to how it was done in designware core drive

Re: [PATCH 1/2] net: ipv4: route.c: add likely() statements

2021-03-24 Thread Leon Romanovsky
On Wed, Mar 24, 2021 at 07:01:19PM +0800, Yejune Deng wrote: > My reasons are as following: ipv4_confirm_neigh() belongs to > ipv4_dst_ops that family is AF_INET, and ipv4_neigh_lookup() is also > added likely() when rt->rt_gw_family is equal to AF_INET. It is part of that cargo cult. Please suppo

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