Re: [PATCH] RDMA: usnic: Fix misuse of sysfs_emit_at

2021-01-15 Thread James Bottomley
On Fri, 2021-01-15 at 13:23 -0800, Joe Perches wrote: > In commit e28bf1f03b01 ("RDMA: Convert various random sprintf sysfs > _show > uses to sysfs_emit") I mistakenly used len = sysfs_emit_at to > overwrite > the last trailing space of potentially multiple entry output. > > The length of the last

Re: INFO: rcu detected stall in sock_close (3)

2021-01-15 Thread syzbot
syzbot suspects this issue was fixed by commit: commit 98b89b649fce39dacb9dc036d6d0fdb8caff73f7 Author: Jens Axboe Date: Fri Oct 9 22:03:01 2020 + signal: kill JOBCTL_TASK_WORK bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=14b99c20d0 start commit: 7cc2a8ea Merge t

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

2021-01-15 Thread Fangrui Song
On 2021-01-15, Sedat Dilek wrote: On Fri, Jan 15, 2021 at 10:06 PM Nick Desaulniers wrote: 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

Re:Re: [EXT] [PATCH v3] octeontx2-af: Fix missing check bugs in rvu_cgx.c

2021-01-15 Thread Yingjie Wang
Thanks for your reply. I have resended the email with the Reviewed-by tag. At 2021-01-15 18:58:49, "Geethasowjanya Akula" wrote: >The changes look good to me. > >You can add: >Reviewed-by: Geetha sowjanya > > >From: wangyingji...@126.com >Sent: Thursday, Ja

[PATCH 2/2] KVM: VMX: Use x2apic_mode to avoid RDMSR when querying PI state

2021-01-15 Thread Sean Christopherson
Use x2apic_mode instead of x2apic_enabled() when adjusting the destination ID during Posted Interrupt updates. This avoids the costly RDMSR that is hidden behind x2apic_enabled(). Reported-by: luferry Signed-off-by: Sean Christopherson --- arch/x86/kvm/vmx/posted_intr.c | 6 +++--- 1 file chan

[PATCH 1/2] x86/apic: Export x2apic_mode for use by KVM in "warm" path

2021-01-15 Thread Sean Christopherson
Export x2apic_mode so that KVM can query whether x2APIC is active without having to incur the RDMSR in x2apic_enabled(). When Posted Interrupts are in use for a guest with an assigned device, KVM ends up checking for x2APIC at least once every time a vCPU halts. KVM could obviously snapshot x2api

[PATCH 0/2] KVM: VMX: Avoid RDMSRs in PI x2APIC checks

2021-01-15 Thread Sean Christopherson
Resurrect a patch[*] from over a year ago to avoid RDMSR in a fairly hot path in KVM's posted interrupt support. Note, in my response to that patch, I suggested checking x2apic_supported() as well as x2apic_mode. I have no idea why I suggested that; unless I'm missing something, x2apic_mode can n

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

2021-01-15 Thread Sedat Dilek
On Fri, Jan 15, 2021 at 11:00 PM Fangrui Song wrote: > > On 2021-01-15, Nick Desaulniers wrote: > >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

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

2021-01-15 Thread Fangrui Song
On 2021-01-15, Nick Desaulniers wrote: 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/

Re: [PATCH] kcsan: Add missing license and copyright headers

2021-01-15 Thread Paul E. McKenney
On Fri, Jan 15, 2021 at 06:09:53PM +0100, Marco Elver wrote: > Adds missing license and/or copyright headers for KCSAN source files. > > Signed-off-by: Marco Elver This one seemed straightforward and I heard no objections to the previous two-patch series, so I queued them for the v5.13 merge win

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

2021-01-15 Thread Sedat Dilek
On Fri, Jan 15, 2021 at 10:49 PM Nick Desaulniers wrote: > > On Fri, Jan 15, 2021 at 1:46 PM Sedat Dilek wrote: > > > > On Fri, Jan 15, 2021 at 10:06 PM Nick Desaulniers > > wrote: > > > > > > DWARF v5 is the latest standard of the DWARF debug info format. > > > > > > Feature detection of DWARF5

Re: [PATCH] mailbox: bcm: Replace tasklet with threaded irq

2021-01-15 Thread Rob Rice
Davidlohr, I haven’t worked on this driver for 4 years. So my memory is a little vague. But I have notes that we found using the tasklet was 40% faster than threaded IRQ. We were trying to get performance up. So that seemed important at the time. I’m not prepared to defend that now. :-) Rob >

