drm/amdgpu: Rework retry fault removal
authorMukul Joshi <mukul.joshi@amd.com>
Tue, 11 Apr 2023 20:32:38 +0000 (16:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Apr 2023 04:14:24 +0000 (00:14 -0400)
commitdd299441654fd8209056c7985ddf2373ebaba6ed
treede0f5e5597e9deda68821a0c623c7bdc499d8ab9
parent318e431b306e966d2ee99e900a11bdc9a701ee83
drm/amdgpu: Rework retry fault removal

Rework retry fault removal from the software filter by
storing an expired timestamp for a fault that is being removed.
When a new fault comes, and it matches an entry in the sw filter,
it will be added as a new fault only when its timestamp is greater
than the timestamp expiry of the fault in the sw filter.
This helps in avoiding stale faults being added back into the
filter and preventing legitimate faults from being handled.

Suggested-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h