✗ CI.checkpatch: warning for drm/xe: support sharing VM info between XE drivers (rev2)
Patchwork
patchwork at emeril.freedesktop.org
Sun Mar 3 13:29:36 UTC 2024
== Series Details ==
Series: drm/xe: support sharing VM info between XE drivers (rev2)
URL : https://patchwork.freedesktop.org/series/130639/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
4dc7d0cc630cdd9ac56065b1a22afc329345a519
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit c7c030426e17a616f91aba42ad24f97e7a2a4889
Author: Bharat Jauhari <bjauhari at habana.ai>
Date: Sun Mar 3 15:20:55 2024 +0200
drm/xe: support sharing VM info between XE drivers
This commit adds support to export a user-created VM as a FD
to be shared between XE drivers running on the same device.
There can be devices which offer multiple hardware features each
requiring its own driver. In such case, there is always only one
primary driver which registers itself with the device. All other
drivers work as auxiliary drivers to the primary driver.
Based on software use case of the application there can be a
requirement to share virtual memory information between these drivers.
In current design virtual memory is exposed as an integer, this number
is tightly coupled with the application context. In this integer form,
VM information cannot be shared with other auxiliary drivers by the
application.
Taking inspiration from dma-buf framework, adding a new interface to
export the VM id as an FD. This FD is unique across the host and
encapsulates VM related configurations. Using this FD each application
can opaquely share VM info with other aux drivers.
This feature doesn't allow inter application sharing of VM information,
its purpose is to allow application for sharing its VM with another
driver contexts.
Signed-off-by: Bharat Jauhari <bjauhari at habana.ai>
+ /mt/dim checkpatch 511ffdbe886328239e946608243048f8296fa095 drm-intel
c7c030426e17 drm/xe: support sharing VM info between XE drivers
-:333: WARNING:LONG_LINE: line length of 118 exceeds 100 columns
#333: FILE: include/uapi/drm/xe_drm.h:118:
+#define DRM_IOCTL_XE_VM_EXPORT DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_VM_EXPORT, struct drm_xe_vm_export)
total: 0 errors, 1 warnings, 0 checks, 307 lines checked
More information about the Intel-xe
mailing list