mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
common.gr defined a temporary macro NVGPU_GR_NUM_INSTANCES to enable or disable multiple GR instances from common.gr unit. Multiple GR instance boot is now verified, so we can remove this temporary solution. Note that nvgpu_grmgr_get_num_gr_instances() will return more than 1 instance only if NVGPU_SUPPORT_MIG is enabled. Update unit tests to set number of syspipes to 1 to allow enumeration of GR instance by grmgr. Jira NVGPU-5648 Change-Id: I795901ae516843ae7b6c1794dae0f023a213ab1d Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2418377 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: Lakshmanan M <lm@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>