drm/i915: Synchronize hpd work in i915_hpd_storm_ctl_show()
authorLyude Paul <lyude@redhat.com>
Wed, 21 Nov 2018 00:37:17 +0000 (19:37 -0500)
committerLyude Paul <lyude@redhat.com>
Thu, 22 Nov 2018 17:28:07 +0000 (12:28 -0500)
commit6fc5d789512f7c1a33cbfd420d68d001e899b0de
treeea384961f52ee3949633ac533f7e63d5dbce882b
parent17e8fd119f8292f0e96bbddc68bbf5c15305a957
drm/i915: Synchronize hpd work in i915_hpd_storm_ctl_show()

While trying to add a chamelium test for short HPD IRQs, I ran into
issues where a hotplug storm would be triggered, but the point at which
it would be reported by the kernel would be after igt actually finished
checking i915_hpd_storm_ctl's status. So, fix this by simply
synchronizing our IRQ work, dig_port_work, and hotplug_work before
printing out the HPD storm status in i915_hpd_storm_ctl_show().

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20181121003718.17704-1-lyude@redhat.com
drivers/gpu/drm/i915/i915_debugfs.c