mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: vgpu: set flag NVGPU_CLK_ARB_ENABLED
NVGPU_CLK_ARB_ENABLED was not set correctly. The flag will only be set when the guest has clock control. Jira GVSCI-4658 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Change-Id: I3046be53e6d58cb2e8c6130cdbb89fad2d8e6d13 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2576941 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Sagar Kamble <skamble@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Aparna Das <aparnad@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
913a2d519f
commit
d7a8ef3285
@@ -1158,6 +1158,9 @@ int vgpu_ga10b_init_hal(struct gk20a *g)
|
||||
|
||||
if (!priv->constants.can_set_clkrate) {
|
||||
gops->clk_arb.get_arbiter_clk_domains = NULL;
|
||||
nvgpu_set_enabled(g, NVGPU_CLK_ARB_ENABLED, false);
|
||||
} else {
|
||||
nvgpu_set_enabled(g, NVGPU_CLK_ARB_ENABLED, true);
|
||||
}
|
||||
|
||||
if (nvgpu_is_enabled(g, NVGPU_IS_FMODEL)){
|
||||
|
||||
@@ -1135,6 +1135,8 @@ int vgpu_gv11b_init_hal(struct gk20a *g)
|
||||
if (!priv->constants.can_set_clkrate) {
|
||||
gops->clk_arb.get_arbiter_clk_domains = NULL;
|
||||
nvgpu_set_enabled(g, NVGPU_CLK_ARB_ENABLED, false);
|
||||
} else {
|
||||
nvgpu_set_enabled(g, NVGPU_CLK_ARB_ENABLED, true);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NVGPU_SM_DIVERSITY
|
||||
@@ -1179,7 +1181,6 @@ int vgpu_gv11b_init_hal(struct gk20a *g)
|
||||
#ifdef CONFIG_NVGPU_RECOVERY
|
||||
nvgpu_set_enabled(g, NVGPU_SUPPORT_FAULT_RECOVERY, true);
|
||||
#endif
|
||||
nvgpu_set_enabled(g, NVGPU_CLK_ARB_ENABLED, true);
|
||||
|
||||
g->name = "gv11b";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user