mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-10-26 10:57:38 +08:00
v3d carried an exact copy of i915's nsecs_to_jiffies_timeout(). Now that the conversion lives in "drm_timeout.c", drop the copy and use it. The core helper also returns 0 for a zero timeout. i915 has that check in to_wait_timeout(), but v3d only ever copied the conversion, so DRM_IOCTL_V3D_WAIT_BO with timeout_ns == 0 was turned into a one jiffy wait and could block for a tick before reporting -ETIME. It now returns without waiting. Acked-by: Christian König <christian.koenig@amd.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patch.msgid.link/20260915-drm-timeout-helpers-v3-4-f2ae987d861f@igalia.com Signed-off-by: Maíra Canal <mcanal@igalia.com>