thesofproject / sof-test

BSD 3-Clause "New" or "Revised" License
12 stars 44 forks source link

Test i915 hotplug using EDID injection #599

Open kv2019i opened 3 years ago

kv2019i commented 3 years ago

We've had some regressions (https://bugzilla.kernel.org/show_bug.cgi?id=210983 , although this happened only with silent streaming enabled) caused by lack of coverage for display audio hotplug cases.

One idea to test for these cases is to use the i915 EDID injection capability as is done in following test case code for i915: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/blob/master/tests/kms_hdmi_inject.c

We could share this logic in SOF tests and have scenarios where monitor is repeatedly connected and disconnected and ensure driver reports the status correctly via ALSA mixer, and that driver remains operational. To check for resource leakage, a large number of hotplug events should be executed.

marc-hb commented 1 year ago

BTW ubuntu 22.04 does not support monitor hotplug AT ALL (long before audio is involveD)