From patchwork Fri Oct 1 03:36:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AceLan Kao X-Patchwork-Id: 1535121 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=LX/GAJm9; 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 4HLG480W2Rz9sPf for ; Fri, 1 Oct 2021 13:36:22 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1mW9LH-0007Lw-IH; Fri, 01 Oct 2021 03:36:11 +0000 Received: from mail-pl1-f175.google.com ([209.85.214.175]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1mW9LG-0007Lo-Ef for kernel-team@lists.ubuntu.com; Fri, 01 Oct 2021 03:36:10 +0000 Received: by mail-pl1-f175.google.com with SMTP id w11so5405337plz.13 for ; Thu, 30 Sep 2021 20:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=wYMAteMimDV9Naq7G0TgEoYE8aHM56AYWNe1JiLUFq8=; b=LX/GAJm9kqVjElZrze6DOtQvNvHtr1KI1lliC+GFz/aMJ/QVK5gDBi33XCfEVabbmY 1022tJN7i6BC/xP9f9I09ghFfz+QVflzHA022ADrykdnZtk15i7oeAvA/xBNuJHiSP0P RFq0glf10RLDzNUeKhVrirfXl08gK8QiHYbSPtJIAD8tRes3PiKQuLaY/iPJBi79sr7U 34mdNfLEmHlQJR1tXxiHsYdRjs3uPf0Nns9uudhOWJHOkLeFdVM3mlwFj8CBRIIETPwh gqbwIlTXeQnL6okPEQmYMbNf1xzI4bvir5GH3305aESgXxqQRwz2i9H7W+H9z0JaJJBF g4Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=wYMAteMimDV9Naq7G0TgEoYE8aHM56AYWNe1JiLUFq8=; b=J3RjMuuPoM3Y4WUQU32hdkYn4VWNQilWNj7JdHSfqzX6aPPybHUulJey/2WGLkFp/z 9wHoiFM8hPtEfDucIDYHbIAGoglXZzQ8JnEYMKKsfiiojspFszT8mtlggq7KEC+ht46z Ftjh9Jifm5kVWJhY2T5EF8sj96VdSCGoiViio6WmtWHFh3JFsMZaWBEaD4RjbziVtpSW JI7YgZbgw5+bW2Om4QALQf23doHXS8i9lvSOMAU9/fpNrhYdgz1gWWDyMJIpayin8pUb nH2lRAAPIXY2I1JsUaU2NBos3d+HMtDtjfDHwxczw42zM35koYxLKhlO4I2+OyiPDZ84 Uacw== X-Gm-Message-State: AOAM530YX4t4ws9QnOxpsoeKSEb2XwCIiY4lGF1ulH8W0c5otKTxD1SP ZwdZUG8dgG7UNLPqO4V6yfIvQSY+4yk= X-Google-Smtp-Source: ABdhPJyMl6hfT4QE7wLCCWCk0DqqsMHKTnjHFHZ5qHM8WihmTUSD+H9jWxMt54El9NBn0S5BGEaHsw== X-Received: by 2002:a17:90a:428e:: with SMTP id p14mr17413434pjg.229.1633059367847; Thu, 30 Sep 2021 20:36:07 -0700 (PDT) Received: from localhost (220-135-95-34.hinet-ip.hinet.net. [220.135.95.34]) by smtp.gmail.com with ESMTPSA id k9sm4425546pfa.88.2021.09.30.20.36.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 20:36:07 -0700 (PDT) From: AceLan Kao To: kernel-team@lists.ubuntu.com Subject: [PATCH v2 0/3][SRU][I][OEM-5.13] It hangs while booting up with AMD W6800 [1002:73A3] Date: Fri, 1 Oct 2021 11:36:01 +0800 Message-Id: <20211001033604.787556-1-acelan.kao@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.214.175; envelope-from=acelan@gmail.com; helo=mail-pl1-f175.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://bugs.launchpad.net/bugs/1945553 [Impact] It hangs when booting up with AMD W6800 [1002:73A3] graphics card. [Fix] Bisect the kernel and found below fix from v5.15-rc1 mainline kernel 5810323ba692 drm/amd/pm: Fix a bug communicating with the SMU (v5) [Test] Verified the patch on a Dell workstation with AMD W6800 graphics card [Where problems could occur] The code flow doesn't change much, but with better return codes handling and print out more meaningful messages. So it should not impact the already working devices. Andrey Grodzovsky (1): drm/amdgpu: Rename flag which prevents HW access Luben Tuikov (2): drm/amd/pm: Fix a bug communicating with the SMU (v5) drm/amd/pm: Fix a bug in semaphore double-lock drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 6 +- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 4 +- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 288 +++++++++++++++++---- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.h | 3 +- 6 files changed, 250 insertions(+), 55 deletions(-) Acked-by: Kleber Sacilotto de Souza Acked-by: Kelsey Skunberg