linux_dsm_epyc7002/drivers/gpu/drm/etnaviv
Lucas Stach 17e4660ae3 drm/etnaviv: implement per-process address spaces on MMUv2
This builds on top of the MMU contexts introduced earlier. Instead of having
one context per GPU core, each GPU client receives its own context.

On MMUv1 this still means a single shared pagetable set is used by all
clients, but on MMUv2 there is now a distinct set of pagetables for each
client. As the command fetch is also translated via the MMU on MMUv2 the
kernel command ringbuffer is mapped into each of the client pagetables.

As the MMU context switch is a bit of a heavy operation, due to the needed
cache and TLB flushing, this patch implements a lazy way of switching the
MMU context. The kernel does not have its own MMU context, but reuses the
last client context for all of its operations. This has some visible impact,
as the GPU can now only be started once a client has submitted some work and
we got the client MMU context assigned. Also the MMU context has a different
lifetime than the general client context, as the GPU might still execute the
kernel command buffer in the context of a client even after the client has
completed all GPU work and has been terminated. Only when the GPU is runtime
suspended or switches to another clients MMU context is the old context
freed up.

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 11:44:27 +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: implement per-process address spaces on MMUv2 2019-08-15 11:44:27 +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: implement per-process address spaces on MMUv2 2019-08-15 11:44:27 +02:00
etnaviv_drv.h drm/etnaviv: implement per-process address spaces on MMUv2 2019-08-15 11:44:27 +02:00
etnaviv_dump.c drm/etnaviv: implement per-process address spaces on MMUv2 2019-08-15 11:44:27 +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: implement per-process address spaces on MMUv2 2019-08-15 11:44:27 +02:00
etnaviv_gem.c drm/etnaviv: implement per-process address spaces on MMUv2 2019-08-15 11:44:27 +02:00
etnaviv_gem.h drm/etnaviv: implement per-process address spaces on MMUv2 2019-08-15 11:44:27 +02:00
etnaviv_gpu.c drm/etnaviv: implement per-process address spaces on MMUv2 2019-08-15 11:44:27 +02:00
etnaviv_gpu.h drm/etnaviv: implement per-process address spaces on MMUv2 2019-08-15 11:44:27 +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: implement per-process address spaces on MMUv2 2019-08-15 11:44:27 +02:00
etnaviv_iommu.c drm/etnaviv: implement per-process address spaces on MMUv2 2019-08-15 11:44:27 +02:00
etnaviv_mmu.c drm/etnaviv: implement per-process address spaces on MMUv2 2019-08-15 11:44:27 +02:00
etnaviv_mmu.h drm/etnaviv: implement per-process address spaces on MMUv2 2019-08-15 11:44:27 +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