From patchwork Thu Oct 28 08:09:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koba Ko X-Patchwork-Id: 1547364 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=ZaZ9wZcU; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hfysk31hDz9sXN for ; Thu, 28 Oct 2021 19:10:17 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mg0U8-0001zm-IS; Thu, 28 Oct 2021 08:10:04 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mg0U7-0001ze-3o for kernel-team@lists.ubuntu.com; Thu, 28 Oct 2021 08:10:03 +0000 Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id F20D43F172 for ; Thu, 28 Oct 2021 08:10:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1635408602; bh=TpOixiPAXhM39lQm9T+C7GB607347sTHz1/Dlq5F9V8=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=ZaZ9wZcUbCsF3d5NSw2WayEN8SFlVIqnW8NLPRQzwya1zINmictWv8eU2gVpi3yVj 4pXdOsEUmqfAIY5V8q8GFgAyi453eyrr5jxp/HcdtbIR+2w0TkjRBc/ufKY3A5o9yS DpWNK5DTb8f1+xWBsYjL9iE9q1ugn/8BkxBEMHVph3Qw9WCpJzdkDgKa0gPfrF+cVR dM8XGdilv0G/ieXOpbYdx+9MVslwENqlaxXBz3lO+Uegy1+D9vtYGLhtQL0Tb5Ewne aX1DidD3qIlGRtyqDT/878xLcwgtzKY6x90xj2j+mLVMdL3t1ANREJQTpA82Uczy4T opy95gLjQmMLw== Received: by mail-pl1-f200.google.com with SMTP id v14-20020a170902e8ce00b0013fcb85c0ebso2375774plg.22 for ; Thu, 28 Oct 2021 01:10:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=TpOixiPAXhM39lQm9T+C7GB607347sTHz1/Dlq5F9V8=; b=siDCPBROS/lHWxyIMGX1wqePnhYU+ijUU9xwhbE2BmkZnUZyNaXZcYtJ03F0yw/hxP jSoXfLORrzUYSl9Yyb54IwwKyC893WOrpB0ltjMZAHRcKkak2ZrOmKXYbXZULcX6Wx4c N4dWermX3Ezj6YI3TGk3O6izVn3tY1jnXssdirOpv3/YmH4OP8ss54SY+d6LIP/DfBqc d9iM4DLz1OQuXaibNWz7UdQH23DqN5ngqrwV6Rw17K6SzN/7XZSbutLxknY0YRz7F+4e px4N4QATaRUsFr58B+5nZji8Pss/OqvJ+QuAoirOC5USxHi7SVaX83IfLLIU4lvdLW+n bVEw== X-Gm-Message-State: AOAM533uPdIP0q/NWWxxvaRjdn/cgzaar34kLgIIqrsfTAzvW5UPh8By B2zVyRDF9tDGVfwykF2GQnX30s8IbzGeETLJ3JAfM9GGHGquEebp3IERKLGJ2JQZzGQ7UlhNBow J/sv2Yw4vgKfHKSNiKi6H8tDORG8yrXIzu3LwiVoAAw== X-Received: by 2002:a63:6c49:: with SMTP id h70mr2115711pgc.368.1635408601296; Thu, 28 Oct 2021 01:10:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw5g9oMWZ5WZVeOfwhGtC7aAJqSWTaTRB4iQjnpc7wX/z1BC4aTSEIIha8f40C5jbnCzas2g== X-Received: by 2002:a63:6c49:: with SMTP id h70mr2115693pgc.368.1635408600995; Thu, 28 Oct 2021 01:10:00 -0700 (PDT) Received: from canonical.com (211-75-139-218.hinet-ip.hinet.net. [211.75.139.218]) by smtp.gmail.com with ESMTPSA id s40sm1568056pfg.130.2021.10.28.01.10.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Oct 2021 01:10:00 -0700 (PDT) From: Koba Ko To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/4][SRU][H/I/OEM-5.13/OEM-5.14] Fix Screen freeze after resume from suspend with iGPU [1002:6987] Date: Thu, 28 Oct 2021 16:09:55 +0800 Message-Id: <20211028080959.2125864-1-koba.ko@canonical.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1949050 [Impact] Screen freeze after resume from suspend [Fix] Perform proper cleanups on UVD/VCE suspend: powergate enablement, clockgating enablement and dpm disablement. This can fix some hangs observed on suspending when UVD/VCE still using(e.g. issue "pm-suspend" when video is still playing). [Test] 1. Plug AMD RX640/Radeon 540 into the system 2. Connect with DP monitor to iGPU 3. Power on 4. Suspend the system 5. Resume from suspend 6. Do something for a while (terminal, nautilus, gnome-control-center, etc). 7. System could resume normally [Regression Potential] Low Andrey Grodzovsky (1): drm/amdgpu: Fix crash on device remove/driver unload Evan Quan (2): drm/amdgpu: reenable BACO support for 699F:C7 polaris12 SKU drm/amdgpu: add missing cleanups for Polaris12 UVD/VCE on suspend drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c | 26 +++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 26 +++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | 26 +++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 24 +++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 26 +++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 28 +++++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 25 ++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/vce_v4_0.c | 25 ++++++++++++++++++++++++ drivers/gpu/drm/amd/amdgpu/vi.c | 9 +-------- 9 files changed, 207 insertions(+), 8 deletions(-) Acked-by: Tim Gardner Acked-by: Kleber Sacilotto de Souza