Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 00/38] irqchip: mips-gic: Cleanup & optimisation
@ 2017-08-13  4:36 Paul Burton
  2017-08-13  4:36 ` Paul Burton
                   ` (40 more replies)
  0 siblings, 41 replies; 111+ messages in thread
From: Paul Burton @ 2017-08-13  4:36 UTC (permalink / raw)
  To: linux-mips, Jason Cooper, Marc Zyngier, Thomas Gleixner
  Cc: Ralf Baechle, Paul Burton

This series cleans up the MIPS Global Interrupt Controller (GIC) driver
somewhat. It moves us towards using a header in a similar vein to the
ones we have for the MIPS Coherence Manager (CM) & Cluster Power
Controller (CPC) which allows us to access the GIC outside of the
irqchip driver - something beneficial already for the clocksource &
clock event driver, and which will be beneficial for further drivers
(eg. one for the GIC watchdog timer) and for multi-cluster work. Using
this header is also beneficial for consistency & code-sharing.

In addition to cleanups the series also optimises the driver in various
ways, including by using a per-CPU variable for pcpu_masks & removing
the need to read the GIC_SH_MASK_* registers when decoding interrupts in
gic_handle_shared_int().

This series requires my "[PATCH 00/19] MIPS: Initial multi-cluster
support" series to be applied first.


James Hogan (1):
  irqchip: mips-gic: SYNC after enabling GIC region

Paul Burton (37):
  MIPS: GIC: Introduce asm/mips-gic.h with accessor functions
  clocksource: mips-gic-timer: Use new GIC accessor functions
  irqchip: mips-gic: Remove counter access functions
  MIPS: CPS: Read GIC_VL_IDENT directly, not via irqchip driver
  irqchip: mips-gic: Remove gic_read_local_vp_id()
  lib/iomap_copy.c: Add __ioread64_copy
  irqchip: mips-gic: Simplify shared interrupt pending/mask reads
  irqchip: mips-gic: Simplify gic_local_irq_domain_map()
  irqchip: mips-gic: Drop gic_(re)set_mask() functions
  irqchip: mips-gic: Remove gic_set_polarity()
  irqchip: mips-gic: Remove gic_set_trigger()
  irqchip: mips-gic: Remove gic_set_dual_edge()
  irqchip: mips-gic: Remove gic_map_to_pin()
  irqchip: mips-gic: Remove gic_map_to_vpe()
  irqchip: mips-gic: Convert remaining shared reg access to new
    accessors
  irqchip: mips-gic: Convert local int mask access to new accessors
  irqchip: mips-gic: Convert remaining local reg access to new accessors
  MIPS: GIC: Move GIC_LOCAL_INT_* to asm/mips-gic.h
  irqchip: mips-gic: Remove GIC_CPU_INT* macros
  irqchip: mips-gic: Move various definitions to the driver
  MIPS: VDSO: Drop gic_get_usm_range() usage
  irqchip: mips-gic: Remove gic_get_usm_range()
  irqchip: mips-gic: Remove __gic_irq_dispatch() forward declaration
  irqchip: mips-gic: Remove gic_init()
  MIPS: Use mips_gic_present() in place of gic_present
  irqchip: mips-gic: Remove gic_present
  irqchip: mips-gic: Move gic_get_c0_*_int() to asm/mips-gic.h
  MIPS: VDSO: Avoid use of linux/irqchip/mips-gic.h
  MIPS: Remove unnecessary inclusions of linux/irqchip/mips-gic.h
  irqchip: mips-gic: Remove linux/irqchip/mips-gic.h
  irqchip: mips-gic: Inline __gic_init()
  irqchip: mips-gic: Inline gic_basic_init()
  irqchip: mips-gic: Make pcpu_masks a per-cpu variable
  irqchip: mips-gic: Use pcpu_masks to avoid reading GIC_SH_MASK*
  irqchip: mips-gic: Clean up mti,reserved-cpu-vectors handling
  irqchip: mips-gic: Use cpumask_first_and() in gic_set_affinity()
  irqchip: mips-gic: Let the core set struct irq_common_data affinity

 arch/mips/generic/irq.c                      |   8 +-
 arch/mips/include/asm/mips-boards/maltaint.h |   5 -
 arch/mips/include/asm/mips-cps.h             |   1 +
 arch/mips/include/asm/mips-gic.h             | 347 +++++++++++++++
 arch/mips/kernel/smp-cmp.c                   |   1 -
 arch/mips/kernel/smp-cps.c                   |   3 +-
 arch/mips/kernel/smp-mt.c                    |   6 +-
 arch/mips/kernel/vdso.c                      |  15 +-
 arch/mips/lantiq/irq.c                       |   4 -
 arch/mips/mti-malta/malta-int.c              |   4 +-
 arch/mips/mti-malta/malta-time.c             |  20 +-
 arch/mips/pistachio/irq.c                    |   1 -
 arch/mips/pistachio/time.c                   |   2 +-
 arch/mips/ralink/irq-gic.c                   |   2 +-
 arch/mips/vdso/gettimeofday.c                |   7 +-
 drivers/clocksource/mips-gic-timer.c         |  37 +-
 drivers/irqchip/irq-mips-gic.c               | 604 ++++++++-------------------
 include/linux/io.h                           |   1 +
 include/linux/irqchip/mips-gic.h             | 297 -------------
 lib/iomap_copy.c                             |  25 ++
 20 files changed, 609 insertions(+), 781 deletions(-)
 create mode 100644 arch/mips/include/asm/mips-gic.h
 delete mode 100644 include/linux/irqchip/mips-gic.h

