Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 i-g-t 0/1] Introduce intel_bb_create_with_context_in_region
@ 2024-09-04  8:42 Dominik Karol Piątkowski
  2024-09-04  8:42 ` [PATCH v3 i-g-t 1/1] lib/intel_batchbuffer: " Dominik Karol Piątkowski
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Dominik Karol Piątkowski @ 2024-09-04  8:42 UTC (permalink / raw)
  To: igt-dev; +Cc: Zbigniew Kempczyński, Dominik Karol Piątkowski

This patch extends __intel_bb_create to take memory region as argument,
making it possible to create batchbuffer in given memory region.
Existing helper functions preserve original behavior.

To make use of this extension, intel_bb_create_with_context_in_region
is introduced, that creates bb with given context in given memory region.

v2:
 - Support both i915 and xe in intel_bb_create_with_context_in_region
 - Extend intel_bb_create_full to use region argument
v3:
 - Introduce is_i915 variable to avoid calling is_i915_device() twice
 - Squash "Fix igt_require in intel_bb_create_no_relocs"
   gem_uses_full_ppgtt() calls gem_gtt_type(), that expects i915 drm
   file descriptor. Wrap the igt_require in is_i915_device() check
   to fix the issue.

Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@intel.com>

Dominik Karol Piątkowski (1):
  lib/intel_batchbuffer: Introduce
    intel_bb_create_with_context_in_region

 lib/intel_batchbuffer.c | 74 +++++++++++++++++++++++++++++++----------
 lib/intel_batchbuffer.h |  5 ++-
 tests/intel/xe_pat.c    |  4 +--
 3 files changed, 63 insertions(+), 20 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-06 19:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-04  8:42 [PATCH v3 i-g-t 0/1] Introduce intel_bb_create_with_context_in_region Dominik Karol Piątkowski
2024-09-04  8:42 ` [PATCH v3 i-g-t 1/1] lib/intel_batchbuffer: " Dominik Karol Piątkowski
2024-09-04 18:03 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-09-04 18:08 ` ✓ CI.xeBAT: " Patchwork
2024-09-05 15:17 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-09-06 19:38 ` ✗ CI.xeFULL: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox