summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNirmoy Das <nirmoy.das@amd.com>2021-03-08 17:22:22 +0300
committerAlex Deucher <alexander.deucher@amd.com>2021-03-11 00:19:47 +0300
commit521f04f9e3ffc73ef96c776035f8a0a31b4cdd81 (patch)
tree207af1e0d4742c21a23f7862cc5328880c78ef64 /drivers
parenteda29602f1a8b2b32d8c8c354232d9d1ee1c064d (diff)
downloadlinux-521f04f9e3ffc73ef96c776035f8a0a31b4cdd81.tar.xz
drm/amdgpu: fb BO should be ttm_bo_type_device
FB BO should not be ttm_bo_type_kernel type and amdgpufb_create_pinned_object() pins the FB BO anyway. Signed-off-by: Nirmoy Das <nirmoy.das@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
index 51cd49c6f38f..24010cacf7d0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
@@ -146,7 +146,7 @@ static int amdgpufb_create_pinned_object(struct amdgpu_fbdev *rfbdev,
size = mode_cmd->pitches[0] * height;
aligned_size = ALIGN(size, PAGE_SIZE);
ret = amdgpu_gem_object_create(adev, aligned_size, 0, domain, flags,
- ttm_bo_type_kernel, NULL, &gobj);
+ ttm_bo_type_device, NULL, &gobj);
if (ret) {
pr_err("failed to allocate framebuffer (%d)\n", aligned_size);
return -ENOMEM;