]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add new bo flag that indicates BOs don't need fallback (v2)
authorChunming Zhou <david1.zhou@amd.com>
Mon, 2 Apr 2018 03:20:44 +0000 (11:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Apr 2018 18:08:01 +0000 (13:08 -0500)
commitc147c8fc6efe729fd23cb9654c91d85d955b6c24
treea274b24b9c9c11789520e585265eb939fe11d83b
parent330580fe35258d5941acef76bf8b592b67e0e838
drm/amdgpu: add new bo flag that indicates BOs don't need fallback (v2)

user cases:
1. KFD wraps amdgpu_bo_create, they have no fallback case which is different
with amdgpu_gem_object_create.
since upstream branch has no amdgpu_amdkfd_gpuvm.c, which need KFD
guys add this flag to __alloc_memory_of_gpu:
+       flags |= AMDGPU_GEM_CREATE_NO_FALLBACK;
2. UMD can specify this flag for their allocation as well if they like.

v2: squash in merge conflict fix (Chunming)

Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Cc: felix.kuehling@amd.com
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
include/uapi/drm/amdgpu_drm.h