Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1038811lqp; Fri, 22 Mar 2024 03:58:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVHMXhQnL/xMQCwm26PCiwpAXb4cVTyaupCKFcKZFdtKSOuqJVhQUt3N0CBWeO00+Vn95hsH3fR9Kw7h1FQF7hsaWnamzXDoAq9xDvzNQ== X-Google-Smtp-Source: AGHT+IGVW8q2ZTAPP0wj/xI+SlAIOTGD9C2mUhLCqHU1+f3Wjxl3/FRkm3ii0Fn8kerglWZoCGlm X-Received: by 2002:a17:906:1453:b0:a46:ed72:6bb4 with SMTP id q19-20020a170906145300b00a46ed726bb4mr1363409ejc.72.1711105089925; Fri, 22 Mar 2024 03:58:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711105089; cv=pass; d=google.com; s=arc-20160816; b=ygU14sBQ7UasmXnN5ug6jnJSILkl1z2sioSknDoALt3uX66Vi7jx21eahaK6c1WQCy ycMeWk3ZvBHlbYer/nycxgAj5Vlaav8QrWNzdFA3pafI3F1YQDSGYxR5nEl3TSR+7tyc /s3Fmm4sA0BvZg0WauGoa3m8fDVyzhwe0eMUGULZEwInfFMQolbPFP2HHj5N19xAX9xp cZOoY0wQ3QasFg+2GF8B9lxYuyHFiyN3CfihLYwRQwWCKqhnB7fz8qqqYleXgcl35SYC dKee23fLy4zfy6G5xQgUbK+mWHL6gcTxewGhk6QpSHFsoy2ISJd3vGM9tXOlIiGMKm8m N4HQ== 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=IZ60Tp+Sy105vLbt5cvx918JGMs8SEy6auPW8lVvJYU=; fh=sGlyFS36Y/rP6ANYxF7bAIlJ5cPPHlUyfko7n+Z9sVo=; b=fgFT6mnYPezmI7aAJFZifzIXbQbXxoSHttK383RTYHJzSFwMEY7NgKACOAN9FkhKDQ D41MWBVaRWcTjVsmqykE9/sV/GCOh0UhvXy5zoBRJW4HZv4cb4v+5qNgz4nRSV887doz 9e7gr5fQKgqCHg9j7g130Ux74gj7WCSyQx5nPGGNruNvFwcdYP+3ajSWaNQTS6UaNbsl fPfFgIlS5iN1VYA+CCdEf52V7F++duOsUSoRCrvEhpC0KB+Y2ba1NQFtj/r60PAq+vy/ hXOidO2c5QXSoqIzhSvNTIrBgPIF5Bi/H/O8TDUekW1AB4m94eyUTSPeHYHDLT5+d+3z EEeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WpA6X1Lo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111329-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111329-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o8-20020a17090611c800b00a461e0e5539si823461eja.456.2024.03.22.03.58.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 03:58:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111329-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WpA6X1Lo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111329-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111329-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2D5AC1F22941 for ; Fri, 22 Mar 2024 10:58:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 282F33E47F; Fri, 22 Mar 2024 10:57:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WpA6X1Lo" 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 402933A8C3; Fri, 22 Mar 2024 10:57:56 +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=1711105077; cv=none; b=kiYAeBajcl0+COacI37SCfAzJuSO/sExnr6/NS0TIzOR7x4lWjLZF3DgRqeAxMI13s+nketMQEAjsBww3evZ11gK5r8PR4Ql0B0nbNyl5x5TTng4DUE5LPDUP/9jf7QFFd8NEzUprFGOXp7qA97WA7iXUygnOUOIwI5tdBrvcQk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711105077; c=relaxed/simple; bh=nlaETEiIGQ2eTWX7oKqL74fXDifhnhPwROBUgVdqU3c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qR09vVzUWbZdfHI8b67Ac3vvGYH4rAnv/jDQ9gNosnczA+1C6vI1aEAfXaU07HXugamapBzSYwhEm9f+M4lAOfXxEv7IK6cYkY0QKXx/lArV9J8eIMIYVvND2k9qODH+LoYmoGx9jNKpbdT0+2PqZCcGnefjYD3EpHiqCj2AmAw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WpA6X1Lo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45857C433F1; Fri, 22 Mar 2024 10:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711105076; bh=nlaETEiIGQ2eTWX7oKqL74fXDifhnhPwROBUgVdqU3c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WpA6X1LoXT1snLrEBUrv47M4O+WPR1M1LSXUKZTKa7BviiI5MfgnUuEJ6uLymJngV SvMs2KzBEf1XJrTAdpCwLwLzsvO6rZP4C/Mup2j5bb50a7peYF5b9rigdIigmfJTCw x22flsf8LNzqlu2TPnGKoHlzRXcnvy7/kbFaAzWZj1PY2xlXBDWtIiKQ5LpjhGFWGb zDPPY1CKcX0T1MKMmwwyc+j6Oy/g+LisuATN6Lqd7NeaeWrYlv6xV9DLxeC+JMwXwj F9oaSkOyNOe5SCtc35wwS5an8ku2gHo6udRMm55JpxeArLi6VkFSW/wVgqvm4BFlVs 5spXkcfvxXDNQ== Date: Fri, 22 Mar 2024 11:57:53 +0100 From: Maxime Ripard To: Jani Nikula Cc: Sui Jingfeng , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Jonathan Corbet , Sandy Huang , Heiko =?utf-8?Q?St=C3=BCbner?= , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Hans Verkuil , Sebastian Wick , Ville =?utf-8?B?U3lyasOkbMOk?= , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: Re: [v10,20/27] drm/connector: hdmi: Add Infoframes generation Message-ID: <20240322-petite-fabulous-bustard-b168ec@houat> References: <20240321-kms-hdmi-connector-state-v10-20-e6c178361898@kernel.org> <07125064-2a78-4515-bb48-655f2aec140f@linux.dev> <87sf0iliyh.fsf@intel.com> 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="jkqjvw553wk4yfqo" Content-Disposition: inline In-Reply-To: <87sf0iliyh.fsf@intel.com> --jkqjvw553wk4yfqo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 22, 2024 at 11:22:14AM +0200, Jani Nikula wrote: > On Fri, 22 Mar 2024, Sui Jingfeng wrote: > > Hi, > > > > > > On 2024/3/21 23:29, Maxime Ripard wrote: > >> Infoframes in KMS is usually handled by a bunch of low-level helpers > >> that require quite some boilerplate for drivers. This leads to > >> discrepancies with how drivers generate them, and which are actually > >> sent. > >> > >> Now that we have everything needed to generate them in the HDMI > >> connector state, we can generate them in our common logic so that > >> drivers can simply reuse what we precomputed. > >> > >> Signed-off-by: Maxime Ripard > >> --- > >> drivers/gpu/drm/Kconfig | 1 + > >> drivers/gpu/drm/drm_atomic_state_helper.c | 338 +++++++++++= ++++++++++ > >> drivers/gpu/drm/drm_connector.c | 14 + > >> .../gpu/drm/tests/drm_atomic_state_helper_test.c | 1 + > >> drivers/gpu/drm/tests/drm_connector_test.c | 12 + > >> include/drm/drm_atomic_state_helper.h | 8 + > >> include/drm/drm_connector.h | 109 +++++++ > >> 7 files changed, 483 insertions(+) > >> > >> diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig > >> index 16029435b750..3d3193c7aa5f 100644 > >> --- a/drivers/gpu/drm/Kconfig > >> +++ b/drivers/gpu/drm/Kconfig > >> @@ -97,10 +97,11 @@ config DRM_KUNIT_TEST > >> If in doubt, say "N". > >> =20 > >> config DRM_KMS_HELPER > >> tristate > >> depends on DRM > >> + select DRM_DISPLAY_HDMI_HELPER > > > > Should we select DRM_DISPLAY_HELPER here? Otherwise there will have som= e compile error > > emerged with default config. >=20 > Can we stop abusing select instead of adding more selects to paper over > the issues? >=20 > Use select only for non-visible symbols (no prompts anywhere) and for > symbols with no dependencies. I don't really have an opinion there, but it looks like all the other helpers Kconfig symbols are using select everywhere, and I don't really see how we could turn them into visible symbols with depends on without breaking a number of defconfig. Could you expand a bit what you have in mind here? Maxime --jkqjvw553wk4yfqo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZf1kMQAKCRDj7w1vZxhR xc/HAQDR4BAgJekMdSngCGLSGAIwvYKEqlQRiRUN6fMwNgtn8AD/ZP+T1gMMLHE4 j3QwJraA/yFE8keMCRsPbgZVFnq1UQk= =gyOa -----END PGP SIGNATURE----- --jkqjvw553wk4yfqo--