[PATCH] coccinelle: misc: add swap script

2021-02-16 Thread Denis Efremov
Check for opencoded swap() implementation. Signed-off-by: Denis Efremov --- scripts/coccinelle/misc/swap.cocci | 77 ++ 1 file changed, 77 insertions(+) create mode 100644 scripts/coccinelle/misc/swap.cocci diff --git a/scripts/coccinelle/misc/swap.cocci b/scripts/

Re: [PATCH v4 0/8] Make fw_devlink=on more forgiving

2021-02-16 Thread Geert Uytterhoeven
Hi Saravana, On Mon, Feb 15, 2021 at 10:27 PM Saravana Kannan wrote: > On Mon, Feb 15, 2021 at 4:38 AM Geert Uytterhoeven > wrote: > > On Fri, Feb 12, 2021 at 4:00 AM Saravana Kannan > > wrote: > > > On Thu, Feb 11, 2021 at 5:00 AM Geert Uytterhoeven > > > wrote: > > > > - I2C on R-Ca

Re: [RFC PATCH] mm, oom: introduce vm.sacrifice_hugepage_on_oom

2021-02-16 Thread Michal Hocko
On Tue 16-02-21 03:07:13, Eiichi Tsukata wrote: > Hugepages can be preallocated to avoid unpredictable allocation latency. > If we run into 4k page shortage, the kernel can trigger OOM even though > there were free hugepages. When OOM is triggered by user address page > fault handler, we can use oo

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

2021-02-16 Thread David Hildenbrand
On 15.02.21 20:02, Michal Hocko wrote: On Tue 16-02-21 01:48:29, Muchun Song wrote: On Tue, Feb 16, 2021 at 12:28 AM Michal Hocko wrote: On Mon 15-02-21 23:36:49, Muchun Song wrote: [...] There shouldn't be any real reason why the memory allocation for vmemmaps, or handling vmemmap in genera

[PATCH v6 0/2] add support for GPIO or IRQ based evemt counter

2021-02-16 Thread Oleksij Rempel
changes v6: - rename it to interrupt-counter - driver fixes - device tree fixes changes v5: - rename it to event counter, since it support different event sources - make it work with gpio-only or irq-only configuration - update yaml binding changes v4: - use IRQ_NOAUTOEN to not enable IRQ by defa

[PATCH v6 1/2] dt-bindings: counter: add event-counter binding

2021-02-16 Thread Oleksij Rempel
Add binding for the event counter node Signed-off-by: Oleksij Rempel Reviewed-by: Linus Walleij --- .../bindings/counter/interrupt-counter.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/counter/interrupt-counter.yaml dif

Re: [PATCH 6/7] dma-iommu: implement ->alloc_noncontiguous

2021-02-16 Thread Tomasz Figa
Hi Christoph On Tue, Feb 2, 2021 at 6:51 PM Christoph Hellwig wrote: > > Implement support for allocating a non-contiguous DMA region. > > Signed-off-by: Christoph Hellwig > --- > drivers/iommu/dma-iommu.c | 35 +++ > 1 file changed, 35 insertions(+) > > diff --

[PATCH v6 2/2] counter: add IRQ or GPIO based event counter

2021-02-16 Thread Oleksij Rempel
Add simple IRQ or GPIO base event counter. This device is used to measure rotation speed of some agricultural devices, so no high frequency on the counter pin is expected. The maximal measurement frequency depends on the CPU and system load. On the idle iMX6S I was able to measure up to 20kHz with

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

2021-02-16 Thread Michal Hocko
On Tue 16-02-21 12:34:41, Muchun Song wrote: > On Tue, Feb 16, 2021 at 3:39 AM Michal Hocko wrote: [...] > > > Using GFP_KERNEL will also use the current task cpuset to allocate > > > memory. Do we have an interface to ignore current task cpuset?If not, > > > WQ may be the only option and it also

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

2021-02-16 Thread Miquel Raynal
Hello, Md Sadre Alam wrote on Tue, 16 Feb 2021 00:46:42 +0530: > From QPIC version 2.0 onwards new register got added to > read last codeword. This change will add the READ_LOCATION_LAST_CW_n > register. > > For first three code word READ_LOCATION_n register will be > use.For last code word REA

Re: [PATCH 00/21] [Set 2] Rid W=1 warnings from Clock

2021-02-16 Thread Lee Jones
On Mon, 15 Feb 2021, Jakub Kicinski wrote: > On Mon, 15 Feb 2021 08:49:52 + Lee Jones wrote: > > > Jakub can explain how he added these checks. > > > > Yes, please share. > > https://github.com/kuba-moo/nipa Thanks for this. Oh, I see. So you conduct tests locally, then post them up in

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

2021-02-16 Thread Michal Hocko
On Tue 16-02-21 09:13:09, David Hildenbrand wrote: > On 15.02.21 20:02, Michal Hocko wrote: > > Would it be feasible to reused parts of the freed page in > > the worst case? > > As already discussed, this is only possible when the huge page does not > reside on ZONE_MOVABLE/CMA. Right. But usuall

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

