]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Introduce cached_rptr and is_guilty callback in amdgpu_ring
authorJesse.zhang@amd.com <Jesse.zhang@amd.com>
Thu, 13 Feb 2025 02:30:07 +0000 (10:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2025 16:43:59 +0000 (11:43 -0500)
commit4d3c4f4f7f22670ae7163b5f9bd6cfea28c2efc6
tree99431b177dc52eef0a5809d625e759098b29b64d
parent4c02f730165765ad412a1ce8de6ea0d7abc7a333
drm/amdgpu: Introduce cached_rptr and is_guilty callback in amdgpu_ring

This patch introduces the following changes:
- Add `cached_rptr` to the `amdgpu_ring` structure to store the read pointer before a reset.
- Add `is_guilty` callback to the `amdgpu_ring_funcs` structure to check if a ring is guilty of causing a timeout.

Suggested-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h