Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp943724rwb; Thu, 10 Nov 2022 09:11:05 -0800 (PST) X-Google-Smtp-Source: AMsMyM4yKhnzKpdbpQ4gzVho7GLnxCWTswNCA2sptsHUljtiwJ2QHMqRFLJ+6LsgxmyB8oywQ4kF X-Received: by 2002:a17:902:e883:b0:186:72bd:371f with SMTP id w3-20020a170902e88300b0018672bd371fmr1585263plg.131.1668100265182; Thu, 10 Nov 2022 09:11:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668100265; cv=pass; d=google.com; s=arc-20160816; b=ILgHdQj4Rx3GoznSb4BZgjBPYWRI9Lqlx1GTwN1ywMmbtkkmjO6+Twsp1Fh+ug+hCt U67HKrN4ebqtqB+6urPuHLMFe9UQa8hrr+hJIa/fExsuHEyKElCvYECGeBvL3teUDZXJ zneVGgQagDYVK/RyGXbt3i9HUXxhDPOmtPa5Q1PvQS3RLDcGQLglaCUcSNR0xJvI1WQJ aGF7oStjZs47bMVfGK3MJ3WTdT0tzO043HWkjJuuDQOIM0lmmB+Okm/u2+KdmP2hUMPR q7NIrGDxjIpTAdmT+zxzfLmteYLCa/q1hG8goeEro4psKMqeo4r7OyHiS6EFFow1Cdj4 tm+w== 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=Az8PNtsobkU8s8obZj3l4eXd91jPOxhs/RplpT02/WA=; b=KrHoOjBcWmlmbAvaSobfAsSIewf0x4V3rBuMh+EhOGNJ/nmzAEMjHpXmGU8wcDAOZd vHcZ9TzCCpEiidmstqfr+MQ4axGToMx/hsYdRzaLwsvejuXd2OsgeeJqG7LmS1mzS9ms yU5foBcywInuLDaFCbog987mWd6K9PzDdN9f0Kazqk6cbGTP1M/vXD2jbKC0AGjqIlFR xRZtZeWfvoI8c2vMPQ0Jhg0P2VtP3HoF2cX2siSf9w+KLc5DqpaOEYo8INhoVT+Z3lop W/QtftuVBHN5+gtBp0Sbu2mJBY1iXRskm9PTFzMw8MsmI3dwfmSjgvWYMhrcA2iwsjKw KkUA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=EOs9avpf; 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 v18-20020a63f852000000b0046fd4b828b4si18650631pgj.354.2022.11.10.09.10.44; Thu, 10 Nov 2022 09:11:05 -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=EOs9avpf; 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 S230345AbiKJQHG (ORCPT + 92 others); Thu, 10 Nov 2022 11:07:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231266AbiKJQHB (ORCPT ); Thu, 10 Nov 2022 11:07:01 -0500 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2052.outbound.protection.outlook.com [40.107.94.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7F6132BBA; Thu, 10 Nov 2022 08:06:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DeMOGFsqyllwHXnUqqgpjAyHtYGjjEO/F+qdtGqTjQsGqPln3w/jVn47u8Re2G/1nYlADr/TLWvxh67DBml2biW8WcxiKQutx+iP7sNjDXrHzw33R7rbZzgB8Z6B3cXmZrp5QlgGd8oPCvLJmXK86hWcoje83qYxQHwSBZ/2ZMUzlqlviH680paoz12BxYJ0HPvPLvd7MDX0gsPGya34v/qYMeTnFqKx4cln2d9y2A8ARGxUprF6ear3f2u7mFnDavSU1YNmgINq++pcOlUatSuU3y8LtrrlE2/QsMWjia03aUzx4uJZ0EICsX/MaEEyWTMwJHTYPq+ZaTlQgOcjfg== 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=Az8PNtsobkU8s8obZj3l4eXd91jPOxhs/RplpT02/WA=; b=AJ76quxpJ/TTZS4MiWTz3ycU2rFIullCbTlPty4rGXXt/dhvAa1f546Th4aTylfTOGxKXacWjUneHUY4IyZkH1S0zAUPc1A7PJS0GfXurN6OB4wqEXCNQJVEHabQEzBubYHgvVrihHpT5z5d25Vq4MotPOwWhZWAupdWxeENMy/FBRZRO8WlYB4HWC7/4RDkodwxXnKU0YFpD20nMAtZ6PTFsT7Jy2vcexPe4j9lSb4KIr+wpokBRUNxsIg8/ZRf/Mtx9IXjNhp1H8qutTE53/c3MZ/xzUHFDgHz1RQ2bnTFkoUTKbVGwsWP7zNP0pLYzOCccaeTEGisUbqoWIx4dw== 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=Az8PNtsobkU8s8obZj3l4eXd91jPOxhs/RplpT02/WA=; b=EOs9avpf9L3FTzfNygo5h/usPJM2YUbjrW81krNdBNKLu5kL4T0QdIUx2mWq4VOLIejwMfMOMBo9yP8rIplz+/JL4GyhOW7KHnH8QRD5wbOXCtx8g2+7bZz37W9E3YT6FDquEsrSU/NewXBi18xFPkIJ8nzQUYdFTz5ZUoifb9M= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MN0PR12MB6222.namprd12.prod.outlook.com (2603:10b6:208:3c2::19) by DM4PR12MB5214.namprd12.prod.outlook.com (2603:10b6:5:395::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.25; Thu, 10 Nov 2022 16:06:57 +0000 Received: from MN0PR12MB6222.namprd12.prod.outlook.com ([fe80::a404:1a79:53c:453d]) by MN0PR12MB6222.namprd12.prod.outlook.com ([fe80::a404:1a79:53c:453d%4]) with mapi id 15.20.5791.027; Thu, 10 Nov 2022 16:06:57 +0000 Message-ID: <2c4f7c3c-bb05-e16c-19af-451fe167f2e8@amd.com> Date: Thu, 10 Nov 2022 10:06:54 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v3 8/8] cpufreq: amd_pstate: add driver working mode status sysfs entry 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, Mario.Limonciello@amd.com, Alexander.Deucher@amd.com, Shimmer.Huang@amd.com, Xiaojian.Du@amd.com, Li.Meng@amd.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221107175705.2207842-1-Perry.Yuan@amd.com> <20221107175705.2207842-9-Perry.Yuan@amd.com> From: Nathan Fontenot In-Reply-To: <20221107175705.2207842-9-Perry.Yuan@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH0PR03CA0214.namprd03.prod.outlook.com (2603:10b6:610:e7::9) To MN0PR12MB6222.namprd12.prod.outlook.com (2603:10b6:208:3c2::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN0PR12MB6222:EE_|DM4PR12MB5214:EE_ X-MS-Office365-Filtering-Correlation-Id: 1aa8ebb9-de7b-4d1b-b2fb-08dac33597be X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s/AliaXFx6mFduH7aP45q5ulmtZURJDGWVm6wREH0X8niCc47nli5NJslSxvA8douyrav3yYFSsgtpq0EwyUGVtZ7EkC9RElcQmbjNEnQQj5db4mBux6T0ABrx8AjvJUOHC7qtkFZmiM3LkpJbeHUVBobnOwZD4pC1/8lAqbNfNdtK/CWxzWPMgDNbNmdr74grDbU1RpSjv59MsQMWvFeXwH5HWj2tWCLhB0rIrViRRb/1QgWA2GiOcDdw5M97AtiFOdla/mfuOXKR7aRmDxhK5YjPuZqOi5VWqRLXkS4bfrEcmmTUWfFOJBdyMXGH9ntlU3xmwvWptryz0ms2l57kyuQRpGqZHbrGlp0lvlsbUVwESNJEtu2F+cnr7pr0isXlAIkQjF1dX2Vgwo8miFWecLopo3Lpsjew+V3Ou9Zki0yOtwVpVkI25w6vcOjyVn9zDBnU+E3j0XO07ipMY3sGqxIJKsfp6ek2ASWakm8jEc5Bt+6oSKr8mR3FojA+fmE7+rK/8NVXbdCFapOX+7idffaXYfQ04wroCo2Fb6YMg+SefKajEwupUzRzWtl2JVUrnW+6ZR852F8FhMmCdcN9OAn6MYt1ARdxK5SBI7ntrdtkQDgTSSsh33OhBiGfZ7EcbfmTH/MAtepUlMZf1tEOIM+OMmSzDRVWBlsltoWbe0a61WJPiS33jFX7+1sy9B4i7/pin07fcpIVeHIrNNFMnvwDI8821v5i1DpgkE21n8dwr1/pmrkNXaQQoBDc8lnmrTplqiLGW5Tt9jfpCej5tNe9q/g8BkKgZXyxtOBx0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR12MB6222.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(396003)(136003)(346002)(39860400002)(376002)(451199015)(31686004)(36756003)(478600001)(38100700002)(83380400001)(86362001)(31696002)(6486002)(2906002)(6512007)(26005)(44832011)(6506007)(53546011)(66946007)(8936002)(5660300002)(41300700001)(4326008)(2616005)(186003)(316002)(6666004)(66476007)(66556008)(8676002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WDdtb2ZQS2l6RmtZZG8wOXR3eFJFYnJsclRPZ3YxV2RsUS9jRFcxLytOaXdZ?= =?utf-8?B?TmYyV0wrK01STm9OZFMwZWJ0ekpNRk51SW9kdTBOSHJtWXdISmk2QWlaNi9o?= =?utf-8?B?WFpLSTNaY1N2ZmlIWVdVQzFhS2ppRmcycC9iSFhzcjJVeDNxdTVwbGRJNkdX?= =?utf-8?B?WTVjVHhWOVluazMxcFlWRGs2aFM5bEo1djB0RWlBNXFoZ1hmSHRqeFRnaGxw?= =?utf-8?B?Zm1QK2xCNG9uZ1RGUDdPVjN4L3dUQi9rbWtiblV6SWhKOTRVQ1haMEZsQkF6?= =?utf-8?B?cWxaU1hibVUzWUwwWnM4U2FsRDFjNVpNUFZucXc4U1ZXY2JPMGl1QTVyUGVj?=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QnV7UGZn?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1aa8ebb9-de7b-4d1b-b2fb-08dac33597be X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB6222.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2022 16:06:57.4292 (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: PMXrAx8Fwc4R6DpimRvH6m800zxanXrRtWo8mH4627Oz643cOmdGigUCQxBI5XVPIqP2svyzK6Yrzcnubfo8NQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5214 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/7/22 11:57, Perry Yuan wrote: > While amd-pstate driver was loaded with specific driver mode, it will > need to check which mode is enabled for the pstate driver,add this sysfs > entry to show the current status > > $ cat /sys/devices/system/cpu/amd-pstate/status > active > > Signed-off-by: Perry Yuan > --- > drivers/cpufreq/amd-pstate.c | 44 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 44 insertions(+) > > diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c > index 6958c5fd9e1c..eadcc9d61d39 100644 > --- a/drivers/cpufreq/amd-pstate.c > +++ b/drivers/cpufreq/amd-pstate.c > @@ -65,6 +65,8 @@ static int disable_pstate_load __initdata; > static int epp_off __initdata; > > static struct cpufreq_driver *default_pstate_driver; > +static struct cpufreq_driver amd_pstate_epp_driver; > +static struct cpufreq_driver amd_pstate_driver; > static struct amd_cpudata **all_cpu_data; > > static struct amd_pstate_params global_params; > @@ -819,6 +821,46 @@ static ssize_t store_pstate_dynamic_boost(struct kobject *a, > return count; > } > > +static ssize_t amd_pstate_show_status(char *buf) > +{ > + if (!default_pstate_driver) > + return sprintf(buf, "off\n"); > + > + return sprintf(buf, "%s\n", default_pstate_driver == &amd_pstate_epp_driver ? > + "active" : "passive"); > +} > + > +static int amd_pstate_update_status(const char *buf, size_t size) > +{ > + /* FIXME: add driver dynamic switching code */ > + return 0; > +} > + > +static ssize_t show_status(struct kobject *kobj, > + struct kobj_attribute *attr, char *buf) > +{ > + ssize_t ret; > + > + mutex_lock(&amd_pstate_driver_lock); > + ret = amd_pstate_show_status(buf); > + mutex_unlock(&amd_pstate_driver_lock); Do we really need to take a lock to show the driver status? -Nathan > + > + return ret; > +} > + > +static ssize_t store_status(struct kobject *a, struct kobj_attribute *b, > + const char *buf, size_t count) > +{ > + char *p = memchr(buf, '\n', count); > + int ret; > + > + mutex_lock(&amd_pstate_driver_lock); > + ret = amd_pstate_update_status(buf, p ? p - buf : count); > + mutex_unlock(&amd_pstate_driver_lock); > + > + return ret < 0 ? ret : count; > +} > + > cpufreq_freq_attr_ro(amd_pstate_max_freq); > cpufreq_freq_attr_ro(amd_pstate_lowest_nonlinear_freq); > > @@ -826,6 +868,7 @@ cpufreq_freq_attr_ro(amd_pstate_highest_perf); > cpufreq_freq_attr_rw(energy_performance_preference); > cpufreq_freq_attr_ro(energy_performance_available_preferences); > define_one_global_rw(pstate_dynamic_boost); > +define_one_global_rw(status); > > static struct freq_attr *amd_pstate_attr[] = { > &amd_pstate_max_freq, > @@ -845,6 +888,7 @@ static struct freq_attr *amd_pstate_epp_attr[] = { > > static struct attribute *pstate_global_attributes[] = { > &pstate_dynamic_boost.attr, > + &status.attr, > NULL > }; >