Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp902451rwb; Thu, 8 Dec 2022 04:33:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf711YnkGfRcXi3Vqc0QanGD78O/ORAVgHoN4GA9whyFY18PsSIIWNQpfPLbnCJKE0sRZJi1 X-Received: by 2002:a17:906:6814:b0:7c1:442:689f with SMTP id k20-20020a170906681400b007c10442689fmr9818976ejr.161.1670502821200; Thu, 08 Dec 2022 04:33:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670502821; cv=none; d=google.com; s=arc-20160816; b=JtzEYCFU4Ypzg83zQeS4f59BEN+WzK+p0MwasqA5szu4SsDfV5hPVsJk7z2I/OnAcg qf47NqTZ9RRMGUhPedW9x+3ETLU8GBNBDKxCFdy461VkXLbOIKIYqunUkwCJ8LMOf3UT E9MesOZWvfMXPich21uteshq03Qy54ex113NNh2DutyIb4g/SaCCgy1Vi0lqSHp8QY7o wmklL+JfCxK6CF0K3vpn9QsGTKpU3wB1DbURgdulnsytuUdioHewyfuwFJ2umGWJXeQJ EVGior7r6uAWF/xoQcsm3KRr2xwwEGz7BYr+AHxSFpLvffUzmhJvoM0vdNrlrw0gscqr MPUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=rqUzGXz7fqT2+R6ToUJYMObx3cVBIGdpHtqiUhY3CCc=; b=LlmH2mP4ZkUsyPo2kctyEk9RK5qImsBqp2vRfZ7MvYpuptsJP0RoSeRC8zcDQ+PFnM vUoodWNRwu9Nw2ehBnkrlGRq+dC2GNxPJWqm47Hsxt+Lf0nSiK8kfTCQc4Pt6PD1+Bl7 W9JbkJbvkjHU+EtS+r+Y+/YElOshUcbs7jbTMLfzWehTvQxiEcmsmwPl26k+2pPwrz/q SmQZa/9yOlyE5suxM3Z5JUbTPBbNvrLFrCPCEQUBuG5pqJS6MvtLizCPzp2qB3nSsa/3 bPTrMgBTwp454m74J6KOWeqxrQOz9oItKhSug5elqbf4Apeh460EG8yVMReDPDU2S/YJ Sd8g== ARC-Authentication-Results: i=1; mx.google.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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg7-20020a170907970700b00781132a4ca6si18943450ejc.850.2022.12.08.04.33.23; Thu, 08 Dec 2022 04:33:41 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230170AbiLHLuT (ORCPT + 72 others); Thu, 8 Dec 2022 06:50:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbiLHLt5 (ORCPT ); Thu, 8 Dec 2022 06:49:57 -0500 Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD3A08BD31; Thu, 8 Dec 2022 03:48:54 -0800 (PST) Received: by mail-qk1-f173.google.com with SMTP id j13so589341qka.3; Thu, 08 Dec 2022 03:48:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rqUzGXz7fqT2+R6ToUJYMObx3cVBIGdpHtqiUhY3CCc=; b=YVZA8htQVW0wKkb2lQZjV8L7C4kw4TQWWEAMWY64haFklLJkdi7X+ZHQuUaRK7H6UG PDl4+c0pK1SzSGDq4mtL+tP8vYCiWvDD0V4m/WIIYX6iIMPso0mNS2dFxjG7hVSXRw6T 2vj32STAbNRuHWc6rLCu0K03sP/v5YupPMg7fsNytxFhdJqoOPJrAELV8kbZ9UQkbRB1 ghpTAVJkVElMFFXcdVlyo1+dGycm3luaD+ufGmjDlBaq/MUCmlGiiJ4RQUtG1tg+4BNC jWWtEfdEfGaFZO1zzld02SwP8WSLC9YzX0FUTzHT12YPepzZRE0YSalFlMzHxpbBhcXC lHvQ== X-Gm-Message-State: ANoB5pl6fjexNGhs7ww5cs/gvMTel70OgtRJT1h0okjvzkG1Uxx+v9Tn ayLv2Z0PEU9EuSj0VRs+ZdNVV7IGhx8tqcc1Xnk= X-Received: by 2002:a37:b901:0:b0:6ec:2b04:5099 with SMTP id j1-20020a37b901000000b006ec2b045099mr69561695qkf.501.1670500132067; Thu, 08 Dec 2022 03:48:52 -0800 (PST) MIME-Version: 1.0 References: <20221207154648.233759-1-wyes.karny@amd.com> In-Reply-To: <20221207154648.233759-1-wyes.karny@amd.com> From: "Rafael J. Wysocki" Date: Thu, 8 Dec 2022 12:48:41 +0100 Message-ID: Subject: Re: [PATCH 0/4] amd_pstate: Add guided autonomous mode support To: Wyes Karny Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Jonathan Corbet , Huang Rui , "Rafael J . Wysocki" , Viresh Kumar , Mario.Limonciello@amd.com, Perry.Yuan@amd.com, Ananth Narayan , gautham.shenoy@amd.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 Wed, Dec 7, 2022 at 4:47 PM Wyes Karny wrote: > > From ACPI spec[1] below 3 modes for CPPC can be defined: > 1. Non autonomous: OS scaling governor specifies operating frequency/ > performance level through `Desired Performance` register and PMFW > follows that. > 2. Guided autonomous: OS scaling governor specifies min and max > frequencies/ performance levels through `Minimum Performance` and > `Maximum Performance` register, and PMFW can autonomously select an > operating frequency in this range. > 3. Fully autonomous: OS only hints (via EPP) to PMFW for the required > energy performance preference for the workload and PMFW autonomously > scales the frequency. > > Currently (1) is supported by amd_pstate as passive mode, and (3) is > implemented by EPP support[2]. This change is to support (2). Well, can you guys please agree on priorities? Like which one is more important and so it should go in first? At this point I'm not sure what the ordering assumptions with respect to the EPP series are. Also this submission is late for 6.2, so I will only regard it as 6.3 material on the condition the above gets clarified. In the meantime, please address review comments and consider resending after 6.2-rc1 is out. Thanks!