public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] cpufreq/amd-pstate: Adding Zen4 support in introduction
@ 2024-01-09 17:58 Erwan Velu
  2024-01-10 14:21 ` Rafael J. Wysocki
  0 siblings, 1 reply; 6+ messages in thread
From: Erwan Velu @ 2024-01-09 17:58 UTC (permalink / raw)
  Cc: Erwan Velu, Huang Rui, Rafael J. Wysocki, Viresh Kumar, linux-pm,
	linux-kernel

amd-pstate is implemented on Zen4, adding this architecture in the
introduction.

Signed-off-by: Erwan Velu <e.velu@criteo.com>
---
 drivers/cpufreq/amd-pstate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
index 1f6186475715..9a8d083f6ba5 100644
--- a/drivers/cpufreq/amd-pstate.c
+++ b/drivers/cpufreq/amd-pstate.c
@@ -14,7 +14,7 @@
  * communicate the performance hints to hardware.
  *
  * AMD P-State is supported on recent AMD Zen base CPU series include some of
- * Zen2 and Zen3 processors. _CPC needs to be present in the ACPI tables of AMD
+ * Zen2, Zen3 and Zen4 processors. _CPC needs to be present in the ACPI tables of AMD
  * P-State supported system. And there are two types of hardware implementations
  * for AMD P-State: 1) Full MSR Solution and 2) Shared Memory Solution.
  * X86_FEATURE_CPPC CPU feature flag is used to distinguish the different types.
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] cpufreq/amd-pstate: Adding Zen4 support in introduction
  2024-01-09 17:58 [PATCH 2/2] cpufreq/amd-pstate: Adding Zen4 support in introduction Erwan Velu
@ 2024-01-10 14:21 ` Rafael J. Wysocki
  2024-01-10 14:30   ` Erwan Velu
  2024-01-10 17:19   ` Huang Rui
  0 siblings, 2 replies; 6+ messages in thread
From: Rafael J. Wysocki @ 2024-01-10 14:21 UTC (permalink / raw)
  To: Erwan Velu
  Cc: Erwan Velu, Huang Rui, Rafael J. Wysocki, Viresh Kumar, linux-pm,
	linux-kernel

On Tue, Jan 9, 2024 at 6:58 PM Erwan Velu <erwanaliasr1@gmail.com> wrote:
>
> amd-pstate is implemented on Zen4, adding this architecture in the
> introduction.
>
> Signed-off-by: Erwan Velu <e.velu@criteo.com>
> ---
>  drivers/cpufreq/amd-pstate.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
> index 1f6186475715..9a8d083f6ba5 100644
> --- a/drivers/cpufreq/amd-pstate.c
> +++ b/drivers/cpufreq/amd-pstate.c
> @@ -14,7 +14,7 @@
>   * communicate the performance hints to hardware.
>   *
>   * AMD P-State is supported on recent AMD Zen base CPU series include some of
> - * Zen2 and Zen3 processors. _CPC needs to be present in the ACPI tables of AMD
> + * Zen2, Zen3 and Zen4 processors. _CPC needs to be present in the ACPI tables of AMD

IMO, it would be really nice to avoid extending this line so much, but
this is up to the AMD people.

Also, while you are at it, "include" in the first sentence should be
"including" and a new paragraph after "processors." would make this
comment easier to follow from the logical standpoint, because the
first sentence is about the supported platforms and the second one is
about additional requirements (ie. something else).

