drm/selftests: add drm buddy optimistic testcase
authorArunpravin <Arunpravin.PaneerSelvam@amd.com>
Tue, 22 Feb 2022 17:48:42 +0000 (23:18 +0530)
committerChristian König <christian.koenig@amd.com>
Wed, 23 Feb 2022 09:45:11 +0000 (10:45 +0100)
commit4010ce9fb634c6368ebb9dead9ef83d49c4dde96
tree8f03c27fefed73fc5686dc18f091aa00d3f44c72
parent92937f170d3f49f41d7acb86243ee691a98eb2be
drm/selftests: add drm buddy optimistic testcase

create a mm with one block of each order available, and
try to allocate them all.

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-4-Arunpravin.PaneerSelvam@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/selftests/drm_buddy_selftests.h
drivers/gpu/drm/selftests/test-drm_buddy.c