drm/imagination: Implement context creation/destruction ioctls
authorSarah Walker <sarah.walker@imgtec.com>
Wed, 22 Nov 2023 16:34:37 +0000 (16:34 +0000)
committerMaxime Ripard <mripard@kernel.org>
Thu, 23 Nov 2023 08:01:46 +0000 (09:01 +0100)
commitd2d79d29bb98a32c511f7339a8e93b47544fdeac
treee42b413c285188fd677d059e8c9f9806bc32c414
parent6eedddab733b350886571f98b810108b13bf74ae
drm/imagination: Implement context creation/destruction ioctls

Implement ioctls for the creation and destruction of contexts. Contexts are
used for job submission and each is associated with a particular job type.

Changes since v8:
- Fixed one error path in pvr_stream_process_1()
- Corrected license identifiers

Changes since v5:
- Fix context release in final error path in pvr_context_create()

Changes since v3:
- Use drm_dev_{enter,exit}

Co-developed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Sarah Walker <sarah.walker@imgtec.com>
Signed-off-by: Donald Robson <donald.robson@imgtec.com>
Link: https://lore.kernel.org/r/ac474a1f7dda2582d290798e4837140a2989aa2a.1700668843.git.donald.robson@imgtec.com
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/imagination/Makefile
drivers/gpu/drm/imagination/pvr_cccb.c [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_cccb.h [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_context.c [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_context.h [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_device.h
drivers/gpu/drm/imagination/pvr_drv.c
drivers/gpu/drm/imagination/pvr_stream.c [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_stream.h [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_stream_defs.c [new file with mode: 0644]
drivers/gpu/drm/imagination/pvr_stream_defs.h [new file with mode: 0644]