Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2357457lqb; Mon, 27 May 2024 18:01:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWY30pztL/7lTyDsiskk6Bm5+IURHa+hgzGxAgN95r/ag8biuhyTCLnay/Trt2nUG0qkFH3S0NBmCL05xYanyMpqZ0bRQCW/Rnbh8QR3A== X-Google-Smtp-Source: AGHT+IHIHY0wtq34+oOx1qfi7563VRyNpCV70VZnXa7E2Qzi7N0mOyWyWM6czoyk5FrZG3zGS6ZO X-Received: by 2002:a05:6a20:5b03:b0:1af:881c:e924 with SMTP id adf61e73a8af0-1b212e91384mr10312172637.62.1716858116380; Mon, 27 May 2024 18:01:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716858116; cv=pass; d=google.com; s=arc-20160816; b=bDRm2aaiphLPYNq17o/leEdk8ZfXCI9eYyQdpTIrzEPIWqsqFNdJXOxdZmv86KrlMJ ePGFw0uDNtTTxtvMEVZ5Cn4vOVpF8AdVrmyd3BPNYW4IfiGqA08noTLoHfOz1EhHBNAb L5fODoJgY/VVumaYhbPmHXL7lXlK+YCRg8Vm4+NOrnjpbq+ktmv8Dm0LHlthCtxd55Kj IYOxgt3tGlUYZ+dckbKLEJlEtxTdL2uVijggtiW09nBWcY4rYOEuhCposgEWfMeWIBhI 5mj6YO1iIDjTvDlDCdYOk3f1KvpErbEcnCGBEArR0Zsj6z9Hef4ukuq8Omm5KvaqFYpm SfiA== 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=N/n2HPYcfVAMa9viMhIlGedEXMDJx4RNXfxIzwMIkJU=; fh=w+F2erBcz1p0A/srQ0CQvzQuCnT9w7zi2w/WexbH7Ao=; b=Z1QJBz3BGyzPUXpyeKf4ZfMnIXLNCSthHvVkGgWr7ajIrsquuXH4qrBEbikjO9zo0N p0El9kPKIqFdQd8Q4n37EkRn/PVvFBUTekYlc1QYUBSxwhwEpu9B/xmGoO0X/tILbzHJ epgoMUNwSnrcB8ew3XOJBuP869qVuRa7tdSrHIzIr/JpIRhWw3v7bO71/D7pVoQyE466 Dd9G3UIvQqHac+MGO2v2Ea6ZubLweTjzxb5FQMxL6OPbiKAkGRT7I4F3z/mUKdL4Kds2 D9gyEn04ptqUOXF+2HubCYS4yzb+6OtWcLMXPkOvMCE9Ww6QQKEmehpvde1aS3xeOuZr nCNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X3AxBnO7; 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-191599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191599-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bf5fac66d1si6819136a91.12.2024.05.27.18.01.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 18:01:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X3AxBnO7; 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-191599-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191599-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 89C8C2825B7 for ; Tue, 28 May 2024 01:01:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B6DFBE5D; Tue, 28 May 2024 01:01:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="X3AxBnO7" Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 D07D28F49 for ; Tue, 28 May 2024 01:01:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716858107; cv=none; b=VFVVhYSf6JLrW3i2D+22LskFtsLjx0JIo2AeIsLfnP5PU1i0v2B6u0ctHlpOGvLzf+Xr8nydwPJC46WngRIhV1fOeGgGKB26osySSTQa52lzGRWAX5lNn4oh0VDcoWQFp84bAuJ7uMDZKPQlFL3mjup0x6RT1oAsvkLoY9BDT6E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716858107; c=relaxed/simple; bh=jsfEKK2/0h6s1wZzf2U3f8BROR3XdQtn/aKqRUIcApI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cBXg5Y01n5+C2S+XsGJ/ParfUQWIdhNdt4rBYrmgCRE2zz41dHrihdnbrUtyMoTJvEluPpf4S9JNXc2tNH3hqA/NbTpIcYF65IYn0BWtYfvMYaOH8/YTUliaPzf+/ZX7VPKQUVAPGeniK5fvbwXvapm/3EzX93AzZntYnQCUjQk= 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=X3AxBnO7; arc=none smtp.client-ip=209.85.208.181 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-lj1-f181.google.com with SMTP id 38308e7fff4ca-2e95a7545bdso2081231fa.2 for ; Mon, 27 May 2024 18:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716858104; x=1717462904; 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=N/n2HPYcfVAMa9viMhIlGedEXMDJx4RNXfxIzwMIkJU=; b=X3AxBnO7LxVLA4C3oJLnRMRUOIR1N0O9I70fdylIUtWbKD8RQzeUQYKGKbFB/98C2y o+0JLjc9yiNrspRmv/F8SjeILWZRVnqcxEVNH7e2EWQJM/WotwZ/ig0Uvc/AD8w1Vkpd LROih5MoKWrgFqfgMjm7oBEPpJgU2A7Eb+ydtMEslKza6rtZWHyMr4nJcXEBV3Un+rLz +79q6O1VhUNNTQ27F2pt/ZFxDRbGCpZnKd7qom4Y8baatLuchf11aSdQKZkPOANI5wXY 4XXprVIBhJLSuHiT/ZiQJMqMxYrg3SPHnZ5YlvXLCxOLE3FIdvdEGWUpBZoTDQNEY/tm 4CUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716858104; x=1717462904; 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=N/n2HPYcfVAMa9viMhIlGedEXMDJx4RNXfxIzwMIkJU=; b=CM2yTt+NeNMUPMff1K2lyHmOFqSs3Y9oE/qXlhQWSW1TXXaf+D164t47/otiaj241N tXSTlWHnmU6RfHgJwindqaHrsEt4vc6Q93KLl0Fnr8fhtHPwgqD4YuuMNSWpKJtYugGV u5jhYKubFmbBXmxikdba/R+y/R/aco9Oq5ZyZY/F0kHuu4s+6QwC64uNxzgdrOdl1HYn vMsKzhP1d65ib855udAaIx+xXpLS2MQSX2IYslG45gt0dd90tG8iM0OoymsAYDJ2GLyw DTxI3UVDuvxbgliS7LnhRYlpu3wmpDN0W4HjvHVWbKvwTH1EdVj9rO4XFc/7/+PflevT v7lA== X-Forwarded-Encrypted: i=1; AJvYcCUvlqVr28lAS/yceJggi+ixDFehxiMeMUM9xgrLGbjP+mXxhbg9gozx/ckppnAg9ac4QmdL2sQ+kXc41aqKFdpCJa+Pw9NoA7OYu2QH X-Gm-Message-State: AOJu0YyZfhzzSi/Ew3weIDDBDTLvDkSWD7s/Z9FHXqgz7nUqsckJQzzk gzEAtvqq5fp9N39uy5kwZOTGp+iBqbb/epFq1/R8fmC7A93TtIXk30hRVFPmuPc= X-Received: by 2002:a2e:9092:0:b0:2df:d2a4:439e with SMTP id 38308e7fff4ca-2e95b0c232cmr60901341fa.27.1716858104135; Mon, 27 May 2024 18:01:44 -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 38308e7fff4ca-2e95bf2866dsm21078741fa.139.2024.05.27.18.01.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 18:01:43 -0700 (PDT) Date: Tue, 28 May 2024 04:01:42 +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 v15 15/29] drm/connector: hdmi: Compute bpc and format automatically Message-ID: References: <20240527-kms-hdmi-connector-state-v15-0-c5af16c3aae2@kernel.org> <20240527-kms-hdmi-connector-state-v15-15-c5af16c3aae2@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: <20240527-kms-hdmi-connector-state-v15-15-c5af16c3aae2@kernel.org> On Mon, May 27, 2024 at 03:58:04PM +0200, Maxime Ripard wrote: > Now that we have all the infrastructure needed, we can add some code > that will, for a given connector state and mode, compute the best output > format and bpc. > > The algorithm is equivalent to the one already found in i915 and vc4. > > Cc: Ville Syrj?l? > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/display/drm_hdmi_state_helper.c | 217 ++++++++++++++++++++- > drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 25 ++- > 2 files changed, 230 insertions(+), 12 deletions(-) > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry