Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/display: Do not report timeout on suspend
@ 2024-12-13 23:12 Jonathan Cavitt
  2024-12-14  0:16 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Jonathan Cavitt @ 2024-12-13 23:12 UTC (permalink / raw)
  To: intel-xe; +Cc: jonathan.cavitt, saurabhg.gupta, alex.zuo

In intel_dp_aux_wait_done, we call intel_de_wait_custom.  This call has
a 10ms timeout before reporting ETIMEDOUT.  However, if the display pm
runtime is suspended, then it would be expected for this call to time
out.  This may be the case, for example, during an engine reset.

Do not report ETIMEDOUT here when the pm runtime is suspended.

Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp_aux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp_aux.c b/drivers/gpu/drm/i915/display/intel_dp_aux.c
index 04a7acd7f73c..25c37398f930 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_aux.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_aux.c
@@ -66,7 +66,7 @@ intel_dp_aux_wait_done(struct intel_dp *intel_dp)
 				   0,
 				   2, timeout_ms, &status);
 
-	if (ret == -ETIMEDOUT)
+	if (ret == -ETIMEDOUT && !pm_runtime_suspended(display->drm->dev))
 		drm_err(display->drm,
 			"%s: did not complete or timeout within %ums (status 0x%08x)\n",
 			intel_dp->aux.name, timeout_ms, status);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-12-16 11:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-13 23:12 [PATCH] drm/i915/display: Do not report timeout on suspend Jonathan Cavitt
2024-12-14  0:16 ` ✓ CI.Patch_applied: success for " Patchwork
2024-12-14  0:16 ` ✓ CI.checkpatch: " Patchwork
2024-12-14  0:17 ` ✓ CI.KUnit: " Patchwork
2024-12-14  0:35 ` ✓ CI.Build: " Patchwork
2024-12-14  0:37 ` ✓ CI.Hooks: " Patchwork
2024-12-14  0:39 ` ✓ CI.checksparse: " Patchwork
2024-12-14  1:15 ` ✓ Xe.CI.BAT: " Patchwork
2024-12-14 19:35 ` ✗ Xe.CI.Full: failure " Patchwork
2024-12-16 11:28 ` [PATCH] " Jani Nikula
2024-12-16 11:28 ` Jani Nikula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox