Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2997471lqz; Wed, 3 Apr 2024 15:05:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUra0X8ylHZ9RXI7eerXujX7EqAtVFMLHNscIluscr9I1d//ECLwHG64uVeb66TCkPNvjGFX1GU4RECXoif0SqPjX19fmzt0Jp/Bdr9VQ== X-Google-Smtp-Source: AGHT+IHUdfjcYMPt50eYU2XY/ooTslbmhyc/VmA1/cMJJvtsYRV1dZ1vgnnNUjLQjA7k6kYNZWX/ X-Received: by 2002:a17:90a:dc06:b0:2a2:b308:f78f with SMTP id i6-20020a17090adc0600b002a2b308f78fmr922153pjv.0.1712181929984; Wed, 03 Apr 2024 15:05:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712181929; cv=pass; d=google.com; s=arc-20160816; b=ElDsECEr1sdVq4XcH9G2Vzt6CyHfJGigf1/m/bKfrfIQCDBuO0zepGo0LbDeT9zD3s Qid9Xd0JAQ/IWayFUpSEz45Tm3Gfqxe6nLaIvSt5N0F15pNejxfsR0QYJzEtmAp5hLky zHjqa32smfCfWfb0CALvNPd4/lKw6q6AfWpq5B3fTI5I/rsk9TNRm+np0vHqb4bPNvaJ 7TeKub79ulq60cGcH0YjM7hipsfPBJZMDNfiPGDT4AUVpeIM/w9veqzZAMFkQ1Pxi8cY u1QGNMp3fC8ibBTkc5an0mIfYcyelNA8+dEYr7DSLsUT/QuXOj8RjcvhEJH5uH0wakKt LXRw== 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=wMV6DGmC8+TexjV5H4CBihBSEOZEkPeyx4+1TZ0zHaI=; fh=qN6oGeVO5AGlIfghgd8QNd9I4mx/qKXiTLuy8gen2NI=; b=o6V3CVswPnPXUxkYNrl1y8yqOM1Z2IIxNbLL6R37kesUAVMAzL8JgWXMv0rcX6JSyo oBQfbtxDHvUN19KZNlr58nKG/hjJD4TlARPlBdnFkxOXCg92tIitqCk5DzmfiLMGJiKY xWMx23O83HAhEI1iygXexwSmRplPxYwDCTZXSl9pHve+nw+/uQ7oU1EgzAixpgVk74FF IuKpmS2RZ0Q/FOJZFt3JXLr9AdtTAWLQxLAg1h785740l0lUWDnPbbiNrSSs3I4pR42w tnSkNjFUMXbXiPfhEL6mRird5qIpCHpLqpfn74/dB/g/ja6BpDCESIX7Ohppc7C5rJO8 he8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RN97NbKY; 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-130663-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130663-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ml6-20020a17090b360600b002a274a59df9si326742pjb.20.2024.04.03.15.05.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 15:05:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130663-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RN97NbKY; 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-130663-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130663-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 757A828B8BD for ; Wed, 3 Apr 2024 22:05:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDDA4156969; Wed, 3 Apr 2024 22:05:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="RN97NbKY" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 4E3E2156890 for ; Wed, 3 Apr 2024 22:05:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712181905; cv=none; b=EgdQrGZTVLXKXdgocpG+50cTTzj+jc82sAOAwtk0DL9D8AA/Wafon/Nr7bbfWUOhXMsNpRWRj2f0hzZGNR4kkDvx4a+DmPz/tYA+9QCZoqzcljOHIFFwMKoboy97w8iB+jQhljQCPhW71tVLoUDPzb85Ezp2v548dDdEis+jub0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712181905; c=relaxed/simple; bh=wMV6DGmC8+TexjV5H4CBihBSEOZEkPeyx4+1TZ0zHaI=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=QdqdMxUD0YA7cV/FCxX0oLxFR5Vde8o+RnDcVHWnUVPd43a6qYrHQ3rCv7vGcql6JYo4xlz1CQlrmNxanHteCRqnv/lboLxQQ3ZtHSnuOXReTziv+GsX1EKiJMwXobhU4zCc1tBGK1744S0022SxgL8lG37uDp0t7wRDcpNENUI= 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=RN97NbKY; arc=none smtp.client-ip=209.85.167.42 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-f42.google.com with SMTP id 2adb3069b0e04-516a01c8490so1346272e87.1 for ; Wed, 03 Apr 2024 15:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1712181901; x=1712786701; 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=wMV6DGmC8+TexjV5H4CBihBSEOZEkPeyx4+1TZ0zHaI=; b=RN97NbKYBBm+/ifV/h3jg0DbB1kq0Ae8UAWCXk8pB65CuWAncf6u33UFllF3VqVwUl BrWc4cyKDbHIrmzmehl7pa65kHzyT6/Vl+qaLL6i4SqJrn9RBACqg2x5thbyoFvcZNhb MeeupNrSetWKmKSexy6ncQAgZGWvxla0RnRs8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712181901; x=1712786701; 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=wMV6DGmC8+TexjV5H4CBihBSEOZEkPeyx4+1TZ0zHaI=; b=hRiMSlbcQRre1CRzmmZOGyN0mHBs3Bn6DMfD4krhXKB4cSxqhXLPw16Gdtae07QGWK CaWIZWK1uP4KeT4n03K08CoD2qQ6/EZa2ICzQySS7OSKbO8tqUE0xKJ+Ncg0SeKHXuM0 M+pD80vHEMcUXEGsjUBz0JF+0aMsn1alG7+gEeVFoEoh/60h9I70yQ85PFkUh6gpMlFN 1233jOJs0Ng682bBl6ZimTpZ8vdpWhTsxSHMNP5HNaCHBTn39dP78Zltad0BMoi1uCqM R5g8xQZ//UdtWODtwFrIHb7veXynjzpT2O36VM5HWHRTvGInGe/94anNRLC80VKQUcdr A5MQ== X-Forwarded-Encrypted: i=1; AJvYcCUUnezqmI7hIwHt1AsPM2+yrQVidNCSKXPXzZUY2o6ngourpLxHiudfh9OqovRIEFceLjrnJqfUF7ymZ1c29bfYRx99n+s2gAHsJVTm X-Gm-Message-State: AOJu0YwRyD5sC7/OI55veIY+t//Rd/8PP4prEqRF4oMtS9K+vORHpVfr gNkrEvI0JXXvXku058h6A4ISHv+spwoNfHAeYOH/jG+KJx3QrC5Xj2S6objh7yGgTbBIM6TXJnB zvrMGLbC8uB9zmeLNLPow7paiQc1DcEIzowpX X-Received: by 2002:ac2:4253:0:b0:513:df5f:38cd with SMTP id m19-20020ac24253000000b00513df5f38cdmr1409240lfl.4.1712181901096; Wed, 03 Apr 2024 15:05:01 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 3 Apr 2024 18:05:00 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <01ce1142-04ac-5978-9d5a-88f94b920055@quicinc.com> References: <1711741835-10044-1-git-send-email-quic_khsieh@quicinc.com> <2f509949-7e7e-cbf6-c1d0-f25971c2d890@quicinc.com> <01ce1142-04ac-5978-9d5a-88f94b920055@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Wed, 3 Apr 2024 18:05:00 -0400 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 14:28:52) > > > On 4/3/2024 1:04 PM, Stephen Boyd wrote: > > 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). > > > > No the link training had failed. > > Yes, root-cause was that the PLL registers were misconfigured in the > x1e80100 DP PHY for HBR2. Once we programmed the correct values it > worked. This was specific to x1e80100. Ah ok, so that's what the x1e80100 patch is about. > > Yes, Doug mentioned this to me on IRC that this issue is still there. > Surprising because I thought we had pushed > https://patchwork.freedesktop.org/patch/551847/ long ago and it was > fixed. It certainly did that time when I had tested this. I see it on v6.6 and it is also on v5.15.y (stable kernel) so that has been picked back. Somehow the aux interrupt is still happening though when the PLL isn't locked. Maybe that interrupt bit should be masked in most cases and only unmasked when something in the driver is going to care about it.