Drop EDID cache for it6505/anx7625 when the bridge is powered off
Subsystems (3)
v2 cover Drop EDID cache for it6505/anx7625 when the bridge is powered off
This mainly fixes the use case when the user changes the external monitor when the system is suspended. Without this series, both of the bridges will skip the EDID read and returned the cached one after resume.
Apart from that, we also observed a DP-to-HDMI bridge expects an EDID read after it's powered on. This patch also works around the problem by always triggering the EDID read after the system resume.
Changes in v2:
- Only drop the EDID cache for anx7625 when it's not in eDP mode
- Collect review tags
Pin-yen Lin (2):
drm/bridge: anx7625: Drop EDID cache on bridge power off drm/bridge: it6505: Drop EDID cache on bridge power off
drivers/gpu/drm/bridge/analogix/anx7625.c | 2 ++ drivers/gpu/drm/bridge/ite-it6505.c | 2 ++ 2 files changed, 4 insertions(+)
Signature · 1 line
2.46.0.792.g87dc391469-goog
PATCH v2 1/2 drm/bridge: anx7625: Drop EDID cache on bridge power off
The bridge might miss the display change events when it's powered off. This happens when a user changes the external monitor when the system is suspended and the embedded controller doesn't not wake AP up.
It's also observed that one DP-to-HDMI bridge doesn't work correctly when there is no EDID read after it is powered on.
Drop the cache to force an EDID read after system resume to fix this.
---
Changes in v2:
- Only drop the EDID cache for anx7625 when it's not in eDP mode
- Collect review tag
drivers/gpu/drm/bridge/analogix/anx7625.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/bridge/analogix/anx7625.c +2 -0
@@ -2561,6 +2561,8 @@ static int __maybe_unused anx7625_runtime_pm_suspend(struct device *dev)mutex_lock (&ctx->lock);anx7625_stop_dp_work (ctx); +if (!ctx->pdata.panel_bridge) +anx7625_remove_edid (ctx);anx7625_power_standby (ctx);mutex_unlock (&ctx->lock);
Signature · 1 line
2.46.0.792.g87dc391469-goog
Re: [PATCH v2 1/2] drm/bridge: anx7625: Drop EDID cache on bridge power off
Hi,
Quoted 5 lines · Pin-yen Lin
The bridge might miss the display change events when it's powered off. This happens when a user changes the external monitor when the system is suspended and the embedded controller doesn't not wake AP up.
Quoted 8 lines
It's also observed that one DP-to-HDMI bridge doesn't work correctly when there is no EDID read after it is powered on.
Drop the cache to force an EDID read after system resume to fix this.
Fixes 8bdfc5dae4e3 ("drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP")Signed-off-by Pin-yen Lin <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>
I don't think it needs a re-spin, but for future reference you're always supposed to move your own Signed-off-by to the bottom whenever you "touch" a patch. Thus yours should be below Dmitry's tag.
In any case,
If these haven't been applied and there's no other feedback at the end of next week I'll plan to apply both this and the next patch to drm-misc-fixes.
-Doug
Re: [PATCH v2 1/2] drm/bridge: anx7625: Drop EDID cache on bridge power off
Hi,
Quoted 22 lines · Doug Anderson
Hi,
Quoted 5 lines · Pin-yen Lin
The bridge might miss the display change events when it's powered off. This happens when a user changes the external monitor when the system is suspended and the embedded controller doesn't not wake AP up.
Quoted 8 lines
It's also observed that one DP-to-HDMI bridge doesn't work correctly when there is no EDID read after it is powered on.
Drop the cache to force an EDID read after system resume to fix this.
Fixes 8bdfc5dae4e3 ("drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP")Signed-off-by Pin-yen Lin <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>I don't think it needs a re-spin, but for future reference you're always supposed to move your own Signed-off-by to the bottom whenever you "touch" a patch. Thus yours should be below Dmitry's tag.
Quoted 7 lines
In any case,
Reviewed-by Douglas Anderson <[email protected]>If these haven't been applied and there's no other feedback at the end of next week I'll plan to apply both this and the next patch to drm-misc-fixes.
Dang. My brain wasn't working quite right and I pushed these to drm-misc-next instead of drm-misc-fixes. I'll assume that this is OK because the problem fixed isn't exactly new and the patch will still make it to mainline before too long. If this causes anyone problems let me know and I can also land it on drm-misc-fixes.
[1/2] drm/bridge: anx7625: Drop EDID cache on bridge power off
commit: 00ae002116a14c2e6a342c4c9ae080cdbb9b4b21
-Doug
PATCH v2 2/2 drm/bridge: it6505: Drop EDID cache on bridge power off
In reply to Pin-yen LinThe bridge might miss the display change events when it's powered off. This happens when a user changes the external monitor when the system is suspended and the embedded controller doesn't not wake AP up.
It's also observed that one DP-to-HDMI bridge doesn't work correctly when there is no EDID read after it is powered on.
Drop the cache to force an EDID read after system resume to fix this.
---
Changes in v2:
- Collect review tags
drivers/gpu/drm/bridge/ite-it6505.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/bridge/ite-it6505.c +2 -0
@@ -3101,6 +3101,8 @@ static __maybe_unused int it6505_bridge_suspend(struct device *dev) {struct it6505 *it6505 =dev_get_drvdata (dev); +it6505_remove_edid (it6505); +return it6505_poweroff (it6505); }
Signature · 1 line
2.46.0.792.g87dc391469-goog
Re: [PATCH v2 2/2] drm/bridge: it6505: Drop EDID cache on bridge power off
Hi,
Quoted 15 lines · Pin-yen Lin
The bridge might miss the display change events when it's powered off. This happens when a user changes the external monitor when the system is suspended and the embedded controller doesn't not wake AP up.
It's also observed that one DP-to-HDMI bridge doesn't work correctly when there is no EDID read after it is powered on.
Drop the cache to force an EDID read after system resume to fix this.
Fixes 11feaef69d0c ("drm/bridge: it6505: Add caching for EDID")Signed-off-by Pin-yen Lin <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>Reviewed-by Douglas Anderson <[email protected]>
Quoted 7 lines
---
Changes in v2:
- Collect review tagsdrivers/gpu/drm/bridge/ite-it6505.c | 2 ++ 1 file changed, 2 insertions(+)
Like with patch #1, meant to push to drm-misc-fixes but ended up on drm-misc-next. Yell if this is a problem, but I think it should be OK.
[2/2] drm/bridge: it6505: Drop EDID cache on bridge power off
commit: 574c558ddb68591c9a4b7a95e45e935ab22c0fc6
-Doug