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/vgpu/dbg_vgpu.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/vgpu/dbg_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/dbg_vgpu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/dbg_vgpu.c b/drivers/gpu/nvgpu/vgpu/dbg_vgpu.c index 092954ed..2bb3b205 100644 --- a/drivers/gpu/nvgpu/vgpu/dbg_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/dbg_vgpu.c | |||
@@ -42,8 +42,9 @@ int vgpu_exec_regops(struct dbg_session_gk20a *dbg_s, | |||
42 | size_t oob_size, ops_size; | 42 | size_t oob_size, ops_size; |
43 | void *handle = NULL; | 43 | void *handle = NULL; |
44 | int err = 0; | 44 | int err = 0; |
45 | struct gk20a *g = dbg_s->g; | ||
45 | 46 | ||
46 | gk20a_dbg_fn(""); | 47 | nvgpu_log_fn(g, " "); |
47 | BUG_ON(sizeof(*ops) != sizeof(struct tegra_vgpu_reg_op)); | 48 | BUG_ON(sizeof(*ops) != sizeof(struct tegra_vgpu_reg_op)); |
48 | 49 | ||
49 | handle = vgpu_ivc_oob_get_ptr(vgpu_ivc_get_server_vmid(), | 50 | handle = vgpu_ivc_oob_get_ptr(vgpu_ivc_get_server_vmid(), |
@@ -82,8 +83,9 @@ int vgpu_dbg_set_powergate(struct dbg_session_gk20a *dbg_s, bool disable_powerga | |||
82 | struct tegra_vgpu_set_powergate_params *p = &msg.params.set_powergate; | 83 | struct tegra_vgpu_set_powergate_params *p = &msg.params.set_powergate; |
83 | int err = 0; | 84 | int err = 0; |
84 | u32 mode; | 85 | u32 mode; |
86 | struct gk20a *g = dbg_s->g; | ||
85 | 87 | ||
86 | gk20a_dbg_fn(""); | 88 | nvgpu_log_fn(g, " "); |
87 | 89 | ||
88 | /* Just return if requested mode is the same as the session's mode */ | 90 | /* Just return if requested mode is the same as the session's mode */ |
89 | if (disable_powergate) { | 91 | if (disable_powergate) { |