Skip to contentSkip to conversation

drm-i915-gem-drop-nth_page-usage-within-sg-entry.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Sep 21, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: drm/i915/gem: drop nth_page() usage within SG entry
has been removed from the -mm tree. Its filename was
drm-i915-gem-drop-nth_page-usage-within-sg-entry.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: David Hildenbrand <[email protected]>
Subject: drm/i915/gem: drop nth_page() usage within SG entry
Date: Mon, 1 Sep 2025 17:03:47 +0200

It's no longer required to use nth_page() when iterating pages within a single SG entry, so let's drop the nth_page() usage.

---

 drivers/gpu/drm/i915/gem/i915_gem_pages.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/gem/i915_gem_pages.c renamed from drivers/gpu/drm/i915/gem/i915_gem_pages.c~drm-i915-gem-drop-nth_page-usage-within-sg-entry +1 -1
@@ -779,7 +779,7 @@ __i915_gem_object_get_page(struct drm_i9
 	GEM_BUG_ON(!i915_gem_object_has_struct_page(obj));
 
 	sg = i915_gem_object_get_sg(obj, n, &offset);
-	return nth_page(sg_page(sg), offset);
+	return sg_page(sg) + offset;
 }
 
 /* Like i915_gem_object_get_page(), but mark the returned page dirty */

_

Patches currently in -mm which might be from [email protected] are