summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2023-10-30 11:26:17 +1000
committerDave Airlie <airlied@redhat.com>2023-10-31 15:11:14 +1000
commitb76827a3a930fe8737ca64854e17c113687e94a9 (patch)
treef330e23fec5b48de925e1323f75155f74c4bb835 /drivers/gpu/drm/nouveau
parent015185cc670e8cb3325990dd41b1ddb502dd3a36 (diff)
nouveau: fix r535 build on 32-bit arm.
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
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c
index 14a67cf96204..0f9b8087d5e6 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/r535.c
@@ -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) {