Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp3278220rwj; Mon, 19 Dec 2022 16:01:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf7akTJJlHh3QI4qrd5os5bQV2seC7lE6DxUouaYJnB6qjNpQe8XqAmMzaMzE1eRswvCQwiK X-Received: by 2002:a05:6a00:a11:b0:578:866b:479a with SMTP id p17-20020a056a000a1100b00578866b479amr39426849pfh.1.1671494509968; Mon, 19 Dec 2022 16:01:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671494509; cv=pass; d=google.com; s=arc-20160816; b=EUejN0d48oCAQQYgObSyTaYc3nlOB8QEQpK3ONUJVE02KeC3MVBhRfevqL0GMF5uDQ TJbuFsTt5QFVhjUkkKszUT43cEiSO5bqMoP/c3IW9cYchFenN/ckxd+6Y1sl6vgOpmqh dzykOvUT96s1ktcJSp7Dep3K26/ez8lbcoBO00lGmlTW66NP6XhKoFkmYAwIMjnSEB0O ClZW8lAjiQFf3mHxljGM0+kMpnOpWH/k8gHNT57LYBw6TBw3Zg9dTAoEqSlUWUqd4VSh kaTsnsGbJayS5zgT9+m+IabwShr73VBECx9/KG8lznQBZAbuzmIRS7eOH0OvM/ys8kpz 9vaw== 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=VrtuFslP6BZK8CJq5DpubQSol6IckcCVlbfqqOWwkTc=; b=h1fbW2ni5qcfKyerLaMMs2nYzyGz9Fm25J7Vbw9to3OXD8+ulU84A0p5D0zVQC4mC6 KjarzulmIyq2XaZoGnInB+glsRTipOxnMq6PA76DcznsioNdBkmDAtc6GIuTNe55G3Al KKbr11qpRn6vYLjnr/k0oVc12Fg/dKMuWaX+MFHsAU9AqiRDNYJf/k6DjtIPeUikL8+0 Z8kHTFmC98Lb+wXCMZDag8OOwtmIk2yzNnbna6Wxy+kyt+grPGoKbOFicJY+g9aW7EVq dVA6pZBRwBLMvrO2HVAEbR2jIUb/Pzy5A9JnWsJNsZUKM/5si+EMYAm1a+8Hp10tsRcp lmmg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="LA2bkmB/"; 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 u22-20020a056a00159600b00576dc406db3si12949462pfk.172.2022.12.19.16.01.39; Mon, 19 Dec 2022 16:01:49 -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="LA2bkmB/"; 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 S232760AbiLSX3m (ORCPT + 71 others); Mon, 19 Dec 2022 18:29:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232589AbiLSX3k (ORCPT ); Mon, 19 Dec 2022 18:29:40 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2062.outbound.protection.outlook.com [40.107.93.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E943264E9; Mon, 19 Dec 2022 15:29:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZPqP+46mG1heo8Cxr6NLxpN6Ps62CSPM1tnSUrqhrIaCcQlD7o8PvEFyU+wgaJXT1ejLwtHMzOzGXKw32cIu2wvjdEfvdqLhE6wKZH0IOcTQ3BUweIhKJTX17168KLwT+HqNcAARWZnsjbi90BdJdelko2NvPnyx2T9Uzzba1mEyTOxK5Hetkk2zmYburprWi2CesUL14XmEA6RRVbfjYWPCXcrvixubyLfQADqZl6sf769mMEGI02DR9HsoQG6uhFx80XM+hHoFIPUAqiOcVFqjIPCiBWckAJGPm+EfypBupn2WQKzCUTSEOuiUgWPXMLPxOJOdG1u/LPPtFbrBwQ== 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=VrtuFslP6BZK8CJq5DpubQSol6IckcCVlbfqqOWwkTc=; b=dzIwl1dcc0sLU6E1SDgHD9Y3peRRydoZ8s9P4cd4Jg0uWXzPwjooFXMTSHbQ/bKx5IXASF5H9EHZEFbxei+J8wGE3hgmaYIdZN9kuyXNBq6uV8xnmOoERRmPyFx4xO/XBgou9N/1cI+7OAu/GCyIowx+8TWRdLZncLHDzjlNyZsNfp+y9PKJJKb75CSvM6QEbnnBp3YDgst2bwBejHgIL38hDwQnQ+tAhNIrjMOavnx6cMo5CPTzoEZnZFBKP+g7Ns67Jpze0kUiIAw78anlRkJPyK3Wm3rdOhKxB33QbPIqpECjhaeGs7a2aUHrwNdipVNqmiOxvOiB/Jz44NNtQw== 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=VrtuFslP6BZK8CJq5DpubQSol6IckcCVlbfqqOWwkTc=; b=LA2bkmB/N00a/3kKAy0BwfNlP/oWlLb4JFmR7siKDt80tEMoYCKVNAkq/1w5gcnRZ5Nb4YPU9tpSwUH58drrVsqC1zHRPCMWk4l+sLp0dwlt3s8mdjGdIP5V9ky7lc9UToLt63YdZXA8SQka7erTGwU9rl1TS8YrN61TKrFXiDc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) by IA0PR12MB7553.namprd12.prod.outlook.com (2603:10b6:208:43f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Mon, 19 Dec 2022 23:29:37 +0000 Received: from MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::ff3c:2d37:75f3:442a]) by MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::ff3c:2d37:75f3:442a%4]) with mapi id 15.20.5924.016; Mon, 19 Dec 2022 23:29:37 +0000 Message-ID: <01480f4e-9ca6-50bd-6a95-b2e61834d2e4@amd.com> Date: Mon, 19 Dec 2022 17:29:34 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v8 11/13] Documentation: introduce amd pstate active mode kernel command line options Content-Language: en-US To: Perry Yuan , rafael.j.wysocki@intel.com, ray.huang@amd.com, viresh.kumar@linaro.org Cc: Deepak.Sharma@amd.com, Nathan.Fontenot@amd.com, Alexander.Deucher@amd.com, Shimmer.Huang@amd.com, Xiaojian.Du@amd.com, Li.Meng@amd.com, wyes.karny@amd.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221219064042.661122-1-perry.yuan@amd.com> <20221219064042.661122-12-perry.yuan@amd.com> From: "Limonciello, Mario" In-Reply-To: <20221219064042.661122-12-perry.yuan@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH0PR03CA0021.namprd03.prod.outlook.com (2603:10b6:610:b0::26) To MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN0PR12MB6101:EE_|IA0PR12MB7553:EE_ X-MS-Office365-Filtering-Correlation-Id: 1bb0ef80-d3f9-4e4d-dd95-08dae218e4b3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gH8p/PuzPeuQo2fb/XkvdUFHMnw+Z0UOwKzyjQDQxOCJQJG+tJ4zGhamAqfuWS41EynEkOWEzWLg/miZgzvVPe67P+IwBu5tr8A9DyGCHHuYDclRinv+0AbyuCBjVGvCb5FVJS0yJGxNNXpEk0jhJUB8I/LN4YaDRBXUoXgIIeamdgL+/1sjK7tbzCK2Buq632+r7LjYcxciF0VDdVuFz0pmH9t/8KKOLK6SnRLzrShbG/l8WAuiTuqdR62+ynQlKS0Yld0DPop6pPgJNgMkcdB9mPIGDpYWAp+2MkCjlIlTev4kbYkSozY2pnpV+insevTET1yTuXijmC0Azuuk5ceOEST95tRF9PEDc+uLvp8D+iKWvYQh33hkPYMx9A0l5Mz2LwhIfn9dSeoB/p70LhlfuiELw5/n26MJjKb/2d37YDfL0NJjp1LPcEhxxhqYFO+HgsB/XklLHG4BDwn/cWw0KQTzg9HSUiukfU0RbI42kV6WOoBGevlAHMupuI7xOXGen5vDC4LOjElcjyu3XZAZ3+u0v6faKwa+WuZ9u+dHFQWD3AInAZFZaAvzb1wZnCIlP1NeZJmsCuo1r4ikb9BnN2k+og+R6tGtcIfMsBVdGpQuDT1t5swUMNB4jmpVBqfmVs0WU4Brg+zFdeE82EnTYBZHHc5c8/gTmBjynPO7AzUBnW3N8B+zZHEV6MLMwRxt+0JYBd1+df2EvJre9MSx/HFXQCgLv/8e+tn7suk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR12MB6101.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(366004)(376002)(39860400002)(136003)(346002)(451199015)(8936002)(6666004)(31686004)(5660300002)(83380400001)(186003)(6512007)(41300700001)(26005)(2906002)(316002)(478600001)(6486002)(6506007)(53546011)(36756003)(66946007)(86362001)(66556008)(66476007)(31696002)(2616005)(38100700002)(4326008)(8676002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?R3lKNVIzVGRzWEhiajN6Ynh4Y2U4U2x3YS8ybWFaYjRWMGZDWTZBMUFqT3BD?= =?utf-8?B?UDZNSDRPU25XbGZOK0V1eDFVdkVvbXRDNkV0Ujdic1RYYm1EaUdReW9lSXB3?= =?utf-8?B?THprQlAzYThudCtQbG5aMVMxNGZrdTBOREpkOEdpZi82RjRpWUlxNjFHMXA3?= =?utf-8?B?d041VVBnSG5Gc1p4VndLS1pORWoyRmw5RFFCVlhHZHVaaDFscXhqQ2NBT0t5?= =?utf-8?B?Z0o2dU5wRTdXMDBrUDQ1dVI0VmtrWTlMSEhVOWNlUkVxUUpRb0ZQUjBpdysr?= =?utf-8?B?clNiSTY3ZTJqbG91RytHTFZVQllTazZZMGhoL2lCMVhiQzh3WTJmSjgrVXJK?= =?utf-8?B?RzFsSFg2dzJSczRiVnlzUlVCYzdvbzF0VmgzTXFYbXZ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-Network-Message-Id: 1bb0ef80-d3f9-4e4d-dd95-08dae218e4b3 X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB6101.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2022 23:29:37.1213 (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: WNQAEB89c5GfpUb5jw+ScRXigxu+QGCTa4bNzevvnaSf6WH5gLE2IAX0PRbekUkFejP7HS0sOHAI+eckg7Nwjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7553 X-Spam-Status: No, score=-3.3 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 12/19/2022 00:40, Perry Yuan wrote: > AMD Pstate driver support another firmware based autonomous mode > with "amd_pstate=active" added to the kernel command line. > In autonomous mode SMU firmware decides frequencies at 1 ms timescale This might be the case right now, but I don't know that it will always be this timescale. Suggest to drop drop "at 1ms timescale". > based on workload utilization, usage in other IPs, infrastructure > limits such as power, thermals and so on. > > Signed-off-by: Perry Yuan With nit fixed: Reviewed-by: Mario Limonciello > --- > Documentation/admin-guide/kernel-parameters.txt | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index 42af9ca0127e..73a02816f6f8 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -6970,3 +6970,10 @@ > management firmware translates the requests into actual > hardware states (core frequency, data fabric and memory > clocks etc.) > + active > + Use amd_pstate_epp driver instance as the scaling driver, > + driver provides a hint to the hardware if software wants > + to bias toward performance (0x0) or energy efficiency (0xff) > + to the CPPC firmware. then CPPC power algorithm will > + calculate the runtime workload and adjust the realtime cores > + frequency.