]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw sema_clr()
authorBen Skeggs <bskeggs@redhat.com>
Sat, 20 Jun 2020 01:17:59 +0000 (11:17 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 24 Jul 2020 08:50:59 +0000 (18:50 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/base507c.c
drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c

index c6b1f8d70ae2c24cc2a858d7403cdfb16a6b61aa..7dc2b6db1190712b77299e79d48e2135b6ff4810 100644 (file)
@@ -174,7 +174,7 @@ base507c_sema_clr(struct nv50_wndw *wndw)
        if ((ret = PUSH_WAIT(push, 2)))
                return ret;
 
-       PUSH_NVSQ(push, NV507C, 0x0094, 0x00000000);
+       PUSH_MTHD(push, NV507C, SET_CONTEXT_DMA_SEMAPHORE, 0x00000000);
        return 0;
 }
 
index a69ddf94ef1fc2d684be6dbf4e349f2ebdf41624..fdc5d30f4cd46a4e9524235837f642afe997c3d3 100644 (file)
@@ -197,7 +197,7 @@ wndwc37e_sema_clr(struct nv50_wndw *wndw)
        if ((ret = PUSH_WAIT(push, 2)))
                return ret;
 
-       PUSH_NVSQ(push, NVC37E, 0x0218, 0x00000000);
+       PUSH_MTHD(push, NVC37E, SET_CONTEXT_DMA_SEMAPHORE, 0x00000000);
        return 0;
 }