]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/pmdemand: Use the default 2 usec fast polling timeout
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 6 Nov 2025 15:20:49 +0000 (17:20 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 7 Nov 2025 18:29:44 +0000 (20:29 +0200)
For whatever unknown reason the pmdemand code is using a custom
50 usec fast polling timeout instead of the normal 2 usec
value. Switch to the standard value to get rid of the special
case.

The eventual aim is to get rid of the fast vs. slow timeout
entirely and switch over to poll_timeout_us().

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20251106152049.21115-11-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_pmdemand.c

index f52abd4e2eb0c1dba691d7752dd4e16d4ab34cb7..22d8f720ae7df915711fe1c6bb6bd8dd2f062492 100644 (file)
@@ -464,7 +464,7 @@ static void intel_pmdemand_poll(struct intel_display *display)
 
        ret = intel_de_wait_custom(display, XELPDP_INITIATE_PMDEMAND_REQUEST(1),
                                   XELPDP_PMDEMAND_REQ_ENABLE, 0,
-                                  50, timeout_ms, &status);
+                                  2, timeout_ms, &status);
 
        if (ret == -ETIMEDOUT)
                drm_err(display->drm,