diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-04-18 22:39:46 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-09 21:26:04 -0400 |
commit | dd739fcb039d51606e9a5454ec0aab17bcb01965 (patch) | |
tree | 806ba8575d146367ad1be00086ca0cdae35a6b28 /drivers/gpu/nvgpu/gp106/mclk_gp106.c | |
parent | 7e66f2a63d4855e763fa768047dfc32f6f96b771 (diff) |
gpu: nvgpu: Remove gk20a_dbg* functions
Switch all logging to nvgpu_log*(). gk20a_dbg* macros are
intentionally left there because of use from other repositories.
Because the new functions do not work without a pointer to struct
gk20a, and piping it just for logging is excessive, some log messages
are deleted.
Change-Id: I00e22e75fe4596a330bb0282ab4774b3639ee31e
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1704148
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/mclk_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/mclk_gp106.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gp106/mclk_gp106.c b/drivers/gpu/nvgpu/gp106/mclk_gp106.c index 44f0b1d9..bfb66e6e 100644 --- a/drivers/gpu/nvgpu/gp106/mclk_gp106.c +++ b/drivers/gpu/nvgpu/gp106/mclk_gp106.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -2998,7 +2998,7 @@ static void mclk_seq_pmucmdhandler(struct gk20a *g, struct pmu_msg *_msg, | |||
2998 | struct nv_pmu_seq_msg_run_script *seq_msg; | 2998 | struct nv_pmu_seq_msg_run_script *seq_msg; |
2999 | u32 msg_status = 0; | 2999 | u32 msg_status = 0; |
3000 | 3000 | ||
3001 | gk20a_dbg_info(""); | 3001 | nvgpu_log_info(g, " "); |
3002 | 3002 | ||
3003 | if (status != 0) { | 3003 | if (status != 0) { |
3004 | nvgpu_err(g, "mclk seq_script cmd aborted"); | 3004 | nvgpu_err(g, "mclk seq_script cmd aborted"); |
@@ -3041,7 +3041,7 @@ static int mclk_get_memclk_table(struct gk20a *g) | |||
3041 | u8 *mem_entry_ptr = NULL; | 3041 | u8 *mem_entry_ptr = NULL; |
3042 | int index; | 3042 | int index; |
3043 | 3043 | ||
3044 | gk20a_dbg_info(""); | 3044 | nvgpu_log_info(g, " "); |
3045 | 3045 | ||
3046 | mem_table_ptr = (u8 *)nvgpu_bios_get_perf_table_ptrs(g, | 3046 | mem_table_ptr = (u8 *)nvgpu_bios_get_perf_table_ptrs(g, |
3047 | g->bios.perf_token, | 3047 | g->bios.perf_token, |
@@ -3213,7 +3213,7 @@ int gp106_mclk_init(struct gk20a *g) | |||
3213 | u32 index; | 3213 | u32 index; |
3214 | struct memory_config *m; | 3214 | struct memory_config *m; |
3215 | 3215 | ||
3216 | gk20a_dbg_fn(""); | 3216 | nvgpu_log_fn(g, " "); |
3217 | 3217 | ||
3218 | mclk = &g->clk_pmu.clk_mclk; | 3218 | mclk = &g->clk_pmu.clk_mclk; |
3219 | 3219 | ||
@@ -3316,7 +3316,7 @@ int gp106_mclk_change(struct gk20a *g, u16 val) | |||
3316 | #endif | 3316 | #endif |
3317 | u32 speed; | 3317 | u32 speed; |
3318 | 3318 | ||
3319 | gk20a_dbg_info(""); | 3319 | nvgpu_log_info(g, " "); |
3320 | 3320 | ||
3321 | memset(&payload, 0, sizeof(struct pmu_payload)); | 3321 | memset(&payload, 0, sizeof(struct pmu_payload)); |
3322 | 3322 | ||
@@ -3508,7 +3508,7 @@ static int mclk_debugfs_init(struct gk20a *g) | |||
3508 | struct dentry *gpu_root = l->debugfs; | 3508 | struct dentry *gpu_root = l->debugfs; |
3509 | struct dentry *d; | 3509 | struct dentry *d; |
3510 | 3510 | ||
3511 | gk20a_dbg(gpu_dbg_info, "g=%p", g); | 3511 | nvgpu_log(g, gpu_dbg_info, "g=%p", g); |
3512 | 3512 | ||
3513 | d = debugfs_create_file( | 3513 | d = debugfs_create_file( |
3514 | "mclk_speed_set", | 3514 | "mclk_speed_set", |