Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BBF1C61DA4 for ; Thu, 23 Feb 2023 12:16:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234235AbjBWMQ1 (ORCPT ); Thu, 23 Feb 2023 07:16:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233183AbjBWMQZ (ORCPT ); Thu, 23 Feb 2023 07:16:25 -0500 Received: from srv6.fidu.org (srv6.fidu.org [IPv6:2a01:4f8:231:de0::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A73282138 for ; Thu, 23 Feb 2023 04:16:22 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by srv6.fidu.org (Postfix) with ESMTP id 65698C8008D; Thu, 23 Feb 2023 13:16:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at srv6.fidu.org Received: from srv6.fidu.org ([127.0.0.1]) by localhost (srv6.fidu.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id L8LRnpStdvmA; Thu, 23 Feb 2023 13:16:20 +0100 (CET) Received: from [192.168.176.165] (host-88-217-226-44.customer.m-online.net [88.217.226.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: wse@tuxedocomputers.com) by srv6.fidu.org (Postfix) with ESMTPSA id BEE2EC8008A; Thu, 23 Feb 2023 13:16:18 +0100 (CET) Message-ID: Date: Thu, 23 Feb 2023 13:16:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [Intel-gfx] [PATCH 2/2] Apply quirk to disable PSR 2 on Tongfang PHxTxX1 and PHxTQx1 To: "Hogander, Jouni" , "Vivi, Rodrigo" Cc: "Souza, Jose" , "Santa Cruz, Diego" , "ville.syrjala@linux.intel.com" , "intel-gfx@lists.freedesktop.org" , "joonas.lahtinen@linux.intel.com" , "Kahola, Mika" , "airlied@gmail.com" , "tvrtko.ursulin@linux.intel.com" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "daniel@ffwll.ch" , "jani.nikula@linux.intel.com" , "De Marchi, Lucas" References: <20230222141755.1060162-1-wse@tuxedocomputers.com> <20230222141755.1060162-3-wse@tuxedocomputers.com> Content-Language: en-US From: Werner Sembach In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 23.02.23 um 07:27 schrieb Hogander, Jouni: > On Wed, 2023-02-22 at 15:13 -0500, Rodrigo Vivi wrote: >> On Wed, Feb 22, 2023 at 03:17:55PM +0100, Werner Sembach wrote: >>> On these Barebones PSR 2 is recognized as supported but is very >>> buggy: >>> - Upper third of screen does sometimes not updated, resulting in >>> disappearing cursors or ghosts of already closed Windows saying >>> behind. >>> - Approximately 40 px from the bottom edge a 3 pixel wide strip of >>> randomly >>> colored pixels is flickering. >>> >>> PSR 1 is working fine however. >> I wonder if this is really about the panel's PSR2 or about the >> userspace >> there not marking the dirtyfb? I know I know... it is not userspace >> fault... >> >> But I wonder if the case you got here highlights the fact that we >> have >> a substantial bug in the i915 itself in regards to PSR2 API. >> >> Jose, Jouni, ideas on how to check what could be happening here? > There is already fix for this (Thanks to Werner Sembach for testing the > patch): > > https://patchwork.freedesktop.org/series/114217/ Yes, thanks for creating that patch ^^ I posted this quirk patch just as an possible alternative for stable if that other patch is considered not suitable for it (lets wait and see). And to get some feedback if something like this could be a viable workaround if similar bugs appear in the future. > >> oh, btw, Werner, do we have an  open gilab issue for this? > https://gitlab.freedesktop.org/drm/intel/-/issues/7347 > >> Thanks, >> Rodrigo. >> >>> Signed-off-by: Werner Sembach >>> Cc: >>> --- >>>  drivers/gpu/drm/i915/display/intel_quirks.c | 8 ++++++++ >>>  1 file changed, 8 insertions(+) >>> >>> diff --git a/drivers/gpu/drm/i915/display/intel_quirks.c >>> b/drivers/gpu/drm/i915/display/intel_quirks.c >>> index ce6d0fe6448f5..eeb32d3189f5c 100644 >>> --- a/drivers/gpu/drm/i915/display/intel_quirks.c >>> +++ b/drivers/gpu/drm/i915/display/intel_quirks.c >>> @@ -65,6 +65,10 @@ static void >>> quirk_no_pps_backlight_power_hook(struct drm_i915_private *i915) >>>         drm_info(&i915->drm, "Applying no pps backlight power >>> quirk\n"); >>>  } >>> >>> +/* >>> + * Tongfang PHxTxX1 and PHxTQx1 devices have support for PSR 2 but >>> it is broken >>> + * on Linux. PSR 1 however works just fine. >>> + */ >>>  static void quirk_no_psr2(struct drm_i915_private *i915) >>>  { >>>         intel_set_quirk(i915, QUIRK_NO_PSR2); >>> @@ -205,6 +209,10 @@ static struct intel_quirk intel_quirks[] = { >>>         /* ECS Liva Q2 */ >>>         { 0x3185, 0x1019, 0xa94d, quirk_increase_ddi_disabled_time >>> }, >>>         { 0x3184, 0x1019, 0xa94d, quirk_increase_ddi_disabled_time >>> }, >>> + >>> +       /* Tongfang PHxTxX1 and PHxTQx1/TUXEDO InfinityBook 14 Gen6 >>> */ >>> +       { 0x9a49, 0x1d05, 0x1105, quirk_no_psr2 }, >>> +       { 0x9a49, 0x1d05, 0x114c, quirk_no_psr2 }, >>>  }; >>> >>>  void intel_init_quirks(struct drm_i915_private *i915) >>> -- >>> 2.34.1 >>>