Re: [RFC 2/7] ath10k: Add support to process rx packet in thread

2021-03-25 Thread Felix Fietkau
On 2021-03-25 10:45, Rakesh Pillai wrote: > Hi Felix / Ben, > > In case of ath10k (snoc based targets), we have a lot of processing in the > NAPI context. > Even moving this to threaded NAPI is not helping much due to the load. > > Breaking the tasks into multiple context (with the patch serie

Re: [PATCH v3 12/17] arm64: implement __va_function

2021-03-25 Thread Mark Rutland
On Tue, Mar 23, 2021 at 01:39:41PM -0700, Sami Tolvanen wrote: > With CONFIG_CFI_CLANG, the compiler replaces function addresses in > instrumented C code with jump table addresses. This change implements > the __va_function() macro, which returns the actual function address > instead. > > Signed-o

[PATCH v2 6/7] scripts: get_abi: ignore code blocks for cross-references

2021-03-25 Thread Mauro Carvalho Chehab
The script should not generate cross-references inside literal blocks. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 19 +++ 1 file changed, 19 insertions(+) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index e5d1da492c1e..d7aa82094296 100755 --- a/script

[PATCH v2 3/6] perf pmu: Add pmu_events_map__find()

2021-03-25 Thread John Garry
Add a function to find the common PMU map for the system. For arm64, a special variant is added. This is because arm64 supports heterogeneous CPU systems. As such, it cannot be guaranteed that the cpumap is same for all CPUs. So in case of heterogeneous systems, don't return a cpumap. Signed-off-

[PATCH v2 2/6] perf test: Handle metric reuse in pmu-events parsing test

2021-03-25 Thread John Garry
The pmu-events parsing test does not handle metric reuse at all. Introduce some simple handling to resolve metrics who reference other metrics. Signed-off-by: John Garry --- tools/perf/tests/pmu-events.c | 80 +++ 1 file changed, 80 insertions(+) diff --git a/to

[PATCH v2 2/7] get_abi.pl: seek for all occurrences for Documentation/ABI

2021-03-25 Thread Mauro Carvalho Chehab
Instead of retrieving just one match at most, ensure that the entire description will be parsed. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index a9348b9bdaa4..3c82cd18836

[PATCH v2 4/7] scripts: get_abi.pl: extend xref match to other types

2021-03-25 Thread Mauro Carvalho Chehab
Currently, there are "What:" symbols for more than just /sys. Extend the regex to also cover configfs, /proc /dev and /kvd symbols. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get_abi.pl b/scripts/get_ab

[PATCH] mtd: rawnand: nand_bbt: Skip bad blocks when searching for the BBT in NAND

2021-03-25 Thread Stefan Riedmueller
The blocks containing the bad block table can become bad as well. So make sure to skip any blocks that are marked bad when searching for the bad block table. Otherwise in very rare cases where two BBT blocks wear out it might happen that an obsolete BBT is used instead of a newer available version

[PATCH v2 5/7] scripts: get_abi.pl: parse description line per line

2021-03-25 Thread Mauro Carvalho Chehab
Change the description parsing logic in rst mode in order to parse it line per line. The end result is the same, but doing line per line allows to add some code to escape literal blocks when seeking for cross-references. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 47 +

[PATCH v2 7/7] ABI: sysfs-kernel-mm-cma: fix two cross-references

2021-03-25 Thread Mauro Carvalho Chehab
Change the text in order to generate cross-references for alloc_pages_success and alloc_pages_fail symbols. Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/testing/sysfs-kernel-mm-cma | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Documentation/ABI/testing

[PATCH v2 5/6] perf vendor events arm64: Add Hisi hip08 L2 metrics

2021-03-25 Thread John Garry
Add L2 metrics. Signed-off-by: John Garry --- .../arch/arm64/hisilicon/hip08/metrics.json | 42 +++ 1 file changed, 42 insertions(+) diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/metrics.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/metrics.json inde

[PATCH v2 6/6] perf vendor events arm64: Add Hisi hip08 L3 metrics

2021-03-25 Thread John Garry
Add L3 metrics. Signed-off-by: John Garry --- .../arch/arm64/hisilicon/hip08/metrics.json | 161 ++ 1 file changed, 161 insertions(+) diff --git a/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/metrics.json b/tools/perf/pmu-events/arch/arm64/hisilicon/hip08/metrics.json ind

[PATCH v2 1/6] perf metricgroup: Make find_metric() public with name change

2021-03-25 Thread John Garry
Function find_metric() is required for the metric processing in the pmu-events testcase, so make it public. Also change the name to include "metricgroup". Signed-off-by: John Garry --- tools/perf/util/metricgroup.c | 5 +++-- tools/perf/util/metricgroup.h | 3 ++- 2 files changed, 5 insertions(+

[PATCH v2 0/6] perf arm64 metricgroup support

2021-03-25 Thread John Garry
This series contains support to get basic metricgroups working for arm64 CPUs. Initial support is added for HiSilicon hip08 platform. Some sample usage on Huawei D06 board: $ ./perf list metric List of pre-defined events (to be used in -e): Metrics: bp_misp_flush [BP misp

[PATCH v2 4/6] perf vendor events arm64: Add Hisi hip08 L1 metrics

2021-03-25 Thread John Garry
Add L1 metrics. Formula is as consistent as possible with MAN pages description for these metrics. Signed-off-by: John Garry --- .../arch/arm64/hisilicon/hip08/metrics.json | 30 +++ 1 file changed, 30 insertions(+) create mode 100644 tools/perf/pmu-events/arch/arm64/hisilico

[PATCH v2 0/7] Fix some issues at get_abi.pl script

2021-03-25 Thread Mauro Carvalho Chehab
This series replace this patch: https://lore.kernel.org/linux-doc/20210324191722.08d35...@coco.lan/T/#t It turns that there were multiple bugs at the get_abi.pl code that create cross-references. Patches 1 to 6 fix those issues, and should apply cleanly on the top of the docs tree (althou

Re: [RFC PATCH v7 16/22] virtio/vsock: setup SEQPACKET ops for transport

2021-03-25 Thread Stefano Garzarella
On Tue, Mar 23, 2021 at 04:14:03PM +0300, Arseny Krasnov wrote: This adds SEQPACKET ops for virtio transport and 'seqpacket_allow()' callback. Signed-off-by: Arseny Krasnov --- net/vmw_vsock/virtio_transport.c | 12 1 file changed, 12 insertions(+) Sorry for not mentioning this in

Re: [PATCH v2 1/1] leds: lgm: Improve Kconfig help

2021-03-25 Thread Pavel Machek
Hi! > Remove unnecessary Kconfig symbol LEDS_BLINK > Improve Kconfig help text to make it more useful. > > Signed-off-by: Rahul Tanwar Thanks for the patch, I applied it by hand. > +++ b/drivers/leds/blink/leds-lgm-sso.c > @@ -1,8 +1,8 @@ > // SPDX-License-Identifier: GPL-2.0 > /* > - * Inte

Re: [RFC PATCH v7 17/22] vhost/vsock: setup SEQPACKET ops for transport

2021-03-25 Thread Stefano Garzarella
On Tue, Mar 23, 2021 at 04:14:18PM +0300, Arseny Krasnov wrote: This also removes ignore of non-stream type of packets and adds 'seqpacket_allow()' callback. Signed-off-by: Arseny Krasnov --- drivers/vhost/vsock.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) Same thin

Re: [net-next PATCH 0/8] configuration support for switch headers & phy

2021-03-25 Thread Sunil Kovvuri
> > > Hi Hariprasad > > > > > > Private flags sound very wrong here. I would expect to see some > > > integration > > > between the switchdev/DSA driver and the MAC driver. > > > Please show how this works in combination with drivers/net/dsa/mv88e6xxx > > > or drivers/net/ethernet/marvell/prestera

Re: [PATCH 5.10 000/150] 5.10.26-rc3 review

2021-03-25 Thread Andrei Rabusov
On Wed, 24 Mar 2021 10:40:21 +0100 Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.26 release. > There are 150 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, > please let me know. >

Re: [PATCH 3/8] hugetlb: add per-hstate mutex to synchronize user adjustments

2021-03-25 Thread Michal Hocko
On Wed 24-03-21 17:28:30, Mike Kravetz wrote: > The helper routine hstate_next_node_to_alloc accesses and modifies the > hstate variable next_nid_to_alloc. The helper is used by the routines > alloc_pool_huge_page and adjust_pool_surplus. adjust_pool_surplus is > called with hugetlb_lock held. H

Re: [PATCH V3] ALSA: pcm: Fix couple of typos

2021-03-25 Thread Takashi Iwai
On Thu, 25 Mar 2021 10:56:39 +0100, Bhaskar Chowdhury wrote: > > On 10:37 Thu 25 Mar 2021, Takashi Iwai wrote: > >On Thu, 25 Mar 2021 10:06:09 +0100, > >Bhaskar Chowdhury wrote: > >> > >> s/unconditonally/unconditionally/ > >> s/succesful/successful/ > >> > >> Signed-off-by: Bhaskar Chowdhury > >

Re: [RFC PATCH v7 18/22] vsock/loopback: setup SEQPACKET ops for transport

2021-03-25 Thread Stefano Garzarella
On Tue, Mar 23, 2021 at 04:14:33PM +0300, Arseny Krasnov wrote: This adds SEQPACKET ops for loopback transport and 'seqpacket_allow()' callback. Signed-off-by: Arseny Krasnov --- net/vmw_vsock/vsock_loopback.c | 12 1 file changed, 12 insertions(+) Reviewed-by: Stefano Garzarella

Re: [PATCH 4/8] hugetlb: create remove_hugetlb_page() to separate functionality

2021-03-25 Thread Michal Hocko
On Wed 24-03-21 17:28:31, Mike Kravetz wrote: > The new remove_hugetlb_page() routine is designed to remove a hugetlb > page from hugetlbfs processing. It will remove the page from the active > or free list, update global counters and set the compound page > destructor to NULL so that PageHuge() w

Re: [PATCH] staging: greybus: fix fw is NULL but dereferenced

2021-03-25 Thread Dan Carpenter
The commit description is not clear but this patch doesn't change how the code works, it just silences a static checker false positive. Just ignore the false positive. Always just ignore static checkers when they are wrong. regards, dan carpenter

Re: [PATCH] staging: greybus: fix fw is NULL but dereferenced

2021-03-25 Thread Viresh Kumar
On 25-03-21, 18:19, Jian Dong wrote: > From: Jian Dong > > fixes coccicheck Error: > > drivers/staging/greybus/bootrom.c:301:41-45: ERROR: > fw is NULL but dereferenced. > > if procedure goto label directly, ret will be nefative, so the fw is NULL > and the if(condition) end with dereferen

Re: [PATCH] x86/tlb: Flush global mappings when KAISER is disabled

2021-03-25 Thread Paolo Bonzini
On 25/03/21 11:29, Borislav Petkov wrote: diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h index f5ca15622dc9..2bfa4deb8cae 100644 --- a/arch/x86/include/asm/tlbflush.h +++ b/arch/x86/include/asm/tlbflush.h @@ -245,12 +245,15 @@ static inline void __native_flush_tlb_

Re: [RFC PATCH v7 00/22] virtio/vsock: introduce SOCK_SEQPACKET support

2021-03-25 Thread Stefano Garzarella
Hi Arseny, On Tue, Mar 23, 2021 at 04:07:13PM +0300, Arseny Krasnov wrote: This patchset implements support of SOCK_SEQPACKET for virtio transport. As SOCK_SEQPACKET guarantees to save record boundaries, so to do it, two new packet operations were added: first for start of record

RE: [PATCH v4 08/11] evm: Allow setxattr() and setattr() for unmodified metadata

2021-03-25 Thread Roberto Sassu
> From: Roberto Sassu > Sent: Friday, March 5, 2021 4:19 PM > With the patch to allow xattr/attr operations if a portable signature > verification fails, cp and tar can copy all xattrs/attrs so that at the > end of the process verification succeeds. > > However, it might happen that the xattrs/att

Re: [PATCH 1/2] media: videobuf2: use dmabuf size for length

2021-03-25 Thread Laurent Pinchart
Hi Helen, On Wed, Mar 24, 2021 at 09:17:11PM -0300, Helen Koike wrote: > Always use dmabuf size when considering the length of the buffer. > Discard userspace provided length. > Fix length check error in _verify_length(), which was handling single and > multiplanar diferently, and also not catchin

Re: [RFC Part1 PATCH 01/13] x86/cpufeatures: Add SEV-SNP CPU feature

2021-03-25 Thread Borislav Petkov
On Wed, Mar 24, 2021 at 11:44:12AM -0500, Brijesh Singh wrote: > Add CPU feature detection for Secure Encrypted Virtualization with > Secure Nested Paging. This feature adds a strong memory integrity > protection to help prevent malicious hypervisor-based attacks like > data replay, memory re-mappi

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

2021-03-25 Thread Oscar Salvador
On Thu, Mar 25, 2021 at 10:17:33AM +0100, Michal Hocko wrote: > Why do you think it is wrong to initialize/account pages when they are > used? Keep in mind that offline pages are not used until they are > onlined. But vmemmap pages are used since the vmemmap is established > which happens in the ho

Re: [PATCH 5/8] hugetlb: call update_and_free_page without hugetlb_lock

2021-03-25 Thread Michal Hocko
On Wed 24-03-21 17:28:32, Mike Kravetz wrote: > With the introduction of remove_hugetlb_page(), there is no need for > update_and_free_page to hold the hugetlb lock. Change all callers to > drop the lock before calling. > > With additional code modifications, this will allow loops which decrease

Re: [PATCH v2] infiniband: Fix a use after free in isert_connect_request

2021-03-25 Thread Max Gurtovoy
On 3/22/2021 6:13 PM, Lv Yunlong wrote: The device is got by isert_device_get() with refcount is 1, and is assigned to isert_conn by isert_conn->device = device. When isert_create_qp() failed, device will be freed with isert_device_put(). Later, the device is used in isert_free_login_buf(isert

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

2021-03-25 Thread Joakim Tjernlund
On Wed, 2021-03-24 at 13:49 +0100, Takashi Iwai wrote: > On Wed, 24 Mar 2021 13:03:14 +0100, > Ikjoon Jang wrote: > > > > On Wed, Mar 24, 2021, 7:16 PM Joakim Tjernlund > > > > wrote: > > > > The Logitech devices with 046d:* should be covered generally in > snd_usb_ctl_msg_quirk(), so I guess

Re: [PATCH] staging: greybus: fix fw is NULL but dereferenced

2021-03-25 Thread Jian Dong
On Thu, 25 Mar 2021 11:29:06 +0100 Greg KH wrote: > On Thu, Mar 25, 2021 at 06:19:26PM +0800, Jian Dong wrote: > > From: Jian Dong > > > > fixes coccicheck Error: > > > > drivers/staging/greybus/bootrom.c:301:41-45: ERROR: > > fw is NULL but dereferenced. > > > > if procedure goto label d

Re: [PATCH 6/8] hugetlb: change free_pool_huge_page to remove_pool_huge_page

2021-03-25 Thread Michal Hocko
On Wed 24-03-21 17:28:33, Mike Kravetz wrote: [...] > @@ -2074,17 +2067,16 @@ static int gather_surplus_pages(struct hstate *h, > long delta) > *to the associated reservation map. > * 2) Free any unused surplus pages that may have been allocated to satisfy > *the reservation. As man

Re: [PATCH v2 00/12] Add build ID to stacktraces

2021-03-25 Thread peter enderborg
On 3/24/21 9:55 AM, Christoph Hellwig wrote: > On Tue, Mar 23, 2021 at 07:04:31PM -0700, Stephen Boyd wrote: >> x5 : x4 : 0001 >> x3 : 0008 x2 : ff93fef25a70 >> x1 : ff93fef15788 x0 : ffe3622352e0 >> Call trace: >> lkdtm_WARNING+0x28/0x30 [

[tip: locking/core] locking/mutex: Remove repeated declaration

2021-03-25 Thread tip-bot2 for Shaokun Zhang
The following commit has been merged into the locking/core branch of tip: Commit-ID: 8af856d18bfbe89676ade38caa2a5d06f75f211d Gitweb: https://git.kernel.org/tip/8af856d18bfbe89676ade38caa2a5d06f75f211d Author:Shaokun Zhang AuthorDate:Wed, 24 Mar 2021 13:40:40 +08:00 Commit

[tip: sched/core] sched/topology: Remove redundant cpumask_and() in init_overlap_sched_group()

2021-03-25 Thread tip-bot2 for Barry Song
The following commit has been merged into the sched/core branch of tip: Commit-ID: 0a2b65c03e9b47493e1442bf9c84badc60d9bffb Gitweb: https://git.kernel.org/tip/0a2b65c03e9b47493e1442bf9c84badc60d9bffb Author:Barry Song AuthorDate:Thu, 25 Mar 2021 15:31:40 +13:00 Committer:

[tip: sched/core] sched/core: Stop using magic values in sched_dynamic_mode()

2021-03-25 Thread tip-bot2 for Rasmus Villemoes
The following commit has been merged into the sched/core branch of tip: Commit-ID: 7e1b2eb74928b2478fd0630ce6c664334b480d00 Gitweb: https://git.kernel.org/tip/7e1b2eb74928b2478fd0630ce6c664334b480d00 Author:Rasmus Villemoes AuthorDate:Thu, 25 Mar 2021 01:45:14 +01:00 Commi

[tip: x86/core] x86/kprobes: Fix to identify indirect jmp and others using range case

2021-03-25 Thread tip-bot2 for Masami Hiramatsu
The following commit has been merged into the x86/core branch of tip: Commit-ID: 2f706e0e5e263c0d204e37ea496cbb0e98aac2d2 Gitweb: https://git.kernel.org/tip/2f706e0e5e263c0d204e37ea496cbb0e98aac2d2 Author:Masami Hiramatsu AuthorDate:Thu, 25 Mar 2021 19:08:43 +09:00 Committ

[tip: sched/core] sched/core: Use -EINVAL in sched_dynamic_mode()

2021-03-25 Thread tip-bot2 for Rasmus Villemoes
The following commit has been merged into the sched/core branch of tip: Commit-ID: c4681f3f1cfcfde0c95ff72f0bdb43f9ffd7f00e Gitweb: https://git.kernel.org/tip/c4681f3f1cfcfde0c95ff72f0bdb43f9ffd7f00e Author:Rasmus Villemoes AuthorDate:Thu, 25 Mar 2021 01:45:15 +01:00 Commi

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

2021-03-25 Thread David Hildenbrand
On 25.03.21 11:55, Oscar Salvador wrote: On Thu, Mar 25, 2021 at 10:17:33AM +0100, Michal Hocko wrote: Why do you think it is wrong to initialize/account pages when they are used? Keep in mind that offline pages are not used until they are onlined. But vmemmap pages are used since the vmemmap is

[tip: x86/core] x86/kprobes: Fix to check non boostable prefixes correctly

2021-03-25 Thread tip-bot2 for Masami Hiramatsu
The following commit has been merged into the x86/core branch of tip: Commit-ID: 6dd3b8c9f58816a1354be39559f630cd1bd12159 Gitweb: https://git.kernel.org/tip/6dd3b8c9f58816a1354be39559f630cd1bd12159 Author:Masami Hiramatsu AuthorDate:Thu, 25 Mar 2021 19:08:31 +09:00 Committ

[PATCH] [v2] drivers: gpu: drm: Remove duplicate declaration

2021-03-25 Thread Wan Jiabing
struct dss_device has been declared. Remove the duplicate. And sort these forward declarations alphabetically. Signed-off-by: Wan Jiabing --- Changelog: v2: - Sort forward declarations alphabetically. --- drivers/gpu/drm/omapdrm/dss/omapdss.h | 9 - 1 file changed, 4 insertions(+), 5 del

Re: [PATCH v5 9/9] dt-bindings: serial: stm32: Use 'type: object' instead of false for 'additionalProperties'

2021-03-25 Thread Valentin CARON - foss
Hi Dillon, It's okay for me. Regards, Valentin On 3/25/21 7:19 AM, dillon.min...@gmail.com wrote: > From: dillon min > > To use additional properties 'bluetooth' on serial, need replace false with > 'type: object' for 'additionalProperties' to make it as a node, else will > run into dtbs_check

Re: [PATCH v6 00/38] KVM: arm64: Stage-2 for the host

2021-03-25 Thread Marc Zyngier
On Fri, 19 Mar 2021 10:01:08 +, Quentin Perret wrote: > This is the v6 of the series previously posted here: > > https://lore.kernel.org/r/20210315143536.214621-1-qper...@google.com/ > > This basically allows us to wrap the host with a stage 2 when running in > nVHE, hence paving the way fo

Re: [PATCH v2 00/12] Add build ID to stacktraces

2021-03-25 Thread peter enderborg
On 3/24/21 3:04 AM, Stephen Boyd wrote: > This series adds the kernel's build ID[1] to the stacktrace header printed > in oops messages, warnings, etc. and the build ID for any module that > appears in the stacktrace after the module name. The goal is to make the > stacktrace more self-contained an

Re: [PATCH v3 4/4] riscv: Convert custom spinlock/rwlock to generic qspinlock/qrwlock

2021-03-25 Thread kernel test robot
Hi, Thank you for the patch! Yet something to improve: [auto build test ERROR on tip/locking/core] [also build test ERROR on linux/master linus/master v5.12-rc4 next-20210325] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH v4 2/4] dt-bindings: power: rockchip: Convert to json-schema

2021-03-25 Thread Enric Balletbo Serra
Hi Elaine, Missatge de elaine.zhang del dia dj., 25 de març 2021 a les 7:43: > > Hi,Heiko: > > 在 2021/3/24 下午9:31, Heiko Stübner 写道: > > Am Mittwoch, 24. März 2021, 11:32:42 CET schrieb Enric Balletbo i Serra: > >> On 24/3/21 11:25, Enric Balletbo i Serra wrote: > >>> Hi Elaine, > >>> > >>> On 24

Re: [PATCH v2] kbuild: enforce -Werror=unused-result

2021-03-25 Thread Olaf Hering
Am Fri, 19 Mar 2021 15:32:31 +0100 schrieb Olaf Hering : > It is a hard error if a return value is ignored. The automated builds found only a single error, in load_em86(). Let me know if there are other reasons why the patch was rejected. Olaf pgpwH6ihF0muQ.pgp Description: Digitale Signatur

Re: (subset) [PATCH 1/2] arm64/process.c: fix Wmissing-prototypes build warnings

2021-03-25 Thread Will Deacon
On Wed, 24 Mar 2021 12:24:58 +0530, Maninder Singh wrote: > function protypes are missed before defination, which > leads to compilation warning with "-Wmissing-prototypes" > flag. > > https://lkml.org/lkml/2021/3/19/840 > > arch/arm64/kernel/process.c:261:6: warning: no previous prototype for >

Re: [PATCH 7/8] hugetlb: make free_huge_page irq safe

2021-03-25 Thread Michal Hocko
On Wed 24-03-21 17:28:34, Mike Kravetz wrote: > Commit c77c0a8ac4c5 ("mm/hugetlb: defer freeing of huge pages if in > non-task context") was added to address the issue of free_huge_page > being called from irq context. That commit hands off free_huge_page > processing to a workqueue if !in_task.

Re: [PATCH 8/8] hugetlb: add lockdep_assert_held() calls for hugetlb_lock

2021-03-25 Thread Michal Hocko
On Wed 24-03-21 17:28:35, Mike Kravetz wrote: > After making hugetlb lock irq safe and separating some functionality > done under the lock, add some lockdep_assert_held to help verify > locking. > > Signed-off-by: Mike Kravetz Acked-by: Michal Hocko > --- > mm/hugetlb.c | 9 + > 1 fil

Re: [PATCH v2 6/7] cmdline: Gives architectures opportunity to use generically defined boot cmdline manipulation

2021-03-25 Thread Christophe Leroy
Le 03/03/2021 à 18:57, Will Deacon a écrit : On Tue, Mar 02, 2021 at 05:25:22PM +, Christophe Leroy wrote: Most architectures have similar boot command line manipulation options. This patchs adds the definition in init/Kconfig, gated by CONFIG_HAVE_CMDLINE that the architectures can selec

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

2021-03-25 Thread Oscar Salvador
On Thu, Mar 25, 2021 at 12:08:43PM +0100, David Hildenbrand wrote: > As I said, having soemthing like > memory_block_online()/memory_block_offline() could be one way to tackle it. > We only support onlining/offlining of memory blocks and I ripped out all > code that was abusing online_pages/offline

[PATCH AUTOSEL 5.11 01/44] virtiofs: Fail dax mount if device does not support it

2021-03-25 Thread Sasha Levin
From: Vivek Goyal [ Upstream commit 3f9b9efd82a84f27e95d0414f852caf1fa839e83 ] Right now "mount -t virtiofs -o dax myfs /mnt/virtiofs" succeeds even if filesystem deivce does not have a cache window and hence DAX can't be supported. This gives a false sense to user that they are using DAX with

[PATCH AUTOSEL 5.11 02/44] ext4: shrink race window in ext4_should_retry_alloc()

2021-03-25 Thread Sasha Levin
From: Eric Whitney [ Upstream commit efc61345274d6c7a46a0570efbc916fcbe3e927b ] When generic/371 is run on kvm-xfstests using 5.10 and 5.11 kernels, it fails at significant rates on the two test scenarios that disable delayed allocation (ext3conv and data_journal) and force actual block allocati

[PATCH AUTOSEL 5.11 03/44] ext4: add reclaim checks to xattr code

2021-03-25 Thread Sasha Levin
From: Jan Kara [ Upstream commit 163f0ec1df33cf468509ff38cbcbb5eb0d7fac60 ] Syzbot is reporting that ext4 can enter fs reclaim from kvmalloc() while the transaction is started like: fs_reclaim_acquire+0x117/0x150 mm/page_alloc.c:4340 might_alloc include/linux/sched/mm.h:193 [inline] slab_

[PATCH AUTOSEL 5.11 07/44] rpc: fix NULL dereference on kmalloc failure

2021-03-25 Thread Sasha Levin
From: "J. Bruce Fields" [ Upstream commit 0ddc942394013f08992fc379ca04cffacbbe3dae ] I think this is unlikely but possible: svc_authenticate sets rq_authop and calls svcauth_gss_accept. The kmalloc(sizeof(*svcdata), GFP_KERNEL) fails, leaving rq_auth_data NULL, and returning SVC_DENIED. This

[PATCH AUTOSEL 5.11 08/44] iomap: Fix negative assignment to unsigned sis->pages in iomap_swapfile_activate

2021-03-25 Thread Sasha Levin
From: Ritesh Harjani [ Upstream commit 5808fecc572391867fcd929662b29c12e6d08d81 ] In case if isi.nr_pages is 0, we are making sis->pages (which is unsigned int) a huge value in iomap_swapfile_activate() by assigning -1. This could cause a kernel crash in kernel v4.18 (with below signature). Or c

[PATCH AUTOSEL 5.11 11/44] ASoC: rt5651: Fix dac- and adc- vol-tlv values being off by a factor of 10

2021-03-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit eee51df776bd6cac10a76b2779a9fdee3f622b2b ] The adc_vol_tlv volume-control has a range from -17.625 dB to +30 dB, not -176.25 dB to + 300 dB. This wrong scale is esp. a problem in userspace apps which translate the dB scale to a linear scale. With the logarit

[PATCH AUTOSEL 5.11 05/44] ext4: fix bh ref count on error paths

2021-03-25 Thread Sasha Levin
From: Zhaolong Zhang [ Upstream commit c915fb80eaa6194fa9bd0a4487705cd5b0dda2f1 ] __ext4_journalled_writepage should drop bhs' ref count on error paths Signed-off-by: Zhaolong Zhang Link: https://lore.kernel.org/r/1614678151-70481-1-git-send-email-zhangzl2...@126.com Signed-off-by: Theodore T

[PATCH AUTOSEL 5.11 10/44] ASoC: rt5640: Fix dac- and adc- vol-tlv values being off by a factor of 10

2021-03-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit cfa26ed1f9f885c2fd8f53ca492989d1e16d0199 ] The adc_vol_tlv volume-control has a range from -17.625 dB to +30 dB, not -176.25 dB to + 300 dB. This wrong scale is esp. a problem in userspace apps which translate the dB scale to a linear scale. With the logarit

