Re: [PATCH] bio: limit bio max size.

2021-01-12 Thread Damien Le Moal
On 2021/01/12 21:14, Changheun Lee wrote: >> On 2021/01/12 17:52, Changheun Lee wrote: >>> From: "Changheun Lee" >>> >>> bio size can grow up to 4GB when muli-page bvec is enabled. >>> but sometimes it would lead to inefficient behaviors. >>> in case of large chunk direct I/O, - 64MB chunk read

Re: [f2fs-dev] [PATCH v3 1/5] f2fs: compress: add compress_inode to cache compressed blocks

2021-01-12 Thread Chao Yu
On 2021/1/13 6:36, Jaegeuk Kim wrote: On 01/12, Chao Yu wrote: On 2021/1/12 10:04, Jaegeuk Kim wrote: On 01/12, Chao Yu wrote: On 2021/1/11 19:45, Chao Yu wrote: On 2021/1/11 18:31, Chao Yu wrote: On 2021/1/11 17:48, Jaegeuk Kim wrote: Hi Chao, After quick test of fsstress w/ fault

Re: [PATCH net-next 0/5] skbuff: introduce skbuff_heads bulking and reusing

2021-01-12 Thread Jakub Kicinski
On Tue, 12 Jan 2021 13:23:16 +0100 Eric Dumazet wrote: > On Tue, Jan 12, 2021 at 12:08 PM Alexander Lobakin wrote: > > > > From: Edward Cree > > Date: Tue, 12 Jan 2021 09:54:04 + > > > > > Without wishing to weigh in on whether this caching is a good idea... > > > > Well, we already have

Re: [PATCH v5 1/2] fpga: dfl: add the userspace I/O device support for DFL devices

2021-01-12 Thread Moritz Fischer
Hi Xu, On Tue, Jan 12, 2021 at 08:16:15AM +0800, Xu Yilun wrote: > On Mon, Jan 11, 2021 at 06:59:10AM -0800, Tom Rix wrote: > > > > On 1/10/21 10:16 PM, Xu Yilun wrote: > > > On Sun, Jan 10, 2021 at 12:11:17PM -0800, Moritz Fischer wrote: > > >> On Sat, Jan 02, 2021 at 11:13:01AM +0800, Xu Yilun

[PATCH 0/2] perf tools: add 'perf irq' to measure the hardware interrupts

2021-01-12 Thread Bixuan Cui
When the hardware interrupt processing function is executed, the interrupt and preemption of current cpu are disabled. As a result, the task is suspended. The execution of the hardware processing function takes a long time (for example 5 ms), will affect the task scheduling performance. This

[PATCH 1/2] perf tools: add 'perf irq' to measure the hardware interrupts

2021-01-12 Thread Bixuan Cui
Add 'perf irq' to trace/measure the hardware interrupts. Now three functions are provided: 1. 'perf irq record ' to record the irq handler events. 2. 'perf irq script' to see a detailed trace of the workload that was recorded. 3. 'perf irq timeconsume' to calculate the time consumed by

Re: [PATCH v2] software_node: Add kernel-doc comments to exported symbols

2021-01-12 Thread Randy Dunlap
On 1/12/21 4:02 PM, Daniel Scally wrote: > A number of functions which are exported via EXPORT_SYMBOL_GPL() lack any > kernel-doc comments; add those in so all exported symbols are documented. > > Reviewed-by: Andy Shevchenko > Reviewed-by: Heikki Krogerus > Signed-off-by: Daniel Scally > ---

[PATCH 2/2] perf tools: Add documentation for 'perf irq' command

2021-01-12 Thread Bixuan Cui
Add documentation for 'perf irq' command. Signed-off-by: Bixuan Cui --- tools/perf/Documentation/perf-irq.txt | 58 +++ tools/perf/command-list.txt | 1 + 2 files changed, 59 insertions(+) create mode 100644 tools/perf/Documentation/perf-irq.txt diff --git

Re: [PATCH v0 net-next 1/1] Allow user to set metric on default route learned via Router Advertisement.

2021-01-12 Thread Jakub Kicinski
On Tue, 12 Jan 2021 11:55:11 -0800 Praveen Chaudhary wrote: > Hi Jakub > > Thanks for the review, > > Sure, I will reraise the patch (again v0i, sonce no code changes) after > adding space before '<'. > > This patch adds lines in 'include/uapi/', that requires ABI version changes > for debian

Re: [RFC PATCH v3 6/6] of: Add plumbing for restricted DMA pool

