Re: [PATCH 2/2] drm/i915/gem: Calculate object page offset for partial memory mapping

2024-08-08 Thread Nirmoy Das
On 8/7/2024 12:05 PM, Andi Shyti wrote: To enable partial memory mapping of GPU virtual memory, it's necessary to introduce an offset to the object's memory (obj->mm.pages) scatterlist. This adjustment compensates for instances when userspace mappings do not start from the beginning of the obje

[PATCH 2/2] drm/i915/gem: Calculate object page offset for partial memory mapping

2024-08-07 Thread Andi Shyti
To enable partial memory mapping of GPU virtual memory, it's necessary to introduce an offset to the object's memory (obj->mm.pages) scatterlist. This adjustment compensates for instances when userspace mappings do not start from the beginning of the object. Based on a patch by Chris Wilson. Sign