drm/nouveau/core: add engine method to assist in determining chsw direction
authorBen Skeggs <bskeggs@redhat.com>
Mon, 16 Jan 2017 00:22:59 +0000 (10:22 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 17 Feb 2017 07:38:10 +0000 (17:38 +1000)
commit17041c7eef2efb998b28f770442156401701cd3c
tree3546d19825ba38eecbf5adef06f79c6211125f39
parent84cd0a55659ad7ab5792d5319b315e1e5bba312a
drm/nouveau/core: add engine method to assist in determining chsw direction

FIFO gives us load/save/switch status, and we need to be able to determine
which direction a "switch" is failing during channel recovery.

In order to do this, we apparently need to query the engine itself.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/core/engine.h
drivers/gpu/drm/nouveau/nvkm/core/engine.c