[igt-dev] [PATCH i-g-t v2 4/4] tests/kms_chamelium: Test HPD for different mode handling scenarios

Arkadiusz Hiler arkadiusz.hiler at intel.com
Thu Apr 2 09:56:24 UTC 2020


On Thu, Apr 02, 2020 at 07:55:34AM +0530, Kunal Joshi wrote:
> On 2020-04-01 at 19:29:12 +0300, Arkadiusz Hiler wrote:
> > The default scenario is now performing all hotplugs with modes disabled
> > on all connectors. This is the quickest of the tests and represents
> > userspace not caring about the new display (e.g. explicitly disabled).
> > 
> > *-hpd-enable-disable-mode covers the most common userspace behavior
> > where each hotplug event is accompanied by a corresponding enabling /
> > disabling commit.
> > 
> > *-hpd-with-enabled-mode explicitly targets the scenario where we have
> > mode enabled and never disable it as we do hotplugs to reproduce the
> > issue we see with TypeC connectors for ICL and TGL.
> > 
> > v2:
> >  - refresh igt_display output state after reprobing
> >  - get mode and set pipe only after we have connector plugged in
> > 
> > Cc: Kunal Joshi <kunal1.joshi at intel.com>
> > Cc: Imre Deak <imre.deak at intel.com>
> > Issue: https://gitlab.freedesktop.org/drm/intel/issues/323
> > Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
> > ---
> >  lib/igt_kms.c         |   2 +-
> >  lib/igt_kms.h         |   1 +
> >  tests/kms_chamelium.c | 315 ++++++++++++++++++++++++++++--------------
> >  3 files changed, 216 insertions(+), 102 deletions(-)
> > 
> > diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c
> > index 236e1010..3019d270 100644
> > --- a/tests/kms_chamelium.c
> > +++ b/tests/kms_chamelium.c
> > @@ -2795,11 +2894,25 @@ igt_main
> >  
> >  		igt_describe(test_basic_hotplug_desc);
> >  		connector_subtest("vga-hpd", VGA)
> > -			test_basic_hotplug(&data, port, HPD_TOGGLE_COUNT_VGA);
> > +			test_hotplug(&data, port, HPD_TOGGLE_COUNT_VGA,
> > +				     TEST_MODESET_OFF);
> >  
> >  		igt_describe(test_basic_hotplug_desc);
> >  		connector_subtest("vga-hpd-fast", VGA)
> > -			test_basic_hotplug(&data, port, HPD_TOGGLE_COUNT_FAST);
> > +			test_hotplug(&data, port, HPD_TOGGLE_COUNT_FAST,
> > +				     TEST_MODESET_OFF);
> > +
> > +		igt_describe(test_basic_hotplug_desc);
> > +		connector_subtest("hdmi-hpd-enable-disable-mode", VGA)
> > +			test_hotplug(&data, port,
> > +				     HPD_TOGGLE_COUNT_FAST,
> > +				     TEST_MODESET_ON_OFF);
> > +
> > +		igt_describe(test_basic_hotplug_desc);
> > +		connector_subtest("hdmi-hpd-with-enabled-mode", VGA)
> > +			test_hotplug(&data, port,
> > +				     HPD_TOGGLE_COUNT_FAST,
> > +				     TEST_MODESET_ON);
> >  
> Can be rename as vga-hpd-enable-disable-mode and vga-hpd-with-enabled-mode

Or even should be :-)

That's a copy&paste fail on my side. Thanks for spotting this!

> 
> Otherwise looks good to me
> Reviewed-by: Kunal Joshi <kunal1.joshi at intel.com>


More information about the igt-dev mailing list