summaryrefslogtreecommitdiff
path: root/nvkm/engine/disp/nv94.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-08-10 04:10:20 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-08-10 04:43:27 +1000
commit737a951e675b0b0bdd96423b762e2e5b26c3aeb3 (patch)
tree993752b32238c0cc9bce7cd4725a42a6767d4e07 /nvkm/engine/disp/nv94.c
parent7a6217d8dd327130e937a5235e14742eaf04bc6f (diff)
downloadnouveau-737a951e675b0b0bdd96423b762e2e5b26c3aeb3.tar.gz
core: rework event interface
This is a lot of prep-work for being able to send event notifications back to userspace. Events now contain data, rather than a "something just happened" signal. Handler data is now embedded into a containing structure, rather than being kmalloc()'d, and can optionally have the notify routine handled in a workqueue. Various races between suspend/unload with display HPD/DP IRQ handlers automagically solved as a result. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'nvkm/engine/disp/nv94.c')
-rw-r--r--nvkm/engine/disp/nv94.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nvkm/engine/disp/nv94.c b/nvkm/engine/disp/nv94.c
index 4f718a9f5..03a6b2572 100644
--- a/nvkm/engine/disp/nv94.c
+++ b/nvkm/engine/disp/nv94.c
@@ -143,6 +143,7 @@ nv94_disp_oclass = &(struct nv50_disp_impl) {
.init = _nouveau_disp_init,
.fini = _nouveau_disp_fini,
},
+ .base.vblank = &nv50_disp_vblank_func,
.base.outp = nv94_disp_outp_sclass,
.mthd.core = &nv94_disp_mast_mthd_chan,
.mthd.base = &nv84_disp_sync_mthd_chan,