diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2017-01-16 17:00:08 +0100 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2017-02-02 10:30:27 +0100 |
commit | 9912b4db7beae07cfa8d435530cddf375873c6f3 (patch) | |
tree | 88bb25244b988fff0bfb6c8e51e156cbdb983b2a /drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.h | |
parent | c3ef4b8c3e108397980014a4616c56f50026d547 (diff) | |
download | op-kernel-dev-9912b4db7beae07cfa8d435530cddf375873c6f3.zip op-kernel-dev-9912b4db7beae07cfa8d435530cddf375873c6f3.tar.gz |
drm/etnaviv: get cmdbuf physical address through the cmdbuf abstraction
Don't allow IOMMUv2 to peek directly into the cmdbuf, but get the
needed PA through a dedicated function.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.h')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.h b/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.h index 6d64685..2443587 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.h +++ b/drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.h @@ -44,5 +44,6 @@ struct etnaviv_cmdbuf { }; u32 etnaviv_cmdbuf_get_va(struct etnaviv_cmdbuf *buf); +dma_addr_t etnaviv_cmdbuf_get_pa(struct etnaviv_cmdbuf *buf); #endif /* __ETNAVIV_CMDBUF_H__ */ |