Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4221047rwi; Mon, 17 Oct 2022 03:21:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7RR+9wHfgKUDX6Xu1RPghnD5z5J8A8xtDSNF/Ks4roE2f4DGiz1dBK+r9uxD/z9V3cryNE X-Received: by 2002:a17:906:9b86:b0:73d:72cf:72af with SMTP id dd6-20020a1709069b8600b0073d72cf72afmr7937406ejc.440.1666002060359; Mon, 17 Oct 2022 03:21:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666002060; cv=pass; d=google.com; s=arc-20160816; b=WtNuLLRk81Y8TTsrAzmtSGGmis5EGjdESL28hothrqSryFTadCJHCks6e9Hy0RWc0l qK5fHUMMlGIWfSY2zcwPK+Z8CyBwU09FyLFapZkdDjtleMD4KgqW/9DWDNbtXVfkmZrY 0bkwUjod90Nye+9/B06OvFGJpE1e9+rX73m1hoTyIlWqsjAc3Sc5LNqIJv+3Q8p/x7Bn x8uAWgvGxAg6ehfJ3ffMK65oD/c6X7LfJVnwJYTpo5od25zTE3DTle3TgtjBUF1dvQTu 0xcUA5xwSrCE4q1msgTUN6j+kRzySeUgyehuHE8YHqJqFUNv7udpZB9Xb/y+aoObVGD1 lhxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1TqAOmrBTCzTHNY0yZIbZsz/DI+vbEk3Ntjk41/lF0o=; b=sKBJOrIXsDN03aSMR3t/jZWi4Xe3Abu8yoat3/6XlwrLD435OpHM422Ywn5lUyYvjE OyY4GPzprzPN6IWqNb8iwzbrsmLg1jJOTq7zVbUH/TQpkPM7id0qnmE2DS0olkjzBHEL aFa8hzkvhnk4k6hUSPg+yEcCPlKv/o5xZbMjHIJUMsNbibpluBkQvpZf40q5eJjGyLas DLQeKQU230DPvBe3D0i7O/mN68cbfv8ocXCdADjQPvU+KB4ta4rBCqm8Kdh/89dsRlRx EcQD5TDCLMdJetFIrtSBbAb2DJi+cmh2grY/UyEiR/kZYTHax3Occtk9vf7LM+LqfEOn Phqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=QuB+vPK4; 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 v7-20020a50d587000000b00459afcf8354si8645964edi.243.2022.10.17.03.20.34; Mon, 17 Oct 2022 03:21:00 -0700 (PDT) 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=QuB+vPK4; 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 S231384AbiJQJsP (ORCPT + 99 others); Mon, 17 Oct 2022 05:48:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbiJQJsF (ORCPT ); Mon, 17 Oct 2022 05:48:05 -0400 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2075.outbound.protection.outlook.com [40.107.96.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11D2E558D7; Mon, 17 Oct 2022 02:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AhSkOdzmh51tnhbelTtyMFe+xD618IX4cBONkACpgyI2z0FboYYvnEZuqQxpGDBI/giSKt7fR/qzf69tg8sbK2T+resOLoV+sJak9+fHVyOzgWmNTLLy9kXP2xlqoj9N/7nE6vnP0CiEXnDSUYnzT2Ce4TDsb86+jaWo/Ig+mBSo1MVDhqfwSnc5mLMAm+LNNf4JZy8pwCYUC8ItFYNrxow0r1U8oiPolC+/v42AjBHlY+1UXLVo72zpBxbnq0cNxvt2OJBnGol9BA9Y2yyuaQwCl5phl+ncj9nHhBZF5YvoH2dHSLxgGrhCW9/QblIBo24pU/Ec1oTHOrln/1zibA== 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=1TqAOmrBTCzTHNY0yZIbZsz/DI+vbEk3Ntjk41/lF0o=; b=MSSPq+4xbv5eaRJWUHe64uB0i8FVIoKLlLFHLwpui4YWZalY+jBolLMtEJ1MGh1ssDNreYGIw6Hx4ZDVrg/WGTrpv+qr796vwbYGAifcg/CFWpZCoT1TmpRuDKeV5pfLljdL+Xj0y422+zhqFOlAs2bYfb5eQKuocv+Kft35ZCrRwGKlCXPCzj6Oo6HTqY44YWxQrwknt/aLa0lUPPxatUDf4Z5vT27zkPLTwaWu9WITLUeNhIaqFxfQ5uVbD10uAY/fOW4TrGWpcbgqfFOtPh3s48+Y3KVpVOywkjvg0qAs2k8Tly1V2xfY2ZJJqy4uadxHLRIw7lO96qU/GX+BKA== 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=1TqAOmrBTCzTHNY0yZIbZsz/DI+vbEk3Ntjk41/lF0o=; b=QuB+vPK4wPSzNxHQXJOgQaOO6jjiYbPnLLBng9AIP9jSKwJ0l+bqn5M0A4BBGiG2mFHcl0AVnu4h4CC7tFoyJ2AvaLfLXojHktbGlmcYE6PUTCV2KLiewCpNIM90EfwzqNlrZJRcQMKOZgnyFeoDzh5lhtUSxSFgo2jNTSJHlVY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM5PR12MB2504.namprd12.prod.outlook.com (2603:10b6:4:b5::19) by MN0PR12MB5929.namprd12.prod.outlook.com (2603:10b6:208:37c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.26; Mon, 17 Oct 2022 09:47:34 +0000 Received: from DM5PR12MB2504.namprd12.prod.outlook.com ([fe80::739e:43cb:7ff0:9b08]) by DM5PR12MB2504.namprd12.prod.outlook.com ([fe80::739e:43cb:7ff0:9b08%7]) with mapi id 15.20.5723.033; Mon, 17 Oct 2022 09:47:33 +0000 Date: Mon, 17 Oct 2022 17:47:13 +0800 From: Huang Rui To: "Yuan, Perry" Cc: "rafael.j.wysocki@intel.com" , "viresh.kumar@linaro.org" , "Sharma, Deepak" , "Limonciello, Mario" , "Fontenot, Nathan" , "Deucher, Alexander" , "Huang, Shimmer" , "Du, Xiaojian" , "Meng, Li (Jassmine)" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RESEND PATCH V2 2/9] cpufreq: amd_pstate: add module parameter to load amd pstate EPP driver Message-ID: References: <20221010162248.348141-1-Perry.Yuan@amd.com> <20221010162248.348141-3-Perry.Yuan@amd.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221010162248.348141-3-Perry.Yuan@amd.com> X-ClientProxiedBy: TYCPR01CA0178.jpnprd01.prod.outlook.com (2603:1096:400:2b2::19) To DM5PR12MB2504.namprd12.prod.outlook.com (2603:10b6:4:b5::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR12MB2504:EE_|MN0PR12MB5929:EE_ X-MS-Office365-Filtering-Correlation-Id: 8beb4608-be3d-4130-5be8-08dab0249d9f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3WWLJGzzlHX8k0+S0g1fghHmnSKZD5mC6ZkiRLNwsZFYyjvtrsWtUYB4JM6XC4XvUmt18fH4XVJFLX2ubA/T0U2AV1W6+fB0UanrlV/tKB7yiTOkXla++H6RnIWl4AD1XU1sAXZ+pLsuBCroldDJln6/EzGX08E/FFYdMyyT1SepsMHCOEFGI/P1b+rAce0UfH5ZHE0Snb32hHpgSTt301Wyny7TnZmuBMrvLwDUYM2qOmfSHEMumpSnxusNM5FSXTfQeKQZhwYS3pEDsG8EibhSuU8b7jbUBpNK4A5EUo1BnAJG7L29IZxVwWEzSEu7v6l6vjJwSkW9EwkZJHXXygafMifPdhckGYULz+Fn+Ty9uSD7dtMo1tV9oLFeO7BEhpiTTFz7x+S39KtqXKjVTL1Z+vXBEePxesA/Z67z2Sh2w23jzIU1IdxDlEsigycIGR+RKnK70gNGCLPPM307lTISOjfIQiOFr+RxRSwMpsWyV9LnXp0wvzeRsdMHUwTJaE2CyOfY8ask3Rg7i6Y5bPNfucnJ724yCLJmPIyFVPmhIYPIyo/OKVWjEu5DfAchhm+hfF2Qp3pLO3Y4dfKY5QTVMOpZDy/QgQKOzFePn5CjxKGNkT5f1/Ce4qKCO6j7l8MLXluWiPjfcIiP+7h1goDxNruE2/WKpyLlq9Go02IcoV1nuJ+w0BXlqZi2Fn6dpNhcJFRb8LSRnN4V2rX9SA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR12MB2504.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(376002)(39860400002)(396003)(136003)(366004)(346002)(451199015)(6486002)(54906003)(2616005)(186003)(83380400001)(86362001)(38100700002)(37006003)(5660300002)(2906002)(41300700001)(4326008)(6862004)(8936002)(6666004)(8676002)(478600001)(6512007)(6506007)(26005)(316002)(66476007)(66556008)(66946007)(6636002)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?aiz30Xdy2f5oCRbk7Hdpt9bXj8qJtaghsJje48sTYJWHp64hc0R41XIunatO?= =?us-ascii?Q?0U7Cbr/Blw3CIfXzd3cDCON2Va4njLt9sP3c/jtccfXXZ/Xu6nmbsHtuOADW?= =?us-ascii?Q?A4vGqfUhAWi0RYTWfi+ITqhYXKl0zZztj40kGbxVjB2i/DnE9tthax2147hC?= =?us-ascii?Q?QeN2CtPHqJRIHh7TKvWAQPxa0JzoSgrN6NX0ymrEfn0qP+Hw/ZYaHDXspgRm?= =?us-ascii?Q?Oekab0oc1Z6YEXjaN8HIjASRDpzyz72r8l89OvLaB3wxEUQRRaEWOiD+Zy50?= =?us-ascii?Q?Ir08eGNkEgbwTimX2C+U6VoZbG+5L2QcWVi1U2dqdUL1lExDF4ek+e6uR7M6?= =?us-ascii?Q?Vwptm++dgp/OgHhV8YsOSnssYzncsvOMLP6gWL/7rX9Ik60Tsod306fuNZJy?= =?us-ascii?Q?hFczZDVHMwoekAL/Ya20vJywCw5SqfYj8o8JesvQMuy57BNejZXiu482fMSZ?= =?us-ascii?Q?gtMy4hxNFikXn1QN1frSExS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I6zJAwdBYgTE6lp0X/A190srsrDX39X3LQzYE4Pivs+0XsaoOdp6HmAHS9I?= =?us-ascii?Q?bHDMBCK24ultPEFjGLbfC2CraFx6tGf7/IPVxpmX/dVvjlqUMUUGQWENeyTz?= =?us-ascii?Q?jnHlnLv1pKki2lBSuzec7P8mv0Tbk1ksGr+cbWRvSUuoiz1QuONTxsvx4caR?= =?us-ascii?Q?kiJ1Mf0Ny9ty79+hJNj+MqPYeM+HNxwdiZacW5HF?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8beb4608-be3d-4130-5be8-08dab0249d9f X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB2504.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2022 09:47:33.7686 (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: fm0AsyzMLuAXX+BqXtyWZehbJ6qFqEfD/9GKUW/YQbd//iTaxT7x1V6azwbIcNM+5oA9NJdchdLbLt+CavSh8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5929 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Tue, Oct 11, 2022 at 12:22:41AM +0800, Yuan, Perry wrote: > The amd_pstate mode parameter will allow user to select which amd pstate > working mode as booting mode, amd_pstate instance or amd_pstate_epp instance. > > 1) amd_pstate instance is depending on the target operation mode. > 2) amd_pstate_epp instance is depending on the set_policy operation mode.It > is also called active mode that AMD SMU has EPP algorithm to control the > CPU runtime frequency according to the EPP set value and workload. > There is one concern here: how can the user know which kind of processor supports the EPP function in hardware? Thanks, Ray > Signed-off-by: Perry Yuan > --- > drivers/cpufreq/amd-pstate.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c > index f52b8f2fe529..2d28f458589c 100644 > --- a/drivers/cpufreq/amd-pstate.c > +++ b/drivers/cpufreq/amd-pstate.c > @@ -63,6 +63,10 @@ module_param(shared_mem, bool, 0444); > MODULE_PARM_DESC(shared_mem, > "enable amd-pstate on processors with shared memory solution (false = disabled (default), true = enabled)"); > > +static bool epp = false; > +module_param(epp, bool, 0444); > +MODULE_PARM_DESC(epp, "Enable energy performance preference (EPP) control"); > + > static struct cpufreq_driver amd_pstate_driver; > > /** > -- > 2.34.1 >