diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-30 10:44:03 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-10 22:04:19 -0400 |
commit | 3ba374a5d94f8c2067731155afaf79f03e6c390c (patch) | |
tree | d8a2bd0d52b1e8862510aedeb7529944c0b7e28e /drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | |
parent | 2be51206af88aba6662cdd9de5bd6c18989bbcbd (diff) |
gpu: nvgpu: gk20a: Use new error macro
gk20a_err() and gk20a_warn() require a struct device pointer,
which is not portable across operating systems. The new nvgpu_err()
and nvgpu_warn() macros take struct gk20a pointer. Convert code
to use the more portable macros.
JIRA NVGPU-16
Change-Id: Ia51f36d94c5ce57a5a0ab83b3c83a6bce09e2d5c
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1331694
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c index 6281e4ad..5f07ade7 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | |||
@@ -15,6 +15,7 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include <nvgpu/kmem.h> | 17 | #include <nvgpu/kmem.h> |
18 | #include <nvgpu/log.h> | ||
18 | 19 | ||
19 | #include "gk20a.h" | 20 | #include "gk20a.h" |
20 | #include "tsg_gk20a.h" | 21 | #include "tsg_gk20a.h" |
@@ -93,7 +94,7 @@ int gk20a_tsg_bind_channel(struct tsg_gk20a *tsg, | |||
93 | if (tsg->runlist_id == FIFO_INVAL_TSG_ID) | 94 | if (tsg->runlist_id == FIFO_INVAL_TSG_ID) |
94 | tsg->runlist_id = ch->runlist_id; | 95 | tsg->runlist_id = ch->runlist_id; |
95 | else if (tsg->runlist_id != ch->runlist_id) { | 96 | else if (tsg->runlist_id != ch->runlist_id) { |
96 | gk20a_err(dev_from_gk20a(tsg->g), | 97 | nvgpu_err(tsg->g, |
97 | "Error: TSG channel should be share same runlist ch[%d] tsg[%d]\n", | 98 | "Error: TSG channel should be share same runlist ch[%d] tsg[%d]\n", |
98 | ch->runlist_id, tsg->runlist_id); | 99 | ch->runlist_id, tsg->runlist_id); |
99 | return -EINVAL; | 100 | return -EINVAL; |
@@ -260,8 +261,7 @@ struct tsg_gk20a *gk20a_tsg_open(struct gk20a *g) | |||
260 | if (g->ops.fifo.tsg_open) { | 261 | if (g->ops.fifo.tsg_open) { |
261 | err = g->ops.fifo.tsg_open(tsg); | 262 | err = g->ops.fifo.tsg_open(tsg); |
262 | if (err) { | 263 | if (err) { |
263 | gk20a_err(dev_from_gk20a(g), | 264 | nvgpu_err(g, "tsg %d fifo open failed %d", |
264 | "tsg %d fifo open failed %d", | ||
265 | tsg->tsgid, err); | 265 | tsg->tsgid, err); |
266 | goto clean_up; | 266 | goto clean_up; |
267 | } | 267 | } |