[Intel-gfx] [PATCH] drm/i915/dp: Don't invalidate intel_dp_detect result

Rodrigo Vivi rodrigo.vivi at gmail.com
Wed Aug 23 23:00:19 UTC 2017


On Wed, Aug 23, 2017 at 3:40 PM, Puthikorn Voravootivat
<puthik at chromium.org> wrote:
> If the full detect is already done, we shouldn't need to do it
> again.
>
> This fixes the screen blinking issue that happen when calling
> DRM_IOCTL_MODE_GETCONNECTOR while PSR is active. The blinking
> is caused by full dp detect in intel_dp_long_pulse().
>
> Signed-off-by: Puthikorn Voravootivat <puthik at chromium.org>
> ---
>  drivers/gpu/drm/i915/intel_dp.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> index d3e5fdf0d2fa..152e7016d5f2 100644
> --- a/drivers/gpu/drm/i915/intel_dp.c
> +++ b/drivers/gpu/drm/i915/intel_dp.c
> @@ -4834,8 +4834,6 @@ intel_dp_detect(struct drm_connector *connector,
>         if (!intel_dp->detect_done)
>                 status = intel_dp_long_pulse(intel_dp->attached_connector);
>
> -       intel_dp->detect_done = false;
> -

something tells me that this will break other existent cases...
one case I imagine is changing the DP panel... maybe the MST case as well..

what about instead of removing this "detect_done=false" like we move
to another place like whenever conector is disconected?

looking to original commit:
commit 7d23e3c37bb3fc6952dc84007ee60cb533fd2d5c
Author: Shubhangi Shrivastava <shubhangi.shrivastava at intel.com>

let's cc few people here to see if they have something to say...



>         return status;
>  }
>
> --
> 2.14.1.342.g6490525c54-goog
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx



-- 
Rodrigo Vivi
Blog: http://blog.vivi.eng.br


More information about the Intel-gfx mailing list