RE: [PATCH 2/6] dma-mapping: add a dma_mmap_pages helper

2021-01-28 Thread David Laight
From: Christoph Hellwig > Sent: 28 January 2021 14:59 > > Add a helper to map memory allocated using dma_alloc_pages into > a user address space, similar to the dma_alloc_attrs function for > coherent allocations. > ... > +:: > + > + int > + dma_mmap_pages(struct device *dev, struct

Re: [printk] b031a684bf: INFO:rcu_tasks_detected_stalls_on_tasks

2021-01-28 Thread John Ogness
On 2021-01-28, Petr Mladek wrote: > If you are able to reproduce this, it might be interesting to see > backtraces from all CPUs when RCU stall gets detected. Or even > printing all processes, even the sleeping ones. OK, I now have lkp running on my intel core i5 machine and it reliably

Re: [PATCH V5] x86/mm: Tracking linear mapping split events

2021-01-28 Thread Zi Yan
On 28 Jan 2021, at 5:49, Saravanan D wrote: > To help with debugging the sluggishness caused by TLB miss/reload, > we introduce monotonic lifetime hugepage split event counts since > system state: SYSTEM_RUNNING to be displayed as part of > /proc/vmstat in x86 servers > > The lifetime split event

Re: [PATCH v12 2/8] arm64: dts: mt8183: refine gamma compatible name

2021-01-28 Thread Matthias Brugger
On 28/01/2021 12:23, Hsin-Yi Wang wrote: > From: Yongqiang Niu > > mt8183 gamma is different with mt8173 > remove mt8173 compatible name for mt8183 gamma > > Fixes: 91f9c963ce79 ("arm64: dts: mt8183: Add display nodes for MT8183") > Signed-off-by: Yongqiang Niu > Signed-off-by: Hsin-Yi Wang

Re: [PATCH V5] x86/mm: Tracking linear mapping split events

2021-01-28 Thread Song Liu
> On Jan 28, 2021, at 8:33 AM, Zi Yan wrote: > > On 28 Jan 2021, at 5:49, Saravanan D wrote: > >> To help with debugging the sluggishness caused by TLB miss/reload, >> we introduce monotonic lifetime hugepage split event counts since >> system state: SYSTEM_RUNNING to be displayed as part of

Re: [PATCH] clk: at91: sama5d2: Mark device OF_POPULATED after setup

2021-01-28 Thread Saravana Kannan
On Thu, Jan 28, 2021 at 2:45 AM Tudor Ambarus wrote: > > The sama5d2 requires the clock provider initialized before timers. > We can't use a platform driver for the sama5d2-pmc driver, as the > platform_bus_init() is called later on, after time_init(). > > As fw_devlink considers only devices, it

WARNING in io_uring_cancel_task_requests

2021-01-28 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:d03154e8 Add linux-next specific files for 20210128 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=159d08a0d0 kernel config: https://syzkaller.appspot.com/x/.config?x=6953ffb584722a1 dashboard

Re: [RFC PATCH 26/34] xfs: use bio_new in xfs_rw_bdev

2021-01-28 Thread Darrick J. Wong
On Wed, Jan 27, 2021 at 11:11:25PM -0800, Chaitanya Kulkarni wrote: > Signed-off-by: Chaitanya Kulkarni Seems fine to me... Reviewed-by: Darrick J. Wong --D > --- > fs/xfs/xfs_bio_io.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/fs/xfs/xfs_bio_io.c

Re: [PATCH][next] nfsd: fix check of statid returned from call to find_stateid_by_type

2021-01-28 Thread Bruce Fields
On Thu, Jan 28, 2021 at 03:53:36PM +, Chuck Lever wrote: > > On Jan 28, 2021, at 10:34 AM, Dan Carpenter > > wrote: > > Fixes tags are used for a lot of different things: > > 1) If there is a fixes tag, then you can tell it does *NOT* have to > >be back ported because the original

Re: [PATCH] arm64: PCI: Enable SMC conduit

2021-01-28 Thread Jeremy Linton
Hi, On 1/26/21 4:54 PM, Will Deacon wrote: On Tue, Jan 26, 2021 at 10:46:04AM -0600, Jeremy Linton wrote: On 1/22/21 1:48 PM, Will Deacon wrote: This isn't like the usual fragmentation problems, where firmware swoops in to save the day; CPU onlining, spectre mitigations, early entropy etc.

Re: regression in drm_blank.c?

2021-01-28 Thread Ville Syrjälä
On Thu, Jan 28, 2021 at 11:12:50AM -0600, Steve French wrote: > For the last month my logs have been flooded many times a second with: > > "nouveau :01:00.0: [drm] *ERROR* crtc 50: Can't calculate > constants, dotclock = 0!" Would indicate someone has a bogus adjusted_mode in their state

Re: [PATCH] x86/debug: 'Fix' ptrace dr6 output