2021-02-16 Thread David Hildenbrand
If current node has no memory and other nodes have enough memory. We can fail to allocate vmemmap pages. But actually it is suitable to allocate vmemmap pages from other nodes. Right? Falling back to a different node would be very suboptimal because then you would have vmemmap back by remote pag

[PATCH] mutex: nuke mutex_trylock_recursive

2021-02-16 Thread Christian König
The last user went away in the 5.11 cycle. Signed-off-by: Christian König --- include/linux/mutex.h | 25 - kernel/locking/mutex.c | 10 -- scripts/checkpatch.pl | 6 -- 3 files changed, 41 deletions(-) diff --git a/include/linux/mutex.h b/include/linux/mu

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

2021-02-16 Thread Namhyung Kim
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 defines an event name that starts with a number. > > - 0inst_commit > > -

Re: [PATCH v4] tpm: fix reference counting for struct tpm_chip

2021-02-16 Thread Jarkko Sakkinen
On Tue, Feb 16, 2021 at 01:31:00AM +0100, Lino Sanfilippo wrote: > From: Lino Sanfilippo > > The following sequence of operations results in a refcount warning: > > 1. Open device /dev/tpmrm Add '.' to end. > 2. Remove module tpm_tis_spi Add '.' to end. > 3. Write a TPM command to the file d

[ANNOUNCE] v5.10.16-rt30

2021-02-16 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v5.10.16-rt30 patch set. Changes since v5.10.16-rt29: - Due to recent softirq rework it was not possible to compile a kernel with RT && !SMP. Reported by Jonathan Schwender, patch by Christian Eggers. - Update the block-mq patches to the v

Re: [PATCH v5 3/3] x86/sgx: Remove redundant if conditions in sgx_encl_create

2021-02-16 Thread Jarkko Sakkinen
On Tue, Feb 16, 2021 at 11:31:33AM +0800, Tianjia Zhang wrote: > In this scenario, there is no case where va_page is NULL, and > the error has been checked. The if-condition statement here is > redundant, so remove the condition detection. > > Signed-off-by: Tianjia Zhang > Acked-by: Jarkko Sakki

Re: [PATCH 1/2] mmc: core: Drop superfluous validations in mmc_hw|sw_reset()

2021-02-16 Thread Adrian Hunter
On 12/02/21 3:15 pm, Ulf Hansson wrote: > The mmc_hw|sw_reset() APIs are designed to be called solely from upper > layers, which means drivers that operates on top of the struct mmc_card, > like the mmc block device driver and an SDIO functional driver. > > Additionally, as long as the struct mmc_

Re: [PATCH v5 1/3] dt-bindings: reset: microchip sparx5 reset driver bindings

2021-02-16 Thread Steen Hegelund
Hi Alex, On Mon, 2021-02-15 at 18:32 +0100, Alexandre Belloni wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > On 10/02/2021 10:19:50+0100, Steen Hegelund wrote: > > Document the Sparx5 reset device driver bindings > > > > The driver uses

Re: [PATCH 2/2] mmc: core: Drop reference counting of the bus_ops

2021-02-16 Thread Adrian Hunter
On 12/02/21 3:16 pm, Ulf Hansson wrote: > When the mmc_rescan work is enabled for execution (host->rescan_disable), > it's the only instance per mmc host that is allowed to set/clear the > host->bus_ops pointer. > > Besides the mmc_rescan work, there are a couple of scenarios when the > host->bus_

Sira X - The best of Mandrake and Ubuntu, readied for Fair Pay netcurrency.

2021-02-16 Thread Ywe Cærlyn
A further iteration: Sira X - The best of Mandrake and Ubuntu, readied for Fair Pay netcurrency. With Islam as background philosophy of LA J. Serenity, Ywe Cærlyn. https://www.youtube.com/channel/UCqt17eaSO66UV4xvIYJvD4g

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

2021-02-16 Thread Michal Hocko
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: > > > > > We can correctly set the zone links for the reserved pages

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

2021-02-16 Thread Thomas Zimmermann
Hi Am 15.02.21 um 12:40 schrieb 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 --- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c| 5 ++-- drivers/gpu/drm/amd/amdgpu/

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

2021-02-16 Thread Steen Hegelund
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 > wrote: > > Okay. Is it going to be some sort of manual

Re: [PATCH v5 1/2] pinctrl: use to octal permissions for debugfs files

2021-02-16 Thread Geert Uytterhoeven
On Fri, Feb 12, 2021 at 11:30 PM Drew Fustini wrote: > Switch over pinctrl debugfs files to use octal permissions as they are > preferred over symbolic permissions. Refer to commit f90774e1fd27 > ("checkpatch: look for symbolic permissions and suggest octal instead"). > > Note: S_IFREG flag is add

Re: [PATCH 34/33] netfs: Use in_interrupt() not in_softirq()