Re: [PATCH v2 2/2] kbuild: handle excessively long argument lists

2021-01-15 Thread Masahiro Yamada
On Sat, Jan 16, 2021 at 5:15 AM wrote: > > On 2021-01-14 17:12, Masahiro Yamada wrote: > > On Fri, Jan 15, 2021 at 6:50 AM Jeff Johnson > > wrote: > >> > >> From: Mahesh Kumar Kalikot Veetil > >> > >> Modules with a large number of compilation units may be > >> exceeding AR and LD command argume

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

2021-01-15 Thread Sedat Dilek
On Fri, Jan 15, 2021 at 10:06 PM Nick Desaulniers wrote: > > 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

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

2021-01-15 Thread Nick Desaulniers
On Fri, Jan 15, 2021 at 1:48 PM Sedat Dilek wrote: > > On Fri, Jan 15, 2021 at 10:06 PM Nick Desaulniers > wrote: > > > > 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 p

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

2021-01-15 Thread Nick Desaulniers
On Fri, Jan 15, 2021 at 1:46 PM Sedat Dilek wrote: > > On Fri, Jan 15, 2021 at 10:06 PM 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 v5 1/3] Remove $(cc-option,-gdwarf-4) dependency from CONFIG_DEBUG_INFO_DWARF4

2021-01-15 Thread Sedat Dilek
On Fri, Jan 15, 2021 at 10:06 PM Nick Desaulniers wrote: > > 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: .sho

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

2021-01-15 Thread Sedat Dilek
On Fri, Jan 15, 2021 at 10:06 PM 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 versi

Re: [Patch v4 2/2] cgroup: svm: Encryption IDs cgroup documentation.

2021-01-15 Thread Vipin Sharma
On Fri, Jan 15, 2021 at 04:00:26PM -0500, Tejun Heo wrote: > On Thu, Jan 07, 2021 at 05:28:46PM -0800, Vipin Sharma wrote: > > Documentation for both cgroup versions, v1 and v2, of Encryption IDs > > controller. This new controller is used to track and limit usage of > > hardware memory encryption

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

2021-01-15 Thread Sedat Dilek
On Fri, Jan 15, 2021 at 10:06 PM Nick Desaulniers wrote: > > 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

[PATCH v4] PCI: brcmstb: Remove chained IRQ handler and data in one go

2021-01-15 Thread Martin Kaiser
Call irq_set_chained_handler_and_data() to clear the chained handler and the handler's data under irq_desc->lock. See also 2cf5a03cb29d ("PCI/keystone: Fix race in installing chained IRQ handler"). Signed-off-by: Martin Kaiser Acked-by: Florian Fainelli Acked-by: Nicolas Saenz Julienne --- Hi

Re: [PATCH v4 2/2] ARM: dts: am33xx-l4: change #pinctrl-cells from 1 to 2

2021-01-15 Thread Drew Fustini
On Fri, Jan 15, 2021 at 07:02:01PM +0100, Emmanuel Vadot wrote: > > Hello Drew, > > On Wed, 1 Jul 2020 03:33:20 +0200 > Drew Fustini wrote: > > > Increase #pinctrl-cells to 2 so that mux and conf be kept separate. This > > requires the AM33XX_PADCONF macro in omap.h to also be modified to kee

Re: [GIT PULL] arm64 fixes for 5.11-rc4

2021-01-15 Thread pr-tracker-bot
The pull request you sent on Fri, 15 Jan 2021 18:15:46 +: > git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/82821be8a2e14bdf359be577400be88b2f1eb8a7 Thank you! -- Deet-doot-dot, I am a bot

Re: [GIT PULL] MIPS fixes for v5.11

2021-01-15 Thread pr-tracker-bot
The pull request you sent on Fri, 15 Jan 2021 15:19:03 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/ > tags/mips_fixes_5.11.1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/f288c895622f881324cf71ef9eec3af60ac8a197 Thank you! -- Deet-doot-do

[PATCH] media: smipcie: switch from 'pci_' to 'dma_' API

2021-01-15 Thread Christophe JAILLET
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. When memory is allocated in 'smi_port_init()' GFP_KERNEL can be used because thi

Re: [RFC PATCH 4/8] mm: Separate fault info out of 'struct vm_fault'

