Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp550695rdb; Thu, 8 Feb 2024 13:40:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXuNs2ojcUkV0xorrEWMF44DSZYCmrrbUl+B4m8hGwj8o4Uoj0/bSXMMHnjUJ/nJfPYjg9iBZIaEpZHF10ywYL+hlT1u4JqWuH/6RJkMA== X-Google-Smtp-Source: AGHT+IG7JxjZr1O7F+eKHpsoFR2IYHkr7gDDhEncy5hCHNYITEvfapKcOI5wgZ2Dwp4VUACZCtcR X-Received: by 2002:a17:902:7484:b0:1d8:d5b0:aadb with SMTP id h4-20020a170902748400b001d8d5b0aadbmr436892pll.66.1707428446685; Thu, 08 Feb 2024 13:40:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707428446; cv=pass; d=google.com; s=arc-20160816; b=yPSEsK2+lQR/nFlVBlmu2tEdigJr6PFT9zOM1qBTn0qlDQ4LbDJi5kfth4X6WSg5BK Zgaeym4FqaYJExkZpV+Iq335c9x5pHWkMfV6phZaV3gZVVpKPGj1BnHl0ZX4X5gskgfd LpqheSNEJtI1vC46TivqWfc+GHR8nWZ3JSoe5No6pPejekVof7Qq1iZU+irzVje/NOxq IB5Lzw9C+ilfc6pWwk1NfAjZHx+9W47LIyww9HCol6QjPTSnZDHlepahnp6MNWLTwemk g59fNawoMQ1kn0xzMRHdsEQCe41hm5vor+I1QdPGVRfhOPKbmIucFHuyk1+1MNmaMOox Ti4A== 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=Sg3ZZZ+owP6e4M0jQbb7UimX+OPqMnUhaHaD8nU9TJ4=; b=a3cLRC4d7UJSmWapH2u9jsNkGzjxFEioEWNOvJJrhG4iA7lr+nbuYmNCmSuAhrSCmU qC9OFDai747fSzI+2cO3ZXkQGVoHfeXF4lbmZQG2EwlFENZObSgnP90kV0bWdE7GfyUJ +ZrvLB1ADZgFzxRhkP4AFGRaCUoSak61pB7GUPXmvfsdrsmToThU8Gw7tGeRKnKBBCCR TxwYnWLeCiNvYcAi2wps1XjDR9slGPV5KJ375x7z4CU/iyGoenY14crMe/m72kGi8JCH uEtVI4GXH/cy4yV9RF4XfOSyfk7w1UlrAlqlTBObi9ni8Oj8kJ2sgs11C6BXwBcTR2kE tnhA==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58697-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUVBMLHdyR2qLxrB3xcSwtnlq9sDZUJhZsCrVA8Yio1tbWwlkML2+auI0XPBYA66kEXd3FnDz3a8mKouEWJwAIZ7SkSJLuhdBDpl2oXNA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id mc16-20020a1709032b1000b001d981d92655si401948plb.308.2024.02.08.13.40.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 13:40:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58697-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 242FDB25E32 for ; Thu, 8 Feb 2024 21:06:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 895B54F219; Thu, 8 Feb 2024 21:06:14 +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=20Almeida?= 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?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?= , =?UTF-8?q?Andr=C3=A9=20Almeida?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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); } -- 2.43.0