Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2941506lqz; Wed, 3 Apr 2024 13:05:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxEOy4KKrTqGOjrDbYi2BG6DdPoe+cLkKbLgcGnd8Qw8D0XFmenJSwq+M+2lVats5MghZZxUGZK+XR3ViDZf3amwHSH/+AChLpC4wu9Q== X-Google-Smtp-Source: AGHT+IEXRKotsG0IJUL/aSqWno5goweA7i/Xl/POScva0TRdTbIM3pzD+yCiL6oDB+3j3+/vKsYH X-Received: by 2002:a05:6122:12ab:b0:4d3:31fc:4839 with SMTP id j11-20020a05612212ab00b004d331fc4839mr318349vkp.2.1712174750780; Wed, 03 Apr 2024 13:05:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712174750; cv=pass; d=google.com; s=arc-20160816; b=nT2wOmHU5ZW2vAloB52I8ZmvdeokyRe+wmdG2UojXkSPActxpbS5vsXEMMT79h3rla c+d6BhSvPKJfs/h10Dcc+o3sivMPaT2/NXFkIx0/YmFPGzvJl9Xpluu1/Prbmksq+Rcb DgVZhgcvfOmUgsFZJW42ppmmG9GRnovIInwLU0VqCngi20m+2JJxK7F9XIz9TGOBWDqM DR002WTt6ugETV03lw/Sex9RMZZIcPz1Td8Pfq4ty0E7nOhs+zd2joSuCnZ2Lwo4j4bG TFge8HDniZx6zMmOm9ujQ8q+1TMPwOHmhD7jJA+ZdhSoUWc22wIUeG4KSQ2DaQdKrN+G K4pQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:dkim-signature; bh=C1ldXuBtZD0meeLQ9ewOsNc58bmXcN65nhQZrzCO4+o=; fh=JdgIxobsCwRx03zQtA+kQH9gmh+U1QGvOccEq5J0ZDs=; b=KdZISXy0P58kI5JFqxY+RrYLACahr5GqoQV2t6erfUxbamxzrP8AmULFF/LNxdiYfA x/juyYXzvAT+ofLNh0G0/3MRu3cmVKT/xqNPVdSF2YjoP61lc6rNiS2gEYKscqyqUghQ DZWoHM8Bhbje4tchK5tqZmJM9kY2pWdxmYi4lv6FSJOosI/nRAeMsDMPgVCgqNIzcbix 0PkZ9gcH5zi2wwOY4/n7Dy2cm9jlSMA/+90525pwcsKTelKg9ALlFLzlERXqrWpyp9nN PcLOBKaTOBzLynoEAGJ2NH5nlO/SAhgNEtuk4+obkaO590e3EWzZKd0/WVwU1MZvomDX R4BQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="hh/xkprK"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-130536-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z187-20020a1f4cc4000000b004d341c737f1si2026758vka.109.2024.04.03.13.05.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 13:05:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130536-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="hh/xkprK"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-130536-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130536-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 AFEA71C2784B for ; Wed, 3 Apr 2024 20:04:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C353155734; Wed, 3 Apr 2024 20:04:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="hh/xkprK" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 ABA1E1553AE for ; Wed, 3 Apr 2024 20:04:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712174685; cv=none; b=cQAXOCywSrpEB4EKAnhzOQi9+tq3DBrcuqt8T7CpiwgHHFHL0tW2mBZ5IXX35R5t758c7YPqrecWVAGz3ufvGrfz9+uDD+NB9P93otLrSO8rDY24TQ830Pm3ReSzq8Nxuxqff9i254YMcC7pbVfEHyJIDg4X9VRmWsLMNElwQ0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712174685; c=relaxed/simple; bh=nte1yEPWtmTFWWFWa6iF5XCH+QggbDYqwUlZzf9i1xo=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gcRklKBkEg91y7t7K7hBULztmlOkcOY29LpeAiOITU6gHeMaJTQW/3DWBFjMmL+pEUSk0JOmvTGycWtSfR19oGd/ZIGClZ+0kN5isSIBM0fSJ7GLUxPKUSzh2DTHV8hv5qy4NzRnk3z+vGs4QOS3BwQlPYiY2CqOLjIVasXDNSU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=hh/xkprK; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-515c3eeea5dso358551e87.1 for ; Wed, 03 Apr 2024 13:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1712174681; x=1712779481; darn=vger.kernel.org; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:from:to:cc:subject:date:message-id :reply-to; bh=C1ldXuBtZD0meeLQ9ewOsNc58bmXcN65nhQZrzCO4+o=; b=hh/xkprKOBqxX4c7vYkLSe7/VqxPy9a2IxsXWXxnfFsSwp6JxokVlLOgxIyeSMp1pb kkjtP9AKDUIEkrvxiADG0Ag3uqR8zxgVQoQLZNr4ZxR8Ppht8KQi3U5M7FS2vyuYKoXy D/N1W5X90PuJFYkXq9x4uJAnt0rSMsCavyn80= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712174681; x=1712779481; h=cc:to:subject:message-id:date:user-agent:from:references :in-reply-to:mime-version:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=C1ldXuBtZD0meeLQ9ewOsNc58bmXcN65nhQZrzCO4+o=; b=H8S2XATxGZC8T0eYLrDHu5GcbyQQa+M6/1V3nDFYn3djQtNic96oAIgoR3wCsfAtJa H9z/TbLjQulm+c4mHvInbKEB4dDdJ9Uk7aWM+wmk8DOZkZH/My1jWYTylUwhsLUdiic9 REHeOTXZqY1JppGIgqI6zXLmtSmJpfzK25hOjH0gynrubC9Gy3bZLGJN2uO4tX6O9Zg4 m4o0o3gyYp9Nf3kI7U6LSRi/7tTaz7+G5/q1TPb3YKQJWBUxuc0uPLGpk2Lc9dmGzXRi HuGDN0FwfVd4Lo7I7N2hi0hiPgR9BTAeyyXpe1YEtE1RC9u3ofZ+3WXDvyYtAScG74Kv peYQ== X-Forwarded-Encrypted: i=1; AJvYcCXzcK24P1Fs6DeKN5gtcwUF9Uos6PPjYcoDTP4Dc1yueAFeNraT7VWkl6HAfZQHTPTdW6hwnXGWHwUdQ/I38arsgfjxtFq8D+lWy7PS X-Gm-Message-State: AOJu0YyC78xDQZOSNGIOzOjDBiBG/HGmVQPCFVVFbCjHANraMMD5rw6L I/1GX3Ikyv4HKNR7bk0DsEg0Mpas4ufc2qCiXW+i6iPRncKyu96TlvFz+rS+I/WslvNB9GJ3lcI FtmZb1jU7a4l105P5XdktgpQCSps0lwTMGVY9 X-Received: by 2002:ac2:5204:0:b0:516:b148:6d8 with SMTP id a4-20020ac25204000000b00516b14806d8mr354836lfl.50.1712174681526; Wed, 03 Apr 2024 13:04:41 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 3 Apr 2024 13:04:41 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <2f509949-7e7e-cbf6-c1d0-f25971c2d890@quicinc.com> References: <1711741835-10044-1-git-send-email-quic_khsieh@quicinc.com> <2f509949-7e7e-cbf6-c1d0-f25971c2d890@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Wed, 3 Apr 2024 13:04:41 -0700 Message-ID: Subject: Re: [PATCH v3] phy/qcom-qmp-combo: propagate correct return value at phy_power_on() To: Abhinav Kumar , Kuogee Hsieh , abel.vesa@linaro.org, agross@kernel.org, airlied@gmail.com, andersson@kernel.org, daniel@ffwll.ch, dianders@chromium.org, dmitry.baryshkov@linaro.org, dri-devel@lists.freedesktop.org, robdclark@gmail.com, sean@poorly.run, vkoul@kernel.org Cc: quic_jesszhan@quicinc.com, quic_sbillaka@quicinc.com, marijn.suijten@somainline.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Quoting Abhinav Kumar (2024-04-03 12:58:50) > > > On 4/3/2024 12:51 PM, Stephen Boyd wrote: > > Quoting Kuogee Hsieh (2024-03-29 12:50:35) > >> Currently qmp_combo_dp_power_on() always return 0 in regardless of > >> return value of cfg->configure_dp_phy(). This patch propagate > >> return value of cfg->configure_dp_phy() all the way back to caller. > > > > Is this found via code inspection or because the phy is failing to power > > on sometimes? I ask because I'm looking at a DP bug on Trogdor with > > chromeos' v6.6 based kernel and wondering if this is related. > > > > No, we actually hit an issue. This issue was originally reported as a > link training issue while bringing up DP on x1e80100. > > While debugging that we noticed that we should not have even proceeded > to link training because the PLL was not getting locked and it was > failing silently since there are no other error prints (and hence the > second part of the patch to improve the error logs), and we do not > return any error code from this driver, we could not catch the PLL > unlocked issue. Did link training succeed in that case and the screen was black? Also, did you figure out why the PLL failed to lock? I sometimes see reports now with an "Unexpected interrupt:" message from the DP driver and the interrupt is the PLL unlocked one (DP_INTR_PLL_UNLOCKED). > > > Also, is the call to phy_power_on() going to be checked in > > the DP driver? > > > > $ git grep -n phy_power_on -- drivers/gpu/drm/msm/dp/ > > drivers/gpu/drm/msm/dp/dp_ctrl.c:1453: phy_power_on(phy); > > Yes, this is a good point. We should also post the patch to add the > error checking in DP driver to fail if phy_power_on fails. Sounds great, thanks.