Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4655407rwd; Tue, 30 May 2023 08:10:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7PHVndgLoLU/QmgYec+rK4ZvKVoSth4iVDlIxBtDsbaayHf+AHi8KfDpveZLWqLzmsF3sM X-Received: by 2002:a05:6a20:d046:b0:111:2a64:83e7 with SMTP id hv6-20020a056a20d04600b001112a6483e7mr2507289pzb.22.1685459448817; Tue, 30 May 2023 08:10:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685459448; cv=none; d=google.com; s=arc-20160816; b=grJ/ASHcKzKMlM9ucRAmcxvATJMtV443C5kJEhhOcXmSu53eiJqml/26JyWBZ3EmaL vDs+j6mKKovlI61+/peVR5xmRJiH9AMaORUd2uO6C99Wbs0eG6IuEtii23D6Os9DPYJo SDeJMkTK/w8E5Gk02PdCAk0Ljxr2LybVm62CpxsWOsgv7jzuVSLdkRMgwQ+uQN/ZhkvX FQMxadZL9hxRlpDxzAGL2dzz5FEPvUXznZc+b8Tjl6hWbHKwyZnigr8k1i5jzdM+7E4n rW2yKsY1xicxxsAdxBtf2qsX33JFUs025dJPFSgTgyOCq1iExDcrHP15OZpp3PDc6p9W e3Kw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=J/lpEQxO3C/IGra+X/GjGKR/9n9ATcPQAMSO3zhNJhE=; b=B6rGOQcAlFkdEaEOJ2BDvXzUXorZ74Svy4GyNxC3GXEj81XpfcbWZfk3Y7b8zVPu7l 498EajI0YbShMwRsIqRGXRmfKQ1cZS1GVJBEhF6aefJpYqyJ6WyjSKFuGYXxqZkVEOll nuHlVyakxsUCoDXXWC+IBAt7fJ8hRB7+KrPMH/eWvLB3AsSIhPsfbRvnsMeAF4o0i1P2 oSeCpqswvpnO7OXTP2MRmBqe6dg0Wvy1BrYxxiV8L/ET8/Me9ypS+71BS7x5dkwGpvTl wy8PVhTxJITNdFmAxXNrhUCkxiKba+t1qaiXAxoVsHTMpohIfAfDftI6yRtqPD//obI4 VqMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n5pC1idI; 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 u14-20020a63790e000000b00530b7ef148asi5729749pgc.894.2023.05.30.08.10.36; Tue, 30 May 2023 08:10:48 -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=n5pC1idI; 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 S232001AbjE3O7W (ORCPT + 99 others); Tue, 30 May 2023 10:59:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231869AbjE3O7T (ORCPT ); Tue, 30 May 2023 10:59:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C78F3189; Tue, 30 May 2023 07:58:47 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 67CD9631D2; Tue, 30 May 2023 14:58:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9EBAC43173; Tue, 30 May 2023 14:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685458717; bh=VtfdUXYIF1iKd6oD3B4hTdmPM1+ND/GXtC01F02RcZI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n5pC1idIo5PpaWZnm4C56D7agLhnfn2Mi9XDSTnY0r/cVstOGtUNelc+tiatjuodp s93x9rENFzQk7eknUM3TXLim3JeQJy0KCzIp5CQUQWSlfDEU0mJohDon2Sf6NTyjNq s7Yc5ELQ+FiAospxT+RVCAbrGx3hVLUIXZOZL/P7Vodjb2c+1sOV8/rHFEixdrWR8m J27m6fWTxieK60aMLeENfnMzyks7GdCIJVCQvrvdryxI/hoJNyarapLdgwgsomrUjj 1d43ZGhCVIGUc3UD/YxBpGCzyaUMzAgA5lFxawOoyzSRCPAAAh7zpB2wJmybWIypQR o5RWOc+46FWDw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1q40o2-0000uh-FA; Tue, 30 May 2023 16:58:39 +0200 Date: Tue, 30 May 2023 16:58:38 +0200 From: Johan Hovold To: Doug Anderson , Dmitry Baryshkov Cc: Abhinav Kumar , freedreno@lists.freedesktop.org, Rob Clark , Sean Paul , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, quic_jesszhan@quicinc.com, swboyd@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson Subject: Re: [PATCH] drm/msm/dp: add module parameter for PSR Message-ID: References: <20230427232848.5200-1-quic_abhinavk@quicinc.com> <053819bd-b3c4-a72c-9316-85d974082ad6@linaro.org> <4f2556e2-52ab-eb1d-b388-52546044f460@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, May 24, 2023 at 10:13:33AM -0700, Doug Anderson wrote: > On Wed, May 24, 2023 at 1:06 AM Dmitry Baryshkov > wrote: > > Originally this issue was reported by Doug, and at [1] he reported that > > an issue is fixed for him. So, for me it looks like we have hardware > > where VT works and hardware where it doesn't. > > As I understand it, the problem was originally reported by Bjorn over > IRC. When he reported the problem on VT2, Stephen Boyd confirmed that > he could see the same problem on our hardware when using VT2. I > confirmed I could reproduce and also tested the fix. I don't remember > if Bjorn ever tested the fix. I think many of us assumed that it was > the same issue so a fix for one person would also fix the other. Yeah, that sounds reasonable even if there apparently are some differences between mainline and what you run in ChromeOS here. > > Doug, can you please confirm whether you can reproduce the PSR+VT issue > > on 6.4-rc (without extra patches) or if the issue is fixed for you? > > > > [1] > > https://lore.kernel.org/dri-devel/CAD=FV=VSHmQPtsQfWjviEZeErms-VEOTmfozejASUC9zsMjAbA@mail.gmail.com/ > > Ugh. Unfortunately, it's not easy for me to test this particular > feature directly on upstream Linux. :( I typically run with a ChromeOS > root filesystem, which works pretty well with mainline. One place > where it doesn't work with mainline is VT2. The VT2 feature for > Chromebooks is implemented with "frecon" and takes advantage of a > downstream patch that we've carried in the ChromeOS kernel trees for > years allowing handoff of who the DRM "master" is. > > For testing the fix previously, I confirmed that I could reproduce the > problem on our downstream kernel (which had the PSR patches picked) > and that the fixes worked for me in that context. > > Ah, but it shouldn't be too hard to pick that one patch. Let's see if > that works. I'll pick ("CHROMIUM: drm: Add drm_master_relax debugfs > file (non-root set/drop master ioctls)"). Indeed, it works! > > OK, so with the top of Linus's tree (v6.4-rc3-17-g9d646009f65d) plus > the CHROMIUM patch to enable my VT2, I can confirm that I don't see > the issue. I can switch to VT2 and typing works fine. I will say that > on herobrine the backlight is all messed up, but I assume that's an > unrelated issue. Interesting, as VTs are still broken in with rc4 on the X13s (and sc8280xp CRD). Does anyone have any ideas of why things break on mainline with these machines? Any patches or tests I can try? Dmitry, do you have an X13s now that you can reproduce this on? Johan