mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: vgpu: set get_arbiter_clk_domains null if not can_set_clkrate
If guest does not support set clock rate, get_arbiter_clk_domains needs to be null to disable clk arbiter at ioctl level. Also explicitly set clk.support_clk_freq_controller to false. Jira GVSCI-277 Bug 200488368 Change-Id: I7b00e88510ea31a9bdc1bb2138b45f7e369d81dd Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2006753 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: Nirav Patel <nipatel@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
16735840ee
commit
27ff49fab0
@@ -700,6 +700,9 @@ int vgpu_gp10b_init_hal(struct gk20a *g)
|
||||
|
||||
if (priv->constants.can_set_clkrate) {
|
||||
gops->clk.support_clk_freq_controller = true;
|
||||
} else {
|
||||
gops->clk.support_clk_freq_controller = false;
|
||||
gops->clk_arb.get_arbiter_clk_domains = NULL;
|
||||
}
|
||||
|
||||
g->name = "gp10b";
|
||||
|
||||
@@ -771,6 +771,9 @@ int vgpu_gv11b_init_hal(struct gk20a *g)
|
||||
|
||||
if (priv->constants.can_set_clkrate) {
|
||||
gops->clk.support_clk_freq_controller = true;
|
||||
} else {
|
||||
gops->clk.support_clk_freq_controller = false;
|
||||
gops->clk_arb.get_arbiter_clk_domains = NULL;
|
||||
}
|
||||
|
||||
g->name = "gv11b";
|
||||
|
||||
Reference in New Issue
Block a user