mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mario Limonciello <superm1@kernel.org>
To: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: Hans de Goede <hdegoede@redhat.com>,
	Mario Limonciello <mario.limonciello@amd.com>,
	Perry Yuan <perry.yuan@amd.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	"maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)"
	<x86@kernel.org>, "H . Peter Anvin" <hpa@zytor.com>,
	Jonathan Corbet <corbet@lwn.net>, Huang Rui <ray.huang@amd.com>,
	"Gautham R . Shenoy" <gautham.shenoy@amd.com>,
	"Rafael J . Wysocki" <rafael@kernel.org>,
	Viresh Kumar <viresh.kumar@linaro.org>,
	"open list:AMD HETERO CORE HARDWARE FEEDBACK DRIVER"
	<platform-driver-x86@vger.kernel.org>,
	"open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)"
	<linux-kernel@vger.kernel.org>,
	"open list:DOCUMENTATION" <linux-doc@vger.kernel.org>,
	"open list:AMD PSTATE DRIVER" <linux-pm@vger.kernel.org>,
	Bagas Sanjaya <bagasdotme@gmail.com>
Subject: Re: [PATCH v8 01/13] Documentation: x86: Add AMD Hardware Feedback Interface documentation
Date: Fri, 21 Mar 2025 09:41:13 -0500	[thread overview]
Message-ID: <806cafb1-7bab-4001-9b28-3f412ca2fd89@kernel.org> (raw)
In-Reply-To: <58c49901-24b2-2209-9583-09e6b080cc08@linux.intel.com>

On 3/21/2025 08:58, Ilpo Järvinen wrote:
> On Thu, 20 Mar 2025, Mario Limonciello wrote:
> 
>> On 3/19/2025 09:01, Ilpo Järvinen wrote:
>>> On Tue, 18 Feb 2025, Mario Limonciello wrote:
>>>
>>>> From: Perry Yuan <Perry.Yuan@amd.com>
>>>>
>>>> Introduce a new documentation file, `amd_hfi.rst`, which delves into the
>>>> implementation details of the AMD Hardware Feedback Interface and its
>>>> associated driver, `amd_hfi`. This documentation describes how the
>>>> driver provides hint to the OS scheduling which depends on the capability
>>>> of core performance and efficiency ranking data.
>>>>
>>>> This documentation describes
>>>> * The design of the driver
>>>> * How the driver provides hints to the OS scheduling
>>>> * How the driver interfaces with the kernel for efficiency ranking data.
>>>>
>>>> Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com>
>>>> Signed-off-by: Perry Yuan <Perry.Yuan@amd.com>
>>>> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
>>>> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
>>>> ---
>>>>    Documentation/arch/x86/amd-hfi.rst | 127 +++++++++++++++++++++++++++++
>>>>    Documentation/arch/x86/index.rst   |   1 +
>>>>    2 files changed, 128 insertions(+)
>>>>    create mode 100644 Documentation/arch/x86/amd-hfi.rst
>>>>
>>>> diff --git a/Documentation/arch/x86/amd-hfi.rst
>>>> b/Documentation/arch/x86/amd-hfi.rst
>>>> new file mode 100644
>>>> index 0000000000000..5d204688470e3
>>>> --- /dev/null
>>>> +++ b/Documentation/arch/x86/amd-hfi.rst
>>>> @@ -0,0 +1,127 @@
>>>> +.. SPDX-License-Identifier: GPL-2.0
>>>> +
>>>> +======================================================================
>>>> +Hardware Feedback Interface For Hetero Core Scheduling On AMD Platform
>>>> +======================================================================
>>>> +
>>>> +:Copyright: 2024 Advanced Micro Devices, Inc. All Rights Reserved.
>>>> +
>>>> +:Author: Perry Yuan <perry.yuan@amd.com>
>>>> +:Author: Mario Limonciello <mario.limonciello@amd.com>
>>>> +
>>>> +Overview
>>>> +--------
>>>> +
>>>> +AMD Heterogeneous Core implementations are comprised of more than one
>>>> +architectural class and CPUs are comprised of cores of various efficiency
>>>> and
>>>> +power capabilities: performance-oriented *classic cores* and
>>>> power-efficient
>>>> +*dense cores*. As such, power management strategies must be designed to
>>>> +accommodate the complexities introduced by incorporating different core
>>>> types.
>>>> +Heterogeneous systems can also extend to more than two architectural
>>>> classes as
>>>> +well. The purpose of the scheduling feedback mechanism is to provide
>>>> +information to the operating system scheduler in real time such that the
>>>> +scheduler can direct threads to the optimal core.
>>>> +
>>>> +The goal of AMD's heterogeneous architecture is to attain power benefit
>>>> by sending
>>>> +background thread to the dense cores while sending high priority threads
>>>> to the classic
>>>> +cores. From a performance perspective, sending background threads to
>>>> dense cores can free
>>>> +up power headroom and allow the classic cores to optimally service
>>>> demanding threads.
>>>> +Furthermore, the area optimized nature of the dense cores allows for an
>>>> increasing
>>>> +number of physical cores. This improved core density will have positive
>>>> multithreaded
>>>> +performance impact.
>>>
>>> Hi Mario,
>>>
>>> Please fold these paragraphs to 80 characters so that they're easier to
>>> read as textfiles (the table can obviously exceed that but there should be
>>> no reason for the text paragraphs to have excessively long lines).
>>>
>>> My apologies for taking so long to get to review this series.
>>
>> No problem.  Thanks for looking.  I'll get a new version ready to put out
>> after the next merge window.
>>
>>> Most of my
>>> comments are quite minor but there's also 1-2 things that seem more
>>> important. It seemed to me that there is some disconnetion between the
>>> promises made in the Kconfig description and what is provided by the patch
>>> series.
>>
>> Some of the series was pared down to go in multiple parts to make it easier to
>> review with follow ups for the dynamic stuff planned for the next iteration.
>>
>> You see some artifacts of that comments and Kconfig.  I figured it was better
>> to leave as is for those given they get to the intent, but I can change if you
>> think it's better to adjust them when the next part lands instead.
> 
> Okay, I thought that might be because such a split to multiple series. I
> think you can leave those as is as I assume to intention is to immediately
> follow up with the other parts (and not like wait a few kernel releases
> or so)?
> 

