Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1808443rwl; Sun, 26 Mar 2023 09:26:34 -0700 (PDT) X-Google-Smtp-Source: AKy350Y1087e2l7NiCyzmIpjPXPi9NxIS4zwM0MZmZMxPElryA/lXyUFMFEx3F1lRhdGTG6AeUNz X-Received: by 2002:a17:903:11c4:b0:1a1:a727:a7fd with SMTP id q4-20020a17090311c400b001a1a727a7fdmr10125708plh.29.1679847994107; Sun, 26 Mar 2023 09:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679847994; cv=none; d=google.com; s=arc-20160816; b=mZi6AY2+QzCnF1/8ULXRBe6Kn/1ndSFUauwCjuJJgjWXvjIB3moiFvH0SfjByLyWHT qjPdrh+R1A8ySOdcnjVvmd2+H4KcXbQ85BPgxrxMFNUzwrlRA5jqQbG6Kb6nr149O4mb fXr8kIYB0MiQ9ikx4KlloS3kLRu6FHfrrBztr5wQD9FfzNrAzbyDg+lTUYXyL/1OmWoY 1hIzRmIk4ZYEkNAZ8AZ9Ef30OmybyfnoQkQSI2o6u+22i7oSMMsndk3fqtqnadd/1B+S Z9hvgfKgo5J+q5cDaR80CwgWzGpPOsfP4kUlWHl+tmwb3QEOUYl9omI9LgJHt6ASR2J+ thIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7beKJJPywTvU2YvzkEm3pXacw6X/g/qrvUX/sVL20OA=; b=hvFdQuQi1dsWyJNrV9SA8KO7QgBwE+4XGyJvmgVFMuewU2qKCAiqdJsap8hGF4Qf4d oPC7teT9IK0MjHmGXPbFuNJ2vDyVPPcQOovsj2tqBuWcyQsSGN9oGauy7r59A4WHlqEp bNaZ5tn3obGQhWo4xq4z68wmDkdH+V8e7fQLBc/IQAAtpXwdg6ciO3mbVmS9rv8tdgBK 1LzJey7G/r8g1Z4vxkwf6GdiUd/ZNemg7Mo93lf3k/jEzbC8bvvMFn0tab6baduVckAR z4J0/6vuv3sv66mXUHpl0lYb+TwsAotZRXZV1484/1PFMSJ6hiUg8Is1Z3EpU1ARCcnp 0Cgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ewq4zUSu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jz7-20020a170903430700b001a24c038c76si344761plb.512.2023.03.26.09.26.22; Sun, 26 Mar 2023 09:26:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ewq4zUSu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231822AbjCZQYW (ORCPT + 99 others); Sun, 26 Mar 2023 12:24:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbjCZQYV (ORCPT ); Sun, 26 Mar 2023 12:24:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E9E049D5; Sun, 26 Mar 2023 09:24:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 164D3B80D17; Sun, 26 Mar 2023 16:24:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99907C433EF; Sun, 26 Mar 2023 16:24:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679847857; bh=IGEd5W7TwFuc13MCnmwDt/Gvu0l2lx3AZLXmSs0KZaI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ewq4zUSujBGB09GG5DHTJZAqjRatXUnzpUniRWLo99ayZFw1yySCLo2zk91eBe0Sc v3dPgsrk6chXLJ6ET7r36WegTurp0GuUpIE204OcRI9CK9sC2meRX0lCJuP5WZjB80 tD5XiysuHatR6TotxgHkfoMpgitiOWYf/7GQMpk8mMNuBbRfuaANfvUHC+UJ9AcF40 SuwpYT0IBiayVfaFcJebL7haaFs9mGD/2TVivRQVFARLYAGTwicXPjfcSwniKHlBUT cKuyRRq1a8JTEb3mYIGuJEOt+cwOufYy9Fe+Pk2zm7QdoQqebm5yhU2ipml982kqAk 8u8+NIJ7d30LA== Date: Sun, 26 Mar 2023 09:27:23 -0700 From: Bjorn Andersson To: Vinod Polimera Cc: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robdclark@gmail.com, dianders@chromium.org, swboyd@chromium.org, quic_kalyant@quicinc.com, dmitry.baryshkov@linaro.org, quic_khsieh@quicinc.com, quic_vproddut@quicinc.com, quic_bjorande@quicinc.com, quic_abhinavk@quicinc.com, quic_sbillaka@quicinc.com Subject: Re: [PATCH v14 14/14] drm/msm/dp: set self refresh aware based on PSR support Message-ID: <20230326162723.3lo6pnsfdwzsvbhj@ripper> References: <1677774797-31063-1-git-send-email-quic_vpolimer@quicinc.com> <1677774797-31063-15-git-send-email-quic_vpolimer@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1677774797-31063-15-git-send-email-quic_vpolimer@quicinc.com> X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 02, 2023 at 10:03:17PM +0530, Vinod Polimera wrote: > For the PSR to kick in, self_refresh_aware has to be set. > Initialize it based on the PSR support for the eDP interface. > When I boot my sc8280xp devices (CRD and X13s) to console with this patch included I get a login prompt, and then there are no more screen updates. Switching virtual terminal (ctrl+alt+fN) causes the screen to redraw. Blindly login in and launching Wayland works and from then on screen updates works as expected. Switching from Wayland to another virtual terminal causes the problem to re-appear, no updates after the initial refresh, switching back go the Wayland-terminal crashed the machine. Reverting this single patch resolves both the issue with the console updating as exected and flipping between the virtual terminal with Wayland and the others no longer crashes my machine. Regards, Bjorn > Signed-off-by: Vinod Polimera > --- > drivers/gpu/drm/msm/dp/dp_drm.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/msm/dp/dp_drm.c b/drivers/gpu/drm/msm/dp/dp_drm.c > index 029e08c..785d766 100644 > --- a/drivers/gpu/drm/msm/dp/dp_drm.c > +++ b/drivers/gpu/drm/msm/dp/dp_drm.c > @@ -117,6 +117,8 @@ static int edp_bridge_atomic_check(struct drm_bridge *drm_bridge, > if (WARN_ON(!conn_state)) > return -ENODEV; > > + conn_state->self_refresh_aware = dp->psr_supported; > + > if (!conn_state->crtc || !crtc_state) > return 0; > > -- > 2.7.4 >