From patchwork Thu Feb 8 21:05:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Almeida?= X-Patchwork-Id: 198580 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp452660dyd; Thu, 8 Feb 2024 13:07:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVQSsSgP4maUAQeb/AgUIV4aHJC5ykXHGvkTAceQ+iXQT8i3Prb9T0cOMssnSNo5PMAqYrE3f+ZK9KpKFQF+zb1ciWCOA== X-Google-Smtp-Source: AGHT+IGeKhk7BZg9FAW23JzZCdosgGRCCZGbra7jn8zWpyNDxF5OpRSTExKqpyI2XPRJEA92N9Jh X-Received: by 2002:a05:6830:603:b0:6dd:d5d4:b96b with SMTP id w3-20020a056830060300b006ddd5d4b96bmr803478oti.25.1707426432390; Thu, 08 Feb 2024 13:07:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707426432; cv=pass; d=google.com; s=arc-20160816; b=Gj5ln7Ia1+M3Q1UtjLbOpkU7R6bNDsfhWWMXXigrLDgXy/5uQWAvHhkxc6cXN4B2r0 HIY/pCPPR1UjU6vqCWSiz+xkIQkRifhEmNVYL+Ncq0Jcz+H5fkAUFTX+iOMp/k7plsyC Ngqk6mBJ9+c7lXFhfbqVQALiUbto4trhgbZP2omkGlqu20wbRJMXyKx0JnxM7ZZ3ZDW3 cp7JWDl0ImdPJpfu4OCEHLBLzq+aoyiRCCcnI1q3iGYXj9sIJkhefVNbC2HAJ2K/B5jt Kw3/juTPJiigh6avHCAgCEb69DBjy9Lpcm0gfT7KPmeDvmqlBIsQ3HZxKmNoGn5LTlQX YkcQ== 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=yRF44PAwuObJjETXmhstoHPr/yI6S4jcqxgx+14ydL0=; fh=3Gyq5FFaQZj+KILejeU1ekWn/GEXI/0e6VyyDSshWls=; b=WHSAJDdmzCav79rOaYDy6yQ8MtorbTR5jN+CMvR8OJmcXdt4JqOUpRWsmP4yb1kPHi h8CgeM6N+ShV1++bQopj3edhPuhTAtr05JqXPe7CcfZDmvCGshLJwuEgM0Qg99Zb7zLQ 36iTEiyO0OZiaFy9JcPOpBZkpvKShc+SCFcXZRHwpFSr3UOYTuB4aqqOx9fe0Xgl0XDI VzJARqHJRP2U4h/TDFw4h5h7qvioNDKHrOawGd1ULvqc1axnQ2w6bBxmGEkPotYv0+D7 P/lPZVUxZCiC7vYTiSZ9v5ndGXjYWWQscSxz5ArvkViHYxq8nuH3axqx4ch9K6GDIeQ/ Mr8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b="J61Jenx/"; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-58697-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58697-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCV12wWTT4U+X+mfMaEe9fJBOo2hiwjedeY1GaV8k8kUmwqnQZBaYqMDz2LO8tdduy3/BNwCsG4lS/LOXGIJqK2VMDHIIg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v4-20020a05622a144400b0042a83f2cb61si350055qtx.72.2024.02.08.13.07.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 13:07:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58697-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b="J61Jenx/"; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-58697-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58697-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2A8C61C232F8 for ; Thu, 8 Feb 2024 21:07:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73C014F88D; Thu, 8 Feb 2024 21:06:16 +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="J61Jenx/" Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) (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 374B94C3C6 for ; Thu, 8 Feb 2024 21:06:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.97.179.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707426373; cv=none; b=t06I85ONtwIg1PjTMv8yJnDMUniWsycgnpkQ7CIHO2qk7hQoTwaZGjsTZZpBwgFCDWhq8KT0JmiFqGKICn/muMEt8/JYUUi5fOfd9naxab8ZKDKqGnIpH23HwnXhtqnfKMDcXFBdxGf4olBWPZyWW5KRkxYvmqceYOmrJO0IjhY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707426373; c=relaxed/simple; bh=y80heCwbhAQqqtJAfYk/nrQDwtR1qybFYBcIOVhCOMA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=JGaW/D34mWl26ScK+avBQ0w6/g0yCLtbug23VW5OkjuN4BSzVa58QXHvVbBaS7gxMaNK/1uMzIuXAYjR5QURUWyq6spXUnvS7HRSJVL1tLRst8Er0LElVS3UELAQxxY/GrkS8d+KHWRn7EAEiRJ+X+L32d7wSuxyqYHFNa4tFVE= 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=J61Jenx/; arc=none smtp.client-ip=213.97.179.56 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=yRF44PAwuObJjETXmhstoHPr/yI6S4jcqxgx+14ydL0=; b=J61Jenx/HaJYWYqd/VGI/U5XXh 5tMpKP4qZHsUksJhROrMMPNBUbz3Usk08vFTccJIUnbR60OuXjjwR2kZBYw/Ef3Fub8zGvV26dl12 gVu5GM+vv1Kavx3MYD3ieYb/3MOhMvfIU4rJS8gL9Jm0Mvj3XWR0VjFfUWhMybgL/smWHnRyQenk5 anlb+6wQNeGtEyNk91yEdt6MpbG6NdQ8gAqtaNgcfTb/EdH7jc2SC2nrxxjfUrGTk/29VDON+zNYO ahkoCaDLKBlsYbqr4MWIqAz2HmYlu8LHtKGRiV9MQ5iqsdxiz1/NYKWis5vrDY8IJk52BZg5/vA0F op0SNmgg==; Received: from [177.45.63.184] (helo=steammachine.lan) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1rYBax-00FMBk-3H; Thu, 08 Feb 2024 22:06:07 +0100 From: =?utf-8?q?Andr=C3=A9_Almeida?= To: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: kernel-dev@igalia.com, alexander.deucher@amd.com, christian.koenig@amd.com, Simon Ser , Pekka Paalanen , daniel@ffwll.ch, Daniel Stone , =?utf-8?b?J01hcmVrIE9sxaHDoWsn?= , Dave Airlie , ville.syrjala@linux.intel.com, Xaver Hugl , Joshua Ashton , =?utf-8?q?Michel_D=C3=A4nzer?= , =?utf-8?q?Andr?= =?utf-8?q?=C3=A9_Almeida?= Subject: [PATCH v4 3/3] drm/amdgpu: Make it possible to async flip overlay planes Date: Thu, 8 Feb 2024 18:05:42 -0300 Message-ID: <20240208210542.550626-4-andrealmeid@igalia.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240208210542.550626-1-andrealmeid@igalia.com> References: <20240208210542.550626-1-andrealmeid@igalia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790366378783669491 X-GMAIL-MSGID: 1790366378783669491 amdgpu can handle async flips on overlay planes, so mark it as true during the plane initialization. Signed-off-by: André Almeida --- v4: new patch 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..dc5392c08a87 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 @@ -1708,6 +1708,7 @@ int amdgpu_dm_plane_init(struct amdgpu_display_manager *dm, } 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); + plane->async_flip = true; } else if (plane->type == DRM_PLANE_TYPE_CURSOR) { drm_plane_create_zpos_immutable_property(plane, 255); }