Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7784921rwd; Tue, 20 Jun 2023 06:17:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7wq7EaEvYG35mlhGfzT6df21x5Z7ZlbC8LbNf6oLcjm8/ycH3LYOZWXYniBoSrMDDOJma5 X-Received: by 2002:a05:6808:ec3:b0:39e:b58c:13d5 with SMTP id q3-20020a0568080ec300b0039eb58c13d5mr11251123oiv.17.1687267028090; Tue, 20 Jun 2023 06:17:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687267028; cv=pass; d=google.com; s=arc-20160816; b=iq12BLWiwPZti3IHQ8aTdc38rcsd4RnwJsYINWcDeRtAQ6JHQaXyua3psftdhAvlaB kS/DeF6Tt3ul5gfP7oax3GmJkrOv3EwmWg9GfEExicVRk/1ucYrFDe6x4KAm0GqNREt5 yhVN754dCRl0RxloRU0YvgMIuGRW4mHNvpp1wHtgluiT3doYEekSJhFpwXcicS2ucxZX iC2z5c5rmFIksAL9Q5725HCYCeeH6/WMDFfdkI4PmSAZ3xn3No1z+X4uOVu/qzrcR7LA uqGwk2v8Pg/C5MtdNWOzr9K3lyfGDxNZ4rJdexDvPA4afyeAANJEojUqI/UsSDPRnwuQ XBIg== 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=wDD77sYFstjSeWmeoYQeR+dbN1Lac4TLwrm+tf+GwG4=; b=0YidAzOK1K4UPU9YNBY6ujSS+P85wHbyglb1gEq3JDf/awlcBq6c7GzpeUrojSIRgj LjiGNoNFrcDjROtyogL/+sOk75ZV1P9Ktbmoy7dz83qQhhKBTbivBtfhscMWcK2S4iJY RjLDCZxkg41VMLLos6d6TXdtShZDAIeFvPsQ9yCVhIo/5hPE5J13t8ft/ccjRx+9nsXp xJ4uGvf9+euFlBJ3VT5sZtxRwdfxu4QRSgAu6om3D1RAcGLgW9bdFIwgNRLwAhZ+Qkum Jsj+1z/lp7CpeS2skrHeu6wXlDKCaTD+Vwt3DbtfoINyTy38J6oaozYQYb+c0n7Dbjro t3Kw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=23RyYb6D; 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 e14-20020a17090ab38e00b0025690b76c95si1870572pjr.10.2023.06.20.06.16.49; Tue, 20 Jun 2023 06:17:08 -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=23RyYb6D; 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 S231266AbjFTMtq (ORCPT + 99 others); Tue, 20 Jun 2023 08:49:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230253AbjFTMtn (ORCPT ); Tue, 20 Jun 2023 08:49:43 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2088.outbound.protection.outlook.com [40.107.94.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AB7E10F1; Tue, 20 Jun 2023 05:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T+pmNaE46MW9AR602AWwFOo7ovLtgtTA6lg75GeM9TCqWz/aR8rSf3B50J9Ybr+TCLK1qRxPpLrGzTZCGqhZbANw/sQaGcYmOwsfLiVRZHlCyfA9LToUyIAzWIqmQHFW+u7mlDt3kdMPCvwAKktOUdhl9O28482so2zvmYOh0Ln0Whb1ywpX2UXthccMRpf/X7l1/fMyLVVFREHiuVXdR7wJgs00XO1gU+2WSqVrXY++oDM3mUcjjEZHm52QyC63janBxzpnxo0eXcC/8vV0PX4yFkFjAaQgT4YVIBvgUX4QRidpQer1ouM4EplhmPpPI4ZVLYtBb9e8AeN8GYqR4w== 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=wDD77sYFstjSeWmeoYQeR+dbN1Lac4TLwrm+tf+GwG4=; b=X9zyjnFEamEy+167GU2eWV207XOQH4uUtw0AgneTZ1BvaCXFMF2g4VlWevwKs4wTlJ+MPeXzoUq7Rqxe7vJe/hlDSi3grg390/0pdaNrMRXasIRhxeAg0ThJn5BHSdy1+lsP7v1FjJE+VSCwYPJphGd+RWdK7g5hX8lPtfnkxhYV+w8VL9NcjkAmNZOWPe+Errj+NgLBUxxQG/zTrK4p/7q2IrMXZn3lB/ImJdUFD3DsFss4TaeiBr5e3Q42FRm057Qj4siqYpHRj9x3Rexn2ZyImrGeUOYGS3vFaRObeIF/UVqOW016pQuK+6aYidyiNwCkcJ1JRmIyJicZqZHLug== 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=wDD77sYFstjSeWmeoYQeR+dbN1Lac4TLwrm+tf+GwG4=; b=23RyYb6DwrJjfuEAYNkmu4RcVjAtSVxlPJol5aA89XI5EppJ0yNE53xeJtDNl2Fyb5v3sK2B9XrEvTGEy6u2GfjUDE0mKJn88Fj4oKR4FnYE3S27qCcFGUVaYuRps9MVnmtoRaE7wkb9EF23IboBnmFgSFsPOhkrMhDHUC6rtg0= 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 CH2PR12MB4956.namprd12.prod.outlook.com (2603:10b6:610:69::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.21; Tue, 20 Jun 2023 12:49:39 +0000 Received: from DM5PR12MB2504.namprd12.prod.outlook.com ([fe80::8a7:d4dc:7ac8:9017]) by DM5PR12MB2504.namprd12.prod.outlook.com ([fe80::8a7:d4dc:7ac8:9017%5]) with mapi id 15.20.6500.036; Tue, 20 Jun 2023 12:49:39 +0000 Date: Tue, 20 Jun 2023 20:49:16 +0800 From: Huang Rui To: "Karny, Wyes" Cc: "trenn@suse.com" , "shuah@kernel.org" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "rafael@kernel.org" , "Shenoy, Gautham Ranjal" , "Limonciello, Mario" , "Yuan, Perry" Subject: Re: [PATCH v3 1/5] cpupower: Recognise amd-pstate active mode driver Message-ID: References: <20230619190503.4061-1-wyes.karny@amd.com> <20230619190503.4061-2-wyes.karny@amd.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230619190503.4061-2-wyes.karny@amd.com> X-ClientProxiedBy: SGXP274CA0018.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::30) To DM5PR12MB2504.namprd12.prod.outlook.com (2603:10b6:4:b5::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR12MB2504:EE_|CH2PR12MB4956:EE_ X-MS-Office365-Filtering-Correlation-Id: 070427f3-4356-4aec-16b9-08db718ccf4c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /UvwQTSZfFp+cHa4W3BDzCogAHuIAmdjsrc3lah3Efq+6WZv9B3OC6y2TfLUpDpAMZ/7/65XqMIxlEUoiLFqHGqdscozIp0d44XuExLIQHFRdXUX0xVYQWRSNw0ngG5Fc8gIQIOB9fFzIPimNRQJu1C8A+1c4IS6oN1W3PPDF+tP61AL9hHcGPPPgWypYbdlFw2qWre2DZhzzIF8Cn+In4Di0cgk9s02LFJrS0ZcnyOLze0OWCabvR9OOCimRveO3PgMapa7W8SIlnn9OHK6yNscanO2+RdEgubrreNODK6oX7tKFYDns+8EngORUy+gi6pe1BZUWhlv+HU1RaxyodE/GRLhyfFi+NZInpKPZmIqUrbnKCpjR9p3OEZTdqVr5qZkt2pZeDdQOvVUgJqXKama4yit9hmV17OSCOlEFCdp/xmHrZy/fhtOdFYRwFYxyTd3JV4k2XgDxshKb7S5tn6nnevVj8tLl8353gPk9AAB+uy9fgfs3ibL9GjtsGtpGQjNwNHRg61E3Zy5TaS748ht3CTW4lOHafM1geC71DmmawNudPO77lLol9orPGBK 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:(13230028)(4636009)(39860400002)(366004)(396003)(346002)(136003)(376002)(451199021)(38100700002)(36756003)(86362001)(66946007)(66556008)(66476007)(4326008)(6636002)(316002)(26005)(186003)(41300700001)(54906003)(37006003)(5660300002)(6486002)(6666004)(8936002)(6506007)(6512007)(2616005)(6862004)(4744005)(2906002)(8676002)(478600001)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?37f65gbKSfOQL3uHFC3MNgMCLrqIQeeBKFoA8MgF/nKMiERcMW+uRy+YJvFi?= =?us-ascii?Q?t9UgAhB3LNyK52WnRkf1HfHeVZfDUW5Z219ja/ltfptUg0C8sKD8B3iIY46V?= =?us-ascii?Q?JjeaPJ7auDjxVHaEhUBq8Y+hrj8FqIoKrnTFJijzKW8dmZdCrBVp8DqUA0SX?= =?us-ascii?Q?XSSgbtwzlxH6ZV621lCgQxRCDwoFTjoXl7YIvOFwewK1KrEEDRa88xyntZwM?= =?us-ascii?Q?BL1qnQdD40w3w5ZmGDM3nA78CrGpEW2dBDilabjvni+4UZVd9PrjJ9B0rchC?= =?us-ascii?Q?GhL/CPPeWfmlSzEI2DG0TwkbXeoCT8UQQ3saxlAoaKkxVWNMpt9eoUj+hGVq?= =?us-ascii?Q?issSGArRKoF7fxS111+N3H/RoKN4XcWgF6PWIdyMwYCVVYcfWpeudw21D2ZU?= =?us-ascii?Q?qox0nkB8ykQO6thsHA3UVGXx8pfWZ3y4SOYZos9LftRGhdxippoXxAx4Pj+7?= =?us-ascii?Q?17nl/0Oo9TClrEaRlgv5ek8wuTVKjhN6yq7R4OajT+RzGUdasRCluShmXneu?= =?us-ascii?Q?LIo+pE/7zdX1gHfaIALJTCF15viIQ0Iz/jVl031+77Un8KZBbz79r0hHi7n5?= =?us-ascii?Q?lSpaiGWiD70ejieOPHTIpqOX3Iu10X+ERcVngVHKpwqxerInI/xLrIB7aIwT?= =?us-ascii?Q?kTuBJvaqUZIE/AmjRNokLwIGc3xjEWvoowgbM3MiZyRZNu8y8K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ovoBwBPXStjazfTGL0Ar0?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 070427f3-4356-4aec-16b9-08db718ccf4c X-MS-Exchange-CrossTenant-AuthSource: DM5PR12MB2504.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2023 12:49:39.1437 (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: fVtCvM1cz4z3sBJDBaIQHTsyFspQVJrw+22F0WfvK1d8FX7udaiEZZZHOxk4Y2QkBdZcRETDBx0YE8P/d4fRgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4956 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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, Jun 20, 2023 at 03:04:59AM +0800, Karny, Wyes wrote: > amd-pstate active mode driver name is "amd-pstate-epp". Use common > prefix for string matching condition to recognise amd-pstate active mode > driver. > > Reviewed-by: Gautham R. Shenoy > Signed-off-by: Wyes Karny Acked-by: Huang Rui > --- > tools/power/cpupower/utils/helpers/misc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/power/cpupower/utils/helpers/misc.c b/tools/power/cpupower/utils/helpers/misc.c > index 9547b29254a7..0c56fc77f93b 100644 > --- a/tools/power/cpupower/utils/helpers/misc.c > +++ b/tools/power/cpupower/utils/helpers/misc.c > @@ -95,7 +95,7 @@ bool cpupower_amd_pstate_enabled(void) > if (!driver) > return ret; > > - if (!strcmp(driver, "amd-pstate")) > + if (!strncmp(driver, "amd", 3)) > ret = true; > > cpufreq_put_driver(driver); > -- > 2.34.1 >