Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1794735rdb; Wed, 31 Jan 2024 09:12:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrtGE67AofbLruFftbaD9XrfOUwpjSbzkKF7ljah3qj1lbRSS+rK1f4ghnZuFO2HqR/O1v X-Received: by 2002:a17:903:124a:b0:1d9:2086:fe5f with SMTP id u10-20020a170903124a00b001d92086fe5fmr2912482plh.47.1706721147860; Wed, 31 Jan 2024 09:12:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706721147; cv=pass; d=google.com; s=arc-20160816; b=r+zVJRZdBjpT2NVoOeSTsG/0wukVijlQVw/tNw/6YeMI6Rup1ZUoEWx729W/52Atji VyLs4VWUG8nlpkaqhsTNahvdnjaBqP2NxrtiDtpmN7czh+HA81fb+ETV5zLcxgHis9D4 9HYF/6sWibE6kJDWVzRE2tUwjiMMZhzrS75vKRixIckgrCBMgFRwfMHxLDltF+YZArUi YGUnDU9//Z2tMPlYvSruqmvsc480qPx4Pu1lpvXaqw55j9CJMItqIYP4gwriC7xaXjXE 0f9SBaezRDa9ynlt7E6caY0UlHZAJ3O65K+ToOCDPvib+68gS/6BV3WnUsqoWgxntF5r j0pA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=v+9ppG/cDRjOPXvM/ttUkSSqu1lpu+kmdsbUzCZE3i8=; fh=H3lP33TNQSik5CxG632qI3cNWh2Lxm7ULN5xLCcU9Mw=; b=dM1kkTImoMofHyFdE32cfTv1ewnZYCjd+5Lf4vl5lefgofViiy9Mmee7XXxNSsJyPd jv27NbY6ii+vgpDRqFj4zJCOLQAeAC8vv3lGIYag+nkddorP57MAdyjAs+nBlhxbNOpB 3mggRmpiuzyyX894PioXYkii8QJBlbxZRGdwkXQ83ouSAH0OTysVWnJbK8zEcb3c1VKY KYTyIGUPdM7ydlk8A1xyp9oUPvIFkLedhxCGbEzUik3qa9RxYSXquTTtlxDeLZRF6eYO 11j3RnhPndMWtHDbVTxcEmO6IIaHyh4XVyo0S+DOqBW+eCXaDHt0VEutiW1fkfVNzgZp 1SZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="pV8hxO/w"; 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-46874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46874-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; AJvYcCXRznXEVs5sbpH3tiYfexqs0YE3gjGya7UsBGEtkruhImkoMB1tJy748WBk2r2D+XWDBqiKJpdt1ju/5mbEGmJ/1IXHQhzpGNoS5fC+Cw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x20-20020a170902ea9400b001d9356ac04fsi1129501plb.281.2024.01.31.09.12.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 09:12:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46874-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="pV8hxO/w"; 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-46874-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46874-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 6A539288CCB for ; Wed, 31 Jan 2024 17:10:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD77B12F5A3; Wed, 31 Jan 2024 17:08:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pV8hxO/w" Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) (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 6072F12F587 for ; Wed, 31 Jan 2024 17:08:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706720905; cv=none; b=ikwPIWA48g6UTSXwHPfTeaEJ0qsxTz1Ei2v+pLKyQ7XlYufaRu8bEQZJxaPWOTkdbXNd3Zf0fbDmnaUoHhjRjXT8X74FbUSBl2V/ZDYXMKEkCL84GXRB5hekjbF98ydS0ENeGFy9zcnZPeJf6jRfPr4BAhge8zQdvye/OONGCUY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706720905; c=relaxed/simple; bh=xWgs8Rf8bDvnFcezIW6H9X4WJso9YVQGPPPhsScYyFk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=nOU/+AO8UA2/KsdxxLFstF1yYTkc3VXqyezi47dwP26owhJGLnrVB4kf4M9AQil9oB//tND0+lK6Q0ddIoxqU0GSIgbv3aNqEhBcwvzaDGDXyT887QsErQ5r6Xecg/nn+X51SEzBRiiTFjUgjLdYviWiTdgkP6KCa4vepyiXtks= 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=pV8hxO/w; arc=none smtp.client-ip=209.85.128.174 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-yw1-f174.google.com with SMTP id 00721157ae682-5ffdf06e009so54375817b3.3 for ; Wed, 31 Jan 2024 09:08:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706720901; x=1707325701; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=v+9ppG/cDRjOPXvM/ttUkSSqu1lpu+kmdsbUzCZE3i8=; b=pV8hxO/wXC8Y3+L7stJGPUMdzsR/3XGhdJ+luzLDfBi8WKSdGjO+QR83K85Y6gfWWE gDVl8TZ5D4QPnWNd9zLZzMWSQYL3aghmN4Y1ANLKFZpHTVoh1pVJuU79b80cZam9IT3g SmcWtbHPZZ3lfj9yUlgl7cChm8KkNeOXChPPRowlGoDGl68A85Eux5lzsJLOS9Qcnoct 5o+CmmAcqzXDnmPwGjHZcCv/1bc6IY4Lwa3XQWV14/qpVqeVCSPqkBnp0iSXm9JCYG9M iwWPwHxkFhv0Wd/uIMG6X3xvE6RCf3CYZGbekv4Klb6v9XAR9RGhun0V/yJoNLzS4ORR JQqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706720901; x=1707325701; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=v+9ppG/cDRjOPXvM/ttUkSSqu1lpu+kmdsbUzCZE3i8=; b=GiNNRvJtwTB4/UzeZK2VVfUXk7xTjRVUHi8qwdzjbS03vVsghlnshGCyRy/VAd2OQy nk4RbIhR8wdlRyDxGeOsvBH7+ERs4OiEA1aPswLPKyFHUbss8S4vmxmYQ8uZqhgk9hbx kxWDcucEMWscgbbjmw19V7hY+SDszA+dLNHm9Q5dwrjTCYTC/N/D5Gkt5O17i8tARIp+ 7z/KYVRLZu5XqrHcZ6ADShtmeRfbm0TOaO+gJ2uRsGbAxE7oqLcw+kQUGpJPS5inXa3R p39cUglWqF26YmgqOXM+raInHSRV1qlmGbW/rjm81q1/x6w6OWGmcVRf/FALsrAYboXl Yy2g== X-Gm-Message-State: AOJu0Yy9ubaW5eKO784P4bIbODFrtvS2JKgrzIpaY/2Z2OWVHNXVuiH5 T4C8J2Nhyc1RDYcVDdpGPdowQZP3h6889MjMdEeWII+TCqLmY8FnYxOHwIrbWbR/0FrdIh0XnwL 5trfavuDbojT/6gTTI79clXZwyrZbJgO670yor0qlCWABl/Td6R4= X-Received: by 2002:a81:bc0b:0:b0:604:b8d:379d with SMTP id a11-20020a81bc0b000000b006040b8d379dmr1929231ywi.49.1706720901173; Wed, 31 Jan 2024 09:08:21 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240129-x1e80100-display-v1-0-0d9eb8254df0@linaro.org> <20240129-x1e80100-display-v1-4-0d9eb8254df0@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Wed, 31 Jan 2024 19:08:09 +0200 Message-ID: Subject: Re: [PATCH 4/5] drm/msm/dp: Try looking for link-frequencies into the port@0's endpoint first To: Abel Vesa 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 Content-Type: text/plain; charset="UTF-8" On Wed, 31 Jan 2024 at 19:04, Abel Vesa wrote: > > 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. No problem, don't worry. > > > > > > > > > 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 -- With best wishes Dmitry