From b394e81a9e79532a24a33d455417fe6684e29afd Mon Sep 17 00:00:00 2001 From: Sanif Veeras Date: Fri, 2 Dec 2022 11:39:53 +0530 Subject: [PATCH] video:tegra:host: add gpu specific syncpt pool - Support allocation from the GPU specific syncpoint pool after reading from the Device Tree - Expose an interface for the NvGPU driver to allocate the syncpoint from the GPU pool Jira HOSTX-4515 Change-Id: Ie5cc9ec22c039b958b0c0a1750f959ebbf6c6bee Signed-off-by: Sanif Veeras Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2820453 Reviewed-by: svc-mobile-coverity Reviewed-by: svc_kernel_abi Reviewed-by: Arto Merilainen Reviewed-by: Raghavendra Vishnu Kumar GVS: Gerrit_Virtual_Submit --- drivers/gpu/host1x-nvhost/nvhost.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/host1x-nvhost/nvhost.c b/drivers/gpu/host1x-nvhost/nvhost.c index 32209630..477d3a4f 100644 --- a/drivers/gpu/host1x-nvhost/nvhost.c +++ b/drivers/gpu/host1x-nvhost/nvhost.c @@ -251,6 +251,13 @@ u32 nvhost_get_syncpt_client_managed(struct platform_device *pdev, } EXPORT_SYMBOL_GPL(nvhost_get_syncpt_client_managed); +u32 nvhost_get_syncpt_gpu_managed(struct platform_device *pdev, + const char *syncpt_name) +{ + return nvhost_get_syncpt_client_managed(pdev, syncpt_name); +} +EXPORT_SYMBOL_GPL(nvhost_get_syncpt_gpu_managed); + void nvhost_syncpt_put_ref_ext(struct platform_device *pdev, u32 id) { struct nvhost_device_data *pdata = platform_get_drvdata(pdev);