]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/disp: add output class
authorBen Skeggs <bskeggs@redhat.com>
Wed, 1 Jun 2022 10:46:31 +0000 (20:46 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 26 Jul 2022 23:05:49 +0000 (09:05 +1000)
commit7ffd3b52d43c7b1149ef316171b692e334f5e859
tree65e4cd469206eefb71c9b117842d9d124b23c154
parent6db2d58a2d91b2044a3f30eafd72e52004798a25
drm/nouveau/disp: add output class

Will be used to more cleanly implement existing method interfaces that
take some confusing (IEDTkey, inherited from VBIOS, which RM no longer
uses on Ampere) match values to determine which display path to operate
on.

Methods will be protected from racing with supervisor, and from being
called where they shouldn't be (ie. without an OR assigned).

v2:
- use ?: (lyude)
v3:
- fix return code if noacquire() method fails

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
17 files changed:
drivers/gpu/drm/nouveau/dispnv50/disp.c
drivers/gpu/drm/nouveau/include/nvif/class.h
drivers/gpu/drm/nouveau/include/nvif/disp.h
drivers/gpu/drm/nouveau/include/nvif/if0010.h
drivers/gpu/drm/nouveau/include/nvif/if0012.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/include/nvif/outp.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/dcb.h
drivers/gpu/drm/nouveau/nouveau_bios.c
drivers/gpu/drm/nouveau/nouveau_encoder.h
drivers/gpu/drm/nouveau/nvif/Kbuild
drivers/gpu/drm/nouveau/nvif/disp.c
drivers/gpu/drm/nouveau/nvif/outp.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/nvkm/engine/disp/Kbuild
drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.h
drivers/gpu/drm/nouveau/nvkm/engine/disp/priv.h
drivers/gpu/drm/nouveau/nvkm/engine/disp/udisp.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/uoutp.c [new file with mode: 0644]