2021-01-28 Thread Andrew Cooper
On 28/01/2021 18:20, Peter Zijlstra wrote: > --- a/arch/x86/kernel/hw_breakpoint.c > +++ b/arch/x86/kernel/hw_breakpoint.c > @@ -496,9 +496,32 @@ static int hw_breakpoint_handler(struct > dr6_p = (unsigned long *)ERR_PTR(args->err); > dr6 = *dr6_p; > > - /* If it's a single step,

Re: [PATCH net] net: hdlc_x25: Use qdisc to queue outgoing LAPB frames

2021-01-28 Thread Jakub Kicinski
On Wed, 27 Jan 2021 01:07:47 -0800 Xie He wrote: > An HDLC hardware driver may call netif_stop_queue to temporarily stop > the TX queue when the hardware is busy sending a frame, and after the > hardware has finished sending the frame, call netif_wake_queue to > resume the TX queue. > > However,

Re: [Patch v4 1/3] lib: Restrict cpumask_local_spread to houskeeping CPUs

2021-01-28 Thread Thomas Gleixner
On Thu, Jan 28 2021 at 13:59, Marcelo Tosatti wrote: >> The whole pile wants to be reverted. It's simply broken in several ways. > > I was asking for your comments on interaction with CPU hotplug :-) Which I answered in an seperate mail :) > So housekeeping_cpumask has multiple meanings. In this

Re: [PATCH v2 1/1] kexec: dump kmessage before machine_kexec

2021-01-28 Thread Eric W. Biederman
Pavel Tatashin writes: > kmsg_dump(KMSG_DUMP_SHUTDOWN) is called before > machine_restart(), machine_halt(), machine_power_off(), the only one that > is missing is machine_kexec(). > > The dmesg output that it contains can be used to study the shutdown > performance of both kernel and systemd

[PATCH RFC] kbuild: Prevent compiler mismatch with external modules

2021-01-28 Thread Josh Poimboeuf
When building an external module, if the compiler version differs from what the kernel was built with, bad things can happen. Many kernel features change based on available compiler features. Silently removing a compiler-dependent feature in the external module build can cause unpredictable

Re: [PATCH 2/2] security.capability: fix conversions on getxattr

2021-01-28 Thread Eric W. Biederman
"Serge E. Hallyn" writes: > On Tue, Jan 19, 2021 at 07:34:49PM -0600, Eric W. Biederman wrote: >> Miklos Szeredi writes: >> >> > If a capability is stored on disk in v2 format cap_inode_getsecurity() will >> > currently return in v2 format unconditionally. >> > >> > This is wrong: v2 cap

Re: [PATCH v2 7/7] fs: HKDF - remove duplicate memory clearing

2021-01-28 Thread Eric Biggers
On Sun, Jan 24, 2021 at 03:04:50PM +0100, Stephan Müller wrote: > The clearing of the OKM memory buffer in case of an error is already > performed by the HKDF implementation crypto_hkdf_expand. Thus, the > code clearing is not needed any more in the file system code base. > > Signed-off-by:

Re: [PATCH v13 08/15] s390/vfio-ap: sysfs attribute to display the guest's matrix

2021-01-28 Thread Tony Krowiak
On 1/11/21 5:58 PM, Halil Pasic wrote: On Tue, 22 Dec 2020 20:15:59 -0500 Tony Krowiak wrote: The matrix of adapters and domains configured in a guest's APCB may differ from the matrix of adapters and domains assigned to the matrix mdev, so this patch introduces a sysfs attribute to

Re: [PATCH v2 1/1] kexec: dump kmessage before machine_kexec

2021-01-28 Thread Pavel Tatashin
On Thu, Jan 28, 2021 at 3:01 PM Eric W. Biederman wrote: > > Pavel Tatashin writes: > > > kmsg_dump(KMSG_DUMP_SHUTDOWN) is called before > > machine_restart(), machine_halt(), machine_power_off(), the only one that > > is missing is machine_kexec(). > > > > The dmesg output that it contains can

Re: [PATCH resend] e100: switch from 'pci_' to 'dma_' API

2021-01-28 Thread Nguyen, Anthony L
On Thu, 2021-01-28 at 22:07 +0100, Christophe JAILLET wrote: > The wrappers in include/linux/pci-dma-compat.h should go away. > > The patch has been generated with the coccinelle script below and has > been > hand modified to replace GFP_ with a correct flag. > It has been compile tested. > >

Re: [PATCH 04/16] rcu/nocb: Only (re-)initialize segcblist when needed on CPU up

2021-01-28 Thread Paul E. McKenney
On Thu, Jan 28, 2021 at 10:34:13PM +0100, Frederic Weisbecker wrote: > On Thu, Jan 28, 2021 at 11:12:28AM -0800, Paul E. McKenney wrote: > > On Thu, Jan 28, 2021 at 06:12:10PM +0100, Frederic Weisbecker wrote: > > > Simply checking if the segcblist is enabled is enough to know if we > > > need to

Re: [PATCH RFC] kbuild: Prevent compiler mismatch with external modules

2021-01-28 Thread Linus Torvalds
On Thu, Jan 28, 2021 at 1:34 PM Josh Poimboeuf wrote: > > On Thu, Jan 28, 2021 at 01:23:11PM -0800, Linus Torvalds wrote: > > THAT workaround is long gone, but I didn't check what other ones we > > might have now. But the gcc version checks we _do_ have are not > > necessarily about major

Re: [PATCH v3 3/5] hugetlb: only set HPageMigratable for migratable hstates

2021-01-28 Thread Andrew Morton
On Thu, 28 Jan 2021 14:00:29 -0800 Mike Kravetz wrote: > On 1/28/21 1:37 PM, Andrew Morton wrote: > > On Thu, 28 Jan 2021 06:52:21 +0100 Oscar Salvador wrote: > > > >> On Wed, Jan 27, 2021 at 03:36:41PM -0800, Mike Kravetz wrote: > >>> Yes, this patch is somewhat optional. It should be a

Re: WARNING in io_uring_cancel_task_requests

2021-01-28 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:d03154e8 Add linux-next specific files for 20210128 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=12e976e8d0 kernel config: https://syzkaller.appspot.com/x/.config?x

Re: [PATCH RESEND] Documentation: kernel-parameters: add missing '<'

2021-01-28 Thread Jonathan Corbet
On Wed, 27 Jan 2021 11:43:43 +0100 Wolfram Sang wrote: > Acked-by: Randy Dunlap > Signed-off-by: Wolfram Sang > --- > Documentation/admin-guide/kernel-parameters.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/admin-guide/kernel-parameters.rst >

Re: [PATCH 05/16] rcu/nocb: Disable bypass when CPU isn't completely offloaded

2021-01-28 Thread Frederic Weisbecker
On Thu, Jan 28, 2021 at 01:31:33PM -0800, Paul E. McKenney wrote: > On Thu, Jan 28, 2021 at 06:12:11PM +0100, Frederic Weisbecker wrote: > > --- > > include/linux/rcu_segcblist.h | 7 --- > > kernel/rcu/tree_plugin.h | 31 +++ > > 2 files changed, 27

Re: [PATCH] Documentation/x86/boot.rst: Correct the example of SETUP_INDIRECT

2021-01-28 Thread Jonathan Corbet
On Wed, 27 Jan 2021 13:54:40 +0100 Daniel Kiper wrote: > On Wed, Jan 27, 2021 at 04:49:11PM +0800, Cao jin wrote: > > struct setup_data.len is the length of data field. In case of > > SETUP_INDIRECT, it should be sizeof(setup_indirect). > > > > Signed-off-by: Cao jin > > Reviewed-by: Daniel

[PATCH v4 04/12] Input: melfas_mip4 - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-28 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/melfas_mip4.c | 5 ++--- 1 file changed, 2 insertions(+), 3

Re: [PATCH] docs: Update DTB format references

2021-01-28 Thread Jonathan Corbet
On Wed, 20 Jan 2021 13:31:51 + Milan Lakhani wrote: > There were two references to devicetree/booting-without-of.rst (which has > been removed) for DTB format information, and > devicetree/usage-model.rst pointed to > https://elinux.org/Device_Tree_Usage. Change all three of these references

Re: [PATCH v2 net-next 1/4] mm: constify page_is_pfmemalloc() argument

2021-01-28 Thread David Rientjes
On Wed, 27 Jan 2021, Alexander Lobakin wrote: > The function only tests for page->index, so its argument should be > const. > > Signed-off-by: Alexander Lobakin Acked-by: David Rientjes

[PATCH v4 03/12] Input: atmel_mxt_ts - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-28 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/atmel_mxt_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH v3 5/9] userfaultfd: add minor fault registration mode

2021-01-28 Thread Axel Rasmussen
This feature allows userspace to intercept "minor" faults. By "minor" faults, I mean the following situation: Let there exist two mappings (i.e., VMAs) to the same page(s) (shared memory). One of the mappings is registered with userfaultfd (in minor mode), and the other is not. Via the non-UFFD

[PATCH v3 6/9] userfaultfd: disable huge PMD sharing for MINOR registered VMAs

2021-01-28 Thread Axel Rasmussen
As the comment says: for the MINOR fault use case, although the page might be present and populated in the other (non-UFFD-registered) half of the shared mapping, it may be out of date, and we explicitly want userspace to get a minor fault so it can check and potentially update the page's

[PATCH v3 8/9] userfaultfd: update documentation to describe minor fault handling

2021-01-28 Thread Axel Rasmussen
Reword / reorganize things a little bit into "lists", so new features / modes / ioctls can sort of just be appended. Describe how UFFDIO_REGISTER_MODE_MINOR and UFFDIO_CONTINUE can be used to intercept and resolve minor faults. Make it clear that COPY and ZEROPAGE are used for MISSING faults,

[PATCH v3 7/9] userfaultfd: add UFFDIO_CONTINUE ioctl

2021-01-28 Thread Axel Rasmussen
This ioctl is how userspace ought to resolve "minor" userfaults. The idea is, userspace is notified that a minor fault has occurred. It might change the contents of the page using its second non-UFFD mapping, or not. Then, it calls UFFDIO_CONTINUE to tell the kernel "I have ensured the page

[PATCH v3 9/9] userfaultfd/selftests: add test exercising minor fault handling

2021-01-28 Thread Axel Rasmussen
Fix a dormant bug in userfaultfd_events_test(), where we did `return faulting_process(0)` instead of `exit(faulting_process(0))`. This caused the forked process to keep running, trying to execute any further test cases after the events test in parallel with the "real" process. Add a simple test

[GIT PULL] Networking for 5.11-rc6

2021-01-28 Thread Jakub Kicinski
The following changes since commit 75439bc439e0f02903b48efce84876ca92da97bd: Merge tag 'net-5.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (2021-01-20 11:52:21 -0800) are available in the Git repository at:

Re: [PATCHv3 1/7] PCI: dwc: Fix a bug of the case dw_pci->ops is NULL

2021-01-28 Thread Li Yang
On Fri, Jan 8, 2021 at 3:29 AM Zhiqiang Hou wrote: > > From: Hou Zhiqiang > > The dw_pci->ops may be a NULL, and fix it by adding one more check. > > Signed-off-by: Hou Zhiqiang > Reviewed-by: Rob Herring > Acked-by: Gustavo Pimentel Hi Bjorn, This is causing many layerscape platforms to

Re: linux-next: Tree for Jan 28 [drivers/net/dsa/hirschmann/hellcreek_sw]

2021-01-28 Thread Randy Dunlap
On 1/28/21 1:11 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20210127: > on i386: ERROR: modpost: "taprio_offload_get" [drivers/net/dsa/hirschmann/hellcreek_sw.ko] undefined! ERROR: modpost: "taprio_offload_free" [drivers/net/dsa/hirschmann/hellcreek_sw.ko] undefined! Full

[PATCH] checkpatch: add warning for line space after "Fixes:" tag

2021-01-28 Thread Shradha Todi
Add a check to give warning for line break between Fixes tag and signature tags as that is the commonly followed style. Also add a --fix option to delete space lines after "Fixes:" tag. Signed-off-by: Lakshay Mehra Signed-off-by: Shradha Todi --- scripts/checkpatch.pl | 9 + 1 file

Re: kprobes broken since 0d00449c7a28 ("x86: Replace ist_enter() with nmi_enter()")

2021-01-28 Thread Nikolay Borisov
On 28.01.21 г. 18:12 ч., Nikolay Borisov wrote: > > > On 28.01.21 г. 5:38 ч., Masami Hiramatsu wrote: >> Hi, > > > >> >> Alexei, could you tell me what is the concerning situation for bpf? > > Another data point masami is that this affects bpf kprobes which are > entered via int3,

Re: [PATCH v4 net-next 00/19] net: mvpp2: Add TX Flow Control support

2021-01-28 Thread Marcin Wojtas
czw., 28 sty 2021 o 17:43 Russell King - ARM Linux admin napisał(a): > > On Wed, Jan 27, 2021 at 01:43:16PM +0200, stef...@marvell.com wrote: > > Armada hardware has a pause generation mechanism in GOP (MAC). > > The GOP generate flow control frames based on an indication programmed in > > Ports

Re: [Ocfs2-devel] [RFC PATCH 02/34] block: introduce and use bio_new

2021-01-28 Thread Matthew Wilcox
FYI your email is completely unreadable to those not using html. I can't tell what you wrote and what Damien wrote. On Thu, Jan 28, 2021 at 08:33:10AM +, Chaitanya Kulkarni wrote: > On 1/27/21 11:21 PM, Damien Le Moal wrote: > > On 2021/01/28 16:12, Chaitanya Kulkarni wrote: > > >

Re: [PATCH v2 05/14] KVM: x86: Override reported SME/SEV feature flags with host mask

2021-01-28 Thread Sean Christopherson
On Thu, Jan 28, 2021, Paolo Bonzini wrote: > On 14/01/21 01:36, Sean Christopherson wrote: > > Add a reverse-CPUID entry for the memory encryption word, 0x801F.EAX, > > and use it to override the supported CPUID flags reported to userspace. > > Masking the reported CPUID flags avoids

Re: [PATCH v4] fs/buffer.c: Revoke LRU when trying to drop buffers

2021-01-28 Thread Minchan Kim
On Thu, Jan 28, 2021 at 12:28:37AM -0800, Chris Goldsworthy wrote: > On 2021-01-26 18:59, Matthew Wilcox wrote: > > On Tue, Jan 26, 2021 at 02:59:17PM -0800, Minchan Kim wrote: > > > The release buffer_head in LRU is great improvement for migration > > > point of view. > > > > > > A question: >

[PATCH] rtlwifi: rtl8192se: remove redundant initialization of variable rtstatus

2021-01-28 Thread Colin King
From: Colin Ian King The variable rtstatu is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

Re: [PATCH v2] ACPI/IORT: Do not blindly trust DMA masks from firmware

2021-01-28 Thread Moritz Fischer
Hi Catalin, On Wed, Jan 27, 2021 at 01:09:36PM +, Catalin Marinas wrote: > On Thu, 21 Jan 2021 17:24:19 -0800, Moritz Fischer wrote: > > Address issue observed on real world system with suboptimal IORT table > > where DMA masks of PCI devices would get set to 0 as result. > > > >

[PATCH v4 07/10] coresight: etm4x: Add complex configuration handlers to etmv4

2021-01-28 Thread Mike Leach
Adds in handlers to allow the ETMv4 to use the complex configuration support. Features and configurations can be loaded and selected in the device. Signed-off-by: Mike Leach --- drivers/hwtracing/coresight/Makefile | 3 +- .../hwtracing/coresight/coresight-etm4x-cfg.c | 184

[PATCH 04/16] rcu/nocb: Only (re-)initialize segcblist when needed on CPU up

2021-01-28 Thread Frederic Weisbecker
Simply checking if the segcblist is enabled is enough to know if we need to initialize it or not. It's safe to check within hotplug machine. Signed-off-by: Frederic Weisbecker Cc: Josh Triplett Cc: Lai Jiangshan Cc: Joel Fernandes Cc: Neeraj Upadhyay Cc: Boqun Feng --- kernel/rcu/tree.c |

Re: [PATCH v1 0/5] Enable fw_devlink=on by default

2021-01-28 Thread Saravana Kannan
On Thu, Jan 28, 2021 at 7:03 AM Jon Hunter wrote: > > > On 14/01/2021 16:56, Jon Hunter wrote: > > > > On 14/01/2021 16:47, Saravana Kannan wrote: > > > > ... > > > >>> Yes this is the warning shown here [0] and this is coming from > >>> the 'Generic PHY stmmac-0:00' device. > >> > >> Can you

Re: [PATCH v2 05/14] KVM: x86: Override reported SME/SEV feature flags with host mask

2021-01-28 Thread Paolo Bonzini
On 28/01/21 18:09, Sean Christopherson wrote: On Thu, Jan 28, 2021, Paolo Bonzini wrote: On 14/01/21 01:36, Sean Christopherson wrote: Add a reverse-CPUID entry for the memory encryption word, 0x801F.EAX, and use it to override the supported CPUID flags reported to userspace. Masking the

Re: [PATCH 1/3] Adding page_offset_mask to device_dma_parameters

2021-01-28 Thread Robin Murphy
On 2021-01-28 00:38, Jianxiong Gao wrote: Some devices rely on the address offset in a page to function correctly (NVMe driver as an example). These devices may use a different page size than the Linux kernel. The address offset has to be preserved upon mapping, and in order to do so, we need to

Re: [next] mm/nommu.c:1671:6: error: conflicting types for 'filemap_map_pages'

2021-01-28 Thread Naresh Kamboju
Hi Geert, On Thu, 28 Jan 2021 at 20:56, Geert Uytterhoeven wrote: > > Hi Naresh, > > On Thu, Jan 28, 2021 at 3:25 PM Naresh Kamboju > wrote: > > arm, sh and riscv architecture build failed on today's Linux next tag > > 20210128. > > > > FYI, > > #

[PATCH] MFD: intel_pmt: Fix nuisance messages and handling of disabled capabilities

2021-01-28 Thread David E. Box
Some products will be available that have PMT capabilities that are not supported. Remove the warnings in this instance to avoid nuisance messages and confusion. Also return an error code for capabilities that are disabled by quirk to prevent them from keeping the driver loaded if only disabled

[PATCH] staging: net: wimax: i2400m: fw: remove redundant initialization of variable result

2021-01-28 Thread Colin King
From: Colin Ian King The variable result is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

[PATCH 05/16] rcu/nocb: Disable bypass when CPU isn't completely offloaded

2021-01-28 Thread Frederic Weisbecker
Instead of flushing bypass at the very last moment in the deoffloading process, just disable bypass enqueue at soon as we start the deoffloading process and flush the pending bypass early. It's less fragile and we leave some time to the kthreads and softirqs to process quietly. Symmetrically,

Re: [PATCH v2] tpm_tis: Add missing tpm_request/relinquish_locality calls

2021-01-28 Thread Guenter Roeck
Hi Lukasz, On Thu, Jan 28, 2021 at 02:07:53PM +0100, Lukasz Majczak wrote: > There is a missing call to tpm_request_locality before the call to > the tpm_get_timeouts() and tpm_tis_probe_irq_single(). As the current > approach might work for tpm2, it fails for tpm1.x - in that case > call to

next-20210128 build failure

2021-01-28 Thread Yury Norov
Hi, (Sorry if duplicating.) My arm64 build got broken today: fs/nfs/super.o: In function `nfs_ssc_register_ops': /home/yury/work/linux/fs/nfs/super.c:120: undefined reference to `nfs_ssc_register' fs/nfs/super.o: In function `nfs_ssc_unregister_ops': /home/yury/work/linux/fs/nfs/super.c:127:

Re: [Patch v4 1/3] lib: Restrict cpumask_local_spread to houskeeping CPUs

2021-01-28 Thread Nitesh Narayan Lal
On 1/28/21 11:59 AM, Marcelo Tosatti wrote: > On Thu, Jan 28, 2021 at 05:02:41PM +0100, Thomas Gleixner wrote: >> On Wed, Jan 27 2021 at 09:19, Marcelo Tosatti wrote: >>> On Wed, Jan 27, 2021 at 11:57:16AM +, Robin Murphy wrote: > + hk_flags = HK_FLAG_DOMAIN | HK_FLAG_MANAGED_IRQ; >

[PATCH v4 10/10] coresight: docs: Add documentation for CoreSight config

2021-01-28 Thread Mike Leach
Adds documentation for the CoreSight System configuration manager. Signed-off-by: Mike Leach --- .../trace/coresight/coresight-config.rst | 244 ++ Documentation/trace/coresight/coresight.rst | 16 ++ 2 files changed, 260 insertions(+) create mode 100644

[PATCH v4 08/10] coresight: config: Add preloaded configurations

2021-01-28 Thread Mike Leach
Preload set of configurations. This patch creates a small set of preloaded configurations and features that are available immediately after coresight has been initialised. The current set provides a strobing feature for ETMv4, that creates a periodic sampling of trace by switching trace

[PATCH v4 04/10] coresight: etm-perf: update to handle configuration selection

2021-01-28 Thread Mike Leach
Loaded coresight configurations are registered in the cs_etm\cs_config sub directory. This extends the etm-perf code to handle these registrations, and the cs_syscfg driver to perform the registration on load. Signed-off-by: Mike Leach --- .../hwtracing/coresight/coresight-config.h| 5 +-

Re: [PATCH v14 07/13] KVM: VMX: Emulate reads and writes to CET MSRs

2021-01-28 Thread Paolo Bonzini
On 06/11/20 02:16, Yang Weijiang wrote: +static bool cet_is_ssp_msr_accessible(struct kvm_vcpu *vcpu, + struct msr_data *msr) +{ + u64 mask; + + if (!kvm_cet_supported()) + return false; + + if (msr->host_initiated) +

[PATCH v4 05/10] coresight: syscfg: Add API to activate and enable configurations

2021-01-28 Thread Mike Leach
Configurations are first activated, then when any coresight device is enabled, the active configurations are checked and any matching one is enabled. This patch provides the activation / enable API. Signed-off-by: Mike Leach --- .../hwtracing/coresight/coresight-config.h| 2 +

RE: [PATCH] mtd: use refcount to prevent corruption

2021-01-28 Thread Winkler, Tomas
> Hi Tomas, > > "Winkler, Tomas" wrote on Thu, 28 Jan 2021 > 08:53:43 +: > > > > Tomas, > > > > > > - Ursprüngliche Mail - > > > >> >> Can you please explain a little more what devices are involved? > > > >> >> Does it implement _get_device() and _put_device()? > > > >> > No this is

Re: [PATCH v14 00/13] Introduce support for guest CET feature

2021-01-28 Thread Paolo Bonzini
On 06/11/20 02:16, Yang Weijiang wrote: Control-flow Enforcement Technology (CET) provides protection against Return/Jump-Oriented Programming (ROP/JOP) attack. There're two CET sub-features: Shadow Stack (SHSTK) and Indirect Branch Tracking (IBT). SHSTK is to prevent ROP programming and IBT is

[PATCH] netfilter: nf_tables: remove redundant assignment of variable err

2021-01-28 Thread Colin King
From: Colin Ian King The variable err is being assigned a value that is never read, the same error number is being returned at the error return path via label err1. Clean up the code by removing the assignment. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

Re: [PATCH v5] x86/mce: Avoid infinite loop for copy from user recovery

2021-01-28 Thread Borislav Petkov
On Tue, Jan 26, 2021 at 02:36:05PM -0800, Luck, Tony wrote: > In some cases Linux might context switch to something else. Perhaps > this task even gets picked up by another CPU to run the task work > queued functions. But I imagine that the context switch should act > as a barrier ... shouldn't

Re: [PATCH 01/20] ata: ahci_dm816: Ignore -Woverride-init

2021-01-28 Thread Christoph Hellwig
On Thu, Jan 28, 2021 at 06:02:20PM +, Lee Jones wrote: > Some ATA drivers use the SCSI host template, a series of interwoven > macros, to aid with initialisation. Some of these macros conflict, > resulting in the over-writing of previously set values. Please just disable this warning

[PATCH] x86/debug: 'Fix' ptrace dr6 output

2021-01-28 Thread Peter Zijlstra
Tom reported that one of the GDB test-cases failed, and Boris bisected it to commit: d53d9bc0cf78 ("x86/debug: Change thread.debugreg6 to thread.virtual_dr6") The debugging session led us to commit: 6c0aca288e72 ("x86: Ignore trap bits on single step exceptions") Which describes a nice

Re: [PATCH] KVM: x86: Allow guests to see MSR_IA32_TSX_CTRL even if tsx=off

2021-01-28 Thread Sean Christopherson
On Thu, Jan 28, 2021, Paolo Bonzini wrote: > On 28/01/21 18:56, Sean Christopherson wrote: > > On Thu, Jan 28, 2021, Paolo Bonzini wrote: > > > - vmx->guest_uret_msrs[j].mask = > > > ~(u64)TSX_CTRL_CPUID_CLEAR; > > > + if (boot_cpu_has(X86_FEATURE_RTM)) > > > +

Re: [GIT PULL for v5.11-rc6] media fixes

2021-01-28 Thread pr-tracker-bot
The pull request you sent on Thu, 28 Jan 2021 11:27:38 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media > tags/media/v5.11-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fc856f1df788dc9ad13f154167ae0b442e167950 Thank you! --

Re: [PATCH 1/1] dma-buf: heaps: Map system heap pages as managed by linux vm

2021-01-28 Thread Minchan Kim
On Thu, Jan 28, 2021 at 09:52:59AM -0800, Suren Baghdasaryan wrote: > On Thu, Jan 28, 2021 at 1:13 AM Christoph Hellwig wrote: > > > > On Thu, Jan 28, 2021 at 12:38:17AM -0800, Suren Baghdasaryan wrote: > > > Currently system heap maps its buffers with VM_PFNMAP flag using > > > remap_pfn_range.

Re: [PATCH v3] lkdtm: fix memory copy size for WRITE_KERN

2021-01-28 Thread Nick Desaulniers
On Wed, Jan 27, 2021 at 10:58 PM Candle Sun wrote: > > From: Candle Sun > > Though do_overwritten() follows do_nothing() in source code, the final > memory address order is determined by the compiler. We can't always > assume address of do_overwritten() is bigger than do_nothing(). At least >

[PATCH 3/8] sched/fair: Tweak misfit-related capacity checks

2021-01-28 Thread Valentin Schneider
During load-balance, groups classified as group_misfit_task are filtered out if they do not pass group_smaller_max_cpu_capacity(, ); which itself employs fits_capacity() to compare the sgc->max_capacity of both groups. Due to the underlying margin, fits_capacity(X, 1024) will return false for

[PATCH 1/8] sched/fair: Clean up active balance nr_balance_failed trickery

2021-01-28 Thread Valentin Schneider
When triggering an active load balance, sd->nr_balance_failed is set to such a value that any further can_migrate_task() using said sd will ignore the output of task_hot(). This behaviour makes sense, as active load balance intentionally preempts a rq's running task to migrate it right away, but

[PATCH 4/8] sched/fair: Use dst_cpu's capacity rather than group {min, max} capacity

2021-01-28 Thread Valentin Schneider
Comparing capacity extrema of local and source sched_group's doesn't make much sense when at the day of the day the imbalance will be pulled by a known env->dst_cpu, whose capacity can be anywhere within the local group's capacity extrema. Replace group_smaller_{min, max}_cpu_capacity() with

[PATCH 2/8] sched/fair: Add more sched_asym_cpucapacity static branch checks

2021-01-28 Thread Valentin Schneider
Rik noted a while back that a handful of sd->flags & SD_ASYM_CPUCAPACITY & family in the CFS load-balancer code aren't guarded by the sched_asym_cpucapacity static branch. The load-balancer is already doing a humongous amount of work, but turning those checks into NOPs for those who don't

[PATCH 0/8] sched/fair: misfit task load-balance tweaks

2021-01-28 Thread Valentin Schneider
Hi folks, Here is this year's series of misfit changes. On the menu: o Patch 1 is an independent active balance cleanup o Patch 2 adds some more sched_asym_cpucapacity static branches o Patch 3 introduces yet another margin for capacity to capacity comparisons o Patches 4-6 build on top of

[PATCH v5 net-next 12/18] net: mvpp2: add RXQ flow control configurations

2021-01-28 Thread stefanc
From: Stefan Chulski This patch add RXQ flow control configurations. Patch do not enable flow control itself, flow control disabled by default. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 35 +- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 114

[PATCH v5 net-next 14/18] net: mvpp2: add BM protection underrun feature support

2021-01-28 Thread stefanc
From: Stefan Chulski Feature double size of BPPI by decreasing number of pools from 16 to 8. Increasing of BPPI size protect BM drop from BPPI underrun. Underrun could occurred due to stress on DDR and as result slow buffer transition from BPPE to BPPI. New BPPI threshold recommended by spec is:

[PATCH v5 net-next 13/18] net: mvpp2: add ethtool flow control configuration support

2021-01-28 Thread stefanc
From: Stefan Chulski This patch add ethtool flow control configuration support. Tx flow control retrieved correctly by ethtool get function. FW per port ethtool configuration capability added. Patch also takes care about mtu change procedure, if PPv2 switch BM pools during mtu change.

Re: [PATCH v2 6/7] fs: use HKDF implementation from kernel crypto API

2021-01-28 Thread Eric Biggers
Please prefix the commit subject with "fscrypt: " rather than "fs: ". On Sun, Jan 24, 2021 at 03:04:31PM +0100, Stephan Müller wrote: > diff --git a/fs/crypto/hkdf.c b/fs/crypto/hkdf.c > index e0ec21055505..ae236b42b1f0 100644 > --- a/fs/crypto/hkdf.c > +++ b/fs/crypto/hkdf.c > @@ -9,7 +9,7 @@ >

Re: [PATCH] ptrace: restore the previous single step reporting behavior

2021-01-28 Thread Kyle Huey
On Thu, Jan 28, 2021 at 11:10 AM Linus Torvalds wrote: > You should have pointed to the actual patch. Sorry, I broke the reply threading in my mail client. - Kyle

Re: [PATCH v2 6/7] fs: use HKDF implementation from kernel crypto API

2021-01-28 Thread Eric Biggers
On Sun, Jan 24, 2021 at 03:04:31PM +0100, Stephan Müller wrote: > @@ -74,16 +57,14 @@ int fscrypt_init_hkdf(struct fscrypt_hkdf *hkdf, const u8 > *master_key, > return PTR_ERR(hmac_tfm); > } > > - if (WARN_ON(crypto_shash_digestsize(hmac_tfm) != sizeof(prk))) { > +

Re: [PATCH 1/1] process_madvise.2: Add process_madvise man page

2021-01-28 Thread Michael Kerrisk (man-pages)
Hello Suren, On 1/28/21 7:40 PM, Suren Baghdasaryan wrote: > On Thu, Jan 28, 2021 at 4:24 AM Michael Kerrisk (man-pages) > wrote: >> >> Hello Suren, >> >> Thank you for writing this page! Some comments below. > > Thanks for the review! > Couple questions below and I'll respin the new version

Re: [PATCH 2/3] drm/msm: Fix races managing the OOB state for timestamp vs timestamps.

2021-01-28 Thread Rob Clark
On Wed, Jan 27, 2021 at 3:39 PM Eric Anholt wrote: > > Now that we're not racing with GPU setup, also fix races of timestamps > against other timestamps. In CI, we were seeing this path trigger > timeouts on setting the GMU bit, especially on the first set of tests > right after boot (it's

Re: [PATCH 0/6] ceph: convert to new netfs read helpers

2021-01-28 Thread Ilya Dryomov
On Thu, Jan 28, 2021 at 1:52 PM Jeff Layton wrote: > > On Wed, 2021-01-27 at 23:50 +0100, Ilya Dryomov wrote: > > On Tue, Jan 26, 2021 at 2:41 PM Jeff Layton wrote: > > > > > > This patchset converts ceph to use the new netfs readpage, write_begin, > > > and readahead helpers to handle buffered

Re: [PATCH v6] close_range.2: new page documenting close_range(2)

2021-01-28 Thread Michael Kerrisk (man-pages)
Hello Stephen, (and CHristian, please!) Thanks for your patch revision. I've merged it, and have done some light editing, but I still have a question: On 1/23/21 5:11 PM, Stephen Kitt wrote: [...] > +.SH ERRORS > +.TP > +.B EMFILE > +The per-process limit on the number of open file

Re: [PATCH 2/2] security.capability: fix conversions on getxattr

2021-01-28 Thread Eric W. Biederman
Miklos Szeredi writes: > On Thu, Jan 28, 2021 at 9:24 PM Eric W. Biederman > wrote: > >> >> From our previous discussions I would also argue it would be good >> if there was a bypass that skipped all conversions if the reader >> and the filesystem are in the same user namespace. >> > >

Re: [v5 PATCH 02/11] mm: vmscan: consolidate shrinker_maps handling code

2021-01-28 Thread Yang Shi
On Thu, Jan 28, 2021 at 8:10 AM Vlastimil Babka wrote: > > On 1/28/21 12:33 AM, Yang Shi wrote: > > The shrinker map management is not purely memcg specific, it is at the > > intersection > > between memory cgroup and shrinkers. It's allocation and assignment of a > > structure, > > and the

Re: [PATCH 2/2] ARM: dts: sti: Introduce 4KOpen (stih418-b2264) board

2021-01-28 Thread Alain Volmat
Hi Arnd, thanks for the comments and sorry for the large 'To' list. In my v2 I'll limit to Patrice Chotard (STi maintainer). On Thu, Jan 28, 2021 at 02:08:51PM +0100, Arnd Bergmann wrote: > On Thu, Jan 28, 2021 at 8:58 AM Alain Volmat wrote: > > > > 4KOpen (B2264) is a board based on the

Re: [PATCH net] rxrpc: Fix memory leak in rxrpc_lookup_local

2021-01-28 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Thu, 28 Jan 2021 10:48:36 + you wrote: > From: Takeshi Misawa > > Commit 9ebeddef58c4 ("rxrpc: rxrpc_peer needs to hold a ref on the > rxrpc_local record") > Then release ref in __rxrpc_put_peer and

Re: [PATCH net] stmmac: intel: Configure EHL PSE0 GbE and PSE1 GbE to 32 bits DMA addressing

2021-01-28 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Tue, 26 Jan 2021 18:08:44 +0800 you wrote: > From: Voon Weifeng > > Fix an issue where dump stack is printed and Reset Adapter occurs when > PSE0 GbE or/and PSE1 GbE is/are enabled. EHL PSE0 GbE and PSE1 GbE use > 32 bits

Re: [PATCH V5] x86/mm: Tracking linear mapping split events

2021-01-28 Thread Saravanan D
Hi Dave, > > Eek. There really doesn't appear to be a place in Documentation/ that > we've documented vmstat entries. > > Maybe you can start: > > Documentation/admin-guide/mm/vmstat.rst > I was also very surprised that there does not exist documentation for vmstat, that lead me to add

Re: [PATCH v7] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-28 Thread Sedat Dilek
On Thu, Jan 28, 2021 at 10:12 PM Nick Desaulniers wrote: > > On Thu, Jan 28, 2021 at 12:46 PM Sedat Dilek wrote: > > > > [ LLVM ] > > > > Today, I switched over to LLVM version 12.0.0-rc1. > > > > > > [ Step #1: 5.11.0-rc5-5-amd64-clang12-pgo ] > > > > My first kernel was built with

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

2021-01-28 Thread Md Sadre Alam
>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 READ_LOCATION_LAST_CW_n register will be use. Signed-off-by: Md Sadre Alam

[PATCH v3] hwmon: (lm70) Use device_get_match_data()

2021-01-28 Thread Rob Herring
From: Stephen Boyd Use the more modern API to get the match data out of the of match table. This saves some code, lines, and nicely avoids referencing the match table when it is undefined with configurations where CONFIG_OF=n. Signed-off-by: Stephen Boyd Cc: Arnd Bergmann Cc: Geert

Re: [PATCH v2] mm/page_alloc: count CMA pages per zone and print them in /proc/zoneinfo

2021-01-28 Thread David Hildenbrand
> Am 28.01.2021 um 22:54 schrieb David Rientjes : > > On Thu, 28 Jan 2021, David Hildenbrand wrote: > >> diff --git a/mm/vmstat.c b/mm/vmstat.c >> index 7758486097f9..957680db41fa 100644 >> --- a/mm/vmstat.c >> +++ b/mm/vmstat.c >> @@ -1650,6 +1650,11 @@ static void zoneinfo_show_print(struct

  1   2   3   4   5   6   7   8   9   10   >