Skip to contentSkip to conversation

arch: arm: Program GIC LPI configuration table

PATCH New Vladimir Olovyannikov 2 participants 2 messages Dec 16, 2019 – Jan 10, 2020 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arch: arm: Program GIC LPI configuration table

From: Bharat Kumar Reddy Gooty <[email protected]>

Programs the following:
1. Redistributor PROCBASER configuration table (which is common for all redistributors)
2. Redistributor pending table (PENDBASER), for all the available redistributors.

---
 arch/arm/Kconfig              |  10 +++
 arch/arm/include/asm/gic-v3.h | 134 ++++++++++++++++++++++++++++++++++
 arch/arm/lib/Makefile         |   1 +
 arch/arm/lib/gic-v3-its.c     | 100 +++++++++++++++++++++++++
 4 files changed, 245 insertions(+)
 create mode 100644 arch/arm/include/asm/gic-v3.h
 create mode 100644 arch/arm/lib/gic-v3-its.c
arch/arm/Kconfig +10 -0
index f96841c777..c0b45df9d0 100644
@@ -61,6 +61,16 @@ config LNX_KRNL_IMG_TEXT_OFFSET_BASE
 endif
 endif
 
+config GIC_V3_ITS
+	bool "ARM GICV3 ITS"
+	help
+	  ARM GICV3 Interrupt translation service (ITS).
+	  Basic support for programming locality specific peripheral
+	  interrupts (LPI) configuration tables and enable LPI tables.
+	  LPI configuration table can be used by u-boot or Linux.
+	  ARM GICV3 has limitation, once the LPI table is enabled, LPI
+	  configuration table can not be re-programmed, unless GICV3 reset.
+
 config STATIC_RELA
 	bool
 	default y if ARM64 && !POSITION_INDEPENDENT
arch/arm/include/asm/gic-v3.h new file +134 -0

134 lines not on this page · raw message

arch/arm/lib/Makefile +1 -0
index 9de9a9acee..8482f5446c 100644
@@ -52,6 +52,7 @@ obj-$(CONFIG_FSL_LAYERSCAPE) += ccn504.o
 ifneq ($(CONFIG_GICV2)$(CONFIG_GICV3),)
 obj-y	+= gic_64.o
 endif
+obj-$(CONFIG_GIC_V3_ITS)	+= gic-v3-its.o
 obj-y	+= interrupts_64.o
 else
 obj-y	+= interrupts.o
arch/arm/lib/gic-v3-its.c new file +100 -0

100 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw

PATCH v2 1/1 arch: arm: Program GIC LPI configuration table

Quoted 10 lines · Vladimir Olovyannikov

From: Bharat Kumar Reddy Gooty <[email protected]>

Programs the following:
1. Redistributor PROCBASER configuration table (which is common for all redistributors)
2. Redistributor pending table (PENDBASER), for all the available redistributors.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200110/1c109062/attachment.sig>