drm/i915/stolen: enforce the min_page_size contract
authorCQ Tang <cq.tang@intel.com>
Wed, 21 Apr 2021 10:46:57 +0000 (11:46 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 22 Apr 2021 07:50:18 +0000 (08:50 +0100)
commitf9a7b01e95d5e6c3f79f0efbbbbb2bbc52a8f3ce
tree4d661a8d77062ad4abd10b4c70d55ab057434233
parentb75947e6b29d5b33f79d7b3918747592534e3fb1
drm/i915/stolen: enforce the min_page_size contract

Since stolen can now be device local-memory underneath, we should try to
enforce any min_page_size restrictions when allocating pages.

Signed-off-by: CQ Tang <cq.tang@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210421104658.304142-3-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_stolen.c