summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
index 9b0d9456..c7552f04 100644
--- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
@@ -445,7 +445,7 @@ int dbg_unbind_single_channel_gk20a(struct dbg_session_gk20a *dbg_s,
445 nvgpu_list_for_each_entry_safe(prof_obj, tmp_obj, &g->profiler_objects, 445 nvgpu_list_for_each_entry_safe(prof_obj, tmp_obj, &g->profiler_objects,
446 dbg_profiler_object_data, prof_obj_entry) { 446 dbg_profiler_object_data, prof_obj_entry) {
447 if ((prof_obj->session_id == dbg_s->id) && 447 if ((prof_obj->session_id == dbg_s->id) &&
448 (prof_obj->ch->hw_chid == chid)) { 448 (prof_obj->ch->chid == chid)) {
449 if (prof_obj->has_reservation) { 449 if (prof_obj->has_reservation) {
450 g->ops.dbg_session_ops. 450 g->ops.dbg_session_ops.
451 release_profiler_reservation(dbg_s, prof_obj); 451 release_profiler_reservation(dbg_s, prof_obj);
@@ -504,7 +504,7 @@ static int dbg_unbind_channel_gk20a(struct dbg_session_gk20a *dbg_s,
504 nvgpu_mutex_acquire(&dbg_s->ch_list_lock); 504 nvgpu_mutex_acquire(&dbg_s->ch_list_lock);
505 nvgpu_list_for_each_entry(ch_data, &dbg_s->ch_list, 505 nvgpu_list_for_each_entry(ch_data, &dbg_s->ch_list,
506 dbg_session_channel_data, ch_entry) { 506 dbg_session_channel_data, ch_entry) {
507 if (ch->hw_chid == ch_data->chid) { 507 if (ch->chid == ch_data->chid) {
508 channel_found = true; 508 channel_found = true;
509 break; 509 break;
510 } 510 }
@@ -601,7 +601,7 @@ static int dbg_bind_channel_gk20a(struct dbg_session_gk20a *dbg_s,
601 return -EINVAL; 601 return -EINVAL;
602 } 602 }
603 603
604 gk20a_dbg_fn("%s hwchid=%d", g->name, ch->hw_chid); 604 gk20a_dbg_fn("%s hwchid=%d", g->name, ch->chid);
605 605
606 nvgpu_mutex_acquire(&g->dbg_sessions_lock); 606 nvgpu_mutex_acquire(&g->dbg_sessions_lock);
607 nvgpu_mutex_acquire(&ch->dbg_s_lock); 607 nvgpu_mutex_acquire(&ch->dbg_s_lock);
@@ -613,7 +613,7 @@ static int dbg_bind_channel_gk20a(struct dbg_session_gk20a *dbg_s,
613 } 613 }
614 ch_data->ch_f = f; 614 ch_data->ch_f = f;
615 ch_data->channel_fd = args->channel_fd; 615 ch_data->channel_fd = args->channel_fd;
616 ch_data->chid = ch->hw_chid; 616 ch_data->chid = ch->chid;
617 nvgpu_init_list_node(&ch_data->ch_entry); 617 nvgpu_init_list_node(&ch_data->ch_entry);
618 618
619 session_data = nvgpu_kzalloc(g, sizeof(*session_data)); 619 session_data = nvgpu_kzalloc(g, sizeof(*session_data));