2021-02-16 Thread Christoph Hellwig
On Mon, Feb 15, 2021 at 10:46:23PM +, David Howells wrote: > The in_softirq() in netfs_rreq_terminated() works fine for the cache being > on a normal disk, as the completion handlers may get called in softirq > context, but for an NVMe drive, the completion handler may get called in > IRQ conte

Re: [PATCH] mfd: syscon: Don't free allocated name for regmap_config

2021-02-16 Thread Marc Zyngier
Hi Tomi, On Tue, 16 Feb 2021 06:34:50 +, Tomi Valkeinen wrote: > > Hi Marc, > > On 03/09/2020 19:02, Marc Zyngier wrote: > > The name allocated for the regmap_config structure is freed > > pretty early, right after the registration of the MMIO region. > > > > Unfortunately, that doesn't fo

Re: [PATCH 0/2] block: avoid to drop & re-add partitions if partitions aren't changed

2021-02-16 Thread Christoph Hellwig
On Mon, Feb 15, 2021 at 12:03:41PM +0800, Ming Lei wrote: > Hello, I think this is a fundamentally bad idea. We should not keep the parsed partition state around forever just to work around some buggy user space software.

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

2021-02-16 Thread Thomas Hebb
commit ca0246bb97c2 ("z3fold: fix possible reclaim races") introduced the PAGE_CLAIMED flag "to avoid racing on a z3fold 'headless' page release." By atomically testing and setting the bit in each of z3fold_free() and z3fold_reclaim_page(), a double-free was avoided. However, commit 746d179b0e66 (

Re: [PATCH] proc_sysctl: clamp sizes using table->maxlen

2021-02-16 Thread Christoph Hellwig
On Mon, Feb 15, 2021 at 09:53:05AM -0500, Alex Xu (Hello71) wrote: > Since maxlen is already exposed, we can allocate approximately the right > amount directly, fixing up those drivers which set a bogus maxlen. These > drivers were located based on those which had copy_x_user replaced in > 32927393

Re: [PATCH -next] fs: libfs: fix kernel-doc for mnt_userns

2021-02-16 Thread Christoph Hellwig
On Mon, Feb 15, 2021 at 08:29:27PM -0800, Randy Dunlap wrote: > Fix kernel-doc warning in libfs.c. > > ../fs/libfs.c:498: warning: Function parameter or member 'mnt_userns' not > described in 'simple_setattr' Shouldn't the subject say simple_setattr instead of mnt_userns? Otherwise looks good:

Re: [PATCH 6/7] dma-iommu: implement ->alloc_noncontiguous

2021-02-16 Thread Christoph Hellwig
On Tue, Feb 16, 2021 at 05:14:55PM +0900, Tomasz Figa wrote: > When working on the videobuf2 integration with Sergey I noticed that > we always pass 0 as DMA attrs here, which removes the ability for > drivers to use DMA_ATTR_ALLOC_SINGLE_PAGES. > > It's quite important from a system stability poi

Re: [PATCH] nvme-tcp: Check if request has started before processing it

2021-02-16 Thread Hannes Reinecke
On 2/15/21 10:23 PM, Sagi Grimberg wrote: blk_mq_tag_to_rq() will always return a request if the command_id is in the valid range. Check if the request has been started. If we blindly process the request we might double complete a request which can be fatal. How did you get to this one? did t

[PATCH mips-next] vmlinux.lds.h: catch more UBSAN symbols into .data

2021-02-16 Thread Alexander Lobakin
LKP triggered lots of LD orphan warnings [0]: mipsel-linux-ld: warning: orphan section `.data.$Lubsan_data299' from `init/do_mounts_rd.o' being placed in section `.data.$Lubsan_data299' mipsel-linux-ld: warning: orphan section `.data.$Lubsan_data183' from `init/do_mounts_rd.o' being placed in sect

Re: [PATCH 1/2] v4l2-ctrl: Add decoder conceal color control

2021-02-16 Thread Stanimir Varbanov
On 2/15/21 1:57 PM, Hans Verkuil wrote: > On 15/02/2021 12:32, Stanimir Varbanov wrote: >> >> >> On 2/9/21 1:05 PM, Hans Verkuil wrote: >>> On 09/02/2021 10:45, Stanimir Varbanov wrote: Add decoder v4l2 control to set conceal color. Signed-off-by: Stanimir Varbanov ---

Re: [PATCH 1/2] v4l2-ctrl: Add decoder conceal color control

2021-02-16 Thread Hans Verkuil
On 16/02/2021 09:56, Stanimir Varbanov wrote: > > > On 2/15/21 1:57 PM, Hans Verkuil wrote: >> On 15/02/2021 12:32, Stanimir Varbanov wrote: >>> >>> >>> On 2/9/21 1:05 PM, Hans Verkuil wrote: On 09/02/2021 10:45, Stanimir Varbanov wrote: > Add decoder v4l2 control to set conceal color. >

Re: [PATCH V3 11/14] coresight: sink: Add TRBE driver

2021-02-16 Thread Mike Leach
Hi Anshuman, There have been plenty of detailed comments so I will restrict mine to a few general issues:- 1) Currently there appears to be no sysfs support (I cannot see the MODE_SYSFS constants running alongside the MODE_PERF ones present in the other sink drivers). This is present on all other

