OSDN Git Service

drm/i915: don't assume struct page in i915_sg_trim
authorMatthew Auld <matthew.auld@intel.com>
Thu, 20 Sep 2018 14:27:06 +0000 (15:27 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 20 Sep 2018 15:43:17 +0000 (16:43 +0100)
commitc6d22ab61bfdeb9d8572859cbc670e7335853817
tree3b78767a54d2157bcb1ba0b461fadab37883fd59
parent8fcd86baab7724196ae8605e58c38dd17d598ef9
drm/i915: don't assume struct page in i915_sg_trim

If we copy all the contents of the sg across and not just the page link,
we can then also put it to work in fake_get_huge_pages and beyond.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180920142707.19659-1-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/selftests/huge_pages.c