Re: [RFC PATCH] z3fold: prevent reclaim/free race for headless pages

2021-02-16 Thread Greg Kroah-Hartman
On Tue, Feb 16, 2021 at 02:04:20AM -0800, Tom Hebb wrote: > On Tue, Feb 16, 2021 at 1:21 AM Greg Kroah-Hartman > wrote: > > > > On Tue, Feb 16, 2021 at 12:44:40AM -0800, Thomas Hebb wrote: > > > commit ca0246bb97c2 ("z3fold: fix possible reclaim races") introduced > > > the PAGE_CLAIMED flag "to a

Re: [PATCH v1 1/4] PCI: Introduce pcim_alloc_irq_vectors()

2021-02-16 Thread Andy Shevchenko
On Mon, Feb 15, 2021 at 09:55:06PM +0100, Krzysztof Wilczyński wrote: > Question: wouldn't you need to call pci_free_irq_vectors() somewhere, > possibly to pcim_release() callback? Although, I am not sure where the > right place would be. > > I am asking, as the documentation (see [4]) suggests

[PATCH] USB: core: no need to save usb_devices_root

2021-02-16 Thread Greg Kroah-Hartman
There is no need to save the usb_devices debugfs file as we only need it when removing it, so have the debugfs code look it up when it is needed instead, saving the storage. Signed-off-by: Greg Kroah-Hartman --- drivers/usb/core/usb.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-)

Re: [PATCH] mutex: nuke mutex_trylock_recursive

2021-02-16 Thread Peter Zijlstra
On Tue, Feb 16, 2021 at 10:29:00AM +0100, Daniel Vetter wrote: > On Tue, Feb 16, 2021 at 09:21:46AM +0100, Christian König wrote: > > The last user went away in the 5.11 cycle. > > > > Signed-off-by: Christian König > > Nice. > > Reviewed-by: Daniel Vetter > > I think would be good to still s

Re: smpboot: CPU numbers printed as warning