[PATCH AUTOSEL 5.11 04/44] fs/ext4: fix integer overflow in s_log_groups_per_flex

2021-03-25 Thread Sasha Levin
From: Sabyrzhan Tasbolatov [ Upstream commit f91436d55a279f045987e8b8c1385585dca54be9 ] syzbot found UBSAN: shift-out-of-bounds in ext4_mb_init [1], when 1 << sbi->s_es->s_log_groups_per_flex is bigger than UINT_MAX, where sbi->s_mb_prefetch is unsigned integer type. 32 is the maximum allowed p

[PATCH AUTOSEL 5.11 09/44] ASoC: rt1015: fix i2c communication error

2021-03-25 Thread Sasha Levin
From: Jack Yu [ Upstream commit 9e0bdaa9fcb8c64efc1487a7fba07722e7bc515e ] Remove 0x100 cache re-sync to solve i2c communication error. Signed-off-by: Jack Yu Link: https://lore.kernel.org/r/20210222090057.29532-1-jack...@realtek.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.11 06/44] fs: nfsd: fix kconfig dependency warning for NFSD_V4

2021-03-25 Thread Sasha Levin
From: Julian Braha [ Upstream commit 7005227369079963d25fb2d5d736d0feb2c44cf6 ] When NFSD_V4 is enabled and CRYPTO is disabled, Kbuild gives the following warning: WARNING: unmet direct dependencies detected for CRYPTO_SHA256 Depends on [n]: CRYPTO [=n] Selected by [y]: - NFSD_V4 [=y] &&

