OpenCloudOS-Kernel/drivers/gpu/drm/bridge
Archit Taneja f0bfcc22d9 drm/bridge: adv7511: Fix mutex deadlock when interrupts are disabled
When the adv7511 i2c client doesn't have an interrupt line, we observe a
deadlock on caused by trying to lock drm device's mode_config.mutex twice
in the same context.

Here is the sequence that causes it:

ioctl DRM_IOCTL_MODE_GETCONNECTOR from userspace
  drm_mode_getconnector (acquires mode_config mutex)
    connector->fill_modes()
    drm_helper_probe_single_connector_modes
      connector_funcs->get_modes
	adv7511_encoder_get_modes
	  adv7511_get_edid_block
	    adv7511_irq_process
	      drm_helper_hpd_irq_event (acquires mode_config mutex again)

In adv7511_irq_process, don't call drm_helper_hpd_irq_event when not
called from the interrupt handler. It doesn't serve any purpose there
anyway.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
2016-07-13 14:24:36 +05:30
..
adv7511 drm/bridge: adv7511: Fix mutex deadlock when interrupts are disabled 2016-07-13 14:24:36 +05:30
analogix drm: bridge: analogix/dp: Fix the possible dead lock in bridge disable time 2016-04-05 10:13:10 +08:00
Kconfig drm/i2c: adv7511: Move to bridge folder 2016-07-13 14:24:35 +05:30
Makefile drm/i2c: adv7511: Move to bridge folder 2016-07-13 14:24:35 +05:30
analogix-anx78xx.c drm/bridge: anx78xx: Rely on the default ->best_encoder() behavior 2016-06-10 17:25:16 +02:00
analogix-anx78xx.h drm/bridge: Add Analogix anx78xx support 2016-05-12 11:32:14 +02:00
dw-hdmi-ahb-audio.c drm/bridge: dw-hdmi: Use dashes in filenames 2015-11-24 17:52:58 +01:00
dw-hdmi-audio.h drm/bridge: dw-hdmi: Use dashes in filenames 2015-11-24 17:52:58 +01:00
dw-hdmi.c drm/bridge: dw-hdmi: Use drm_atomic_helper_best_encoder() 2016-06-10 17:25:30 +02:00
dw-hdmi.h drm/bridge: dw-hdmi: Use dashes in filenames 2015-11-24 17:52:58 +01:00
nxp-ptn3460.c drm/bridge: ptn3460: Rely on the default ->best_encoder() behavior 2016-06-10 17:25:20 +02:00
parade-ps8622.c drm/bridge: ps8622: Rely on the default ->best_encoder() behavior 2016-06-10 17:25:24 +02:00
sii902x.c drm/bridge: Add sii902x driver 2016-06-20 15:55:49 +02:00