diff options
author | Vivek Gautam <vivek.gautam@codeaurora.org> | 2019-05-16 11:30:20 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2019-06-18 20:27:37 +0200 |
commit | 90ec7a76cc4ba65bfedeb8621cba09cd5a317d8f (patch) | |
tree | 60954b2053343e3b96cffd1bbdff122ebc8b1e6c /drivers/nvmem/rave-sp-eeprom.c | |
parent | iommu/arm-smmu-v3: Increase maximum size of queues (diff) | |
download | linux-90ec7a76cc4ba65bfedeb8621cba09cd5a317d8f.tar.xz linux-90ec7a76cc4ba65bfedeb8621cba09cd5a317d8f.zip |
iommu/io-pgtable-arm: Add support to use system cache
Few Qualcomm platforms such as, sdm845 have an additional outer
cache called as System cache, aka. Last level cache (LLC) that
allows non-coherent devices to upgrade to using caching.
This cache sits right before the DDR, and is tightly coupled
with the memory controller. The clients using this cache request
their slices from this system cache, make it active, and can then
start using it.
There is a fundamental assumption that non-coherent devices can't
access caches. This change adds an exception where they *can* use
some level of cache despite still being non-coherent overall.
The coherent devices that use cacheable memory, and CPU make use of
this system cache by default.
Looking at memory types, we have following -
a) Normal uncached :- MAIR 0x44, inner non-cacheable,
outer non-cacheable;
b) Normal cached :- MAIR 0xff, inner read write-back non-transient,
outer read write-back non-transient;
attribute setting for coherenet I/O devices.
and, for non-coherent i/o devices that can allocate in system cache
another type gets added -
c) Normal sys-cached :- MAIR 0xf4, inner non-cacheable,
outer read write-back non-transient
Coherent I/O devices use system cache by marking the memory as
normal cached.
Non-coherent I/O devices should mark the memory as normal
sys-cached in page tables to use system cache.
Acked-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions