Skip to content

Introduce intel_bb_create_with_context_in_region

Dominik Karol Piątkowski igt-dev 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest1 patch 0 repliesNew
  2. v22 patches 0 repliesSuperseded
  3. v11 patch 1 replySuperseded

Changes in v3 from the cover letter

- 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.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1lib/intel_batchbuffer: Introduce intel_bb_create_with_context_in_regionlib/intel_batchbuffer.c lib/intel_batchbuffer.h tests/intel/xe_pat.c+63 -200 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchZbigniew Kempczyński
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 i-g-t 0/1] Introduce intel_bb_create_with_context_in_region

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.

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(-)
Signature · 1 line
2.34.1