2021-01-12 Thread Florian Fainelli
On 1/5/21 7:41 PM, Claire Chang wrote: > If a device is not behind an IOMMU, we look up the device node and set > up the restricted DMA when the restricted-dma-pool is presented. > > Signed-off-by: Claire Chang > --- [snip] > +int of_dma_set_restricted_buffer(struct device *dev) > +{ > +

Re: [PATCH] mm: net: memcg accounting for TCP rx zerocopy

2021-01-12 Thread Roman Gushchin
On Tue, Jan 12, 2021 at 03:36:18PM -0800, Arjun Roy wrote: > On Tue, Jan 12, 2021 at 3:31 PM Roman Gushchin wrote: > > > > On Tue, Jan 12, 2021 at 01:41:05PM -0800, Shakeel Butt wrote: > > > From: Arjun Roy > > > > > > TCP zerocopy receive is used by high performance network applications to > >

Re: [PATCH v2 4/5] remoteproc: meson-mx-ao-arc: Add a driver for the AO ARC remote procesor

2021-01-12 Thread Mathieu Poirier
Hi Martin, On Sat, Jan 02, 2021 at 09:59:03PM +0100, Martin Blumenstingl wrote: > Amlogic Meson6, Meson8, Meson8b and Meson8m2 embed an ARC core in the > Always-On (AO) power-domain. This is typically used for waking up the > ARM cores after system suspend. > > The configuration is spread across

Re: [PATCH] bpf: Hoise pahole version checks into Kconfig

2021-01-12 Thread Sedat Dilek
On Mon, Jan 11, 2021 at 7:06 PM Nathan Chancellor wrote: > > After commit da5fb18225b4 ("bpf: Support pre-2.25-binutils objcopy for > vmlinux BTF"), having CONFIG_DEBUG_INFO_BTF enabled but lacking a valid > copy of pahole results in a kernel that will fully compile but fail to > link. The user

Re: [PATCH v1 1/7] coresight: etm-perf: Add support for PID tracing for kernel at EL2

2021-01-12 Thread Mike Leach
Hi Leo, On Tue, 12 Jan 2021 at 14:15, Leo Yan wrote: > > Hi Mike, > > On Tue, Jan 12, 2021 at 11:23:03AM +, Mike Leach wrote: > > Hi Leo, > > > > On Tue, 12 Jan 2021 at 08:58, Leo Yan wrote: > > > > > > Hi Mike, > > > > > > On Mon, Jan 11, 2021 at 04:22:39PM +, Mike Leach wrote: > > > >

[tip:x86/misc] BUILD SUCCESS 9297e602adf8d5587d83941c48e4dbae46c8df5f

2021-01-12 Thread kernel test robot
-20210112 i386 randconfig-a005-20210112 i386 randconfig-a006-20210112 i386 randconfig-a003-20210112 i386 randconfig-a001-20210112 i386 randconfig-a004-20210112 x86_64 randconfig-a015-20210112 x86_64

Re: [PATCH] kvm: Add emulation for movups/movupd

2021-01-12 Thread Jim Mattson
On Wed, Apr 4, 2018 at 10:44 PM Paolo Bonzini wrote: > > On 04/04/2018 19:35, Stefan Fritsch wrote: > > On Wednesday, 4 April 2018 19:24:20 CEST Paolo Bonzini wrote: > >> On 04/04/2018 19:10, Konrad Rzeszutek Wilk wrote: > >>> Should there be a corresponding test-case? > >> > >> Good point!

Re: [PATCH v5] power/supply: Add ltc4162-l-charger

2021-01-12 Thread Sebastian Reichel
Hi, On Thu, Jan 07, 2021 at 03:32:48PM +0100, Mike Looijmans wrote: > Add support for the LTC4162-L Li-Ion battery charger. The driver allows > reading back telemetry and to set some charging options like the input > current limit. > > Signed-off-by: Mike Looijmans > --- Thanks, queued. --

Re: [PATCH 0/1] mm: restore full accuracy in COW page reuse

2021-01-12 Thread Jerome Glisse
On Mon, Jan 11, 2021 at 02:18:13PM -0800, Linus Torvalds wrote: > On Mon, Jan 11, 2021 at 11:19 AM Linus Torvalds > wrote: > > > > On Sun, Jan 10, 2021 at 11:27 PM John Hubbard wrote: > > > IMHO, a lot of the bits in page _refcount are still being wasted (even > > > after GUP_PIN_COUNTING_BIAS

Re: [RFC PATCH v3 2/6] swiotlb: Add restricted DMA pool

2021-01-12 Thread Florian Fainelli
On 1/7/21 1:19 PM, Konrad Rzeszutek Wilk wrote: > On Thu, Jan 07, 2021 at 10:09:14AM -0800, Florian Fainelli wrote: >> On 1/7/21 9:57 AM, Konrad Rzeszutek Wilk wrote: >>> On Fri, Jan 08, 2021 at 01:39:18AM +0800, Claire Chang wrote: Hi Greg and Konrad, This change is intended to be

Re: [PATCH -tip V3 0/8] workqueue: break affinity initiatively

2021-01-12 Thread Paul E. McKenney
On Tue, Jan 12, 2021 at 09:14:11AM -0800, Paul E. McKenney wrote: > On Mon, Jan 11, 2021 at 01:50:52PM -0800, Paul E. McKenney wrote: > > On Mon, Jan 11, 2021 at 10:09:07AM -0800, Paul E. McKenney wrote: > > > On Mon, Jan 11, 2021 at 06:16:39PM +0100, Peter Zijlstra wrote: > > > > > > > > While

Re: [PATCH] [v2] ubsan: disable unsigned-overflow check for i386

2021-01-12 Thread Kees Cook
On Tue, Jan 12, 2021 at 09:29:15PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Building ubsan kernels even for compile-testing introduced these > warnings in my randconfig environment: > > crypto/blake2b_generic.c:98:13: error: stack frame size of 9636 bytes in > function

Re: [RFC PATCH 0/7] Support for virtio-net hash reporting

2021-01-12 Thread Willem de Bruijn
On Tue, Jan 12, 2021 at 3:29 PM Yuri Benditovich wrote: > > On Tue, Jan 12, 2021 at 9:49 PM Yuri Benditovich > wrote: > > > > On Tue, Jan 12, 2021 at 9:41 PM Yuri Benditovich > > wrote: > > > > > > Existing TUN module is able to use provided "steering eBPF" to > > > calculate per-packet hash

Re: [PATCH v14 4/6] powerpc: Delete unused functions

2021-01-12 Thread Lakshmi Ramasubramanian
On 1/12/21 3:30 PM, Mimi Zohar wrote: Hi Lakshmi, On Mon, 2021-01-04 at 11:26 -0800, Lakshmi Ramasubramanian wrote: diff --git a/arch/powerpc/kexec/file_load_64.c b/arch/powerpc/kexec/file_load_64.c index a05c19b3cc60..3cab318aa3b9 100644 --- a/arch/powerpc/kexec/file_load_64.c +++

Re: [PATCH v14 6/6] arm64: Add IMA log information in kimage used for kexec

2021-01-12 Thread Lakshmi Ramasubramanian
On 1/12/21 3:28 PM, Mimi Zohar wrote: Hi Lakshmi, On Mon, 2021-01-04 at 11:26 -0800, Lakshmi Ramasubramanian wrote: Address and size of the buffer containing the IMA measurement log need to be passed from the current kernel to the next kernel on kexec. Any existing "linux,ima-kexec-buffer"

Re: [PATCH v4 2/2] Input: cros-ec-keyb - Expose function row physical map to userspace

2021-01-12 Thread Philip Chen
On Mon, Jan 11, 2021 at 6:24 PM Stephen Boyd wrote: > > Quoting Philip Chen (2021-01-07 15:42:09) > > The top-row keys in a keyboard usually have dual functionalities. > > E.g. A function key "F1" is also an action key "Browser back". > > > > Therefore, when an application receives an action key

Re: [PATCH] ubsan: Implement __ubsan_handle_alignment_assumption

2021-01-12 Thread Kees Cook
On Tue, Jan 12, 2021 at 03:06:34PM -0700, Nathan Chancellor wrote: > On Tue, Jan 12, 2021 at 01:53:30PM -0800, Nick Desaulniers wrote: > > On Tue, Jan 12, 2021 at 1:37 PM Nathan Chancellor > > wrote: > > > > > > > if real_ptr is an unsigned long, do we want to use `__ffs(real_ptr) + > > > > 1`

Re: [PATCH v1 3/7] perf cs-etm: Calculate per CPU metadata array size

2021-01-12 Thread Mike Leach
Hi Leo, On Mon, 11 Jan 2021 at 15:06, Leo Yan wrote: > > Hi Mike, > > On Mon, Jan 11, 2021 at 12:09:12PM +, Mike Leach wrote: > > Hi Leo, > > > > I think there is an issue here in that your modification assumes that > > all cpus in the system are of the same ETM type. The original routine >

Re: [PATCH v4 3/6] ASoC: audio-graph-card: Support setting component plls and sysclks

2021-01-12 Thread Kuninori Morimoto
Hi Richard > > As I mentioned in v3, adding *general* pll to common card driver is > > maybe difficult. > > You did say that. But you did not say why. > Can you be more specific about what problem you see with adding it > to the generic driver? > > > Using your own customized audio-graph-card

Re: [PATCH 4/7] spi: spi-geni-qcom: Add support for GPI dma

2021-01-12 Thread Doug Anderson
Hi, On Mon, Jan 11, 2021 at 7:17 AM Vinod Koul wrote: > > We can use GPI DMA for devices where it is enabled by firmware. Add > support for this mode > > Signed-off-by: Vinod Koul > --- > drivers/spi/spi-geni-qcom.c | 395 +++- > 1 file changed, 384

Re: [PATCH 20/24] kvm: x86/mmu: Add atomic option for setting SPTEs

2021-01-12 Thread kernel test robot
Hi Ben, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.11-rc3 next-20210112] [cannot apply to kvm/linux-next kvmarm/next kvm-ppc/kvm-ppc-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

[PATCH v2] software_node: Add kernel-doc comments to exported symbols

2021-01-12 Thread Daniel Scally
A number of functions which are exported via EXPORT_SYMBOL_GPL() lack any kernel-doc comments; add those in so all exported symbols are documented. Reviewed-by: Andy Shevchenko Reviewed-by: Heikki Krogerus Signed-off-by: Daniel Scally --- Changes in version 2: - Replaced

Re: [RFC PATCH v3 2/6] swiotlb: Add restricted DMA pool

2021-01-12 Thread Florian Fainelli
On 1/5/21 7:41 PM, Claire Chang wrote: > Add the initialization function to create restricted DMA pools from > matching reserved-memory nodes in the device tree. > > Signed-off-by: Claire Chang > --- > include/linux/device.h | 4 ++ > include/linux/swiotlb.h | 7 +- > kernel/dma/Kconfig

Re: [PATCH 0/7] Add and enable GPI DMA users

2021-01-12 Thread Doug Anderson
Hi, On Mon, Jan 11, 2021 at 7:17 AM Vinod Koul wrote: > > Hello, > > This series add the GPI DMA in qcom geni spi and i2c drivers. For this we > first need to move GENI_IF_DISABLE_RO and struct geni_wrapper to common > headers and then add support for gpi dma in geni driver. > > Then we add spi

Re: [PATCH 3/7] soc: qcom: geni: Add support for gpi dma

2021-01-12 Thread Doug Anderson
Hi, On Mon, Jan 11, 2021 at 7:17 AM Vinod Koul wrote: > > +static int geni_se_select_gpi_mode(struct geni_se *se) > +{ > + unsigned int geni_dma_mode = 0; > + unsigned int gpi_event_en = 0; > + unsigned int common_geni_m_irq_en = 0; > + unsigned int common_geni_s_irq_en =

Re: [PATCH] [v2] ubsan: disable unsigned-overflow check for i386

2021-01-12 Thread Nathan Chancellor
On Tue, Jan 12, 2021 at 09:29:15PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Building ubsan kernels even for compile-testing introduced these > warnings in my randconfig environment: > > crypto/blake2b_generic.c:98:13: error: stack frame size of 9636 bytes in > function

Re: [PATCH] kvm: x86: Mark __kvm_vcpu_halt() as static

2021-01-12 Thread Sean Christopherson
On Sat, Jan 09, 2021, Souptick Joarder wrote: > Kernel test robot throws below warning -> > > >> arch/x86/kvm/x86.c:7979:5: warning: no previous prototype for > >> '__kvm_vcpu_halt' [-Wmissing-prototypes] > 7979 | int __kvm_vcpu_halt(struct kvm_vcpu *vcpu, int state, int > reason) >

Re: [PATCH 0/2] irq: detect slow IRQ handlers

2021-01-12 Thread Paul E. McKenney
On Tue, Jan 12, 2021 at 01:59:48PM +, Mark Rutland wrote: > Hi, > > While fuzzing arm64 with Syzkaller (under QEMU+KVM) over a number of releases, > I've occasionally seen some ridiculously long stalls (20+ seconds), where it > appears that a CPU is stuck in a hard IRQ context. As this gets

Old platforms never die, was Re: Old platforms: bring out your dead

2021-01-12 Thread Finn Thain
On Tue, 12 Jan 2021, John Paul Adrian Glaubitz wrote: > > There has to be a healthy balance between hobbyist and commercial use. > Yes, both of those, and everything in-between, including for-profit businesses that serve mostly hobbyists. Also start-up companies that may never be

Re: [PATCH] mm: net: memcg accounting for TCP rx zerocopy

2021-01-12 Thread Arjun Roy
On Tue, Jan 12, 2021 at 3:48 PM Roman Gushchin wrote: > > On Tue, Jan 12, 2021 at 03:36:18PM -0800, Arjun Roy wrote: > > On Tue, Jan 12, 2021 at 3:31 PM Roman Gushchin wrote: > > > > > > On Tue, Jan 12, 2021 at 01:41:05PM -0800, Shakeel Butt wrote: > > > > From: Arjun Roy > > > > > > > > TCP

Re: [PATCH] mm: net: memcg accounting for TCP rx zerocopy

2021-01-12 Thread Shakeel Butt
On Tue, Jan 12, 2021 at 3:48 PM Roman Gushchin wrote: > > On Tue, Jan 12, 2021 at 03:36:18PM -0800, Arjun Roy wrote: > > On Tue, Jan 12, 2021 at 3:31 PM Roman Gushchin wrote: > > > > > > On Tue, Jan 12, 2021 at 01:41:05PM -0800, Shakeel Butt wrote: > > > > From: Arjun Roy > > > > > > > > TCP

Re: [PATCH 1/4] MIPS: process: Reorder header files

2021-01-12 Thread Huacai Chen
Reviewed-by: Huacai Chen On Tue, Jan 12, 2021 at 9:07 PM Jinyang He wrote: > > Just reorder the header files. > > Signed-off-by: Jinyang He > --- > arch/mips/kernel/process.c | 44 ++-- > 1 file changed, 22 insertions(+), 22 deletions(-) > > diff --git

[PATCH v2] ubsan: Implement __ubsan_handle_alignment_assumption

2021-01-12 Thread Nathan Chancellor
When building ARCH=mips 32r2el_defconfig with CONFIG_UBSAN_ALIGNMENT: ld.lld: error: undefined symbol: __ubsan_handle_alignment_assumption >>> referenced by slab.h:557 (include/linux/slab.h:557) >>> main.o:(do_initcalls) in archive init/built-in.a >>> referenced by slab.h:448

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2021-01-12 Thread Andy Lutomirski
> On Jan 12, 2021, at 2:29 PM, Nadav Amit wrote: > >  >> >> On Jan 12, 2021, at 1:43 PM, Will Deacon wrote: >> >> On Tue, Jan 12, 2021 at 12:38:34PM -0800, Nadav Amit wrote: On Jan 12, 2021, at 11:56 AM, Yu Zhao wrote: > On Tue, Jan 12, 2021 at 11:15:43AM -0800, Nadav Amit

Re: [PATCH RFC] x86/sgx: Add trivial NUMA allocation

2021-01-12 Thread Dave Hansen
On 12/16/20 5:50 AM, Jarkko Sakkinen wrote: > Create a pointer array for each NUMA node with the references to the > contained EPC sections. Use this in __sgx_alloc_epc_page() to knock the > current NUMA node before the others. It makes it harder to comment when I'm not on cc. Hint, hint... ;)

[PATCH] venus: Check for valid device instance

2021-01-12 Thread Fritz Koenig
core->dev_dec and core-dev->enc are set up by the corresponding vdec_probe and venc_probe. If the probe fails, they will not be set and so could be null when venus_sys_error_handler is called. Fixes: 43e221e485e5 ("media: venus: Rework recovery mechanism") Signed-off by: Fritz Koenig ---

Re: [PATCH] ubsan: Implement __ubsan_handle_alignment_assumption

2021-01-12 Thread kernel test robot
Hi Nathan, I love your patch! Perhaps something to improve: [auto build test WARNING on 7c53f6b671f4aba70ff15e1b05148b10d58c2837] url: https://github.com/0day-ci/linux/commits/Nathan-Chancellor/ubsan-Implement-__ubsan_handle_alignment_assumption/20210113-055714 base:

Re: linux-next: Signed-off-by missing for commits in the rcu tree

2021-01-12 Thread Paul E. McKenney
On Wed, Jan 13, 2021 at 09:03:56AM +1100, Stephen Rothwell wrote: > Hi all, > > Commits > > 32678deac9cd ("timer: Report ignored local enqueue in nohz mode") > 8beeef08bd76 ("entry: Report local wake up on resched blind zone while > resuming to user") > 7b3f45a1ad1f ("sched: Report local

Re: [PATCH] mm: net: memcg accounting for TCP rx zerocopy

2021-01-12 Thread Shakeel Butt
On Tue, Jan 12, 2021 at 4:12 PM Arjun Roy wrote: > > On Tue, Jan 12, 2021 at 3:48 PM Roman Gushchin wrote: > > [snip] > > Historically we have a corresponding vmstat counter to each charged page. > > It helps with finding accounting/stastistics issues: we can check that > > memory.current ~=

[PATCH v4 0/3] Kbuild: DWARF v5 support

2021-01-12 Thread Nick Desaulniers
DWARF v5 is the latest standard of the DWARF debug info format. DWARF5 wins significantly in terms of size when mixed with compression (CONFIG_DEBUG_INFO_COMPRESSED). Link: http://www.dwarfstd.org/doc/DWARF5.pdf Patch 1 is a cleanup from Masahiro and isn't DWARF v5 specific. Patch 2 is a

[PATCH v4 1/3] Remove $(cc-option,-gdwarf-4) dependency from CONFIG_DEBUG_INFO_DWARF4

2021-01-12 Thread Nick Desaulniers
From: Masahiro Yamada The -gdwarf-4 flag is supported by GCC 4.5+, and also by Clang. You can see it at https://godbolt.org/z/6ed1oW For gcc 4.5.3 pane,line 37:.value 0x4 For clang 10.0.1 pane, line 117: .short 4 Given Documentation/process/changes.rst stating GCC 4.9 is the

[PATCH] module: invoke kobject uevent before sending LIVE notification

2021-01-12 Thread Adam Zabrocki
The recent change "module: delay kobject uevent until after module init call", while helping avoid a race between udev/systemd and the module loader, made it unnecessarily more difficult to monitor kernel module integrity by out-of-tree projects such as Linux Kernel Runtime Guard. Specifically,

Re: [PATCH v2 1/3] software node: Introduce device_add_software_node()

2021-01-12 Thread Daniel Scally
Hi Heikki On 11/01/2021 14:10, Heikki Krogerus wrote: > This helper will register a software node and then assign > it to device at the same time. The function will also make > sure that the device can't have more than one software node. > > Tested-by: Andy Shevchenko > Signed-off-by: Heikki

[PATCH v4 2/3] Kbuild: make DWARF version a choice

2021-01-12 Thread Nick Desaulniers
Modifies CONFIG_DEBUG_INFO_DWARF4 to be a member of a choice. Adds an explicit CONFIG_DEBUG_INFO_DWARF2, which is the default. Does so in a way that's forward compatible with existing configs, and makes adding future versions more straightforward. Suggested-by: Fangrui Song Suggested-by:

[PATCH v4 3/3] Kbuild: implement support for DWARF v5

2021-01-12 Thread Nick Desaulniers
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. GNU `as` only recently gained support for specifying -gdwarf-5. The DWARF version of

Re: [PATCH v4 01/21] ibmvfc: add vhost fields and defaults for MQ enablement

2021-01-12 Thread Tyrel Datwyler
On 1/12/21 2:54 PM, Brian King wrote: > On 1/11/21 5:12 PM, Tyrel Datwyler wrote: >> Introduce several new vhost fields for managing MQ state of the adapter >> as well as initial defaults for MQ enablement. >> >> Signed-off-by: Tyrel Datwyler >> --- >> drivers/scsi/ibmvscsi/ibmvfc.c | 8

Re: [PATCH] ubsan: Implement __ubsan_handle_alignment_assumption

2021-01-12 Thread kernel test robot
:7c53f6b671f4aba70ff15e1b05148b10d58c2837 config: arm64-randconfig-r031-20210112 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 32bcfcda4e28375e5a85268d2acfabcfcc011abf) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master

Re: [PATCH] kernel: trace: uprobe: Fix word to the correct spelling

2021-01-12 Thread Randy Dunlap
On 1/11/21 8:50 PM, Bhaskar Chowdhury wrote: > s/controling/controlling/p > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap Thanks. > --- > kernel/trace/trace_uprobe.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/trace/trace_uprobe.c

Re: [PATCH v4] perf stat: Fix wrong skipping for per-die aggregation

2021-01-12 Thread Jin, Yao
Hi Jiri, On 1/12/2021 6:04 PM, Jiri Olsa wrote: On Tue, Jan 05, 2021 at 10:36:15AM +0800, Jin Yao wrote: SNIP diff --git a/tools/perf/util/stat.c b/tools/perf/util/stat.c index 8ce1479c98f0..a658e0ffaf2a 100644 --- a/tools/perf/util/stat.c +++ b/tools/perf/util/stat.c @@ -13,6 +13,7 @@

Re: [PATCH] tcp: keepalive fixes

2021-01-12 Thread Enke Chen
Hi, Yuchung: I have attached the python script that reproduces the keepalive issues. The script is a slight modification of the one written by Marek Majkowski: https://github.com/cloudflare/cloudflare-blog/blob/master/2019-09-tcp-keepalives/test-zero.py Please note that only the TCP keepalive

Re: [RFC PATCH v3 4/6] swiotlb: Add restricted DMA alloc/free support.

2021-01-12 Thread Florian Fainelli
On 1/5/21 7:41 PM, Claire Chang wrote: > Add the functions, swiotlb_alloc and swiotlb_free to support the > memory allocation from restricted DMA pool. > > Signed-off-by: Claire Chang > --- [snip] > diff --git a/kernel/dma/direct.c b/kernel/dma/direct.c > index 30ccbc08e229..126e9b3354d6

Re: [RFC PATCH v3 3/6] swiotlb: Use restricted DMA pool if available

2021-01-12 Thread Florian Fainelli
On 1/5/21 7:41 PM, Claire Chang wrote: > Regardless of swiotlb setting, the restricted DMA pool is preferred if > available. > > The restricted DMA pools provide a basic level of protection against > the DMA overwriting buffer contents at unexpected times. However, to > protect against general

Re: [PATCH] mm: net: memcg accounting for TCP rx zerocopy

2021-01-12 Thread Arjun Roy
On Tue, Jan 12, 2021 at 3:31 PM Roman Gushchin wrote: > > On Tue, Jan 12, 2021 at 01:41:05PM -0800, Shakeel Butt wrote: > > From: Arjun Roy > > > > TCP zerocopy receive is used by high performance network applications to > > further scale. For RX zerocopy, the memory containing the network data

Re: [PATCH v5 00/15] Add functionality to ipu3-cio2 driver allowing software_node connections to sensors on platforms designed for Windows

2021-01-12 Thread Daniel Scally
Hi Rafael, Sakari On 12/01/2021 19:34, Rafael J. Wysocki wrote: > >> I'm hopeful that most or all of this series could get picked up for 5.12. >> We touch a few different areas (listed below), but I think the easiest >> approach would be to merge everything through media tree. Rafael, Greg, >>

Re: (subset) [PATCH 00/10] Remove support for TX49xx

2021-01-12 Thread Alexandre Belloni
On Tue, 5 Jan 2021 15:02:45 +0100, Thomas Bogendoerfer wrote: > I couldn't find any buyable product other than reference boards using > TX49xx CPUs. And since nobody showed interest in keeping support for > it, it's time to remove it. > > I've split up the removal into seperate parts for

Re: [PATCH v14 4/6] powerpc: Delete unused functions

2021-01-12 Thread Mimi Zohar
Hi Lakshmi, On Mon, 2021-01-04 at 11:26 -0800, Lakshmi Ramasubramanian wrote: > diff --git a/arch/powerpc/kexec/file_load_64.c > b/arch/powerpc/kexec/file_load_64.c > index a05c19b3cc60..3cab318aa3b9 100644 > --- a/arch/powerpc/kexec/file_load_64.c > +++ b/arch/powerpc/kexec/file_load_64.c > @@

Re: [PATCH] mm: net: memcg accounting for TCP rx zerocopy

2021-01-12 Thread Roman Gushchin
On Tue, Jan 12, 2021 at 01:41:05PM -0800, Shakeel Butt wrote: > From: Arjun Roy > > TCP zerocopy receive is used by high performance network applications to > further scale. For RX zerocopy, the memory containing the network data > filled by network driver is directly mapped into the address

Re: [PATCH v2] PCI: Fix Intel i210 by avoiding overlapping of BARs

2021-01-12 Thread Michael Walle
Am 2021-01-12 23:58, schrieb Bjorn Helgaas: On Sat, Jan 09, 2021 at 07:31:46PM +0100, Michael Walle wrote: Hi Bjorn, Am 2021-01-08 22:20, schrieb Bjorn Helgaas: > On Wed, Dec 30, 2020 at 07:53:17PM +0100, Michael Walle wrote: > > The Intel i210 doesn't work if the Expansion ROM BAR overlaps

Re: [PATCH v14 6/6] arm64: Add IMA log information in kimage used for kexec

2021-01-12 Thread Mimi Zohar
Hi Lakshmi, On Mon, 2021-01-04 at 11:26 -0800, Lakshmi Ramasubramanian wrote: > Address and size of the buffer containing the IMA measurement log need > to be passed from the current kernel to the next kernel on kexec. > > Any existing "linux,ima-kexec-buffer" property in the device tree > needs

Re: [PATCH v4 1/2] dt-bindings: input: cros-ec-keyb: Add a new property

2021-01-12 Thread Philip Chen
On Mon, Jan 11, 2021 at 6:10 PM Stephen Boyd wrote: > > Quoting Philip Chen (2021-01-07 15:42:08) > > This patch adds a new property `function-row-physmap` to the > > From Documentation/process/submitting-patches.rst > > Describe your changes in imperative mood, e.g. "make xyzzy do frotz" >

Re: [PATCH RESEND v4] riscv: Enable per-task stack canaries

2021-01-12 Thread Palmer Dabbelt
On Thu, 17 Dec 2020 08:29:18 PST (-0800), guo...@kernel.org wrote: From: Guo Ren This enables the use of per-task stack canary values if GCC has support for emitting the stack canary reference relative to the value of tp, which holds the task struct pointer in the riscv kernel. After compare

Re: [PATCH] dt-bindings: rtc: at91rm9200: add sama7g5 compatible

2021-01-12 Thread Alexandre Belloni
On Thu, 7 Jan 2021 12:46:12 +0200, Claudiu Beznea wrote: > Add compatible for SAMA7G5 RTC. At the moment the driver is falling > back on SAM9X60's compatible but SAMA7G5 doesn't have the tamper mode > register and tamper debounce period register thus the need for a new > compatible to

Re: [PATCv4 net-next] octeontx2-pf: Add RSS multi group support

2021-01-12 Thread Saeed Mahameed
On Tue, 2021-01-12 at 15:16 -0800, Saeed Mahameed wrote: > On Mon, 2021-01-04 at 12:50 +0530, Geetha sowjanya wrote: > > Hardware supports 8 RSS groups per interface. Currently we are > > using > > only group '0'. This patch allows user to create new RSS > > groups/contexts > > and use the same as

[PATCH 1/4] ARM: dts: imx6sl-tolino-shine2hd: correct console uart pinmux

2021-01-12 Thread Andreas Kemnade
Configuration was correct enough to work with the pre-configuration done by uboot. While at it, also document the location. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCv4 net-next] octeontx2-pf: Add RSS multi group support

2021-01-12 Thread Saeed Mahameed
On Mon, 2021-01-04 at 12:50 +0530, Geetha sowjanya wrote: > Hardware supports 8 RSS groups per interface. Currently we are using > only group '0'. This patch allows user to create new RSS > groups/contexts > and use the same as destination for flow steering rules. > > usage: > To steer the

[PATCH 3/4] ARM: dts: imx6sl-tolino-shine3: correct console uart pinmux

2021-01-12 Thread Andreas Kemnade
Configuration was correct enough to work with the pre-configuration done by uboot. While at it, also document the location. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/imx6sl-tolino-shine3.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 4/4] ARM: dts: imx: e60k02: add second uart

2021-01-12 Thread Andreas Kemnade
There is another uart next to the console uart used by vendor uboot and kernel, enable it and document its location. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/e60k02.dtsi | 6 ++ arch/arm/boot/dts/imx6sl-tolino-shine3.dts | 13 -

[PATCH 3/4] ARM: dts: imx6sl-tolino-shine2hd: correct console uart pinmux

2021-01-12 Thread Andreas Kemnade
Configuration was correct enough to work with the pre-configuration done by uboot. While at it, also document the location. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/imx6sl-tolino-shine3.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 0/4] ARM: dts: imx: uart improvements for ebookreaders

2021-01-12 Thread Andreas Kemnade
- add second uart - correct pinmux for console uart (it was working before because of setup by uboot) - document locations on board Andreas Kemnade (4): ARM: dts: imx6sl-tolino-shine2hd: correct console uart pinmux ARM: dts: imx6sl-tolino-shine2hd: add second uart ARM: dts:

[PATCH 2/4] ARM: dts: imx6sl-tolino-shine2hd: add second uart

2021-01-12 Thread Andreas Kemnade
There is another uart next to the console uart used by vendor uboot and kernel, enable it and document its location. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/imx6sl-tolino-shine2hd.dts | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v3, 12/15] drm/mediatek: separate ccorr module

2021-01-12 Thread Chun-Kuang Hu
Hi, Yongqiang: Yongqiang Niu 於 2021年1月11日 週一 下午3:54寫道: > > ccorr ctm matrix bits will be different in mt8192 This patch has conflicts with the series "Decouple Mediatek DRM sub driver" [1] which has been applied to mediatek-drm-next, so please rebase this patch onto mediatek-drm-next. [1]

[PATCH v3 2/2] dt-bindings: pinctrl: Add bindings for Awinic AW9523/AW9523B

2021-01-12 Thread AngeloGioacchino Del Regno
Add bindings for the Awinic AW9523/AW9523B I2C GPIO Expander driver. Signed-off-by: AngeloGioacchino Del Regno --- .../pinctrl/awinic,aw9523-pinctrl.yaml| 115 ++ 1 file changed, 115 insertions(+) create mode 100644