-- 
2.14.0

^ permalink raw reply	[flat|nested] 111+ messages in thread

end of thread, other threads:[~2017-08-18 21:10 UTC | newest]

Thread overview: 111+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-13  4:36 [PATCH 00/38] irqchip: mips-gic: Cleanup & optimisation Paul Burton
2017-08-13  4:36 ` Paul Burton
2017-08-13  4:36 ` [PATCH 01/38] irqchip: mips-gic: SYNC after enabling GIC region Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 02/38] MIPS: GIC: Introduce asm/mips-gic.h with accessor functions Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-18 11:10   ` Marc Zyngier
2017-08-18 16:43     ` Paul Burton
2017-08-18 16:43       ` Paul Burton
2017-08-13  4:36 ` [PATCH 03/38] clocksource: mips-gic-timer: Use new GIC " Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 04/38] irqchip: mips-gic: Remove counter access functions Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 05/38] MIPS: CPS: Read GIC_VL_IDENT directly, not via irqchip driver Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 06/38] irqchip: mips-gic: Remove gic_read_local_vp_id() Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 07/38] lib/iomap_copy.c: Add __ioread64_copy Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 08/38] irqchip: mips-gic: Simplify shared interrupt pending/mask reads Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 09/38] irqchip: mips-gic: Simplify gic_local_irq_domain_map() Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 10/38] irqchip: mips-gic: Drop gic_(re)set_mask() functions Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 11/38] irqchip: mips-gic: Remove gic_set_polarity() Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 12/38] irqchip: mips-gic: Remove gic_set_trigger() Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 13/38] irqchip: mips-gic: Remove gic_set_dual_edge() Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 14/38] irqchip: mips-gic: Remove gic_map_to_pin() Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 15/38] irqchip: mips-gic: Remove gic_map_to_vpe() Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 16/38] irqchip: mips-gic: Convert remaining shared reg access to new accessors Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 17/38] irqchip: mips-gic: Convert local int mask " Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 18/38] irqchip: mips-gic: Convert remaining local reg " Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 19/38] MIPS: GIC: Move GIC_LOCAL_INT_* to asm/mips-gic.h Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 20/38] irqchip: mips-gic: Remove GIC_CPU_INT* macros Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 21/38] irqchip: mips-gic: Move various definitions to the driver Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 22/38] MIPS: VDSO: Drop gic_get_usm_range() usage Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-18 11:38   ` Marc Zyngier
2017-08-18 16:47     ` Paul Burton
2017-08-18 16:47       ` Paul Burton
2017-08-18 16:52       ` Marc Zyngier
2017-08-13  4:36 ` [PATCH 23/38] irqchip: mips-gic: Remove gic_get_usm_range() Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 24/38] irqchip: mips-gic: Remove __gic_irq_dispatch() forward declaration Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 25/38] irqchip: mips-gic: Remove gic_init() Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 26/38] MIPS: Use mips_gic_present() in place of gic_present Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 27/38] irqchip: mips-gic: Remove gic_present Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 28/38] irqchip: mips-gic: Move gic_get_c0_*_int() to asm/mips-gic.h Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 29/38] MIPS: VDSO: Avoid use of linux/irqchip/mips-gic.h Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 30/38] MIPS: Remove unnecessary inclusions " Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 31/38] irqchip: mips-gic: Remove linux/irqchip/mips-gic.h Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 32/38] irqchip: mips-gic: Inline __gic_init() Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 33/38] irqchip: mips-gic: Inline gic_basic_init() Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 34/38] irqchip: mips-gic: Make pcpu_masks a per-cpu variable Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-18 15:37   ` Marc Zyngier
2017-08-18 17:02     ` Paul Burton
2017-08-18 17:02       ` Paul Burton
2017-08-18 17:18       ` Marc Zyngier
2017-08-13  4:36 ` [PATCH 35/38] irqchip: mips-gic: Use pcpu_masks to avoid reading GIC_SH_MASK* Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-18 15:44   ` Marc Zyngier
2017-08-18 17:11     ` Paul Burton
2017-08-18 17:11       ` Paul Burton
2017-08-18 17:25       ` Marc Zyngier
2017-08-18 21:02         ` [PATCH v2 " Paul Burton
2017-08-18 21:02           ` Paul Burton
2017-08-13  4:36 ` [PATCH 36/38] irqchip: mips-gic: Clean up mti,reserved-cpu-vectors handling Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  4:36 ` [PATCH 37/38] irqchip: mips-gic: Use cpumask_first_and() in gic_set_affinity() Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-13  9:08   ` Sergei Shtylyov
2017-08-14 16:18     ` Paul Burton
2017-08-14 16:18       ` Paul Burton
2017-08-14 16:48       ` Sergei Shtylyov
2017-08-18 21:04   ` [PATCH v2 " Paul Burton
2017-08-18 21:04     ` Paul Burton
2017-08-13  4:36 ` [PATCH 38/38] irqchip: mips-gic: Let the core set struct irq_common_data affinity Paul Burton
2017-08-13  4:36   ` Paul Burton
2017-08-15 10:13 ` [PATCH 00/38] irqchip: mips-gic: Cleanup & optimisation Marc Zyngier
2017-08-15 16:16   ` Paul Burton
2017-08-15 16:16     ` Paul Burton
2017-08-15 16:49     ` Marc Zyngier
2017-08-18 17:28 ` Marc Zyngier
2017-08-18 17:44   ` Paul Burton
2017-08-18 17:44     ` Paul Burton
2017-08-18 17:49     ` Marc Zyngier
2017-08-18 21:09       ` Paul Burton
2017-08-18 21:09         ` Paul Burton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox