diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2796-drm-amdgpu-allow-non-pot-VM-size-values.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2796-drm-amdgpu-allow-non-pot-VM-size-values.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2796-drm-amdgpu-allow-non-pot-VM-size-values.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2796-drm-amdgpu-allow-non-pot-VM-size-values.patch new file mode 100644 index 00000000..3e56ffda --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2796-drm-amdgpu-allow-non-pot-VM-size-values.patch @@ -0,0 +1,37 @@ +From 508025d84ec0634ec0ec563c17573fd7bcee4222 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> +Date: Thu, 23 Nov 2017 11:23:18 +0100 +Subject: [PATCH 2796/4131] drm/amdgpu: allow non pot VM size values +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The VM size actually doesn't need to be a power of two. + +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_device.c | 6 ------ + 1 file changed, 6 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +index 808ca47..8aae933 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +@@ -1112,12 +1112,6 @@ static void amdgpu_check_vm_size(struct amdgpu_device *adev) + if (amdgpu_vm_size == -1) + return; + +- if (!is_power_of_2(amdgpu_vm_size)) { +- dev_warn(adev->dev, "VM size (%d) must be a power of 2\n", +- amdgpu_vm_size); +- goto def_value; +- } +- + if (amdgpu_vm_size < 1) { + dev_warn(adev->dev, "VM size (%d) too small, min is 1GB\n", + amdgpu_vm_size); +-- +2.7.4 + |