Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5369124rwd; Wed, 24 May 2023 00:14:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4PzfaBVHm7Y6Q4gbDCsVTu8T+m8Eh1bLlVoA5z9dW6PFLtCslhXZIFTgtZUTIRw0GCqf+o X-Received: by 2002:a17:90a:e40b:b0:255:c5f7:ff37 with SMTP id hv11-20020a17090ae40b00b00255c5f7ff37mr2702376pjb.7.1684912481902; Wed, 24 May 2023 00:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684912481; cv=none; d=google.com; s=arc-20160816; b=qbp5mEF+3ZvBRe2BxxrEk9hycQ6PCAujQxjQDCjGghYtksOhEU/fOwpG1LuaTs+Eu2 UKyWA6+HWGSYMLkGffkdIcHD17P1h9vpMOVQZUAd/MntVEQwuuCNJkpqqsB9SkchFLrM vPE7eAAITLB5fYzUy9qDscuBcwTM27bB6y+Obj+q2jXTIwnjSB0YbbQ1HsPT+2pE9Hxy UegCo/9rfleBAG3lH49IQr9yjd1D7Srh46ye78UgQ5ETI+Z3PYPc+WAdprjC4LmnqI0j +LJ6BG4fdrcyErSrHf6TG25klyO7VNPQJMsUGvFUuS++28Y2CEZYvfWf80d+R6hdRU3/ +tKg== 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=K3Q1FkrOQSvpsPANPYmU2hTl4DXXZeCr7TeIeo3S47g=; b=ARUPUFz18malCZlLrb39TtNxWzfPmNtxiPJ8d5Hzv8NgQWvTjlpfaTA5o7sut5Ocbw 7w4SyL1pqNx7z+0FFvRBXpoMQrEKMCAqXVAphyf4/nOQtHumjjIxIQJXp0PUdAmc7sLJ PcCq/J2mDphee+61Z7g6kbmZqNonrykqJMptjmIyqeKpWv/1YTNWyafFZu5n9nWct+NT bkciekjVghEEuKgxSldlOA2Tv+4xwO6+WjZJZyLP7huKV98Oi41QxCOLe6DLXX0UVJpA ZzyY+ZAlBtPRMxQ423rGZme2zZMZUrfqGa+TgE8wvA7bJqQUdtrBOp/fqg/LRR4HGAjt MrzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pFFnpgTW; 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 v8-20020a63b648000000b00534769ac7acsi7711413pgt.879.2023.05.24.00.14.29; Wed, 24 May 2023 00:14:41 -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=pFFnpgTW; 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 S235545AbjEXHAG (ORCPT + 99 others); Wed, 24 May 2023 03:00:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239851AbjEXG7w (ORCPT ); Wed, 24 May 2023 02:59:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C67111B5; Tue, 23 May 2023 23:59:50 -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 631C86397D; Wed, 24 May 2023 06:59:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9A14C433EF; Wed, 24 May 2023 06:59:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684911589; bh=EGxKW0ENE1SqUGUsYp+MnGqiOllxXX1HxcX9JCZtn/w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pFFnpgTWz0mFlcM7EiCO4wqhXZSoxWvo5e6iAqou8ivxTUOcgv3tRwJhDekhFPmWL O0tdDOMhV8UqOQvPqsRiBdPsaZpFEpva03kuZW/udlzFBVPDk9C+6wmhT+i3Km8yA4 h1tCHUMQpW1WDMjaNx45ejnB17QToaDeknC6B0Oww6UiSVYGKXHrS/JEmbZj6vGA9o znEOfH9UGHM5jjj4sYzkusaFY45cw4ZONwjdicCO+qHGAYlJJ831mIfUX9Tmid3ydR JSHRVsVE3Cg9kPOHZbZs+svQGuzOJbejGJ6Dk+94IW9wKNIMRi81ZIk3Qc0SIwFD6g HioNUMDijK0nA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1q1iTS-0003FU-8Y; Wed, 24 May 2023 08:59:55 +0200 Date: Wed, 24 May 2023 08:59:54 +0200 From: Johan Hovold To: Abhinav Kumar Cc: Dmitry Baryshkov , freedreno@lists.freedesktop.org, Rob Clark , Sean Paul , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, quic_jesszhan@quicinc.com, swboyd@chromium.org, dianders@chromium.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 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 Tue, May 23, 2023 at 12:23:04PM -0700, Abhinav Kumar wrote: > On 5/23/2023 8:24 AM, Johan Hovold wrote: > > On Fri, May 12, 2023 at 09:13:04PM +0300, Dmitry Baryshkov wrote: > >> On 28/04/2023 02:28, Abhinav Kumar wrote: > >>> On sc7280 where eDP is the primary display, PSR is causing > >>> IGT breakage even for basic test cases like kms_atomic and > >>> kms_atomic_transition. Most often the issue starts with below > >>> stack so providing that as reference > >>> > >>> Call trace: > >>> ---[ end trace 0000000000000000 ]--- > >>> [drm-dp] dp_ctrl_push_idle: PUSH_IDLE pattern timedout > >>> > >>> Other basic use-cases still seem to work fine hence add a > >>> a module parameter to allow toggling psr enable/disable till > >>> PSR related issues are hashed out with IGT. > >> > >> For the reference: Bjorn reported that he has issues with VT on a > >> PSR-enabled laptops. This patch fixes the issue for him > > > > Module parameters are almost never warranted, and it is definitely not > > the right way to handle a broken implementation. > > > > I've just sent a revert that unconditionally disables PSR support until > > the implementation has been fixed: > > > > https://lore.kernel.org/lkml/20230523151646.28366-1-johan+linaro@kernel.org/ > > I dont completely agree with this. Even the virtual terminal case was > reported to be fixed by one user but not the other. So it was probably > something missed out either in validation or reproduction steps of the > user who reported it to be fixed OR the user who reported it not fixed. > That needs to be investigated now. Yes, there may still be some time left to fix it, but it's pretty damn annoying to find that an issue reported two months ago still is not fixed at 6.4-rc3. (I even waited to make the switch to 6.4 so that I would not have to spend time on this.) I didn't see any mail from Bjorn saying that the series that claimed to fix the VT issue actually did fix the VT issue. There's only the comment above from Dmitry suggesting that disabling this feature is the only way to get a working terminal back. Regressions happen and sometimes there are corner cases that are harder to find, but this is a breakage of a fundamental feature that was reported before the code was even merged into mainline. > We should have ideally gone with the modparam with the feature patches > itself knowing that it gets enabled for all sinks if PSR is supported. Modparams are things of the past should not be used to enable broken features so that some vendor can tick of their internal lists of features that have been "mainlined". You can carry that single patch out-of-tree to enable this if you need it for some particular use case where you don't care about VTs. But hopefully you can just get this sorted quickly. If not, the revert I posted is the way to go rather than adding random module parameters. Johan