On Wed, 05 Nov 2025, Ville Syrjala <[email protected]> wrote:
> From: Ville Syrjälä <[email protected]>
>
> 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().
>
> Signed-off-by: Ville Syrjälä <[email protected]>

Reviewed-by: Jani Nikula <[email protected]>

> ---
>  drivers/gpu/drm/i915/display/intel_pmdemand.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_pmdemand.c 
> b/drivers/gpu/drm/i915/display/intel_pmdemand.c
> index f52abd4e2eb0..22d8f720ae7d 100644
> --- a/drivers/gpu/drm/i915/display/intel_pmdemand.c
> +++ b/drivers/gpu/drm/i915/display/intel_pmdemand.c
> @@ -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,

-- 
Jani Nikula, Intel

Reply via email to