[RFC PATCH v3] ARM CCI support
Lorenzo Pieralisi
lorenzo.pieralisi at arm.com
Thu May 9 20:33:59 EST 2013
This patch is an updated of a previous posting:
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-May/166173.html
main changes in v3:
- Changed init to early_initcall and added code to deal with init calls
ordering issues
- Removed platform driver infrastructure, replaced with DT layer
- Added missing pointer flushing
- Removed useless includes
- Implemented MPIDR stashing
- Added basic functions to initialize and carry out CPU ports look-ups
- fixed !CONFIG_ARM_CCI compile issue
main changes in v2:
- Changed way masters are connected to CCI slave ports in DT
# now every master has to declare a phandle to a CCI control IF
- Fixed warning split on different lines
- Added comments to disable function
- Moved driver to non-hotpluggable API (registration and probing bundled
together)
- Upgraded cache flushing API
- Reworked the driver to use devm primitives
- Added disable/enable by index API
- Fixed port enable and added macro for snoops/DVM control
ARM multi-cluster systems rely on the cache coherent interconnect (CCI) to
support inter-cluster cache coherency and distributed virtual memory (DVM)
messaging.
CCI kernel driver requires tweaks to the kernel and device tree
bindings in order to link specific resources to groups of logical CPUs
so that resources can be associated to specific cpu sets (slave ports can
be associated with a set of CPUs which are part of a cluster).
CCI slave ports must be associated with specific bus masters in the system so
that whenever a CCI operation is requested for a specific master (ie disable
its CCI slave port, read its PMU counters) the association can be carried out
dynamically in the OS through dynamically built data structures.
Bus masters in the system connected to CCI ports must define device tree
properties, as described in the documentation contained in the patch, in order
to explicitly connect ports and allow the OS to build up the required data
structures.
The current CCI DT bindings define the CCI address space as the same one
as the root device tree node, which means that the CCI bus can address the
entire address space visible to CPUs.
Lorenzo Pieralisi (1):
drivers: bus: add ARM CCI support
Documentation/devicetree/bindings/arm/cci.txt | 161 ++++++++++
drivers/bus/Kconfig | 7 +
drivers/bus/Makefile | 2 +
drivers/bus/arm-cci.c | 420 ++++++++++++++++++++++++++
include/linux/arm-cci.h | 61 ++++
5 files changed, 651 insertions(+)
create mode 100644 Documentation/devicetree/bindings/arm/cci.txt
create mode 100644 drivers/bus/arm-cci.c
create mode 100644 include/linux/arm-cci.h
--
1.8.2.2
More information about the devicetree-discuss
mailing list