Skip to content

Initial support for small BAR recovery

Matthew Auld dri-devel intel-gfx 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest15 patches 2 repliesIn review
  2. v215 patches 14 repliesSuperseded
  3. v120 patches 27 repliesSuperseded

Changes in v3 from the cover letter

- Add some more a-b and r-b. Also tweak patch 12 slightly, as suggested by Thomas.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15drm/i915: add io_size plumbingdrivers/gpu/drm/i915/display/intel_fbdev.c drivers/gpu/drm/i915/gem/i915_gem_shmem.c drivers/gpu/drm/i915/gem/i915_gem_stolen.c +8 more+31 -160 replies
2/15drm/i915/ttm: require mappable by defaultdrivers/gpu/drm/i915/gem/i915_gem_ttm.c drivers/gpu/drm/i915/intel_region_ttm.c+9 -00 replies
3/15drm/i915: add I915_BO_ALLOC_GPU_ONLYdrivers/gpu/drm/i915/gem/i915_gem_object_types.h drivers/gpu/drm/i915/gem/i915_gem_pages.c drivers/gpu/drm/i915/gem/i915_gem_region.c +5 more+45 -180 replies
4/15drm/i915/buddy: track available visible sizedrivers/gpu/drm/i915/i915_ttm_buddy_manager.c drivers/gpu/drm/i915/i915_ttm_buddy_manager.h drivers/gpu/drm/i915/intel_region_ttm.c+75 -20 replies
5/15drm/i915/buddy: adjust res->startdrivers/gpu/drm/i915/i915_ttm_buddy_manager.c+7 -00 replies
6/15drm/i915/buddy: tweak 2big checkdrivers/gpu/drm/i915/i915_ttm_buddy_manager.c+1 -10 replies
7/15drm/i915/selftests: mock test io_sizedrivers/gpu/drm/i915/selftests/intel_memory_region.c+143 -00 replies
8/15drm/i915/ttm: make eviction mappable awaredrivers/gpu/drm/i915/gem/i915_gem_ttm.c+63 -20 replies
9/15drm/i915/ttm: mappable migration on faultdrivers/gpu/drm/i915/gem/i915_gem_ttm.c+48 -60 replies
10/15drm/i915/selftests: exercise mmap migrationdrivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c+304 -00 replies
11/15drm/i915/selftests: handle allocation failuresdrivers/gpu/drm/i915/gem/selftests/huge_pages.c drivers/gpu/drm/i915/selftests/intel_memory_region.c+8 -20 replies
12/15drm/i915/create: apply ALLOC_GPU_ONLY by defaultdrivers/gpu/drm/i915/gem/i915_gem_create.c+8 -01 reply
13/15drm/i915/uapi: add NEEDS_CPU_ACCESS hintdrivers/gpu/drm/i915/gem/i915_gem_create.c include/uapi/drm/i915_drm.h+48 -90 replies
14/15drm/i915/uapi: forbid ALLOC_GPU_ONLY for error capturedrivers/gpu/drm/i915/gem/i915_gem_execbuffer.c+11 -31 reply
15/15drm/i915/lmem: don't treat small BAR as an errordrivers/gpu/drm/i915/gt/intel_region_lmem.c+4 -20 replies

Reviews trailers per patch

14 of 15 patches have a Reviewed-by or Acked-by.

PatchThomas HellströmNirmoy Das
1/15R-b A-b
2/15R-b A-b
3/15R-b A-b
4/15R-b A-b
5/15R-b A-b
6/15R-b A-b
7/15R-b
8/15R-b
9/15R-b
10/15R-b
11/15R-b A-b
12/15R-b
13/15
14/15R-b
15/15R-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 00/15] Initial support for small BAR recovery

Starting from DG2 we will have resizable BAR support for device local-memory, but in some cases the final BAR size might still be smaller than the total local-memory size. In such cases only part of local-memory will be CPU accessible, while the remainder is only accessible via the GPU. This series adds the basic enablers needed to ensure that the entire local-memory range is usable.

Needs to be applied on top of Arun' in-progress series[1].

[1] https://patchwork.freedesktop.org/series/99430/

v2:
- Various improvements and fixes as suggested by Thomas.
v3:
- Add some more a-b and r-b. Also tweak patch 12 slightly, as suggested by Thomas.

Signature · 1 line
2.34.1