2021-01-15 Thread Linus Torvalds
On Fri, Jan 15, 2021 at 1:23 AM Will Deacon wrote: > > Hmm. The feedback on the clang bug suggests that GCC is the one in the > wrong here (although the argument is based on C11 and I haven't trawled > through the standards to see how this has evolved): Oh well. That writing is absolutely the _w

[PATCH] usb: bdc: Remove the BDC PCI driver

2021-01-15 Thread Al Cooper
The BDC PCI driver was only used for design verification with an PCI/FPGA board. The board no longer exists and is not in use anywhere. All instances of this core now exist as a memory mapped device on the platform bus. NOTE: This only removes the PCI driver and does not remove the platform driver

Re: [PATCH] mm: memcontrol: prevent starvation when writing memory.high

2021-01-15 Thread Roman Gushchin
On Fri, Jan 15, 2021 at 03:55:36PM -0500, Johannes Weiner wrote: > On Fri, Jan 15, 2021 at 09:03:41AM -0800, Roman Gushchin wrote: > > On Fri, Jan 15, 2021 at 11:20:50AM -0500, Johannes Weiner wrote: > > > On Wed, Jan 13, 2021 at 03:46:54PM +0100, Michal Hocko wrote: > > > > On Tue 12-01-21 11:30:1

Re: [RFC PATCH 2/3] hugetlb: convert page_huge_active() to HPageMigratable flag

2021-01-15 Thread Mike Kravetz
On 1/15/21 12:29 PM, Oscar Salvador wrote: > > About that alloc_contig_range topic, I would like to take a look unless > someone is already on it or about to be. > > Thanks Mike for the time ;-) Feel free. My first thought is that migration of a free hugetlb page would need to be something like

[PATCH] media: saa7164: switch from 'pci_' to 'dma_' API

2021-01-15 Thread Christophe JAILLET
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. When memory is allocated in 'saa7164_buffer_alloc()' GFP_KERNEL can be used beca

[PATCH v4 3/3] PCI: xgene-msi: Fix race in installing chained irq handler

2021-01-15 Thread Martin Kaiser
Fix a race where a pending interrupt could be received and the handler called before the handler's data has been setup, by converting to irq_set_chained_handler_and_data(). See also 2cf5a03cb29d ("PCI/keystone: Fix race in installing chained IRQ handler"). Based on the mail discussion, it seems o

[PATCH v4 1/3] PCI: altera-msi: Remove IRQ handler and data in one go

2021-01-15 Thread Martin Kaiser
Call irq_set_chained_handler_and_data() to clear the chained handler and the handler's data under irq_desc->lock. See also 2cf5a03cb29d ("PCI/keystone: Fix race in installing chained IRQ handler"). Signed-off-by: Martin Kaiser --- Hi Lorenzo, here's another bunch of simple patches that were disc

[PATCH v4 2/3] PCI: dwc: Remove IRQ handler and data in one go

2021-01-15 Thread Martin Kaiser
Call irq_set_chained_handler_and_data() to clear the chained handler and the handler's data under irq_desc->lock. See also 2cf5a03cb29d ("PCI/keystone: Fix race in installing chained IRQ handler"). Signed-off-by: Martin Kaiser --- v4: - resend after two months - capitalize the commit message p

[PATCH] RDMA: usnic: Fix misuse of sysfs_emit_at

2021-01-15 Thread Joe Perches
In commit e28bf1f03b01 ("RDMA: Convert various random sprintf sysfs _show uses to sysfs_emit") I mistakenly used len = sysfs_emit_at to overwrite the last trailing space of potentially multiple entry output. The length of the last sysfs_emit_at call is 1 and it should instead be ignored. Do so.

[GIT PULL] ext4 bug fixes for v5.11-rc4

2021-01-15 Thread Theodore Ts'o
Note: there is a fairly simple merge conflict, which can be resolved by taking EXT4_SB(sb) and replacing it with sbi using the version in your tree. My merge resolution (which I used to run regression tests) is attached below. - Ted The following changes

Re: [PATCH 10/10] drm: Use state helper instead of the plane state pointer

2021-01-15 Thread Laurent Pinchart
Hi Maxime, Thank you for the patch. On Fri, Jan 15, 2021 at 01:57:02PM +0100, Maxime Ripard wrote: > Many drivers reference the plane->state pointer in order to get the > current plane state in their atomic_update or atomic_disable hooks, Please don't use the word "current", it's ambiguous. Do y

Re: [PATCH 5.10 000/103] 5.10.8-rc1 review

2021-01-15 Thread Guenter Roeck
On Fri, Jan 15, 2021 at 01:26:53PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.8 release. > There are 103 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 5.4 00/62] 5.4.90-rc1 review

