[PATCH i-g-t] tests/intel/xe_module_load: Unload module if loaded with modparams
Kamil Konieczny
kamil.konieczny at linux.intel.com
Mon May 27 13:55:24 UTC 2024
Hi Bhanuprakash,
On 2024-05-27 at 18:41:27 +0530, Bhanuprakash Modem wrote:
> Subtests should unload the module themselves if they use modparams,
> otherwise consequent subtests amy misbehave.
>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
LGTM,
Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> ---
> tests/intel/xe_module_load.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/tests/intel/xe_module_load.c b/tests/intel/xe_module_load.c
> index 83f7df341..0856a57c8 100644
> --- a/tests/intel/xe_module_load.c
> +++ b/tests/intel/xe_module_load.c
> @@ -140,11 +140,13 @@ igt_main
> }
>
> load_and_check_xe("force_probe=*");
> + igt_xe_driver_unload();
> }
>
> igt_subtest("reload-no-display") {
> igt_xe_driver_unload();
> load_and_check_xe("enable_display=0");
> + igt_xe_driver_unload();
> }
>
> igt_subtest("many-reload") {
> --
> 2.43.2
>
More information about the igt-dev
mailing list