Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp885698lqp; Thu, 23 May 2024 03:04:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/e9Mk3ZLw2TZVT+3oNSu11wvn552VL9qoi3lSgTeb82e/SwuOYKAR5F2LQkZTcVl0HE3CrMYjfOwRRvETqVnEa27dTvt53HamODd4Tw== X-Google-Smtp-Source: AGHT+IFJprw/kolVcjd2MZMHMCOz2u39se0qnj69gkDOELIt7ol2etqgVVvxN+W0Hf6dSy9zdK/w X-Received: by 2002:a17:906:604e:b0:a59:c0a6:25d3 with SMTP id a640c23a62f3a-a622807ad83mr263068166b.12.1716458653109; Thu, 23 May 2024 03:04:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716458652; cv=pass; d=google.com; s=arc-20160816; b=rKkPIeEy7J8xFDjaJc9SHeO4iAOpJ+ouON9NFO25II/Um0qIIBbYC9VL3B+9OuiRd4 dASTbD7f0GuGBJ3J3aA+drEE415OmGRO1C8FqFx4Hfr1ZiN6RlohVnNlneMe7jPfDvqh gtAux4lyjkiR01m4Mf86b1rmbto2NkuvzBfXw0KskDpLbAcKEy4jAN/DNe+Uc+S0erv9 gq7zzaZX647IpW46N1Pjaw8utObcDWDVN5t36y0TUhvV+6A6zQ0jh10zCZMp/izZz90C V12KAdrAVtiEmEWuWpArSQWQOGI831+scQYnhm/f7CMtCn7nFDWVMgf5VZyrNonajxXP AclQ== 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=TH/BUWVtxkmUJ13gtzS4sCxD7fWyObo8iOIYwJa0PIw=; fh=pGzcsZzH23olip7ttvZy/mu9jOSr2kTxF6aOs1uJoNE=; b=kRnv4MwXJ62QkS1WlM2Vazvq7eB1VkV+ALxcCwcEtSKRL4PKVeoZZBNH7H+h/qcCnv UwFVcN7J62Le9VH+N9rKnHsksIaEZzysUU0+ZFXd450vDyZFnsJkORkm01fpEix5AC9c wwUFYkKXFXSAnGHdS63gIXfPtE20ekQ4yiORyYahS9leV35K+QZzd0y8f+Gvp32OhqJj XDQ+WL04kdJiAIxyvZVT9S6jk7QJEhXiQsfWKMBKaIB0vhL1239xoZVyDN63DG20Y7It UB6PstsL7mVPhsZ0Hl5VuUhZ4fw+/uxiz1p8J+t1QzGEW1nzoK8iJRlFUs+ygPAmkJh+ Y2bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="x/i3tPBA"; 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-187301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b21e93si1716746566b.451.2024.05.23.03.04.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 03:04:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187301-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=@linaro.org header.s=google header.b="x/i3tPBA"; 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-187301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187301-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8A2671F21523 for ; Thu, 23 May 2024 10:04:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FE9A13E3F9; Thu, 23 May 2024 10:04:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="x/i3tPBA" 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 937D013D2A8 for ; Thu, 23 May 2024 10:04:02 +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=1716458645; cv=none; b=esLKBKV+gkt1UORtWRjKxcDKDoVdUAsC9Gx30YVgJw1aK5wOyxosEaVVG8NPaH/G6pVSemsLEuxXyGThf0CtGhGNDkACeQy+WLIgHTKH5FMCauYZ+oxG6YdQfjYEG5vEgBYIxomVuXPjcM9phERRs0XWnDQk34lXN7IUk8gWvYo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716458645; c=relaxed/simple; bh=BHP9XT/mVXwqm4ETOekupe344ZcCjtfN+SBGF641Vc4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q550MRLsFWLvEDW8PHt91HG+f9cYc+vZWkgHKyFFSInL3hTcIZmwSusZ72duOvCHRBQbmm2LCZFaH1HeeC3SP4WVnV1DRNh8wcDTUMt61izXAuJAWVjrZY4iKt3jtsyAHVAwDUj0U/SxpFjl3FUvnwYbO7gacdgbpkMpi3jhCEk= 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=x/i3tPBA; 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-51f174e316eso7010621e87.0 for ; Thu, 23 May 2024 03:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716458641; x=1717063441; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=TH/BUWVtxkmUJ13gtzS4sCxD7fWyObo8iOIYwJa0PIw=; b=x/i3tPBAJ0nIFSNZNVwvRgUGI9xLp/XgaIQo8VX18/hCsQ8IfU46o5PLInDkgfDTSp NHtqMNi2ez0QsLApxRYuEp0WhN3X1kYxP+Buo1Rl+QgKSncssA37m4cI1JYF22YL8Nzl ht8C8XY+gUhqnpB0NGgE4uOLXSK1NztO8Kj+2WYIUD9IZ6hS8uU7abIZiJeADkBxiQsf 2d/VKh8bDToR+uKWNBkO1LoovBEcxevMiI2gtO2UPRCJpA3wH9EmYqKM7s6UuHHMVJf7 +ejj7UDOAxyPhhWHQVro65mVmhGO9CHdKLery7RIfnVFU0kI+ejhTFeVl2qNsUsTVOw4 lhNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716458641; x=1717063441; h=in-reply-to: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=TH/BUWVtxkmUJ13gtzS4sCxD7fWyObo8iOIYwJa0PIw=; b=Tlvs5IrUkdD+U97jZGObEz2jhBRub7w6dSHzADopaJvFYro0sgVIOUgL0oVktosyfV zwnYsyALAhDHXk5E9jJ85E7qpokigeCFgCxmjbGxYYdb/yGpG36nhfJbgWDEAQu1U7Lu ZRyZRq4/eJ0aV+fv81C+n4F8HrnfAIT48jPivkg7H7erSe2MMLCVyqUtMYPO6AbFc2CX 4pwK4dNoODfV135DNnV3ERRvnbTKOEh4DdVVZ6sJZjLCoRfJDfptzmtrAl0vFD6bbCHG m2qnZU3SRLF7xN9Px7WURPRrViXZmfBczlYPGvjBCglcr1C2BsvYt05ivWLYFOiIuNGq aEXQ== X-Forwarded-Encrypted: i=1; AJvYcCXHkQYvC8avBwZXQFgQlXcjIof8IYOQO0kxPLtBFReYuCuB4cKPaRx7kkrM6TXd1SAKzaX1/VlmHRXYLTMQuuDzzNg0wGg/gwMrHc9M X-Gm-Message-State: AOJu0YyWtGZ5vUzCqcPDQqZhmu+71Xh7IvGy5IFDYqsW1oRL1QWdQ4uy Tu1NShwDj3aGgKITOV9dr8AbQ/70INZnw0Rji/QQHEasknLS/V3odGW/udyowO4= X-Received: by 2002:ac2:5930:0:b0:523:89b0:9b64 with SMTP id 2adb3069b0e04-526bebb45afmr2452653e87.7.1716458640738; Thu, 23 May 2024 03:04:00 -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-521f38d8ae2sm5423836e87.204.2024.05.23.03.04.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 03:04:00 -0700 (PDT) Date: Thu, 23 May 2024 13:03:58 +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, Dave Stevenson Subject: Re: [PATCH v14 13/28] drm/connector: hdmi: Add custom hook to filter TMDS character rate Message-ID: References: <20240521-kms-hdmi-connector-state-v14-0-51950db4fedb@kernel.org> <20240521-kms-hdmi-connector-state-v14-13-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=us-ascii Content-Disposition: inline In-Reply-To: <20240521-kms-hdmi-connector-state-v14-13-51950db4fedb@kernel.org> On Tue, May 21, 2024 at 12:13:46PM +0200, Maxime Ripard wrote: > Most of the HDMI controllers have an upper TMDS character rate limit > they can't exceed. On "embedded"-grade display controllers, it will > typically be lower than what high-grade monitors can provide these days, > so drivers will filter the TMDS character rate based on the controller > capabilities. > > To make that easier to handle for drivers, let's provide an optional > hook to be implemented by drivers so they can tell the HDMI controller > helpers if a given TMDS character rate is reachable for them or not. > > This will then be useful to figure out the best format and bpc count for > a given mode. > > Reviewed-by: Dave Stevenson > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/display/drm_hdmi_state_helper.c | 9 +++++++ > drivers/gpu/drm/drm_connector.c | 4 +++ > drivers/gpu/drm/tests/drm_connector_test.c | 14 ++++++++++ > drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 4 +++ > include/drm/drm_connector.h | 31 ++++++++++++++++++++++ > 5 files changed, 62 insertions(+) > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry