Skip to content

Commit

Permalink
nouveau: fix r535 build on 32-bit arm.
Browse files Browse the repository at this point in the history
This needs the proper division macros.

Reviewed-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231030012814.1208972-1-airlied@gmail.com
  • Loading branch information
Dave Airlie committed Oct 31, 2023
1 parent 015185c commit b76827a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ r535_chan_id_get_locked(struct nvkm_chan *chan, struct nvkm_memory *muserd, u64
return -EINVAL;
}

chid = ouserd / chan->func->userd->size;
chid = div_u64(ouserd, chan->func->userd->size);

list_for_each_entry(userd, &fifo->userd.list, head) {
if (userd->mem == muserd) {
Expand Down

0 comments on commit b76827a

Please sign in to comment.