Skip to content

drm/i915: Avoid early timeout due to wait_for_atomic

Imre Deak intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/i915/bxt: Avoid early timeout during PLL enabledrivers/gpu/drm/i915/intel_dpll_mgr.c+2 -27 replies
2/4drm/i915/lpt: Avoid early timeout during FDI PHY resetdrivers/gpu/drm/i915/intel_display.c+4 -43 replies
3/4drm/i915/hsw: Avoid early timeout during LCPLL disable/restoredrivers/gpu/drm/i915/intel_display.c+4 -41 reply
4/4drm/i915: Avoid early timeout during AUX transfersdrivers/gpu/drm/i915/intel_dp.c+1 -11 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchTvrtko Ursulin
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] drm/i915: Avoid early timeout due to wait_for_atomic

If called from non-atomic context wait_for_atomic{,_us} can fail even though the given condition becomes true before the timeout passes. I noticed this via sporadic timeouts during PLL locking on BXT (fixed by patch 1). The WARN in wait_for_atomic would be also triggered, alas I didn't have extra debugging enabled.

host2guc_action() has the same issue. I left that as-is since it seems to be on a critical path where the overhead of the jiffies based wait_for can be considerable. Due to the relatively long 10ms timeout there this doesn't lead to early timeouts in any case.

CC Chris Wilson <[email protected]>
CC Tvrtko Ursulin <[email protected]>

Imre Deak (4):
drm/i915/bxt: Avoid early timeout during PLL enable drm/i915/lpt: Avoid early timeout during FDI PHY reset drm/i915/hsw: Avoid early timeout during LCPLL disable/restore drm/i915: Avoid early timeout during AUX transfers

 drivers/gpu/drm/i915/intel_display.c  | 16 ++++++++--------
 drivers/gpu/drm/i915/intel_dp.c       |  2 +-
 drivers/gpu/drm/i915/intel_dpll_mgr.c |  4 ++--
 3 files changed, 11 insertions(+), 11 deletions(-)
Signature · 6 lines
2.5.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx