mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Remove hard-coded GPU name strings
Removed hard-coded GPU name strings. Instead retrieved GPU name via device name access interfaces. Change-Id: Iefb41cc610e92e870d4664951c3599df2bb83020 Signed-off-by: Alex Frid <afrid@nvidia.com> Reviewed-on: http://git-master/r/682671 GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
This commit is contained in:
@@ -1129,7 +1129,7 @@ static int gm20b_init_clk_setup_sw(struct gk20a *g)
|
||||
clk->sw_ready = true;
|
||||
|
||||
gk20a_dbg_fn("done");
|
||||
pr_info("gm20b gpu.0 GPCPLL initial settings:%s M=%u, N=%u, P=%u\n",
|
||||
dev_info(dev_from_gk20a(g), "GPCPLL initial settings:%s M=%u, N=%u, P=%u",
|
||||
clk->gpc_pll.mode == GPC_PLL_MODE_DVFS ? " NA mode," : "",
|
||||
clk->gpc_pll.M, clk->gpc_pll.N, clk->gpc_pll.PL);
|
||||
return 0;
|
||||
@@ -1419,7 +1419,8 @@ static int pll_reg_show(struct seq_file *s, void *data)
|
||||
|
||||
mutex_lock(&g->clk.clk_mutex);
|
||||
if (!g->clk.clk_hw_on) {
|
||||
seq_printf(s, "gk20a powered down - no access to registers\n");
|
||||
seq_printf(s, "%s powered down - no access to registers\n",
|
||||
dev_name(dev_from_gk20a(g)));
|
||||
mutex_unlock(&g->clk.clk_mutex);
|
||||
return 0;
|
||||
}
|
||||
@@ -1465,7 +1466,8 @@ static int pll_reg_raw_show(struct seq_file *s, void *data)
|
||||
|
||||
mutex_lock(&g->clk.clk_mutex);
|
||||
if (!g->clk.clk_hw_on) {
|
||||
seq_puts(s, "gk20a powered down - no access to registers\n");
|
||||
seq_printf(s, "%s powered down - no access to registers\n",
|
||||
dev_name(dev_from_gk20a(g)));
|
||||
mutex_unlock(&g->clk.clk_mutex);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user