2021-01-15 Thread Guenter Roeck
On Fri, Jan 15, 2021 at 01:27:22PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.90 release. > There are 62 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know.

Re: [PATCH 4.9 00/25] 4.9.252-rc1 review

2021-01-15 Thread Guenter Roeck
On Fri, Jan 15, 2021 at 01:27:31PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.252 release. > There are 25 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

Re: [PATCH 4.14 00/28] 4.14.216-rc1 review

2021-01-15 Thread Guenter Roeck
On Fri, Jan 15, 2021 at 01:27:37PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.216 release. > There are 28 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

Re: [PATCH 4.19 00/43] 4.19.168-rc1 review

2021-01-15 Thread Guenter Roeck
On Fri, Jan 15, 2021 at 01:27:30PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.168 release. > There are 43 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me kno

[PATCH v2 2/2] serial: 8250: Add new 8250-core based Broadcom STB driver

2021-01-15 Thread Al Cooper
Add a UART driver for the new Broadcom 8250 based STB UART. The new UART is backward compatible with the standard 8250, but has some additional features. The new features include a high accuracy baud rate clock system and DMA support. The driver will use the new optional BAUD MUX clock to select t

Re: [PATCH 4.4 00/18] 4.4.252-rc1 review

2021-01-15 Thread Guenter Roeck
On Fri, Jan 15, 2021 at 01:27:28PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.252 release. > There are 18 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know

[PATCH v2 1/2] dt-bindings: Add support for the Broadcom UART driver

2021-01-15 Thread Al Cooper
Add DT bindings for the Broadcom 8250 based UART driver. This UART is based on an 8250 but adds additional functionality. The additional features include the ability to use DMA for transfers and a baud rate clock system that is more accurate at high baud rates. This UART is backward compatible with

[PATCH v2 0/2] serial: 8250: Add driver for Broadcom UART

2021-01-15 Thread Al Cooper
v2 - remove the patch that modified 8250_of.c to keep it from registering before this driver when this driver was deferred as it was getting it's "clocks". This was fixed by changing the Device Tree entry to remove "clock-frequency". This results in both drivers getting "clocks"

[PATCH v4 4/4] selftest/x86/signal: Include test cases for validating sigaltstack

2021-01-15 Thread Chang S. Bae
The test measures the kernel's signal delivery with different (enough vs. insufficient) stack sizes. Signed-off-by: Chang S. Bae Reviewed-by: Len Brown Cc: Borislav Petkov Cc: x...@kernel.org Cc: linux-kselft...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Changes from v3: * Revised tes

[PATCH v4 3/4] x86/signal: Detect and prevent an alternate signal stack overflow

2021-01-15 Thread Chang S. Bae
The kernel pushes context on to the userspace stack to prepare for the user's signal handler. When the user has supplied an alternate signal stack, via sigaltstack(2), it is easy for the kernel to verify that the stack size is sufficient for the current hardware context. Check if writing the hardw

[PATCH v4 1/4] x86/signal: Introduce helpers to get the maximum signal frame size

2021-01-15 Thread Chang S. Bae
Signal frames do not have a fixed format and can vary in size when a number of things change: support XSAVE features, 32 vs. 64-bit apps. Add the code to support a runtime method for userspace to dynamically discover how large a signal stack needs to be. Introduce a new variable, max_frame_size, a

Re: [PATCH 4.4 00/18] 4.4.252-rc1 review

2021-01-15 Thread Shuah Khan
On 1/15/21 5:27 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.252 release. There are 18 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

[PATCH v4 0/4] x86: Improve Minimum Alternate Stack Size

2021-01-15 Thread Chang S. Bae
During signal entry, the kernel pushes data onto the normal userspace stack. On x86, the data pushed onto the user stack includes XSAVE state, which has grown over time as new features and larger registers have been added to the architecture. MINSIGSTKSZ is a constant provided in the kernel signal

Re: [PATCH 4.9 00/25] 4.9.252-rc1 review

2021-01-15 Thread Shuah Khan
On 1/15/21 5:27 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.252 release. There are 25 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

[PATCH v4 2/4] x86/elf: Support a new ELF aux vector AT_MINSIGSTKSZ

2021-01-15 Thread Chang S. Bae
Historically, signal.h defines MINSIGSTKSZ (2KB) and SIGSTKSZ (8KB), for use by all architectures with sigaltstack(2). Over time, the hardware state size grew, but these constants did not evolve. Today, literal use of these constants on several architectures may result in signal stack overflow, and

Re: [PATCH 4.19 00/43] 4.19.168-rc1 review

