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)
commit433ca054949a6c9daac0ace1be5c33b25092bffa
tree5d2f6af92f9c2c200534ab2f8ea778018507192a
parentd8de8260a45aae8f74af77eae9a162bdc0ed48d2
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