1. 11 Jun, 2021 5 commits
  2. 08 Jun, 2021 2 commits
  3. 04 Jun, 2021 1 commit
  4. 03 Jun, 2021 1 commit
  5. 02 Jun, 2021 2 commits
  6. 01 Jun, 2021 7 commits
  7. 25 May, 2021 5 commits
  8. 24 May, 2021 8 commits
    • 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.deSigned-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.deSigned-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.deSigned-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.deSigned-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.deSigned-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.deSigned-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.deSigned-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
  9. 23 May, 2021 9 commits