]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/ttm: restore min_page_size behaviour
authorMatthew Auld <matthew.auld@intel.com>
Wed, 16 Jun 2021 15:25:01 +0000 (16:25 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 16 Jun 2021 15:48:02 +0000 (16:48 +0100)
commit364edc81fdaaa323397950a1fe25ddd4961daa9e
tree6bb10b6e7054eaa7922c5de65b0cdd21bd469700
parent4cd8a0c52055b16204524ef908aeea6993a11f43
drm/i915/ttm: restore min_page_size behaviour

We now have bo->page_alignment which perfectly describes what we need if
we have min page size restrictions for lmem. We can also drop the flag
here, since this is the default behaviour for all objects.

v2(Thomas):
    - bo->page_alignment is in page units

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210616152501.394518-7-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
drivers/gpu/drm/i915/intel_memory_region.h
drivers/gpu/drm/i915/intel_region_ttm.c
drivers/gpu/drm/i915/selftests/mock_region.c