Hi All,
After changing some pm-qa/cpuidle files and the cpuidle_01.sh works now.

root@android:/system/bin/cpuidle # ./cpuidle_01.sh                            
cpuidle_01.0: checking 'current_driver' exists...                           pass
cpuidle_01.1: checking 'current_governor_ro' exists...                      pass
cpuidle_01.0/cpu0: checking 'desc' exists...                                pass
cpuidle_01.1/cpu0: checking 'latency' exists...                             pass
cpuidle_01.2/cpu0: checking 'name' exists...                                pass
cpuidle_01.3/cpu0: checking 'power' exists...                               pass
cpuidle_01.4/cpu0: checking 'time' exists...                                pass
cpuidle_01.5/cpu0: checking 'usage' exists...                               pass
cpuidle_01.6/cpu0: checking 'desc' exists...                                pass
cpuidle_01.7/cpu0: checking 'latency' exists...                             pass
cpuidle_01.8/cpu0: checking 'name' exists...                                pass
cpuidle_01.9/cpu0: checking 'power' exists...                               pass
cpuidle_01.10/cpu0: checking 'time' exists...                               pass
cpuidle_01.11/cpu0: checking 'usage' exists...                              pass
cpuidle_01.0/cpu1: checking 'desc' exists...                                pass
cpuidle_01.1/cpu1: checking 'latency' exists...                             pass
cpuidle_01.2/cpu1: checking 'name' exists...                                pass
cpuidle_01.3/cpu1: checking 'power' exists...                               pass
cpuidle_01.4/cpu1: checking 'time' exists...                                pass
cpuidle_01.5/cpu1: checking 'usage' exists...                               pass
cpuidle_01.6/cpu1: checking 'desc' exists...                                pass
cpuidle_01.7/cpu1: checking 'latency' exists...                             pass
cpuidle_01.8/cpu1: checking 'name' exists...                                pass
cpuidle_01.9/cpu1: checking 'power' exists...                               pass
cpuidle_01.10/cpu1: checking 'time' exists...                               pass
cpuidle_01.11/cpu1: checking 'usage' exists...                              pass


BRs,
Kejun



On 10 April 2012 11:28, Kejun Zhou <kejun.zhou@linaro.org> wrote:


On 10 April 2012 10:24, Zach Pfeffer <zach.pfeffer@linaro.org> wrote:
On 9 April 2012 21:05, Kejun Zhou <kejun.zhou@linaro.org> wrote:
>
>
> On 9 April 2012 21:52, Zach Pfeffer <zach.pfeffer@linaro.org> wrote:
>>
>> On 9 April 2012 06:01, Kejun Zhou <kejun.zhou@linaro.org> wrote:
>> > Hi Rob,
>> > Would you tell me the CPUIDLE test steps in pm-qa?
>> >
>> > As the pm-qa needs to run in bash, and use the "make" tool, but the
>> > Android
>> > only has its own shell, the "make" tool is not available in Android
>> > system.
>>
>> Why is pm-qa running make? Is it just to load the system?
>
>
> pm-qa is a test suit for cpuidle, cpufreq, cpuhotplug  ...
> It uses the "make" tool to check the Linux /sys file system.

Can you remove make and update the test to work against what Android ships with?

I don't think this is a good idea. As the pm-qa is still updating, developing a new one to test cpuidle means two parallel branches, it is wasting our resource.



