summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
index 1b650cdd..c9c03d37 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
@@ -331,10 +331,10 @@ gk20a_channel_syncpt_create(struct channel_gk20a *c)
331 sp->nvhost_dev = c->g->nvhost_dev; 331 sp->nvhost_dev = c->g->nvhost_dev;
332 332
333 snprintf(syncpt_name, sizeof(syncpt_name), 333 snprintf(syncpt_name, sizeof(syncpt_name),
334 "%s_%d", c->g->name, c->hw_chid); 334 "%s_%d", c->g->name, c->chid);
335 335
336 sp->id = nvgpu_nvhost_get_syncpt_host_managed(sp->nvhost_dev, 336 sp->id = nvgpu_nvhost_get_syncpt_host_managed(sp->nvhost_dev,
337 c->hw_chid, syncpt_name); 337 c->chid, syncpt_name);
338 if (!sp->id) { 338 if (!sp->id) {
339 nvgpu_kfree(c->g, sp); 339 nvgpu_kfree(c->g, sp);
340 nvgpu_err(c->g, "failed to get free syncpt"); 340 nvgpu_err(c->g, "failed to get free syncpt");
@@ -497,7 +497,7 @@ static void add_sema_cmd(struct gk20a *g, struct channel_gk20a *c,
497 struct nvgpu_semaphore *s, struct priv_cmd_entry *cmd, 497 struct nvgpu_semaphore *s, struct priv_cmd_entry *cmd,
498 int cmd_size, bool acquire, bool wfi) 498 int cmd_size, bool acquire, bool wfi)
499{ 499{
500 int ch = c->hw_chid; 500 int ch = c->chid;
501 u32 ob, off = cmd->off; 501 u32 ob, off = cmd->off;
502 u64 va; 502 u64 va;
503 503
@@ -557,7 +557,7 @@ static void add_sema_cmd(struct gk20a *g, struct channel_gk20a *c,
557 gpu_sema_verbose_dbg(g, "(A) c=%d ACQ_GE %-4u owner=%-3d" 557 gpu_sema_verbose_dbg(g, "(A) c=%d ACQ_GE %-4u owner=%-3d"
558 "va=0x%llx cmd_mem=0x%llx b=0x%llx off=%u", 558 "va=0x%llx cmd_mem=0x%llx b=0x%llx off=%u",
559 ch, nvgpu_semaphore_get_value(s), 559 ch, nvgpu_semaphore_get_value(s),
560 s->hw_sema->ch->hw_chid, va, cmd->gva, 560 s->hw_sema->ch->chid, va, cmd->gva,
561 cmd->mem->gpu_va, ob); 561 cmd->mem->gpu_va, ob);
562 else 562 else
563 gpu_sema_verbose_dbg(g, "(R) c=%d INCR %u (%u) va=0x%llx " 563 gpu_sema_verbose_dbg(g, "(R) c=%d INCR %u (%u) va=0x%llx "
@@ -911,12 +911,12 @@ gk20a_channel_semaphore_create(struct channel_gk20a *c)
911 if (c->vm->as_share) 911 if (c->vm->as_share)
912 asid = c->vm->as_share->id; 912 asid = c->vm->as_share->id;
913 913
914 sprintf(pool_name, "semaphore_pool-%d", c->hw_chid); 914 sprintf(pool_name, "semaphore_pool-%d", c->chid);
915 sema->pool = c->vm->sema_pool; 915 sema->pool = c->vm->sema_pool;
916 916
917#ifdef CONFIG_SYNC 917#ifdef CONFIG_SYNC
918 sema->timeline = gk20a_sync_timeline_create( 918 sema->timeline = gk20a_sync_timeline_create(
919 "gk20a_ch%d_as%d", c->hw_chid, asid); 919 "gk20a_ch%d_as%d", c->chid, asid);
920 if (!sema->timeline) { 920 if (!sema->timeline) {
921 gk20a_channel_semaphore_destroy(&sema->ops); 921 gk20a_channel_semaphore_destroy(&sema->ops);
922 return NULL; 922 return NULL;