Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5623944rwb; Wed, 21 Sep 2022 10:07:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4oqRrXCG/ZcqT9D8VfWVA2RA1L0IVM+t9YQBs4bCmo2/whjYdWit5nsJ3HhaN94B0Ce/qS X-Received: by 2002:a17:90a:e552:b0:203:627b:6c6e with SMTP id ei18-20020a17090ae55200b00203627b6c6emr10361929pjb.59.1663780056444; Wed, 21 Sep 2022 10:07:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663780056; cv=none; d=google.com; s=arc-20160816; b=uKWng4nxh+SvoyZV7KO2o6JGHkxEU170dy5VQIfv06dBastX4baLr6FMT0/Qd195Ee lclUH7rmD7DI8gdjTNnLiFDI08r2hE5LvZ1okutwiDjHWT9GysI1RDoF90epo5NXKNjT bMQxmZIGxdwMerTeQFjG6mb5OAD1TVBrULBU18PMsjZJfhqdGUXq5Vqnf6CtfpnSJUJ4 RdckTQ7138HDqUENDuHpD/XsP26iNnnWBW+aaGX+y4/42xjJY+bcKhRgKPzMcCe73ick GpsCxX7EsWMC9f0fx/WWu38n5+Wh/hCuRiNoe1l/V3X4HDdokF075Be8A1/ZBBkaATH6 iesQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NjLJ8aFgjGX/+iqrX19dOAK8yTgUJ+ZwnBjNHe0b9x4=; b=01/8ovmkav2HOcFUtO1hvAvrirXMh7kTERN6R6SwCGN5y6+qqb3k6LqcBpFe/V3mdQ woGd6gVUm0CkYLKMNJSjtGo6M7FSAykvqlN40DhFEN/7Pbr7yfK9t44S58h8X2rmDtMk gqHraomfKGctnkcBf2PMTKsMLn0f5//2SX/s4RAiB64pZThw/3xBAQk3u2zRMCQ2YwpI e1aGc4v41vZT6dY+FZeA4cK6xN5KOYtLwsjdzqeLzNOWqiWD1luDJqpKcBwvb8qw8wCS GExGg3Tnhfu0euSye0cPjo4mAoLA5DQ5a11tWSttpZEbeRp+toBHP8ZleianhQR9YDAK 6jBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ib628im4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a170902da8300b00178264b5ab3si3662516plx.480.2022.09.21.10.07.24; Wed, 21 Sep 2022 10:07:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ib628im4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232026AbiIUQEk (ORCPT + 99 others); Wed, 21 Sep 2022 12:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232476AbiIUQD5 (ORCPT ); Wed, 21 Sep 2022 12:03:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4063111A32; Wed, 21 Sep 2022 08:54:38 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 985726312C; Wed, 21 Sep 2022 15:53:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA6F3C433D7; Wed, 21 Sep 2022 15:53:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663775622; bh=1/1trZGEtev77HfDDQBWBt2AT66uUUujyyAtJ++NY0E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ib628im4upBvBH/RGofSYRLW3MrTyU+Es+t8qD/rXW9/Pnu9oOw/NtxLkx9R83MVp ueR5EMUQliTmRD3Jr2eN0Iz+PDbbrnYbpEmeXwjI+obJpmUGAHc/n69c+zlfOZQejp gBeLPjNrzV6KTc9zyc0s0PHze/FO2YpjAH2QPIF88tjPbyflZJ6mZtnNxqMQU7NINK +E2U6BT5WEqd8WIG8ITAflfINGl9LGEPA3MBWHEayJrMeolaj2gkONe3i3o8eEbzKG 0DPd9FrLGIrKOywrSJZojxIoJdU835WoMz/dA5Ql1SPe3/XMswC/vCr+eIVav1eFEy DoKTRntg+8KKQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Hamza Mahfooz , Alex Deucher , Sasha Levin , christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, guchun.chen@amd.com, aurabindo.pillai@amd.com, evan.quan@amd.com, seanpaul@chromium.org, contact@emersion.fr, greenfoo@u92.eu, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.19 07/16] drm/amdgpu: use dirty framebuffer helper Date: Wed, 21 Sep 2022 11:53:23 -0400 Message-Id: <20220921155332.234913-7-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220921155332.234913-1-sashal@kernel.org> References: <20220921155332.234913-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 4dfd6724b3ca..3451147beda3 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 @@ -493,6 +494,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