diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4373-drm-ttm-remove-priority-hard-code-when-initializing-.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/4373-drm-ttm-remove-priority-hard-code-when-initializing-.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4373-drm-ttm-remove-priority-hard-code-when-initializing-.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4373-drm-ttm-remove-priority-hard-code-when-initializing-.patch new file mode 100644 index 00000000..8290bafc --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4373-drm-ttm-remove-priority-hard-code-when-initializing-.patch @@ -0,0 +1,35 @@ +From 022f519b9a7ff93526a316db8ee56760625e0031 Mon Sep 17 00:00:00 2001 +From: Junwei Zhang <Jerry.Zhang@amd.com> +Date: Fri, 11 May 2018 10:54:40 +0800 +Subject: [PATCH 4373/5725] drm/ttm: remove priority hard code when + initializing ttm bo +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Then priority could be set before initialization. +By default, it requires to kzalloc ttm bo. In fact, we always do so. + +Change-Id: I5d159e899d9f51afc66231b320be8b6ccadc1a52 +Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com> +Reviewed-by: David Zhou <david1.zhou@amd.com> +Reviewed-by: Christian König <christian.koenig@amd.com> +--- + drivers/gpu/drm/ttm/ttm_bo.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c +index 7f0f16b..d741f18 100644 +--- a/drivers/gpu/drm/ttm/ttm_bo.c ++++ b/drivers/gpu/drm/ttm/ttm_bo.c +@@ -1180,7 +1180,6 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev, + reservation_object_init(&bo->ttm_resv); + atomic_inc(&bo->bdev->glob->bo_count); + drm_vma_node_reset(&bo->vma_node); +- bo->priority = 0; + + /* + * For ttm_bo_type_device buffers, allocate +-- +2.7.4 + |