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