Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp901758lqs; Fri, 14 Jun 2024 08:47:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2BNYGsjmvQBZg/4eC0jsgpjjFaZVrznzQcO+E5Ut1DQZQei952QHSdZR2esDIWRQNG83Sn2K7VA466KTO38Hy5xL/0TU/AXYL8VHmhg== X-Google-Smtp-Source: AGHT+IE54x8nkp0NvtbNDVAPEQML7C08ZY4JHovynSaDqLqWBuRyaDMWNJbE97DPMA1e8sBXhp6u X-Received: by 2002:a17:906:27cf:b0:a6f:e4f:65ff with SMTP id a640c23a62f3a-a6f60de6259mr232112866b.76.1718380075637; Fri, 14 Jun 2024 08:47:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718380075; cv=pass; d=google.com; s=arc-20160816; b=fL+fSW7uPH/8+Y/c1nhdviMJSNaAZh7yHLrrvMOQe6IeY2d9BND3ej8NXmLxbafp5L EacZnOpG2lylTvg7f/afe91wioCYStJRKmAq0zTxZ5DhAE51NIsueMJyTcIbRjB1hwHx WpSCL3r0N2litSYxOGx/E+UYEkE16A+lCOgZq+o2CuaIY7rRFuOPhNclmykZvdle+/BN ZPbm5L+Af0aUA2LtDO0oizv+nTBSksbSqxLECWKBY17uDHFa0ZdPHbAD5HPWtXiwkysO afqj1tEGCKzOg49V0CuMzPPJRIInPK0tLElHWH4ibEV6ag+srO9Ay55HhIo5Fkf3+IO5 ZAMQ== 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=iMbXibmuv4tLW3BVBfl9Ydvrc3EWU1itn+Bz/2WUIe4=; fh=63W4dWKO34EGHE3T1vWmuYqFyINTaFbMpUFQla9Mwa0=; b=TMJaXqi2LU2C5BW4VxMoOX9rQGMbN8QKAidALYSM+ZVGWv0NZhR4cjZn5vNy3DGNUm tMT35IDLt7MQTrnV5dMFAl0NB8ixPgLYqVFAgXZ+AU/EAeGzsR0S/fYG01rT/CY7VwXI 8HtlQr7R7j/JNpglBjt/KmWkdakjwk+fPkd+lgUHVxgRg0DLeLuCzAHh9EjvQGNkdFlF fsLs/WoK1Vekj1p+JXVPP5rM2KHo77ly3ANUMXe1HbN88idbASkI4aY1FwrQYS2qacvs V1L20KhIiLgUF3AuHkPG/KxvCxdO/kvzkcyv1QKyLXnRznCu7E/M4xcYJAOw18GLB6Wv xgwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=e8l9VEx1; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-215162-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215162-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56d2125asi187158766b.87.2024.06.14.08.47.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 08:47:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215162-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=e8l9VEx1; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-215162-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215162-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A137B1F22960 for ; Fri, 14 Jun 2024 15:38:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A50415FD08; Fri, 14 Jun 2024 15:36:46 +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="e8l9VEx1" 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 2FF8B170847 for ; Fri, 14 Jun 2024 15:36:43 +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=1718379405; cv=none; b=nJOOXuLjBco3WjYihWvYhPYAlVwswKfwtw4fMj6mkpoZD24HFaFY3c+WiOG1xXBR9r1YmIXMXHlv4NTvAoe+ruK0IH7W6U5KuciX0lUx5ruFuSa/ZelhK0O6OkAHo27a/gNfvfK5vYXuPMXVY9O+gSZnIpV4AlsyOzWBc7I0czs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718379405; c=relaxed/simple; bh=ZHewzGEOD8B2TSiTqvZxHdujWviyk/QQ4/H/mWQ3LiM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GB0TKbW384Hc4z4k1bK79VlLHD0O956YzwhZpZHEKddptHVLj0KwAfZMOW2eGRCMJQMn+VBDbIyxYEpR5YyZ09Bl1Kt8hwGXXNY4Ujf/LZ9j8LnQvWjWIrKV4ccszWEg1FlMqyeIwhRWtrJJGxkxIosNAEaxPnl9z/q6O/hVuAw= 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=e8l9VEx1; 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=iMbXibmuv4tLW3BVBfl9Ydvrc3EWU1itn+Bz/2WUIe4=; b=e8l9VEx1/3TjTxvs/xWpRIwe8p 1tqhvk9qf6m1hEaLAaTIlV9ShiJ12mPE8Wm+ODs3NWB30oGpB1+sOSVks6v13OM+y298aMcYntEUN 1Qg24/ef4CwLycGX+BiqfImAC8INTkXhUlS6aRt/mzNKlFXkDOkqaPaIM/SaAGhoIaaDRdl3Mgwlk +NZmZZewqrV8akaBOvITagORzP9urp7tFO2N91jFt6ELMVbfWXow/IM/wLbllle3eYMs4+ALm5n/O uJVoIpdaOuSCv8cvRXQsYeI/W7NOuOD1WGVolQCrJFhxkwGQCSXeiKPxw6TrQp+Hr6xJ/sComZTgN SooEgaCQ==; 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 1sI8yn-003B8v-Ge; Fri, 14 Jun 2024 17:36:41 +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 7/8] drm/vc4: Enable async flips on the primary plane Date: Fri, 14 Jun 2024 12:35:34 -0300 Message-ID: <20240614153535.351689-8-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/vc4/vc4_plane.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c index 07caf2a47c6c..e3d41da14e6f 100644 --- a/drivers/gpu/drm/vc4/vc4_plane.c +++ b/drivers/gpu/drm/vc4/vc4_plane.c @@ -1672,8 +1672,10 @@ struct drm_plane *vc4_plane_init(struct drm_device *dev, DRM_COLOR_YCBCR_BT709, DRM_COLOR_YCBCR_LIMITED_RANGE); - if (type == DRM_PLANE_TYPE_PRIMARY) + if (type == DRM_PLANE_TYPE_PRIMARY) { drm_plane_create_zpos_immutable_property(plane, 0); + plane->async_flip = true; + } return plane; } -- 2.45.2