lkml.org 
[lkml]   [2021]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 030/111] drm/amdgpu: fb BO should be ttm_bo_type_device
    Date
    From: Nirmoy Das <nirmoy.das@amd.com>

    [ Upstream commit 521f04f9e3ffc73ef96c776035f8a0a31b4cdd81 ]

    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>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
    index eaa5e7b7c19d..fd94a17fb2c6 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;
    --
    2.30.1


    \
     
     \ /
      Last update: 2021-03-29 10:40    [W:4.922 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site