Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp605797lqc; Fri, 8 Mar 2024 06:56:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWyFolBWqHmkqM5s9EjjjFam/1/tuR72WMOcrOW62+sYepdAGZmXVLMOsPY0eWy7fzDiuDkYiEGk1BhGD/hEcbxy+CqL3Xfa0F7tgDTSw== X-Google-Smtp-Source: AGHT+IERo/V9prWn2ntYS/kNm4zMHzPP69gy6vyxRGBklgrq3VmPOXaoRbeBhAsXjG0LjewtLAH2 X-Received: by 2002:a05:6a20:1456:b0:1a1:72ea:2da9 with SMTP id a22-20020a056a20145600b001a172ea2da9mr5253969pzi.19.1709909817648; Fri, 08 Mar 2024 06:56:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709909817; cv=pass; d=google.com; s=arc-20160816; b=SWyrh71kYn5lHCfGTPZOshFFAl+uwJugaleEAZm8PY+Uab0/U2kcmSmki9f6BI35/2 RfDTinhzxuX2yGI2Isv+CF9oOvWjO8MJlz2Rfcu/qfA2wYZA3UJscBNfoivSkK7NVdM6 NDSpJJg9R+Wwj82+2/d7xE1UMdUvzwMRxXMkIb/JTnz859t1s/hpwF8anB+i7PwJPf7I /TLXSWEb1MXoV77nC2K+fub6vwlHnd2HcXEDV++jIyRPloD4Ku+8Q5qBeGCEnfPLb+Wr 8RrjfafcHAFBPZy1umbQcFz2plrHZ1te/dM3as4UZzHaXpS63/WYcxlZo032SeCOulCr F1Cg== 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=njd2ecPfO+MOSUbjxezZy5Zaoa3J5aSXR1p04i4lAW0=; b=vRa6FOMsLWPSCkkY4G8gRpMANt0BfxEKuCoDxztttJJ/sux4M1A29mlsAp34WiLWTz cTU8+kxshdOZXfRoAx4/mcRjp8EuhuAC7Mw7Fj9ZqkLp1kSs17tffylQ+gbEyHYAUS/P 0ILS6Jx4M8vijxtCVWsLaNa6ZjvE2MifpzSChUVstpXgOvao/D8EibE2nGogXe6ZZi+v u3nxzCN8WixqtBkPXpYZX1d3KL7Srv+u1rM27Mp5pRgz+oWa2KcAxUZ+wQ4K5W0mFh5C iHC+KKXB6DbAXxS6wSEuD6dcc8lAeQmNbDOMFHkAJWDzhLuBJMqj0QtsN9/Vy6ITxk+J JUvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=EzhGPudl; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-97197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97197-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h18-20020a056a00231200b006e464571dcesi16399764pfh.310.2024.03.08.06.56.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 06:56:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97197-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=EzhGPudl; arc=pass (i=1 spf=pass spfdomain=igalia.com dkim=pass dkdomain=igalia.com); spf=pass (google.com: domain of linux-kernel+bounces-97197-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97197-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 2EEC1B2123C for ; Fri, 8 Mar 2024 14:56:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC98E1D54D; Fri, 8 Mar 2024 14:56:24 +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="EzhGPudl" 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 3480F20314 for ; Fri, 8 Mar 2024 14:56:22 +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=1709909784; cv=none; b=rvZFBeWK1c8wINrSEOAlMM58Y4fBO6nOZuNt61/p8bPOviVqL2hw+jjDAkjgA+ZQUaawRanE+rrDI6pCBJA/KgUxy2vgHQKcE5I+YxYLztzsQQ/5c3GklcF3Q46g4qqe9Ps+/gmcP1ZF7C4PkUPIIZrGMH3Af1OWFm+7hsFckxY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709909784; c=relaxed/simple; bh=y80heCwbhAQqqtJAfYk/nrQDwtR1qybFYBcIOVhCOMA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dhpYWj6F74CzwDUYPS0F4fnBGABBja4JasSRZNj4JdspfSBrT3ImmkRhNZuIODSS9wwoDW0++yBvrA0Y/Uw2KFo7ut6uDeXPu5cv6GYAVlLRa0cl9vIwthH/ueC7hjz42+senFQaxpXmNxfJE21FuTS4557EUTH/TP+61fWhWyY= 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=EzhGPudl; 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=EzhGPudlVcIyYE0mO/lcVrqegM F8nFLKO3qO83O6C/zNC/BB2q4TzqXb5kf+kNT+CdO5/fRtyxL6sfEg2XCz21VVJUnquqldXqqiJb9 EnXVU12DNjwcv8jlFotFRw+IZLh7RPOW1nKl8ROwBGT4pHtjeRYzcp7UmimWfRD6CIIM1CjgfYiT1 4xWSIKCJfKsF3gucCVzoIq6JV8DoO7Jr2+6ww0RGsGJ/qZF3O5TwD/3v+AEZMS9lga4BjM0v5Du/q OUeigFkntJ9NPX82nexlacVgHWbeuldHjWKCI3dIHA750BEtePOAOLdtu/VNjxcCs+SfuKob8eyY0 0Kf/oeng==; Received: from [152.249.135.210] (helo=steammachine.lan) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1ribdz-007p93-2D; Fri, 08 Mar 2024 15:56:19 +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: [RESEND PATCH v4 3/3] drm/amdgpu: Make it possible to async flip overlay planes Date: Fri, 8 Mar 2024 11:55:53 -0300 Message-ID: <20240308145553.194165-4-andrealmeid@igalia.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240308145553.194165-1-andrealmeid@igalia.com> References: <20240308145553.194165-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