The next part was going to be submitted by another team.  Let me check 
offline with them on their intended timing and I will make a call what 
to do.

  reply	other threads:[~2025-03-21 14:41 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-18 19:08 [PATCH v8 00/13] Add support for AMD hardware feedback interface Mario Limonciello
2025-02-18 19:08 ` [PATCH v8 01/13] Documentation: x86: Add AMD Hardware Feedback Interface documentation Mario Limonciello
2025-03-19 14:01   ` Ilpo Järvinen
2025-03-20 16:41     ` Mario Limonciello
2025-03-21 13:58       ` Ilpo Järvinen
2025-03-21 14:41         ` Mario Limonciello [this message]
2025-02-18 19:08 ` [PATCH v8 02/13] MAINTAINERS: Add maintainer entry for AMD Hardware Feedback Driver Mario Limonciello
2025-02-18 19:08 ` [PATCH v8 03/13] x86/msr-index: define AMD heterogeneous CPU related MSR Mario Limonciello
2025-02-18 19:08 ` [PATCH v8 04/13] platform/x86: hfi: Introduce AMD Hardware Feedback Interface Driver Mario Limonciello
2025-03-19 14:03   ` Ilpo Järvinen
2025-03-20 16:46     ` Mario Limonciello
2025-03-21 14:01       ` Ilpo Järvinen
2025-02-18 19:08 ` [PATCH v8 05/13] platform/x86: hfi: parse CPU core ranking data from shared memory Mario Limonciello
2025-03-19 14:04   ` Ilpo Järvinen
2025-02-18 19:08 ` [PATCH v8 06/13] platform/x86: hfi: init per-cpu scores for each class Mario Limonciello
2025-02-18 19:08 ` [PATCH v8 07/13] platform/x86: hfi: add online and offline callback support Mario Limonciello
2025-03-19 14:04   ` Ilpo Järvinen
2025-02-18 19:08 ` [PATCH v8 08/13] platform/x86: hfi: add power management callback Mario Limonciello
2025-02-18 19:08 ` [PATCH v8 09/13] x86/process: Clear hardware feedback history for AMD processors Mario Limonciello
2025-02-18 19:08 ` [PATCH v8 10/13] cpufreq/amd-pstate: Disable preferred cores on designs with workload classification Mario Limonciello
2025-02-18 19:08 ` [PATCH v8 11/13] platform/x86/amd: hfi: Set ITMT priority from ranking data Mario Limonciello
2025-02-18 19:08 ` [PATCH v8 12/13] platform/x86/amd: hfi: Add debugfs support Mario Limonciello
2025-03-19 14:05   ` Ilpo Järvinen
2025-02-18 19:08 ` [PATCH v8 13/13] x86/itmt: Add debugfs file to show core priorities Mario Limonciello
2025-03-20 22:42 ` [PATCH v8 00/13] Add support for AMD hardware feedback interface Christian Loehle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=806cafb1-7bab-4001-9b28-3f412ca2fd89@kernel.org \
    --to=superm1@kernel.org \
    --cc=bagasdotme@gmail.com \
    --cc=bp@alien8.de \
    --cc=corbet@lwn.net \
    --cc=dave.hansen@linux.intel.com \
    --cc=gautham.shenoy@amd.com \
    --cc=hdegoede@redhat.com \
    --cc=hpa@zytor.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=mingo@redhat.com \
    --cc=perry.yuan@amd.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rafael@kernel.org \
    --cc=ray.huang@amd.com \
    --cc=tglx@linutronix.de \
    --cc=viresh.kumar@linaro.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®