>   * P-State supported system. And there are two types of hardware implementations
>   * for AMD P-State: 1) Full MSR Solution and 2) Shared Memory Solution.
>   * X86_FEATURE_CPPC CPU feature flag is used to distinguish the different types.
> --

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] cpufreq/amd-pstate: Adding Zen4 support in introduction
  2024-01-10 14:21 ` Rafael J. Wysocki
@ 2024-01-10 14:30   ` Erwan Velu
  2024-01-10 17:19   ` Huang Rui
  1 sibling, 0 replies; 6+ messages in thread
From: Erwan Velu @ 2024-01-10 14:30 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Erwan Velu, Huang Rui, Viresh Kumar, linux-pm, linux-kernel

So it's probably better to let AMD people fixing this part.
Thx for the feedback.

Le mer. 10 janv. 2024 à 15:21, Rafael J. Wysocki <rafael@kernel.org> a écrit :
>
> On Tue, Jan 9, 2024 at 6:58 PM Erwan Velu <erwanaliasr1@gmail.com> wrote:
> >
> > amd-pstate is implemented on Zen4, adding this architecture in the
> > introduction.
> >
> > Signed-off-by: Erwan Velu <e.velu@criteo.com>
> > ---
> >  drivers/cpufreq/amd-pstate.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
> > index 1f6186475715..9a8d083f6ba5 100644
> > --- a/drivers/cpufreq/amd-pstate.c
> > +++ b/drivers/cpufreq/amd-pstate.c
> > @@ -14,7 +14,7 @@
> >   * communicate the performance hints to hardware.
> >   *
> >   * AMD P-State is supported on recent AMD Zen base CPU series include some of
> > - * Zen2 and Zen3 processors. _CPC needs to be present in the ACPI tables of AMD
> > + * Zen2, Zen3 and Zen4 processors. _CPC needs to be present in the ACPI tables of AMD
>
> IMO, it would be really nice to avoid extending this line so much, but
> this is up to the AMD people.
>
> Also, while you are at it, "include" in the first sentence should be
> "including" and a new paragraph after "processors." would make this
> comment easier to follow from the logical standpoint, because the
> first sentence is about the supported platforms and the second one is
> about additional requirements (ie. something else).
>
> >   * P-State supported system. And there are two types of hardware implementations
> >   * for AMD P-State: 1) Full MSR Solution and 2) Shared Memory Solution.
> >   * X86_FEATURE_CPPC CPU feature flag is used to distinguish the different types.
> > --

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] cpufreq/amd-pstate: Adding Zen4 support in introduction
  2024-01-10 14:21 ` Rafael J. Wysocki
  2024-01-10 14:30   ` Erwan Velu
@ 2024-01-10 17:19   ` Huang Rui
  2024-01-10 17:49     ` Erwan Velu
  1 sibling, 1 reply; 6+ messages in thread
From: Huang Rui @ 2024-01-10 17:19 UTC (permalink / raw)
  To: Rafael J. Wysocki, Erwan Velu
  Cc: Erwan Velu, Viresh Kumar, linux-pm@vger.kernel.org,
	linux-kernel@vger.kernel.org

On Wed, Jan 10, 2024 at 10:21:20PM +0800, Rafael J. Wysocki wrote:
> On Tue, Jan 9, 2024 at 6:58 PM Erwan Velu <erwanaliasr1@gmail.com> wrote:
> >
> > amd-pstate is implemented on Zen4, adding this architecture in the
> > introduction.
> >
> > Signed-off-by: Erwan Velu <e.velu@criteo.com>
> > ---
> >  drivers/cpufreq/amd-pstate.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
> > index 1f6186475715..9a8d083f6ba5 100644
> > --- a/drivers/cpufreq/amd-pstate.c
> > +++ b/drivers/cpufreq/amd-pstate.c
> > @@ -14,7 +14,7 @@
> >   * communicate the performance hints to hardware.
> >   *
> >   * AMD P-State is supported on recent AMD Zen base CPU series include some of
> > - * Zen2 and Zen3 processors. _CPC needs to be present in the ACPI tables of AMD
> > + * Zen2, Zen3 and Zen4 processors. _CPC needs to be present in the ACPI tables of AMD
> 
> IMO, it would be really nice to avoid extending this line so much, but
> this is up to the AMD people.

Agree. Actually, we will use this driver for all future AMD CPU generations
that starts from paritial Zen2.

> 
> Also, while you are at it, "include" in the first sentence should be
> "including" and a new paragraph after "processors." would make this
> comment easier to follow from the logical standpoint, because the
> first sentence is about the supported platforms and the second one is
> about additional requirements (ie. something else).
> 

How about modifying here as "partial Zen2, Zen3, and future processors"?

Thanks,
Ray

> >   * P-State supported system. And there are two types of hardware implementations
> >   * for AMD P-State: 1) Full MSR Solution and 2) Shared Memory Solution.
> >   * X86_FEATURE_CPPC CPU feature flag is used to distinguish the different types.
> > --

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] cpufreq/amd-pstate: Adding Zen4 support in introduction
  2024-01-10 17:19   ` Huang Rui
@ 2024-01-10 17:49     ` Erwan Velu
  2024-01-11  3:25       ` Huang Rui
  0 siblings, 1 reply; 6+ messages in thread
From: Erwan Velu @ 2024-01-10 17:49 UTC (permalink / raw)
  To: Huang Rui
  Cc: Rafael J. Wysocki, Erwan Velu, Viresh Kumar,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org

> How about modifying here as "partial Zen2, Zen3, and future processors"?
And all processors starting Zen4 ?

