Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp935184lqp; Thu, 23 May 2024 04:46:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVktu+y+U8AnBYUlIgG1TcVeXD8w1cuwMZAHgFB0IlGBtWzcDktOT4luJJKrjH9AFCfcFrF2dMNF9gMYUSZhnHUWhIExTcvmHPId/2Q5w== X-Google-Smtp-Source: AGHT+IFZhedLmDiDyI26/dtyJlA5KYgoMXDfAryqw++hf7DCQhgzh+5z84MmKnsAb9wJo05i3vEM X-Received: by 2002:a05:6a00:2e92:b0:6f6:7c56:e989 with SMTP id d2e1a72fcca58-6f77256628dmr3387950b3a.2.1716464808544; Thu, 23 May 2024 04:46:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716464808; cv=pass; d=google.com; s=arc-20160816; b=D4t2phqt+hl13590rWhw1rVgQeeVSP6Y8UnthDRWnOX+b3yUu1NhGwJga2ILPCeyF8 fXuI0Dkur1K9UySX5Z1z1AEH3b4gwpFcTbBAc67JfiVcRZeJBAVymmF0lG1jqTCnXzjl YAHJ8VmyaAIo97sqV5aOebeyewAMtqJSdyorl8cjo3OaR/6C4ntT7f7rlUQmrMolgWdp 9GBw0wJlRs3J62EXbmEiVIlB1NVhVn0PGcF1Xq0QPQJCFoz3SKYX8PMzb75qw2fQE+s8 AhHSP/bUDkw09Y1BNytwY3GiMbpWpDlqNSbSIuhEEYSY9BUCJJgQs9gkIDaKXirDktw0 Sqlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uprefhCgqHmgRCR+cfAZCBDosMSOOYvyqNmZZJrA1vg=; fh=BbYYkBpcGtOJ14UqKpkzzBHCODIYAgwRR+0qqZtyPIY=; b=C1ZjEugjCLOmO+sRYNpAEYTrwIkBcPV32isfYX4Q3tTQFaGQh44qC1os10O7nn1f8/ JK4KsEPSsCArd6M/zX3A/4QuFSPm7alwIZZi8d5/Q1MinNWdFF0VvXHGWSWVer1Vie4n UwbP4CZWgiBS4aAAQalNJMn1Mn/swf7DU3DiMMVhvBIZBRbKmVp8IGuExkpZIQsTjtAm CVrwXyJauXMAMVtXGjyZE7zBRvplFyUqiUmQ4o3mX0HaTyfzh5fz4ol5tEn7H1cMUuT5 f2HyV0LqyIPaWL1xInEWdpweoES/VxpRxzH0Z6ijbLvvpTCi6GHmrzNd4A6IRoRCr/ne D0Ig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g9Fw70R6; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-187412-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187412-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f67aa9c3fdsi445271b3a.200.2024.05.23.04.46.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 04:46:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187412-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g9Fw70R6; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-187412-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187412-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2E30A284424 for ; Thu, 23 May 2024 11:46:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 200C11D6AA; Thu, 23 May 2024 11:46:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="g9Fw70R6" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 8E75950276 for ; Thu, 23 May 2024 11:46:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716464797; cv=none; b=sbUIok3BEPmbW/Y3La0LW7aO1RtVhds4Hl3Ctb+uaqrfTXiog0dNyyPf5zlAJ6EWa1ULdXhwmQc1fXx/LngNSmf/j1tAvAGNzmov2Vu5IQ0urdOpgH3x0r/Z4RA+3Nl/68lMQ8wXErNjNUbapX/OWsxZxKpkk+B3V17DZ9MbtEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716464797; c=relaxed/simple; bh=Tjqag5Ft0/cLNmS/1MjmwM9JVkyiVtyORGiBEQxrD9Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S2he8kJJTMFIZVfLhGyHEt/kIVCdishygjKK+tY9rAXeBDdfHGqHF11eLXclA/V32Ax6/hE4Cx2fEXOjmfYHVeIWdxa1ECF9bR16DO2lzaU/K3kBTbx+sW30rweuSiET/jKzb7Aa/JHG6ZOMAl6YTSfh3YVTX3QBXYQ5n435aHM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=g9Fw70R6; arc=none smtp.client-ip=209.85.167.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-52449b7aa2bso5040417e87.3 for ; Thu, 23 May 2024 04:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716464794; x=1717069594; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=uprefhCgqHmgRCR+cfAZCBDosMSOOYvyqNmZZJrA1vg=; b=g9Fw70R6b43lf5Ip9QrCl+lbjJw2gBUVFOEVCYBSZGCxaqE7J/CjbyC+tu4y3WJIYq 6j0q4nKhA5lHUuFWYNFszBacdMC/4A4i2b6EaUP3oGr4HLiwjZ0klwAnI/jgadZ2j/q6 2y27pdlbEt8IGbMpYx3r7CTb6HR+3XO0JuzyFAnb5YcYMCzW3xh29glq7HOgF8iEZQYV 8Feq/1Vt+wmsFqrJ9IagF99EmpedfaN2RsOXdesZKC6awLi8LeAmbESv8W1cul9O+j0L D4SRBRKjL8gT31BjOq9ioXIcWS9VHXPLMwxFz98ISLKN0JBcWyo9bykR3lH7kfJKoMbE 6nyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716464794; x=1717069594; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uprefhCgqHmgRCR+cfAZCBDosMSOOYvyqNmZZJrA1vg=; b=EtBZ7vISgsT0kFQkY8wbTzMzA518Rfq0zdbY7352dWlCB7Dv/gvsyc1YgMWkRwERI3 cU8Ktx74BLAF9M+Nmstx7iDprB5yZ1Qtqwvb29UG7YtPKBDmWNg44XFzBsXIbJrXXZrx i8eRbx1P1ucCDDE6XKbIV6zHH023QkfZU/TA2XBXwZZRXyzj12kwkAodqlgRhp83Jkm7 geqzqLlHz6P4QqjfIPa6jb7blo5fdqBCg75TmohJUHKbvJyHFqOXSbnEpa4E7IA5Ll+5 3doG3U9apgE/wA6wlSA5p5iBVJ297Z0TY/A0n6gWzx/rcRVL4wpU4bAllybUtQampV4q NU9A== X-Forwarded-Encrypted: i=1; AJvYcCUysb8U++FbCvzqC2skapIlp6d2Q1HOgxS2bXkHVdNvfZIiDivA9W1Df28zc7VCJkrUaz0cDnmqdIOiY6sA4i9L/UztfzLY4bNh02Q4 X-Gm-Message-State: AOJu0YzjvjKRT0j25U+U+6hTh+W9AfdndiMArjrqdrMHnn0eTMmrjCNx ak7PA4FCsL+J6WtzU1bly5OjDxP7kRp60ennowXsskKplkddhW0YWEFm5u7n678= X-Received: by 2002:ac2:4d1c:0:b0:51b:248b:e768 with SMTP id 2adb3069b0e04-526bef87adcmr3053749e87.25.1716464793664; Thu, 23 May 2024 04:46:33 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyyykxt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f39d2c84sm5319149e87.282.2024.05.23.04.46.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 04:46:33 -0700 (PDT) Date: Thu, 23 May 2024 14:46:31 +0300 From: Dmitry Baryshkov To: Maxime Ripard Cc: 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 , Andy Yan , 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: [PATCH v14 21/28] drm/connector: hdmi: Add Infoframes generation Message-ID: References: <20240521-kms-hdmi-connector-state-v14-0-51950db4fedb@kernel.org> <20240521-kms-hdmi-connector-state-v14-21-51950db4fedb@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240521-kms-hdmi-connector-state-v14-21-51950db4fedb@kernel.org> On Tue, May 21, 2024 at 12:13:54PM +0200, 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. > > Cc: Ville Syrj?l? > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/display/drm_hdmi_state_helper.c | 336 +++++++++++++++++++++ > drivers/gpu/drm/drm_connector.c | 14 + > drivers/gpu/drm/tests/drm_connector_test.c | 12 + > drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 1 + > include/drm/display/drm_hdmi_state_helper.h | 7 + > include/drm/drm_connector.h | 111 ++++++- > 6 files changed, 480 insertions(+), 1 deletion(-) > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry