Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3419530pxf; Mon, 29 Mar 2021 01:30:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+3iYii6gXBFF2QkaZ7gDxGU7i3pwC1VaxlDh4DqmvPkngJJqb2rrxcPLn40lUShvr/cI2 X-Received: by 2002:a17:906:2cd1:: with SMTP id r17mr27089407ejr.429.1617006645533; Mon, 29 Mar 2021 01:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617006645; cv=none; d=google.com; s=arc-20160816; b=HBeB/oxfte0Pc3ivIH6e80mPHMyTTH7ZXnYkZfb99bT6QFIAwzi+YFuNWgPRsr7CtW lbtslUP6r7aNGR/fCuUqNTsioqWhKlTHp1wisBUoCozktd0BCkaTA1FWYTvzgveZNutL t5YACH7Q4rQZcgY0kx64zDKwGtcTskHWaBPB1p6GEN/aX+IICSa123RmZrBh1ZEnLmLL 43vd+oq1Sf5Gp6RaAyYpBbqiJUeBcs9rHx+8clX0zpEwF2IMn8746p4S+npTOhrhnhUc VDVvR86vgnF25G/urQUL0nBvS6bRFQ0qE0AuLMI2Rrd+Ec/fkK57C+uwqNXEj3MkLD5I RT0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sJGemlFz2BwjIE0uX6HX4oKmdvOinoaq3MWCy1QN1Ak=; b=mOSsKYbrqfOiiOGLo9vB0nvh5a4JqykLdsDOUawI/4hCJhuGOI07ITYXdVn8fr7mru yKSUgf40NlD/VII1ia3WwZ4ywHMZAdIjfSV/MtCHgvLhVAUBUYNqsFW9OezH1rTdWX07 nc+sv5iajcXBpeWzT7mKkzXDwKz4dZty0uYLuyPbAN6zeZtpnJ3dsQ0m9nlfKF01sVFV QfZ8Sj+MjZSFaLBbMQgxRWQ3Yd0hBgH/CHCa26Yv+Jb4eRrZe7jEq+0GrnZfGIoRMO/q DleNRYyioYltE1tKopWqYFnzUU4gS1WLsgKTxEqmvSnyJf4iO37wfXt5BiWaqK7u1z9l ZphQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Lf357h9+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h7si12610919edt.553.2021.03.29.01.30.22; Mon, 29 Mar 2021 01:30:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Lf357h9+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234549AbhC2I2m (ORCPT + 99 others); Mon, 29 Mar 2021 04:28:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:34264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232764AbhC2IST (ORCPT ); Mon, 29 Mar 2021 04:18:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2407F61932; Mon, 29 Mar 2021 08:18:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617005892; bh=6tv68FGLqvBJOuuHzZh4lgqMBl8erwIjzi2VaN4TVs0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lf357h9+n2nXrPTTTI8Ka6NzHQNq13LZPC3ynqtH1G2xU5x0BcX5oUn+sXmo19QxA 1ne1CmyTFZKUuJcXFeAB34o4DNAwjYViii8H0TBrY+bCS408ePFELqkAVKEIdYNqBZ tp1EQmbwnBsaYE1sYO94poJTXXREzerOzoF8Rg4I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nirmoy Das , =?UTF-8?q?Christian=20K=C3=B6nig?= , Alex Deucher , Sasha Levin Subject: [PATCH 5.10 043/221] drm/amdgpu: fb BO should be ttm_bo_type_device Date: Mon, 29 Mar 2021 09:56:14 +0200 Message-Id: <20210329075630.615559768@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nirmoy Das [ 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 Acked-by: Christian König Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- 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 e2c2eb45a793..1ea8af48ae2f 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