[RFC 17/20] mm/tlb: updated completed deferred TLB flush conditionally

2021-01-30 Thread Nadav Amit
From: Nadav Amit If all the deferred TLB flushes were completed, there is no need to update the completed TLB flush. This update requires an atomic cmpxchg, so we would like to skip it. To do so, save for each mm the last TLB generation in which TLB flushes were deferred. While saving this infor

[RFC 15/20] mm: detect deferred TLB flushes in vma granularity

2021-01-30 Thread Nadav Amit
From: Nadav Amit Currently, deferred TLB flushes are detected in the mm granularity: if there is any deferred TLB flush in the entire address space due to NUMA migration, pte_accessible() in x86 would return true, and ptep_clear_flush() would require a TLB flush. This would happen even if the PTE

[RFC 14/20] mm: move inc/dec_tlb_flush_pending() to mmu_gather.c

2021-01-30 Thread Nadav Amit
From: Nadav Amit Reduce the chances that inc/dec_tlb_flush_pending() will be abused by moving them into mmu_gather.c, which is more of their natural place. This also allows to reduce the clutter on mm_types.h. Signed-off-by: Nadav Amit Cc: Andrea Arcangeli Cc: Andrew Morton Cc: Andy Lutomirsk

[RFC 12/20] mm/tlb: save the VMA that is flushed during tlb_start_vma()

2021-01-30 Thread Nadav Amit
From: Nadav Amit Certain architectures need information about the vma that is about to be flushed. Currently, an artificial vma is constructed using the original vma infromation. Instead of saving the flags, record the vma during tlb_start_vma() and use this vma when calling flush_tlb_range(). R

[RFC 07/20] mm: move x86 tlb_gen to generic code

2021-01-30 Thread Nadav Amit
From: Nadav Amit x86 currently has a TLB-generation tracking logic that can be used by additional architectures (as long as they implement some additional logic). Extract the relevant pieces of code from x86 to general TLB code. This would be useful to allow to write the next "fine granularity d

[RFC 09/20] mm: create pte/pmd_tlb_flush_pending()

2021-01-30 Thread Nadav Amit
From: Nadav Amit In preparation for fine(r) granularity, introduce pte_tlb_flush_pending() and pmd_tlb_flush_pending(). Right now the function directs to mm_tlb_flush_pending(). Change pte_accessible() to provide the vma as well. No functional change. Next patches will use this information on a

[RFC 11/20] mm/tlb: remove arch-specific tlb_start/end_vma()

2021-01-30 Thread Nadav Amit
From: Nadav Amit Architecture-specific tlb_start_vma() and tlb_end_vma() seem unnecessary. They are currently used for: 1. Avoid per-VMA TLB flushes. This can be determined by introducing a new config option. 2. Avoid saving information on the vma that is being flushed. Saving this inform

[RFC 13/20] mm/tlb: introduce tlb_start_ptes() and tlb_end_ptes()

2021-01-30 Thread Nadav Amit
From: Nadav Amit Introduce tlb_start_ptes() and tlb_end_ptes() which would be called before and after PTEs are updated and TLB flushes are deferred. This will be later be used for fine granualrity deferred TLB flushing detection. In the meanwhile, move flush_tlb_batched_pending() into tlb_start_

[RFC 10/20] mm: add pte_to_page()

2021-01-30 Thread Nadav Amit
From: Nadav Amit Add a pte_to_page(), which is similar to pmd_to_page, which will be used later. Inline pmd_to_page() as well. Signed-off-by: Nadav Amit Cc: Andrea Arcangeli Cc: Andrew Morton Cc: Andy Lutomirski Cc: Dave Hansen Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Will Deacon Cc:

[RFC 06/20] fs/task_mmu: use mmu_gather interface of clear-soft-dirty

2021-01-30 Thread Nadav Amit
From: Nadav Amit Use mmu_gather interface in task_mmu instead of {inc|dec}_tlb_flush_pending(). This would allow to consolidate the code and to avoid potential bugs. Signed-off-by: Nadav Amit Cc: Andrea Arcangeli Cc: Andrew Morton Cc: Andy Lutomirski Cc: Dave Hansen Cc: Peter Zijlstra Cc:

[RFC 08/20] mm: store completed TLB generation

2021-01-30 Thread Nadav Amit
From: Nadav Amit To detect deferred TLB flushes in fine granularity, we need to keep track on the completed TLB flush generation for each mm. Add logic to track for each mm the tlb_gen_completed, which tracks the completed TLB generation. It is the arch responsibility to call mark_mm_tlb_gen_don

[RFC 05/20] mm/tlb: move BATCHED_UNMAP_TLB_FLUSH to tlb.h

