[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b2bf3ab3-38b6-4da3-a850-ff768139901d@kernel.org>
Date: Mon, 28 Apr 2025 13:43:42 -0500
From: Mario Limonciello <superm1@...nel.org>
To: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>
Cc: Hans de Goede <hdegoede@...hat.com>,
Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
Mario Limonciello <mario.limonciello@....com>,
Perry Yuan <perry.yuan@....com>, Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
"maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" <x86@...nel.org>,
"H . Peter Anvin" <hpa@...or.com>, Jonathan Corbet <corbet@....net>,
Huang Rui <ray.huang@....com>, "Gautham R . Shenoy"
<gautham.shenoy@....com>, "Rafael J . Wysocki" <rafael@...nel.org>,
Viresh Kumar <viresh.kumar@...aro.org>,
"open list:AMD HETERO CORE HARDWARE FEEDBACK DRIVER"
<platform-driver-x86@...r.kernel.org>,
"open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)"
<linux-kernel@...r.kernel.org>,
"open list:DOCUMENTATION" <linux-doc@...r.kernel.org>,
"open list:AMD PSTATE DRIVER" <linux-pm@...r.kernel.org>,
Bagas Sanjaya <bagasdotme@...il.com>
Subject: Re: [PATCH v9 01/13] Documentation: x86: Add AMD Hardware Feedback
Interface documentation
On 4/28/2025 1:39 PM, Konrad Rzeszutek Wilk wrote:
> ..snip..
>> +Implementation details for Linux
>> +--------------------------------
>> +
>> +The implementation of threads scheduling consists of the following steps:
>> +
>> +1. A thread is spawned and scheduled to the ideal core using the default
>> + heterogeneous scheduling policy.
>> +2. The processor profiles thread execution and assigns an enumerated
>> + classification ID.
>> + This classification is communicated to the OS via logical processor
>> + scope MSR.
>> +3. During the thread context switch out the operating system consumes the
>> + workload(WL) classification which resides in a logical processor scope MSR.
>> +4. The OS triggers the hardware to clear its history by writing to an MSR,
>> + after consuming the WL classification and before switching in the new thread.
>> +5. If due to the classification, ranking table, and processor availability,
>> + the thread is not on its ideal processor, the OS will then consider
>> + scheduling the thread on its ideal processor (if available).
>
> Can you expand on 5) please? The one patch in this patchset that
> touches the process file just does an WRMSR.
Hi, thanks for looking.
This scheduler change is not first part of the series and is going to be
a follow up series.
I left it in the documentation as it explains the intended implementation.
Powered by blists - more mailing lists