Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1580068rwb; Wed, 16 Nov 2022 21:28:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf6OMRzD5HE66mE4ikS9ke4e/K3oqofN98ffMLtEzD8t6fweQAiAMjV7mnEtpRzY7v4lsdrz X-Received: by 2002:a17:906:54cf:b0:7ae:43f5:a2a3 with SMTP id c15-20020a17090654cf00b007ae43f5a2a3mr792290ejp.595.1668662910297; Wed, 16 Nov 2022 21:28:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668662910; cv=pass; d=google.com; s=arc-20160816; b=IJBdPwzFtvgYntLeaV5KxdhQZmG9Z4YAhDUozkd7SFGOK+HaX61zgDBARU1to2Tjz3 Icw2nQCc0mYMc20wfXr9jM17stWsBQMkvWSFI23KmMr1dXfOmnP+awi3dUtlEtG38TNS H+SImtYXCBaPR4pGks3nMt7vSNiRrb9HNwmAywGYnPGBzlsYGhE43GE7gR9vdR/SCkeG tBFQCghTSkz1MKOetcN6zwS95fA6WnZk9AOuLg66eHKlcSIzh/lScT+x3xCuGHFr8wFS 6CPEGVFF8QtuRdPyC4CWLb85b102+f4QyrrfSepX4QMhX5qaWghnuohwKS4iwgRc0ZUg QrMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=hIl1o7KNtuyIJGXNp6SMhCHksRTQshDUo4cnRUJDhZY=; b=BwpY5mpq79IDfdKcB4H2BWWCHkuyM2stxLxyAD9FmDJrshJ7zfBjr6ruc9OWCv3/uz Hgkaw2dAk9A2feWFQ8MU483W6lHPChTmD6+luIiRP4Tm+cUzhlRYzCJIoEtFNSUjom3y qOJJZ4twUsxWEcEWO1h6ONL83WWbpc9doKUHR9G3SnlO2NCvzeRKJVkoXbxaOcYCnmyp Lz8fTpaLI58vW/THd/hFb77GgaL+Ae8bqRidFMOpR/Sjqhy+j3PMLr32n2M9iZxkeyzy PzEoLV8wJCX826RGxq6weWZQAHieXSChqqv/1kyUz9RCf+vXK0Y9XVlIc7/T/I8WfXGF 4dgQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=rWb74K00; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x18-20020a05640226d200b004623028c586si127213edd.141.2022.11.16.21.28.08; Wed, 16 Nov 2022 21:28:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=rWb74K00; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234421AbiKQFIt (ORCPT + 90 others); Thu, 17 Nov 2022 00:08:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbiKQFIq (ORCPT ); Thu, 17 Nov 2022 00:08:46 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B083A391DB; Wed, 16 Nov 2022 21:08:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eFNyUM24POjfD1w/ghVEgwBR5qbKHtr4P+i9jDXiV1VbwOEfW+rVFcgWKk05TDlgxosTnD7y+XJsalhk1FlwwjkHNW8G5ll2ass56LApb8dWvXko+IDREOeu0M7R0lemPRMZMxWqJUiwjE9jCfw/tEqhEnxb2zv8Crc6PXQHKpORJ92L2JSpfqxe+ZMWpgSD9oiyfYra6nLLNGqT6TppKsFDP1Wmpfsjnl3XLv0cbDBYYuoiNCQuTGzqVBl4qDNXhOjTSecSBQCGrkfkl8aVOkqoNN+/+I6uoPWf7laa53sXVJ3MZ83byrhYoryFWGrPzpSRf+sVLoV7a/9yov9h6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hIl1o7KNtuyIJGXNp6SMhCHksRTQshDUo4cnRUJDhZY=; b=Hb/8+j4rtychnWf9M7cLL/SEg6Jv/5T0wV22Icf3evRsCR0YMKqFXQzWW7fu9Ls3Vc4rjXSNhMFRPRMVJPF0BKbWgC6HwoUVNCl36TLMgyD9J8yO3HRRiFMWq0mS9lS+YMZRfR0uHFe6mEZjvzvLQde8g9u0jCoPllu5eSZ7E8I//vllpxdypbSmp8l5Asu1a9mzuYH4GJZermf7khLKfT8YJ7aX7CqhVkbt3edOP9Ne+c/6OgbpOrncK8VStfWxq4+cJLjf1SkBPVHrhXCczbjNl97lr5fglnliEf2aQnzp09sXZ5LXtIe1xjZaHm6KGnqary+qx2kaY+ZFFhTw0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hIl1o7KNtuyIJGXNp6SMhCHksRTQshDUo4cnRUJDhZY=; b=rWb74K009/ydRhFtQRSrJ+xstnrGHLNEugZeI30ZpqK54s1RHMYvwt6j1RpHD0e9PSrRb8x96RRrOonNXyl72WyFSMdY5bHtNWdWrRVby2YTwtJVt2J8JDlNZZMP7Id1XjqHf3HDZlHukwkskKknUfHJ8FeEw5dSX/igbJm0Vp8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BY5PR12MB3876.namprd12.prod.outlook.com (2603:10b6:a03:1a7::26) by DS0PR12MB6390.namprd12.prod.outlook.com (2603:10b6:8:ce::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.17; Thu, 17 Nov 2022 05:08:43 +0000 Received: from BY5PR12MB3876.namprd12.prod.outlook.com ([fe80::b6f2:3174:a1c2:44b5]) by BY5PR12MB3876.namprd12.prod.outlook.com ([fe80::b6f2:3174:a1c2:44b5%7]) with mapi id 15.20.5813.013; Thu, 17 Nov 2022 05:08:43 +0000 Message-ID: <2b004975-76d7-0db9-1ded-649c2da5a729@amd.com> Date: Thu, 17 Nov 2022 10:38:31 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 5/5] Documentation: add amd-pstate kernel command line options Content-Language: en-US To: Perry Yuan , rafael.j.wysocki@intel.com, ray.huang@amd.com, viresh.kumar@linaro.org, Mario.Limonciello@amd.com Cc: Nathan.Fontenot@amd.com, Alexander.Deucher@amd.com, Deepak.Sharma@amd.com, Shimmer.Huang@amd.com, Li.Meng@amd.com, Xiaojian.Du@amd.com, gautham.shenoy@amd.com, ananth.narayan@amd.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221117024955.3319484-1-Perry.Yuan@amd.com> <20221117024955.3319484-6-Perry.Yuan@amd.com> From: Wyes Karny In-Reply-To: <20221117024955.3319484-6-Perry.Yuan@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PN3PR01CA0133.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:bf::15) To BY5PR12MB3876.namprd12.prod.outlook.com (2603:10b6:a03:1a7::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB3876:EE_|DS0PR12MB6390:EE_ X-MS-Office365-Filtering-Correlation-Id: 490965f4-e07b-4b92-4289-08dac859cc45 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ps4IRCwXQnInmsJhqMxZR8MPgsDtd5eS7DA7nNEuxrItetR+o0bDIvgkWPkbWdBcMTrHrf1Ga4QCL9pn7jGoId2RcIaAytXncT0D+uyFCXCxJEKLVtsAI6FNWuzyj7o5h8/PNVt4uoDXOp2yLIRB9xBHIsRc3xrXHMhxsPu3AcGZD+QXAu44Gk3nDzspGE+dQOoXUmNgQ51s2b9dsNJX2+3vwYMlKA0uXlzIJcDSbd+G/1H8NnZAxojq0H0LGILZkV/2jnA+tNBoc6s4QTcYNAgIK/ZhEcqYf/dF4keMv5p60fFBGUUu0PuW0vNuocEf/mxmsf50tpZGw76v9/jK7oKRl+TCOlW1ds63wWl78Pjqk2rhV0sgBJQMKKx6/j5K+UWMWuakQPQ4r+zgGK1qUqgXIKRJZ6nNoYQkkKHoDMHnKcq6Io9Jw07jcexlONCI3DKguwtTjxK8yIYmFgrMqS6paDkfbzkUcVdACgjitRxtuhKiTRZ0biOCUV2wbD/w6COmwIgH4ONhKCblmtpmDOmCeacQ1uk4BnFnWVp6+4IyD3vS2xAtSFhDAyQPgapKsxB4SIwg0IB0UQgj1EyuFqaqkSzvc6JcF5Gncg1CKNhxKCU4TxZiUHW/dz26d+jHaw/dVoYshZokHXVJ1n+N5d+fWWLsK6d/V+Qy2r2jxQBwejVm3tdVQJzBlOVJHG8+GSvWfPh3SMrCl3rAbDRS7IByBMrzeFkhgpe1331E3Ss= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB3876.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(39860400002)(396003)(346002)(376002)(366004)(451199015)(316002)(6636002)(41300700001)(36756003)(4326008)(8676002)(66476007)(66556008)(66946007)(5660300002)(31696002)(2616005)(186003)(38100700002)(83380400001)(8936002)(44832011)(86362001)(26005)(2906002)(53546011)(6666004)(478600001)(6486002)(6506007)(6512007)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TnBoNTFvZ1hSck5sZjg0ZlZEeExHRUs4L2dtUE5ZcjVLM1kyNTZ6cjAxU2ox?= =?utf-8?B?WTdRNUVzRWNmWDVsci9DN0h5TWtQakhYcjV4dnhlVVdlVlZ1bWk5TGFSUE8v?= =?utf-8?B?TSszODBHNy93TlZtcW9DWG0vMkJWRlVEQ0t1NDIrSmJlcVBJUU5JU1NpNXE1?= =?utf-8?B?bTRPcnpKWkRIYTJ5VzFZdFZBRURUL3hWN0p4alZYZEl3M3FCWFNwdW5tbWl6?= =?utf-8?B?d0dPeExGNzZuUk41VzJoY2xPNnpDWDY4ZUlqc0NLMnArU1JlMFNXQXhjVm5C?= =?utf-8?B?UzBMQ2E1SE5MRjVvSm1kVzQ3U3NacW4zWGRWWWI4bklQMWZ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ahDGSPe4S?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 490965f4-e07b-4b92-4289-08dac859cc45 X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB3876.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2022 05:08:43.4206 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LMjNdqvRRSwJlZP9lY7lZJM+5Ixf6MgB2nxRBgXZhHMc1eeUhtRYDign0uoII7D5L4B4SSAZuPoOAdUuhnPfjA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB6390 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/17/2022 8:19 AM, Perry Yuan wrote: > 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. > > Signed-off-by: Perry Yuan Tested-by: Wyes Karny > --- > 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 a465d5242774..42af9ca0127e 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -6959,3 +6959,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.) -- Thanks & Regards, Wyes