2021-01-30 Thread Nadav Amit
From: Nadav Amit Arguably, tlb.h is the natural place for TLB related code. In addition, task_mmu needs to be able to call to flush_tlb_batched_pending() and therefore cannot (or should not) use mm/internal.h. Move all the functions that are controlled by CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH

[RFC 02/20] mm/mprotect: use mmu_gather

2021-01-30 Thread Nadav Amit
From: Nadav Amit change_pXX_range() currently does not use mmu_gather, but instead implements its own deferred TLB flushes scheme. This both complicates the code, as developers need to be aware of different invalidation schemes, and prevents. Use mmu_gather in change_pXX_range(). As the pages ar

[RFC 01/20] mm/tlb: fix fullmm semantics

2021-01-30 Thread Nadav Amit
From: Nadav Amit fullmm in mmu_gather is supposed to indicate that the mm is torn-down (e.g., on process exit) and can therefore allow certain optimizations. However, tlb_finish_mmu() sets fullmm, when in fact it want to say that the TLB should be fully flushed. Change tlb_finish_mmu() to set ne

[RFC 03/20] mm/mprotect: do not flush on permission promotion

2021-01-30 Thread Nadav Amit
From: Nadav Amit Currently, using mprotect() to unprotect a memory region or uffd to unprotect a memory region causes a TLB flush. At least on x86, as protection is promoted, no TLB flush is needed. Add an arch-specific pte_may_need_flush() which tells whether a TLB flush is needed based on the

[RFC 04/20] mm/mapping_dirty_helpers: use mmu_gather

2021-01-30 Thread Nadav Amit
From: Nadav Amit Avoid open-coding mmu_gather for no reason. There is no apparent reason not to use the existing mmu_gather interfaces. Use the newly introduced pte_may_need_flush() to check whether a flush is needed to avoid unnecassary flushes. Signed-off-by: Nadav Amit Cc: Andrea Arcangeli

[RFC 00/20] TLB batching consolidation and enhancements

2021-01-30 Thread Nadav Amit
From: Nadav Amit There are currently (at least?) 5 different TLB batching schemes in the kernel: 1. Using mmu_gather (e.g., zap_page_range()). 2. Using {inc|dec}_tlb_flush_pending() to inform other threads on the ongoing deferred TLB flush and flushing the entire range eventually (e.g., c

Re: [PATCH net-next v1 1/6] lan743x: boost performance on cpu archs w/o dma cache snooping

2021-01-30 Thread Sven Van Asbroeck
On Sat, Jan 30, 2021 at 5:11 PM wrote: > > It appears you moved this packet_length assignment from just below the > following if block, however you left out the le32_to_cpu.See next comment PS this merge snafu is removed completely by the next patch in the set. So this will not prevent you from

[PATCH 1/2] ALSA: ac97: Constify static struct attribute_group

2021-01-30 Thread Rikard Falkeborn
The only usage of ac97_adapter_attr_group is to put its address in an array of pointers to const attribute_group structs. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- sound/ac97/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 0/2] ALSA: Constify static attribute_group structs

2021-01-30 Thread Rikard Falkeborn
Constify two static attribute_group structs that are never modified. These two were the only static non-const ones in sound/. Rikard Falkeborn (2): ALSA: ac97: Constify static struct attribute_group ALSA: hda: Constify static attribute_group sound/ac97/bus.c | 2 +- sound/hda/hdac_sysf

[PATCH 2/2] ALSA: hda: Constify static attribute_group

2021-01-30 Thread Rikard Falkeborn
The only usage of hdac_dev_attr_group is to put its address in an array of pointers to const attribute_group structs. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- sound/hda/hdac_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

[PATCH 6/9] net: usb: lan78xx: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/lan78xx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/usb/lan78xx.

[PATCH 5/9] net: usb: hso: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/hso.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/usb/hso.c b

[PATCH 7/9] net: usb: pegasus: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/pegasus.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/usb/pegasus

[PATCH 8/9] net: usb: r8152: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/r8152.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/usb/r8152.c

[PATCH 9/9] net: usb: rtl8150: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/usb/rtl8150.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/usb/rtl8150.

Re: [PATCH net-next v1 1/6] lan743x: boost performance on cpu archs w/o dma cache snooping

2021-01-30 Thread Sven Van Asbroeck
Hi Bryan, thank you so much for reviewing, I really appreciate it. On Sat, Jan 30, 2021 at 5:11 PM wrote: > > > /* unmap from dma */ > > + packet_length = RX_DESC_DATA0_FRAME_LENGTH_GET_ > > + (descriptor->data0);

Re: [PATCH v7 0/2] Kbuild: DWARF v5 support

