linux_dsm_epyc7002/drivers/gpu/drm/bridge
Douglas Anderson 2f8d216002 drm/bridge: analogix_dp: Reorder plat_data->power_off to happen sooner
The current user of the analogix power_off is "analogix_dp-rockchip".
That driver does this:
- deactivate PSR
- turn off a clock

Both of these things (especially deactive PSR) should be done before
we turn the PHY power off and turn off analog power.  Let's move the
callback up.

Note that without this patch (and with
https://patchwork.kernel.org/patch/9553349/ [seanpaul: this patch was
not applied, but it seems like the race can still occur]), I experienced
an error in reboot testing where one thread was at:

  rockchip_drm_psr_deactivate
  rockchip_dp_powerdown
  analogix_dp_bridge_disable
  drm_bridge_disable

...and the other thread was at:

  analogix_dp_send_psr_spd
  analogix_dp_enable_psr
  analogix_dp_psr_set
  psr_flush_handler

The flush handler thread was finding AUX channel errors and eventually
reported "Failed to apply PSR", where I had a kgdb breakpoint. Presumably
the device would have eventually given up and shut down anyway, but it
seems better to fix the order to be more correct.

Cc: Kristian H. Kristensen <hoegsberg@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180423105003.9004-19-enric.balletbo@collabora.com
2018-04-24 08:34:45 +02:00
..
adv7511 drm/bridge: adv7511/33: Fix adv7511_cec_init() failure handling 2017-11-30 10:37:11 +05:30
analogix drm/bridge: analogix_dp: Reorder plat_data->power_off to happen sooner 2018-04-24 08:34:45 +02:00
synopsys drm: dw-hdmi-i2s: Remove owner assignment from platform_driver 2018-04-23 08:55:21 +02:00
analogix-anx78xx.c drm/bridge: analogix-anx78xx: Remove duplicate NULL check 2018-01-18 16:24:29 +02:00
analogix-anx78xx.h drm/bridge: Add Analogix anx78xx support 2016-05-12 11:32:14 +02:00
cdns-dsi.c drm/bridge: Add Cadence DSI driver 2018-04-23 19:12:18 +02:00
dumb-vga-dac.c drm/bridge: Add timing support to dumb VGA DAC 2018-01-12 14:14:31 +05:30
Kconfig drm/bridge: Add Cadence DSI driver 2018-04-23 19:12:18 +02:00
lvds-encoder.c drm/bridge: Fix lvds-encoder since the panel_bridge rework. 2017-11-30 11:03:45 +05:30
Makefile drm/bridge: Add Cadence DSI driver 2018-04-23 19:12:18 +02:00
megachips-stdpxxxx-ge-b850v3-fw.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00
nxp-ptn3460.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00
panel.c drm/bridge: make drm_panel_bridge_remove more robust 2017-10-10 11:32:35 +02:00
parade-ps8622.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00
sii902x.c drm/bridge: sii902x: Retry status read after DDI I2C 2018-03-07 22:48:19 +01:00
sii9234.c drm/bridge: add Silicon Image SiI9234 driver 2017-10-06 14:28:22 +02:00
sil-sii8620.c drm/edid: Allow HDMI infoframe without VIC or S3D 2017-11-22 19:24:34 +02:00
sil-sii8620.h drm/bridge/sii8620: add HSIC initialization code 2017-02-02 15:15:30 +05:30
tc358767.c Merge tag 'drm-misc-next-2017-11-30' of git://anongit.freedesktop.org/drm/drm-misc into drm-next 2017-12-04 05:42:49 +10:00
thc63lvd1024.c drm: bridge: Add thc63lvd1024 LVDS decoder driver 2018-04-20 11:08:24 +02:00
ti-tfp410.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00