Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp896278lqs; Fri, 14 Jun 2024 08:38:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1zgLi6AxDWeYXmsEC7Om5RzIgjX+JUQeu1fYYly+CpsLNTME9FGgc5uNqRGLGQYybZqgWNeMGD9MiTUq++LZm0xhTZN/c/Mgroq7gSg== X-Google-Smtp-Source: AGHT+IGpQT2l+9ub3bkTkxxY5TBjh09O/gzGwD8OVjC89Pr+ik4/0UYaZkdcbNL5T6MWuK9KGCtO X-Received: by 2002:ad4:5bc4:0:b0:6b0:825e:ab71 with SMTP id 6a1803df08f44-6b2afc792fbmr42885996d6.1.1718379500691; Fri, 14 Jun 2024 08:38:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718379500; cv=pass; d=google.com; s=arc-20160816; b=l6MH0HUqqpRM8P2l2gaBMV5gb2AQ1ZoRm5GF9NLRYclOeMnri7DZNpg4qfBSNTiaiD o22fHiGtUJCD7B4jFdnqJMHlE19xMaGSYp0iQDC+bKmH5fdGBXgc7VQuj3129RXHHVH4 vaxjaBytSX6TPHo8yWl60M0b5MPsSF1+vrDGGin2/M1I21JmOoN33l6Ir8NFdtGTuybK 78gbHUSqnf4U1di6K6orTRSPAP2GAO0atfRtQegMMPBP9VOm4ni/TnfkNxcc0xv0+LES RpduZDhsEzd3+EQHfoXcDGup/E7gKj/G9HdlRY2r1r7NLWLh1uIToQmE91d0vdjSKEIC UCgQ== 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=5+/vSUsusZJjzOquaKR+Lnhfb4Xwzp1gKdxtTXFkte4=; fh=63W4dWKO34EGHE3T1vWmuYqFyINTaFbMpUFQla9Mwa0=; b=R8m4vNsyI7Xg7JCa14ZTcBR11g9kgwrPqacTsIyMofEoKXvqP1xwQAX/TrAWR3rlbQ IH5EROe677etRJG4V0K7nHv5K2io4hqrpZ/WzlObCS3j8CH+wmRhqAW3eR4vIksNBqnO /opa4s36aY0Jiiw0GoMJRk3HFgH+Hzi47qk0aVKekNWe91Y3KLwk3y6IILVWKGHjSYLu GVvOi6HVCAiQoGDLXQoucML2k327/VKfnNbs6uPMApHZ2gokfDNsVcaHRoY+a+LFqYYN hGsftDgFKCjhYHu86NVt7lyrINdYQtZ9tIhhl7H1fnmch+20OcwG4oPbBdfR5HgggmYc uDZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=HphKi76d; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-215163-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215163-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5a1602asi40592836d6.86.2024.06.14.08.38.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 08:38:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215163-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=HphKi76d; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-215163-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215163-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 69CAC1C22A4E for ; Fri, 14 Jun 2024 15:38:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A830E19AA6D; Fri, 14 Jun 2024 15:36:54 +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="HphKi76d" 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 79B6D15F3F9 for ; Fri, 14 Jun 2024 15:36:52 +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=1718379413; cv=none; b=ny69ZuqgupRIBEp8Ob1wqe2dYufekqYVEu25EbtZAFkoqE0Zgup2dO508C33zsGSyg9NZZu4ctEpLiMPrWoMBL+eYIR8n5p1YiS7pIMTB7OyRV8cqyMrmB9snCzzRm9life8CqndZj7Sl7JXKtrK+uP/ZfGq39vKMfP6FkB/INw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718379413; c=relaxed/simple; bh=0y/hRRkuz60tuQsMwimd0Oojffeff4TiNV5boX/pAO0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lFaPCZf+A2fsHZDZcfQt8qBhfkWl++80Zb66xtk93I0WAUqwn3W41jCrb1vm73OTH95SPCOTrAuwEEDxEzd5ewk0Iu4nYO+6M1tYpjGh4ynd2WeMnUoK+JTCG16xjONPFVslJ7ifwJ28h0bv0K689PNHOGsGjj9QJ0ONbh6WVkQ= 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=HphKi76d; 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=5+/vSUsusZJjzOquaKR+Lnhfb4Xwzp1gKdxtTXFkte4=; b=HphKi76dzy1FbzwUKfH6CQJ7e9 4mqbYGd9nU4R3tBwtUrovH2GkVix+0iSEhvFBd40Lr8bS8vkA72/q67NbP3Ot7Yemm+Z/a5xMme1C qITfmbryXx7/kTXo1YxGdeP+9nhjIcSnyPB4Zxw83m+yTA1jXdPk8v1dglA/+0SyL+7bKC1+AVB9k vGs/ekPSfrWSFK5VX5mV5eTm0rHSadoLSRJStK4grNwSAw/WQGBRircf770WKBBZ4DeyzM7otygcA OoC8jWi8e161CCUiP5da/omkaJA43Z0fAw4XWCqgAbJzWeXWwy1yJvSXKD7v0XRnF4nwmu76n/Qbo nj7ZGO9Q==; 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 1sI8yv-003B8v-CW; Fri, 14 Jun 2024 17:36:49 +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 8/8] drm/amdgpu: Make it possible to async flip overlay planes Date: Fri, 14 Jun 2024 12:35:35 -0300 Message-ID: <20240614153535.351689-9-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 amdgpu can handle async flips on overlay planes, so mark it as true during the plane initialization. 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 0c126c5609d3..7d508d816f0d 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 @@ -1709,6 +1709,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.45.2