OSDN Git Service

drm/selftests: add drm buddy smoke testcase
authorArunpravin <Arunpravin.PaneerSelvam@amd.com>
Tue, 22 Feb 2022 17:48:44 +0000 (23:18 +0530)
committerChristian König <christian.koenig@amd.com>
Wed, 23 Feb 2022 09:46:06 +0000 (10:46 +0100)
commite6ff5ef81170e11dc0f196b0391f708f04fa8c87
tree953759dcfba0b2fe2275e599b3f28fafc1eaae9c
parentfe93feb5ab0f6eb1a08295dee51b814bf7227799
drm/selftests: add drm buddy smoke testcase

- add a test to ascertain that the critical functionalities
  of the program is working fine
- add a timeout helper function

v2:
  - 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-6-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