Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp180975rdb; Mon, 18 Sep 2023 11:36:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFy5pUSbL0IxFX4xgh7yCOLKMa8/tU9hD7Ho5HzzStLXTlqJtvorY3EI6agtsqP7+sqNjS4 X-Received: by 2002:a05:6a20:8413:b0:149:700e:f50a with SMTP id c19-20020a056a20841300b00149700ef50amr539762pzd.29.1695062176683; Mon, 18 Sep 2023 11:36:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695062176; cv=none; d=google.com; s=arc-20160816; b=siyJRCKqn03xEwEA2eUpLBJfB729eJhqDExPFcLAfK81fzjBbdRsVB1qtJCkZmjqg4 doKLWS08RNZiPx11nbZpCh8pNCH5NyCWIsIDfOA9bUwKBFMtfKxz1d6PyUDpsUTVU0K0 tqryfmu1FdgyYa9MCd2F+hAJQBb3IYAQ09g8ajt7HxHkWPlhB8kOml29h6L8wt4jtSb2 +BX+MF3n+RHtzSihb8FHk87PZtk1xs/zVU632ea14ThCDm4n+t5qzFxlXM9uD+ks8PHC do3tuLUFbIhgff46AFGhwKkIHjpfmFOJbBuYPpjrCZ/yypglMUJpMVI4CkECUxULqtDg pxQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6gGaN/sXOpnWbzL/I7Q9I3RIFsRFt8dcpHAdRDFO2OU=; fh=iNqyB6Y0EGfXCChRku3RvnNZTG93LXrPW8/rMoRdMFA=; b=fMe7C88ADHSLAeSEISS7oK+IOr/CXABOPib/Zzus60+u729LgTpTmfPN2WjwH+El1b fsbnUE8LFqK1q1Fl0iWzIyoVo5ThbZPLkX2tr7jmEBW2nOzLDRls3s9Z2YbeOrDxgpDs 6bTwGkt3FqEcrxL8hZ1RE9mfgYsUwE+2JNcwMJEy9AV8hY71wK59gNJNUHHOL9DD90UQ HZLue67KpqJvdEjcMOy+qDFE9zVjPzX8yJ3IIOpNJc7sipzgkRGi6x1hkzxc5NspWKQC QBRs11+68nZkDv3E7G0hmldKH761qVoNJuPEhPfOp3DVuHcfBNOKhc+AzlBVx7P9YsWw Txbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gIdv79p3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id d26-20020a63735a000000b0057745d87b4csi8340256pgn.526.2023.09.18.11.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 11:36:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gIdv79p3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 8A223829E6C2; Mon, 18 Sep 2023 11:23:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbjIRSXh (ORCPT + 99 others); Mon, 18 Sep 2023 14:23:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjIRSXf (ORCPT ); Mon, 18 Sep 2023 14:23:35 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2FD0FB; Mon, 18 Sep 2023 11:23:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1203BC433C7; Mon, 18 Sep 2023 18:23:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695061408; bh=/QjMdsE7OVXtJRzPWJ6CSqsPFZENU1J6XX8KyF9J/GI=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=gIdv79p37IBUvVHTp9qfa8DomqJny5lWDbW3kTAFrYFIxtf7N5eIb49p2SDru3xoL tWFIV9eBOb9j6tWbmQscpqCmt6mik+MKsMztmoeMEu7X1qDpcGaS/csrlnQrpUqCa4 WoRUJcDuYMUKJK9N8kR73yQ+fjHb2Q3iIl4SbAwGSibeRuumTK9gmc5Cu0TL4WJlH2 vtTzdW33OjDegR8ltzzfh8sdYp599jDGk1ml4YPNufRPLLvJuQtB1OwWZxoZGxDJpL tu+VOyclL2hMEfowpbHL7SvWHY7ek+Q3r2/Q7gZ9afULh8wbC1YN5YDKmZZoAczj0D PaY8rYBW5mMrQ== Message-ID: <757ecf2d-f544-1ab5-4d34-ece6a0eb1180@kernel.org> Date: Mon, 18 Sep 2023 12:23:27 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH V7 0/7] amd-pstate preferred core Content-Language: en-US To: Shuah Khan , Meng Li , "Rafael J . Wysocki" , Huang Rui Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-acpi@vger.kernel.org, linux-kselftest@vger.kernel.org, Nathan Fontenot , Deepak Sharma , Alex Deucher , Mario Limonciello , Shimmer Huang , Perry Yuan , Xiaojian Du , Viresh Kumar , Borislav Petkov , Shuah Khan References: <20230918081407.756858-1-li.meng@amd.com> <400a3e3e-4592-c947-a506-6baf1f268224@linuxfoundation.org> From: Shuah In-Reply-To: <400a3e3e-4592-c947-a506-6baf1f268224@linuxfoundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 18 Sep 2023 11:23:45 -0700 (PDT) On 9/18/23 11:44, Shuah Khan wrote: > On 9/18/23 02:14, Meng Li wrote: >> Hi all: >> >> The core frequency is subjected to the process variation in semiconductors. >> Not all cores are able to reach the maximum frequency respecting the >> infrastructure limits. Consequently, AMD has redefined the concept of >> maximum frequency of a part. This means that a fraction of cores can reach >> maximum frequency. To find the best process scheduling policy for a given >> scenario, OS needs to know the core ordering informed by the platform through >> highest performance capability register of the CPPC interface. >> >> Earlier implementations of amd-pstate preferred core only support a static >> core ranking and targeted performance. Now it has the ability to dynamically >> change the preferred core based on the workload and platform conditions and >> accounting for thermals and aging. >> >> Amd-pstate driver utilizes the functions and data structures provided by >> the ITMT architecture to enable the scheduler to favor scheduling on cores >> which can be get a higher frequency with lower voltage. >> We call it amd-pstate preferred core. >> >> Here sched_set_itmt_core_prio() is called to set priorities and >> sched_set_itmt_support() is called to enable ITMT feature. >> Amd-pstate driver uses the highest performance value to indicate >> the priority of CPU. The higher value has a higher priority. >> >> Amd-pstate driver will provide an initial core ordering at boot time. >> It relies on the CPPC interface to communicate the core ranking to the >> operating system and scheduler to make sure that OS is choosing the cores >> with highest performance firstly for scheduling the process. When amd-pstate >> driver receives a message with the highest performance change, it will >> update the core ranking. >> >> Changes form V6->V7: >> - x86: >> - - Modify kconfig about X86_AMD_PSTATE. >> - cpufreq: amd-pstate: >> - - modify incorrect comments about scheduler_work(). >> - - convert highest_perf data type. >> - - modify preferred core init when cpu init and online. >> - acpi: cppc: >> - - modify link of CPPC highest performance. >> - cpufreq: >> - - modify link of CPPC highest performance changed. >> > > This series in now in linux-kselftest next branch for Linux 6.7-rc1. > > If there are any changes and/or fixes, please send patches on top of > linux-kselftest next branch. > Sorry for the mix-up. Wrong series - my bad. This series isn't in linux-kselftest next. thanks, -- Shuah