[PATCH v3 1/2] pinctrl: Add driver for Awinic AW9523/B I2C GPIO Expander

2021-01-12 Thread AngeloGioacchino Del Regno
The Awinic AW9523(B) is a multi-function I2C gpio expander in a TQFN-24L package, featuring PWM (max 37mA per pin, or total max power 3.2Watts) for LED driving capability. It has two ports with 8 pins per port (for a total of 16 pins), configurable as either PWM with 1/256 stepping or GPIO

Re: [PATCH v3, 09/15] drm/mediatek: Add pm runtime support for gamma

2021-01-12 Thread Chun-Kuang Hu
Hi, Yongqiang: Yongqiang Niu 於 2021年1月11日 週一 下午3:48寫道: > > gamma power domain need controled in the device. In this series, why only gamma and color add pm runtime support? I think all ddp component need pm runtime support. And pm runtime support is not related to mt8192, so move these patches

Re: [PATCH] compiler.h: Raise minimum version of GCC to 5.1 for arm64

2021-01-12 Thread Nathan Chancellor
On Tue, Jan 12, 2021 at 10:48:32PM +, Will Deacon wrote: > GCC versions >= 4.9 and < 5.1 have been shown to emit memory references > beyond the stack pointer, resulting in memory corruption if an interrupt > is taken after the stack pointer has been adjusted but before the > reference has been

