OSDN Git Service

drm/amdgpu: Pessimistic availability based on rounded up allocations
authorDaniel Phillips <daniel.phillips@amd.com>
Fri, 29 Jul 2022 03:05:08 +0000 (20:05 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Aug 2022 18:58:57 +0000 (14:58 -0400)
commit1ac354beecfd58e769fb5373d6b2ac87bce9e1e4
treec5380de803a37eac8fba3fc3da7a72f63099acbd
parentaec208eecfb833b05597bbc28696fb1ab62f732c
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c