On Tue, 15 Sep 2026 16:42:15 -0300, Maíra Canal wrote:
> DRM wait ioctls express their timeout in one of two ways: as an absolute
> deadline in ns, or as a duration in ns. The core has a helper for the first
> form, drm_timeout_abs_to_jiffies(), which panfrost, lima, tegra, xe and
> some accel drivers use. However, there is no equivalent for the second
> form, so the drivers that take a duration convert it themselves.
> 
> For example, i915 has a local helper to handle the relative timeout case,
> and v3d carries a copy of it. This series moves that conversion into a DRM
> helper called drm_timeout_rel_to_jiffies(), next to the absolute variant,
> and converts the drivers that were open-coding either form.
> 
> [...]

Applied to drm-misc-next with Jani's suggestions applied to the first
two commit messages. Thanks for all the reviews!

[1/7] drm: Move drm_timeout_abs_to_jiffies() to drm_timeout.c
      commit: ae72b9c39d280e02b1c9e6c91f1f7dd23b550a85
[2/7] drm: Add drm_timeout_rel_to_jiffies()
      commit: 421cf7ccfc61cb990f38d671ddfe3a901519e21d
[3/7] drm/amdgpu: Use drm_timeout_abs_to_jiffies()
      commit: 5ce81ba29a4cfbce8be5cc2999292f2fc3962031
[4/7] drm/v3d: Use drm_timeout_rel_to_jiffies()
      commit: 226666556a9b3b51f04f9dad83662e5b9c78a325
[5/7] drm/i915: Use drm_timeout_rel_to_jiffies()
      commit: a92c785f810ea330e6ae4c79b5aa0eb031ee7d65
[6/7] drm/vc4: Use drm_timeout_rel_to_jiffies()
      commit: 88b7a9fb64afd206b3aad92a96425d2b562774d4
[7/7] drm: Rename drm_utils.h to drm_panel_quirks.h
      commit: 1628e34ee666fbd8bf974c52613cf7c8f957986a

Best regards,
- Maíra

Reply via email to