linux/drivers/gpu/drm/i915/selftests
Matthew Auld 09a729b178 drm/i915/region: fix max size calculation
We are incorrectly limiting the max allocation size as per the mm
max_order, which is effectively the largest power-of-two that we can fit
in the region size. However, it's normal to setup the region or
allocator with a non-power-of-two size(for example 3G), which we should
already handle correctly, except it seems for the early too-big-check.

v2: make sure we also exercise the I915_BO_ALLOC_CONTIGUOUS path, which
is quite different, since for that we are actually limited by the
largest power-of-two that we can fit within the region size. (Chris)

Fixes: b908be543e ("drm/i915: support creating LMEM objects")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: CQ Tang <cq.tang@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20201021103606.241395-1-matthew.auld@intel.com
(cherry picked from commit 83ebef47f8)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2020-10-29 14:20:17 -04:00
..
i915_active.c drm/i915: Allow for different modes of interruptible i915_active_wait 2020-03-30 18:20:33 +01:00
i915_buddy.c drm/i915/selftests: Avoid passing a random 0 into ilog2 2020-08-19 15:23:36 +03:00
i915_gem_evict.c drm/i915/selftest: Create mock_destroy_device 2020-09-21 10:36:24 +02:00
i915_gem_gtt.c drm/i915/selftest: Create mock_destroy_device 2020-09-21 10:36:24 +02:00
i915_gem.c drm/i915: Add an implementation for i915_gem_ww_ctx locking, v2. 2020-09-07 14:29:44 +03:00
i915_live_selftests.h drm/i915: Fix comments mentioning typo in IS_ENABLED() 2020-06-05 16:28:42 +01:00
i915_mock_selftests.h drm/i915/gt: Incrementally check for rewinding 2020-06-16 11:34:23 +03:00
i915_perf_selftests.h drm/i915: Fix comments mentioning typo in IS_ENABLED() 2020-06-05 16:28:42 +01:00
i915_perf.c drm/i915/gt: Switch to object allocations for page directories 2020-09-07 14:24:08 +03:00
i915_random.c
i915_random.h
i915_request.c drm/i915/selftest: Create mock_destroy_device 2020-09-21 10:36:24 +02:00
i915_selftest.c drm/i915/gem: Implement legacy MI_STORE_DATA_IMM 2020-05-04 15:15:04 +01:00
i915_sw_fence.c
i915_syncmap.c
i915_vma.c drm/i915/selftest: Create mock_destroy_device 2020-09-21 10:36:24 +02:00
igt_atomic.c
igt_atomic.h
igt_flush_test.c
igt_flush_test.h
igt_live_test.c
igt_live_test.h
igt_mmap.c
igt_mmap.h
igt_reset.c
igt_reset.h
igt_spinner.c drm/i915/selftests: Trim execlists runtime 2020-06-13 10:24:26 +01:00
igt_spinner.h
intel_memory_region.c drm/i915/region: fix max size calculation 2020-10-29 14:20:17 -04:00
intel_uncore.c
lib_sw_fence.c
lib_sw_fence.h
librapl.c drm/i915/selftests: Move gpu energy measurement into its own little lib 2020-04-17 18:48:51 +01:00
librapl.h drm/i915/selftests: Move gpu energy measurement into its own little lib 2020-04-17 18:48:51 +01:00
mock_drm.h
mock_gem_device.c drm-misc-next for 5.10: 2020-09-23 09:52:24 +10:00
mock_gem_device.h drm/i915/selftest: Create mock_destroy_device 2020-09-21 10:36:24 +02:00
mock_gtt.c drm/i915/gt: Switch to object allocations for page directories 2020-09-07 14:24:08 +03:00
mock_gtt.h
mock_region.c drm/i915/region: fix max size calculation 2020-10-29 14:20:17 -04:00
mock_region.h
mock_request.c
mock_request.h
mock_uncore.c
mock_uncore.h
scatterlist.c