[PATCH v7 5/5] perf metric: Don't compute unused events.

2021-01-12 Thread Ian Rogers
For a metric like: EVENT1 if #smt_on else EVENT2 currently EVENT1 and EVENT2 will be measured and then when the metric is reported EVENT1 or EVENT2 will be printed depending on the value from smt_on() during the expr parsing. Computing both events is unnecessary and can lead to multiplexing as

[PATCH v7 3/5] perf metric: Rename expr__find_other.

2021-01-12 Thread Ian Rogers
A later change will remove the notion of other, rename the function to expr__find_ids as this is what it populates. Signed-off-by: Ian Rogers --- tools/perf/tests/expr.c | 26 +- tools/perf/tests/pmu-events.c | 9 - tools/perf/util/expr.c| 4 ++--

[PATCH v7 4/5] perf metric: Add utilities to work on ids map.

2021-01-12 Thread Ian Rogers
Add utilities to new/free an ids hashmap, as well as to union. Add testing of the union. Unioning hashmaps will be used when parsing the metric, if a value is known then the hashmap is unnecessary, otherwise we need to union together all the event ids to compute their values for reporting.

[PATCH] Documentation: input: define ABS_PRESSURE/ABS_MT_PRESSURE resolution as grams

2021-01-12 Thread Peter Hutterer
ABS_PRESSURE and ABS_MT_PRESSURE on touch devices usually represent contact size (as a finger flattens with higher pressure the contact size increases) and userspace translates the kernel pressure value back into contact size. For example, libinput has pressure thresholds when a touch is

