Skip to content

Commit a8045e4

Browse files
zehortigozarodrigovivi
authored andcommitted
drm/i915: Increase I915_PARAM_MMAP_GTT_VERSION version to indicate support for partial mmaps
Commit 255fc17 ("drm/i915/gem: Calculate object page offset for partial memory mapping") was the last patch of several patches fixing multiple partial mmaps. But without a bump in I915_PARAM_MMAP_GTT_VERSION there is no clean way for UMD to know if it can do multiple partial mmaps. Fixes: 255fc17 ("drm/i915/gem: Calculate object page offset for partial memory mapping") Cc: Andi Shyti <andi.shyti@linux.intel.com> Cc: Nirmoy Das <nirmoy.das@intel.com> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Nirmoy Das <nirmoy.das@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250306210827.171147-1-jose.souza@intel.com (cherry picked from commit bfef148) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent 6266f4a commit a8045e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/gpu/drm/i915/gem/i915_gem_mman.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ static unsigned int tile_row_pages(const struct drm_i915_gem_object *obj)
164164
* 4 - Support multiple fault handlers per object depending on object's
165165
* backing storage (a.k.a. MMAP_OFFSET).
166166
*
167+
* 5 - Support multiple partial mmaps(mmap part of BO + unmap a offset, multiple
168+
* times with different size and offset).
169+
*
167170
* Restrictions:
168171
*
169172
* * snoopable objects cannot be accessed via the GTT. It can cause machine
@@ -191,7 +194,7 @@ static unsigned int tile_row_pages(const struct drm_i915_gem_object *obj)
191194
*/
192195
int i915_gem_mmap_gtt_version(void)
193196
{
194-
return 4;
197+
return 5;
195198
}
196199

197200
static inline struct i915_gtt_view

0 commit comments

Comments
 (0)