Skip to content
Snippets Groups Projects
  1. Oct 27, 2021
    • Rafael J. Wysocki's avatar
      perf: qcom_l2_pmu: ACPI: Use ACPI_COMPANION() directly · d5a8fb65
      Rafael J. Wysocki authored
      
      The ACPI_HANDLE() macro is a wrapper arond the ACPI_COMPANION()
      macro and the ACPI handle produced by the former comes from the
      ACPI device object produced by the latter, so it is way more
      straightforward to evaluate the latter directly instead of passing
      the handle produced by the former to acpi_bus_get_device().
      
      Modify l2_cache_pmu_probe_cluster() accordingly (no intentional
      functional impact).
      
      While at it, rename the ACPI device pointer to adev for more
      clarity.
      
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      d5a8fb65
  2. Oct 04, 2021
  3. Sep 20, 2021
  4. Jun 17, 2021
  5. Jun 11, 2021
  6. Jun 08, 2021
  7. Jun 04, 2021
  8. Jun 02, 2021
  9. Jun 01, 2021
  10. May 25, 2021
  11. 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
  12. Apr 22, 2021
  13. Mar 30, 2021
  14. Mar 25, 2021
Loading