gpu: host1x-emu: Add host1x_syncpt_get_shim_info

Implement host1x_syncpt_get_shim_info function for
host1x-emu driver and add it to the dynamic dispatch
mechanism in host1x-fence.

This function provides clients with the physical address
of syncpoint aperture, stride and number of
syncpoints, which is needed by various client drivers
like ISP, VI, PVA, GPU etc

Jira HOSTX-5971

Change-Id: I50e60222a035228c981dfa993cb0088e1d15dad2
Signed-off-by: Mainak Sen <msen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3323327
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Raghavendra Vishnu Kumar <rvk@nvidia.com>
Reviewed-by: Amitabh Dutta <amitabhd@nvidia.com>
This commit is contained in:
Mainak Sen
2025-03-20 13:54:06 +00:00
committed by Jon Hunter
parent 4a4300f0e8
commit 261488ef83
7 changed files with 55 additions and 2 deletions

View File

@@ -78,6 +78,11 @@ int wrap_host1x_syncpt_wait_ts(struct host1x_syncpt *sp,
int wrap_host1x_syncpt_wait(struct host1x_syncpt *sp,
u32 thresh, long timeout, u32 *value);
int wrap_host1x_syncpt_get_shim_info(struct host1x *host,
phys_addr_t *base,
u32 *stride,
u32 *num_syncpts);
int wrap_host1x_fence_get_node(struct dma_fence *fence);
//nvhost.h