]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Consolidate duplicated bo alloc flags
authorYong Zhao <Yong.Zhao@amd.com>
Wed, 4 Mar 2020 17:38:59 +0000 (12:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Mar 2020 19:54:34 +0000 (15:54 -0400)
commit90e414151c7bedd7d8d7053a5fe68f9125bf621a
tree4b16588c01712add87c488d8a9b234d8a7af5e3d
parentfc3bed8ee14f572089af95a0ac63090748a98a99
drm/amdkfd: Consolidate duplicated bo alloc flags

ALLOC_MEM_FLAGS_* used are the same as the KFD_IOC_ALLOC_MEM_FLAGS_*,
but they are interweavedly used in kernel driver, resulting in bad
readability. For example, KFD_IOC_ALLOC_MEM_FLAGS_COHERENT is not
referenced in kernel, and it functions implicitly in kernel through
ALLOC_MEM_FLAGS_COHERENT, causing unnecessary confusion.

Replace all occurrences of ALLOC_MEM_FLAGS_* with
KFD_IOC_ALLOC_MEM_FLAGS_* to solve the problem.

Signed-off-by: Yong Zhao <Yong.Zhao@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_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
drivers/gpu/drm/amd/amdkfd/kfd_process.c
drivers/gpu/drm/amd/include/kgd_kfd_interface.h