diff options
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index 3e55e3c1..8c82fc68 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | |||
@@ -2796,12 +2796,13 @@ int gk20a_fifo_update_runlist_ids(struct gk20a *g, u32 runlist_ids, u32 hw_chid, | |||
2796 | u32 ret = -EINVAL; | 2796 | u32 ret = -EINVAL; |
2797 | u32 runlist_id = 0; | 2797 | u32 runlist_id = 0; |
2798 | u32 errcode; | 2798 | u32 errcode; |
2799 | unsigned long ulong_runlist_ids = (unsigned long)runlist_ids; | ||
2799 | 2800 | ||
2800 | if (!g) | 2801 | if (!g) |
2801 | goto end; | 2802 | goto end; |
2802 | 2803 | ||
2803 | ret = 0; | 2804 | ret = 0; |
2804 | for_each_set_bit(runlist_id, (unsigned long *)&runlist_ids, 32) { | 2805 | for_each_set_bit(runlist_id, &ulong_runlist_ids, 32) { |
2805 | /* Capture the last failure error code */ | 2806 | /* Capture the last failure error code */ |
2806 | errcode = g->ops.fifo.update_runlist(g, runlist_id, hw_chid, add, wait_for_finish); | 2807 | errcode = g->ops.fifo.update_runlist(g, runlist_id, hw_chid, add, wait_for_finish); |
2807 | if (errcode) { | 2808 | if (errcode) { |