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:
Mikko Perttunen
2024-11-19 07:05:02 +00:00
committed by Jon Hunter
parent 62c37911c9
commit af2a177038
4 changed files with 69 additions and 0 deletions

View File

@@ -169,6 +169,10 @@ struct host1x {
struct host1x_syncpt_pool *pools;
unsigned int num_pools;
/* Syncpoint shim */
phys_addr_t shim_base;
u32 shim_stride;
struct iommu_group *group;
struct iommu_domain *domain;
struct iova_domain iova;