From 2a9c4ce2cc702473ecc5eeceef0beef17ca8a689 Mon Sep 17 00:00:00 2001 From: Thomas Fleury Date: Tue, 26 Jun 2018 09:37:20 -0700 Subject: gpu: nvgpu: gp106: fix scaling for mclk Change mclk scaling factor from 2 to 4, as we use dramdiv4 to measure effective frequency. Bug 2212598 Change-Id: I154a74712dbedf315f755ee51f75a06795841a1c Reviewed-on: https://git-master.nvidia.com/r/1761896 (cherry picked from commit 35e26a5165ac08f783420343262e05e1d6d82996) Signed-off-by: Thomas Fleury Reviewed-on: https://git-master.nvidia.com/r/1762345 Reviewed-by: Richard Zhao Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gp106/clk_gp106.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/gp106/clk_gp106.c b/drivers/gpu/nvgpu/gp106/clk_gp106.c index 07e281a5..2c529e52 100644 --- a/drivers/gpu/nvgpu/gp106/clk_gp106.c +++ b/drivers/gpu/nvgpu/gp106/clk_gp106.c @@ -156,8 +156,8 @@ int gp106_init_clk_support(struct gk20a *g) .reg_ctrl_idx = trim_fbpa_bcast_clk_cntr_ncltcclk_cfg_source_dramdiv4_rec_clk1_f(), .reg_cntr_addr = trim_fbpa_bcast_clk_cntr_ncltcclk_cnt_r() }, - .name = "dramdiv2_rec_clk1", - .scale = 2 + .name = "dramdiv4_rec_clk1", + .scale = 4 }; clk->namemap_xlat_table[3] = CTRL_CLK_DOMAIN_MCLK; -- cgit v1.2.2