From patchwork Mon Nov 28 16:47:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Pisati X-Patchwork-Id: 1709881 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=FfOr+yL6; 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 4NLWcg6VVdz23nQ for ; Tue, 29 Nov 2022 03:48:19 +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 1ozhIV-0006Vi-Qa; Mon, 28 Nov 2022 16:47:59 +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 1ozhIT-0006VR-R1 for kernel-team@lists.ubuntu.com; Mon, 28 Nov 2022 16:47:57 +0000 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (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 913913F04C for ; Mon, 28 Nov 2022 16:47:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1669654077; bh=6DbdNtJYDcG6f5ClcIdbx+BEigA3wiZhTli7ksppnag=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=FfOr+yL6nkeMsyxoHO0lcUZZdsclU7vgJKvdLp+X1OAITQJ1rcLxjFxGBBqIZ3sgP FDxjxruCLdAELJPhx8/SMn5F11JNmwfD/OMJYb4F8q1TWAEXMYsGlf8TUH5br4J1M5 fCUVOE0HBJxYQ+RlVq+8mIvyyYGNxgvBynr/2+2N6vPai/taLH8cigqfro5VC4x0ts 9sN5kYx0XzAZVgIB++w/dpmpNBNzg6LLtzPIq0iyyjQGjyFBWsZ4TgjkmHnDamb2K6 LvZ2Zjove+LjceYkGFHipmpDQB0tTf9D9QcmsF6YIlrSWdrPd9c16AriGLHNSWDSRy 5heCjj8yA/iPQ== Received: by mail-wm1-f69.google.com with SMTP id bg25-20020a05600c3c9900b003cf3ed7e27bso6504237wmb.4 for ; Mon, 28 Nov 2022 08:47:57 -0800 (PST) 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:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6DbdNtJYDcG6f5ClcIdbx+BEigA3wiZhTli7ksppnag=; b=XsEpHEr4gFum4nj++Mkgw3N7kiZf0KaQc7B8yZs1a8oQJtEuFnG67OeAwcEmfJ38mP R5a/h7rPnBsGctDANjQmSf8kL4it9BfFZ+sKBCwTSkjWTJbl/Y7EY0y+4KG12+xucogs dI++ZtJcBaqXjg1k4PyiBXUHHBByG95uyAhCHR6L2UpQpZLHEn3DjRPVh05TxJh/sVZG kmcC7SFoc0bXSsk5954Qp1fYzIkNpnlbxoHpGM505pRqtMHXe5WgPcCspGxgHmDUIWWa IaIXF8OXdwC+tn4h+1StnNA2iFs8Ohocn3p4vw2K8jnGLROUdkJhoQjHwXFeuOGT0M9J O9WA== X-Gm-Message-State: ANoB5pn1OUybsagIZkJFISMpYF/BST4ZBMDbsKuuloEYo6SsD0OrsmkQ WyBKlwnS21EcGXpWuHKy8sR2b58/Kdtlblv43ok3F8Ug71G8XkD8/7k2IIR/UjJBvE5oNoIm3DZ nY8xytFpyaWx2wUUPNdGWtyiqHfsCHWvdCNJa7pTq7A== X-Received: by 2002:a5d:4d0d:0:b0:228:c1a8:6ef0 with SMTP id z13-20020a5d4d0d000000b00228c1a86ef0mr26206069wrt.584.1669654077023; Mon, 28 Nov 2022 08:47:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf4lN70vEfGd0uS0OtZfdtXnmfr2ktMEck/FLOCU/+pCoN5flV0Pb8rS6MirtPTRVQi6thV4iQ== X-Received: by 2002:a5d:4d0d:0:b0:228:c1a8:6ef0 with SMTP id z13-20020a5d4d0d000000b00228c1a86ef0mr26206052wrt.584.1669654076759; Mon, 28 Nov 2022 08:47:56 -0800 (PST) Received: from canonical.com (net-93-65-52-3.cust.vodafonedsl.it. [93.65.52.3]) by smtp.gmail.com with ESMTPSA id w5-20020adfde85000000b00241cbb7f15csm11205926wrl.106.2022.11.28.08.47.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 08:47:56 -0800 (PST) From: Paolo Pisati To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/8] [SRU][j:linux, j:linux-oem-5.17, f:linux-oem-5.14] Fix AMD-PState driver for Genoa CPU Date: Mon, 28 Nov 2022 17:47:47 +0100 Message-Id: <20221128164755.368178-1-paolo.pisati@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/1998106 [Impact] During AMD Genoa development, the datacenter team identified performance regressions that were caused by the amd-pstate driver. A first round of fixes already landed upstream (v6.1-rc7) in the amd-pstate driver, and should be backported to all the affected kernels. [Fix] Backport the upstream amd-pstate fixes: https://lore.kernel.org/linux-pm/20221117073541.3350600-1-Perry.Yuan@amd.com/T/#m4616d857ca472937d1e1d31131ddc3261fa17b2a [Regression potential] Clean cherry-picks of upstream fixes, impact a single driver (amd-pstate) and the new mode (passive) is disabled by default/opt-in. Cherry-picked three additional documentation patches to make the entire set apply cleanly. Jan Engelhardt (1): Documentation: amd-pstate: grammar and sentence structure updates Jinzhou Su (1): Documentation: amd-pstate: add tracer tool introduction Meng Li (1): Documentation: amd-pstate: Add unit test introduction Perry Yuan (4): cpufreq: amd-pstate: change amd-pstate driver to be built-in type cpufreq: amd-pstate: add amd-pstate driver parameter for mode selection Documentation: amd-pstate: add driver working mode introduction Documentation: add amd-pstate kernel command line options Wyes Karny (1): cpufreq: amd-pstate: cpufreq: amd-pstate: reset MSR_AMD_PERF_CTL register at init .../admin-guide/kernel-parameters.txt | 11 + Documentation/admin-guide/pm/amd-pstate.rst | 249 ++++++++++++------ drivers/cpufreq/Kconfig.x86 | 2 +- drivers/cpufreq/amd-pstate.c | 49 ++-- 4 files changed, 219 insertions(+), 92 deletions(-) Acked-by: Tim Gardner Acked-by: Cory Todd