]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: block a bunch of classes from userspace
authorBen Skeggs <bskeggs@redhat.com>
Thu, 4 Mar 2021 09:16:18 +0000 (19:16 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 18 Aug 2021 09:00:13 +0000 (19:00 +1000)
commitd79495a68ff8ecd6ca29cf5198d85562735ec8d0
treed8bb4d7a2e1b00c4982db439f8489485fb7010a1
parentc2751dd779390fc53cc2bfc134c0d9ad9214d235
drm/nouveau: block a bunch of classes from userspace

Long ago, there had been plans for making use of a bunch of these APIs
from userspace and there's various checks in place to stop misbehaving.

Countless other projects have occurred in the meantime, and the pieces
didn't finish falling into place for that to happen.

They will (hopefully) in the not-too-distant future, but it won't look
quite as insane.  The super checks are causing problems right now, and
are going to be removed.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
drivers/gpu/drm/nouveau/include/nvif/cl0080.h
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/nouveau/nouveau_usif.c
drivers/gpu/drm/nouveau/nvkm/engine/device/user.c