Re: [igt-dev] [PATCH i-g-t] lib/kmod: Unload snd_hdmi_lpe_audio

Daniel Vetter
2018-10-25T10:32:54Z

On Thu, Oct 25, 2018 at 01:21:46PM +0300, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Unload the snd_hdmi_lpe_audio module. Otherwise i915 can't be unloaded.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>

> ---
> lib/igt_kmod.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c
> index b2f4f884b137..22c260210e3d 100644
> --- a/lib/igt_kmod.c
> +++ b/lib/igt_kmod.c
> @@ -333,6 +333,17 @@ igt_i915_driver_unload(void)
> }
> }
>
> + if (igt_kmod_is_loaded("snd_hdmi_lpe_audio")) {
> + igt_terminate_process(SIGTERM, "alsactl");
> +
> + if (igt_kmod_unload("snd_hdmi_lpe_audio", 0)) {
> + igt_warn("Could not unload snd_hdmi_lpe_audio\n");
> + igt_kmod_list_loaded();
> + igt_lsof("/dev/snd");
> + return IGT_EXIT_FAILURE;
> + }
> + }
> +
> /* gen5 */
> if (igt_kmod_is_loaded("intel_ips"))
> igt_kmod_unload("intel_ips", 0);
> --
> 2.18.1
>
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev

--
Daniel Vetter
Software Engineer, Intel Corporation