diff options
author | Christian König <christian.koenig@amd.com> | 2021-02-05 16:17:07 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2021-04-23 16:23:02 +0200 |
commit | c777dc9e793342ecdfc95045d2127a3ea32791a0 (patch) | |
tree | 19374d31192d8143db67d3576dd389974f6dd306 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | 65747ded86b4608387d5618d14f0fe9dc88e17ea (diff) | |
download | linux-c777dc9e793342ecdfc95045d2127a3ea32791a0.tar.gz linux-c777dc9e793342ecdfc95045d2127a3ea32791a0.tar.bz2 linux-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_gem.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index b443907afcea..f1c397be383d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c @@ -763,7 +763,7 @@ int amdgpu_gem_op_ioctl(struct drm_device *dev, void *data, void __user *out = u64_to_user_ptr(args->value); info.bo_size = robj->tbo.base.size; - info.alignment = robj->tbo.mem.page_alignment << PAGE_SHIFT; + info.alignment = robj->tbo.page_alignment << PAGE_SHIFT; info.domains = robj->preferred_domains; info.domain_flags = robj->flags; amdgpu_bo_unreserve(robj); |