[PATCH v7 2/5] perf metric: Use NAN for missing event IDs.

2021-01-12 Thread Ian Rogers
If during computing a metric an event (id) is missing the parsing aborts. A later patch will make it so that events that aren't used in the output are deliberately omitted, in which case we don't want the abort. Modify the missing ID case to report NAN for these cases. Signed-off-by: Ian Rogers

[PATCH v7 1/5] perf metric: Restructure struct expr_parse_ctx.

2021-01-12 Thread Ian Rogers
A later change to parsing the ids out (in expr__find_other) will potentially drop hashmaps and so it is more convenient to move expr_parse_ctx to have a hashmap pointer rather than a struct value. As this pointer must be freed, rather than just going out of scope, add expr__ctx_new and

Re: [PATCH 1/2] KVM: x86: introduce definitions to support static calls for kvm_x86_ops

2021-01-12 Thread Sean Christopherson
On Mon, Jan 11, 2021, Jason Baron wrote: > Use static calls to improve kvm_x86_ops performance. Introduce the > definitions that will be used by a subsequent patch to actualize the > savings. > > Note that all kvm_x86_ops are covered here except for 'pmu_ops' and > 'nested ops'. I think they can

[PATCH v7 0/5] Don't compute events that won't be used in a metric.

2021-01-12 Thread Ian Rogers
For a metric like: EVENT1 if #smt_on else EVENT2 currently EVENT1 and EVENT2 will be measured and then when the metric is reported EVENT1 or EVENT2 will be printed depending on the value from smt_on() during the expr parsing. Computing both events is unnecessary and can lead to

Re: [PATCv4 net-next] octeontx2-pf: Add RSS multi group support

2021-01-12 Thread Jakub Kicinski
On Tue, 12 Jan 2021 04:17:44 + Geethasowjanya Akula wrote: > Hi All, > > Any feedback on this patch. I think Dave merged it already, see commit 81a4362016e7 ("octeontx2-pf: Add RSS multi group support") in net-next.

Re: [PATCH v17 04/26] x86/cpufeatures: Introduce X86_FEATURE_CET and setup functions

2021-01-12 Thread Yu, Yu-cheng
On 1/12/2021 4:38 AM, Borislav Petkov wrote: On Mon, Jan 11, 2021 at 03:09:00PM -0800, Yu-cheng Yu wrote: @@ -1252,6 +1260,16 @@ static void __init cpu_parse_early_param(void) if (cmdline_find_option_bool(boot_command_line, "noxsaves"))

[PATCH 3/3] tracing: Remove NULL check from current in tracing_generic_entry_update().

2021-01-12 Thread Sebastian Andrzej Siewior
I can't imagine when or why `current' would return a NULL pointer. This check was added in commit 72829bc3d63cd ("ftrace: move enums to ftrace.h and make helper function global") but it doesn't give me hint why it was needed. Assume `current' never returns a NULL pointer and remove the

