Re: [PATCH 05/11] drm/tests: helpers: Create an helper to allocate a locking ctx

2023-07-19 Thread Javier Martinez Canillas
Maxime Ripard writes: > As we get more and more tests, the locking context initialisation > creates more and more boilerplate, both at creation and destruction. > > Let's create a helper that will allocate, initialise a context, and > register kunit actions to clean up once the test is done. > >

[PATCH 05/11] drm/tests: helpers: Create an helper to allocate a locking ctx

2023-07-10 Thread Maxime Ripard
As we get more and more tests, the locking context initialisation creates more and more boilerplate, both at creation and destruction. Let's create a helper that will allocate, initialise a context, and register kunit actions to clean up once the test is done. Signed-off-by: Maxime Ripard --- d