Commit 852dfbde authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/kms/nv50-: use NVIDIA's headers for wimm update()

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
parent 93701408
...@@ -46,9 +46,12 @@ curs507a_space(struct nv50_wndw *wndw) ...@@ -46,9 +46,12 @@ curs507a_space(struct nv50_wndw *wndw)
static int static int
curs507a_update(struct nv50_wndw *wndw, u32 *interlock) curs507a_update(struct nv50_wndw *wndw, u32 *interlock)
{ {
struct nvif_object *user = &wndw->wimm.base.user;
int ret = nvif_chan_wait(&wndw->wimm, 1); int ret = nvif_chan_wait(&wndw->wimm, 1);
if (ret == 0) if (ret == 0) {
nvif_wr32(&wndw->wimm.base.user, 0x0080, 0x00000000); NVIF_WR32(user, NV507A, UPDATE,
NVDEF(NV507A, UPDATE, INTERLOCK_WITH_CORE, DISABLE));
}
return ret; return ret;
} }
......
...@@ -27,9 +27,10 @@ ...@@ -27,9 +27,10 @@
static int static int
cursc37a_update(struct nv50_wndw *wndw, u32 *interlock) cursc37a_update(struct nv50_wndw *wndw, u32 *interlock)
{ {
struct nvif_object *user = &wndw->wimm.base.user;
int ret = nvif_chan_wait(&wndw->wimm, 1); int ret = nvif_chan_wait(&wndw->wimm, 1);
if (ret == 0) if (ret == 0)
nvif_wr32(&wndw->wimm.base.user, 0x0200, 0x00000001); NVIF_WR32(user, NVC37A, UPDATE, 0x00000001);
return ret; return ret;
} }
......
...@@ -37,9 +37,9 @@ wimmc37b_update(struct nv50_wndw *wndw, u32 *interlock) ...@@ -37,9 +37,9 @@ wimmc37b_update(struct nv50_wndw *wndw, u32 *interlock)
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
return ret; return ret;
PUSH_NVSQ(push, NVC37B, 0x0200, ((interlock[NV50_DISP_INTERLOCK_WNDW] & PUSH_MTHD(push, NVC37B, UPDATE, 0x00000001 |
wndw->interlock.data) ? 0x00000002 : 0x00000000) | NVVAL(NVC37B, UPDATE, INTERLOCK_WITH_WINDOW,
0x00000001); !!(interlock[NV50_DISP_INTERLOCK_WNDW] & wndw->interlock.data)));
return PUSH_KICK(push); return PUSH_KICK(push);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment