]> Git Repo - linux.git/commit
drm/i915/uapi: add NEEDS_CPU_ACCESS hint
authorMatthew Auld <[email protected]>
Wed, 29 Jun 2022 17:43:43 +0000 (18:43 +0100)
committerMatthew Auld <[email protected]>
Fri, 1 Jul 2022 07:30:00 +0000 (08:30 +0100)
commit525e93f6317a08a03cc42847b3e075c92a382c99
tree7915e5922de6195976b29c0dc8448b1d2b6220d6
parent1dbd07e088673dbf0e10f4bcfa17f971fd870195
drm/i915/uapi: add NEEDS_CPU_ACCESS hint

If set, force the allocation to be placed in the mappable portion of
I915_MEMORY_CLASS_DEVICE. One big restriction here is that system memory
(i.e I915_MEMORY_CLASS_SYSTEM) must be given as a potential placement for the
object, that way we can always spill the object into system memory if we
can't make space.

Testcase: igt@gem-create@create-ext-cpu-access-sanity-check
Testcase: igt@gem-create@create-ext-cpu-access-big
Signed-off-by: Matthew Auld <[email protected]>
Cc: Thomas Hellström <[email protected]>
Cc: Lionel Landwerlin <[email protected]>
Cc: Jon Bloomfield <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Jordan Justen <[email protected]>
Cc: Kenneth Graunke <[email protected]>
Cc: Akeem G Abodunrin <[email protected]>
Reviewed-by: Nirmoy Das <[email protected]>
Reviewed-by: Thomas Hellström <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/gem/i915_gem_create.c
include/uapi/drm/i915_drm.h
This page took 0.060437 seconds and 4 git commands to generate.