winsys/amdgpu: expand the slab allocation range to [256 B, 1 MB]
authorMarek Olšák <marek.olsak@amd.com>
Sun, 24 Jan 2021 06:14:54 +0000 (01:14 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 3 Feb 2021 21:53:34 +0000 (21:53 +0000)
commit586f1397133f2d918fc440c6bfce858d73f5cb80
treebd88fbdf3d369f2ef9edb0a358db6e7ef36a9733
parente97af11ba95f2563579414c4c68f2cbd5af4928b
winsys/amdgpu: expand the slab allocation range to [256 B, 1 MB]

This increases the wasted memory to 140 MB for DeusExMD, still below
the original number. The advantage is that we now get 2 MB pages for more
buffers and fewer total buffers allocated by the kernel, enabling faster
GPU page translation and slightly lower kernel overhead.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8683>
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c