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 c6b1f8d..7dc2b6d 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 a69ddf9..fdc5d30 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;
 }