diff options
author | Alex Waterman <alexw@nvidia.com> | 2016-06-09 20:06:04 -0400 |
---|---|---|
committer | Alex Waterman <alexw@nvidia.com> | 2016-07-08 13:11:35 -0400 |
commit | 3f8caca9e8a5d9b9ebc1fa1e16fefdb20f2e25f9 (patch) | |
tree | ead56002f3776276d769e70949467ae0ac7f70cd | |
parent | d33fb5a9645ef95a97fcf6b3f8f10d9a812ade6d (diff) |
gpu: nvgpu: Make the sync_pt_value_str more informative
Add semamphore specific information to the sync_pt_value str when
the underlying primitive for the sync_pt is a semamphore. This is
useful for debugging purposes.
Bug 1732449
JIRA DNVGPU-12
Change-Id: I0dd7d921e39e3245ed1778aad77e20297b55df61
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1162689
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/sync_gk20a.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c index d823ef9c..de30eed4 100644 --- a/drivers/gpu/nvgpu/gk20a/sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/sync_gk20a.c | |||
@@ -433,7 +433,12 @@ static void gk20a_sync_timeline_value_str(struct sync_timeline *timeline, | |||
433 | static void gk20a_sync_pt_value_str_for_sema(struct gk20a_sync_pt *pt, | 433 | static void gk20a_sync_pt_value_str_for_sema(struct gk20a_sync_pt *pt, |
434 | char *str, int size) | 434 | char *str, int size) |
435 | { | 435 | { |
436 | snprintf(str, size, "gk20a-sema"); | 436 | struct gk20a_semaphore *s = pt->sema; |
437 | |||
438 | snprintf(str, size, "S: c=%d [v=%u,r_v=%u]", | ||
439 | s->hw_sema->ch->hw_chid, | ||
440 | gk20a_semaphore_get_value(s), | ||
441 | gk20a_semaphore_read(s)); | ||
437 | } | 442 | } |
438 | 443 | ||
439 | static void gk20a_sync_pt_value_str(struct sync_pt *sync_pt, char *str, | 444 | static void gk20a_sync_pt_value_str(struct sync_pt *sync_pt, char *str, |