[PATCH 01/35] drm/amd/display: Use udelay when waiting between aux retries

Wentland, Harry Harry.Wentland at amd.com
Fri Feb 1 19:16:17 UTC 2019


On 2019-02-01 12:31 p.m., sylvain.bertrand at gmail.com wrote:
> On Fri, Feb 01, 2019 at 10:28:13AM -0500, Bhawanpreet Lakha wrote:
>> From: John Barberiz <John.Barberiz at amd.com>
>> [How]
>> msleep is inaccurate for small values. Used udelay
>> instead for accuracy.
> 
> Hi,
> 
> Should it be the case for non-DC displayport code too?
> 

I don't think we're actually using this code on Linux. It's part of the shared codebase with Windows. Apparently there msleep would often sleep longer than 1ms.

drm_dp_dpcd_access already has a tighter bound on the sleep between retries (500-600 us), so I imagine we're fine there.

Harry

> regards,
> 


More information about the amd-gfx mailing list