mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Add debugging to the semaphore code
Add GPU debugging to the semaphore code. Bug 1732449 JIRA DNVGPU-12 Change-Id: I98466570cf8d234b49a7f85d88c834648ddaaaee Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1198594 (cherry picked from commit 420809cc31fcdddde32b8e59721676c67b45f592) Reviewed-on: http://git-master/r/1153671 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
0e69c6707b
commit
9eac0fd849
@@ -428,9 +428,12 @@ static void add_sema_cmd(struct gk20a *g, struct channel_gk20a *c,
|
||||
struct gk20a_semaphore *s, struct priv_cmd_entry *cmd,
|
||||
int cmd_size, bool acquire, bool wfi)
|
||||
{
|
||||
u32 off = cmd->off;
|
||||
int ch = c->hw_chid;
|
||||
u32 ob, off = cmd->off;
|
||||
u64 va;
|
||||
|
||||
ob = off;
|
||||
|
||||
/*
|
||||
* RO for acquire (since we just need to read the mem) and RW for
|
||||
* release since we will need to write back to the semaphore memory.
|
||||
@@ -480,6 +483,19 @@ static void add_sema_cmd(struct gk20a *g, struct channel_gk20a *c,
|
||||
/* ignored */
|
||||
gk20a_mem_wr32(g, cmd->mem, off++, 0);
|
||||
}
|
||||
|
||||
if (acquire)
|
||||
gpu_sema_verbose_dbg("(A) c=%d ACQ_GE %-4u owner=%-3d"
|
||||
"va=0x%llx cmd_mem=0x%llx b=0x%llx off=%u",
|
||||
ch, gk20a_semaphore_get_value(s),
|
||||
s->hw_sema->ch->hw_chid, va, cmd->gva,
|
||||
cmd->mem->gpu_va, ob);
|
||||
else
|
||||
gpu_sema_verbose_dbg("(R) c=%d INCR %u (%u) va=0x%llx "
|
||||
"cmd_mem=0x%llx b=0x%llx off=%u",
|
||||
ch, gk20a_semaphore_get_value(s),
|
||||
readl(s->hw_sema->value), va, cmd->gva,
|
||||
cmd->mem->gpu_va, ob);
|
||||
}
|
||||
|
||||
static int gk20a_channel_semaphore_wait_syncpt(
|
||||
|
||||
Reference in New Issue
Block a user