2021-01-15 Thread Shuah Khan
On 1/15/21 5:27 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.168 release. There are 43 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH 5.4 00/62] 5.4.90-rc1 review

2021-01-15 Thread Shuah Khan
On 1/15/21 5:27 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.90 release. There are 62 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made b

Re: [PATCH 5.10 000/103] 5.10.8-rc1 review

2021-01-15 Thread Shuah Khan
On 1/15/21 5:26 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.10.8 release. There are 103 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

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

2021-01-15 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: Arvind Sankar Suggested-by: Fangrui

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

2021-01-15 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. The DWARF version of a binary can be validated with: $ llvm-dwarfdump vmlinux | head -n

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

2021-01-15 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 mini

Re: [PATCH 09/10] drm/atomic: Pass the full state to planes atomic disable and update

2021-01-15 Thread Laurent Pinchart
Hi Maxime, Thank you for the patch. On Fri, Jan 15, 2021 at 01:57:01PM +0100, Maxime Ripard wrote: > The current atomic helpers have either their object state being passed as > an argument or the full atomic state. > > The former is the pattern that was done at first, before switching to the > l

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

2021-01-15 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 cleanup

[PATCH v1] of: property: Add fw_devlink support for "gpio" and "gpios" binding

2021-01-15 Thread Saravana Kannan
To provide backward compatibility for boards that use deprecated DT bindings, we need to add fw_devlink support for "gpio" and "gpios". Cc: linux-tegra Cc: Linus Walleij Cc: Bartosz Golaszewski Cc: Greg Kroah-Hartman Fixes: e590474768f1 ("driver core: Set fw_devlink=on by default") Tested-by:

Re: [PATCH] driver core: Extend device_is_dependent()

2021-01-15 Thread Stephan Gerhold
On Fri, Jan 15, 2021 at 09:20:54AM -0800, Saravana Kannan wrote: > On Fri, Jan 15, 2021 at 5:03 AM Rafael J. Wysocki wrote: > > On Fri, Jan 15, 2021 at 11:03 AM Stephan Gerhold > > wrote: > > > On Thu, Jan 14, 2021 at 11:31:12AM -0800, Saravana Kannan wrote: > > > > On Thu, Jan 14, 2021 at 10:41

[PATCH v4 1/3] dt-bindings: arm: imx: add imx8mm nitrogen support

2021-01-15 Thread Adrien Grassein
The Nitrogen8M Mini is an ARM based single board computer (SBC). Signed-off-by: Adrien Grassein Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation

[PATCH v4 2/3] arm64: dts: imx: Add i.mx8mm nitrogen8mm basic dts support

2021-01-15 Thread Adrien Grassein
Tested with a basic Build Root configuration booting from sdcard. Signed-off-by: Adrien Grassein --- arch/arm64/boot/dts/freescale/Makefile| 1 + .../dts/freescale/imx8mm-nitrogen8mm_rev2.dts | 415 ++ 2 files changed, 416 insertions(+) create mode 100644 arch/arm64/bo

Re: [PATCH 00/21] objtool: vmlinux.o and CLANG LTO support

2021-01-15 Thread Sedat Dilek
On Fri, Jan 15, 2021 at 9:59 PM Josh Poimboeuf wrote: > > On Fri, Jan 15, 2021 at 09:19:16PM +0100, Sedat Dilek wrote: > > > > vmlinux.o: warning: objtool: balance_leaf_when_delete()+0x17d4: stack > > > > state mismatch: cfa1=7+192 cfa2=7+176 > > > > vmlinux.o: warning: objtool: internal_move_poin

[PATCH v4 0/3] Add support for Boundary Nitrogen8M Mini SBC

2021-01-15 Thread Adrien Grassein
Hello, This patch set aims is to add the support of the Nitrogen8M Mini SBC from Boundary Devices. Thanks, Update in v2: - Rewrite the dts (Remove the unused wlan and audio); - Remove useless definition; - Take in account review. Update in v3: - Take in account review. Update in v4:

Re: [Patch v4 2/2] cgroup: svm: Encryption IDs cgroup documentation.

2021-01-15 Thread Tejun Heo
On Thu, Jan 07, 2021 at 05:28:46PM -0800, Vipin Sharma wrote: > Documentation for both cgroup versions, v1 and v2, of Encryption IDs > controller. This new controller is used to track and limit usage of > hardware memory encryption capabilities on the CPUs. > > Signed-off-by: Vipin Sharma > Revie

[PATCH v4 3/3] arm64: defconfig: Enable PF8x00 as builtin

