]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: try allocating VRAM as power of two
authorChristian König <christian.koenig@amd.com>
Fri, 7 Sep 2018 12:27:05 +0000 (14:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Sep 2018 21:28:28 +0000 (16:28 -0500)
commitf9855355ae7f14fd47e7898daa5a155214e8781f
tree5d2f6af92f9c2c200534ab2f8ea778018507192a
parent1fb4c1dc7de779f784a2830ca34ef61fe5c602f3
drm/amdgpu: try allocating VRAM as power of two

Try to allocate VRAM in power of two sizes and only fallback to vram
split sizes if that fails.

Signed-off-by: Christian König <christian.koenig@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_vram_mgr.c