diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2020-06-20 01:29:31 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2020-07-24 11:50:52 +0300 |
commit | fe8a2eec7dd654636102dfe348aa9d37971133be (patch) | |
tree | 7a1273928af4867bef0f9c6a1623cc4ac460e995 /drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c | |
parent | c686051a5a01ed7d14ff652229af02c545d9895c (diff) | |
download | linux-fe8a2eec7dd654636102dfe348aa9d37971133be.tar.xz |
drm/nouveau/kms/nv50-: convert wndw ntfy_set() to new push macros
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.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c b/drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c index 965807f8b635..9738205949bf 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c +++ b/drivers/gpu/drm/nouveau/dispnv50/wndwc37e.c @@ -163,16 +163,19 @@ wndwc37e_ntfy_clr(struct nv50_wndw *wndw) } } -void +int wndwc37e_ntfy_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) { - u32 *push; - if ((push = evo_wait(&wndw->wndw, 3))) { - evo_mthd(push, 0x021c, 2); - evo_data(push, asyw->ntfy.handle); - evo_data(push, asyw->ntfy.offset | asyw->ntfy.awaken); - evo_kick(push, &wndw->wndw); - } + struct nvif_push *push = wndw->wndw.push; + int ret; + + if ((ret = PUSH_WAIT(push, 3))) + return ret; + + PUSH_NVSQ(push, NVC37E, 0x021c, asyw->ntfy.handle, + 0x0220, asyw->ntfy.offset | + asyw->ntfy.awaken); + return 0; } int |