mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: return current GR instance pointers
Update below APIs to return current GR instance specific pointers instead of 0th instance specific pointers nvgpu_gr_get_falcon_ptr() nvgpu_gr_get_config_ptr() nvgpu_gr_get_intr_ptr() Jira NVGPU-5648 Change-Id: Id9608fb40a1f23ec3466cb205002c10b40d08876 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2409534 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> 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: Antony Clince Alex <aalex@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
3b746dce0c
commit
8d2cb311cb
@@ -35,17 +35,17 @@ u32 nvgpu_gr_checksum_u32(u32 a, u32 b)
|
||||
|
||||
struct nvgpu_gr_falcon *nvgpu_gr_get_falcon_ptr(struct gk20a *g)
|
||||
{
|
||||
return g->gr->falcon;
|
||||
return g->gr[g->mig.cur_gr_instance].falcon;
|
||||
}
|
||||
|
||||
struct nvgpu_gr_config *nvgpu_gr_get_config_ptr(struct gk20a *g)
|
||||
{
|
||||
return g->gr->config;
|
||||
return g->gr[g->mig.cur_gr_instance].config;
|
||||
}
|
||||
|
||||
struct nvgpu_gr_intr *nvgpu_gr_get_intr_ptr(struct gk20a *g)
|
||||
{
|
||||
return g->gr->intr;
|
||||
return g->gr[g->mig.cur_gr_instance].intr;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NVGPU_NON_FUSA
|
||||
|
||||
Reference in New Issue
Block a user