diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/0369-drm-amdgpu-remove-amdgpu_bo_list_entry.robj-for-rele.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/0369-drm-amdgpu-remove-amdgpu_bo_list_entry.robj-for-rele.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/0369-drm-amdgpu-remove-amdgpu_bo_list_entry.robj-for-rele.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/0369-drm-amdgpu-remove-amdgpu_bo_list_entry.robj-for-rele.patch new file mode 100644 index 00000000..5987730a --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/0369-drm-amdgpu-remove-amdgpu_bo_list_entry.robj-for-rele.patch @@ -0,0 +1,35 @@ +From 9c1f9b7ee0846ab0906f65ec0464c7d44eb888ee Mon Sep 17 00:00:00 2001 +From: Prike Liang <Prike.Liang@amd.com> +Date: Thu, 20 Sep 2018 13:32:10 +0800 +Subject: [PATCH 0369/2940] drm/amdgpu:remove amdgpu_bo_list_entry.robj for + release_pages + +Change-Id: I7574db0f5e355a400bf023b8bc41775068217fd5 +Signed-off-by: Prike Liang <Prike.Liang@amd.com> +Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> +Signed-off-by: Kalyan Alle <kalyan.alle@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +index 48a898de5c7a..3c5fbbd65aba 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +@@ -748,11 +748,12 @@ static int amdgpu_cs_parser_bos(struct amdgpu_cs_parser *p, + error_free_pages: + + amdgpu_bo_list_for_each_userptr_entry(e, p->bo_list) { ++ struct amdgpu_bo *bo = ttm_to_amdgpu_bo(e->tv.bo); + if (!e->user_pages) + continue; + + release_pages(e->user_pages, +- e->robj->tbo.ttm->num_pages); ++ bo->tbo.ttm->num_pages); + kvfree(e->user_pages); + } + +-- +2.17.1 + |