diff options
author | Simon Ser <[email protected]> | 2023-03-02 14:35:09 +0000 |
---|---|---|
committer | Simon Ser <[email protected]> | 2023-04-03 14:31:24 +0200 |
commit | 207395da5a97035f06360638f0c2fcd92963ce95 (patch) | |
tree | 8edd4472bc3e815370950e38efbeaa104aeb30f4 /tools/perf/scripts/python/libxed.py | |
parent | f435b7ef3b360d689df2ffa8326352cd07940d92 (diff) |
drm/prime: reject DMA-BUF attach when get_sg_table is missing
drm_gem_map_dma_buf() requires drm_gem_object_funcs.get_sg_table
to be implemented, or else WARNs.
Allow drivers to leave this hook unimplemented to implement purely
local DMA-BUFs (ie, DMA-BUFs which cannot be imported anywhere
else but the device which allocated them). In that case, reject
imports to other devices in drm_gem_map_attach().
v2: new patch
v3: use ENOSYS
Signed-off-by: Simon Ser <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Tian Tao <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Hans de Goede <[email protected]>
Acked-by: Thomas Zimmermann <[email protected]>
Reviewed-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions