summaryrefslogtreecommitdiff
path: root/tests/drv_module_reload_basic
AgeCommit message (Collapse)Author
2016-12-02tests/drv_module_reload: Convert sh script to C version.Marius Vlad
v5: - reword gem_info to gem_sanitychecks (Chris Wilson) - remove subgroups/subtests for gem_exec_store and gem_sanitycheck (Chris Wilson) v4: - adjust test to make use of lib/igt_kmod - replaced SW_FINISH with SET_CACHEING (Chris Wilson) v3: - fix passing boolean value as flags to igt_kmod_unload(). v2: - embedded gem_alive and gem_exec_store into test (Chris Wilson) - int main() to igt_main (Chris Wilson) - moved tests/gem_alive -> tools/gem_info (Chris Wilson) - added to intel-ci/fast-feedback.testlist (Petri Latvala) - added hda_dynamic_debug() (Petri Latvala) - renamed from tests/drv_module_reload_basic to tests/drv_module_reload (all subtests are basic and have been added to fast-feedback.testlist) Signed-off-by: Marius Vlad <marius.c.vlad@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
2016-11-01tests: add more debugs on failure to unload snd_hda_intelJani Nikula
List open files under sound devices. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-11-01tests: do snd_hda_intel unbind before unload in module reload testJani Nikula
Try to make sure the snd_hda_intel module is not in use, and can be unloaded. v2: unbind all cards (Libin) Cc: Keqiao Zhang <keqiao.zhang@intel.com> Cc: Libin Yang <libin.yang@intel.com> Reviewed-by: Libin Yang <libin.yang@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-10-21tests: debug log lsmod on module unload failureJani Nikula
It's a bit verbose, but should only happen on errors. This should help debug the snd_hda_intel unload issues. Reviewed-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-10-14tests: enable hda dynamic debug for module reload testJani Nikula
Hopefully, this will provide more clues for figuring out why snd_hda_intel unload fails sporadically. Reviewed-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-10-04igt/drv_module_reload_basic: let intel_ips removal errors throughJani Nikula
Only try removing intel_ips if it's actually loaded, and let the errors through to the logs if removal fails. Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-10-04igt/drv_module_reload_basic: let snd_hda_intel removal errors throughJani Nikula
Only try removing snd_hda_intel if it's actually loaded, and let the errors through to the logs if removal fails. This is a clue if i915 removal fails later. Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-10-04igt/drv_module_reload_basic: add helper for checking module reloadedJani Nikula
Add a helper for checking whether a module is reloaded, using lsmod. Also make the grep stricter than before. Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2016-04-15igt/drv_module_reload_basic: Do not require snd-hda-intelTvrtko Ursulin
Recent refactoring has made absence of snd-hda-intel a test failure do the respective modprobe being at the end of a reload function now. Only fail in this case if module was previously unloaded. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-03-15igt/drv_module_reload_basic: Pass correct inject_load_failure module optionImre Deak
The latest version of the inject_load_failure module option expects the number of the checkpoint where the failure should be injected, so adjust the test accordingly. Signed-off-by: Imre Deak <imre.deak@intel.com>
2016-03-14drv_module_reload_basic: skip alive check after load failure injectionImre Deak
After loading the module with load failure injection enabled don't try check the alive state. Also limit the number of failure points to existing ones, to reduce the run time of the test. v2: - make VT binding/snd module loading part of reload and VT bind fail silently (Chris) Signed-off-by: Imre Deak <imre.deak@intel.com>
2016-03-11igt/drv_module_reload_basic: Rinse and repeat with addition module parametersChris Wilson
An idea for testing failure paths along module load is to use a parameter to perform fault injection. This rudimentary framework should get us started. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-12-03tests: add exit value constants for shell script testsThomas Wood
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
2015-08-14tests/drv_module_reload_basic: use linear_blits after module_reload for ↵Jesse Barnes
sanity check Reduces runtime a lot... Reviewed-by: Daniel Vetter <daniel@ffwll.ch> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2015-08-14tests/drv_module_reload: rename drv_module_reload to include in BATsJesse Barnes
Absolutely-acked-by: Daniel Vetter <daniel@ffwll.ch> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>