dev-arm: Provide a GICv3 ITS Implementation
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 16 Apr 2019 08:20:22 +0000 (09:20 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 22 May 2019 15:17:15 +0000 (15:17 +0000)
commit5830ee78b6dcab87cf383a6cab1e534e1ae1baae
treef6a3cce02b1ff377695fba195f8092877f0c4ed3
parentdd8a7694806e3f816ba688d2094106db68b46b53
dev-arm: Provide a GICv3 ITS Implementation

This patch introduces the GICv3 ITS module, which is in charge of
translating MSIs into physical (GICv3) and virtual (GICv4) LPIs.  The
patch is only GICv3 compliant, which means that there is no direct
virtual LPI injection (this also means V* commands are unimplemented)
Other missing features are:

* No 2level ITS tables (only flat table supported)

* Command errors: when there is an error in the ITS, it is
IMPLEMENTATION DEFINED on how the ITS behaves.  There are three possible
scenarios (see GICv3 TRM) and this implementation only supports one of
these (which is, aborting the command and jumping to the next one).
Furter patches could make it possible to select different reactions

* Invalidation commands (INV, INVALL) are only doing the memory table
walks, assuming the current Gicv3Redistributor is not caching any
configuration table entry.

Change-Id: If4ae9267ac1de7b20a04986a2af3ca3109743211
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18601
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/arm/Gic.py
src/dev/arm/RealView.py
src/dev/arm/SConscript
src/dev/arm/gic_v3.cc
src/dev/arm/gic_v3.hh
src/dev/arm/gic_v3_its.cc [new file with mode: 0644]
src/dev/arm/gic_v3_its.hh [new file with mode: 0644]
src/dev/arm/gic_v3_redistributor.hh