Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/gem: drop nth_page() usage within SG entry

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.

Link: https://lkml.kernel.org/r/20250901150359.867252-27-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Tvrtko Ursulin <tursulin@ursulin.net>
Cc: David Airlie <airlied@gmail.com>
Cc: Simona Vetter <simona@ffwll.ch>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

David Hildenbrand and committed by
Andrew Morton
f3dd2237 70aa9026

+1 -1
+1 -1
drivers/gpu/drm/i915/gem/i915_gem_pages.c
··· 779 779 GEM_BUG_ON(!i915_gem_object_has_struct_page(obj)); 780 780 781 781 sg = i915_gem_object_get_sg(obj, n, &offset); 782 - return nth_page(sg_page(sg), offset); 782 + return sg_page(sg) + offset; 783 783 } 784 784 785 785 /* Like i915_gem_object_get_page(), but mark the returned page dirty */