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.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
index fc5862e1..fbeb1e4a 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c
@@ -20,6 +20,7 @@
20 20
21#include <nvgpu/semaphore.h> 21#include <nvgpu/semaphore.h>
22#include <nvgpu/kmem.h> 22#include <nvgpu/kmem.h>
23#include <nvgpu/log.h>
23 24
24#include "channel_sync_gk20a.h" 25#include "channel_sync_gk20a.h"
25#include "gk20a.h" 26#include "gk20a.h"
@@ -65,8 +66,7 @@ static int gk20a_channel_syncpt_wait_syncpt(struct gk20a_channel_sync *s,
65 int err = 0; 66 int err = 0;
66 67
67 if (!nvhost_syncpt_is_valid_pt_ext(sp->host1x_pdev, id)) { 68 if (!nvhost_syncpt_is_valid_pt_ext(sp->host1x_pdev, id)) {
68 dev_warn(dev_from_gk20a(c->g), 69 nvgpu_warn(c->g, "invalid wait id in gpfifo submit, elided");
69 "invalid wait id in gpfifo submit, elided");
70 return 0; 70 return 0;
71 } 71 }
72 72
@@ -75,7 +75,7 @@ static int gk20a_channel_syncpt_wait_syncpt(struct gk20a_channel_sync *s,
75 75
76 err = gk20a_channel_alloc_priv_cmdbuf(c, 4, wait_cmd); 76 err = gk20a_channel_alloc_priv_cmdbuf(c, 4, wait_cmd);
77 if (err) { 77 if (err) {
78 gk20a_err(dev_from_gk20a(c->g), 78 nvgpu_err(c->g,
79 "not enough priv cmd buffer space"); 79 "not enough priv cmd buffer space");
80 return err; 80 return err;
81 } 81 }
@@ -131,7 +131,7 @@ static int gk20a_channel_syncpt_wait_fd(struct gk20a_channel_sync *s, int fd,
131 131
132 err = gk20a_channel_alloc_priv_cmdbuf(c, 4 * num_wait_cmds, wait_cmd); 132 err = gk20a_channel_alloc_priv_cmdbuf(c, 4 * num_wait_cmds, wait_cmd);
133 if (err) { 133 if (err) {
134 gk20a_err(dev_from_gk20a(c->g), 134 nvgpu_err(c->g,
135 "not enough priv cmd buffer space"); 135 "not enough priv cmd buffer space");
136 sync_fence_put(sync_fence); 136 sync_fence_put(sync_fence);
137 return err; 137 return err;
@@ -360,7 +360,7 @@ gk20a_channel_syncpt_create(struct channel_gk20a *c)
360 c->hw_chid, syncpt_name); 360 c->hw_chid, syncpt_name);
361 if (!sp->id) { 361 if (!sp->id) {
362 nvgpu_kfree(c->g, sp); 362 nvgpu_kfree(c->g, sp);
363 gk20a_err(c->g->dev, "failed to get free syncpt"); 363 nvgpu_err(c->g, "failed to get free syncpt");
364 return NULL; 364 return NULL;
365 } 365 }
366 366
@@ -501,7 +501,7 @@ static void gk20a_channel_semaphore_launcher(
501 fence, fence->name); 501 fence, fence->name);
502 err = sync_fence_wait(fence, -1); 502 err = sync_fence_wait(fence, -1);
503 if (err < 0) 503 if (err < 0)
504 dev_err(g->dev, "error waiting pre-fence: %d\n", err); 504 nvgpu_err(g, "error waiting pre-fence: %d\n", err);
505 505
506 gk20a_dbg_info( 506 gk20a_dbg_info(
507 "wait completed (%d) for fence %p '%s', triggering gpu work", 507 "wait completed (%d) for fence %p '%s', triggering gpu work",
@@ -594,8 +594,8 @@ static int gk20a_channel_semaphore_wait_syncpt(
594{ 594{
595 struct gk20a_channel_semaphore *sema = 595 struct gk20a_channel_semaphore *sema =
596 container_of(s, struct gk20a_channel_semaphore, ops); 596 container_of(s, struct gk20a_channel_semaphore, ops);
597 struct device *dev = dev_from_gk20a(sema->c->g); 597 struct gk20a *g = sema->c->g;
598 gk20a_err(dev, "trying to use syncpoint synchronization"); 598 nvgpu_err(g, "trying to use syncpoint synchronization");
599 return -ENODEV; 599 return -ENODEV;
600} 600}
601 601
@@ -707,7 +707,7 @@ static int gk20a_channel_semaphore_wait_fd(
707 707
708 err = gk20a_channel_alloc_priv_cmdbuf(c, 8, wait_cmd); 708 err = gk20a_channel_alloc_priv_cmdbuf(c, 8, wait_cmd);
709 if (err) { 709 if (err) {
710 gk20a_err(dev_from_gk20a(c->g), 710 nvgpu_err(c->g,
711 "not enough priv cmd buffer space"); 711 "not enough priv cmd buffer space");
712 goto clean_up_sync_fence; 712 goto clean_up_sync_fence;
713 } 713 }
@@ -724,7 +724,7 @@ static int gk20a_channel_semaphore_wait_fd(
724 w->ch = c; 724 w->ch = c;
725 w->sema = nvgpu_semaphore_alloc(c); 725 w->sema = nvgpu_semaphore_alloc(c);
726 if (!w->sema) { 726 if (!w->sema) {
727 gk20a_err(dev_from_gk20a(c->g), "ran out of semaphores"); 727 nvgpu_err(c->g, "ran out of semaphores");
728 err = -ENOMEM; 728 err = -ENOMEM;
729 goto clean_up_worker; 729 goto clean_up_worker;
730 } 730 }
@@ -779,7 +779,7 @@ clean_up_sync_fence:
779 sync_fence_put(sync_fence); 779 sync_fence_put(sync_fence);
780 return err; 780 return err;
781#else 781#else
782 gk20a_err(dev_from_gk20a(c->g), 782 nvgpu_err(c->g,
783 "trying to use sync fds with CONFIG_SYNC disabled"); 783 "trying to use sync fds with CONFIG_SYNC disabled");
784 return -ENODEV; 784 return -ENODEV;
785#endif 785#endif
@@ -801,7 +801,7 @@ static int __gk20a_channel_semaphore_incr(
801 801
802 semaphore = nvgpu_semaphore_alloc(c); 802 semaphore = nvgpu_semaphore_alloc(c);
803 if (!semaphore) { 803 if (!semaphore) {
804 gk20a_err(dev_from_gk20a(c->g), 804 nvgpu_err(c->g,
805 "ran out of semaphores"); 805 "ran out of semaphores");
806 return -ENOMEM; 806 return -ENOMEM;
807 } 807 }
@@ -809,7 +809,7 @@ static int __gk20a_channel_semaphore_incr(
809 incr_cmd_size = 10; 809 incr_cmd_size = 10;
810 err = gk20a_channel_alloc_priv_cmdbuf(c, incr_cmd_size, incr_cmd); 810 err = gk20a_channel_alloc_priv_cmdbuf(c, incr_cmd_size, incr_cmd);
811 if (err) { 811 if (err) {
812 gk20a_err(dev_from_gk20a(c->g), 812 nvgpu_err(c->g,
813 "not enough priv cmd buffer space"); 813 "not enough priv cmd buffer space");
814 goto clean_up_sema; 814 goto clean_up_sema;
815 } 815 }
@@ -889,7 +889,7 @@ static int gk20a_channel_semaphore_incr_user(
889#else 889#else
890 struct gk20a_channel_semaphore *sema = 890 struct gk20a_channel_semaphore *sema =
891 container_of(s, struct gk20a_channel_semaphore, ops); 891 container_of(s, struct gk20a_channel_semaphore, ops);
892 gk20a_err(dev_from_gk20a(sema->c->g), 892 nvgpu_err(sema->c->g,
893 "trying to use sync fds with CONFIG_SYNC disabled"); 893 "trying to use sync fds with CONFIG_SYNC disabled");
894 return -ENODEV; 894 return -ENODEV;
895#endif 895#endif