diff options
| author | Emily Deng <[email protected]> | 2025-03-03 07:10:22 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-03-07 17:53:30 +0000 |
| commit | fe2fa3be3d59ba67d6de54a0064441ec233cb50c (patch) | |
| tree | dedb96478040c7227af57ee186da56184677aad8 /drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h | |
| parent | drm/amdgpu: Do not set power brake sequence for Aldebaran SRIOV (diff) | |
| download | kernel-fe2fa3be3d59ba67d6de54a0064441ec233cb50c.tar.gz kernel-fe2fa3be3d59ba67d6de54a0064441ec233cb50c.zip | |
drm/amdgpu: Fix missing drain retry fault the last entry
While the entry get in svm_range_unmap_from_cpu is the last entry, and
the entry is page fault, it also need to be dropped. So for equal case,
it also need to be dropped.
v2:
Only modify the svm_range_restore_pages.
Signed-off-by: Emily Deng <[email protected]>
Reviewed-by: Xiaogang Chen<[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h index 7d4395a5d8ac..b0a88f92cd82 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.h @@ -78,6 +78,9 @@ struct amdgpu_ih_ring { #define amdgpu_ih_ts_after(t1, t2) \ (((int64_t)((t2) << 16) - (int64_t)((t1) << 16)) > 0LL) +#define amdgpu_ih_ts_after_or_equal(t1, t2) \ + (((int64_t)((t2) << 16) - (int64_t)((t1) << 16)) >= 0LL) + /* provided by the ih block */ struct amdgpu_ih_funcs { /* ring read/write ptr handling, called from interrupt context */ |