>
>
>>
>> >
>> > Thank a lot.
>> >
>> >
>> > Hi Zach,
>> > The limitation of Android system(bash and make) blocks the CPUIDLE too
>> > much.
>>
>> Kejun, if make is just being used to make the system busy, we have
>> other tools for that. Talk to Amit about some of the commands he
>> integrated for big.LITTLE testing.
>>
>> >
>> >
>> > BRs,
>> > Kejun
>> >
>> >
>> >
>> > On 7 April 2012 03:18, Andrey Konovalov <andrey.konovalov@linaro.org>
>> > wrote:
>> >>
>> >> Hi Kejun,
>> >>
>> >> Regarding your two questions below:
>> >> 1. Guess the questions on CPUIDLE implementation will be much better
>> >> answered by Rob Lee (Cc-ed).
>> >> 2. The PM WG has tests for their features:
>> >>
>> >>
>> >> https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#Cpuidle
>> >>
>> >>
>> >> https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#Pre-requisites
>> >>
>> >> Thanks,
>> >> Andrey
>> >>
>> >>
>> >> On 04/06/2012 01:29 PM, Kejun Zhou wrote:
>> >>>
>> >>> Hi Andrey,
>> >>>
>> >>> I am Kejun from Linaro Android team. I got a task to integrate the
>> >>> CPUIDLE to Linaro Android kernel branch from Zach.
>> >>>
>> >>> I found the CPUIDLE is included in linux-linaro-3.3-2012.03-2 from
>> >>> your
>> >>> email, and merged Snowball CPUIDLE to linaro-android-12.03-release
>> >>> kernel.
>> >>>
>> >>>
>> >>> I have some questions about how to verify whether this CPUIDLE feature
>> >>> is integrated or not.
>> >>>
>> >>> 1. I found that the cpu_do_idle() is executed. But the code in "if ()
>> >>> "
>> >>> won't be executed after Android starting up. And the current is
>> >>> between
>> >>> 380mA ~ 490mA, I thinks when CPUIDLE is working, the current should be
>> >>> more low than 380mA.
>> >>>
>> >>> static inline int ux500_enter_idle(struct cpuidle_device *dev,
>> >>>                                    struct cpuidle_driver *drv, int
>> >>> index)
>> >>> {
>> >>>
>> >>> ..
>> >>>   if (atomic_inc_return(&master) == num_online_cpus()) {
>> >>>
>> >>> ..
>> >>>   }
>> >>>
>> >>> wfi:
>> >>>         cpu_do_idle()
>> >>>
>> >>> ...
>> >>> }
>> >>>
>> >>>
>> >>> 2. Is there some method to test the CPUIDLE feature from the Linux
>> >>> console?
>> >>>
>> >>> Thanks a lot.
>> >>>
>> >>> BRs,
>> >>> Kejun.
>> >>>
>> >>>
>> >>> On 28 March 2012 04:11, Andrey Konovalov <andrey.konovalov@linaro.org
>> >>> <mailto:andrey.konovalov@linaro.org>> wrote:
>> >>>
>> >>>    Greetings,
>> >>>
>> >>>    The Linaro Kernel Working Group (KWG) and the Linaro Platform
>> >>>    Group are excited to announce the availability our March 2012
>> >>>    development snapshot:
>> >>>
>> >>>    linux-linaro-3.3-2012.03-2
>> >>>
>> >>>    As the word "snapshot" implies, these are meant as development
>> >>> kernels
>> >>>    and have not been fully validated. You should expect issues and to
>> >>> help
>> >>>    us deliver a better kernel in the future, please file bugs in
>> >>>    Launchpad at
>> >>>    https://bugs.launchpad.net/__linux-linaro
>> >>>    <https://bugs.launchpad.net/linux-linaro>.
>> >>>
>> >>>
>> >>>    The source tarball is available at:
>> >>>
>> >>>
>> >>>
>> >>>  https://launchpad.net/linux-__linaro/devtrack/12.03/+__download/linux-linaro-3.3-__2012.03-2.tar.bz2
>> >>>
>> >>>
>> >>>
>> >>>  <https://launchpad.net/linux-linaro/devtrack/12.03/+download/linux-linaro-3.3-2012.03-2.tar.bz2>
>> >>>
>> >>>    The kernel sources can also be accessed using git at:
>> >>>      git://git.linaro.org/kernel/__linux-linaro-tracking.git
>> >>>    <http://git.linaro.org/kernel/linux-linaro-tracking.git>
>> >>>
>> >>>      tag: linux-linaro-3.3-2012.03-2
>> >>>
>> >>>    This kernel includes the following changes from the 2012.02 kernel:
>> >>>
>> >>>    - Update to 3.3
>> >>>
>> >>>    - Various patches from Linaro
>> >>>      * Versatile Express patches from ARM LT
>> >>>      * Gator module for ARM's Streamline Performance Ananlyzer from
>> >>> ARM
>> >>> LT
>> >>>      * updated irq_domain patch set from Grant L.
>> >>>      * cpuidle core consolidation, cpuidle support for i.MX5/6 and
>> >>> ST-E
>> >>>    u8500 from PM WG
>> >>>      * updated patch set support for common save and restore code to
>> >>> the
>> >>>    Samsung exynos platform from PM WG
>> >>>      * updated thermal_cpu_cooling patch set from the power management
>> >>> WG
>> >>>      * UFS patches from kernel WG
>> >>>      * eMMC4.5 patches from kernel WG
>> >>>      * initial dma-buf patch set and some related components for UMM
>> >>>
>> >>>    - AOSP 3.3 android patch set
>> >>>
>> >>>    A full change log against the 3.3 release is available at:
>> >>>    https://launchpad.net/linux-__linaro/devtrack/12.03
>> >>>
>> >>>    <https://launchpad.net/linux-linaro/devtrack/12.03>
>> >>>
>> >>>    High Priority Known Issues:
>> >>>
>> >>>    - ANDROID_RAM_CONSOLE must be disabled for the android kernel to
>> >>> boot.
>> >>>
>> >>>    _________________________________________________
>> >>>    linaro-dev mailing list
>> >>>    linaro-dev@lists.linaro.org <mailto:linaro-dev@lists.linaro.org>
>> >>>    http://lists.linaro.org/__mailman/listinfo/linaro-dev
>> >>>    <http://lists.linaro.org/mailman/listinfo/linaro-dev>
>> >>>
>> >>>
>> >>
>> >
>>
>>
>>
>> --
>> Zach Pfeffer
>> Android Platform Team Lead, Linaro Platform Teams
>> Linaro.org | Open source software for ARM SoCs
>> Follow Linaro: http://www.facebook.com/pages/Linaro
>> http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog
>
>



--
Zach Pfeffer
Android Platform Team Lead, Linaro Platform Teams
Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linaro
http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog