f915686bd9
create a pot-sized mm, then allocate one of each possible order within. This should leave the mm with exactly one page left. Free the largest block, then whittle down again. Eventually we will have a fully 50% fragmented mm. v2(Matthew Auld): - removed unnecessary test succeeded print - replace list_del()/list_add_tail() with list_move_tail() Signed-off-by: Arunpravin <Arunpravin.PaneerSelvam@amd.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Acked-by: Christian König <christian.koenig@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220222174845.2175-7-Arunpravin.PaneerSelvam@amd.com Signed-off-by: Christian König <christian.koenig@amd.com>
16 lines
709 B
C
16 lines
709 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* List each unit test as selftest(name, function)
|
|
*
|
|
* The name is used as both an enum and expanded as igt__name to create
|
|
* a module parameter. It must be unique and legal for a C identifier.
|
|
*
|
|
* Tests are executed in order by igt/drm_buddy
|
|
*/
|
|
selftest(sanitycheck, igt_sanitycheck) /* keep first (selfcheck for igt) */
|
|
selftest(buddy_alloc_limit, igt_buddy_alloc_limit)
|
|
selftest(buddy_alloc_range, igt_buddy_alloc_range)
|
|
selftest(buddy_alloc_optimistic, igt_buddy_alloc_optimistic)
|
|
selftest(buddy_alloc_pessimistic, igt_buddy_alloc_pessimistic)
|
|
selftest(buddy_alloc_smoke, igt_buddy_alloc_smoke)
|
|
selftest(buddy_alloc_pathological, igt_buddy_alloc_pathological)
|