Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp332901rbe; Thu, 29 Feb 2024 00:22:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWtwGhENqzU+iWjsDqcv3qZt2tMHyAa02stmHzwq7M5K0SsDP5dbI+BfKwbt7GM05Nj3v5ab56O/GQt8EWFSo+dSdXPsOru5plAuBlY9Q== X-Google-Smtp-Source: AGHT+IETUpVB8taJC16WIJIg0siuLrcIz1a5OvhcGOZShHcF2AIvIi8ZQhyV0Sg6mxmhjpIAhqBO X-Received: by 2002:a05:6830:1513:b0:6e4:7e89:1205 with SMTP id k19-20020a056830151300b006e47e891205mr1423337otp.9.1709194976685; Thu, 29 Feb 2024 00:22:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709194976; cv=pass; d=google.com; s=arc-20160816; b=vXbDIzKnbHZFDtcUEVe6PtHiCNR785X8M+VBSGy8mO7a/9qUL1hM0HoFkua3HElQ7A yTjCe6biqq7jLUn5NYch1mEs1NmyxkOdKNs9SH8JtRwMhxmIPA6yylHDUhvSGa5aPdVF EBXtJzCKcGKSOJc7x/0MtESCajs7tzYbnFdc3LLX1CDSAsUPvrEXiXD/Z1RfMpo+OF11 Nv7euobzKN0UaHh4HO6JgS9IjTNAyXCCrC4U36J4tMG9Qy/d0PIafNyng+tYP4IBNTAS DHND50Bz2mQ7dBwce9JaWhyUMhq8e+vRAM5JMYLRlvrtz1BKEe88TK/UNtGrYAsV2ddV JWcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uU7z3hNqRbClvpLzVpa/lK25W5Z53cUrhBtkPX521Fw=; fh=Td87D/P8gMHkTsyJFm/wLaYqm7B/fMmtBe4dD2Y3O9s=; b=rJqgwRlnU3yFUNTTNmf4gSUwAVsCjSPklfVlYI99Uwx3uTQ35+T2NFtvXSIzPhUxzw 7xXXaGdvXnwAFmDWX65U+ap6Ob1SrxEGt/H8iylQ7MIWpystCbl6kx3uMRwVLZqbrC9m kEg4QI26REWK7tyJ1X2fYAO4aIMrrP41i/5Qj/bz13xAI2ls+RskFOfH8VTHSL7BoKgw JTAmUL7xc5r9fPz0EizLMjtj83A0q9wJFC46DKUDt4zo9Tf+F9oCOdA0iZw3YljRUVMv IgnOO+U3d0EtSsR4E2zmmXC571mGmd2i+1Lzd4K0GOpGvVe5R8AFGD39E3BB4+3H9Hp6 CD2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QczWfHG9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86280-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 e16-20020a635010000000b005dbcff42ee2si896823pgb.536.2024.02.29.00.22.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 00:22:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86280-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=pass header.i=@kernel.org header.s=k20201202 header.b=QczWfHG9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-86280-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86280-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 A0FD7B2245F for ; Thu, 29 Feb 2024 08:21:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68A894D11B; Thu, 29 Feb 2024 08:21:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QczWfHG9" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9237B4879E for ; Thu, 29 Feb 2024 08:21:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709194870; cv=none; b=sEGxAUVLXso6tGAZ5qMAO0kg7DNqHsaoq82B7hG9hSh+JMSa/J9I34R3j2OJpjV2+nPQLEtUHjJ3V3pDEDt3qWDHCbEm4n5qL1rLUDJ4z6bU0Ntie+rcevv7TeZtQnx+eXj4EDN+X0xjeNmyQq1jYAsg5zZSWH0x9uFWTdspFVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709194870; c=relaxed/simple; bh=rKNBuW8y42BsiMkdbpdNnHpLhtnB04eGCNz7vyIXnxw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XOXy09lbEw1vYVvTW1nknrZGoTahikW/Fkdnay1PUbJzgVjdJEXD6m51zGtsU3rMdHQbYZqu5pzbUUFPfadqHd8tK/T5SuznlEm3z7+JQTbatkknDhlGf1Fix2wahgxgUa45KprbqkQLyAcNNnKjQr2JlS0pSzA7wPJrKWsHBxY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QczWfHG9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8947EC433C7; Thu, 29 Feb 2024 08:21:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709194870; bh=rKNBuW8y42BsiMkdbpdNnHpLhtnB04eGCNz7vyIXnxw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QczWfHG9UEVVneRoWGMmkbXgEyytmMYUnY0vq0Xqa8LEOaqYopuX3t2SOmx7tPnDi 5ErLtcwULad5ImD9cSc4VNAJzeV3kNE8fII3cTAArBCbP36gk/RxzeSFDG2afemaNA ljXEtuBQ4OWfw0NLheod+v/Ji13oBMpOGFCuzPyl7JBbST1xFwYtWpADLaW5H+LP1v 9fIrYihed70QhFj1yY+USRvi7MnuZG+nDGlJSKqu74xfZWMilc1RZpZojpMF0DTRaj iwIEP/We2Cz54zhMj2sBh6YU1/UtQwwVjM418FIOd3qck6jUe2XsGzb7wb673WJGt7 9BtH7SEABSIpg== Date: Thu, 29 Feb 2024 09:21:07 +0100 From: Maxime Ripard To: "Klymenko, Anatoliy" Cc: Laurent Pinchart , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , "Simek, Michal" , Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , "dri-devel@lists.freedesktop.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 4/4] drm/atomic-helper: Add select_output_bus_format callback Message-ID: <20240229-crane-of-eternal-joy-f675d7@houat> References: <20240226-dp-live-fmt-v1-0-b78c3f69c9d8@amd.com> <20240226-dp-live-fmt-v1-4-b78c3f69c9d8@amd.com> <20240228-nifty-flashy-shrew-905edc@houat> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rs5ri76nt4anyhzn" Content-Disposition: inline In-Reply-To: --rs5ri76nt4anyhzn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Feb 28, 2024 at 10:00:19PM +0000, Klymenko, Anatoliy wrote: > > > diff --git a/include/drm/drm_modeset_helper_vtables.h > > > b/include/drm/drm_modeset_helper_vtables.h > > > index 881b03e4dc28..7c21ae1fe3ad 100644 > > > --- a/include/drm/drm_modeset_helper_vtables.h > > > +++ b/include/drm/drm_modeset_helper_vtables.h > > > @@ -489,6 +489,37 @@ struct drm_crtc_helper_funcs { > > > bool in_vblank_irq, int *vpos, int *hpos, > > > ktime_t *stime, ktime_t *etime, > > > const struct drm_display_mode *mode); > > > + > > > + /** > > > + * @select_output_bus_format > > > + * > > > + * Called by the first connected DRM bridge to negotiate input media > > > + * bus format. CRTC is expected to pick preferable media formats fr= om > > > + * the list supported by the DRM bridge chain. > >=20 > > There's nothing restricting it to bridges here. Please rephrase this to= remove the > > bridge mention. The user is typically going to be the encoder, and brid= ges are just > > an automagic implementation of an encoder. > >=20 >=20 > OK. I'll fix than in the next version. >=20 > > And generally speaking, I'd really like to have an implementation avail= able before > > merging this. > > >=20 > Well, 2 instances of this callback implementations exist as drafts, as > this is the new API. A little bit of a chicken and egg problem. I'll > try to groom at least one of them into upstreamable shape and attach > it to the patch set. That's totally what I meant :) I basically don't want to have an interface that isn't used. If you provide an implementation in the same series, it's totally reasonable Maxime --rs5ri76nt4anyhzn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZeA+cgAKCRDj7w1vZxhR xQLtAP9/fGoxq0DXjo7CwyIuSIvVRUO1zC+/mQvsS2T+X6Z0gQD/aTj1xrt+ImK+ u6CAeB4rSGry8XnZlOByE/CzK+HDXwM= =dkG1 -----END PGP SIGNATURE----- --rs5ri76nt4anyhzn--