drm/nouveau/falcon: use NXTCTX register instead of NEW_INSTBLK
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 26 Jan 2017 06:00:45 +0000 (15:00 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 7 Mar 2017 07:05:12 +0000 (17:05 +1000)
commit65d9376b74ff651a8d4c6736d32a3bb3aa47bf09
tree25a9c323f4d9698855c80b5553a788eb6ffff64f
parent1106459e9f691e0655d3559734f2ff2084711474
drm/nouveau/falcon: use NXTCTX register instead of NEW_INSTBLK

Both registers allow to bind a new context, but NXTCTX will work on all
falcons, while legacy NEW_INSTBLK is reserved to PMU.

After setting NXTCTX we trigger a context switch by writing 0x090 and
0x0a4.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/falcon/v1.c