Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp393144rdb; Tue, 16 Jan 2024 03:51:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGchjc4jNY80rD73PfdsN4YNjb5m2yuSfzsS6dypWm9g1qi0MHc95xSHfzvv1xnDuKkqQb X-Received: by 2002:a81:b105:0:b0:5f6:df60:c1a0 with SMTP id p5-20020a81b105000000b005f6df60c1a0mr5212150ywh.57.1705405882463; Tue, 16 Jan 2024 03:51:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705405882; cv=none; d=google.com; s=arc-20160816; b=HC/zZ65njGpXtkB5+NjP0XsEqYyGVYwG1IH4lxT8yxhZBW0MMqegQZnp9kKgg0fdT8 tHuADCZcVOyhRzG18bxRfZRwE/SFtSYfgkUwoHSG+qt8KcBiLKgP3iXOe/t9EL0PH/KK +5XPt5G75tI52qUQ+A9inVYzu8A3j9x3OupApUAWzq2GJpGS9Shgy9jodQEovL98gw8c lc27rPTKV3bHkNe3HlO8EPhAdILosgHwzH5DoSZ+Li+nTszGfO8cE6NLqFAA7EEUk2GQ JwVGTUBiOjY0pL/ML8Op8Ent1pgkg/qO0udx8i0cVqRbKSpSV3F3wE2CGouC8bjS/BxD fgzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=6RK8HhUL7/mSLlRQcfu0FfBwVC2fqWvwSpORs6uHkzQ=; fh=iyGzp6wsaEI02rJFAHAvtlfNmyxf+w0Nzh6HMh7cxYY=; b=QFo0Kpp46cAJIvOg8KhTWyjRRN6sJfzIqSNfs6wqP9WYJkoOVxnG/N5MQofn7hKqrH BiyLP5Wvi3FvdaVvcp31+L9E4fuSLfSytmn8ptdAPgaWQt5+Jr/siye7RiRH0M07xqzo meoVHH6f//nD3jUooyGOCf34qnhPcIGNC4uoiXRcUe1R8+/NxE6Wt8Gled9ygRfongFG JQSFWv7EVFvcCP8BZADPDmFUb0d3S2eiVmags3lVpe/TUBB6YUPRyiRUCqajtvKwv9K2 3ALH9nW8PmRe08q1sX3KPsLSk8T/mBVCPHf9baxAhlcJ9KK7I1Q5P1QCUCpam2vWRulp NyJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=s0aFfV17; spf=pass (google.com: domain of linux-kernel+bounces-27347-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27347-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 z26-20020a05620a08da00b007835b33c34csi3997187qkz.470.2024.01.16.03.51.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 03:51:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27347-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=s0aFfV17; spf=pass (google.com: domain of linux-kernel+bounces-27347-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27347-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 37D971C22E05 for ; Tue, 16 Jan 2024 11:51:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D04891B956; Tue, 16 Jan 2024 11:51:17 +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="s0aFfV17" 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 126421B7F7 for ; Tue, 16 Jan 2024 11:51:13 +0000 (UTC) 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:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID: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=6RK8HhUL7/mSLlRQcfu0FfBwVC2fqWvwSpORs6uHkzQ=; b=s0aFfV17JvR2ozhnpfGP5R2701 MqtQfq04Kn9eNo5CmFEYE6JLRGcextvHOveZ9/7kcn1NfSIlcBcK8KtaQKUf1Q5VKcrLc8O3ZRDt2 kmiLcGSE1XDVlMIaKLwhIgehEicZSZ7MZPQtWhtlvmfTpewH8d2mTIETlqME6nx8kZugNzZGm7269 rQMOTShleb/Xk2d7KRvMW3dDdHSWmt+bRRa7fV1rMnLp1hUG4Ihd7fbPobVEcJfxwuH3Dhx3EhqNC 3CP+0GBy4N8CliUiTmCabDjXGe1fhNvON1YjNlId8WBdMRQ9UqalvsBgEdwhd4yb68DDry1bpq8kj ChwaY3VQ==; Received: from [177.45.63.147] (helo=[192.168.1.111]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1rPhyF-006woJ-M6; Tue, 16 Jan 2024 12:51:07 +0100 Message-ID: Date: Tue, 16 Jan 2024 08:50:59 -0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/2] drm/atomic: Allow drivers to write their own plane check for async To: Pekka Paalanen 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 , =?UTF-8?B?J01hcmVrIE9sxaHDoWsn?= , Dave Airlie , ville.syrjala@linux.intel.com, Xaver Hugl References: <20240116045159.1015510-1-andrealmeid@igalia.com> <20240116114522.5b83d8b6@eldfell> Content-Language: en-US From: =?UTF-8?Q?Andr=C3=A9_Almeida?= In-Reply-To: <20240116114522.5b83d8b6@eldfell> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Pekka, Em 16/01/2024 06:45, Pekka Paalanen escreveu: > On Tue, 16 Jan 2024 01:51:57 -0300 > André Almeida wrote: > >> 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 write their >> own check for planes for async flips. > > Hi, > > 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 situations? > > Or is this not meant for generic userspace? Sorry, I forgot to document this. So the idea is that userspace will query what they can do here with DRM_MODE_ATOMIC_TEST_ONLY calls, instead of having capabilities for each prop. > > > Thanks, > pq > >> I'm not sure if adding something new to drm_plane_funcs is the right way 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é >> >> André 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(-) >> >