From patchwork Mon Nov 28 16:38:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Pisati X-Patchwork-Id: 1709872 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=mih6kKCI; 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 4NLWQC2Fvgz23mg for ; Tue, 29 Nov 2022 03:39:15 +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 1ozh9v-0004og-Mu; Mon, 28 Nov 2022 16:39:07 +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 1ozh9m-0004cr-RN for kernel-team@lists.ubuntu.com; Mon, 28 Nov 2022 16:38:58 +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 2E9F83F04C for ; Mon, 28 Nov 2022 16:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1669653538; bh=URfXV4tMxMekIP5Pw57J9q0pVrqkkgYQ+tqRAM8eGsE=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mih6kKCIx9ylMxed8Ydml18J9Bsp4+mBGBlBM8vv4Dx3PvI5aagE4HBivB0YS/fre 0L8afw/S80lYt7kpXlkk/Z8nLPB2QKYRpCI0FFLt0utcV4dKgtGLUfGxhv5mJ0IsHu hWf8NQOpeMVzZGpUJuhxSPNvhJFUfPYlEN1RVaulVpZpE198rCnOYZJRCX5pun0rzQ JcSDiH+2VP2/kZk9t3U7SLli7j1LX8OjieKSVgLzlkqUM5+ypJMoAyLmhCd+Tq8dVs fgmPp5J7wYYrMARVn8krdbLfzLxLtFuwAYbZJx7bLqM+S3i2t5fqbTHnKfgOdNXike 39IwXbbyji36Q== Received: by mail-wm1-f69.google.com with SMTP id 83-20020a1c0256000000b003d05a7cfe00so1885372wmc.6 for ; Mon, 28 Nov 2022 08:38:58 -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:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=URfXV4tMxMekIP5Pw57J9q0pVrqkkgYQ+tqRAM8eGsE=; b=Ku8Vhn1krF+cShg6yxDRNwXUg+p6ey0Me/TELnEdpmBe+VvsDP1pCMuDuQrNEexffb ZbVQ1hLZsdbgyfirjy7afJhm9oChieRHgYHawrZWsgdUId8I2NZkU9s/aOYoaFpDyIDW TqFoS7r1j+HAQY8Ofg71zjLEDAO6nTlXZs9LsP6gdkRJOD5pShnTBAebrqkmzHqcLKEY 19CiRqrF71+qtRGitow1J3eYVoTicxAaNE2ttWPb7wgpldv4HvkPmo/VOy6AXYP5yqhP l6F42Koph0mszYSaGVzrI6wiu1fYCICluDm7MXqer5ePjqrVbEcwvrt+XbNQ5/Y+UuBg 0kFw== X-Gm-Message-State: ANoB5pkudISjLWB7twm3IweFUFZ7HX5LUoRXNCypgIjV6a1Yp1BYWxdL JAny0JYZolxReAnp22ruFXotJ4jXYkygYrrZQ/Al7dYJrLP5kdu7tDshcGLr4IRj1mAsPB/QiaQ MZAMdFYVgUt874+wpk44qcJ4OtRZp8ESeQgpgDgDm/A== X-Received: by 2002:adf:e6c8:0:b0:242:18c4:694e with SMTP id y8-20020adfe6c8000000b0024218c4694emr3178278wrm.175.1669653537559; Mon, 28 Nov 2022 08:38:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf752b1zTSbrXG/1EB/ArG1YsFKWVrscHo7Avrnt2EHJ1wLk7IqTCOKj7IMAl1t8jTP4Cu331g== X-Received: by 2002:adf:e6c8:0:b0:242:18c4:694e with SMTP id y8-20020adfe6c8000000b0024218c4694emr3178270wrm.175.1669653537310; Mon, 28 Nov 2022 08:38:57 -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 o13-20020a05600c4fcd00b003cfa26c410asm21311587wmq.20.2022.11.28.08.38.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 08:38:57 -0800 (PST) From: Paolo Pisati To: kernel-team@lists.ubuntu.com Subject: [PATCH 6/6] Documentation: add amd-pstate kernel command line options Date: Mon, 28 Nov 2022 17:38:48 +0100 Message-Id: <20221128163848.362359-7-paolo.pisati@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221128163848.362359-1-paolo.pisati@canonical.com> References: <20221128163848.362359-1-paolo.pisati@canonical.com> 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" From: Perry Yuan BugLink: https://bugs.launchpad.net/bugs/1998106 Add a new amd pstate driver command line option to enable driver passive working mode via MSR and shared memory interface to request desired performance within abstract scale and the power management firmware (SMU) convert the perf requests into actual hardware pstates. Also the `disable` parameter can disable the pstate driver loading by adding `amd_pstate=disable` to kernel command line. Acked-by: Huang Rui Reviewed-by: Gautham R. Shenoy Tested-by: Wyes Karny Signed-off-by: Perry Yuan Signed-off-by: Rafael J. Wysocki (cherry picked from commit 1056d314709d0607a22e589c54b1e47e0da57b9d) Signed-off-by: Paolo Pisati --- Documentation/admin-guide/kernel-parameters.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 18417e6e26d2..364f1d6f4be4 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -6878,3 +6878,14 @@ memory, and other data can't be written using xmon commands. off xmon is disabled. + + amd_pstate= [X86] + disable + Do not enable amd_pstate as the default + scaling driver for the supported processors + passive + Use amd_pstate as a scaling driver, driver requests a + desired performance on this abstract scale and the power + management firmware translates the requests into actual + hardware states (core frequency, data fabric and memory + clocks etc.)