2021-01-30 Thread Sedat Dilek
On Sat, Jan 30, 2021 at 1:44 AM Nick Desaulniers wrote: > > DWARF v5 is the latest standard of the DWARF debug info format. > > DWARF5 wins significantly in terms of size and especially so when mixed > with compression (CONFIG_DEBUG_INFO_COMPRESSED). > > Link: http://www.dwarfstd.org/doc/DWARF5.pd

[PATCH 08/24] perf daemon: Add background support

2021-01-30 Thread Jiri Olsa
Adding support to put daemon process in the background. It's now enabled by default and -f option is added to keep daemon process on the console for debugging. Signed-off-by: Jiri Olsa --- tools/perf/builtin-daemon.c | 66 +++-- 1 file changed, 63 insertions(+),

[PATCH 11/24] perf daemon: Add signal command

2021-01-30 Thread Jiri Olsa
Allow perf daemon to send SIGUSR2 to all running sessions or just to a specific session. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite --switch-output -a [session-sched] run = -m 20M -e sched:* --overwrite --switch-out

[PATCH 02/24] perf daemon: Add config option

2021-01-30 Thread Jiri Olsa
Adding config option and base functionality that takes the option argument (if specified) and other system config locations and produces 'acting' config file path. The actual config file processing is coming in following patches. Signed-off-by: Jiri Olsa --- tools/perf/builtin-daemon.c | 49 +++

[PATCH 07/24] perf daemon: Add config file change check

2021-01-30 Thread Jiri Olsa
Adding support to detect daemon's config file changes and re-read the configuration when that happens. Using inotify file descriptor pluged into the main fdarray object for polling. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --over

[PATCH 05/24] perf daemon: Add client socket support

2021-01-30 Thread Jiri Olsa
Adding support for client socket side that will be used to send commands to daemon server socket. This patch adds only the core support, all commands using this functionality are coming in following patches. Signed-off-by: Jiri Olsa --- tools/perf/builtin-daemon.c | 105

[PATCH 10/24] perf daemon: Add list command

2021-01-30 Thread Jiri Olsa
Adding list command to display all running sessions. It's the default command if no other command is specified. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite --switch-output -a [session-sched] run = -m 20M -e sched:* -

[PATCH 04/24] perf daemon: Add server socket support

2021-01-30 Thread Jiri Olsa
Add support to create server socket that listens for client commands and process them. This patch adds only the core support, all commands using this functionality are coming in following patches. Signed-off-by: Jiri Olsa --- tools/perf/builtin-daemon.c | 101 +++

[PATCH 09/24] perf daemon: Add signalfd support

2021-01-30 Thread Jiri Olsa
Using signalfd fd for tracking SIGCHLD signals as notification for perf session termination. This way we don't need to actively check for child status, but we are notified if there's change. Suggested-by: Alexei Budankov Signed-off-by: Jiri Olsa --- tools/perf/builtin-daemon.c | 147 ++

[PATCH 12/24] perf daemon: Add stop command

2021-01-30 Thread Jiri Olsa
Add 'perf daemon stop' command to stop daemon process and all running sessions. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite --switch-output -a [session-sched] run = -m 20M -e sched:* --overwrite --switch-output -a S

[PATCH 06/24] perf daemon: Add config file support

2021-01-30 Thread Jiri Olsa
Adding support to configure daemon with config file. Each client or server invocation of perf daemon needs to know the base directory, where all sessions data is stored. The base is defined with: daemon.base Base path for daemon data. All sessions data are stored under this path. The

[PATCH 14/24] perf daemon: Set control fifo for session

2021-01-30 Thread Jiri Olsa
Setup control fifos for session and add --control option to session arguments. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite --switch-output -a [session-sched] run = -m 20M -e sched:* --overwrite --switch-output -a St

[PATCH 13/24] perf daemon: Allow only one daemon over base directory

2021-01-30 Thread Jiri Olsa
Add 'lock' file under daemon base and flock it, so only one perf daemon can run on top of it. Each daemon tries to create and lock BASE/lock file, if it's successful we are sure we're the only daemon running over the BASE. Once daemon is finished, file descriptor to lock file is closed and lock i

[PATCH 19/24] perf tests: Add daemon list command test

2021-01-30 Thread Jiri Olsa
Adding test for basic perf daemon listing via the CSV output mode (-x option). Checking that configured sessions display expected values. Signed-off-by: Jiri Olsa --- tools/perf/tests/shell/daemon.sh | 184 +++ 1 file changed, 184 insertions(+) create mode 100755 to

[PATCH 20/24] perf tests: Add daemon reconfig test

