Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1788867rdb; Wed, 31 Jan 2024 09:04:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHMvzPDNC+N0uyR/v+FKA/PTN9iqclOd+SGAWMjZVo1nK/00BcQjKYtlKjaKVxOS8baygSh X-Received: by 2002:a50:bae3:0:b0:55e:eafe:2814 with SMTP id x90-20020a50bae3000000b0055eeafe2814mr1603455ede.36.1706720683489; Wed, 31 Jan 2024 09:04:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706720683; cv=pass; d=google.com; s=arc-20160816; b=B3ykWwp0/8l0wUiOiD6VREGLTw7W0YNH16BNrCAGaxv3EPSBVkHpo6NjAHTqbCgILF ZfhbGZTQa4FoKnrRKG9B4YmDaeYD+n26c1l9+LrxsA0Ws0AH7SObkRnD717TyaFaW3zR bLDQx6MJgol0e4aZquLCTJidPLDBB3oFDxbBPY/CSs4YvZAJI2GRg7kNvx7Zj5uf0qzL RnnDRN6cDT9uawXSLvOHdJ7uMpu+1KhN96koxsz0plqqmGKPHQB0MxvfChf+fBc46PDw EiJllOQ6ksAIb9ezyh1tt4plJ2/INU0GtbdJuC7vUNhz3cpaUaniFfvC0rWz2RH4p5iz wN0Q== 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=BUi9VE3WcG0AerBnR/I4iBGlcSiIv3dP498x8byF2A0=; fh=SpGoQpf1CPhF+TIkJCzTznNQU1qVJsKpO5WZHYoLL/s=; b=koU7Y9Bo/P/aQnt5XSS/mvxj19FQ3cWOgMBYtfA/hDS6pdRdm3lvWTgHffSVy04OBT 6sayTzEeivnFEwLMLEzIyV4cYkI+5ZkKIJFKH5VrzgFNT3dSecaX/uMPz/F1OsM1Wm2z cz5Bhxe7/jnrtxJc6BDsBJ1+MpXCgbxXts2cey0wpG4hhsYUutt0gmNUk5++Js4RGb6H T8PYeMkRMqvgiO4Cf0W9/FrQwVk0NY+oOUixRpNckc//2D/TIbKVLe/esdEYejcjyTB5 Dtr+2++dPw+W1kbWxk6N9U+gSPHkmldGMPnBxb00sBgn27i9trFtO9mTVs7lrHN2yxFu SPuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zlmPb0pl; 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-46860-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46860-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCWt9lAMUxKNAToiqM8cq9MQ8SkB5A5RTUy4sWaRYeT/DjBBXe5RjEemm8BWrqiO1WBhGhNflJVQQvtivvxRremtR3NFQ/ZbLll4bZ9qnQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q30-20020a056402249e00b0055ced896819si6169472eda.212.2024.01.31.09.04.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 09:04:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46860-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=zlmPb0pl; 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-46860-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46860-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 3ACFA1F2134E for ; Wed, 31 Jan 2024 17:04:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D55F012CDAB; Wed, 31 Jan 2024 17:04:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zlmPb0pl" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.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 30D5712C54F for ; Wed, 31 Jan 2024 17:04:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706720658; cv=none; b=OH7U6SUvW/ExIpYMTFcuEmfKtIsURh5i4CjyEBiCIfpUH9RLU1yMUCYmBlZvo3K9EUEohX7NEKUJuQ7QzvGw5bkv1xqN/XZrrq79Z8xomvBXzTuUX1KfDWR6TGiCNqYWZTBvS70++mtetq9I2IwKcpuLXHQR96hmJHkChfpjG00= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706720658; c=relaxed/simple; bh=ZUvoMqLlWwnTNMnys2DYO447gojutJvvOQ3DbVjEF0c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WnLHztrG4R3s7yKKFwVEObo4McMaYbXo/kBZeSbdv2tU0uF0DAHLW5BHlIjX0lmZXEyo0Qe9SSWWzXosWaZXieE+gngytUuJmlWKTzg5DGpLLVMeCN50Vf6tRXY+iBhOFVd9xhUEIJrT3bJuqYc5P0drOhBaFpKtw5StEveFv4g= 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=zlmPb0pl; arc=none smtp.client-ip=209.85.218.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-ej1-f49.google.com with SMTP id a640c23a62f3a-a30f7c9574eso627762566b.0 for ; Wed, 31 Jan 2024 09:04:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706720654; x=1707325454; 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=BUi9VE3WcG0AerBnR/I4iBGlcSiIv3dP498x8byF2A0=; b=zlmPb0plmD6IayCtWTTKJD5uFUT32wBOzoo9K0v1QXxY7Pe/SmDHvxxPcTJWzKtDpA vDhneT77fEctQk2dK7dfJ0/vx2k/wBuz2A0eRW6Ke/qZzYYBIv8KGH/g8We1XBYcwnlj lgN7CRRZ36mVc3lBaFclAvcApHl5ICMjT8S92zzD3gN/1M9ZR4WDIQg2LOc6P2IjmtHC fpd+nfIZl/KlT+jhwbZbC3SnPLyfdU9iH4lS/xoNIa9g6ICVF0qLs6Ems95Tq/6CRsN/ iVjhkGoqWEoE2axN4O/7lLjc+f5GZv9svys/GGxg7M0S0ko21oQLhc+ZUznh+8R/PNld KyaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706720654; x=1707325454; 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=BUi9VE3WcG0AerBnR/I4iBGlcSiIv3dP498x8byF2A0=; b=J63shDoEoXUd3VLowEI2Ax/dGWFIf4eD3xo/7pVmXBFGXE/17NzwFeP0OaZUn1cbbW f6+n4EpwPlpBEFhl2S99bKX/5Sx5jxkPqXgweT1RevWd1UYYCJcudLqABH/3UUEPvrmO CrXWU0ecBCrqTAL4rTGvpcoTqFX/+bJfwLtf1HuJVwyRNkGPcWolMhjl9fTxxgzz/HOh QXzY83x/fwkmLFIeEAw/Rw7Gi2/+1cyqrfV6tuHIW5k4NDK4VO3ivIt8aSTCm3LAtbR2 i5660GsnTwro/WalJden0ljqxYDL4diGajjf3YK20jEEtvtQPVbI+fqAaa8Nkod4IAuN mZdg== X-Gm-Message-State: AOJu0Yx3brPPyjAUChFv6xhpoxOLXIxJDJn/UHM1516CciA2w7pdR8b6 PQjr6n7zpD6ea0h+wpCv0LE6FLaXMMLanHYM83vTo10YB0iBlhK/asPtUJ5KHF8= X-Received: by 2002:a17:906:fc26:b0:a35:3152:c46b with SMTP id ov38-20020a170906fc2600b00a353152c46bmr1558869ejb.60.1706720654433; Wed, 31 Jan 2024 09:04:14 -0800 (PST) Received: from linaro.org ([79.115.23.25]) by smtp.gmail.com with ESMTPSA id mm15-20020a1709077a8f00b00a363a304c91sm1581384ejc.211.2024.01.31.09.04.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 09:04:14 -0800 (PST) Date: Wed, 31 Jan 2024 19:04:12 +0200 From: Abel Vesa To: Dmitry Baryshkov Cc: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/5] drm/msm/dp: Try looking for link-frequencies into the port@0's endpoint first Message-ID: References: <20240129-x1e80100-display-v1-0-0d9eb8254df0@linaro.org> <20240129-x1e80100-display-v1-4-0d9eb8254df0@linaro.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: On 24-01-29 17:08:29, Dmitry Baryshkov wrote: > On Mon, 29 Jan 2024 at 15:19, Abel Vesa wrote: > > > > From: Abhinav Kumar > > > > On platforms where the endpoint used is on port@0, looking for port@1 > > instead results in just ignoring the max link-frequencies altogether. > > Look at port@0 first, then, if not found, look for port@1. > > NAK. Platforms do not "use port@0". It is for the connection between > DPU and DP, while the link-frequencies property is for the link > between DP controller and the actual display. I messed up. This patch is not needed, plus the author is wrong. Will drop in the next version. Sorry about that. > > > > > Signed-off-by: Abhinav Kumar > > Signed-off-by: Abel Vesa > > --- > > drivers/gpu/drm/msm/dp/dp_parser.c | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/msm/dp/dp_parser.c b/drivers/gpu/drm/msm/dp/dp_parser.c > > index 7032dcc8842b..eec5b8b83f4b 100644 > > --- a/drivers/gpu/drm/msm/dp/dp_parser.c > > +++ b/drivers/gpu/drm/msm/dp/dp_parser.c > > @@ -97,7 +97,11 @@ static u32 dp_parser_link_frequencies(struct device_node *of_node) > > u64 frequency = 0; > > int cnt; > > > > - endpoint = of_graph_get_endpoint_by_regs(of_node, 1, 0); /* port@1 */ > > + endpoint = of_graph_get_endpoint_by_regs(of_node, 0, 0); /* port@0 */ > > + > > + if (!endpoint) > > + endpoint = of_graph_get_endpoint_by_regs(of_node, 1, 0); /* port@1 */ > > + > > if (!endpoint) > > return 0; > > > > > > -- > > 2.34.1 > > > > > -- > With best wishes > Dmitry