mesa/include/drm-uapi
Rob Clark 802f4da5ee freedreno/drm: Add virtio backend
Add a new backend to enable using native driver in a VM guest, via a new
virtgpu context type which (indirectly) makes host kernel interface
available in guest and handles the details of mapping buffers to guest,
etc.

Note that fence-fd's are currently a bit awkward, in that they get
signaled by the guest kernel driver (drm/virtio) once virglrenderer in
the host has processed the execbuf, not when host kernel has signaled
the submit fence.  For passing buffers to the host (virtio-wl) the egl
context in virglrenderer is used to create a fence on the host side.
But use of out-fence-fd's in guest could have slightly unexpected
results.  For this reason we limit all submitqueues to default priority
(so they cannot be preepmted by host egl context).  AFAICT virgl and
venus have a similar problem, which will eventually be solveable once we
have RESOURCE_CREATE_SYNC.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14900>
2022-03-25 02:03:30 +00:00
..
README include/drm-uapi: bump headers 2021-06-24 16:14:38 +00:00
amdgpu_drm.h include/drm-uapi: update amdgpu_drm.h for new CTX OP to set/get stable pstates 2022-02-21 11:16:11 +00:00
drm.h include/drm-uapi: Bump headers 2021-08-12 19:29:59 +00:00
drm_fourcc.h include/drm-uapi: Bump headers 2021-08-12 19:29:59 +00:00
drm_mode.h include/drm-uapi: Bump headers 2021-08-12 19:29:59 +00:00
etnaviv_drm.h include/drm-uapi: bump headers 2021-06-24 16:14:38 +00:00
i915_drm.h include/drm-uapi: Bump headers 2021-08-12 19:29:59 +00:00
lima_drm.h lima: sync lima_drm.h with kernel 2020-01-30 03:39:21 +00:00
msm_drm.h freedreno: Update uapi header 2022-03-04 16:05:10 -08:00
panfrost_drm.h include/drm-uapi: bump headers 2021-06-24 16:14:38 +00:00
sync_file.h drm-uapi: Add sync_file.h 2020-06-16 16:02:33 +00:00
tegra_drm.h
v3d_drm.h drm-uapi/v3d: extend interface for multiple semaphores support 2022-01-21 10:59:17 +00:00
vc4_drm.h
virtgpu_drm.h freedreno/drm: Add virtio backend 2022-03-25 02:03:30 +00:00

README

This directory contains a copy of the installed kernel headers
required by several drivers to communicate with the kernel.
Whenever one of those driver needs new definitions for new kernel
APIs, these files should be updated.

These files in master should only be updated once the changes have landed
in the drm-next tree.

You can copy files installed after running this from the kernel
repository, at version the drivers require :

$ make headers_install INSTALL_HDR_PATH=/path/to/install

The last update was done at the following kernel commit :

commit 2a7005c8a3982ba27fab237d85c27da446484e9c (HEAD)
Merge: 0666cba1f5b2b 47c65b3853f88
Author: Dave Airlie <airlied@redhat.com>
Date:   Fri Jun 11 13:34:42 2021 +1000

    Merge tag 'drm-intel-gt-next-2021-06-10' of git://anongit.freedesktop.org/drm/drm-intel into drm-next