]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda08983cf3b23163a727b0252e609fa61de28a09
treeea384961f52ee3949633ac533f7e63d5dbce882b
parente6d84d18b27416635bf2dfcbf375974fbb10b271
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