[PATCH AUTOSEL 5.11 14/44] ASoC: soc-core: Prevent warning if no DMI table is present

2021-03-25 Thread Sasha Levin
From: Jon Hunter [ Upstream commit 7de14d581dbed57c2b3c6afffa2c3fdc6955a3cd ] Many systems do not use ACPI and hence do not provide a DMI table. On non-ACPI systems a warning, such as the following, is printed on boot. WARNING KERN tegra-audio-graph-card sound: ASoC: no DMI vendor name! The v

[PATCH AUTOSEL 5.11 12/44] ASoC: sgtl5000: set DAP_AVC_CTRL register to correct default value on probe

2021-03-25 Thread Sasha Levin
From: Benjamin Rood [ Upstream commit f86f58e3594fb0ab1993d833d3b9a2496f3c928c ] According to the SGTL5000 datasheet [1], the DAP_AVC_CTRL register has the following bit field definitions: | BITS | FIELD | RW | RESET | DEFINITION| | 15| RSVD| RO | 0x0

[PATCH AUTOSEL 5.11 15/44] ASoC: cs42l42: Fix Bitclock polarity inversion

2021-03-25 Thread Sasha Levin
From: Lucas Tanure [ Upstream commit e793c965519b8b7f2fea51a48398405e2a501729 ] The driver was setting bit clock polarity opposite to intended polarity. Also simplify the code by grouping ADC and DAC clock configurations into a single field. Signed-off-by: Lucas Tanure Link: https://lore.kern

