diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2018-02-01 07:41:41 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-26 08:19:10 -0500 |
commit | d98232ab21df04605cfc453528d12aab8af25b49 (patch) | |
tree | af2ad8a9fc82838f9adb82deff1e77f5580b6d6a /drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |
parent | 0c46f8a5e112c08c172ee2c692832e1753ffbcce (diff) |
gpu: nvgpu: use nvgpu_info in refcount tracking
Use the nvgpu_info log facility instead of Linux-specific dev_info in
gk20a_channel_dump_ref_actions. Also fix format types.
dev_info isn't defined anymore in this file and our version is preferred
anyway. Refcount tracking isn't compiled in by default, so this has went
unnoticed.
Jira NVGPU-22
Change-Id: If93b98c9a54d3b0deaf344a355594cb73712399c
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1663032
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index 07863ac7..2f5ea301 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -518,11 +518,11 @@ static void gk20a_channel_dump_ref_actions(struct channel_gk20a *ch) | |||
518 | size_t i, get; | 518 | size_t i, get; |
519 | s64 now = nvgpu_current_time_ms(); | 519 | s64 now = nvgpu_current_time_ms(); |
520 | s64 prev = 0; | 520 | s64 prev = 0; |
521 | struct device *dev = dev_from_gk20a(ch->g); | 521 | struct gk20a *g = ch->g; |
522 | 522 | ||
523 | nvgpu_spinlock_acquire(&ch->ref_actions_lock); | 523 | nvgpu_spinlock_acquire(&ch->ref_actions_lock); |
524 | 524 | ||
525 | dev_info(dev, "ch %d: refs %d. Actions, most recent last:\n", | 525 | nvgpu_info(g, "ch %d: refs %d. Actions, most recent last:", |
526 | ch->chid, nvgpu_atomic_read(&ch->ref_count)); | 526 | ch->chid, nvgpu_atomic_read(&ch->ref_count)); |
527 | 527 | ||
528 | /* start at the oldest possible entry. put is next insertion point */ | 528 | /* start at the oldest possible entry. put is next insertion point */ |
@@ -536,7 +536,8 @@ static void gk20a_channel_dump_ref_actions(struct channel_gk20a *ch) | |||
536 | struct channel_gk20a_ref_action *act = &ch->ref_actions[get]; | 536 | struct channel_gk20a_ref_action *act = &ch->ref_actions[get]; |
537 | 537 | ||
538 | if (act->trace.nr_entries) { | 538 | if (act->trace.nr_entries) { |
539 | dev_info(dev, "%s ref %zu steps ago (age %d ms, diff %d ms)\n", | 539 | nvgpu_info(g, |
540 | "%s ref %zu steps ago (age %lld ms, diff %lld ms)", | ||
540 | act->type == channel_gk20a_ref_action_get | 541 | act->type == channel_gk20a_ref_action_get |
541 | ? "GET" : "PUT", | 542 | ? "GET" : "PUT", |
542 | GK20A_CHANNEL_REFCOUNT_TRACKING - 1 - i, | 543 | GK20A_CHANNEL_REFCOUNT_TRACKING - 1 - i, |