Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp448584rdb; Tue, 16 Jan 2024 05:35:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhkaPlBhtOIR0bqQIj2ZskeErZQjcl/Rg8rwSmkmjA+u59k+ZJYsvfy74pgpPlFboctQaD X-Received: by 2002:a17:903:1205:b0:1d4:bce0:8561 with SMTP id l5-20020a170903120500b001d4bce08561mr10112857plh.85.1705412149825; Tue, 16 Jan 2024 05:35:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705412149; cv=none; d=google.com; s=arc-20160816; b=LuxdVORc+AgxaiaHNoACMqve0AgEXBbBb9QPM7XJ+K0QwABfChHrbEoygr0CuC3wGd ZIA5I0ykvshXFk7drSunPSZS/yCcj/X33b/DrAiLWbtar88HRxp0ygSolBK3FEwNzgM/ ctVnQYQkoT6DsYz6VQ/mbHBEGDCm7IYa7ulj3wd8HFgnQ3mfUICFgTglla4X+Ixeq7x0 bSN3vGEAnptSVshBrY/AgyrXR9rgrXzKC7NoX6GPvGNabDcHXue5h7N0Uq1d4bZJHtKV AP+aoD9qkgpEI6SDR1ZDd3mOod4W212vHuOGpbgtWNFkI9LO1a8bb3Qv66TZd2K8s6tl Gvhw== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=wKDZrSr5UEaNlLwHGrAasvRdAMXTo1e2KPdcbvBvbx8=; fh=ctTD1CXR8v6cDWpLR/KL9vBpKSMfQ73LrDQPoqHEDAE=; b=PQ/QJE/qKr0ZCfpCYsIrnBxwHpTrbtUS/noKXo9y+z/3UEjxRFkSw2D2B2Xd92k41g 6BrPatZg+MJ77m6NAFK20z9oLmVDrXE84XbLm9qflRBzwh/xzUUDa0up2LklBGMD+wKl wmKurCCwlDak8w/AgCNp3fHCRb52Ej3eL6dAseeFWTACczjU2fj12x9hIWCCZfR1mVTb GmplCm0JrmK8s1249UPtpcFEpC8vo6LVOsmrsIqapTwD/RSEOZN0mrlzBVBdHhuLFLpj FMNXnYSastEy52XLsNvrnXGt7F9z5gHZUVTsNG9BTSz2mnQhdRNFHv8MytXgJ2bkWMYs mdqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=FEV9NTpy; spf=pass (google.com: domain of linux-kernel+bounces-27423-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27423-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id je22-20020a170903265600b001d5e9f5a6c8si1118685plb.215.2024.01.16.05.35.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 05:35:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27423-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=FEV9NTpy; spf=pass (google.com: domain of linux-kernel+bounces-27423-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27423-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 5CC2BB232C2 for ; Tue, 16 Jan 2024 13:35:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E4F31BDC3; Tue, 16 Jan 2024 13:35:38 +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="FEV9NTpy" 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 7B5E91BC4E for ; Tue, 16 Jan 2024 13:35:33 +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=wKDZrSr5UEaNlLwHGrAasvRdAMXTo1e2KPdcbvBvbx8=; b=FEV9NTpyCttcNbLmRy8Eh0mFAr vz4pkgZeWzj8JtOdMoM3GW4FzbKXDWXGlJE81hUZRcuiDRhiKX7AuIbb7jwRo4xJCuO/3mgrVPTDM G5wpYioIVBcmg0BRpHDI2Hep/Dm1a/BEE4ukJ3Vwg8pd7iaT9C5YLqcrgrqGWVrEi/ghHaK12aehl WKPiwIodYTJ2sONx/5AbjfW/1mzlhNP9MSpEUmKPDRadcHk56LS75tufAbLMdrVu1U1DwdPxKQDR3 pIXdzWqOL/V1bhyndQs4mfQmXsXUNvnLgbHCcH5/1ZftSzBS4ArBbvPwOd4zTcjqOvaNlthgpoqnk PikmFWTQ==; 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 1rPjbE-006yYK-5Y; Tue, 16 Jan 2024 14:35:28 +0100 Message-ID: <47c6866a-34d6-48b1-a977-d21c48d991dc@igalia.com> Date: Tue, 16 Jan 2024 10:35:16 -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 Content-Language: en-US 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 , Joshua Ashton References: <20240116045159.1015510-1-andrealmeid@igalia.com> <20240116114522.5b83d8b6@eldfell> <20240116151414.10b831e6@eldfell> From: =?UTF-8?Q?Andr=C3=A9_Almeida?= In-Reply-To: <20240116151414.10b831e6@eldfell> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit + Joshua Em 16/01/2024 10:14, Pekka Paalanen escreveu: > On Tue, 16 Jan 2024 08:50:59 -0300 > André Almeida wrote: > >> 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. > > 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. > That's a good question, maybe Simon, Xaver or Joshua can share how they were planning to use this on Gamescope or Kwin. > > 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(-) >>>> >>> >