2021-02-16 Thread Borislav Petkov
On Tue, Feb 16, 2021 at 10:49:04AM +0100, Petr Mladek wrote: > Also you should add '\n' into the previous string to make the behavior > clear. It will always be printed on a new line when pr_info() > is used. This was made to use pr_cont() on purpose so that the output is compact, for example: [

[PATCH] RTIC: selinux: ARM64: Move selinux_state to a separate page

2021-02-16 Thread Preeti Nagar
The changes introduce a new security feature, RunTime Integrity Check (RTIC), designed to protect Linux Kernel at runtime. The motivation behind these changes is: 1. The system protection offered by Security Enhancements(SE) for Android relies on the assumption of kernel integrity. If the kernel it

Re: [PATCH v2 23/25] tty: serial: samsung_tty: Add earlycon support for Apple UARTs

2021-02-16 Thread Arnd Bergmann
On Mon, Feb 15, 2021 at 8:19 PM Krzysztof Kozlowski wrote: > On Mon, Feb 15, 2021 at 09:17:11PM +0900, Hector Martin wrote: > > + > > +/* Apple S5L */ > > +static int __init apple_s5l_early_console_setup(struct earlycon_device > > *device, > > + const

[PATCH v8 4/4] drm: Remove drm_get_format_name()

2021-02-16 Thread Sakari Ailus
The %p4cc printk format modifier was recently added to print fourcc codes, replacing drm_get_format_name(). The function is no longer needed, so remove it. Signed-off-by: Sakari Ailus Reviewed-by: Petr Mladek Reviewed-by: Andy Shevchenko --- drivers/gpu/drm/drm_fourcc.c | 25 --

[PATCH v8 2/4] v4l: ioctl: Use %p4cc printk modifier to print FourCC codes

2021-02-16 Thread Sakari Ailus
Now that we can print FourCC codes directly using printk, make use of the feature in V4L2 core. Signed-off-by: Sakari Ailus Acked-by: Mauro Carvalho Chehab Reviewed-by: Petr Mladek Reviewed-by: Andy Shevchenko --- drivers/media/v4l2-core/v4l2-ioctl.c | 85 +++- 1 file

[PATCH v8 1/4] lib/vsprintf: Add support for printing V4L2 and DRM fourccs

2021-02-16 Thread Sakari Ailus
Add a printk modifier %p4cc (for pixel format) for printing V4L2 and DRM pixel formats denoted by fourccs. The fourcc encoding is the same for both so the same implementation can be used. Suggested-by: Mauro Carvalho Chehab Signed-off-by: Sakari Ailus Reviewed-by: Petr Mladek Reviewed-by: Serge

[PATCH v8 3/4] drm: Switch to %p4cc format modifier

2021-02-16 Thread Sakari Ailus
Switch DRM drivers from drm_get_format_name() to %p4cc. This gets rid of a large number of temporary variables at the same time. Signed-off-by: Sakari Ailus Reviewed-by: Petr Mladek Reviewed-by: Andy Shevchenko Acked-by: Thomas Zimmermann --- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c| 5

[PATCH v8 0/4] Add %p4cc printk modifier for V4L2 and DRM fourcc codes

2021-02-16 Thread Sakari Ailus
Hi all, On merging --- it would seem everyone is happy with merging this through the drm-misc tree. The last patch should wait until all users are gone for sure, probably to the next kernel release. There are no users of drm_get_format_name() in linux-next c

Re: [RFC PATCH 01/13] futex2: Implement wait and wake functions

2021-02-16 Thread Sebastian Andrzej Siewior
On 2021-02-16 10:56:14 [+0100], Peter Zijlstra wrote: > So while I'm in favour of adding a new interface, I'm not sure I see > benefit of reimplementing the basics, sure it seems simpler now, but > that's because you've not implemented all the 'fun' stuff. The last attempt tried to hide the update

Re: [PATCH v2 23/25] tty: serial: samsung_tty: Add earlycon support for Apple UARTs

2021-02-16 Thread Krzysztof Kozlowski
On Tue, 16 Feb 2021 at 11:19, Arnd Bergmann wrote: > > > + return samsung_early_console_setup(device, opt); > > > > Don't you need to handle the error code - set PROT_DEFAULT() or whatever > > was there before? > > __set_fixmap() has no return value, it just writes a page table entry and > doe

Re: [PATCH v5 1/1] iio/scmi: Adding support for IIO SCMI Based Sensors

2021-02-16 Thread Cristian Marussi
Hi Jyoti, On Mon, Feb 15, 2021 at 04:14:57PM -0800, Jyoti Bhayana wrote: > Hi Jonathan/Cristian, > > I have uploaded v6 of the IIO SCMI patch. Not sure if you got a chance to > review that version and if any further changes are needed. Seen that, for the SCMI part seemed fine to me, I'll just ha

Re: [PATCH V3 08/14] coresight: core: Add support for dedicated percpu sinks

2021-02-16 Thread Anshuman Khandual
On 1/28/21 2:46 PM, Suzuki K Poulose wrote: > On 1/27/21 8:55 AM, Anshuman Khandual wrote: >> Add support for dedicated sinks that are bound to individual CPUs. (e.g, >> TRBE). To allow quicker access to the sink for a given CPU bound source, >> keep a percpu array of the sink devices. Also, add

Re: [PATCH v14 2/4] phy: Add media type and speed serdes configuration interfaces

2021-02-16 Thread Kishon Vijay Abraham I
Hi, On 16/02/21 2:07 pm, Steen Hegelund wrote: > Hi Andrew and Kishon, > > On Mon, 2021-02-15 at 15:07 +0100, Andrew Lunn wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you >> know the content is safe >> >> On Mon, Feb 15, 2021 at 05:25:10PM +0530, Kishon Vijay Abraham I

Re: [PATCH 04/33] vfs: Export rw_verify_area() for use by cachefiles

2021-02-16 Thread Christoph Hellwig
On Mon, Feb 15, 2021 at 03:45:01PM +, David Howells wrote: > Export rw_verify_area() for so that cachefiles can use it before issuing > call_read_iter() and call_write_iter() to effect async DIO operations > against the cache. This is analogous to aio_read() and aio_write(). I don't think thi

Re: [PATCH 02/33] mm: Add an unlock function for PG_private_2/PG_fscache

2021-02-16 Thread Christoph Hellwig
> +extern void unlock_page_private_2(struct page *page); No need for the extern. Otherwise this looks good: Reviewed-by: Christoph Hellwig

Re: [PATCH v3] auxdisplay: Remove in_interrupt() usage.

2021-02-16 Thread Sebastian Andrzej Siewior
On 2021-02-16 10:32:15 [+0100], Miguel Ojeda wrote: > Hi Sebastian, Hi, > On Sat, Feb 13, 2021 at 5:50 PM Sebastian Andrzej Siewior > wrote: > > > > charlcd_write() is invoked as a VFS->write() callback and as such it is > > always invoked from preemptible context and may sleep. > > Can we put t

Re: [PATCH v2 23/25] tty: serial: samsung_tty: Add earlycon support for Apple UARTs

2021-02-16 Thread Arnd Bergmann
On Tue, Feb 16, 2021 at 11:20 AM Krzysztof Kozlowski wrote: > > On Tue, 16 Feb 2021 at 11:19, Arnd Bergmann wrote: > > > > + return samsung_early_console_setup(device, opt); > > > > > > Don't you need to handle the error code - set PROT_DEFAULT() or whatever > > > was there before? > > > > __

[PATCH v3] perf probe: fix kretprobe issue caused by GCC bug

2021-02-16 Thread Jianlin Lv
Perf failed to add kretprobe event with debuginfo of vmlinux which is compiled by gcc with -fpatchable-function-entry option enabled. The same issue with kernel module. Issue: # perf probe -v 'kernel_clone%return $retval' .. Writing event: r:probe/kernel_clone__return _text+599624 $ret

Re: [PATCH 03/33] mm: Implement readahead_control pageset expansion

2021-02-16 Thread Christoph Hellwig
On Mon, Feb 15, 2021 at 03:44:52PM +, David Howells wrote: > Provide a function, readahead_expand(), that expands the set of pages > specified by a readahead_control object to encompass a revised area with a > proposed size and length. > > The proposed area must include all of the old area and

Re: Pending patches for linux-sh

2021-02-16 Thread John Paul Adrian Glaubitz
Hi Rich! Any chance we can get these patches (see below) merged for 5.12? And let's add this one: > - [PATCH] scripts/recordmcount.pl: support big endian for ARCH sh > - https://marc.info/?l=linux-sh&m=161296964604229&w=2 Adrian Adrian On 1/24/21 11:07 PM, John Paul Adrian Glaubitz wrote: > H

[PATCH v2 0/3] cpu/hotplug: rollback and "fail" interface fixes

2021-02-16 Thread vincent . donnefort
From: Vincent Donnefort This patch-set intends to unify steps call throughout hotplug and hotunplug. It also improves the "fail" interface, which can now be reset and will reject states for which a failure can't be recovered. v2: - Reject all DEAD steps in the fail interface. - Do not try t

[PATCH v2 2/3] cpu/hotplug: CPUHP_BRINGUP_CPU failure exception

2021-02-16 Thread vincent . donnefort
From: Vincent Donnefort The atomic states (between CPUHP_AP_IDLE_DEAD and CPUHP_AP_ONLINE) are triggered by the CPUHP_BRINGUP_CPU step. If the latter fails, no atomic state can be rolled back. DEAD callbacks too can't fail and disallow recovery. As a consequence, during hotunplug, the fail injec

[PATCH v2 1/3] cpu/hotplug: Allowing to reset fail injection

2021-02-16 Thread vincent . donnefort
From: Vincent Donnefort Currently, the only way of resetting the fail injection is to trigger a hotplug, hotunplug or both. This is rather annoying for testing and, as the default value for this file is -1, it seems pretty natural to let a user write it. Signed-off-by: Vincent Donnefort diff -

Re: [RFC PATCH 0/5] running kernel mode SIMD with softirqs disabled

2021-02-16 Thread Ard Biesheuvel
On Tue, 16 Feb 2021 at 11:10, Peter Zijlstra wrote: > > On Fri, Dec 18, 2020 at 06:01:01PM +0100, Ard Biesheuvel wrote: > > [ TL;DR for the non-ARM folks on CC: disabling softirq processing when using > > SIMD in kernel mode could reduce complexity and improve performance, but > > we > > need

[PATCH v2 3/3] cpu/hotplug: Add cpuhp_invoke_callback_range()

2021-02-16 Thread vincent . donnefort
From: Vincent Donnefort Factorizing and unifying cpuhp callback range invocations, especially for the hotunplug path, where two different ways of decrementing were used. The first one, decrements before the callback is called: cpuhp_thread_fun() state = st->state; st->state--; cp

Re: smpboot: CPU numbers printed as warning

2021-02-16 Thread Paul Menzel
Dear Petr, Thank you for the quick reply. Am 16.02.21 um 10:49 schrieb Petr Mladek: On Mon 2021-02-15 20:22:34, Paul Menzel wrote: Using Linux 5.10.13 (and before), looking at the Linux kernel warnings, the CPU numbers show up. For example with 12 cpus/threads: ``` $ sudo dmesg --level=wa

Re: [tip: sched/core] sched,x86: Allow !PREEMPT_DYNAMIC

2021-02-16 Thread Peter Zijlstra
On Wed, Feb 10, 2021 at 03:18:38PM +0100, Frederic Weisbecker wrote: > Also should we add something like this? I suppose we can do that, but I'd rather have actual numbers to go with it, I don't think the trampolines are really that terrible. > From: Frederic Weisbecker > Date: Wed, 10 Feb 2021

Re: [PATCH V7 6/6] of: unittest: Statically apply overlays using fdtoverlay

2021-02-16 Thread Viresh Kumar
On 09-02-21, 15:40, Viresh Kumar wrote: > And after decent amount of effort understanding how to do this, I > finally did it in a not so efficient way, I am sure you can help > improving it :) Ping! Also, where do we send patches for dt-schema ? Which list ? > Author: Viresh Kumar > Date: Tue

Re: [PATCH V3 08/14] coresight: core: Add support for dedicated percpu sinks

2021-02-16 Thread Anshuman Khandual
On 2/5/21 12:04 AM, Mathieu Poirier wrote: > On Thu, Jan 28, 2021 at 09:16:34AM +, Suzuki K Poulose wrote: >> On 1/27/21 8:55 AM, Anshuman Khandual wrote: >>> Add support for dedicated sinks that are bound to individual CPUs. (e.g, >>> TRBE). To allow quicker access to the sink for a given C

Re: [RFC][PATCH 1/3] PM /devfreq: add user frequency limits into devfreq struct

2021-02-16 Thread Lukasz Luba
Hi Chanwoo, On 2/15/21 3:00 PM, Chanwoo Choi wrote: Hi Lukasz, On Fri, Feb 12, 2021 at 7:28 AM Lukasz Luba wrote: On 2/11/21 11:07 AM, Lukasz Luba wrote: Hi Chanwoo, On 2/3/21 10:21 AM, Lukasz Luba wrote: Hi Chanwoo, Thank you for looking at this. On 2/3/21 10:11 AM, Chanwoo Choi wrot

Re: [PATCH mvebu v2 00/10] Armada 37xx: Fix cpufreq changing base CPU speed to 800 MHz from 1000 MHz

2021-02-16 Thread Pali Rohár
On Monday 15 February 2021 21:48:08 nnet wrote: > > Could you test following change instead of PATCH 04/10? I added here also > > logic for 1.2 GHz variant with 1.132 V value another change is that > > value for load L0 is not touched as it is stable. > > These changes to patch 04/10 worked going

Re: [PATCH v2 4/4] perf tools: determine if LR is the return address

2021-02-16 Thread Alexandre Truong
Hi, This patch is supposed to be a v3, I did a rebase. Thanks, Alexandre On 2/12/21 5:03 PM, Alexandre Truong wrote: On arm64 and frame pointer mode (e.g: perf record --callgraph fp), use dwarf unwind info to check if the link register is the return address in order to inject it to the frame

Re: [PATCH 14/33] fscache, cachefiles: Add alternate API to use kiocb for read/write to cache

2021-02-16 Thread Christoph Hellwig
On Mon, Feb 15, 2021 at 03:47:00PM +, David Howells wrote: > Add an alternate API by which the cache can be accessed through a kiocb, > doing async DIO, rather than using the current API that tells the cache > where all the pages are. > > The new API is intended to be used in conjunction with

Re: [PATCH net-next v2 1/3] net: phy: mscc: adding LCPLL reset to VSC8514

2021-02-16 Thread Bjarni.Jonasson
On Mon, 2021-02-15 at 18:25 +0100, Heiner Kallweit wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > On 15.02.2021 17:57, Bjarni Jonasson wrote: > > At Power-On Reset, transients may cause the LCPLL to lock onto a > > clock that is momentaril

Re: [PATCH v2 23/25] tty: serial: samsung_tty: Add earlycon support for Apple UARTs

2021-02-16 Thread Hector Martin
On 16/02/2021 19.29, Arnd Bergmann wrote: On Tue, Feb 16, 2021 at 11:20 AM Krzysztof Kozlowski wrote: On Tue, 16 Feb 2021 at 11:19, Arnd Bergmann wrote: + return samsung_early_console_setup(device, opt); Don't you need to handle the error code - set PROT_DEFAULT() or whatever was there

Re: [PATCH v2 10/25] asm-generic/io.h: Add a non-posted variant of ioremap()

2021-02-16 Thread Christoph Hellwig
Your new iomremap variant needs proper documentation explaining the semantics in detail.

Re: [PATCH v8 3/4] drm: Switch to %p4cc format modifier

2021-02-16 Thread Andy Shevchenko
On Tue, Feb 16, 2021 at 12:19:30PM +0200, Sakari Ailus wrote: > Switch DRM drivers from drm_get_format_name() to %p4cc. This gets rid of a > large number of temporary variables at the same time. ... > - seq_printf(m, "\t\tuapi: [FB:%d] %s,0x%llx,%dx%d, visible=%s, src=" > DRM_RECT_FP_FMT ",

Re: [PATCH net-next v2 2/3] net: phy: mscc: improved serdes calibration applied to VSC8514

2021-02-16 Thread Bjarni.Jonasson
On Mon, 2021-02-15 at 18:27 +0100, Heiner Kallweit wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > On 15.02.2021 17:57, Bjarni Jonasson wrote: > > The current IB serdes calibration algorithm (performed by the > > onboard 8051) > > has prove

Re: [PATCH V3 13/14] perf: aux: Add flags for the buffer format

2021-02-16 Thread Mike Leach
On Wed, 27 Jan 2021 at 08:56, Anshuman Khandual wrote: > > From: Suzuki K Poulose > > Allocate a byte for advertising the PMU specific format type > of the given AUX record. A PMU could end up providing hardware > trace data in multiple format in a single session. > > e.g, The format of hardware

Re: [PATCH v2 14/25] dt-bindings: interrupt-controller: Add DT bindings for apple-aic

2021-02-16 Thread Mark Kettenis
> From: Arnd Bergmann > Date: Tue, 16 Feb 2021 10:41:11 +0100 > > On Mon, Feb 15, 2021 at 1:17 PM Hector Martin wrote: > > + > > + The 2nd cell contains the interrupt number. > > +- HW IRQs: interrupt number > > +- FIQs: > > + - 0: physical HV timer > > + -

Re: [PATCH V3 14/14] coresight: etm-perf: Add support for trace buffer format

2021-02-16 Thread Mike Leach
On Wed, 27 Jan 2021 at 08:56, Anshuman Khandual wrote: > > From: Suzuki K Poulose > > CoreSight PMU supports aux-buffer for the ETM tracing. The trace > generated by the ETM (associated with individual CPUs, like Intel PT) > is captured by a separate IP (CoreSight TMC-ETR/ETF until now). > > The

Re: [PATCH v5 1/1] mm: refactor initialization of struct page for holes in memory layout

2021-02-16 Thread Mike Rapoport
On Tue, Feb 16, 2021 at 09:33:20AM +0100, Michal Hocko wrote: > On Mon 15-02-21 23:24:40, Mike Rapoport wrote: > > On Mon, Feb 15, 2021 at 10:00:31AM +0100, Michal Hocko wrote: > > > On Sun 14-02-21 20:00:16, Mike Rapoport wrote: > > > > On Fri, Feb 12, 2021 at 02:18:20PM +0100, Michal Hocko wrote:

Re: [PATCH 00/33] Network fs helper library & fscache kiocb API [ver #3]

2021-02-16 Thread Jeff Layton
On Mon, 2021-02-15 at 18:40 -0600, Steve French wrote: > Jeff, > What are the performance differences you are seeing (positive or > negative) with ceph and netfs, especially with simple examples like > file copy or grep of large files? > > It could be good if netfs simplifies the problem experienc

Re: [PATCH net-next v2 1/3] net: phy: mscc: adding LCPLL reset to VSC8514

2021-02-16 Thread Bjarni.Jonasson
On Mon, 2021-02-15 at 18:25 +0100, Heiner Kallweit wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > On 15.02.2021 17:57, Bjarni Jonasson wrote: > > At Power-On Reset, transients may cause the LCPLL to lock onto a > > clock that is momentaril

Re: [PATCH net-next v2 3/3] net: phy: mscc: coma mode disabled for VSC8514

2021-02-16 Thread Bjarni.Jonasson
On Mon, 2021-02-15 at 21:08 +0100, Heiner Kallweit wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > On 15.02.2021 17:58, Bjarni Jonasson wrote: > > The 'coma mode' (configurable through sw or hw) provides an > > optional feature that may be

Re: [PATCH] ftrace: Do not reference symbols in sections without size

2021-02-16 Thread Greg Kroah-Hartman
On Mon, Feb 15, 2021 at 09:00:57PM -0500, Steven Rostedt wrote: > On Mon, 15 Feb 2021 20:06:39 -0500 > Steven Rostedt wrote: > > > Strange, that when I applied this to the latest kernel on a my build > > system (binutils 2.35), it still created all the necessary mcount > > locations?? > > I know

[PATCH v2 3/3] spi: lm70llp: Switch to use module_parport_driver()

2021-02-16 Thread Andy Shevchenko
Switch to use module_parport_driver() to reduce boilerplate code. Signed-off-by: Andy Shevchenko Acked-by: Mark Brown --- v2: added Ack (Mark), drop unneeded note from the commit message drivers/spi/spi-lm70llp.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/

[PATCH v2 2/3] spi: butterfly: Switch to use module_parport_driver()

2021-02-16 Thread Andy Shevchenko
Switch to use module_parport_driver() to reduce boilerplate code. Note, device_initcall() is a default for module_init(). Signed-off-by: Andy Shevchenko Acked-by: Mark Brown --- v2: added Ack (Mark) drivers/spi/spi-butterfly.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-)

linux-next: Tree for Feb 16

2021-02-16 Thread Stephen Rothwell
Hi all, Changes since 20210215: The net-next tree gained conflicts against the arm-soc tree. The mtd tree lost its build failure. The gpio-brgl tree gained conflicts against the arm-soc and net-next trees. Non-merge commits (relative to Linus' tree): 10480 10579 files changed, 459872 insertio

Re: smpboot: CPU numbers printed as warning

2021-02-16 Thread John Ogness
On 2021-02-16, Borislav Petkov wrote: >> Also you should add '\n' into the previous string to make the behavior >> clear. It will always be printed on a new line when pr_info() >> is used. > > This was made to use pr_cont() on purpose so that the output is > compact, It is supported to provide lo

[PATCH v2 1/3] parport: Introduce module_parport_driver() helper macro

2021-02-16 Thread Andy Shevchenko
Introduce module_parport_driver() helper macro to reduce boilerplate in the existing and new code. Signed-off-by: Andy Shevchenko --- v2: fixed typo in the macro include/linux/parport.h | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/linux/parport.h b/inc

[PATCH] dt-bindings: cpufreq: cpufreq-qcom-hw: Document SM8350 CPUfreq compatible

2021-02-16 Thread Vinod Koul
Add the CPUfreq compatible for SM8350 SoC along with note for using the specific compatible for SoCs Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/binding

Re: [PATCH v5 1/1] mm: refactor initialization of struct page for holes in memory layout

2021-02-16 Thread Mike Rapoport
On Mon, Feb 15, 2021 at 09:45:30AM +0100, David Hildenbrand wrote: > On 14.02.21 18:29, Mike Rapoport wrote: > > On Fri, Feb 12, 2021 at 10:56:19AM +0100, David Hildenbrand wrote: > > > On 12.02.21 10:55, David Hildenbrand wrote: > > > > On 08.02.21 12:08, Mike Rapoport wrote: > > > > > +#ifdef CON

[PATCH v7 6/7] Reimplement RLIMIT_MEMLOCK on top of ucounts

2021-02-16 Thread Alexey Gladkov
The rlimit counter is tied to uid in the user_namespace. This allows rlimit values to be specified in userns even if they are already globally exceeded by the user. However, the value of the previous user_namespaces cannot be exceeded. Changelog v7: * Fix hugetlb_file_setup() declaration if CONFI

Re: [PATCH v6 2/3] perf tools: Add lexical definition of event name

2021-02-16 Thread Jiri Olsa
On Tue, Feb 16, 2021 at 05:23:18PM +0900, Namhyung Kim wrote: > On Mon, Feb 15, 2021 at 9:34 PM Jiri Olsa wrote: > > > > On Fri, Feb 12, 2021 at 06:03:17PM +0900, Shunsuke Nakamura wrote: > > > Add the lexical definition of event name so that the numbers are > > > recognizable. > > > > > > A64FX

Re: [PATCH v2] vfs: prevent copy_file_range to copy across devices

2021-02-16 Thread Luis Henriques
Amir Goldstein writes: > On Mon, Feb 15, 2021 at 8:57 PM Trond Myklebust > wrote: >> >> On Mon, 2021-02-15 at 19:24 +0200, Amir Goldstein wrote: >> > On Mon, Feb 15, 2021 at 6:53 PM Trond Myklebust < >> > tron...@hammerspace.com> wrote: >> > > >> > > On Mon, 2021-02-15 at 18:34 +0200, Amir Gold

[PATCH 7/6] arm64: dts: qcom: sm8350: Add cpufreq node

2021-02-16 Thread Vinod Koul
Add cpufreq node and reference it for the CPUs. Signed-off-by: Vinod Koul --- - appended this to dts patch series arch/arm64/boot/dts/qcom/sm8350.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8

Re: riscv+KASAN does not boot

2021-02-16 Thread Dmitry Vyukov
On Fri, Jan 29, 2021 at 9:11 AM Dmitry Vyukov wrote: > > I was fixing KASAN support for my sv48 patchset so I took a look at your > > issue: I built a kernel on top of the branch riscv/fixes using > > https://github.com/google/syzkaller/blob/269d24e857a757d09a898086a2fa6fa5d827c3e1/dashboard/confi

Re: [PATCH] xfs: Wake CIL push waiters more reliably

2021-02-16 Thread Brian Foster
On Mon, Feb 15, 2021 at 02:36:38PM +0100, Donald Buczek wrote: > On 13.01.21 22:53, Dave Chinner wrote: > > [...] > > I agree that a throttling fix is needed, but I'm trying to > > understand the scope and breadth of the problem first instead of > > jumping the gun and making the wrong fix for the

Re: [PATCH v6 00/24] iio: core,buffer: add support for multiple IIO buffers per IIO device

2021-02-16 Thread Jonathan Cameron
On Mon, 15 Feb 2021 16:10:45 +0200 Alexandru Ardelean wrote: > On Mon, Feb 15, 2021 at 3:59 PM Jonathan Cameron wrote: > > > > On Mon, 15 Feb 2021 12:40:19 +0200 > > Alexandru Ardelean wrote: > > > > Hi Alex, > > > > One thought on this that came up whilst reading through it again. > > There ar

Re: [PATCH v2 14/25] dt-bindings: interrupt-controller: Add DT bindings for apple-aic

2021-02-16 Thread Arnd Bergmann
On Tue, Feb 16, 2021 at 12:00 PM Mark Kettenis wrote: > > From: Arnd Bergmann > > Date: Tue, 16 Feb 2021 10:41:11 +0100 > > > > On Mon, Feb 15, 2021 at 1:17 PM Hector Martin wrote: > > > + > > > + The 2nd cell contains the interrupt number. > > > +- HW IRQs: interrupt number > > > +

Re: [PATCH v4 net-next 0/9] Cleanup in brport flags switchdev offload for DSA

2021-02-16 Thread Vignesh Raghavendra
Hi, On 2/12/21 8:10 PM, Vladimir Oltean wrote: > On Fri, Feb 12, 2021 at 08:01:33PM +0530, Vignesh Raghavendra wrote: >> Hi Vladimir, >> >> On 2/12/21 7:47 PM, Grygorii Strashko wrote: >>> >>> >>> On 12/02/2021 03:05, Vladimir Oltean wrote: From: Vladimir Oltean >> [...] >>> >>> Sorry, but w

Re: riscv+KASAN does not boot

2021-02-16 Thread Dmitry Vyukov
On Tue, Feb 16, 2021 at 12:17 PM Dmitry Vyukov wrote: > > On Fri, Jan 29, 2021 at 9:11 AM Dmitry Vyukov wrote: > > > I was fixing KASAN support for my sv48 patchset so I took a look at your > > > issue: I built a kernel on top of the branch riscv/fixes using > > > https://github.com/google/syzkal

Re: [PATCH] tty: serial: Add earlycon driver for Tegra Combined UART

2021-02-16 Thread Mikko Perttunen
On 2/15/21 2:09 PM, Thierry Reding wrote: On Mon, Feb 15, 2021 at 12:35:31PM +0200, Mikko Perttunen wrote: On 2/15/21 12:25 PM, Thierry Reding wrote: On Sat, Feb 13, 2021 at 01:58:24PM +0200, Mikko Perttunen wrote: Add an earlycon driver for platforms with TCU, namely Tegra194. The driver is c

Re: [PATCH v2] vfs: prevent copy_file_range to copy across devices

2021-02-16 Thread gre...@linuxfoundation.org
On Tue, Feb 16, 2021 at 11:17:34AM +, Luis Henriques wrote: > Amir Goldstein writes: > > > On Mon, Feb 15, 2021 at 8:57 PM Trond Myklebust > > wrote: > >> > >> On Mon, 2021-02-15 at 19:24 +0200, Amir Goldstein wrote: > >> > On Mon, Feb 15, 2021 at 6:53 PM Trond Myklebust < > >> > tron...@ha

Re: [PATCH] x86, sched: Allow NUMA nodes to share an LLC on Intel platforms

2021-02-16 Thread Peter Zijlstra
On Wed, Feb 10, 2021 at 02:11:34PM -0800, Alison Schofield wrote: > This is equivalent to determining if x86_has_numa_in_package. > Do you think there is an opportunity to set x86_has_numa_in_package > earlier, and use it here and in set_cpu_sibling_map()? Sure. Not sure that's actually clearer t

[PATCH 2/2] drivers/pinctrl: armada-cp110 - fix MPP54/MPP55 functions

2021-02-16 Thread kostap
From: Konstantin Porotchkin The function name is used for selecting MPP functionality and should be unique within function names of the same pin. This patch fixes function names for MPP54 and MPP55 that have two different functions named the same. Signed-off-by: Konstantin Porotchkin --- drive

[PATCH 0/2] Fix Marvell CP110 pin control finction names

2021-02-16 Thread kostap
From: Konstantin Porotchkin These patches are fixing the CP110 pin control driver and the related documentation. Current CP110 pin control driver uses two different MPP functions named the same (sdio) in MPP54 and MPP55 definitions. Since these names are used for the MPP functionality selection,

[PATCH 1/2] doc: cp110-system-controller: fix the pin function names

2021-02-16 Thread kostap
From: Konstantin Porotchkin Fix the pin function names for MPP54 and MPP55. Signed-off-by: Konstantin Porotchkin --- Documentation/devicetree/bindings/arm/marvell/cp110-system-controller.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bind

[PATCH] bus: qcom-ebi2: add missing of_node_put

2021-02-16 Thread angkery
From: Junlin Yang Fix OF node leaks by calling of_node_put in for_each_available_child_of_node when the cycle returns. Generated by: scripts/coccinelle/iterators/for_each_child.cocci Signed-off-by: Junlin Yang --- drivers/bus/qcom-ebi2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-

linux-next: Signed-off-by missing for commit in the cifs tree

2021-02-16 Thread Stephen Rothwell
Hi all, Commit f204a0ab8c4f ("cifs: update internal version number") is missing a Signed-off-by from its author and committer. -- Cheers, Stephen Rothwell pgpuAzNQ0vXCs.pgp Description: OpenPGP digital signature

[PATCH v1 2/7] pps: clients: gpio: Use dev_err_probe() to avoid log noise

2021-02-16 Thread Andy Shevchenko
When GPIO APIs return -EPROBE_DEFER there is no need to print the message, especially taking into consideration that it may repeat several times. Use dev_err_probe() to avoid log noise in such cases. Signed-off-by: Andy Shevchenko --- drivers/pps/clients/pps-gpio.c | 15 ++- 1 file c

[PATCH v1 4/7] pps: clients: gpio: Get rid of legacy platform data

2021-02-16 Thread Andy Shevchenko
Platform data is a legacy interface to supply device properties to the driver. In this case we even don't have in-kernel users for it. Just remove it for good. Signed-off-by: Andy Shevchenko --- drivers/pps/clients/pps-gpio.c | 17 +++-- include/linux/pps-gpio.h | 19 --

[PATCH v1 7/7] pps: clients: gpio: Rearrange optional stuff in pps_gpio_setup()

2021-02-16 Thread Andy Shevchenko
Rearrange optional stuff in pps_gpio_setup() so it will go after mandatory one and with reduced indentation. This will increase readability of the sources. Signed-off-by: Andy Shevchenko --- drivers/pps/clients/pps-gpio.c | 33 ++--- 1 file changed, 18 insertions(+),

[PATCH v1 6/7] pps: clients: gpio: Use struct device pointer directly

2021-02-16 Thread Andy Shevchenko
In most parts of the code the platform device is not used. Use struct device pointer directly to reduce code size and increase readability. Signed-off-by: Andy Shevchenko --- drivers/pps/clients/pps-gpio.c | 42 +++--- 1 file changed, 19 insertions(+), 23 deletions(-)

[PATCH v1 3/7] pps: clients: gpio: Remove redundant condition in ->remove()

2021-02-16 Thread Andy Shevchenko
The timer along with GPIO API are NULL-aware, there is no need to test against existing GPIO echo line. Signed-off-by: Andy Shevchenko --- drivers/pps/clients/pps-gpio.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/pps/clients/pps-gpio.c b/drivers/pps/clien

[PATCH v1 5/7] pps: clients: gpio: Make use of device properties

2021-02-16 Thread Andy Shevchenko
Device property API allows to gather device resources from different sources, such as ACPI. Convert the drivers to unleash the power of device property API. Signed-off-by: Andy Shevchenko --- drivers/pps/clients/pps-gpio.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-)

[PATCH v1 1/7] pps: clients: gpio: Bail out on error when requesting GPIO echo line

2021-02-16 Thread Andy Shevchenko
When requesting optional GPIO echo line, bail out on error, so user will know that something wrong with the existing property. Signed-off-by: Andy Shevchenko --- drivers/pps/clients/pps-gpio.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/pps/clients/pps-

[PATCH 03/10] drm/qxl: use ttm bo priorities

2021-02-16 Thread Gerd Hoffmann
Allow to set priorities for buffer objects. Use priority 1 for surface and cursor command releases. Use priority 0 for drawing command releases. That way the short-living drawing commands are first in line when it comes to eviction, making it *much* less likely that ttm_bo_mem_force_space() pick

[PATCH 02/10] drm/qxl: more fence wait rework

2021-02-16 Thread Gerd Hoffmann
Move qxl_io_notify_oom() call into wait condition. That way the driver will call it again if one call wasn't enough. Also allows to remove the extra dma_fence_is_signaled() check and the goto. Fixes: 5a838e5d5825 ("drm/qxl: simplify qxl_fence_wait") Signed-off-by: Gerd Hoffmann --- drivers/gpu/

[PATCH 07/10] drm/qxl: fix prime kmap

2021-02-16 Thread Gerd Hoffmann
Use the correct kmap variant. We don't have a reservation here, so we can't use the _locked version. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_prime.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_prime.c b/drivers/gpu/drm/qxl/qxl

[PATCH 01/10] drm/qxl: properly handle device init failures

2021-02-16 Thread Gerd Hoffmann
Specifically do not try release resources which where not allocated in the first place. Cc: Tong Zhang Tested-by: Tong Zhang Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 3 +++ drivers/gpu/drm/qxl/qxl_kms.c | 4 2 files changed, 7 insertions(+) diff --git a/dr

[PATCH 10/10] drm/qxl: add lock asserts to qxl_bo_kmap_locked + qxl_bo_kunmap_locked

2021-02-16 Thread Gerd Hoffmann
Try avoid re-introducing locking bugs. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_object.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/qxl/qxl_object.c b/drivers/gpu/drm/qxl/qxl_object.c index 22748b9566af..90d5e5b7f927 100644 --- a/drivers/gpu/drm/qxl/q

[PATCH 04/10] drm/qxl: fix lockdep issue in qxl_alloc_release_reserved

2021-02-16 Thread Gerd Hoffmann
Call qxl_bo_unpin (which does a reservation) without holding the release_mutex lock. Fixes lockdep (correctly) warning on a possible deadlock. Fixes: 65ffea3c6e73 ("drm/qxl: unpin release objects") Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_release.c | 13 ++--- 1 file cha

[PATCH 06/10] drm/qxl: add qxl_bo_kmap/qxl_bo_kunmap

2021-02-16 Thread Gerd Hoffmann
Add kmap/kunmap variants which reserve (and pin) the bo. They can be used in case the caller doesn't hold a reservation for the bo. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_object.h | 2 ++ drivers/gpu/drm/qxl/qxl_object.c | 36 2 files changed,

[PATCH 05/10] drm/qxl: rename qxl_bo_kmap -> qxl_bo_kmap_locked

2021-02-16 Thread Gerd Hoffmann
Make clear that these functions should be called with reserved bo's only. No functional change. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_object.h | 4 ++-- drivers/gpu/drm/qxl/qxl_display.c | 14 +++--- drivers/gpu/drm/qxl/qxl_draw.c| 8 drivers/gpu/drm/q

[PATCH 08/10] drm/qxl: fix monitors object kmap

2021-02-16 Thread Gerd Hoffmann
Use the correct kmap variant. We don't hold a reservation here, so we can't use the _locked variant. We can drop the pin because qxl_bo_kmap will do that for us. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) dif

[PATCH 09/10] drm/qxl: map/unmap framebuffers in prepare_fb+cleanup_fb callbacks.

2021-02-16 Thread Gerd Hoffmann
We don't have to map in atomic_update callback then, making locking a bit less complicated. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_display.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/q

[PATCH v4 bpf-next 1/6] netdev_priv_flags: add missing IFF_PHONY_HEADROOM self-definition

2021-02-16 Thread Alexander Lobakin
This is harmless for now, but comes fatal for the subsequent patch. Fixes: 871b642adebe3 ("netdev: introduce ndo_set_rx_headroom") Signed-off-by: Alexander Lobakin --- include/linux/netdevice.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/netdevice.h b/include/linux/netdevic

[PATCH v4 bpf-next 0/6] xsk: build skb by page (aka generic zerocopy xmit)

2021-02-16 Thread Alexander Lobakin
This series introduces XSK generic zerocopy xmit by adding XSK umem pages as skb frags instead of copying data to linear space. The only requirement for this for drivers is to be able to xmit skbs with skb_headlen(skb) == 0, i.e. all data including hard headers starts from frag 0. To indicate wheth

[PATCH v4 bpf-next 4/6] virtio-net: support IFF_TX_SKB_NO_LINEAR

2021-02-16 Thread Alexander Lobakin
From: Xuan Zhuo Virtio net supports the case where the skb linear space is empty, so add priv_flags. Signed-off-by: Xuan Zhuo Acked-by: Michael S. Tsirkin Signed-off-by: Alexander Lobakin --- drivers/net/virtio_net.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drive

[PATCH v4 bpf-next 3/6] net: add priv_flags for allow tx skb without linear

2021-02-16 Thread Alexander Lobakin
From: Xuan Zhuo In some cases, we hope to construct skb directly based on the existing memory without copying data. In this case, the page will be placed directly in the skb, and the linear space of skb is empty. But unfortunately, many the network card does not support this operation. For exampl

[PATCH v4 bpf-next 5/6] xsk: respect device's headroom and tailroom on generic xmit path

2021-02-16 Thread Alexander Lobakin
xsk_generic_xmit() allocates a new skb and then queues it for xmitting. The size of new skb's headroom is desc->len, so it comes to the driver/device with no reserved headroom and/or tailroom. Lots of drivers need some headroom (and sometimes tailroom) to prepend (and/or append) some headers or dat

[PATCH v4 bpf-next 2/6] netdevice: check for net_device::priv_flags bitfield overflow

2021-02-16 Thread Alexander Lobakin
We almost ran out of unsigned int bitwidth. Define priv flags and check for potential overflow in the fashion of netdev_features_t. Defined this way, priv_flags can be easily expanded later with just changing its typedef. Signed-off-by: Alexander Lobakin --- include/linux/netdevice.h | 135 +

Re: smpboot: CPU numbers printed as warning

2021-02-16 Thread Borislav Petkov
On Tue, Feb 16, 2021 at 12:17:24PM +0106, John Ogness wrote: > It is supported to provide loglevels for CONT messages. The loglevel is > then only used if the append fails: > > pr_cont(KERN_INFO "message part"); > > I don't know if we want to go down that path. But it is supported. Sounds ok

Re: [PATCH v5 1/1] mm: refactor initialization of struct page for holes in memory layout

2021-02-16 Thread Michal Hocko
On Tue 16-02-21 13:01:54, Mike Rapoport wrote: > On Tue, Feb 16, 2021 at 09:33:20AM +0100, Michal Hocko wrote: > > On Mon 15-02-21 23:24:40, Mike Rapoport wrote: > > > On Mon, Feb 15, 2021 at 10:00:31AM +0100, Michal Hocko wrote: > > > > On Sun 14-02-21 20:00:16, Mike Rapoport wrote: > > > > > On F

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