summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r--drivers/gpu/nvgpu/vgpu/dbg_vgpu.c4
-rw-r--r--drivers/gpu/nvgpu/vgpu/fifo_vgpu.c9
2 files changed, 7 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/dbg_vgpu.c b/drivers/gpu/nvgpu/vgpu/dbg_vgpu.c
index c312c419..609b497a 100644
--- a/drivers/gpu/nvgpu/vgpu/dbg_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/dbg_vgpu.c
@@ -30,9 +30,9 @@ static int vgpu_exec_regops(struct dbg_session_gk20a *dbg_s,
30 struct tegra_vgpu_cmd_msg msg; 30 struct tegra_vgpu_cmd_msg msg;
31 struct tegra_vgpu_reg_ops_params *p = &msg.params.reg_ops; 31 struct tegra_vgpu_reg_ops_params *p = &msg.params.reg_ops;
32 void *oob; 32 void *oob;
33 size_t oob_size; 33 size_t oob_size, ops_size;
34 void *handle = NULL; 34 void *handle = NULL;
35 int ops_size, err = 0; 35 int err = 0;
36 36
37 gk20a_dbg_fn(""); 37 gk20a_dbg_fn("");
38 BUG_ON(sizeof(*ops) != sizeof(struct tegra_vgpu_reg_op)); 38 BUG_ON(sizeof(*ops) != sizeof(struct tegra_vgpu_reg_op));
diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
index efeeb8ee..c3669990 100644
--- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c
@@ -184,7 +184,7 @@ static int init_runlist(struct gk20a *g, struct fifo_gk20a *f)
184{ 184{
185 struct fifo_runlist_info_gk20a *runlist; 185 struct fifo_runlist_info_gk20a *runlist;
186 struct device *d = dev_from_gk20a(g); 186 struct device *d = dev_from_gk20a(g);
187 s32 runlist_id = -1; 187 unsigned int runlist_id = -1;
188 u32 i; 188 u32 i;
189 u64 runlist_size; 189 u64 runlist_size;
190 190
@@ -238,7 +238,8 @@ static int vgpu_init_fifo_setup_sw(struct gk20a *g)
238 struct fifo_gk20a *f = &g->fifo; 238 struct fifo_gk20a *f = &g->fifo;
239 struct device *d = dev_from_gk20a(g); 239 struct device *d = dev_from_gk20a(g);
240 struct vgpu_priv_data *priv = vgpu_get_priv_data(g); 240 struct vgpu_priv_data *priv = vgpu_get_priv_data(g);
241 int chid, err = 0; 241 unsigned int chid;
242 int err = 0;
242 243
243 gk20a_dbg_fn(""); 244 gk20a_dbg_fn("");
244 245
@@ -486,7 +487,7 @@ static int vgpu_fifo_update_runlist_locked(struct gk20a *g, u32 runlist_id,
486 487
487 /* valid channel, add/remove it from active list. 488 /* valid channel, add/remove it from active list.
488 Otherwise, keep active list untouched for suspend/resume. */ 489 Otherwise, keep active list untouched for suspend/resume. */
489 if (hw_chid != ~0) { 490 if (hw_chid != (u32)~0) {
490 if (add) { 491 if (add) {
491 if (test_and_set_bit(hw_chid, 492 if (test_and_set_bit(hw_chid,
492 runlist->active_channels) == 1) 493 runlist->active_channels) == 1)
@@ -498,7 +499,7 @@ static int vgpu_fifo_update_runlist_locked(struct gk20a *g, u32 runlist_id,
498 } 499 }
499 } 500 }
500 501
501 if (hw_chid != ~0 || /* add/remove a valid channel */ 502 if (hw_chid != (u32)~0 || /* add/remove a valid channel */
502 add /* resume to add all channels back */) { 503 add /* resume to add all channels back */) {
503 u32 chid; 504 u32 chid;
504 505