summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2021-02-05 16:17:07 +0100
committerChristian König <christian.koenig@amd.com>2021-04-23 16:23:02 +0200
commitc777dc9e793342ecdfc95045d2127a3ea32791a0 (patch)
tree19374d31192d8143db67d3576dd389974f6dd306 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
parent65747ded86b4608387d5618d14f0fe9dc88e17ea (diff)
downloadlinux-stable-c777dc9e793342ecdfc95045d2127a3ea32791a0.tar.gz
linux-stable-c777dc9e793342ecdfc95045d2127a3ea32791a0.tar.bz2
linux-stable-c777dc9e793342ecdfc95045d2127a3ea32791a0.zip
drm/ttm: move the page_alignment into the BO v2
The alignment is a constant property and shouldn't change. v2: move documentation as well as suggested by Matthew. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210413135248.1266-4-christian.koenig@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
index 9ac37569823f..ae4a68db87c0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
@@ -184,7 +184,7 @@ static inline unsigned amdgpu_bo_ngpu_pages(struct amdgpu_bo *bo)
static inline unsigned amdgpu_bo_gpu_page_alignment(struct amdgpu_bo *bo)
{
- return (bo->tbo.mem.page_alignment << PAGE_SHIFT) / AMDGPU_GPU_PAGE_SIZE;
+ return (bo->tbo.page_alignment << PAGE_SHIFT) / AMDGPU_GPU_PAGE_SIZE;
}
/**