2021-01-15 Thread Adrien Grassein
This driver is mandatory for the nitrogen8m mini board when booting from the sdcard slot. Signed-off-by: Adrien Grassein --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 9957b6669eb1..de90f42419

[PATCH v1] gpiolib: Bind gpio_device to a driver to enable fw_devlink=on by default

2021-01-15 Thread Saravana Kannan
There are multiple instances of GPIO devictree nodes of the form: foo { compatible = "acme,foo"; ... gpio0: gpio0@ { compatible = "acme,bar"; ... gpio-controller; }; gpio1: gpio1@ {

Re: [PATCH 00/21] objtool: vmlinux.o and CLANG LTO support

2021-01-15 Thread Josh Poimboeuf
On Fri, Jan 15, 2021 at 09:19:16PM +0100, Sedat Dilek wrote: > > > vmlinux.o: warning: objtool: balance_leaf_when_delete()+0x17d4: stack > > > state mismatch: cfa1=7+192 cfa2=7+176 > > > vmlinux.o: warning: objtool: internal_move_pointers_items()+0x9f7: > > > stack state mismatch: cfa1=7+160 cfa2=7

[PATCH] dt-bindings: irqchip: Add #address-cells to PRUSS INTC

2021-01-15 Thread Suman Anna
The '#address-cells' property looks to be a required property for interrupt controller nodes as indicated by a warning message seen when building dtbs with W=2. Adding the property to the PRUSS INTC dts nodes though fails the dtbs_check. Add this property to the PRUSS INTC binding to make it compli

Re: [Patch v4 1/2] cgroup: svm: Add Encryption ID controller

2021-01-15 Thread Tejun Heo
Hello, On Thu, Jan 07, 2021 at 05:28:45PM -0800, Vipin Sharma wrote: > 1. encrpytion_ids.sev.max > Sets the maximum usage of SEV IDs in the cgroup. > 2. encryption_ids.sev.current > Current usage of SEV IDs in the cgroup and its children. > 3. encryption_ids.sev.stat > Shown only

Re: [PATCH][next] drm/vkms: Fix missing kmalloc allocation failure check

2021-01-15 Thread Melissa Wen
On 01/15, Sumera Priyadarsini wrote: > On Fri, Jan 15, 2021 at 6:39 PM Colin King wrote: > > > > From: Colin Ian King > > > > Currently the kmalloc allocation for config is not being null > > checked and could potentially lead to a null pointer dereference. > > Fix this by adding the missing null

Re: [PATCH 07/10] drm: Store new plane state in a variable for atomic_update and disable

2021-01-15 Thread Laurent Pinchart
Hi Maxime, Thank you for the patch. On Fri, Jan 15, 2021 at 01:56:59PM +0100, Maxime Ripard wrote: > In order to store the new plane state in a subsequent helper, let's move > the plane->state dereferences into a variable. > > This was done using the following coccinelle script, plus some hand >

Re: [PATCH] mm: memcontrol: prevent starvation when writing memory.high

2021-01-15 Thread Johannes Weiner
On Fri, Jan 15, 2021 at 09:03:41AM -0800, Roman Gushchin wrote: > On Fri, Jan 15, 2021 at 11:20:50AM -0500, Johannes Weiner wrote: > > On Wed, Jan 13, 2021 at 03:46:54PM +0100, Michal Hocko wrote: > > > On Tue 12-01-21 11:30:11, Johannes Weiner wrote: > > > > When a value is written to a cgroup's m

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

2021-01-15 Thread Luck, Tony
Recovery action when get_user() triggers a machine check uses the fixup path to make get_user() return -EFAULT. Also queue_task_work() sets up so that kill_me_maybe() will be called on return to user mode to send a SIGBUS to the current process. But there are places in the kernel where the code a

Re: [PATCH 03/10] drm/atmel-hlcdc: Rename custom plane state variable

2021-01-15 Thread Sam Ravnborg
On Fri, Jan 15, 2021 at 01:56:55PM +0100, Maxime Ripard wrote: > Subsequent reworks will pass the global atomic state in the function > prototype, and atomic_check and atomic_update already have such a > variable already. Let's change them to ease the rework. > > Signed-off-by: Maxime Ripard Acke

[RFC PATCH] sched/fair: first try to fix the scheduling impact of NUMA diameter > 2

2021-01-15 Thread Barry Song
This patch is a follow-up of the 3-hops issue reported by Valentin Schneider: [1] https://lore.kernel.org/lkml/jhjtux5edo2.mog...@arm.com/ [2] https://lore.kernel.org/lkml/20201110184300.15673-1-valentin.schnei...@arm.com/ Here is a brief summary of the background: For a NUMA system with 3-hops,

Re: [PATCH 05/10] drm: Use the state pointer directly in planes atomic_check

2021-01-15 Thread Laurent Pinchart
Hi Maxime, Thank you for the patch. On Fri, Jan 15, 2021 at 01:56:57PM +0100, Maxime Ripard wrote: > Now that atomic_check takes the global atomic state as a parameter, we > don't need to go through the pointer in the plane state. > > This was done using the following coccinelle script: > > @ p

[PATCH] soc: qcom: socinfo: Don't print anything if nothing found

2021-01-15 Thread Stephen Boyd
Let's skip printing anything if there's nothing to see. This makes it so the file length is 0 instead of 1, for the newline, and helps scripts figure out if there's anything to see in these files. Cc: Sai Prakash Ranjan Cc: Douglas Anderson Cc: Dmitry Baryshkov Signed-off-by: Stephen Boyd ---

Re: [PATCH 04/10] drm/atomic: Pass the full state to planes atomic_check

2021-01-15 Thread Laurent Pinchart
Hi Maxime, Thank you for the patch. On Fri, Jan 15, 2021 at 01:56:56PM +0100, Maxime Ripard wrote: > The current atomic helpers have either their object state being passed as > an argument or the full atomic state. > > The former is the pattern that was done at first, before switching to the > l

Re: [RFC PATCH 2/3] hugetlb: convert page_huge_active() to HPageMigratable flag

2021-01-15 Thread Oscar Salvador
On Fri, Jan 15, 2021 at 09:43:36AM -0800, Mike Kravetz wrote: > > Before the page_huge_active() in scan_movable_pages() we have the > > if (!PageHuge(page)) check, but could it be that between that check and > > the page_huge_active(), the page gets dissolved, and so we are checking > > a wrong pag

Re: [PATCH] cpuset: fix typos in comments

2021-01-15 Thread Tejun Heo
On Wed, Jan 13, 2021 at 12:37:41PM +0800, Aubrey Li wrote: > Change hierachy to hierarchy and congifured to configured, no functionality > changed. > > Signed-off-by: Aubrey Li Applied to cgroup/for-5.12. Thanks. -- tejun

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

2021-01-15 Thread Stephen Boyd
Quoting Philip Chen (2021-01-15 12:24:29) > Add a new property `function-row-physmap` to the > device tree for the custom keyboard top row design. > > The property describes the rows/columns of the top row keys > from left to right. > > Signed-off-by: Philip Chen > --- Reviewed-by: Stephen Boyd

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

2021-01-15 Thread Stephen Boyd
Quoting Philip Chen (2021-01-15 12:24:30) > 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 code from > a top-row key press, the application needs to know ho

Re: [PATCH v2 2/2] MAINTAINERS: Update my email address

2021-01-15 Thread Tejun Heo
On Wed, Jan 13, 2021 at 04:59:42PM +0800, Zefan Li wrote: > Signed-off-by: Zefan Li Applied 1-2 to cgroup/for-5.11-fixes. Thanks. -- tejun

Re: [PATCH] cgroup: Remove unnecessary call to strstrip()

2021-01-15 Thread Tejun Heo
On Thu, Jan 14, 2021 at 01:44:27PM +0100, Michal Koutný wrote: > Hello. > > On Sun, Jan 03, 2021 at 02:50:01AM +, Hao Lee > wrote: > > The string buf will be stripped in cgroup_procs_write_start() before it > > is converted to int, so remove this unnecessary call to strstrip(). > Good catch,

[PATCH] ASoC: qcom: Fix number of HDMI RDMA channels on sc7180

2021-01-15 Thread Stephen Boyd
Suspending/resuming with an HDMI dongle attached leads to crashes from an audio regmap. Unable to handle kernel paging request at virtual address ffc018068000 Mem abort info: ESR = 0x9647 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 Data abor

Re: [PATCH] x86: efi: avoid BUILD_BUG_ON() for non-constant p4d_index

2021-01-15 Thread Arvind Sankar
On Fri, Jan 15, 2021 at 03:12:25PM -0500, Arvind Sankar wrote: > On Fri, Jan 15, 2021 at 08:54:18PM +0100, Arnd Bergmann wrote: > > On Fri, Jan 15, 2021 at 8:18 PM Borislav Petkov wrote: > > > > > > On Fri, Jan 15, 2021 at 02:11:25PM -0500, Arvind Sankar wrote: > > > > That's how build-time assert

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

2021-01-15 Thread Arnaldo Carvalho de Melo
Em Fri, Jan 15, 2021 at 05:28:14PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Thu, Jan 14, 2021 at 08:00:32PM +0100, Jiri Olsa escreveu: > > On Thu, Jan 14, 2021 at 09:27:55AM +0800, Jin Yao wrote: > > > > SNIP > > > > > 2.003776312 S1-D0 1 855616 Bytes > > > llc_m

Re: [PATCH 02/10] drm: Rename plane atomic_check state names

2021-01-15 Thread Laurent Pinchart
Hi Maxime, Thank you for the patch. On Fri, Jan 15, 2021 at 01:56:54PM +0100, Maxime Ripard wrote: > Most drivers call the argument to the plane atomic_check hook simply > state, which is going to conflict with the global atomic state in a > later rework. Let's rename it to new_plane_state (or ne

Re: [RFC PATCH 2/3] hugetlb: convert page_huge_active() to HPageMigratable flag

2021-01-15 Thread Oscar Salvador
On Fri, Jan 15, 2021 at 12:05:29PM -0800, Mike Kravetz wrote: > I went back and took a closer look. Migration is the reason the existing > page_huge_active interfaces were introduced. And, the only use of the > page_huge_active check is to determine if a page can be migrated. So, > I think 'Migr

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

2021-01-15 Thread Arnaldo Carvalho de Melo
Em Thu, Jan 14, 2021 at 08:00:32PM +0100, Jiri Olsa escreveu: > On Thu, Jan 14, 2021 at 09:27:55AM +0800, Jin Yao wrote: > > SNIP > > > 2.003776312 S1-D0 1 855616 Bytes > > llc_misses.mem_read > > 2.003776312 S1-D1 1 949376 Bytes > > llc_mis

Re: [PATCH] x86: efi: avoid BUILD_BUG_ON() for non-constant p4d_index

2021-01-15 Thread Arvind Sankar
On Fri, Jan 15, 2021 at 02:07:51PM -0500, Arvind Sankar wrote: > On Thu, Jan 07, 2021 at 11:34:15PM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > When 5-level page tables are enabled, clang triggers a BUILD_BUG_ON(): > > > > x86_64-linux-ld: arch/x86/platform/efi/efi_64.o: in funct

Re: [PATCH 5.10 086/103] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev

2021-01-15 Thread Pavel Machek
Hi! > > From: Xiaolei Wang > > > > commit cffa4b2122f5f3e53cf3d529bbc74651f95856d5 upstream. > > > > After initializing the regmap through > > syscon_regmap_lookup_by_compatible, then regmap_attach_dev to the > > device, because the debugfs_name has been allocated, there is no > > need to redis

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

2021-01-15 Thread Philip Chen
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 code from a top-row key press, the application needs to know how to correlate the action key code with the function

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

2021-01-15 Thread Philip Chen
Add a new property `function-row-physmap` to the device tree for the custom keyboard top row design. The property describes the rows/columns of the top row keys from left to right. Signed-off-by: Philip Chen --- Changes in v7: - Use MATRIX_KEY macro to describe `function-row-physmap` Changes i

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

2021-01-15 Thread Philip Chen
On Thu, Jan 14, 2021 at 6:38 PM Stephen Boyd wrote: > > Quoting Philip Chen (2021-01-14 18:30:30) > > Add a new property `function-row-physmap` to the > > device tree for the custom keyboard top row design. > > > > The property describes the rows/columns of the top row keys > > from left to right.

Re: [PATCH 5.10 086/103] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev

2021-01-15 Thread Nathan Chancellor
On Fri, Jan 15, 2021 at 09:18:19PM +0100, Pavel Machek wrote: > Hi! > > > From: Xiaolei Wang > > > > commit cffa4b2122f5f3e53cf3d529bbc74651f95856d5 upstream. > > > > After initializing the regmap through > > syscon_regmap_lookup_by_compatible, then regmap_attach_dev to the > > device, because

[PATCH V2 3/4] arm64: dts: renesas: Add fck to etheravb-rcar-gen3 clock-names list

2021-01-15 Thread Adam Ford
The bindings have been updated to support two clocks, but the original clock now requires the name fck. Add a clock-names list in the device tree with fck in it. Signed-off-by: Adam Ford Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a774a1.dtsi | 1 + arch/arm64/boot/dts/re

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