summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2020-06-20 02:24:41 +0200
committerBen Skeggs <bskeggs@redhat.com>2020-07-24 10:50:58 +0200
commitfccc858003f3f3e7a8fa272f118eb71d218a2b32 (patch)
tree5be52e8ea57851edac6dcb1d0da300bacbf4c966 /drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c
parentdrm/nouveau/kms/nv50-: use NVIDIA's headers for wimm update() (diff)
downloadlinux-fccc858003f3f3e7a8fa272f118eb71d218a2b32.tar.xz
linux-fccc858003f3f3e7a8fa272f118eb71d218a2b32.zip
drm/nouveau/kms/nv50-: use NVIDIA's headers for wndw sema_set()
Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Lyude Paul <lyude@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c')
-rw-r--r--drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c b/drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c
index b000b3a86371..a69ddf94ef1f 100644
--- a/drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c
+++ b/drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c
@@ -29,6 +29,8 @@
#include <nvif/clc37e.h>
#include <nvif/pushc37b.h>
+#include <nvhw/class/clc37e.h>
+
static int
wndwc37e_csc_clr(struct nv50_wndw *wndw)
{
@@ -208,10 +210,10 @@ wndwc37e_sema_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
if ((ret = PUSH_WAIT(push, 5)))
return ret;
- PUSH_NVSQ(push, NVC37E, 0x020c, asyw->sema.offset,
- 0x0210, asyw->sema.acquire,
- 0x0214, asyw->sema.release,
- 0x0218, asyw->sema.handle);
+ PUSH_MTHD(push, NVC37E, SET_SEMAPHORE_CONTROL, asyw->sema.offset,
+ SET_SEMAPHORE_ACQUIRE, asyw->sema.acquire,
+ SET_SEMAPHORE_RELEASE, asyw->sema.release,
+ SET_CONTEXT_DMA_SEMAPHORE, asyw->sema.handle);
return 0;
}