All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/x86: intel_turbo_max_3: Remove restriction for HWP platforms
@ 2018-02-12 19:50 Srinivas Pandruvada
  2018-02-14 19:29 ` Andy Shevchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Srinivas Pandruvada @ 2018-02-12 19:50 UTC (permalink / raw)
  To: dvhart, andy
  Cc: platform-driver-x86, linux-kernel, arjan, Srinivas Pandruvada

On systems supporting HWP (Hardware P-States) mode, we expected to
enumerate core priority via ACPI-CPPC tables. Unfortunately deployment of
TURBO 3.0 didn't use this method to show core priority. So users are not
able to utilize this feature in HWP mode.

So remove the loading restriction of this driver for HWP enabled systems.
Even if there are some systems, which are providing the core priority via
ACPI CPPC, this shouldn't cause any conflict as the source of priority
definition is same.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reported-and-tested-and-reviewed-by: Arjan van de Ven <arjan@linux.intel.com>
---
 drivers/platform/x86/intel_turbo_max_3.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/platform/x86/intel_turbo_max_3.c b/drivers/platform/x86/intel_turbo_max_3.c
index d4ea01805879..a6d5aa0c3c47 100644
--- a/drivers/platform/x86/intel_turbo_max_3.c
+++ b/drivers/platform/x86/intel_turbo_max_3.c
@@ -138,9 +138,6 @@ static int __init itmt_legacy_init(void)
 	if (!id)
 		return -ENODEV;
 
-	if (boot_cpu_has(X86_FEATURE_HWP))
-		return -ENODEV;
-
 	ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN,
 				"platform/x86/turbo_max_3:online",
 				itmt_legacy_cpu_online,	NULL);
-- 
2.13.6

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

* Re: [PATCH] platform/x86: intel_turbo_max_3: Remove restriction for HWP platforms
  2018-02-12 19:50 [PATCH] platform/x86: intel_turbo_max_3: Remove restriction for HWP platforms Srinivas Pandruvada
@ 2018-02-14 19:29 ` Andy Shevchenko
  2018-02-14 19:29   ` Arjan van de Ven
  2018-02-14 23:47   ` Srinivas Pandruvada
  0 siblings, 2 replies; 4+ messages in thread
From: Andy Shevchenko @ 2018-02-14 19:29 UTC (permalink / raw)
  To: Srinivas Pandruvada
  Cc: Darren Hart, Andy Shevchenko, Platform Driver,
	Linux Kernel Mailing List, arjan

On Mon, Feb 12, 2018 at 9:50 PM, Srinivas Pandruvada
<srinivas.pandruvada@linux.intel.com> wrote:
> On systems supporting HWP (Hardware P-States) mode, we expected to
> enumerate core priority via ACPI-CPPC tables. Unfortunately deployment of
> TURBO 3.0 didn't use this method to show core priority. So users are not
> able to utilize this feature in HWP mode.
>
> So remove the loading restriction of this driver for HWP enabled systems.
> Even if there are some systems, which are providing the core priority via
> ACPI CPPC, this shouldn't cause any conflict as the source of priority
> definition is same.
>

Pushed to my review and testing queue, thanks!

P.S. Should it go to stable?

> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
> Reported-and-tested-and-reviewed-by: Arjan van de Ven <arjan@linux.intel.com>
> ---
>  drivers/platform/x86/intel_turbo_max_3.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/drivers/platform/x86/intel_turbo_max_3.c b/drivers/platform/x86/intel_turbo_max_3.c
> index d4ea01805879..a6d5aa0c3c47 100644
> --- a/drivers/platform/x86/intel_turbo_max_3.c
> +++ b/drivers/platform/x86/intel_turbo_max_3.c
> @@ -138,9 +138,6 @@ static int __init itmt_legacy_init(void)
>         if (!id)
>                 return -ENODEV;
>
> -       if (boot_cpu_has(X86_FEATURE_HWP))
> -               return -ENODEV;
> -
>         ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN,
>                                 "platform/x86/turbo_max_3:online",
>                                 itmt_legacy_cpu_online, NULL);
> --
> 2.13.6
>



