diff options
author | Daniel Phillips <daniel.phillips@amd.com> | 2022-07-28 20:05:08 -0700 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-08-10 14:58:57 -0400 |
commit | 1ac354beecfd58e769fb5373d6b2ac87bce9e1e4 (patch) | |
tree | c5380de803a37eac8fba3fc3da7a72f63099acbd /drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | |
parent | drm/amdgpu: Remove rounding from vram allocation path (diff) | |
download | linux-dev-1ac354beecfd58e769fb5373d6b2ac87bce9e1e4.tar.xz linux-dev-1ac354beecfd58e769fb5373d6b2ac87bce9e1e4.zip |
drm/amdgpu: Pessimistic availability based on rounded up allocations
Separately accumulate a statistic of rounded up allocations to use
to report availability, with a view to increasing the likelihood a
buffer object can be successfully allocated at exactly the size
reported by the availability API.
Signed-off-by: Daniel Phillips <daniel.phillips@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h index 3c09dcc0986e..647220a8762d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h @@ -96,6 +96,7 @@ struct amdgpu_amdkfd_fence { struct amdgpu_kfd_dev { struct kfd_dev *dev; uint64_t vram_used; + uint64_t vram_used_aligned; bool init_complete; struct work_struct reset_work; }; |