]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nve0: allow specification of channel engine type in abi16 call
authorBen Skeggs <bskeggs@redhat.com>
Thu, 22 Nov 2012 03:43:55 +0000 (13:43 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 28 Nov 2012 23:58:05 +0000 (09:58 +1000)
commitc14b7f4ce218eecf3bba906649bf4a581f8e264a
tree79a781ea1317fa560929290e4fd1c709acfae733
parent56cc8f8a37754054497ca08e20be4698eaa5070a
drm/nve0: allow specification of channel engine type in abi16 call

Previously, if either vram/gart handles were specified as ~0, the ioctl
call would fail.  In order to hack engine selection into the ioctl for
kepler, we now define (fb_ctxdma_handle == ~0) to mean "engine mask is
in tt_ctxdma_handle".

This approach also allows new userspace to detect lack of support for
non-PGRAPH channels on older kernels.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_abi16.c
drivers/gpu/drm/nouveau/nouveau_chan.c
drivers/gpu/drm/nouveau/nouveau_drm.c