-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH] platform/x86: intel_turbo_max_3: Remove restriction for HWP platforms
  2018-02-14 19:29 ` Andy Shevchenko
@ 2018-02-14 19:29   ` Arjan van de Ven
  2018-02-14 23:47   ` Srinivas Pandruvada
  1 sibling, 0 replies; 4+ messages in thread
From: Arjan van de Ven @ 2018-02-14 19:29 UTC (permalink / raw)
  To: Andy Shevchenko, Srinivas Pandruvada
  Cc: Darren Hart, Andy Shevchenko, Platform Driver, Linux Kernel Mailing List

On 2/14/2018 11:29 AM, Andy Shevchenko wrote:
> On Mon, Feb 12, 2018 at 9:50 PM, Srinivas Pandruvada
> <srinivas.pandruvada@linux.intel.com> wrote:
>> On systems supporting HWP (Hardware P-States) mode, we expected to
>> enumerate core priority via ACPI-CPPC tables. Unfortunately deployment of
>> TURBO 3.0 didn't use this method to show core priority. So users are not
>> able to utilize this feature in HWP mode.
>>
>> So remove the loading restriction of this driver for HWP enabled systems.
>> Even if there are some systems, which are providing the core priority via
>> ACPI CPPC, this shouldn't cause any conflict as the source of priority
>> definition is same.
>>
> 
> Pushed to my review and testing queue, thanks!
> 
> P.S. Should it go to stable?

older stable at least did not have the problem

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

* Re: [PATCH] platform/x86: intel_turbo_max_3: Remove restriction for HWP platforms
  2018-02-14 19:29 ` Andy Shevchenko
  2018-02-14 19:29   ` Arjan van de Ven
@ 2018-02-14 23:47   ` Srinivas Pandruvada
  1 sibling, 0 replies; 4+ messages in thread
From: Srinivas Pandruvada @ 2018-02-14 23:47 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Darren Hart, Andy Shevchenko, Platform Driver,
	Linux Kernel Mailing List, arjan

On Wed, 2018-02-14 at 21:29 +0200, Andy Shevchenko wrote:
> On Mon, Feb 12, 2018 at 9:50 PM, Srinivas Pandruvada
> <srinivas.pandruvada@linux.intel.com> wrote:
> > On systems supporting HWP (Hardware P-States) mode, we expected to
> > enumerate core priority via ACPI-CPPC tables. Unfortunately
> > deployment of
> > TURBO 3.0 didn't use this method to show core priority. So users
> > are not
> > able to utilize this feature in HWP mode.
> > 
> > So remove the loading restriction of this driver for HWP enabled
> > systems.
> > Even if there are some systems, which are providing the core
> > priority via
> > ACPI CPPC, this shouldn't cause any conflict as the source of
> > priority
> > definition is same.
> > 
> 
> Pushed to my review and testing queue, thanks!
> 
> P.S. Should it go to stable?
I want to avoid stable kernel for now.

Thanks,
Srinivas

> 
> > Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel
> > .com>
> > Reported-and-tested-and-reviewed-by: Arjan van de Ven <arjan@linux.
> > intel.com>
> > ---
> >  drivers/platform/x86/intel_turbo_max_3.c | 3 ---
> >  1 file changed, 3 deletions(-)
> > 
> > diff --git a/drivers/platform/x86/intel_turbo_max_3.c
> > b/drivers/platform/x86/intel_turbo_max_3.c
> > index d4ea01805879..a6d5aa0c3c47 100644
> > --- a/drivers/platform/x86/intel_turbo_max_3.c
> > +++ b/drivers/platform/x86/intel_turbo_max_3.c
> > @@ -138,9 +138,6 @@ static int __init itmt_legacy_init(void)
> >         if (!id)
> >                 return -ENODEV;
> > 
> > -       if (boot_cpu_has(X86_FEATURE_HWP))
> > -               return -ENODEV;
> > -
> >         ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN,
> >                                 "platform/x86/turbo_max_3:online",
> >                                 itmt_legacy_cpu_online, NULL);
> > --
> > 2.13.6
> > 
> 
> 
> 

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

end of thread, other threads:[~2018-02-14 23:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-12 19:50 [PATCH] platform/x86: intel_turbo_max_3: Remove restriction for HWP platforms Srinivas Pandruvada
2018-02-14 19:29 ` Andy Shevchenko
2018-02-14 19:29   ` Arjan van de Ven
2018-02-14 23:47   ` Srinivas Pandruvada

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.