mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: added new argument to nvhost function
* Added struct gk20a as input argument, which help in chip detection nvgpu_nvhost_syncpt_unit_interface_get_byte_offset Jira NVGPU-6068 Change-Id: I76f342b1c9f51632f72bc00f0328c7cac5991956 Signed-off-by: Sagar Kadamati <skadamati@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2410872 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Dinesh T <dt@nvidia.com> Reviewed-by: Ankur Kishore <ankkishore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Alex Waterman
parent
e0dd79cd43
commit
19e9b38385
@@ -224,7 +224,8 @@ int nvgpu_nvhost_get_syncpt_aperture(
|
||||
nvhost_dev->host1x_pdev, (phys_addr_t *)base, size);
|
||||
}
|
||||
|
||||
u32 nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(u32 syncpt_id)
|
||||
u32 nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(struct gk20a *g,
|
||||
u32 syncpt_id)
|
||||
{
|
||||
return nvhost_syncpt_unit_interface_get_byte_offset(syncpt_id);
|
||||
}
|
||||
@@ -293,7 +294,7 @@ int nvgpu_nvhost_syncpt_init(struct gk20a *g)
|
||||
}
|
||||
|
||||
g->syncpt_size =
|
||||
nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(1);
|
||||
nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(g, 1);
|
||||
nvgpu_info(g, "syncpt_unit_base %llx syncpt_unit_size %zx size %x\n",
|
||||
g->syncpt_unit_base, g->syncpt_unit_size,
|
||||
g->syncpt_size);
|
||||
|
||||
Reference in New Issue
Block a user