Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1435317

Re: [PATCH v7 2/6] ACPI / processor_idle: Add support for Low Power Idle(LPI) states

From Daniel Lezcano <daniel.lezcano@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH v7 2/6] ACPI / processor_idle: Add support for Low Power Idle(LPI) states
Date 2016-07-01 15:20 +0200
Message-ID <rQ6wp-76i-7@gated-at.bofh.it> (permalink)
References <rP1It-7PJ-7@gated-at.bofh.it> <rP1Iu-7PJ-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 06/28/2016 03:55 PM, Sudeep Holla wrote:
> ACPI 6.0 introduced an optional object _LPI that provides an alternate
> method to describe Low Power Idle states. It defines the local power
> states for each node in a hierarchical processor topology. The OSPM can
> use _LPI object to select a local power state for each level of processor
> hierarchy in the system. They used to produce a composite power state
> request that is presented to the platform by the OSPM.
>
> Since multiple processors affect the idle state for any non-leaf hierarchy
> node, coordination of idle state requests between the processors is
> required. ACPI supports two different coordination schemes: Platform
> coordinated and  OS initiated.
>
> This patch adds initial support for Platform coordination scheme of LPI.
>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
> ---

Hi Sudeep,

I looked at the acpi processor idle code sometime ago and from my POV, 
it was awful, unnecessary complex and very difficult to maintain. The 
usage of flags all over the places is significant of the lack of control 
of the written code.

Even if you are not responsible of this implementation, the current 
situation forces you to add more awful code on top of that, which is 
clearly against "making Linux better".

IMO, the current code deserves a huge cleanup before applying anything 
new : cstate and lpi should be investigated to be self-contained in 
their respective file and consolidated, the global variable usage should 
be killed, redundant flag checking removed by recapturing the code flow, 
etc ... I believe the usage of acpi probe table could be one entry point 
to begin this cleanup.




-- 
  <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v7 0/6] ACPI / processor_idle: Add ACPI v6.0 LPI support Sudeep Holla <sudeep.holla@arm.com> - 2016-06-28 16:00 +0200
  [PATCH v7 1/6] ACPI / processor_idle: introduce ACPI_PROCESSOR_CSTATE Sudeep Holla <sudeep.holla@arm.com> - 2016-06-28 16:00 +0200
  [PATCH v7 6/6] ACPI : enable ACPI_PROCESSOR_IDLE on ARM64 Sudeep Holla <sudeep.holla@arm.com> - 2016-06-28 16:00 +0200
  [PATCH v7 3/6] arm64: cpuidle: drop __init section marker to arm_cpuidle_init Sudeep Holla <sudeep.holla@arm.com> - 2016-06-28 16:00 +0200
  [PATCH v7 4/6] cpuidle: introduce HAVE_GENERIC_CPUIDLE_ENTER for ARM{32,64} platforms Sudeep Holla <sudeep.holla@arm.com> - 2016-06-28 16:00 +0200
    Re: [PATCH v7 4/6] cpuidle: introduce HAVE_GENERIC_CPUIDLE_ENTER for ARM{32,64} platforms "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-07-07 15:20 +0200
      Re: [PATCH v7 4/6] cpuidle: introduce HAVE_GENERIC_CPUIDLE_ENTER for  ARM{32,64} platforms Sudeep Holla <sudeep.holla@arm.com> - 2016-07-07 15:50 +0200
        Re: [PATCH v7 4/6] cpuidle: introduce HAVE_GENERIC_CPUIDLE_ENTER for ARM{32,64} platforms "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-07-07 16:50 +0200
          Re: [PATCH v7 4/6] cpuidle: introduce HAVE_GENERIC_CPUIDLE_ENTER for  ARM{32,64} platforms Sudeep Holla <sudeep.holla@arm.com> - 2016-07-07 17:50 +0200
  [PATCH v7 2/6] ACPI / processor_idle: Add support for Low Power Idle(LPI) states Sudeep Holla <sudeep.holla@arm.com> - 2016-06-28 16:00 +0200
    Re: [PATCH v7 2/6] ACPI / processor_idle: Add support for Low Power  Idle(LPI) states Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-07-01 15:20 +0200
      Re: [PATCH v7 2/6] ACPI / processor_idle: Add support for Low Power  Idle(LPI) states Sudeep Holla <sudeep.holla@arm.com> - 2016-07-04 15:10 +0200
        Re: [PATCH v7 2/6] ACPI / processor_idle: Add support for Low Power Idle(LPI) states "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-07-04 15:20 +0200
          Re: [PATCH v7 2/6] ACPI / processor_idle: Add support for Low Power  Idle(LPI) states Sudeep Holla <sudeep.holla@arm.com> - 2016-07-04 15:50 +0200
            Re: [PATCH v7 2/6] ACPI / processor_idle: Add support for Low Power  Idle(LPI) states "Rafael J. Wysocki" <rafael@kernel.org> - 2016-07-04 16:20 +0200
  [PATCH v7 5/6] arm64: add support for ACPI Low Power Idle(LPI) Sudeep Holla <sudeep.holla@arm.com> - 2016-06-28 16:00 +0200

csiph-web