[PATCH AUTOSEL 5.11 13/44] ASoC: es8316: Simplify adc_pga_gain_tlv table

2021-03-25 Thread Sasha Levin
From: Hans de Goede [ Upstream commit bb18c678754ce1514100fb4c0bf6113b5af36c48 ] Most steps in this table are steps of 3dB (300 centi-dB), so we can simplify the table. This not only reduces the amount of space it takes inside the kernel, this also makes alsa-lib's mixer code actually accept th

[PATCH AUTOSEL 5.11 16/44] ASoC: cs42l42: Fix channel width support

2021-03-25 Thread Sasha Levin
From: Lucas Tanure [ Upstream commit 2bdc4f5c6838f7c3feb4fe68e4edbeea158ec0a2 ] Remove the hard coded 32 bits width and replace with the correct width calculated by params_width. Signed-off-by: Lucas Tanure Link: https://lore.kernel.org/r/20210305173442.195740-3-tanur...@opensource.cirrus.com

[PATCH AUTOSEL 5.11 17/44] ASoC: cs42l42: Fix mixer volume control

2021-03-25 Thread Sasha Levin
From: Lucas Tanure [ Upstream commit 72d904763ae6a8576e7ad034f9da4f0e3c44bf24 ] The minimum value is 0x3f (-63dB), which also is mute Signed-off-by: Lucas Tanure Link: https://lore.kernel.org/r/20210305173442.195740-4-tanur...@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Sa

