mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: ga10b: Enable clock arb support
Enable clock arbitration support for silicon. Bug 200764879 Change-Id: I40d47f7f15197a8dd55ca0866e177fd42b8c4e9d Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2579556 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Seema Khowala <seemaj@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
mobile promotions
parent
d8e847c90d
commit
8ed1487860
@@ -1870,17 +1870,22 @@ int ga10b_init_hal(struct gk20a *g)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NVGPU_CLK_ARB
|
||||
/* Enable clock arbitration support for silicon */
|
||||
if (nvgpu_platform_is_silicon(g)) {
|
||||
nvgpu_set_enabled(g, NVGPU_CLK_ARB_ENABLED, true);
|
||||
} else {
|
||||
nvgpu_set_enabled(g, NVGPU_CLK_ARB_ENABLED, false);
|
||||
gops->clk_arb.get_arbiter_clk_domains = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NVGPU_SIM
|
||||
/* SIM specific overrides for ga10b */
|
||||
nvgpu_init_sim_support_ga10b(g);
|
||||
if (nvgpu_is_enabled(g, NVGPU_IS_FMODEL)){
|
||||
/* Disable fb mem_unlock */
|
||||
gops->fb.mem_unlock = NULL;
|
||||
|
||||
/* Disable clock support */
|
||||
#ifdef CONFIG_NVGPU_CLK_ARB
|
||||
gops->clk_arb.get_arbiter_clk_domains = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user