linux_dsm_epyc7002/drivers/gpu/drm/etnaviv
Lucas Stach 27b67278e0 drm/etnaviv: rework MMU handling
This reworks the MMU handling to make it possible to have multiple MMU contexts.
A context is basically one instance of GPU page tables. Currently we have one
set of page tables per GPU, which isn't all that clever, as it has the
following two consequences:

1. All GPU clients (aka processes) are sharing the same pagetables, which means
there is no isolation between clients, but only between GPU assigned memory
spaces and the rest of the system. Better than nothing, but also not great.

2. Clients operating on the same set of buffers with different etnaviv GPU
cores, e.g. a workload using both the 2D and 3D GPU, need to map the used
buffers into the pagetable sets of each used GPU.

This patch reworks all the MMU handling to introduce the abstraction of the
MMU context. A context can be shared across different GPU cores, as long as
they have compatible MMU implementations, which is the case for all systems
with Vivante GPUs seen in the wild.

As MMUv1 is not able to change pagetables on the fly, without a
"stop the world" operation, which stops GPU, changes pagetables via CPU
interaction, restarts GPU, the implementation introduces a shared context on
MMUv1, which is returned whenever there is a request for a new context.

This patch assigns a MMU context to each GPU, so on MMUv2 systems there is
still one set of pagetables per GPU, but due to the shared context MMUv1
systems see a change in behavior as now a single pagetable set is used
across all GPU cores.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Guido Günther <agx@sigxcpu.org>
2019-08-15 10:56:45 +02:00
..
cmdstream.xml.h drm/etnaviv: Allow DRAW_INSTANCED commands 2016-12-02 19:30:22 +01:00
common.xml.h drm/etnaviv: update hardware headers from rnndb 2018-03-09 12:22:36 +01:00
etnaviv_buffer.c drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_cmd_parser.c drm/etnaviv: replace license text with SPDX tags 2018-05-18 15:27:56 +02:00
etnaviv_cmdbuf.c drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_cmdbuf.h drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_drv.c drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_drv.h drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_dump.c drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_dump.h drm/etnaviv: pass mmu pointer to etnaviv_core_dump_mmu 2019-08-15 10:53:31 +02:00
etnaviv_gem_prime.c drm/etnaviv: drop use of drmP.h 2019-08-02 19:14:51 +02:00
etnaviv_gem_submit.c drm/etnaviv: share a single cmdbuf suballoc region across all GPUs 2019-08-15 10:55:30 +02:00
etnaviv_gem.c drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_gem.h drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_gpu.c drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_gpu.h drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_hwdb.c drm/etnaviv: replace license text with SPDX tags 2018-05-18 15:27:56 +02:00
etnaviv_iommu_v2.c drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_iommu.c drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_mmu.c drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_mmu.h drm/etnaviv: rework MMU handling 2019-08-15 10:56:45 +02:00
etnaviv_perfmon.c etnaviv: perfmon: fix total and idle HI cyleces readout 2019-08-09 14:08:29 +02:00
etnaviv_perfmon.h drm/etnaviv: replace license text with SPDX tags 2018-05-18 15:27:56 +02:00
etnaviv_sched.c drm/etnaviv: dump only failing submit 2019-08-15 10:48:51 +02:00
etnaviv_sched.h drm/etnaviv: replace license text with SPDX tags 2018-05-18 15:27:56 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile drm/etnaviv: add hardware database 2018-03-09 12:22:37 +01:00
state_3d.xml.h drm/etnaviv: update hardware headers from rnndb 2018-03-09 12:22:36 +01:00
state_blt.xml.h drm/etnaviv: update hardware headers from rnndb 2018-03-09 12:22:36 +01:00
state_hi.xml.h drm/etnaviv: update hardware headers from rnndb 2018-03-09 12:22:36 +01:00
state.xml.h drm/etnaviv: update hardware headers from rnndb 2018-03-09 12:22:36 +01:00