]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ce798e9fe9282311b3ca1a10389a7a4269c1b5a
treec5380de803a37eac8fba3fc3da7a72f63099acbd
parent13116cf824e0c8485c5a5bac2dda4d4f2a17b315
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