diff options
Diffstat (limited to 'drivers/gpu')
-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, |