[PATCH v3 0/3] Add support for partial mapping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: 20240412004255.288046-1-andi.shyti@xxxxxxxxxxxxxxx

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(-)

-- 
2.43.0




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux