Skip to content

Add support for partial mapping

Andi Shyti intel-gfx 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v22 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Add a patch in order to not fail when the exact address of a VM node is not the same as the starting address due to the offset.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/i915/gem: Increment vma offset when mapping fb objectsdrivers/gpu/drm/i915/gem/i915_gem_mman.c+2 -01 reply
2/3drm/i915/gem: Do not look for the exact address in nodedrivers/gpu/drm/i915/gem/i915_gem_mman.c+3 -30 replies
3/3drm/i915/gem: Calculate object page offset for partial memory mappingdrivers/gpu/drm/i915/gem/i915_gem_mman.c drivers/gpu/drm/i915/i915_mm.c drivers/gpu/drm/i915/i915_mm.h+20 -50 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchNirmoy Das
1/3R-b
2/3
3/3

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 0/3] Add support for partial mapping

Hi,

this series based on a previous work from Chris adds support for partial mapping.

Two preparatory patches are needed:

- set the vm_pgoff when mapping frame buffer objects
- do not fail when the exact address of a VM node is not the same as the starting address due to the offset.

Indeed I was receiving a negative offset at first.

Igt tests have been sent to the igt mailing list.

Andi

Test-with: [email protected]

Changelog:
==========
v2 -> v3:
- Add a patch in order to not fail when the exact address of a VM node is not the same as the starting address due to the offset.

v1 -> v2:
- Enable support for CPU memory
- Increment vm_pgoff for fb objects

Andi Shyti (3):
drm/i915/gem: Increment vma offset when mapping fb objects drm/i915/gem: Do not look for the exact address in node drm/i915/gem: Calculate object page offset for partial memory mapping

 drivers/gpu/drm/i915/gem/i915_gem_mman.c | 18 ++++++++++++------
 drivers/gpu/drm/i915/i915_mm.c           | 12 +++++++++++-
 drivers/gpu/drm/i915/i915_mm.h           |  3 ++-
 3 files changed, 25 insertions(+), 8 deletions(-)
Signature · 1 line
2.43.0