Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp875608lqp; Thu, 23 May 2024 02:40:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXlAkuUxLD/pfKJ3zOiGoOYFoY/Uk9wipasEQNGv7+i/jZM4IAj01oAj82KA9jNyOuF6hA/pCnAJ6I36NttO85uVcMkrzeL53A0FXCXFA== X-Google-Smtp-Source: AGHT+IGdBqmWkCnyN/lgiuoyX6NkrGeNUhXODHqBqrNRF9wxirzubi5zpi3gdO37OkQ8Afx7Q+dn X-Received: by 2002:a05:620a:3799:b0:792:91bb:9ca3 with SMTP id af79cd13be357-7949945558cmr434729085a.37.1716457201157; Thu, 23 May 2024 02:40:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716457201; cv=pass; d=google.com; s=arc-20160816; b=i4dylPQNSvexAnmVuZQV0IRvSGlrIhE8OgIpSI9CU5N322J5C4EZKftXECMe3LrTWY vqTJGKQW3jjN0IKqctAJdbGXWsGL6TGXw/35L0C1NDdwBGJJKV/nXf0o4+Yjcav7wyes BpmNBqTWngatWLSsMyvUGq3t69jzz8OZ13mPZSEEPtBoKkM2m0pwSP4JOcBLzwfmwsDI UD4uRjUTiaBH1A0Af71FyEJnX3wwWtuUv42F6HOAQEaW774b/5BBt4M3TdDRL0iJ/0k1 Hjd1adnUorA8vjVJpbEvi1OELQofWEdOg3BrcLRpLd0U+HDcIkcieMWVZzqeHWTsNok4 1VAg== 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=nZr+4M+DoXpeV8oSkkFyzaRfzRj8DnnoccV995epHpo=; fh=apylwXG5EUSdbWguQpYdoWD0JDOMpF969wr/vE15WjA=; b=B6M+qwYfeYCijcGafnBm5Dr9H1JLdKufwCr5uxXOHHG0pijEj0imnvAOLYMDhleKXw TsMsPX8hJIrPiw6xtYkN//aqMSeKKrK6Gjtl1zkerb6eMUhYyPcZGq7SLXy1RwvJcnGn jFbEyQW5o3E+eSqQPIK/d7wzueO8UGBG2VaRIaxs9I+HuzhzsI+LhiBhNqVR2yTjUhvg tFIDvxgsh26CNZBmcnSBJMuCxSh0ltwKnw7kr3guyrgz+GmVxeAafqy4BsDzlNNZKgMO 2mAUBOv7uo188OS2K6d0l9M6A6fKqH9etSzYkbzRkqTXEN5QtxI/L72Gc7iXuHEroWtX KJmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eCLSAXFQ; 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-187284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187284-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf30a3a8si732240785a.243.2024.05.23.02.40.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 02:40:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eCLSAXFQ; 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-187284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187284-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DF6541C20E33 for ; Thu, 23 May 2024 09:40:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F33C42040; Thu, 23 May 2024 09:39:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eCLSAXFQ" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 F2DE913D260 for ; Thu, 23 May 2024 09:39:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716457191; cv=none; b=D3zRazzeyIo3YjDngoFDcG78wPbLMShzZdE8gsFvJrnvRx8/vOuoS/8Pqdq8HEDUlNeAc63CJCg+TY8C0VW958pAKG7Xbh4Bml6RQPLMOFRyE1VRih43KSay9H0Auzzm2f1KNg5ZFw91WoOHHpw7FzGb9jz1KND9XIQDqtl9rQI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716457191; c=relaxed/simple; bh=pANZ9BOe7lIjdlZajVdcF6HeMjTV5Ks8Me0Z1rWXSv4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CwsyBMIDhV+GwPtjYnh+JUah7YU8y2JRGt7K9is6ckoCNtWkSiWd41Qe7fNek1W1dXEqSwnc4ii2sSs+D2Jo7BQ/By2AnPPesLjiKihwMBfeyhXxT6Zt1TC4Hy8DAtu+exUN2uIPjBsUPdwfZNpY6dvOR9D98LW6tVGMKhwjsUs= 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=eCLSAXFQ; arc=none smtp.client-ip=209.85.167.49 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-f49.google.com with SMTP id 2adb3069b0e04-5238b7d0494so7938038e87.3 for ; Thu, 23 May 2024 02:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716457188; x=1717061988; 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=nZr+4M+DoXpeV8oSkkFyzaRfzRj8DnnoccV995epHpo=; b=eCLSAXFQ7bExLPPfCPtPAeQgqwoDoGfHQEDfg8YN/W4q96n96fa6EynxLFvwvaMD/T xjqq1vFWRl7M2pZPYldKTj7X504AfXLHT7Jtb6WuHa5DDZ3Bh6zR15LK8t78oPr4Ask+ 0gjl+P2BGsjVRP1bvP1QnqX+HWP6j/WYkICPrTeqGbhrpFx0mJHNM8gJzMTRJHzOFGZQ NxtYhVGEw/XYu0qAYobNJ21tj24znub/lJwQ9vUMSeS2M8DPArKSNz/3TvWWkefVoxNH e96g9WH2Jq9mxA8B1eKoMsE5NwHNvdv5xG5mcjmtNrPpznTODvTn7pvACUdHFgachYTi abrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716457188; x=1717061988; 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=nZr+4M+DoXpeV8oSkkFyzaRfzRj8DnnoccV995epHpo=; b=I3uuFUpDcX3lkzx7AO+g9990uXPqsYM4dpunS028B3iPM4VnuhUM7FHw5JQEd07VWZ gc8r9pbgVfEBfH79OodFarf/lEtkCeLbqSlOgKWXSVgFfgFqm2fknOwo0H/u82cljv/B EtvpPqYg1bOzlTKmhXCu1huQoV6qfD63E2gDyuH9COWaWaMMMrNubCjsdrHCfiYTX8Gw aqP0ytKMRO3/TtU1TkJySVv2VwmwXB9DUKijVWgi6WGlurU3vc1CkPMnlDoJVKkh8EV0 +oS7SF1BB/v8zFWCpLYJjoyX4FosBEyHCMmzP9nFd6nDU4yk6is/Fu9ljHuZvlA+oR6F +How== X-Forwarded-Encrypted: i=1; AJvYcCVQSiNgmFRmz1BoGUVRhNer7Ox8JFfkVwub8mtQh5345GdeOSs0xrh5yGpzUe+5g80m81oALp+BVExzI0uvE6mGknb+cun/7I12Io29 X-Gm-Message-State: AOJu0YzdGH10l/Bop+tPpR4+5+T037sxrYCeOPA3q1T1oCPVkaz5vm3l 2HUVszcWZpUIzyhyFYGdeUHPQFbLn5UCCZieIsCCo5E7bbfxXwnMZam/PPVRp8E= X-Received: by 2002:a19:520a:0:b0:518:eef0:45c0 with SMTP id 2adb3069b0e04-526c0a68dcbmr3895711e87.48.1716457188090; Thu, 23 May 2024 02:39:48 -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-521f39d2c63sm5212392e87.278.2024.05.23.02.39.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 02:39:47 -0700 (PDT) Date: Thu, 23 May 2024 12:39:46 +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 11/28] drm/connector: hdmi: Calculate TMDS character rate Message-ID: <2drjirwwj3cwm4saboa5qnhwi7wev5gnilg24u7svz2iw3gtef@jainjgtog3uf> References: <20240521-kms-hdmi-connector-state-v14-0-51950db4fedb@kernel.org> <20240521-kms-hdmi-connector-state-v14-11-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-11-51950db4fedb@kernel.org> On Tue, May 21, 2024 at 12:13:44PM +0200, Maxime Ripard wrote: > Most HDMI drivers have some code to calculate the TMDS character rate, > usually to adjust an internal clock to match what the mode requires. > > Since the TMDS character rates mostly depends on the resolution, whether > we need to repeat pixels or not, the bpc count and the format, we can > now derive it from the HDMI connector state that stores all those infos > and remove the duplication from drivers. > > Reviewed-by: Dave Stevenson > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/display/drm_hdmi_state_helper.c | 67 ++++++++++++++++++++++ > drivers/gpu/drm/drm_atomic.c | 1 + > drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 3 + > include/drm/drm_connector.h | 5 ++ > 4 files changed, 76 insertions(+) Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry