forked from luck/tmp_suning_uos_patched
1a866306e0
The etnaviv device is a virtual device backing the DRM device, which may drive multiple hardware GPU core devices. As most of the dma-mapping handling is done through the virtual device, we need to make sure that a proper DMA setup is in place. The easiest way to get a reasonable configuration is to let the virtual device share the DMA configuration with one of the GPU devices, so call of_dma_configure() with the right parameters manually. This assumes that all etnaviv driven GPU devices in the system share the same DMA configuration. If we ever encounter a SoC where the GPUs are on busses with different offsets or behind different IOMMUs that will require much deeper changes to the driver, as we would need to implement etnaviv specific versions of most of the DRM helper functions. For now we should be fine with this solution. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Tested-by: Guido Günther <agx@sigxcpu.org> Tested-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> |
||
---|---|---|
.. | ||
cmdstream.xml.h | ||
common.xml.h | ||
etnaviv_buffer.c | ||
etnaviv_cmd_parser.c | ||
etnaviv_cmdbuf.c | ||
etnaviv_cmdbuf.h | ||
etnaviv_drv.c | ||
etnaviv_drv.h | ||
etnaviv_dump.c | ||
etnaviv_dump.h | ||
etnaviv_gem_prime.c | ||
etnaviv_gem_submit.c | ||
etnaviv_gem.c | ||
etnaviv_gem.h | ||
etnaviv_gpu.c | ||
etnaviv_gpu.h | ||
etnaviv_hwdb.c | ||
etnaviv_iommu_v2.c | ||
etnaviv_iommu.c | ||
etnaviv_iommu.h | ||
etnaviv_mmu.c | ||
etnaviv_mmu.h | ||
etnaviv_perfmon.c | ||
etnaviv_perfmon.h | ||
etnaviv_sched.c | ||
etnaviv_sched.h | ||
Kconfig | ||
Makefile | ||
state_3d.xml.h | ||
state_blt.xml.h | ||
state_hi.xml.h | ||
state.xml.h |