Re: [PATCH 0/3] mm/page_alloc: Fix pageblock_order with HUGETLB_PAGE_SIZE_VARIABLE

2021-02-16 Thread Anshuman Khandual
On 2/12/21 3:09 PM, David Hildenbrand wrote: > On 12.02.21 08:02, Anshuman Khandual wrote: >> >> On 2/11/21 2:07 PM, David Hildenbrand wrote: >>> On 11.02.21 07:22, Anshuman Khandual wrote: The following warning gets triggered while trying to boot a 64K page size without THP config kern

Re: [PATCH v3] kcmp: Support selection of SYS_kcmp without CHECKPOINT_RESTORE

2021-02-16 Thread Daniel Vetter
On Mon, Feb 08, 2021 at 02:12:00PM -0800, Kees Cook wrote: > On Fri, Feb 05, 2021 at 10:00:12PM +, Chris Wilson wrote: > > Userspace has discovered the functionality offered by SYS_kcmp and has > > started to depend upon it. In particular, Mesa uses SYS_kcmp for > > os_same_file_description() i

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

2021-02-16 Thread Sakari Ailus
Hi Thomas, Thanks for the review. On Tue, Feb 16, 2021 at 09:37:45AM +0100, Thomas Zimmermann wrote: > Hi > > Am 15.02.21 um 12:40 schrieb 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. > > >

Re: [PATCH v3] arm64: dts: qcom: sdm845-xiaomi-beryllium: Add DSI and panel bits

2021-02-16 Thread Amit Pundir
Hi, On Fri, 12 Feb 2021 at 23:11, AngeloGioacchino Del Regno wrote: > > Il 12/02/21 10:24, Amit Pundir ha scritto: > > Hi, > > > > On Thu, 11 Feb 2021 at 00:25, AngeloGioacchino Del Regno > > wrote: > >> > >> Il 10/02/21 09:18, Amit Pundir ha scritto: > >>> From: Sumit Semwal > >>> > >>> Enabli

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

2021-02-16 Thread Muchun Song
On Tue, Feb 16, 2021 at 4:15 PM Michal Hocko wrote: > > On Tue 16-02-21 12:34:41, Muchun Song wrote: > > On Tue, Feb 16, 2021 at 3:39 AM Michal Hocko wrote: > [...] > > > > Using GFP_KERNEL will also use the current task cpuset to allocate > > > > memory. Do we have an interface to ignore current

Re: [PATCH 0/3] mm/page_alloc: Fix pageblock_order with HUGETLB_PAGE_SIZE_VARIABLE

2021-02-16 Thread David Hildenbrand
But again, if there are valid use cases then sure, let's make the code fully compatible with HUGETLB_PAGE_ORDER > MAX_ORDER. Given that gigantic HugeTLB allocation can fallback on alloc_contig_pages() or CMA if/when available, is there a real need for HUGETLB_PAGE_ORDER to be upto MAX_ORDER,

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

