[PATCH i-g-t v2 0/6] lib/kunit: Support writable filter* parameters of kunit module
Janusz Krzysztofik
janusz.krzysztofik at linux.intel.com
Wed Jan 31 18:03:47 UTC 2024
Instead of wasting resources on reloading the base Kunit module each time
a different set of filter parameters is needed, try to write the required
values to sysfs representation of those parameters. If that fails (e.g.
on older LTS kernels with read-only filter parameters), fall back to
reloading the module.
This change also provides a workaround for the issue of impossibility to
unload the base Kunit module on Xe platforms, available as soon as the
module supports writable filter parameters.
While being at it, fine tune processing of skips on errors during test
case list collection phase.
v2: Work around ineffective writes of empty strings to sysfs module
parameter files (Lucas) by using human readable non-empty strings that
give the same results as default NULLs,
- drop fallback to reload of base Kunit module method if assigning new
values to module parameters via sysfs fails (Lucas), instead use the
existing fallback to blind execution like if getting a list of test
cases was not supported at all,
- split move of open_parameters() helper up in the source file as well
as cleanup of base KUnit module unloading to separate patches (Kamil),
- skip on empty list of test cases (new patch),
- address the issue of commit description suggesting two separate
changes combined in one patch (Kamil).
Janusz Krzysztofik (6):
lib/kunit: Skip on empty list of test cases
lib/kmode: Prepare open_parameters() helper for reuse by kunit
lib/kunit: Unload base KUnit module only before reloading it
lib/kunit: Support writable filter* parameters of kunit module
lib/kunit: Report early kernel taints explicitly
lib/kunit: Process module remove error after list errors
lib/igt_kmod.c | 138 +++++++++++++++++++++++++++++++++++--------------
1 file changed, 98 insertions(+), 40 deletions(-)
--
2.43.0
More information about the Intel-xe
mailing list