[PATCH AUTOSEL 5.11 20/44] ASoC: mediatek: mt8192: fix tdm out data is valid on rising edge

2021-03-25 Thread Sasha Levin
From: Jiaxin Yu [ Upstream commit 8d06b9633a66f41fed520f6eebd163189518ba79 ] This patch correct tdm out bck inverse register to AUDIO_TOP_CON3[3]. Signed-off-by: Jiaxin Yu Link: https://lore.kernel.org/r/1615516005-781-1-git-send-email-jiaxin...@mediatek.com Signed-off-by: Mark Brown Signed-

[PATCH AUTOSEL 5.11 25/44] io_uring: halt SQO submission on ctx exit

2021-03-25 Thread Sasha Levin
From: Pavel Begunkov [ Upstream commit f6d54255f4235448d4bbe442362d4caa62da97d5 ] io_sq_thread_finish() is called in io_ring_ctx_free(), so SQPOLL task is potentially running submitting new requests. It's not a disaster because of using a "try" variant of percpu_ref_get, but is far from nice. R

[PATCH AUTOSEL 5.11 18/44] ASoC: cs42l42: Always wait at least 3ms after reset

2021-03-25 Thread Sasha Levin
From: Lucas Tanure [ Upstream commit 19325cfea04446bc79b36bffd4978af15f46a00e ] This delay is part of the power-up sequence defined in the datasheet. A runtime_resume is a power-up so must also include the delay. Signed-off-by: Lucas Tanure Link: https://lore.kernel.org/r/20210305173442.19574

