mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Add load_timestamp_prod in grmgr init
1) Moved load_timestamp_prod handling in nvgpu_init_gr_manager(). 2) Moved fifo.reset_enable_hw in nvgpu_early_init() - In simulation/emulation/GPU standalone platform, XBAR, L2 and HUB are enabled during g->ops.fifo.reset_enable_hw(). This introduces a dependency to get the MIG map conf information. (if nvgpu_is_bpmp_running() == false treated as simulation/emulation/GPU standalone platform). Bug 3307879 JIRA NVGPU-6633 Change-Id: I4cba3a527de4723a6500f9658ec1dcadc23b37e3 Signed-off-by: Lakshmanan M <lm@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2528174 Tested-by: Antony Clince Alex <aalex@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@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: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Antony Clince Alex <aalex@nvidia.com> Reviewed-by: Dinesh T <dt@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
5de20ab81b
commit
d956938d3f
@@ -38,6 +38,12 @@ int nvgpu_init_gr_manager(struct gk20a *g)
|
||||
u32 local_gpc_mask;
|
||||
u32 ffs_bit = 0U;
|
||||
|
||||
#ifdef CONFIG_NVGPU_NEXT
|
||||
if (g->ops.grmgr.load_timestamp_prod != NULL) {
|
||||
g->ops.grmgr.load_timestamp_prod(g);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Number of gpu instance is 1 for legacy mode */
|
||||
g->mig.gpc_count = g->ops.priv_ring.get_gpc_count(g);
|
||||
nvgpu_assert(g->mig.gpc_count > 0U);
|
||||
|
||||
Reference in New Issue
Block a user