Le mer. 10 janv. 2024 à 18:19, Huang Rui <ray.huang@amd.com> a écrit :
>
> On Wed, Jan 10, 2024 at 10:21:20PM +0800, Rafael J. Wysocki wrote:
> > On Tue, Jan 9, 2024 at 6:58 PM Erwan Velu <erwanaliasr1@gmail.com> wrote:
> > >
> > > amd-pstate is implemented on Zen4, adding this architecture in the
> > > introduction.
> > >
> > > Signed-off-by: Erwan Velu <e.velu@criteo.com>
> > > ---
> > >  drivers/cpufreq/amd-pstate.c | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
> > > index 1f6186475715..9a8d083f6ba5 100644
> > > --- a/drivers/cpufreq/amd-pstate.c
> > > +++ b/drivers/cpufreq/amd-pstate.c
> > > @@ -14,7 +14,7 @@
> > >   * communicate the performance hints to hardware.
> > >   *
> > >   * AMD P-State is supported on recent AMD Zen base CPU series include some of
> > > - * Zen2 and Zen3 processors. _CPC needs to be present in the ACPI tables of AMD
> > > + * Zen2, Zen3 and Zen4 processors. _CPC needs to be present in the ACPI tables of AMD
> >
> > IMO, it would be really nice to avoid extending this line so much, but
> > this is up to the AMD people.
>
> Agree. Actually, we will use this driver for all future AMD CPU generations
> that starts from paritial Zen2.
>
> >
> > Also, while you are at it, "include" in the first sentence should be
> > "including" and a new paragraph after "processors." would make this
> > comment easier to follow from the logical standpoint, because the
> > first sentence is about the supported platforms and the second one is
> > about additional requirements (ie. something else).
> >
>
> How about modifying here as "partial Zen2, Zen3, and future processors"?
>
> Thanks,
> Ray
>
> > >   * P-State supported system. And there are two types of hardware implementations
> > >   * for AMD P-State: 1) Full MSR Solution and 2) Shared Memory Solution.
> > >   * X86_FEATURE_CPPC CPU feature flag is used to distinguish the different types.
> > > --

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] cpufreq/amd-pstate: Adding Zen4 support in introduction
  2024-01-10 17:49     ` Erwan Velu
@ 2024-01-11  3:25       ` Huang Rui
  0 siblings, 0 replies; 6+ messages in thread
From: Huang Rui @ 2024-01-11  3:25 UTC (permalink / raw)
  To: Erwan Velu
  Cc: Rafael J. Wysocki, Erwan Velu, Viresh Kumar,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org

On Thu, Jan 11, 2024 at 01:49:27AM +0800, Erwan Velu wrote:
> > How about modifying here as "partial Zen2, Zen3, and future processors"?
> And all processors starting Zen4 ?

"partial Zen2 and all processors starting Zen3"

Thanks,
Ray

> 
> Le mer. 10 janv. 2024 à 18:19, Huang Rui <ray.huang@amd.com> a écrit :
> >
> > On Wed, Jan 10, 2024 at 10:21:20PM +0800, Rafael J. Wysocki wrote:
> > > On Tue, Jan 9, 2024 at 6:58 PM Erwan Velu <erwanaliasr1@gmail.com> wrote:
> > > >
> > > > amd-pstate is implemented on Zen4, adding this architecture in the
> > > > introduction.
> > > >
> > > > Signed-off-by: Erwan Velu <e.velu@criteo.com>
> > > > ---
> > > >  drivers/cpufreq/amd-pstate.c | 2 +-
> > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > >
> > > > diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
> > > > index 1f6186475715..9a8d083f6ba5 100644
> > > > --- a/drivers/cpufreq/amd-pstate.c
> > > > +++ b/drivers/cpufreq/amd-pstate.c
> > > > @@ -14,7 +14,7 @@
> > > >   * communicate the performance hints to hardware.
> > > >   *
> > > >   * AMD P-State is supported on recent AMD Zen base CPU series include some of
> > > > - * Zen2 and Zen3 processors. _CPC needs to be present in the ACPI tables of AMD
> > > > + * Zen2, Zen3 and Zen4 processors. _CPC needs to be present in the ACPI tables of AMD
> > >
> > > IMO, it would be really nice to avoid extending this line so much, but
> > > this is up to the AMD people.
> >
> > Agree. Actually, we will use this driver for all future AMD CPU generations
> > that starts from paritial Zen2.
> >
> > >
> > > Also, while you are at it, "include" in the first sentence should be
> > > "including" and a new paragraph after "processors." would make this
> > > comment easier to follow from the logical standpoint, because the
> > > first sentence is about the supported platforms and the second one is
> > > about additional requirements (ie. something else).
> > >
> >
> > How about modifying here as "partial Zen2, Zen3, and future processors"?
> >
> > Thanks,
> > Ray
> >
> > > >   * P-State supported system. And there are two types of hardware implementations
> > > >   * for AMD P-State: 1) Full MSR Solution and 2) Shared Memory Solution.
> > > >   * X86_FEATURE_CPPC CPU feature flag is used to distinguish the different types.
> > > > --

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-01-11  3:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-09 17:58 [PATCH 2/2] cpufreq/amd-pstate: Adding Zen4 support in introduction Erwan Velu
2024-01-10 14:21 ` Rafael J. Wysocki
2024-01-10 14:30   ` Erwan Velu
2024-01-10 17:19   ` Huang Rui
2024-01-10 17:49     ` Erwan Velu
2024-01-11  3:25       ` Huang Rui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox