Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp441100rdb; Tue, 16 Jan 2024 05:21:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkfqIU52FVVYblUN5zkua4cL0FTMdZrTJw4T5TfYaOmR85kQf9ejh3QNqTmH3WwzpvruUC X-Received: by 2002:a50:fb01:0:b0:559:39a0:6cbc with SMTP id d1-20020a50fb01000000b0055939a06cbcmr1740566edq.62.1705411277976; Tue, 16 Jan 2024 05:21:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705411277; cv=none; d=google.com; s=arc-20160816; b=LSpNSPaHO2tdVPrazXwdviqxPIK4Il+NqhbsjEZZooXzVTZVximJY1qOQNj5dKvBgA 7vZuD8fYqWGiygJup9on+cSQr3Y5kxJlaekpu2z+8AJ2tifT8kXWgZj2pVeiTfDpfh4G ZmQQLqLbs+XwalXN7Kugxj1SM8/cP4811wsKs81KODVwFbMFP5w3HtAIKJhe8fGaJn9e Mh9OFkSnog5YLeTkjSEhdbxD5M9kb0SsxLkD75h2lckp6rHEP5WETsuL+LG9uoEX0uoK rxSup6Z4USrA6j7fKcoXLLKKFn10hsKfKt/GkstQzJPXD2X5wlvzzr/DOIU19xDgaaso Br8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=E5HYLxVw6fM3ypadLsACTrsy4pVl4M83eVfP/j5l+MM=; fh=6b7FkWf+G6wACoNoOkyuXEAhW9dLbwDWZNz9+h1j6mk=; b=KlBm4OFq3UMb1Hu8CF6izeRmSTqyWtuagb9sdCYhre7gdX8noqKXvIS2UufbKqSmXg ZgNEcP+bAmcpz9gyWmuRiZp03CFuFFo1DGoYOZmG1lD4eoJhzKN3OD1qWRJQOnpcMdEI pBuWv5rDCeVhkPOKsi+GMcY4IYoHqirGqgi5KuvrmlVme9jyxMt6qDY3K9Ogr7RbeWMg 27i6pmjAhCxs1CYQyafOQxYP1PSPzpZpRJzUrNBMo1GTfvkn+kvzaK7YClgn6pg+P5Yy VX/eTrZEMR2TrX69FVqigFBGO0UCSZMkPAORV26yqOoMAyYT1aVXtt4ym+a5Gt9SNaqM HfRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FtKBiMqL; spf=pass (google.com: domain of linux-kernel+bounces-27409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n27-20020a50935b000000b00558bd19615esi4164200eda.14.2024.01.16.05.21.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 05:21:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FtKBiMqL; spf=pass (google.com: domain of linux-kernel+bounces-27409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 40AC41F24B57 for ; Tue, 16 Jan 2024 13:14:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C50E1BDCA; Tue, 16 Jan 2024 13:14:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FtKBiMqL" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3DFE1BDC2 for ; Tue, 16 Jan 2024 13:14:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-50eabfac2b7so11504250e87.0 for ; Tue, 16 Jan 2024 05:14:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705410866; x=1706015666; darn=vger.kernel.org; h=mime-version:references:in-reply-to:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=E5HYLxVw6fM3ypadLsACTrsy4pVl4M83eVfP/j5l+MM=; b=FtKBiMqLVZNbfoTaHHqpeQXeOgYW00xtkFIQet7+LATUX2w6O79HRr9ONQ23LKrw8x HJ5EWoqLZR2+1sSix9CjDt5ZUNUseSLaU6BWChpNEHqM+AhBItGtCH2/jRdz9/knWgV1 yrR21NwNnNfJA/SXmRoRRAL5omk8fbmFP4aGCBNYt1ZldYPJEinaBcY5ZkmuaA+KjL1j yTRNgB8fEzXPxxU8mLmfH/SJ6NGgdKiMABfNTlRkW6KDddlo2FOwyKR8SHahyGjywsrK 8o7gh8mo60hRotMjTNS9+ijlDbAbvGg0xlFk6jfh4Fo3D0TPk7L3WaDZoo65ajA2Fbo8 4jIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705410866; x=1706015666; h=mime-version:references:in-reply-to:message-id:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=E5HYLxVw6fM3ypadLsACTrsy4pVl4M83eVfP/j5l+MM=; b=O6PxI/+a3G3VJbiSJZutqtyhsjGcWS+VW0rEiTGrdgtFK1EqQUjGBsKPSOHDn9+/MS z2PIGkx29anhrpaaZMz+KQNh9gOikMeFDIEThhJ1RmcAzdrTCV06YBmzUGLHvtm6qHKS u0X4cAm7c1KJgz8uiGeCZqcYvFP5K5s1dEngThtVOMxhuGicsM0Af5xzRrYWxTshQyq+ wQl8fV4fRAV3HJFGm2eUMRihHIlHRqJm7S8Hz9MqXx9wGr4FIhFw4lWrHIUPUFtxY5YK oplyZEHhGzg3M6TAnyMk+NWSORLra8p6dv7Z+Hd82MpUcZ2svDxKIAhDsTYUUCrBep/8 NPFQ== X-Gm-Message-State: AOJu0YyhiVbhuZ6LFTQzqSEy4xVx51j8vYvUMl08RUhegYkp108RFO8N ApLad1JNkEXJb722WcZfDSY= X-Received: by 2002:a05:6512:3042:b0:50e:73fe:c4ab with SMTP id b2-20020a056512304200b0050e73fec4abmr3983941lfb.94.1705410865335; Tue, 16 Jan 2024 05:14:25 -0800 (PST) Received: from eldfell ([194.136.85.206]) by smtp.gmail.com with ESMTPSA id u9-20020a056512040900b0050e3615f608sm1750943lfk.209.2024.01.16.05.14.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 05:14:24 -0800 (PST) Date: Tue, 16 Jan 2024 15:14:14 +0200 From: Pekka Paalanen To: =?UTF-8?B?QW5kcsOp?= Almeida Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-dev@igalia.com, alexander.deucher@amd.com, christian.koenig@amd.com, Simon Ser , daniel@ffwll.ch, Daniel Stone , 'Marek =?UTF-8?B?T2zFocOhayc=?= , Dave Airlie , ville.syrjala@linux.intel.com, Xaver Hugl Subject: Re: [PATCH 0/2] drm/atomic: Allow drivers to write their own plane check for async Message-ID: <20240116151414.10b831e6@eldfell> In-Reply-To: References: <20240116045159.1015510-1-andrealmeid@igalia.com> <20240116114522.5b83d8b6@eldfell> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/i2t6EBxqq.bTAjLBweow2/Q"; protocol="application/pgp-signature"; micalg=pgp-sha256 --Sig_/i2t6EBxqq.bTAjLBweow2/Q Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, 16 Jan 2024 08:50:59 -0300 Andr=C3=A9 Almeida wrote: > Hi Pekka, >=20 > Em 16/01/2024 06:45, Pekka Paalanen escreveu: > > On Tue, 16 Jan 2024 01:51:57 -0300 > > Andr=C3=A9 Almeida wrote: > > =20 > >> Hi, > >> > >> AMD hardware can do more on the async flip path than just the primary = plane, so > >> to lift up the current restrictions, this patchset allows drivers to w= rite their > >> own check for planes for async flips. =20 > >=20 > > Hi, > >=20 > > what's the userspace story for this, how could userspace know it could = do more? > > What kind of userspace would take advantage of this and in what situati= ons? > >=20 > > Or is this not meant for generic userspace? =20 >=20 > Sorry, I forgot to document this. So the idea is that userspace will=20 > query what they can do here with DRM_MODE_ATOMIC_TEST_ONLY calls,=20 > instead of having capabilities for each prop. That's the theory, but do you have a practical example? What other planes and props would one want change in some specific use case? Is it just "all or nothing", or would there be room to choose and pick which props you change and which you don't based on what the driver supports? If the latter, then relying on TEST_ONLY might be yet another combinatorial explosion to iterate through. Thanks, pq > >> I'm not sure if adding something new to drm_plane_funcs is the right w= ay to do, > >> because if we want to expand the other object types (crtc, connector) = we would > >> need to add their own drm_XXX_funcs, so feedbacks are welcome! > >> > >> Andr=C3=A9 > >> > >> Andr=C3=A9 Almeida (2): > >> drm/atomic: Allow drivers to write their own plane check for async > >> flips > >> drm/amdgpu: Implement check_async_props for planes > >> > >> .../amd/display/amdgpu_dm/amdgpu_dm_plane.c | 30 +++++++++ > >> drivers/gpu/drm/drm_atomic_uapi.c | 62 ++++++++++++++---= -- > >> include/drm/drm_atomic_uapi.h | 12 ++++ > >> include/drm/drm_plane.h | 5 ++ > >> 4 files changed, 92 insertions(+), 17 deletions(-) > >> =20 > > =20 --Sig_/i2t6EBxqq.bTAjLBweow2/Q Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmWmgSYACgkQI1/ltBGq qqcJGhAAmfkcI63j+PXidMJLZ9COPIfRspF9wDzlPbiyZOH2nvffM9dDdNKWIm+j 8dMw6bbmp8/AjEdymqKUmqsI0u0G8/otViBEYHA5DPJTNZxmFDW5awvwPZo/86fL i8jfM9XTDN637bQKorVUR+QEu/CXag/IH5R19YT5QSRfmKGwvfvOYKkdHwAoe29m Zazcouunhbns8EeRQnxWrwFpn7+gQunM79AwaUt88CxyFFbpxN9t6iU0UThtNFnb CYKjIwIvYsE3ncULhV47giKpd05tSP0yRDBdPCVgzZO80n16yzvtZDe3pzQGZd2p 4zxOzYmDlu8789qfQReCCzQWoAJ9Wn5H7o4WH09gygqbRtEhpaUbbjX+WQJVl5j5 WCyH2ezdqOSz6mGN1Un9t1thK9oE13fM5v/EdCj+DWUsJbUEeoMcI2ymcBoHWB9C GSetbRreGTejPDnCvW7c5i4Aa1TxJHHuNWLeBH2MbjLIjzSE/TCBaSoyJr/lol1L xkDBFD6fnIIK9aNzkAFLjHZDZU/xOz06JlG/CtEE4cOmXfWrm/3PCzCXBF2C5FZn ppeC1BKzvDIlgA9+lwV+H1YIN7xAc4EDYbksjCWpQwmZAYTcfJrLv732nA7ysRdr 92k6OK5F8WoaaZor9qs2dIT6lUbUoATCzJnY2yoXNl6si+ERA3g= =EpBy -----END PGP SIGNATURE----- --Sig_/i2t6EBxqq.bTAjLBweow2/Q--