1. Jun 11, 2021
  2. Jun 08, 2021
  3. Jun 05, 2021
  4. Jun 03, 2021
  5. Jun 02, 2021
  6. Jun 01, 2021
  7. May 26, 2021
  8. May 24, 2021
    • Thomas Gleixner's avatar
      perf/hisi: Use irq_set_affinity() · 77b06ddc
      Thomas Gleixner authored
      
      
      These drivers use irq_set_affinity_hint() to set the affinity for the PMU
      interrupts, which relies on the undocumented side effect that this function
      actually sets the affinity under the hood.
      
      Setting an hint is clearly not a guarantee and for these PMU interrupts an
      affinity hint, which is supposed to guide userspace for setting affinity,
      is beyond pointless, because the affinity of these interrupts cannot be
      modified from user space.
      
      Aside of that the error checks are bogus because the only error which is
      returned from irq_set_affinity_hint() is when there is no irq descriptor
      for the interrupt number, but not when the affinity set fails. That's on
      purpose because the hint can point to an offline CPU.
      
      Replace the mindless abuse with irq_set_affinity().
      
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Shaokun Zhang <zhangshaokun@hisilicon.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
      Link: https://lore.kernel.org/r/20210518093118.813375875@linutronix.de
      
      
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      77b06ddc
    • Thomas Gleixner's avatar
      perf/imx_ddr: Use irq_set_affinity() · ba4489fb
      Thomas Gleixner authored
      
      
      The driver uses irq_set_affinity_hint() to set the affinity for the PMU
      interrupts, which relies on the undocumented side effect that this function
      actually sets the affinity under the hood.
      
      Setting an hint is clearly not a guarantee and for these PMU interrupts an
      affinity hint, which is supposed to guide userspace for setting affinity,
      is beyond pointless, because the affinity of these interrupts cannot be
      modified from user space.
      
      Aside of that the error checks are bogus because the only error which is
      returned from irq_set_affinity_hint() is when there is no irq descriptor
      for the interrupt number, but not when the affinity set fails. That's on
      purpose because the hint can point to an offline CPU.
      
      Replace the mindless abuse with irq_set_affinity().
      
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Frank Li <Frank.li@nxp.com>
      Cc: Will Deacon <will@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Shawn Guo <shawnguo@kernel.org>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: NXP Linux Team <linux-imx@nxp.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
      Link: https://lore.kernel.org/r/20210518093118.699566062@linutronix.de
      
      
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      ba4489fb
    • Thomas Gleixner's avatar
      perf/arm-smmuv3: Use irq_set_affinity() · 26210545
      Thomas Gleixner authored
      
      
      The driver uses irq_set_affinity_hint() to set the affinity for the PMU
      interrupts, which relies on the undocumented side effect that this function
      actually sets the affinity under the hood.
      
      Setting an hint is clearly not a guarantee and for these PMU interrupts an
      affinity hint, which is supposed to guide userspace for setting affinity,
      is beyond pointless, because the affinity of these interrupts cannot be
      modified from user space.
      
      Aside of that the error checks are bogus because the only error which is
      returned from irq_set_affinity_hint() is when there is no irq descriptor
      for the interrupt number, but not when the affinity set fails. That's on
      purpose because the hint can point to an offline CPU.
      
      Replace the mindless abuse with irq_set_affinity().
      
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Will Deacon <will@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
      Link: https://lore.kernel.org/r/20210518093118.603636289@linutronix.de
      
      
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      26210545
    • Thomas Gleixner's avatar
      perf/arm-dsu: Use irq_set_affinity() · 41ea2817
      Thomas Gleixner authored
      
      
      The driver uses irq_set_affinity_hint() to set the affinity for the PMU
      interrupts, which relies on the undocumented side effect that this function
      actually sets the affinity under the hood.
      
      Setting an hint is clearly not a guarantee and for these PMU interrupts an
      affinity hint, which is supposed to guide userspace for setting affinity,
      is beyond pointless, because the affinity of these interrupts cannot be
      modified from user space.
      
      Aside of that the error checks are bogus because the only error which is
      returned from irq_set_affinity_hint() is when there is no irq descriptor
      for the interrupt number, but not when the affinity set fails. That's on
      purpose because the hint can point to an offline CPU.
      
      Replace the mindless abuse with irq_set_affinity().
      
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Will Deacon <will@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
      Link: https://lore.kernel.org/r/20210518093118.505110632@linutronix.de
      
      
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      41ea2817
    • Thomas Gleixner's avatar
      perf/arm-dmc620: Use irq_set_affinity() · 1ceeb8d4
      Thomas Gleixner authored
      
      
      The driver uses irq_set_affinity_hint() to set the affinity for the PMU
      interrupts, which relies on the undocumented side effect that this function
      actually sets the affinity under the hood.
      
      Setting an hint is clearly not a guarantee and for these PMU interrupts an
      affinity hint, which is supposed to guide userspace for setting affinity,
      is beyond pointless, because the affinity of these interrupts cannot be
      modified from user space.
      
      Aside of that the error checks are bogus because the only error which is
      returned from irq_set_affinity_hint() is when there is no irq descriptor
      for the interrupt number, but not when the affinity set fails. That's on
      purpose because the hint can point to an offline CPU.
      
      Replace the mindless abuse with irq_set_affinity().
      
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Will Deacon <will@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
      Link: https://lore.kernel.org/r/20210518093118.395086573@linutronix.de
      
      
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      1ceeb8d4
    • Thomas Gleixner's avatar
      perf/arm-cmn: Use irq_set_affinity() · 8ec25d34
      Thomas Gleixner authored
      
      
      The driver uses irq_set_affinity_hint() to set the affinity for the PMU
      interrupts, which relies on the undocumented side effect that this function
      actually sets the affinity under the hood.
      
      Setting an hint is clearly not a guarantee and for these PMU interrupts an
      affinity hint, which is supposed to guide userspace for setting affinity,
      is beyond pointless, because the affinity of these interrupts cannot be
      modified from user space.
      
      Aside of that the error checks are bogus because the only error which is
      returned from irq_set_affinity_hint() is when there is no irq descriptor
      for the interrupt number, but not when the affinity set fails. That's on
      purpose because the hint can point to an offline CPU.
      
      Replace the mindless abuse with irq_set_affinity().
      
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Will Deacon <will@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
      Link: https://lore.kernel.org/r/20210518093118.277228577@linutronix.de
      
      
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      8ec25d34
    • Thomas Gleixner's avatar
      perf/arm-ccn: Use irq_set_affinity() · 84fca8ba
      Thomas Gleixner authored
      
      
      The driver uses irq_set_affinity_hint() to set the affinity for the PMU
      interrupts, which relies on the undocumented side effect that this function
      actually sets the affinity under the hood.
      
      Setting an hint is clearly not a guarantee and for these PMU interrupts an
      affinity hint, which is supposed to guide userspace for setting affinity,
      is beyond pointless, because the affinity of these interrupts cannot be
      modified from user space.
      
      Aside of that the error checks are bogus because the only error which is
      returned from irq_set_affinity_hint() is when there is no irq descriptor
      for the interrupt number, but not when the affinity set fails. That's on
      purpose because the hint can point to an offline CPU.
      
      Replace the mindless abuse with irq_set_affinity().
      
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Will Deacon <will@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Acked-by: default avatarMark Rutland <mark.rutland@arm.com>
      Link: https://lore.kernel.org/r/20210518093118.128250213@linutronix.de
      
      
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      84fca8ba
    • Will Deacon's avatar
      Merge tag 'irq-export-set-affinity' of... · da3862e7
      Will Deacon authored
      Merge tag 'irq-export-set-affinity' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into for-next/perf
      
      Export irq_set_affinity() for cleaning up drivers/perf
      
      Pull export of irq_set_affinity() from Thomas Gleixner, so we can convert
      all new and exiting Arm PMU drivers to the new interface.
      
      * tag 'irq-export-set-affinity' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        genirq: Export affinity setter for modules
      da3862e7
    • Linus Torvalds's avatar
      Linux 5.13-rc3 · c4681547
      Linus Torvalds authored
      c4681547
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2021-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 6ebb6814
      Linus Torvalds authored
      Pull perf fixes from Thomas Gleixner:
       "Two perf fixes:
      
         - Do not check the LBR_TOS MSR when setting up unrelated LBR MSRs as
           this can cause malfunction when TOS is not supported
      
         - Allocate the LBR XSAVE buffers along with the DS buffers upfront
           because allocating them when adding an event can deadlock"
      
      * tag 'perf-urgent-2021-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/x86/lbr: Remove cpuc->lbr_xsave allocation from atomic context
        perf/x86: Avoid touching LBR_TOS MSR for Arch LBR
      6ebb6814
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2021-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0898678c
      Linus Torvalds authored
      Pull locking fixes from Thomas Gleixner:
       "Two locking fixes:
      
         - Invoke the lockdep tracepoints in the correct place so the ordering
           is correct again
      
         - Don't leave the mutex WAITER bit stale when the last waiter is
           dropping out early due to a signal as that forces all subsequent
           lock operations needlessly into the slowpath until it's cleaned up
           again"
      
      * tag 'locking-urgent-2021-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/mutex: clear MUTEX_FLAGS if wait_list is empty due to signal
        locking/lockdep: Correct calling tracepoints
      0898678c
    • Linus Torvalds's avatar
      Merge tag 'irq-urgent-2021-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f73d2a42
      Linus Torvalds authored
      Pull irq fixes from Thomas Gleixner:
       "A few fixes for irqchip drivers:
      
         - Allocate interrupt descriptors correctly on Mainstone PXA when
           SPARSE_IRQ is enabled; otherwise the interrupt association fails
      
         - Make the APPLE AIC chip driver depend on APPLE
      
         - Remove redundant error output on devm_ioremap_resource() failure"
      
      * tag 'irq-urgent-2021-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip: Remove redundant error printing
        irqchip/apple-aic: APPLE_AIC should depend on ARCH_APPLE
        ARM: PXA: Fix cplds irqdesc allocation when using legacy mode
      f73d2a42
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v5.13_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7de7ac8d
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - Fix how SEV handles MMIO accesses by forwarding potential page faults
         instead of killing the machine and by using the accessors with the
         exact functionality needed when accessing memory.
      
       - Fix a confusion with Clang LTO compiler switches passed to the it
      
       - Handle the case gracefully when VMGEXIT has been executed in
         userspace
      
      * tag 'x86_urgent_for_v5.13_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/sev-es: Use __put_user()/__get_user() for data accesses
        x86/sev-es: Forward page-faults which happen during emulation
        x86/sev-es: Don't return NULL from sev_es_get_ghcb()
        x86/build: Fix location of '-plugin-opt=' flags
        x86/sev-es: Invalidate the GHCB after completing VMGEXIT
        x86/sev-es: Move sev_es_put_ghcb() in prep for follow on patch
      7de7ac8d
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.13-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 28ceac69
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix breakage of strace (and other ptracers etc.) when using the new
         scv ABI (Power9 or later with glibc >= 2.33).
      
       - Fix early_ioremap() on 64-bit, which broke booting on some machines.
      
      Thanks to Dmitry V. Levin, Nicholas Piggin, Alexey Kardashevskiy, and
      Christophe Leroy.
      
      * tag 'powerpc-5.13-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/64s/syscall: Fix ptrace syscall info with scv syscalls
        powerpc/64s/syscall: Use pt_regs.trap to distinguish syscall ABI difference between sc and scv syscalls
        powerpc: Fix early setup to make early_ioremap() work
      28ceac69
  9. May 23, 2021
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v5.13' of... · 4d762034
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Fix short log indentation for tools builds
      
       - Fix dummy-tools to adjust to the latest stackprotector check
      
      * tag 'kbuild-fixes-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kbuild: dummy-tools: adjust to stricter stackprotector check
        scripts/jobserver-exec: Fix a typo ("envirnoment")
        tools build: Fix quiet cmd indentation
      4d762034
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 34c5c898
      Linus Torvalds authored
      Merge misc fixes from Andrew Morton:
       "10 patches.
      
        Subsystems affected by this patch series: mm (pagealloc, gup, kasan,
        and userfaultfd), ipc, selftests, watchdog, bitmap, procfs, and lib"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        userfaultfd: hugetlbfs: fix new flag usage in error path
        lib: kunit: suppress a compilation warning of frame size
        proc: remove Alexey from MAINTAINERS
        linux/bits.h: fix compilation error with GENMASK
        watchdog: reliable handling of timestamps
        kasan: slab: always reset the tag in get_freepointer_safe()
        tools/testing/selftests/exec: fix link error
        ipc/mqueue, msg, sem: avoid relying on a stack reference past its expiry
        Revert "mm/gup: check page posion status for coredump."
        mm/shuffle: fix section mismatch warning
      34c5c898