Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E779EC6FA82 for ; Wed, 21 Sep 2022 15:54:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EAE0110E9B4; Wed, 21 Sep 2022 15:54:20 +0000 (UTC) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by gabe.freedesktop.org (Postfix) with ESMTPS id 30E8610E9AC; Wed, 21 Sep 2022 15:54:17 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BC46FB830D5; Wed, 21 Sep 2022 15:54:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BB25C43140; Wed, 21 Sep 2022 15:54:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663775654; bh=A3CykcyFmb5dPc3EiCtbcYody8l3T4oCjQVp3ikh9dg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a9/QuP1nnP9xNxG4c9+IwxjfSN4CC5YscxjJpR+BVkusI5eEAP1CLTnC7glRvmuXK nrWU0CfHfaE5PnGD1RmVZnAESg65WAdpLh7llmBnXL8TCvlqdYek19e6mCW9dc5pVy 1mL4FbV/jvYwx69dWTZOjfjPMmKWTpaLBLWYkZCXxOCg02dAIFFAMFsmUxzoJj636v Oq2rIPhshqs4iNbzHIEtdZdaQIodE+wNRyT2u4qBpABwIgcuD6GbDnTxGl11xfDp9u UzZRNub26oqcULTKAf1TdHiCbKUBJuhY4d8AC9Tdy+GMPjQLjdSp2LCdt+fv/oZKhn y2aub8JhpqQxg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 05/10] drm/amdgpu: use dirty framebuffer helper Date: Wed, 21 Sep 2022 11:54:02 -0400 Message-Id: <20220921155407.235132-5-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220921155407.235132-1-sashal@kernel.org> References: <20220921155407.235132-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sasha Levin , guchun.chen@amd.com, airlied@linux.ie, contact@emersion.fr, dri-devel@lists.freedesktop.org, Xinhui.Pan@amd.com, amd-gfx@lists.freedesktop.org, aurabindo.pillai@amd.com, seanpaul@chromium.org, Hamza Mahfooz , daniel@ffwll.ch, Alex Deucher , evan.quan@amd.com, christian.koenig@amd.com, greenfoo@u92.eu Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" From: Hamza Mahfooz [ Upstream commit 66f99628eb24409cb8feb5061f78283c8b65f820 ] Currently, we aren't handling DRM_IOCTL_MODE_DIRTYFB. So, use drm_atomic_helper_dirtyfb() as the dirty callback in the amdgpu_fb_funcs struct. Signed-off-by: Hamza Mahfooz Acked-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c index 5c08047adb59..47fb722ab374 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include @@ -490,6 +491,7 @@ bool amdgpu_display_ddc_probe(struct amdgpu_connector *amdgpu_connector, static const struct drm_framebuffer_funcs amdgpu_fb_funcs = { .destroy = drm_gem_fb_destroy, .create_handle = drm_gem_fb_create_handle, + .dirty = drm_atomic_helper_dirtyfb, }; uint32_t amdgpu_display_supported_domains(struct amdgpu_device *adev, -- 2.35.1