[PATCH AUTOSEL 5.11 19/44] NFSD: fix error handling in NFSv4.0 callbacks

2021-03-25 Thread Sasha Levin
From: Olga Kornievskaia [ Upstream commit b4250dd868d1b42c0a65de11ef3afbee67ba5d2f ] When the server tries to do a callback and a client fails it due to authentication problems, we need the server to set callback down flag in RENEW so that client can recover. Suggested-by: Bruce Fields Signed-

[PATCH AUTOSEL 5.11 21/44] kernel: freezer should treat PF_IO_WORKER like PF_KTHREAD for freezing

2021-03-25 Thread Sasha Levin
From: Jens Axboe [ Upstream commit 15b2219facadec583c24523eed40fa45865f859f ] Don't send fake signals to PF_IO_WORKER threads, they don't accept signals. Just treat them like kthreads in this regard, all they need is a wakeup as no forced kernel/user transition is needed. Suggested-by: Linus To

[PATCH AUTOSEL 5.11 24/44] io_uring: fix ->flags races by linked timeouts

2021-03-25 Thread Sasha Levin
From: Pavel Begunkov [ Upstream commit efe814a471e0e58f28f1efaf430c8784a4f36626 ] It's racy to modify req->flags from a not owning context, e.g. linked timeout calling req_set_fail_links() for the master request might race with that request setting/clearing flags while being executed concurrentl

