diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c index 133b737e..43ee79cd 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.c | |||
@@ -65,7 +65,7 @@ static bool gk20a_is_channel_active(struct gk20a *g, struct channel_gk20a *ch) | |||
65 | { | 65 | { |
66 | struct fifo_gk20a *f = &g->fifo; | 66 | struct fifo_gk20a *f = &g->fifo; |
67 | struct fifo_runlist_info_gk20a *runlist; | 67 | struct fifo_runlist_info_gk20a *runlist; |
68 | int i; | 68 | unsigned int i; |
69 | 69 | ||
70 | for (i = 0; i < f->max_runlists; ++i) { | 70 | for (i = 0; i < f->max_runlists; ++i) { |
71 | runlist = &f->runlist_info[i]; | 71 | runlist = &f->runlist_info[i]; |
@@ -112,7 +112,7 @@ int gk20a_tsg_bind_channel(struct tsg_gk20a *tsg, | |||
112 | ch->tsgid = tsg->tsgid; | 112 | ch->tsgid = tsg->tsgid; |
113 | 113 | ||
114 | /* all the channel part of TSG should need to be same runlist_id */ | 114 | /* all the channel part of TSG should need to be same runlist_id */ |
115 | if (tsg->runlist_id == ~0) | 115 | if (tsg->runlist_id == FIFO_INVAL_TSG_ID) |
116 | tsg->runlist_id = ch->runlist_id; | 116 | tsg->runlist_id = ch->runlist_id; |
117 | else if (tsg->runlist_id != ch->runlist_id) { | 117 | else if (tsg->runlist_id != ch->runlist_id) { |
118 | gk20a_err(dev_from_gk20a(tsg->g), | 118 | gk20a_err(dev_from_gk20a(tsg->g), |
@@ -154,7 +154,7 @@ int gk20a_init_tsg_support(struct gk20a *g, u32 tsgid) | |||
154 | { | 154 | { |
155 | struct tsg_gk20a *tsg = NULL; | 155 | struct tsg_gk20a *tsg = NULL; |
156 | 156 | ||
157 | if (tsgid < 0 || tsgid >= g->fifo.num_channels) | 157 | if (tsgid >= g->fifo.num_channels) |
158 | return -EINVAL; | 158 | return -EINVAL; |
159 | 159 | ||
160 | tsg = &g->fifo.tsg[tsgid]; | 160 | tsg = &g->fifo.tsg[tsgid]; |
@@ -198,7 +198,7 @@ static int gk20a_tsg_set_priority(struct gk20a *g, struct tsg_gk20a *tsg, | |||
198 | } | 198 | } |
199 | 199 | ||
200 | static int gk20a_tsg_get_event_data_from_id(struct tsg_gk20a *tsg, | 200 | static int gk20a_tsg_get_event_data_from_id(struct tsg_gk20a *tsg, |
201 | int event_id, | 201 | unsigned int event_id, |
202 | struct gk20a_event_id_data **event_id_data) | 202 | struct gk20a_event_id_data **event_id_data) |
203 | { | 203 | { |
204 | struct gk20a_event_id_data *local_event_id_data; | 204 | struct gk20a_event_id_data *local_event_id_data; |
@@ -383,7 +383,7 @@ static void release_used_tsg(struct fifo_gk20a *f, struct tsg_gk20a *tsg) | |||
383 | static struct tsg_gk20a *acquire_unused_tsg(struct fifo_gk20a *f) | 383 | static struct tsg_gk20a *acquire_unused_tsg(struct fifo_gk20a *f) |
384 | { | 384 | { |
385 | struct tsg_gk20a *tsg = NULL; | 385 | struct tsg_gk20a *tsg = NULL; |
386 | int tsgid; | 386 | unsigned int tsgid; |
387 | 387 | ||
388 | mutex_lock(&f->tsg_inuse_mutex); | 388 | mutex_lock(&f->tsg_inuse_mutex); |
389 | for (tsgid = 0; tsgid < f->num_channels; tsgid++) { | 389 | for (tsgid = 0; tsgid < f->num_channels; tsgid++) { |