diff options
author | 2020-03-04 12:38:59 -0500 | |
---|---|---|
committer | 2020-03-10 15:54:34 -0400 | |
commit | 1d251d90080a2721e97550973ab5efe772bc56bf (patch) | |
tree | 4b16588c01712add87c488d8a9b234d8a7af5e3d /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | drm/amdkfd: Use pr_debug to print the message of reaching event limit (diff) | |
download | linux-rng-1d251d90080a2721e97550973ab5efe772bc56bf.tar.xz linux-rng-1d251d90080a2721e97550973ab5efe772bc56bf.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions