From patchwork Wed Jul 19 15:01:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koba Ko X-Patchwork-Id: 1809913 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=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=OE47OylJ; 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 4R5fCr4FkSz20FK for ; Thu, 20 Jul 2023 01:01:28 +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 1qM8g5-0002Km-JN; Wed, 19 Jul 2023 15:01:21 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1qM8g3-0002Jp-9B for kernel-team@lists.ubuntu.com; Wed, 19 Jul 2023 15:01:19 +0000 Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) (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-1.canonical.com (Postfix) with ESMTPS id C4D983F0F8 for ; Wed, 19 Jul 2023 15:01:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1689778878; bh=cz5yyU4oitXUzXFOvYMps00mcM3XZSYJBEJTjeg/aFc=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=OE47OylJMCNrJHRTue2Y+qGcJit/lh/c/QflJ+jrkjNQVSgesAix0nPOn3ZKXnDsx AIxmz+q7y+488iASle0DnMSAUafRxmCCfX1bjYVcutXDXVhMeoP3S848EQ8ZMA9yUZ +OunsbyP5FnC2S2RaN6rm59XFpNl2qbqCzohXOo5bgL3qOcG733E7YL2juoQyTGzcb irJb/3ev4OBKEEP2WGgG/+56Zf9RIy4MzqpOFmWzguYRekGcQW/fiToehCVZZk78b5 5H2wwetQSIYgbbRAWRT4t/z2diMZjQ1A4x+ipMn1zBzMtljJFa+KofllEFbDV5hDgW Jr6o46Kn80NdA== Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-2631231fed0so3396297a91.3 for ; Wed, 19 Jul 2023 08:01:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689778876; x=1690383676; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cz5yyU4oitXUzXFOvYMps00mcM3XZSYJBEJTjeg/aFc=; b=fR6ftA0Ha5qrQyTsALsPQO8hXsvb046QEvyAC10gtzC7MFQpK4XfIXqfRKEFS2SzJZ 3u3v1C2s9JEl+AqIqzob5miaXDfW4I7VAwntthCPr37ECxI+1gr2/ovUbQRFzCbxt89Y W163SRqlkXMnKOv017S2NTrYBfwrZca8PqXaJSbP4KFhGmUSJqQfk+XOqjJNXLZlqTvM Z84b1qOTL4GFZhA8u6DdJ51HFQm/P0RUbpjKt3vklTQZv5gfSZT1UUJ7po5Ot2JCbgKK /1R06a/ePsWzbWLwer31lvriKYRCYkhtoVco/kgXsOI3Zc2IYNcfsdESFNhugDrS7XSY amIA== X-Gm-Message-State: ABy/qLawp7NLFCvoAZ0yF+tggZnkuOfKS1pxdK1xtbYjcJ8OPCI8r4AI B4JEJe1Dq2W1kXUBMEMuQn0Wr7o9gyAqMxTT36N4p0Y/8LjTIKYZE/pHtS69VYi9pEaA+Myr1Jd JgoPtrrHasnRcrGASt8+x+mROE9JUTo/pyOx4x1MlPBdwwz6nDg== X-Received: by 2002:a17:90b:360e:b0:263:f75b:c33f with SMTP id ml14-20020a17090b360e00b00263f75bc33fmr1915966pjb.45.1689778876578; Wed, 19 Jul 2023 08:01:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlE5JUYFLvpo6UhwNBMbgmHJRD0Zp2Q287FF0bn8BW1KlF8ATbAm118Uvv+pEyLDasjxLximKg== X-Received: by 2002:a17:90b:360e:b0:263:f75b:c33f with SMTP id ml14-20020a17090b360e00b00263f75bc33fmr1915931pjb.45.1689778876096; Wed, 19 Jul 2023 08:01:16 -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 ft17-20020a17090b0f9100b00262d9b4b527sm1273834pjb.52.2023.07.19.08.01.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 08:01:15 -0700 (PDT) From: Koba Ko To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/5 V2][SRU][M/L] Fix AMDGPU: the screen freeze with W7500 Date: Wed, 19 Jul 2023 23:01:07 +0800 Message-Id: <20230719150112.1883903-1-koba.ko@canonical.com> X-Mailer: git-send-email 2.34.1 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/2027957 [impact] While booting into OOBE, the screen freeze [AMD W7500 only] [fix] AMDGPU would allocate pcie gen/lane dynamically after ASPM is enabled. Intel CPU may not support the dynamic lane/speed switching. Solution is, - Detect Intel x86 systems that don't support dynamic switching - Override the input caps to maximum supported for that system - Force all PCIe levels to use the same settings, rather than try to configure each level differently. [test cases] 1. boot with w7500 2. the screen doesn't freeze and can't find the error message in dmesg. "amdgpu: [drm] *ERROR* [CRTC:72:crtc-0] flip_done timed out" [where the issue could happen] low, this could lead issue when setting higher speeds than supported. [Misc] 1. jammy, amdgpu isn't loaded on this platform with 5.15-73-generic. 2. kinetic, amdgpu failed to probe the vga controller with 5.19-46-generic. 3. Passed cbd build against Mantic&Lunar. 4. For Lunar, need modification for function sienna_cichlid_update_pcie_parameters, so provide another patch for e701156ccc6c) drm/amd: Align SMU11 SMU_MSG_OverridePcieParameters. ~~~ V2: cherry-picked from linux-next Acked-by: Tim Gardner Acked-by: Stefan Bader