[PATCH AUTOSEL 5.11 26/44] btrfs: track qgroup released data in own variable in insert_prealloc_file_extent

2021-03-25 Thread Sasha Levin
From: Qu Wenruo [ Upstream commit fbf48bb0b197e6894a04c714728c952af7153bf3 ] There is a piece of weird code in insert_prealloc_file_extent(), which looks like: ret = btrfs_qgroup_release_data(inode, file_offset, len); if (ret < 0) return ERR_PTR(ret); if

[PATCH AUTOSEL 5.11 27/44] scsi: st: Fix a use after free in st_open()

2021-03-25 Thread Sasha Levin
From: Lv Yunlong [ Upstream commit c8c165dea4c8f5ad67b1240861e4f6c5395fa4ac ] In st_open(), if STp->in_use is true, STp will be freed by scsi_tape_put(). However, STp is still used by DEBC_printk() after. It is better to DEBC_printk() before scsi_tape_put(). Link: https://lore.kernel.org/r/2021

[PATCH AUTOSEL 5.11 29/44] staging: comedi: cb_pcidas: fix request_irq() warn

2021-03-25 Thread Sasha Levin
From: Tong Zhang [ Upstream commit 2e5848a3d86f03024ae096478bdb892ab3d79131 ] request_irq() wont accept a name which contains slash so we need to repalce it with something else -- otherwise it will trigger a warning and the entry in /proc/irq/ will not be created since the .name might be used by

[PATCH AUTOSEL 5.11 23/44] vhost: Fix vhost_vq_reset()

2021-03-25 Thread Sasha Levin
From: Laurent Vivier [ Upstream commit beb691e69f4dec7bfe8b81b509848acfd1f0dbf9 ] vhost_reset_is_le() is vhost_init_is_le(), and in the case of cross-endian legacy, vhost_init_is_le() depends on vq->user_be. vq->user_be is set by vhost_disable_cross_endian(). But in vhost_vq_reset(), we have:

[PATCH AUTOSEL 5.11 30/44] staging: comedi: cb_pcidas64: fix request_irq() warn

2021-03-25 Thread Sasha Levin
From: Tong Zhang [ Upstream commit d2d106fe3badfc3bf0dd3899d1c3f210c7203eab ] request_irq() wont accept a name which contains slash so we need to repalce it with something else -- otherwise it will trigger a warning and the entry in /proc/irq/ will not be created since the .name might be used by

[PATCH AUTOSEL 5.11 22/44] powerpc: Force inlining of cpu_has_feature() to avoid build failure

2021-03-25 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit eed5fae00593ab9d261a0c1ffc1bdb786a87a55a ] The code relies on constant folding of cpu_has_feature() based on possible and always true values as defined per CPU_FTRS_ALWAYS and CPU_FTRS_POSSIBLE. Build failure is encountered with for instance book3e_all_d

[PATCH AUTOSEL 5.11 31/44] ASoC: rt5659: Update MCLK rate in set_sysclk()

2021-03-25 Thread Sasha Levin
From: Sameer Pujar [ Upstream commit dbf54a9534350d6aebbb34f5c1c606b81a4f35dd ] Simple-card/audio-graph-card drivers do not handle MCLK clock when it is specified in the codec device node. The expectation here is that, the codec should actually own up the MCLK clock and do necessary setup in the

[PATCH AUTOSEL 5.11 28/44] scsi: qla2xxx: Fix broken #endif placement

