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

2023-07-20 Thread suijingfeng
Hi, On 2023/7/20 18:07, Maxime Ripard wrote: On Wed, Jul 19, 2023 at 09:12:14PM +0200, Javier Martinez Canillas wrote: suijingfeng writes: Hi, On 2023/7/10 15:47, Maxime Ripard wrote: [...] + +/** + * drm_kunit_helper_context_alloc - Allocates an acquire context + * @test: The test cont

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

2023-07-20 Thread Maxime Ripard
On Wed, Jul 19, 2023 at 09:12:14PM +0200, Javier Martinez Canillas wrote: > suijingfeng writes: > > > Hi, > > > > On 2023/7/10 15:47, Maxime Ripard wrote: > > [...] > > >> + > >> +/** > >> + * drm_kunit_helper_context_alloc - Allocates an acquire context > >> + * @test: The test context object

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

2023-07-19 Thread Javier Martinez Canillas
suijingfeng writes: > Hi, > > On 2023/7/10 15:47, Maxime Ripard wrote: >> As we get more and more tests, the locking context initialisation [...] >> +/** >> + * drm_kunit_helper_context_alloc - Allocates an acquire context >> + * @test: The test context object >> + * >> + * Allocates and initia

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

2023-07-19 Thread Javier Martinez Canillas
suijingfeng writes: > Hi, > > On 2023/7/10 15:47, Maxime Ripard wrote: [...] >> + >> +/** >> + * drm_kunit_helper_context_alloc - Allocates an acquire context >> + * @test: The test context object >> + * >> + * Allocates and initializes a modeset acquire context. >> + * >> + * The context is ti

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. > >

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

2023-07-17 Thread suijingfeng
Hi, On 2023/7/10 15:47, Maxime Ripard wrote: 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 tes

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

2023-07-17 Thread suijingfeng
Hi, On 2023/7/10 15:47, Maxime Ripard wrote: 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 tes

[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