]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/nouveau/fence: use NVIDIA's headers for read()
authorBen Skeggs <bskeggs@redhat.com>
Wed, 22 Jul 2020 07:21:59 +0000 (17:21 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 24 Jul 2020 08:51:04 +0000 (18:51 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
drivers/gpu/drm/nouveau/nv10_fence.c

index 8e3f034d6e74e80e5f3e9daa528e248997157c58..c6a0db5b9e2174c3bad2b97215c1755bdb218513 100644 (file)
@@ -52,7 +52,7 @@ nv10_fence_sync(struct nouveau_fence *fence,
 u32
 nv10_fence_read(struct nouveau_channel *chan)
 {
-       return nvif_rd32(&chan->user, 0x0048);
+       return NVIF_RD32(&chan->user, NV06E, REFERENCE);
 }
 
 void