Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp916675lqs; Fri, 14 Jun 2024 09:10:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZqCFi6IuGgj4nlscIiV+ntXGVjY3xJJfzXK3INAISP1lo0TgemVqwBTJocApfmdWt15pTBs7zFdpSkWvRa4L3Y0l0yQ4n2OjiGLYgwA== X-Google-Smtp-Source: AGHT+IFynXALjXrfnSRUgoK/ucXycDbNSm/vjcY2/pFJDWZJqPbXsZtCgaD9eBDmHxNvaP1lNDKh X-Received: by 2002:a17:90b:1205:b0:2c4:a9b2:d4e9 with SMTP id 98e67ed59e1d1-2c4dba4ce50mr3508257a91.36.1718381434162; Fri, 14 Jun 2024 09:10:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718381433; cv=pass; d=google.com; s=arc-20160816; b=XOt5wZkzFAG2faDKx58bkvVYGWjhD9X5hiUFEmblMR9OBrhlQ8kIiIlrKR5EpGmMKl QTbrt/ek6HohX1Uvp+NG10Ys/KgPhYB60jkYIdsKOZcAbvl8Vcrsr2xm0yPNvOA2j0wh MTc78AIX1Zsi4rx6XyRFpTqPWvnSI0OIXWoSEsbcBZ/6vVgl9DjZJ82vsSlcc5abteCk 3zaVOk0MfBmcOxMCb9Z/BgFhyxah9Hq51+002LCyxjLGSfcIASvZCH48vdNVRrsJZrWi 7TxXAsIqurj37KV5rndsEe+hUMe6mi6zz2gg3te7LhqqffuFJWnE1QFrWiDEqUSsTVC+ dK3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=T4HuY6PmfyfwRldxWRxLwZWSx9bfqjA6Fv0hOEqe/jk=; fh=63W4dWKO34EGHE3T1vWmuYqFyINTaFbMpUFQla9Mwa0=; b=bnqWM/UmjkM//dqNkNNzncG/onGLcj4Vnzejkv9r57ZKJuatg/+Tp3T174/RPt5SWF 7nSIgV6vFVNcXaVoP1ECyvxbqXD4UpEjU9WY9yeXz5TKJLLhD3AYYxsgxPhES8QbLuCv mMYiZY8bcAZFu8iaeLab/tTCylSjKHOZ+reCjsRIOaoVrG2uQRQWSXcKNE1z8rNXEAnE ht0mTvyvyFjOVW8XE8jQUH4ieJ3NjXOM27+ta2IZxnf28nzWpBzUrRO5mt+OaLaE0qfo lF3SAuQvtMuW69bw+j5qdp1Za/hcddbF0wvCG9U3G2F7RdqnJQOKYDleCokjNtcPqBBP 9Tjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b="oH1mX/4X"; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-215158-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215158-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a76e4583si6064605a91.136.2024.06.14.09.10.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 09:10:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215158-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b="oH1mX/4X"; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-215158-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215158-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9A40EB29DC4 for ; Fri, 14 Jun 2024 15:37:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 50AE1181313; Fri, 14 Jun 2024 15:36:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="oH1mX/4X" Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A354F17DE3D for ; Fri, 14 Jun 2024 15:36:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.60.130.6 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718379374; cv=none; b=Cgs5tWDMHRlgNqnTqoM9LCs/24eQYNIkNUjyNJl1M+N0mLeP61Fv0x2ob/YIABgd4hLCK4g/M+0O+t/kjWwXN0pMMcKIoMcZpLGnGMb6rJLr+cda0vnsX7TkcUqsve53jCJQINEsqpzmdtomldmYt6/4d/1bPElmUZx1Z9Xm9lo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718379374; c=relaxed/simple; bh=tuwUheo4RqKv532bDB7QRYKxm9cHiNGCPnbRZZwcuHY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=W8OsbO/4A8Eyjev5gmVK9JyKFvSh9gBYQEOE+NpjrCGcdw09yPVD0zjZIGpq9KKQ0RNTPMhilWAmh3vFlu/uoIDlZdoWwuhzZTF/ohM62gQvRFiXoQ8lySVMXFax3ZrnSBIZeSiqH0re/c4sa7dwlWLsKil9tT7/ZJ0ZGdfi648= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com; spf=pass smtp.mailfrom=igalia.com; dkim=pass (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b=oH1mX/4X; arc=none smtp.client-ip=178.60.130.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=igalia.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=T4HuY6PmfyfwRldxWRxLwZWSx9bfqjA6Fv0hOEqe/jk=; b=oH1mX/4XDpwjJ2ItX52f7DYksW Q3aswJxf/XMM6GhCw1BPfndldAElTgJbLhbj31TkZGZVruKnEc4BaTtP3NAp6+3m4+oGflndrbtec pbGJ7lb0UTqAeafSQkrnNebIXsCFclMGFAVQ9CKgATFSqmZRXsbw8fPG8E9JWqqKzjYrXiYlI4kp3 G0UaeBFba8Z3aObio+Nyqg3Rv/reTR5T+0IuxfBDqQy8kT+8uRWJYFIHah9HQx9RvE3InPauKKE3h Gis9yKhCQVuIFmKw1QmRjezm8OPVPBYku/p3THQs8GqU+PKHPSVRVt4xmwRL0lSIu/r30wjz+3wF0 h3MqClRQ==; Received: from [179.118.191.115] (helo=localhost.localdomain) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1sI8yI-003B8v-17; Fri, 14 Jun 2024 17:36:10 +0200 From: =?UTF-8?q?Andr=C3=A9=20Almeida?= To: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, nouveau@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: kernel-dev@igalia.com, Melissa Wen , alexander.deucher@amd.com, christian.koenig@amd.com, Simon Ser , Pekka Paalanen , daniel@ffwll.ch, Daniel Stone , =?UTF-8?q?=27Marek=20Ol=C5=A1=C3=A1k=27?= , Dave Airlie , ville.syrjala@linux.intel.com, Xaver Hugl , Joshua Ashton , =?UTF-8?q?Michel=20D=C3=A4nzer?= , Sam Ravnborg , Boris Brezillon , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Jani Nikula , Rodrigo Vivi , Karol Herbst , Lyude Paul , =?UTF-8?q?Andr=C3=A9=20Almeida?= Subject: [PATCH v6 3/8] drm/amdgpu: Enable async flips on the primary plane Date: Fri, 14 Jun 2024 12:35:30 -0300 Message-ID: <20240614153535.351689-4-andrealmeid@igalia.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240614153535.351689-1-andrealmeid@igalia.com> References: <20240614153535.351689-1-andrealmeid@igalia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This driver can perfom async flips on primary planes, so enable it. Signed-off-by: André Almeida --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c index 8a4c40b4c27e..0c126c5609d3 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c @@ -1705,6 +1705,7 @@ int amdgpu_dm_plane_init(struct amdgpu_display_manager *dm, if (plane->type == DRM_PLANE_TYPE_PRIMARY) { drm_plane_create_zpos_immutable_property(plane, 0); + plane->async_flip = true; } else if (plane->type == DRM_PLANE_TYPE_OVERLAY) { unsigned int zpos = 1 + drm_plane_index(plane); drm_plane_create_zpos_property(plane, zpos, 1, 254); -- 2.45.2