diff options
author | Matthew Auld <matthew.auld@intel.com> | 2021-09-29 14:26:27 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-09-29 16:17:56 +0200 |
commit | 43d46f0b78bba5dc5ffb6f1b9a1d4c8d0c5dd1fc (patch) | |
tree | e68da04a0d627a23390d7add85dec9827f11686f /drivers/gpu/drm/ttm/ttm_pool.c | |
parent | d0f5d790ae863079025398015eb59347b01db455 (diff) | |
download | linux-43d46f0b78bba5dc5ffb6f1b9a1d4c8d0c5dd1fc.tar.gz linux-43d46f0b78bba5dc5ffb6f1b9a1d4c8d0c5dd1fc.tar.bz2 linux-43d46f0b78bba5dc5ffb6f1b9a1d4c8d0c5dd1fc.zip |
drm/ttm: s/FLAG_SG/FLAG_EXTERNAL/
It covers more than just ttm_bo_type_sg usage, like with say dma-buf,
since one other user is userptr in amdgpu, and in the future we might
have some more. Hence EXTERNAL is likely a more suitable name.
v2(Christian):
- Rename these to TTM_TT_FLAGS_*
- Fix up all the holes in the flag values
Suggested-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Christian König <christian.koenig@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210929132629.353541-1-matthew.auld@intel.com
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_pool.c')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_pool.c b/drivers/gpu/drm/ttm/ttm_pool.c index c961a788b519..1bba0a0ed3f9 100644 --- a/drivers/gpu/drm/ttm/ttm_pool.c +++ b/drivers/gpu/drm/ttm/ttm_pool.c @@ -371,7 +371,7 @@ int ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, WARN_ON(!num_pages || ttm_tt_is_populated(tt)); WARN_ON(dma_addr && !pool->dev); - if (tt->page_flags & TTM_PAGE_FLAG_ZERO_ALLOC) + if (tt->page_flags & TTM_TT_FLAG_ZERO_ALLOC) gfp_flags |= __GFP_ZERO; if (ctx->gfp_retry_mayfail) |