]> www.infradead.org Git - users/willy/xarray.git/commit
drm/nouveau: handle limited nvif ioctl in abi16
authorBen Skeggs <bskeggs@nvidia.com>
Fri, 26 Jul 2024 04:37:59 +0000 (14:37 +1000)
committerDanilo Krummrich <dakr@kernel.org>
Sat, 27 Jul 2024 01:05:22 +0000 (03:05 +0200)
commitba6b8479c944c50db7e2a81794885896fa6c48a8
tree31b6e8fc23c348d2a65aa54debe39b1113dfe1d9
parent2e408ad7a55273b55b14ce28f62111dc1c4f7fb6
drm/nouveau: handle limited nvif ioctl in abi16

nouveau_usif.c was already stripped right back a couple of years ago,
limiting what userspace could do with it.

A follow-on series removes the nvkm side of these interfaces entirely,
in order to make it less of a nightmare to add/change internal APIs in
the future.

Unfortunately.  Userspace uses some of this.

Fortunately, userspace only ever ended up using a fraction of the APIs,
so those are reimplemened here in a more direct manner, and return
-EINVAL to userspace for everything else.

v2:
- simplified struct nouveau_abi16_obj
- added a couple of comments
v3:
- comment harder

Signed-off-by: Ben Skeggs <bskeggs@nvidia.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240726043828.58966-9-bskeggs@nvidia.com
drivers/gpu/drm/nouveau/Kbuild
drivers/gpu/drm/nouveau/nouveau_abi16.c
drivers/gpu/drm/nouveau/nouveau_abi16.h
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/nouveau/nouveau_nvif.c
drivers/gpu/drm/nouveau/nouveau_usif.c [deleted file]
drivers/gpu/drm/nouveau/nouveau_usif.h [deleted file]