2021-03-25 Thread Sasha Levin
From: Alexey Dobriyan [ Upstream commit 5999b9e5b1f8a2f5417b755130919b3ac96f5550 ] Only half of the file is under include guard because terminating #endif is placed too early. Link: https://lore.kernel.org/r/YE4snvoW1SuwcXAn@localhost.localdomain Reviewed-by: Himanshu Madhani Signed-off-by: Al

[PATCH AUTOSEL 5.11 33/44] thermal/core: Add NULL pointer check before using cooling device stats

2021-03-25 Thread Sasha Levin
From: Manaf Meethalavalappu Pallikunhi [ Upstream commit 2046a24ae121cd107929655a6aaf3b8c5beea01f ] There is a possible chance that some cooling device stats buffer allocation fails due to very high cooling device max state value. Later cooling device update sysfs can try to access stats data fo

[PATCH AUTOSEL 5.11 32/44] ASoC: rt711: add snd_soc_component remove callback

2021-03-25 Thread Sasha Levin
From: Bard Liao [ Upstream commit 899b12542b0897f92de9ba30944937c39ebb246d ] We do some IO operations in the snd_soc_component_set_jack callback function and snd_soc_component_set_jack() will be called when soc component is removed. However, we should not access SoundWire registers when the bus

[PATCH AUTOSEL 5.11 34/44] locking/ww_mutex: Simplify use_ww_ctx & ww_ctx handling

2021-03-25 Thread Sasha Levin
From: Waiman Long [ Upstream commit 5de2055d31ea88fd9ae9709ac95c372a505a60fa ] The use_ww_ctx flag is passed to mutex_optimistic_spin(), but the function doesn't use it. The frequent use of the (use_ww_ctx && ww_ctx) combination is repetitive. In fact, ww_ctx should not be used at all if !use_w

[PATCH AUTOSEL 5.11 36/44] nvmet-tcp: fix kmap leak when data digest in use

2021-03-25 Thread Sasha Levin
From: Elad Grupi [ Upstream commit bac04454ef9fada009f0572576837548b190bf94 ] When data digest is enabled we should unmap pdu iovec before handling the data digest pdu. Signed-off-by: Elad Grupi Reviewed-by: Sagi Grimberg Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin --- driv

[PATCH AUTOSEL 5.11 38/44] Revert "PM: ACPI: reboot: Use S5 for reboot"

2021-03-25 Thread Sasha Levin
From: Josef Bacik [ Upstream commit 9d3fcb28f9b9750b474811a2964ce022df56336e ] This reverts commit d60cd06331a3566d3305b3c7b566e79edf4e2095. This patch causes a panic when rebooting my Dell Poweredge r440. I do not have the full panic log as it's lost at that stage of the reboot and I do not h

[PATCH AUTOSEL 5.11 39/44] nouveau: Skip unvailable ttm page entries

2021-03-25 Thread Sasha Levin
From: Tobias Klausmann [ Upstream commit e94c55b8e0a0bbe9a026250cf31e2fa45957d776 ] Starting with commit f295c8cfec833c2707ff1512da10d65386dde7af ("drm/nouveau: fix dma syncing warning with debugging on.") the following oops occures: BUG: kernel NULL pointer dereference, address: 000

[PATCH AUTOSEL 5.11 37/44] io_uring: imply MSG_NOSIGNAL for send[msg]()/recv[msg]() calls

2021-03-25 Thread Sasha Levin
From: Stefan Metzmacher [ Upstream commit 76cd979f4f38a27df22efb5773a0d567181a9392 ] We never want to generate any SIGPIPE, -EPIPE only is much better. Signed-off-by: Stefan Metzmacher Link: https://lore.kernel.org/r/38961085c3ec49fd21550c7788f214d1ff02d2d4.1615908477.git.me...@samba.org Sign

[PATCH AUTOSEL 5.11 40/44] static_call: Align static_call_is_init() patching condition

2021-03-25 Thread Sasha Levin
From: Peter Zijlstra [ Upstream commit 698bacefe993ad2922c9d3b1380591ad489355e9 ] The intent is to avoid writing init code after init (because the text might have been freed). The code is needlessly different between jump_label and static_call and not obviously correct. The existing code relies

[PATCH AUTOSEL 5.11 35/44] locking/ww_mutex: Fix acquire/release imbalance in ww_acquire_init()/ww_acquire_fini()

2021-03-25 Thread Sasha Levin
From: Waiman Long [ Upstream commit bee645788e07eea63055d261d2884ea45c2ba857 ] In ww_acquire_init(), mutex_acquire() is gated by CONFIG_DEBUG_LOCK_ALLOC. The dep_map in the ww_acquire_ctx structure is also gated by the same config. However mutex_release() in ww_acquire_fini() is gated by CONFIG_

[PATCH AUTOSEL 5.11 41/44] ext4: do not iput inode under running transaction in ext4_rename()

2021-03-25 Thread Sasha Levin
From: "zhangyi (F)" [ Upstream commit 5dccdc5a1916d4266edd251f20113a5c495f ] In ext4_rename(), when RENAME_WHITEOUT failed to add new entry into directory, it ends up dropping new created whiteout inode under the running transaction. After commit <9b88f9fb0d2> ("ext4: Do not iput inode under

[PATCH AUTOSEL 5.11 42/44] signal: don't allow sending any signals to PF_IO_WORKER threads

2021-03-25 Thread Sasha Levin
From: Jens Axboe [ Upstream commit 5be28c8f85ce99ed2d329d2ad8bdd18ea19473a5 ] They don't take signals individually, and even if they share signals with the parent task, don't allow them to be delivered through the worker thread. Linux does allow this kind of behavior for regular threads, but it'

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