2021-02-16 Thread Peter Zijlstra
On Mon, Feb 15, 2021 at 12:23:52PM -0300, André Almeida wrote: > +static int __futex_wait(struct futexv_head *futexv, unsigned int nr_futexes, > + struct hrtimer_sleeper *timeout) > +{ > + int ret; > + > + while (1) { > + int awakened = -1; > + Might be easi

Re: [PATCH 34/33] netfs: Use in_interrupt() not in_softirq()

2021-02-16 Thread Sebastian Andrzej Siewior
On 2021-02-16 09:42:30 [+0100], Christoph Hellwig wrote: > On Mon, Feb 15, 2021 at 10:46:23PM +, David Howells wrote: > > The in_softirq() in netfs_rreq_terminated() works fine for the cache being > > on a normal disk, as the completion handlers may get called in softirq > > context, but for an

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

2021-02-16 Thread Petr Mladek
On Tue 2021-02-16 09:37:45, Thomas Zimmermann wrote: > Hi > > Am 15.02.21 um 12:40 schrieb 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 > > --- > > driv

Re: [PATCH v2] fs: ubifs: set s_uuid in super block to support ima/evm uuid options

2021-02-16 Thread Andy Shevchenko
On Tue, Feb 16, 2021 at 9:24 AM Juergen Borleis wrote: > > From: Steffen Trumtrar > > This is required to provide uuid based integrity functionality for: > ima_policy (fsuuid option) and the 'evmctl' command ('--uuid' option). Reviewed-by: Andy Shevchenko One issue below has to be addressed nev

Re: [PATCH v2] fs: ubifs: set s_uuid in super block to support ima/evm uuid options

2021-02-16 Thread Andy Shevchenko
+Cc: Stephen Stephen, do you have a check in Linux Next to catch the problem that Co-developed-by is not being accompanied by a corresponding SoB? On Tue, Feb 16, 2021 at 11:09 AM Andy Shevchenko wrote: > > On Tue, Feb 16, 2021 at 9:24 AM Juergen Borleis wrote: > > > > From: Steffen Trumtrar >

Re: [PATCH] dt-bindings: mtd: spi-nor: Convert to DT schema format

2021-02-16 Thread Geert Uytterhoeven
Hi Rob, On Tue, Feb 2, 2021 at 6:54 PM Rob Herring wrote: > Convert the SPI-NOR binding to DT schema format. Like other memory chips, > the compatible strings are a mess with vendor prefixes not being used > consistently and some compatibles not documented. The resulting schema > passes on 'compa

Re: Using TCPM for ports without Power Delivery support

2021-02-16 Thread Heikki Krogerus
Hi Cristian, On Mon, Feb 15, 2021 at 05:25:29PM +, cristian.bir...@microchip.com wrote: > My name is Cristian and I'm working on bringing up a USB Type-C Port > Controller > (TCPC) without Power Delivery support which is intended to work with USB 2.0 > Host/Device. > > The IP is integrated i

Re: [PATCH] kthread: add kthread_mod_pending_delayed_work api

2021-02-16 Thread Christoph Hellwig
On Sun, Feb 14, 2021 at 12:06:11AM +, Yiwei Zhang wrote: > The existing kthread_mod_delayed_work api will queue a new work if > failing to cancel the current work due to no longer being pending. > However, there's a case that the same work can be enqueued from both > an async request and a dela

Re: [RESEND PATCH v2 0/6] lib/find_bit: fast path for small bitmaps

2021-02-16 Thread Andy Shevchenko
On Mon, Feb 15, 2021 at 01:30:44PM -0800, Yury Norov wrote: > [add David Laight ] > > On Sat, Jan 30, 2021 at 11:17:11AM -0800, Yury Norov wrote: > > Bitmap operations are much simpler and faster in case of small bitmaps > > which fit into a single word. In linux/bitmap.h we have a machinery that

Re: [PATCH v2] usb: typec: tcpm: Export partner Source Capabilities

2021-02-16 Thread Christoph Hellwig
On Sun, Feb 14, 2021 at 11:30:52AM +0800, Kyle Tso wrote: > Export a function for other drivers to get the partner Source > Capabilities. > > Signed-off-by: Kyle Tso Who is going to use this? Please submit any new export together with the actual user.

[GIT PULL] auxdisplay for v5.12

2021-02-16 Thread Miguel Ojeda
Hi Linus, A few bits for auxdisplay. Please pull. Cheers, Miguel The following changes since commit 6ee1d745b7c9fd573fba142a2efdad76a9f1cb04: Linux 5.11-rc5 (2021-01-24 16:47:14 -0800) are available in the Git repository at: https://github.com/ojeda/linux.git tags/auxdisplay-for-linus-v5.

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

2021-02-16 Thread Greg Kroah-Hartman
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 avoid racing on a z3fold 'headless' page > release." By atomically testing and setting the bit in each of > z3fold_free() and z3fold_recla

Re: [PATCH v3] perf tools: Fix arm64 build error with gcc-11

2021-02-16 Thread John Garry
--- tools/perf/builtin-script.c| 4 +++- tools/perf/util/scripting-engines/trace-event-python.c | 3 ++- tools/perf/util/session.c | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/perf/builtin-script.c b/too

Re: [PATCH 0/6] staging: rtl8723bs: remove DBG_COUNTER

2021-02-16 Thread Dan Carpenter
Looks good. Reviewed-by: Dan Carpenter regards, dan carpenter

Re: DMA-buf and uncached system memory

2021-02-16 Thread Daniel Vetter
On Mon, Feb 15, 2021 at 09:58:08AM +0100, Christian König wrote: > Hi guys, > > we are currently working an Freesync and direct scan out from system memory > on AMD APUs in A+A laptops. > > On problem we stumbled over is that our display hardware needs to scan out > from uncached system memory an

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

2021-02-16 Thread Vitaly Wool
Hi Thomas, On Tue, Feb 16, 2021 at 9:44 AM Thomas Hebb wrote: > > commit ca0246bb97c2 ("z3fold: fix possible reclaim races") introduced > the PAGE_CLAIMED flag "to avoid racing on a z3fold 'headless' page > release." By atomically testing and setting the bit in each of > z3fold_free() and z3fold_

[PATCH net-next v2 0/2] net: mvneta: implement basic MQPrio support

2021-02-16 Thread Maxime Chevallier
Hi everyone, This is V2 for the MQPrio support in mvneta. This small series adds basic support for mqprio offloading, by having the rx queueing mirroring the TCs based on VLAN prio fields. This was tested on Armada 3700, and proves useful to make sure high-priority traffic has a better chance no

[PATCH net-next v2 1/2] net: mvneta: Remove per-cpu queue mapping for Armada 3700

2021-02-16 Thread Maxime Chevallier
According to Errata #23 "The per-CPU GbE interrupt is limited to Core 0", we can't use the per-cpu interrupt mechanism on the Armada 3700 familly. This is correctly checked for RSS configuration, but the initial queue mapping is still done by having the queues spread across all the CPUs in the sys

[PATCH net-next v2 2/2] net: mvneta: Implement mqprio support

2021-02-16 Thread Maxime Chevallier
Implement a basic MQPrio support, inserting rules in RX that translate the TC to prio mapping into vlan prio to queues. The TX logic stays the same as when we don't offload the qdisc. Signed-off-by: Maxime Chevallier --- V2 : Fixed the reverse xmas tree, as per Andrew's review. Fixed a comp

[PATCH] iio: dac: ad5686: Add support for AD5673R/AD5677R

2021-02-16 Thread Alexandru Ardelean
From: Mircea Caprioru The AD5673R/AD5677R are low power, 16-channel, 12-/16-bit buffered voltage output digital-to-analog converters (DACs). They include a 2.5 V internal reference (enabled by default). These devices are very similar to AD5674R/AD5679R, except that they have an i2c interface. S

Re: [PATCH] mutex: nuke mutex_trylock_recursive

2021-02-16 Thread Daniel Vetter
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 stuff this into 5.12 before someone resurrects this zombie. -Daniel > --- > inclu

[PATCH] staging: wlan-ng: Remove unused function pointer typedef freebuf_method_t

2021-02-16 Thread Chen Lin
From: Chen Lin Remove the 'freebuf_method_t' typedef as it is not used. Signed-off-by: Chen Lin --- drivers/staging/wlan-ng/p80211conv.h |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/wlan-ng/p80211conv.h b/drivers/staging/wlan-ng/p80211conv.h index 827002c..15fd635

Re: [PATCH 34/33] netfs: Use in_interrupt() not in_softirq()

2021-02-16 Thread Christoph Hellwig
On Tue, Feb 16, 2021 at 09:29:31AM +, David Howells wrote: > Is there a better way to do it? The intent is to process the assessment phase > in the calling thread's context if possible rather than bumping over to a > worker thread. For synchronous I/O, for example, that's done in the caller's

Re: [PATCH 34/33] netfs: Use in_interrupt() not in_softirq()

2021-02-16 Thread David Howells
Christoph Hellwig wrote: > On Mon, Feb 15, 2021 at 10:46:23PM +, David Howells wrote: > > The in_softirq() in netfs_rreq_terminated() works fine for the cache being > > on a normal disk, as the completion handlers may get called in softirq > > context, but for an NVMe drive, the completion ha

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

2021-02-16 Thread Miguel Ojeda
Hi Sebastian, 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 this sentence as a comment in the code, right before the call to cond_res

[tip: x86/entry] um: Enforce the usage of asm-generic/softirq_stack.h

2021-02-16 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the x86/entry branch of tip: Commit-ID: 3aac798a917be3b8f2f647b834bb06bf2f8df4f1 Gitweb: https://git.kernel.org/tip/3aac798a917be3b8f2f647b834bb06bf2f8df4f1 Author:Thomas Gleixner AuthorDate:Tue, 16 Feb 2021 10:23:14 +01:00 Committ

Re: {standard input}:577: Error: unsupported relocation against base

2021-02-16 Thread Michael Ellerman
Feng Tang writes: > Hi Christophe and Michael, > > On Mon, Jan 18, 2021 at 10:24:08PM +0800, Christophe Leroy wrote: >> >> Le 05/01/2021 ? 11:58, kernel test robot a 閏rit : >> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git >> > master >> > head: e71ba9452f0b5b2e8d

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

2021-02-16 Thread Peter Zijlstra
On Mon, Feb 15, 2021 at 12:23:52PM -0300, André Almeida wrote: > +static int futex_dequeue_multiple(struct futexv_head *futexv, unsigned int > nr) > +{ > + int i, ret = -1; > + > + for (i = 0; i < nr; i++) { > + spin_lock(&futexv->objects[i].bucket->lock); > + if (

[PATCH] pinctrl: equilibrium: 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_child_of_node when the cycle returns. Generated by: scripts/coccinelle/iterators/for_each_child.cocci Signed-off-by: Junlin Yang --- drivers/pinctrl/pinctrl-equilibrium.c | 16 +--- 1 file changed, 13 insertion

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

2021-02-16 Thread Arnd Bergmann
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 > + - 1: virtual HV timer > + - 2: physical guest timer > + - 3: vi

Re: [PATCH -next] fs: libfs: fix kernel-doc for mnt_userns

2021-02-16 Thread Christian Brauner
On Tue, Feb 16, 2021 at 09:48:25AM +0100, Christoph Hellwig wrote: > On Mon, Feb 15, 2021 at 08:29:27PM -0800, Randy Dunlap wrote: > > Fix kernel-doc warning in libfs.c. > > > > ../fs/libfs.c:498: warning: Function parameter or member 'mnt_userns' not > > described in 'simple_setattr' > > Should

Re: [PATCH V3 11/14] coresight: sink: Add TRBE driver

2021-02-16 Thread Anshuman Khandual
Hello Mike, On 2/16/21 2:30 PM, Mike Leach wrote: > Hi Anshuman, > > There have been plenty of detailed comments so I will restrict mine to > a few general issues:- > > 1) Currently there appears to be no sysfs support (I cannot see the > MODE_SYSFS constants running alongside the MODE_PERF ones

[RFC PATCH 01/10] vdpa: add get_config_size callback in vdpa_config_ops

2021-02-16 Thread Stefano Garzarella
This new callback is used to get the size of the configuration space of vDPA devices. Signed-off-by: Stefano Garzarella --- include/linux/vdpa.h | 4 drivers/vdpa/ifcvf/ifcvf_main.c | 6 ++ drivers/vdpa/mlx5/net/mlx5_vnet.c | 6 ++ drivers/vdpa/vdpa_sim/vdpa_sim.c |

[GIT PULL] Hyper-V commits for 5.12

2021-02-16 Thread Wei Liu
Hi Linus, The following changes since commit 6ee1d745b7c9fd573fba142a2efdad76a9f1cb04: Linux 5.11-rc5 (2021-01-24 16:47:14 -0800) are available in the Git repository at: ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git tags/hyperv-next-signed-20210216 for you to

[RFC PATCH 02/10] vdpa: check vdpa_get_config() parameters and return bytes read

2021-02-16 Thread Stefano Garzarella
Now we have the 'get_config_size()' callback available, so we can check that 'offset' and 'len' parameters are valid. When these exceed boundaries, we limit the reading to the available configuration space in the device, and we return the amount of bytes read. We also move vdpa_get_config() imple

[RFC PATCH 00/10] vdpa: get/set_config() rework

2021-02-16 Thread Stefano Garzarella
Following the discussion with Michael and Jason [1], I reworked a bit get/set_config() in vdpa. I changed vdpa_get_config() to check the boundaries and added vdpa_set_config(). When 'offset' or 'len' parameters exceed boundaries, we limit the reading to the available configuration space in the dev

[RFC PATCH 03/10] vdpa: add vdpa_set_config() helper

2021-02-16 Thread Stefano Garzarella
Let's add a function similar to vpda_get_config() to check the 'offset' and 'len' parameters, call the set_config() device callback, and return the amount of bytes written. Signed-off-by: Stefano Garzarella --- include/linux/vdpa.h | 2 ++ drivers/vdpa/vdpa.c | 16 2 files cha

[RFC PATCH 04/10] vdpa: remove param checks in the get/set_config callbacks

2021-02-16 Thread Stefano Garzarella
vdpa_get_config() and vdpa_set_config() now check parameters before calling callbacks, so we can remove these redundant checks. Signed-off-by: Stefano Garzarella --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 3 +-- drivers/vdpa/vdpa_sim/vdpa_sim.c | 6 -- 2 files changed, 1 insertion(+), 8 deleti

[RFC PATCH 05/10] vdpa: remove WARN_ON() in the get/set_config callbacks

2021-02-16 Thread Stefano Garzarella
vdpa_get_config() and vdpa_set_config() now check parameters before calling callbacks, so we can remove these warnings. Signed-off-by: Stefano Garzarella --- Maybe we can skip this patch and leave the WARN_ONs in place. What do you recommend? --- drivers/vdpa/ifcvf/ifcvf_base.c | 3 +-- drivers/

[RFC PATCH 06/10] virtio_vdpa: use vdpa_set_config()

2021-02-16 Thread Stefano Garzarella
Instead of calling the 'set_config' callback directly, we call the new vdpa_set_config() helper which also checks the parameters. Signed-off-by: Stefano Garzarella --- drivers/virtio/virtio_vdpa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/virtio/virtio_vdpa.c

[RFC PATCH 07/10] vhost/vdpa: use vdpa_set_config()

2021-02-16 Thread Stefano Garzarella
Instead of calling the 'set_config' callback directly, we call the new vdpa_set_config() helper which also checks the parameters. Signed-off-by: Stefano Garzarella --- drivers/vhost/vdpa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/

linux-next: build warnings after merge of the nvdimm tree

2021-02-16 Thread Stephen Rothwell
Hi all, After merging the nvdimm tree, today's linux-next build (htmldocs) produced these warnings: Documentation/driver-api/cxl/memory-devices:112: /home/sfr/next/next/drivers/cxl/mem.c:474: WARNING: Inline literal start-string without end-string. Documentation/driver-api/cxl/memory-devices:11

[RFC PATCH 08/10] vhost/vdpa: allow user space to pass buffers bigger than config space

2021-02-16 Thread Stefano Garzarella
vdpa_get_config() and vdpa_set_config() now are able to read/write only the bytes available in the device configuration space, also if the buffer provided is bigger than that. Let's use this feature to allow the user space application to pass any buffer. We limit the size of the internal bounce bu

[RFC PATCH 09/10] vhost/vdpa: use get_config_size callback in vhost_vdpa_config_validate()

2021-02-16 Thread Stefano Garzarella
Let's use the new 'get_config_size()' callback available instead of using the 'virtio_id' to get the size of the device config space. Signed-off-by: Stefano Garzarella --- drivers/vhost/vdpa.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/vhost/vdpa.c b/dri

[RFC PATCH 10/10] vhost/vdpa: return configuration bytes read and written to user space

2021-02-16 Thread Stefano Garzarella
vdpa_get_config() and vdpa_set_config() now return the amount of bytes read and written, so let's return them to the user space. We also modify vhost_vdpa_config_validate() to return 0 (bytes read or written) instead of an error, when the buffer length is 0. Signed-off-by: Stefano Garzarella ---

[PATCH 1/3] arm64: dts: qcom: sm8250: Fix level triggered PMU interrupt polarity

2021-02-16 Thread Sai Prakash Ranjan
As per interrupt documentation for SM8250 SoC, the polarity for level triggered PMU interrupt is low, fix this. Fixes: 60378f1a171e ("arm64: dts: qcom: sm8250: Add sm8250 dts file") Signed-off-by: Sai Prakash Ranjan --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +- 1 file changed, 1 insertion(+),

[PATCH 0/3] arm64: dts: qcom: Fix PMU and timer interrupt properties

2021-02-16 Thread Sai Prakash Ranjan
Fix PMU interrupt polarity for SM8250 and SM8350 SoCs and the timer interrupt property for SM8250 SoC. Sai Prakash Ranjan (3): arm64: dts: qcom: sm8250: Fix level triggered PMU interrupt polarity arm64: dts: qcom: sm8350: Fix level triggered PMU interrupt polarity arm64: dts: qcom: sm8250: F

[PATCH 3/3] arm64: dts: qcom: sm8250: Fix timer interrupt to specify EL2 physical timer

2021-02-16 Thread Sai Prakash Ranjan
ARM architected timer interrupts DT property specifies EL2/HYP physical interrupt and not EL2/HYP virtual interrupt for the 4th interrupt property. As per interrupt documentation for SM8250 SoC, the EL2/HYP physical timer interrupt is 10 and EL2/HYP virtual timer interrupt is 12, so fix the 4th tim

[PATCH 2/3] arm64: dts: qcom: sm8350: Fix level triggered PMU interrupt polarity

2021-02-16 Thread Sai Prakash Ranjan
As per interrupt documentation for SM8350 SoC, the polarity for level triggered PMU interrupt is low, fix this. Fixes: b7e8f433a673 ("arm64: dts: qcom: Add basic devicetree support for SM8350 SoC") Signed-off-by: Sai Prakash Ranjan --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 2 +- 1 file changed

Re: smpboot: CPU numbers printed as warning

2021-02-16 Thread Petr Mladek
On Mon 2021-02-15 20:22:34, Paul Menzel wrote: > Dear Linux folks, > > > 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=warn > [0.216103] #2 > [0.220105] #3 > [0.22

Re: [PATCH v2] fs: ubifs: set s_uuid in super block to support ima/evm uuid options

2021-02-16 Thread Stephen Rothwell
Hi Andy, On Tue, 16 Feb 2021 11:11:08 +0200 Andy Shevchenko wrote: > > Stephen, do you have a check in Linux Next to catch the problem that > Co-developed-by is not being accompanied by a corresponding SoB? No, but I will see about adding one. Thanks fo rthe heads up. -- Cheers, Stephen Roth

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

2021-02-16 Thread Peter Zijlstra
On Mon, Feb 15, 2021 at 12:23:52PM -0300, André Almeida wrote: > Create a new set of futex syscalls known as futex2. This new interface > is aimed to implement a more maintainable code, while removing obsolete > features and expanding it with new functionalities. > > Implements wait and wake seman

Re: [net-next PATCH v5 15/15] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver

2021-02-16 Thread Calvin Johnson
On Mon, Feb 15, 2021 at 05:15:36PM +0200, Andy Shevchenko wrote: > On Mon, Feb 15, 2021 at 5:13 PM Andy Shevchenko > wrote: > > > > On Mon, Feb 15, 2021 at 2:33 PM Calvin Johnson > > wrote: > > > On Mon, Feb 08, 2021 at 04:28:31PM +, Russell King - ARM Linux admin > > > wrote: > > > > ... >

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

2021-02-16 Thread Tom Hebb
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 avoid racing on a z3fold 'headless' page > > release." By atomically te

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

2021-02-16 Thread Peter Zijlstra
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 to decide whether we can do this, and how much softirq processing >

Re: linux-next: manual merge of the net-next tree with the arm-soc tree

2021-02-16 Thread Arnd Bergmann
On Tue, Feb 16, 2021 at 3:20 AM wrote: > > > > I fixed it up (see below) and can carry the fix as necessary. This > > is now fixed as far as linux-next is concerned, but any non trivial > > conflicts should be mentioned to your upstream maintainer when your tree > > is submitted for merging. You

  1   2   3   4   5   6   7   8   9   10   >