]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: add a helper to calculate ring distance
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Jan 2026 19:49:13 +0000 (14:49 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Feb 2026 19:16:31 +0000 (14:16 -0500)
commit08e7d6c3cee880bd3ec3eb14c478f9fa805b0bdc
tree31036ecb0282a959a7ebf62dcfc3da4134b91d12
parentd8e4e77c4d5f3284cba221e3137b4cadccec2c9c
drm/amdgpu: add a helper to calculate ring distance

Add a helper to calculate the distance in DWs between
two wptrs.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h