[PATCH 1/3] tracing: Merge irqflags + preempt counter.

2021-01-12 Thread Sebastian Andrzej Siewior
The state of the interrupts (irqflags) and the preemption counter are both passed down to tracing_generic_entry_update(). Only one bit of irqflags is actually required: The on/off state. The complete 32bit of the preemption counter isn't needed. Just whether of the upper bits (softirq, hardirq and

[PATCH 2/3] tracing: Use in_serving_softirq() to deduct softirq status.

2021-01-12 Thread Sebastian Andrzej Siewior
PREEMPT_RT does not report "serving softirq" because the tracing core looks at the preemption counter while PREEMPT_RT does not update it while processing softirqs in order to remain preemptible. The information is stored somewhere else. The in_serving_softirq() macro and the SOFTIRQ_OFFSET define

[PATCH 0/3] tracing: Merge irqflags + preempt counter.

2021-01-12 Thread Sebastian Andrzej Siewior
This is a follow-up to the RFC patch posted earlier. It has been rebased on top of v5.11-rc3 and RT related bits are moved into the second patch. Sebastian

[PATCH v6 0/5] Don't compute events that won't be used in a metric.

2021-01-12 Thread Ian Rogers
For a metric like: EVENT1 if #smt_on else EVENT2 currently EVENT1 and EVENT2 will be measured and then when the metric is reported EVENT1 or EVENT2 will be printed depending on the value from smt_on() during the expr parsing. Computing both events is unnecessary and can lead to

[PATCH v6 1/5] perf metric: Restructure struct expr_parse_ctx.

2021-01-12 Thread Ian Rogers
A later change to parsing the ids out (in expr__find_other) will potentially drop hashmaps and so it is more convenient to move expr_parse_ctx to have a hashmap pointer rather than a struct value. As this pointer must be freed, rather than just going out of scope, add expr__ctx_new and

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