mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 02:01:36 +03:00
gpu: host1x: Retrieve syncpoint shim information
Retrieve information for the memory syncpoint shim from the device tree and add an interface to provide the information to other drivers. The memory syncpoint shim is a special area on the data backbone, where each memory page corresponds to a host1x syncpoint. Reading the page returns the value of the syncpoint, and writing to it increments the syncpoint by one. Jira HOSTX-5722 Bug 4919132 Change-Id: Ie892abd754f7543fbc56844dcc40cab3f837e305 Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3252025 GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Santosh BS <santoshb@nvidia.com>
This commit is contained in:
committed by
Jon Hunter
parent
62c37911c9
commit
af2a177038
@@ -257,6 +257,9 @@ u32 host1x_syncpt_base_id(struct host1x_syncpt_base *base);
|
||||
void host1x_syncpt_release_vblank_reservation(struct host1x_client *client,
|
||||
u32 syncpt_id);
|
||||
|
||||
int host1x_syncpt_get_shim_info(struct host1x *host, phys_addr_t *base, u32 *stride,
|
||||
u32 *num_syncpts);
|
||||
|
||||
struct dma_fence *host1x_fence_create(struct host1x_syncpt *sp, u32 threshold,
|
||||
bool timeout);
|
||||
int host1x_fence_extract(struct dma_fence *fence, u32 *id, u32 *threshold);
|
||||
|
||||
Reference in New Issue
Block a user