2021-01-30 Thread Jiri Olsa
Adding test for daemon reconfiguration. The test changes the configuration file and checks that the session is changed properly. Signed-off-by: Jiri Olsa --- tools/perf/tests/shell/daemon.sh | 119 +++ 1 file changed, 119 insertions(+) diff --git a/tools/perf/tests/s

Re: [PATCH 03/14] cxl/mem: Find device capabilities

2021-01-30 Thread David Rientjes
On Fri, 29 Jan 2021, Ben Widawsky wrote: > +static int cxl_mem_setup_mailbox(struct cxl_mem *cxlm) > +{ > + const int cap = cxl_read_mbox_reg32(cxlm, CXLDEV_MB_CAPS_OFFSET); > + > + cxlm->mbox.payload_size = > + 1 << CXL_GET_FIELD(cap, CXLDEV_MB_CAP_PAYLOAD_SIZE); > + > + /

[PATCH 15/24] perf daemon: Add ping command

2021-01-30 Thread Jiri Olsa
Adding ping command to verify the perf record session is up and operational. It's used in following patches via test code to make sure perf record is ready to receive signals. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite

Re: [PATCH 05/14] cxl/mem: Register CXL memX devices

2021-01-30 Thread David Rientjes
On Fri, 29 Jan 2021, Ben Widawsky wrote: > diff --git a/Documentation/ABI/testing/sysfs-bus-cxl > b/Documentation/ABI/testing/sysfs-bus-cxl > new file mode 100644 > index ..fe7b87eba988 > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-bus-cxl > @@ -0,0 +1,26 @@ > +What:

Re: [PATCH 04/14] cxl/mem: Implement polled mode mailbox

2021-01-30 Thread David Rientjes
On Fri, 29 Jan 2021, Ben Widawsky wrote: > Provide enough functionality to utilize the mailbox of a memory device. > The mailbox is used to interact with the firmware running on the memory > device. > > The CXL specification defines separate capabilities for the mailbox and > the memory device. T

[PATCH 21/24] perf tests: Add daemon stop command test

2021-01-30 Thread Jiri Olsa
Adding test for perf daemon stop command. The test stops the daemon and verifies all the configured sessions are properly terminated. Signed-off-by: Jiri Olsa --- tools/perf/tests/shell/daemon.sh | 54 1 file changed, 54 insertions(+) diff --git a/tools/perf/tes

Re: [PATCH 02/14] cxl/mem: Map memory device registers

2021-01-30 Thread David Rientjes
On Fri, 29 Jan 2021, Ben Widawsky wrote: > diff --git a/drivers/cxl/cxl.h b/drivers/cxl/cxl.h > new file mode 100644 > index ..d81d0ba4617c > --- /dev/null > +++ b/drivers/cxl/cxl.h > @@ -0,0 +1,17 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ > +/* Copyright(c) 2020 Intel Corporat

[PATCH 22/24] perf tests: Add daemon signal command test

2021-01-30 Thread Jiri Olsa
Adding test for perf daemon signal command. The test sends a signal to configured sessions and verifies the perf data files were generated accordingly. Signed-off-by: Jiri Olsa --- tools/perf/tests/shell/daemon.sh | 40 1 file changed, 40 insertions(+) diff --gi

[PATCH 23/24] perf tests: Add daemon ping command test

2021-01-30 Thread Jiri Olsa
Adding test for perf daemon ping command. The tests verifies the ping command gets proper answer from sessions. Signed-off-by: Jiri Olsa --- tools/perf/tests/shell/daemon.sh | 40 1 file changed, 40 insertions(+) diff --git a/tools/perf/tests/shell/daemon.sh b/t

Re: [PATCH 01/14] cxl/mem: Introduce a driver for CXL-2.0-Type-3 endpoints

2021-01-30 Thread David Rientjes
On Fri, 29 Jan 2021, Ben Widawsky wrote: > diff --git a/drivers/cxl/Kconfig b/drivers/cxl/Kconfig > new file mode 100644 > index ..3b66b46af8a0 > --- /dev/null > +++ b/drivers/cxl/Kconfig > @@ -0,0 +1,35 @@ > +# SPDX-License-Identifier: GPL-2.0-only > +menuconfig CXL_BUS > + trista

[PATCH 24/24] perf tests: Add daemon lock test

2021-01-30 Thread Jiri Olsa
Adding test for perf daemon lock ensuring only one instance of daemon can run over one base directory. Signed-off-by: Jiri Olsa --- tools/perf/tests/shell/daemon.sh | 38 1 file changed, 38 insertions(+) diff --git a/tools/perf/tests/shell/daemon.sh b/tools/perf

[PATCH] csky: change a Kconfig symbol name to fix e1000 build error

2021-01-30 Thread Randy Dunlap
e1000's #define of CONFIG_RAM_BASE conflicts with a Kconfig symbol in arch/csky/Kconfig. The symbol in e1000 has been around longer, so change arch/csky/ to use DRAM_BASE instead of RAM_BASE to remove the conflict. (although e1000 is also a 2-line change) Not tested: I don't have a build toolchain

[PATCH 16/24] perf daemon: Use control to stop session

2021-01-30 Thread Jiri Olsa
Using 'stop' control command to stop perf record session. If that fails, falling back to current SIGTERM/SIGKILL pair. Signed-off-by: Jiri Olsa --- tools/perf/builtin-daemon.c | 56 ++--- 1 file changed, 46 insertions(+), 10 deletions(-) diff --git a/tools/perf/b

[PATCH 18/24] perf daemon: Add man page for perf-daemon

2021-01-30 Thread Jiri Olsa
Adding man page for perf-daemon usage. Signed-off-by: Jiri Olsa --- tools/perf/Documentation/perf-config.txt | 14 ++ tools/perf/Documentation/perf-daemon.txt | 187 +++ 2 files changed, 201 insertions(+) diff --git a/tools/perf/Documentation/perf-config.txt b/tools/perf/D

[PATCH 17/24] perf daemon: Add up time for daemon/session list

2021-01-30 Thread Jiri Olsa
Display up time for both daemon and sessions. Example: # cat ~/.perfconfig [daemon] base=/opt/perfdata [session-cycles] run = -m 10M -e cycles --overwrite --switch-output -a [session-sched] run = -m 20M -e sched:* --overwrite --switch-output -a Starting the daemon: # perf daem

Re: [PATCH] tpm_tis: Add missing start/stop_tpm_chip calls

2021-01-30 Thread Guenter Roeck
On 1/29/21 2:59 PM, Jarkko Sakkinen wrote: > On Tue, Jan 26, 2021 at 04:46:07PM +0100, Łukasz Majczak wrote: >> Hi Jarkko, Guenter >> >> Yes, here are the logs when failure occurs - >> https://gist.github.com/semihalf-majczak-lukasz/1575461f585f1e7fb1e9366b8eceaab9 >> Look for a phrase "TPM returne

[PATCH 01/24] perf daemon: Add daemon command

2021-01-30 Thread Jiri Olsa
Adding daemon skeleton with minimal base (non) functionality, covering various setup in start command. Adding empty perf-daemon.txt to skip compile warning. All the features and man page are coming in following patches. Signed-off-by: Jiri Olsa --- tools/perf/Build | 1

[PATCH 03/24] perf daemon: Add base option

2021-01-30 Thread Jiri Olsa
Adding base option allowing user to specify base directory. It will have precedence over config file base definition coming in following patches. Signed-off-by: Jiri Olsa --- tools/perf/builtin-daemon.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/tools/perf/builtin-daemon.c

[PATCHv3 00/24] perf tools: Add daemon command

2021-01-30 Thread Jiri Olsa
hi, we were asked for possibility to be able run record sessions on background. This patchset adds support to configure and run record sessions on background via new 'perf daemon' command. Please check below the example on usage. Available also here: git://git.kernel.org/pub/scm/linux/kernel/g

[PATCH 3/9] ifb: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/ifb.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/ifb.c b/drivers/net

[PATCH 2/9] caif_virtio: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/caif/caif_virtio.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/caif/

[PATCH 4/9] ppp: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the async and synctty drivers to use the new tasklet API n commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/ppp/ppp_async.c | 8 drivers/net/ppp/ppp_synctty.c | 8 2 files changed, 8 insertions

[PATCH 0/9] drivers: net: update tasklet_init callers

2021-01-30 Thread Emil Renner Berthing
This updates the remaining callers of tasklet_init() in drivers/net to the new API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") All changes are done by coccinelle using the following semantic patch. Coccinelle needs a little help parsing drivers/net/arcnet/arcne

[PATCH 1/9] arcnet: use new tasklet API

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") Signed-off-by: Emil Renner Berthing --- drivers/net/arcnet/arcnet.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/arcnet/ar

[PATCH] net: usb: cdc_ncm: use new API for bh tasklet

2021-01-30 Thread Emil Renner Berthing
This converts the driver to use the new tasklet API introduced in commit 12cc923f1ccc ("tasklet: Introduce new initialization API") It is unfortunate that we need to add a pointer to the driver context to get back to the usbnet device, but the space will be reclaimed once there are no more users o

Re: [PATCH v7 2/2] Kbuild: implement support for DWARF v5

2021-01-30 Thread Sedat Dilek
On Sun, Jan 31, 2021 at 12:10 AM Sedat Dilek wrote: > > On Sat, Jan 30, 2021 at 1:44 AM Nick Desaulniers > wrote: > > > > DWARF v5 is the latest standard of the DWARF debug info format. > > > > Feature detection of DWARF5 is onerous, especially given that we've > > removed $(AS), so we must query

Re: [PATCH v2] misc: bcm-vk: only support ttyVK if CONFIG_TTY is set

2021-01-30 Thread Scott Branden
On 2021-01-30 12:55 a.m., Greg Kroah-Hartman wrote: > On Fri, Jan 29, 2021 at 02:06:27PM -0800, Scott Branden wrote: >> Correct compile issue if CONFIG_TTY is not set by >> only adding ttyVK devices if CONFIG_TTY is set. >> >> Reported-by: Randy Dunlap >> Signed-off-by: Scott Branden >> >> ---

Re: Problems starting Xen domU after latest stable update

2021-01-30 Thread Marek Marczykowski-Górecki
On Fri, Jan 29, 2021 at 03:16:52PM +0100, Jürgen Groß wrote: > On 29.01.21 15:13, Michael Labriola wrote: > > On Fri, Jan 29, 2021 at 12:26 AM Jürgen Groß wrote: > > > If the buggy patch has been put into stable this Fixes: tag should > > > result in the fix being put into the same stable branches

Re: [PATCH] powerpc: fix AKEBONO build failures

2021-01-30 Thread Randy Dunlap
On 1/21/21 5:14 PM, Michael Ellerman wrote: Randy Dunlap writes: On 1/20/21 1:29 PM, Yury Norov wrote: Hi all, I found the power pc build broken on today's linux-next (647060f3b592). Darn, I was building linux-5.11-rc4. I'll try linux-next after I send this. --- From: Randy Dunlap Fulfi

[bug] 5.11-rc5 brought page allocation failure issue [ttm][amdgpu]

2021-01-30 Thread Mikhail Gavrilov
The 5.11-rc5 (git 76c057c84d28) brought a new issue. Now the kernel log is flooded with the message "page allocation failure". Trace: msedge:cs0: page allocation failure: order:10, mode:0x190cc2(GFP_HIGHUSER|__GFP_NORETRY|__GFP_NOMEMALLOC), nodemask=(null),cpuset=/,mems_allowed=0 CPU: 18 PID: 4540

aarch64-linux-gnu-ld: warning: orphan section `.eh_frame' from `sound/usb/implicit.o' being placed in section `.eh_frame'

2021-01-30 Thread kernel test robot
-20210130 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 275c6af7d7f1ed63a03d05b4484413e447133269) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x

Re: [PATCH] openrisc: use device tree to determine present cpus

2021-01-30 Thread Stafford Horne
Sorry, Please disrecard the g...@lianli.shorne-pla.net address in the mail distribution list. I must have it a incorrect button. -Stafford

Re: [PATCH v7 2/2] Kbuild: implement support for DWARF v5

2021-01-30 Thread Sedat Dilek
On Sat, Jan 30, 2021 at 1:44 AM Nick Desaulniers wrote: > > DWARF v5 is the latest standard of the DWARF debug info format. > > Feature detection of DWARF5 is onerous, especially given that we've > removed $(AS), so we must query $(CC) for DWARF5 assembler directive > support. > > The DWARF versio

Re: [PATCH] openrisc: use device tree to determine present cpus

2021-01-30 Thread Stafford Horne
On Sat, Jan 30, 2021 at 12:00:10PM +0100, Jan Henrik Weinstock wrote: > Hi Stafford, Geert, > > thanks for your feedback. I have made the following changes to the patch: Hi, Thanks for the updates. > 1. use for_each_of_cpu_node > 2. possible_cpus is now what is in the devicetree, up to NR_CPUS >

[PATCH 2/2] crypto: crypto4xx - Avoid linking failure with HW_RANDOM=m

2021-01-30 Thread Florian Fainelli
It is currently possible to build CONFIG_HW_RANDOM_PPC4XX=y with CONFIG_HW_RANDOM=m which would lead to the inability of linking with devm_hwrng_{register,unregister}. We cannot have the framework modular and the consumer of that framework built-in, so make that dependency explicit. Reported-by: k

[PATCH 1/2] powerpc/Kconfig: Fix unmet direct dependency on NET

2021-01-30 Thread Florian Fainelli
The kbuild test robot was able to generate a configuration where ETHERNET and NETDEVICES was selected by the Akenobo platform but not NET, which resulted in various build failures and these Kconfig warnings: WARNING: unmet direct dependencies detected for NETDEVICES Depends on [n]: NET [=n] Se

[GIT PULL] OpenRISC fixes for 5.11-rc6

2021-01-30 Thread Stafford Horne
Hi Linus, Please consider for pull: The following changes since commit 6ee1d745b7c9fd573fba142a2efdad76a9f1cb04: Linux 5.11-rc5 (2021-01-24 16:47:14 -0800) are available in the Git repository at: git://github.com/openrisc/linux.git tags/for-linus for you to fetch changes up to 1bea2a937da

[PATCH v4 2/2] mm: fix initialization of struct page for holes in memory layout

2021-01-30 Thread Mike Rapoport
From: Mike Rapoport There could be struct pages that are not backed by actual physical memory. This can happen when the actual memory bank is not a multiple of SECTION_SIZE or when an architecture does not register memory holes reserved by the firmware as memblock.memory. Such pages are current

RE: [PATCH net-next v1 1/6] lan743x: boost performance on cpu archs w/o dma cache snooping

2021-01-30 Thread Bryan.Whitehead
Sven, see below comments > @@ -2148,11 +2149,18 @@ static int lan743x_rx_process_packet(struct > lan743x_rx *rx) > descriptor = &rx->ring_cpu_ptr[first_index]; > > /* unmap from dma */ > + packet_length = RX_DESC_DATA0_FRAME_LE

[PATCH v4 0/2] mm: fix initialization of struct page for holes in memory layout

2021-01-30 Thread Mike Rapoport
From: Mike Rapoport Hi, Commit 73a6e474cb37 ("mm: memmap_init: iterate over memblock regions rather that check each PFN") exposed several issues with the memory map initialization and these patches fix those issues. Initially there were crashes during compaction that Qian Cai reported back in A

[PATCH v4 1/2] x86/setup: always add the beginning of RAM as memblock.memory

2021-01-30 Thread Mike Rapoport
From: Mike Rapoport The physical memory on an x86 system starts at address 0, but this is not always reflected in e820 map. For example, the BIOS can have e820 entries like [0.00] BIOS-provided physical RAM map: [0.00] BIOS-e820: [mem 0x1000-0x0009] usable

[tip:master] BUILD SUCCESS a7e0bdf1b07ea6169930ec42b0bdb17e1c1e3bb0

2021-01-30 Thread kernel test robot
ig powerpc allnoconfig i386 randconfig-a005-20210130 i386 randconfig-a003-20210130 i386 randconfig-a002-20210130 i386 randconfig-a001-20210130 i386 randconfig-a004-20210130 i386 randconfig-a006-20210

Re: [PATCH] hugetlbfs: show pagesize in unit of GB if possible

2021-01-30 Thread David Rientjes
On Sat, 30 Jan 2021, Miaohe Lin wrote: > Hugepage size in unit of GB is supported. We could show pagesize in unit of > GB to make it more friendly to read. Also rework the calculation code of > page size unit to make it more readable. > > Signed-off-by: Miaohe Lin > --- > fs/hugetlbfs/inode.c |

Re: [PATCH] platform/x86: dell-wmi-sysman: fix a NULL pointer dereference

2021-01-30 Thread Hans de Goede
Hi, On 1/29/21 6:26 PM, Mario Limonciello wrote: > An upcoming Dell platform is causing a NULL pointer dereference > in dell-wmi-sysman initialization. Validate that the input from > BIOS matches correct ACPI types and abort module initialization > if it fails. > > This leads to a memory leak th

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

2021-01-30 Thread Michael Kerrisk (man-pages)
Hello Suren, Thank you for the revisions! Just a few more comments: all pretty small stuff (many points that I overlooked the first time rround), since the page already looks pretty good by now. Again, thanks for the rendered version. As before, I've added my comments to the page source. On 1/29

Re: [PATCH v3 1/3] x509: Detect sm2 keys by their parameters OID

2021-01-30 Thread Jarkko Sakkinen
On Wed, 2021-01-27 at 07:33 -0500, Stefan Berger wrote: > From: Stefan Berger > > Detect whether a key is an sm2 type of key by its OID in the parameters > array rather than assuming that everything under OID_id_ecPublicKey > is sm2, which is not the case. > > Signed-off-by: Stefan Berger > ---

Re: [PATCH v2 net-next 3/4] net: introduce common dev_page_is_reserved()

2021-01-30 Thread John Hubbard
On 1/30/21 11:45 AM, Alexander Lobakin wrote: From: Jakub Kicinski Date: Sat, 30 Jan 2021 11:07:07 -0800 On Sat, 30 Jan 2021 15:42:29 + Alexander Lobakin wrote: On Wed, 27 Jan 2021 20:11:23 + Alexander Lobakin wrote: + * dev_page_is_reserved - check whether a page can be reused for

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

2021-01-30 Thread Cristian Marussi
Hi Jyoti, On Fri, Jan 29, 2021 at 02:43:13PM -0800, Jyoti Bhayana wrote: > Hi Christian, > > I have addressed your feedback in v4 of the patch. Please find below > the answers to some of your questions: > >The initial sensor_config ORed here is NOT initialized nor zeroed. > > There is no

Re: [PATCH 09/29] drm/gma500: Avoid comma separated statements

2021-01-30 Thread Patrik Jakobsson
On Sat, Jan 30, 2021 at 7:47 PM Joe Perches wrote: > > On Mon, 2020-08-24 at 21:56 -0700, Joe Perches wrote: > > Use semicolons and braces. > > Ping? This entire file is going away so perhaps just drop the patch to avoid a conflict. -Patrik > > > Signed-off-by: Joe Perches > > --- > > drivers

Re: [PATCH 0/8] gpio: implement the configfs testing module

2021-01-30 Thread Uwe Kleine-König
Hello, On Fri, Jan 29, 2021 at 02:46:16PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > This series adds a new GPIO testing module based on configfs committable items > and sysfs. The goal is to provide a testing driver that will be configurable > at runtime (won't need modul

ERROR: modpost: ".__dev_get_by_index" undefined!

2021-01-30 Thread kernel test robot
: powerpc64-randconfig-c003-20210130 (attached as .config) compiler: powerpc64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https

Re: [PATCH v2] tpm: ibmvtpm: fix error return code in tpm_ibmvtpm_probe()

2021-01-30 Thread Jarkko Sakkinen
On Fri, 2021-01-29 at 13:57 -0500, Stefan Berger wrote: > On 1/29/21 12:35 PM, Jarkko Sakkinen wrote: > > On Mon, Jan 25, 2021 at 08:47:53PM -0500, Stefan Berger wrote: > > > From: Stefan Berger > > > > > > Return error code -ETIMEDOUT rather than '0' when waiting for the > > > rtce_buf to be set

Re: Fail to boot on bpim3 with next-20210128

2021-01-30 Thread Samuel Holland
On 1/30/21 11:00 AM, Corentin Labbe wrote: > Hello > > next-20210128 cannot be booted on my bpim3. > It start booting then freeze. > > [0.00] Linux version 5.11.0-rc5-03084-g7426957d237f (compile@Red) > (armv7a-unknown-linux-gnueabihf-gcc (Gentoo 9.3.0-r2 p4) 9.3.0, GNU ld > (Gentoo 2.3

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

2021-01-30 Thread Jarkko Sakkinen
On Sat, 2021-01-30 at 22:40 +0200, Jarkko Sakkinen wrote: > On Thu, 2021-01-28 at 14:07 +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

Re: [PATCH net] net: dsa: mv88e6xxx: override existent unicast portvec in port_fdb_add

2021-01-30 Thread Tobias Waldekranz
On Sat, Jan 30, 2021 at 21:43, DENG Qingfang wrote: > Having multiple destination ports for a unicast address does not make > sense. > Make port_db_load_purge override existent unicast portvec instead of > adding a new port bit. Is this the layer we want to solve this problem at? What are the con

Re: [PATCH v5 0/5] Enable root to update the blacklist keyring

2021-01-30 Thread Jarkko Sakkinen
On Thu, 2021-01-28 at 20:17 +0100, Mickaël Salaün wrote: > This fifth patch series is a rebase on David Howells's keys-misc branch. > The fix patches are already in this branch and then removed from this > series, other patches are unchanged. > > The goal of these patches is to add a new configura

Re: [PATCH v2] iio: hid-sensor-rotation: Fix quaternion data not correct

2021-01-30 Thread Jonathan Cameron
On Sat, 30 Jan 2021 18:25:46 +0800 Ye Xiang wrote: > Because the data of HID_USAGE_SENSOR_ORIENT_QUATERNION defined by ISH FW > is s16, but quaternion data type is in_rot_quaternion_type(le:s16/32X4>>0), > need to transform data type from s16 to s32 > > Fixes: fc18dddc0625 ("iio: hid-sensors: Ad

Re: [PATCH] HID: logitech-dj: add support for keyboard events in eQUAD step 4 Gaming

2021-01-30 Thread Filipe Laíns
On Sat, 2021-01-30 at 21:27 +0100, Hans de Goede wrote: > Hi, > > On 1/30/21 8:14 PM, Filipe Laíns wrote: > > Hans, > > > > You added support for non unifying receivers in > > 74808f9115cee2bb53e7161432959f3e87b631e4, could you please test and make > > sure > > this cause any breakage with your d

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

2021-01-30 Thread Jarkko Sakkinen
On Thu, 2021-01-28 at 14:07 +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 tpm_get_timeouts() or tp

<    1   2   3   4   5   6   >