Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp579683rwb; Sat, 17 Sep 2022 10:24:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM73cCKxl/fVPArJ6rEjK2lz3Isa3bRFLn1CxptufISFcpVAV3Hmey5v497T/zRSjJ2cil3p X-Received: by 2002:a17:906:6dd3:b0:742:296d:15c8 with SMTP id j19-20020a1709066dd300b00742296d15c8mr7199456ejt.550.1663435444903; Sat, 17 Sep 2022 10:24:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663435444; cv=none; d=google.com; s=arc-20160816; b=qr1ySP/Zw0iIFZoIaLzIaS5MDytI28iJbODbLauaAsgCa/Xd0QF6jAHhtBwlGIyKoP 1PwvEzsgX1hilOpJTyBllexH46smOTnkFGB8qBVXswfBjvKcd5iQRjLX7aFUv+ZvM1sn zcqRTpSr2+Zu0cEQKzS1EZrj1mZlcpTKVN9OgMm08Vj2jQx3uAOqPjq1YMQn0Z9Z2rpc I0bSy0DD2JzRMOw1zhwGaIGYc1uOLATwetKRqGj6uWJuTQIdCOk+pK9dbaie9IbRfEra T2rUWnBJu6N+qiX1mwi8Y03O5OviOhbnKexeUj7s0J7GnM1vllDSOhQb7qMrXeRVDz/a 8p+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:reporting-meta:content-transfer-encoding :content-language:cc:to:subject:from:mime-version:date:message-id :dkim-signature:dkim-signature; bh=7ObGGwvkwsbVdVjWBkq3Mel0hVpY0UzSeJwTyf1SSjI=; b=ZkCpGRzLDqyOScJVkPWjPktblODKUSQI2MFz3X/q6R8HZ+CQUR2fmBLZII8JG3wGT8 EqVVAJRjYnK+rwxKDKGcrYvemgdN6RfpPlGrvucgalvKJEHD8KGslboDXnkXApum+3s4 qbcq3nH+hetRAe/Pg9Lj60qyDV62fVYOett5oi4grsIFOLuzELLwUSdZzsfJ6hWdSJsC 0sJQXj8Y65ji/kgMZay6o+IChY7av6KNyq4ZM/ugSNZJeeBv2ks/u2iKeYsb/oZQfnsT omSJvFYNJq/vIVsvsgC73GPVAT+drAo4MfbAmYZUtFotsa8jV2QrS9YIkM+DoM+KDjlc Rnlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@augustwikerfors.se header.s=oci-fra1-20220101 header.b=OagMmVSV; dkim=pass header.i=@fra1.rp.oracleemaildelivery.com header.s=prod-fra-20191115 header.b=MluGiM7i; 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=QUARANTINE sp=REJECT dis=NONE) header.from=augustwikerfors.se Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd43-20020a17090796ab00b00732f74db44dsi11175601ejc.17.2022.09.17.10.23.30; Sat, 17 Sep 2022 10:24:04 -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=@augustwikerfors.se header.s=oci-fra1-20220101 header.b=OagMmVSV; dkim=pass header.i=@fra1.rp.oracleemaildelivery.com header.s=prod-fra-20191115 header.b=MluGiM7i; 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=QUARANTINE sp=REJECT dis=NONE) header.from=augustwikerfors.se Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229645AbiIQRCh (ORCPT + 99 others); Sat, 17 Sep 2022 13:02:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbiIQRCg (ORCPT ); Sat, 17 Sep 2022 13:02:36 -0400 X-Greylist: delayed 300 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 17 Sep 2022 10:02:34 PDT Received: from ach1ajh125.fra1.oracleemaildelivery.com (ach1ajh125.fra1.oracleemaildelivery.com [138.1.108.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FB232CDCD for ; Sat, 17 Sep 2022 10:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=oci-fra1-20220101; d=augustwikerfors.se; h=Date:To:From:Subject:Message-Id:MIME-Version:Sender; bh=7ObGGwvkwsbVdVjWBkq3Mel0hVpY0UzSeJwTyf1SSjI=; b=OagMmVSVqflvFzEKxeU7ynuwVVJFBl84OLfEsJtSxIp4SU8vPfT0u+ReiakmSOPyVhbfAWFLAl0a kC1PJoCYd5kF/y4vvWS6zTzEbkMy0bwujV6ipHftMaArij1YSiMh0ZcVRuG75FquqB2gaiE+SDGv j37n7zJcfYHD/h8HXTqpD8ns4p4s6JP1FdtgLPzPAt+QvWe3t8GC6AMpon4CQk4uYaKNAKL8rMKo HeMQ13XkxWoR6btLC8vILUxQKsbEErCib+E9MOtb2RtrCREYHxdOsh9zS02l6us5b5LG4J7MOMv1 nwd2e4vamSPlU08B3b9POvUn3eMapvoPhBehfQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=prod-fra-20191115; d=fra1.rp.oracleemaildelivery.com; h=Date:To:From:Subject:Message-Id:MIME-Version:Sender; bh=7ObGGwvkwsbVdVjWBkq3Mel0hVpY0UzSeJwTyf1SSjI=; b=MluGiM7iULl1rhbezZi4yTmYN+8DtCDhbMA39YTP1r4FQlt3xhWZUink9X9mu9V4YEbVk3Lqd1sc 9z/X/8CbACet5HxH7sHWHEvv8zON8g+oSZBkpL3iUKJ/POtrGPXfZ5xFyOHWkDxsYCWS+qSTdSgW 5CwE31B0aP/A9FkTolFq49GmElzXEeXL5TVdkSrSLDg7yRnm95QIHlx8V+8kUMeKb9d/WCY/T3xi tRyBXRbGeTqcjMhTxVay/zUDNjOBZRRdV+5g5WmUiqHwppCzg7/8kHmOYw+tOsmsYBrGLH5dyV76 pDidXGpxRwXN4OD3ANiV3UpPjKaxwoihzpbdGw== Received: by omta-ad1-fd3-101-eu-frankfurt-1.omtaad1.vcndpfra.oraclevcn.com (Oracle Communications Messaging Server 8.1.0.1.20220826 64bit (built Aug 26 2022)) with ESMTPS id <0RID00PX05RW4QB0@omta-ad1-fd3-101-eu-frankfurt-1.omtaad1.vcndpfra.oraclevcn.com> for linux-kernel@vger.kernel.org; Sat, 17 Sep 2022 16:57:32 +0000 (GMT) Message-id: Date: Sat, 17 Sep 2022 18:57:28 +0200 MIME-version: 1.0 From: August Wikerfors Subject: [REGRESSION] Graphical issues on Lenovo Yoga 7 14ARB7 laptop since v6.0-rc1 (bisected) To: Harry Wentland , Leo Li , Rodrigo Siqueira Cc: Alex Deucher , amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev Content-language: en-US Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 7bit Reporting-Meta: AAF2mgUR8cFnMjGh0lEzMZlmhqwUNFC3wJ4Q40oSCReejZnSNcQxRaC+2EfUW+cL Gf0CcJ1iAZGRcDf0h8T7Sv6JdreHdNALvuBlCJalIgI6Xy+CjBBaGwdfKNAuKxja 1gglgT+O+BnEuaN9rv4esPf211rsCY3CC9dl/QRWj6rgaOU7iZyijE2c8M8jlCRO eRVX+gVBzS4AyXqwyPmx7tzOtwbJlxgdsWxSRYEVVNCMcvTJOgAz0gmRGU6gkCAi WOzYvUIprxyuChgkvxYCDunvB5lI62Iu1hhhYFVw+2q2B/yXoRKwYJBtXoou4mbl 9fM8op9uNsb/aYSRzLWtUCooR0kRoPzVgeiadCgh1tgjyZJfZHOwahqWSt6bpC2E SjcD7npGynCGOk+SL+Htz1sy6NWA/9u3ZkQvk+UDgUpUqnSEb93Ge/ifroXaUmoF jjfWMoc= X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Hi, with every kernel version since v6.0-rc1, including the latest git master, there are constant graphical issues on this laptop, such as heavy stuttering (this is especially noticeable while typing on the keyboard), parts of the screen showing random noise, and the entire desktop environment freezing. I bisected the issue which showed that this is the first bad commit: > commit 7cc191ee7621b7145c6cc9c18a4e1929bb5f136e > Author: Leo Li > Date: Wed Mar 30 12:45:09 2022 -0400 > > drm/amd/display: Implement MPO PSR SU > > [WHY] > > For additional power savings, PSR SU (also referred to as PSR2) can be > enabled on eDP panels with PSR SU support. > > PSR2 saves more power compared to PSR1 by allowing more opportunities > for the display hardware to be shut down. In comparison to PSR1, Shut > down can now occur in-between frames, as well as in display regions > where there is no visible update. In otherwords, it allows for some > display hw components to be enabled only for a **selectively updated** > region of the visible display. Hence PSR SU. > > [HOW] > > To define the SU region, support from the OS is required. OS needs to > inform driver of damaged regions that need to be flushed to the eDP > panel. Today, such support is lacking in most compositors. > > Therefore, an in-between solution is to implement PSR SU for MPO and > cursor scenarios. The plane bounds can be used to define the damaged > region to be flushed to panel. This is achieved by: > > * Leveraging dm_crtc_state->mpo_requested flag to identify when MPO is > enabled. > * If MPO is enabled, only add updated plane bounds to dirty region. > Determine plane update by either: > * Existence of drm damaged clips attached to the plane (added by a > damage-aware compositor) > * Change in fb id (flip) > * Change in plane bounds (position and dimensions) > * If cursor is enabled, the old_pos and new_pos of cursor plus cursor > size is used as damaged regions(*). > > (*) Cursor updates follow a different code path through DC. PSR SU for > cursor is already implemented in DC, and the only thing required to > enable is to set DC_PSR_VERSION_SU_1 on the eDP link. See > dcn10_dmub_update_cursor_data(). > > Signed-off-by: Leo Li > Acked-by: Leo Li > Reviewed-by: Harry Wentland > Signed-off-by: Alex Deucher #regzbot introduced: 7cc191ee7621b7145c6cc9c18a4e1929bb5f136e Note that while bisecting I also needed to apply commit 9946e39fe8d0a5da9eb947d8e40a7ef204ba016e as the keyboard doesn't work without it. Laptop model: Lenovo Yoga 7 14ARB7 CPU: AMD Ryzen 5 6600U Kernel config: https://raw.githubusercontent.com/archlinux/svntogit-packages/aa564cf7088b1d834ef4cda9cb48ff0283fde5c5/trunk/config Distribution: Arch Linux Desktop environment: KDE Plasma 5.25.5 lspci: > $ lspci -nn > 00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14b5] (rev 01) > 00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Device [1022:14b6] > 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14b7] (rev 01) > 00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14b7] (rev 01) > 00:02.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14ba] > 00:02.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14ba] > 00:02.5 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14ba] > 00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14b7] (rev 01) > 00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14cd] > 00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14b7] (rev 01) > 00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:14b7] (rev 01) > 00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14b9] (rev 10) > 00:08.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:14b9] (rev 10) > 00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 71) > 00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51) > 00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1679] > 00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:167a] > 00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:167b] > 00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:167c] > 00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:167d] > 00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:167e] > 00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:167f] > 00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1680] > 01:00.0 Network controller [0280]: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter [14c3:0616] > 02:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd Device [144d:a80b] (rev 02) > 03:00.0 SD Host controller [0805]: O2 Micro, Inc. SD/MMC Card Reader Controller [1217:8621] (rev 01) > 33:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] [1002:1681] (rev c2) > 33:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller [1002:1640] > 33:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] VanGogh PSP/CCP [1022:1649] > 33:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:161d] > 33:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:161e] > 33:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 60) > 33:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3] > 34:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:161f] > 34:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15d6] > 34:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15d7] > 34:00.5 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:162e]