From patchwork Wed Dec 21 07:26:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 1718156 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=YRaoU/8A; dkim-atps=neutral Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NcQ4g1HBJz23dT for ; Wed, 21 Dec 2022 18:27:13 +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 1p7tV9-00078W-Q6; Wed, 21 Dec 2022 07:26:55 +0000 Received: from mail-pj1-f43.google.com ([209.85.216.43]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1p7tV6-00078D-OQ for kernel-team@lists.ubuntu.com; Wed, 21 Dec 2022 07:26:52 +0000 Received: by mail-pj1-f43.google.com with SMTP id z8-20020a17090abd8800b00219ed30ce47so1319599pjr.3 for ; Tue, 20 Dec 2022 23:26:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:sender:from:to:cc:subject:date:message-id:reply-to; bh=tG0Zrw9BIQqjifKvcJcTwgKJFNz7xH3a3G6RLMyD43k=; b=YRaoU/8AekrrYwEqXOXhR9dBFcyvGNLCWh7xMkj7KXmBdlH8UT1H+x0qhlsE4NvJR6 +mmFhFFq7E23cbruhMwTlItgqbgFI4uExZfTgaaTepjbl7/7SnRQPSLxHypKPvirbEgk I7WxNgYNtQdg2f3V4CJ45ndxNeRP5mHVjYdI2jhYfWssMwZp/Pi5qivCZhB0UE10OB2V P2udQSkUdS+xHjhox100oLu3hDJ+8jyzyRuT7R5C9bmiCY6NFOt0Bg1Do2h2Oa2UkfBI mSH89KtksdQp16YuwjvA+dbsXamRcX04whqG+B/kdSB+6wEZkun0y6vS/wUeO2cxG7gI +M3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tG0Zrw9BIQqjifKvcJcTwgKJFNz7xH3a3G6RLMyD43k=; b=Q/I6VPDcqF3Q8CYK61pCZYWzE+FTmuM6MGP7epOn0oIBo3lRB35Sqz6AnDdHVAcf53 0Fc0WfFTObT+58yZUu5/ZUoJ8ZDOgF9p5UhQCbLkAMmwxosSKO2r/WLdkIF19Fw2hgpP 70Cck3JKky6QT5PQM0jVmfQcJCE4LdHvQkDFGZ1Dls/tugxiwJjU/iMiaBhdWy9pyIZ8 E7EBrIA7KWADRUTyH4SdLIyg73YgC/u9G2pAaKjLSkNcwYYKNgnfeVbnjZgAky6nrzNO FIsS/wEs9OLYnDV77VnKfxRD5609UaKqsXEjcaBWJUUOaF6tEpWojFqyyRZfeS95bd6A UKUQ== X-Gm-Message-State: AFqh2krbWOtESS5LREJ6LbzYSQxe/CnvAZ5ctQx3kGVg6qo6nlV/HaRH Fgi+FHEp5FHKzEh0cWYMSc9lb9+SXNo= X-Google-Smtp-Source: AMrXdXuAYROmJKrtizjok6KY2oQEKQINx+t5aFSsuhmJ0pjlJ0rtoxCpRRURfu+wKlMQif9xXh4blQ== X-Received: by 2002:a17:90b:2807:b0:219:5fc5:7790 with SMTP id qb7-20020a17090b280700b002195fc57790mr1209858pjb.16.1671607609577; Tue, 20 Dec 2022 23:26:49 -0800 (PST) Received: from localhost (118-163-61-247.hinet-ip.hinet.net. [118.163.61.247]) by smtp.gmail.com with ESMTPSA id fu6-20020a17090ad18600b0021894e92f82sm533893pjb.36.2022.12.20.23.26.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 23:26:48 -0800 (PST) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/5][SRU][OEM-5.17] Keeps rebooting with AMD W6400, W6600, and W6800 graphic cards Date: Wed, 21 Dec 2022 15:26:42 +0800 Message-Id: <20221221072647.8981-1-acelan.kao@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.216.43; envelope-from=acelan@gmail.com; helo=mail-pj1-f43.google.com 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" From: "Chia-Lin Kao (AceLan)" BugLink: https://launchpad.net/bugs/2000110 [Impact] With AMD W6400, W6600, or W6800 graphic cards the system keeps rebooting while entering graphics mode. [Fix] AMD provides a list of commits to fix this issue 1. drm/amdgpu: Remove ATC L2 access for MMHUB 2.1.x https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20221107&id=d2c4c1569a7d7d5c8f75963bf2d62d7aeac30e2a 2. drm/amdgpu: Don't enable LTR if not supported https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20221107&id=6c20490663553cd7e07d8de8af482012329ab9d6 3. Patch series: fix PCI AER issues drm/amdgpu: make sure to init common IP before gmc https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20221107&id=a8671493d2074950553da3cf07d1be43185ef6c6 drm/amdgpu: move nbio sdma_doorbell_range() into sdma code for vega https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20221107&id=e3163bc8ffdfdb405e10530b140135b2ee487f89 drm/amdgpu: move nbio ih_doorbell_range() into ih code for vega https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next-20221107&id=dc1d85cb790f2091eea074cee24a704b2d6c4a06 4. Disable amdgpu runpm, will have a update later. https://patchwork.freedesktop.org/patch/507366/ [Test] Verified on the machine with AMD graphic card, and confirmed the issue is gone. [Where problems could occur] The main idea is to disable BACO on those cards, the fix is quite straightforward with 2 Fixes commits, have impact on limited cards. Alex Deucher (1): drm/amdgpu: make sure to init common IP before gmc Guchun Chen (3): drm/amd/pm: disable BACO entry/exit completely on several sienna cichlid cards drm/amdgpu: disable BACO on special BEIGE_GOBY card drm/amdgpu: disable BACO support on more cards Lijo Lazar (1): drm/amdgpu: Remove ATC L2 access for MMHUB 2.1.x drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 14 ++++++++-- drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c | 28 ++++++------------- .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 17 +++++++++++ 3 files changed, 36 insertions(+), 23 deletions(-)