Guenter,
Please check this v2 patches, thanks.
Anton Vorontsov and David Woodhouse,
Please have a look at this [2/2] patch, thanks.
v1 -> v2 changes:
- Add Documentation/hwmon/abx500 and Documentation/hwmon/abx500
- Make devices which cannot report milli-Celsius invisible
- Add temp5_crit interface
- Re-work the old find_active_thresholds() to threshold_updated()
- Reset updated_min_alarm and updated_max_alarm at the end of each loop
- Update the hyst mechamisn to make it works as real hyst
- Remove non-stand attributes
- Re-order the operations sequence inside probe and remove functions
- Update all the lock usages to eliminate race conditions
- Make attibutes index starts from 0
also changes:
- Since the old [1/2] "ARM: ux500: rename ab8500 to abx500 for hwmon driver"
has been merged by Samuel, so won't send it again.
- Add another new patch "ab8500_btemp: export two symblols" as [2/2] of this
patch set.
Hongbo Zhang (2):
hwmon: add ST-Ericsson ABX500 hwmon driver
ab8500_btemp: export two symblols
Documentation/hwmon/ab8500 | 22 ++
Documentation/hwmon/abx500 | 26 +++
drivers/hwmon/Kconfig | 13 ++
drivers/hwmon/Makefile | 1 +
drivers/hwmon/ab8500.c | 163 +++++++++++++
drivers/hwmon/abx500.c | 544 +++++++++++++++++++++++++++++++++++++++++++
drivers/hwmon/abx500.h | 84 +++++++
drivers/power/ab8500_btemp.c | 2 +
8 files changed, 855 insertions(+)
create mode 100644 Documentation/hwmon/ab8500
create mode 100644 Documentation/hwmon/abx500
create mode 100644 drivers/hwmon/ab8500.c
create mode 100644 drivers/hwmon/abx500.c
create mode 100644 drivers/hwmon/abx500.h
--
1.8.0
Calendar Week 6, 2013: Here is test result summary for Linux Linaro ubuntu
Quantal image on following boards:
1) ARM Versatile Express A9;
2) Samsung Arndale;
3) TI Panda 4430;
4) TI Panda 4460;
5) ST Ericsson Snowball.
Synopsis: ARM DS-5 works well on all boards except STE Snowball; Power
Management test passed on both TI Panda 4430 & 4460; No display on Samsung
Arndale & STE Snowball.
1. ARM Versatile Express A9 + Linux Linaro Quantal (Column J):
https://docs.google.com/a/linaro.org/spreadsheet/ccc?key=0AroPySpr4FnEdFNmV…
It keeps exactly same status as last test result: only "Halt" & "Device
Tree" test failed, all other features work well.
2. Samsung Arndale + Linux Linaro Quantal (Column D):
https://docs.google.com/a/linaro.org/spreadsheet/ccc?key=0AgB-fT5LL31CdGZJS…
"Boot" & "Reboot" work well, HDMI display is unavailable, Power Management
test is not pre-installed in image, but it's as expected, other features
work well.
3. TI Panda 4430 + Linux Linaro Quantal (Column J):
https://docs.google.com/a/linaro.org/spreadsheet/ccc?key=0AroPySpr4FnEdEwwZ…
ARM DS-5 backs to work, only "Device Tree" feature is unavailable, all
others work well. Power Management test also passed on this image.
4. TI Panda 4460 + Linux Linaro Quantal (Column J):
https://docs.google.com/a/linaro.org/spreadsheet/ccc?key=0AroPySpr4FnEdEwwZ…
Only "Device Tree" test failed, all others work well.
5. ST Ericsson Snowball + Linux Linaro Quantal (Column J):
https://docs.google.com/a/linaro.org/spreadsheet/ccc?key=0AroPySpr4FnEdFJ4X…
"Halt" works, but many other features are unavailable, for example: HDMI,
reboot, Ethernet, Device Tree and Power Management.
For the previous week test summary (Linaro 13.01 Release), please refer to
attachment.
Thank you.
Best Regards
Botao Sun
With the recent changes in cpufreq core, we just need to set mask of all
possible cpus into policy->cpus. Rest would be done by core.
Signed-off-by: Viresh Kumar <viresh.kumar(a)linaro.org>
---
drivers/cpufreq/exynos-cpufreq.c | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c
index 7012ea8..81eb84a 100644
--- a/drivers/cpufreq/exynos-cpufreq.c
+++ b/drivers/cpufreq/exynos-cpufreq.c
@@ -227,19 +227,7 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy)
/* set the transition latency value */
policy->cpuinfo.transition_latency = 100000;
- /*
- * EXYNOS4 multi-core processors has 2 cores
- * that the frequency cannot be set independently.
- * Each cpu is bound to the same speed.
- * So the affected cpu is all of the cpus.
- */
- if (num_online_cpus() == 1) {
- cpumask_copy(policy->related_cpus, cpu_possible_mask);
- cpumask_copy(policy->cpus, cpu_online_mask);
- } else {
- policy->shared_type = CPUFREQ_SHARED_TYPE_ANY;
- cpumask_setall(policy->cpus);
- }
+ cpumask_setall(policy->cpus);
return cpufreq_frequency_table_cpuinfo(policy, exynos_info->freq_table);
}
--
1.7.12.rc2.18.g61b472e
We playing around with a new meeting format. We may split this meeting
into 2, 30 min calls depending on how things go.
Agenda:
== Concall details ==
* https://wiki.linaro.org/Resources/ZipConferenceLine
* Code: 6893745032
* Please try not to use the toll-free numbers if you can help it
== Agenda ==
* Common
* Discuss new meeting format, concall
* Issues for ABS?
* Platform
* Connect topics
* AOSP upstreaming, Arndale
* Android Validation and Infrastructure
* galaxynexus-aosp?
* Ideas for making linux-linaro better
* Vishal to send more agenda items
* Mobile Development
* Android optimization
* big.LITTLE
* Memory Hotplug
* Android kernel feature upstreaminging
* General Discussion
* AOB
Feel free to add more topics here or in
https://wiki.linaro.org/Platform/Android/Meetings/2013-02-06.
--
Zach Pfeffer
Android Platform Team Lead, Linaro Platform Teams
Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linarohttp://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog
The sched_mc test is obsolete now and should be removed, if you still want to
use this test for some reason, use tag pm-qa-0.4.0 or earlier.
Signed-off-by: Hongbo Zhang <hongbo.zhang(a)linaro.org>
---
Makefile | 2 --
sched_mc/Android.mk | 18 ------------
sched_mc/Makefile | 25 -----------------
sched_mc/sched_01.sh | 32 ----------------------
sched_mc/sched_01.txt | 1 -
sched_mc/sched_02.sh | 38 -------------------------
sched_mc/sched_02.txt | 1 -
sched_mc/sched_03.sh | 33 ----------------------
sched_mc/sched_03.txt | 1 -
sched_mc/sched_04.sh | 70 -----------------------------------------------
sched_mc/sched_04.txt | 1 -
sched_mc/sched_sanity.sh | 35 ------------------------
sched_mc/sched_sanity.txt | 1 -
13 files changed, 258 deletions(-)
delete mode 100644 sched_mc/Android.mk
delete mode 100644 sched_mc/Makefile
delete mode 100755 sched_mc/sched_01.sh
delete mode 100644 sched_mc/sched_01.txt
delete mode 100755 sched_mc/sched_02.sh
delete mode 100644 sched_mc/sched_02.txt
delete mode 100755 sched_mc/sched_03.sh
delete mode 100644 sched_mc/sched_03.txt
delete mode 100755 sched_mc/sched_04.sh
delete mode 100644 sched_mc/sched_04.txt
delete mode 100755 sched_mc/sched_sanity.sh
delete mode 100644 sched_mc/sched_sanity.txt
diff --git a/Makefile b/Makefile
index fa979e0..52aa60d 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,6 @@ check:
@(cd cpufreq; $(MAKE) check)
@(cd cpuhotplug; $(MAKE) check)
@(cd cpuidle; $(MAKE) check)
- @(cd sched_mc; $(MAKE) check)
# @(cd suspend; $(MAKE) check)
@(cd thermal; $(MAKE) check)
# @(cd powertop; $(MAKE) check)
@@ -39,7 +38,6 @@ uncheck:
@(cd cpufreq; $(MAKE) uncheck)
@(cd cpuhotplug; $(MAKE) uncheck)
@(cd cpuidle; $(MAKE) uncheck)
- @(cd sched_mc; $(MAKE) uncheck)
# @(cd suspend; $(MAKE) uncheck)
@(cd thermal; $(MAKE) uncheck)
diff --git a/sched_mc/Android.mk b/sched_mc/Android.mk
deleted file mode 100644
index f9f9d90..0000000
--- a/sched_mc/Android.mk
+++ /dev/null
@@ -1,18 +0,0 @@
-include $(call all-subdir-makefiles)
-LOCAL_PATH:= $(call my-dir)
-
-module_name = sched
-
-define $(module_name)_add_executable
- include $(CLEAR_VARS)
- LOCAL_MODULE_TAGS := optional
- LOCAL_MODULE_CLASS := tests
- LOCAL_MODULE := $1.sh
- systemtarball: $1.sh
- LOCAL_SRC_FILES := $1.sh
- LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/pm-qa/$(module_name)_mc
- include $(BUILD_PREBUILT)
-endef
-
-test_num := 01 02 03 04
-$(foreach item,$(test_num),$(eval $(call $(module_name)_add_executable, $(module_name)_$(item))))
diff --git a/sched_mc/Makefile b/sched_mc/Makefile
deleted file mode 100644
index a90620c..0000000
--- a/sched_mc/Makefile
+++ /dev/null
@@ -1,25 +0,0 @@
-#
-# PM-QA validation test suite for the power management on Linux
-#
-# Copyright (C) 2011, Linaro Limited.
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# Contributors:
-# Daniel Lezcano <daniel.lezcano(a)linaro.org> (IBM Corporation)
-# - initial API and implementation
-#
-
-include ../Test.mk
\ No newline at end of file
diff --git a/sched_mc/sched_01.sh b/sched_mc/sched_01.sh
deleted file mode 100755
index d4414b6..0000000
--- a/sched_mc/sched_01.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-#
-# PM-QA validation test suite for the power management on Linux
-#
-# Copyright (C) 2011, Linaro Limited.
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# Contributors:
-# Daniel Lezcano <daniel.lezcano(a)linaro.org> (IBM Corporation)
-# - initial API and implementation
-#
-
-# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#sched_…
-
-source ../include/functions.sh
-
-FILES="sched_mc_power_savings"
-
-check_sched_mc_files $FILES
diff --git a/sched_mc/sched_01.txt b/sched_mc/sched_01.txt
deleted file mode 100644
index 6783a3a..0000000
--- a/sched_mc/sched_01.txt
+++ /dev/null
@@ -1 +0,0 @@
-test the presence of the 'sched_mc_power_savings' file
diff --git a/sched_mc/sched_02.sh b/sched_mc/sched_02.sh
deleted file mode 100755
index c7cbc26..0000000
--- a/sched_mc/sched_02.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash
-#
-# PM-QA validation test suite for the power management on Linux
-#
-# Copyright (C) 2011, Linaro Limited.
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# Contributors:
-# Daniel Lezcano <daniel.lezcano(a)linaro.org> (IBM Corporation)
-# - initial API and implementation
-#
-
-# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#sched_…
-
-source ../include/functions.sh
-
-check_physical_package_id() {
-
- local package_id=$CPU_PATH/$1/topology/physical_package_id
- local val=$(cat $package_id)
-
- check "topology is enabled" "test \"$val\" != \"-1\""
-}
-
-for_each_cpu check_physical_package_id || exit 1
diff --git a/sched_mc/sched_02.txt b/sched_mc/sched_02.txt
deleted file mode 100644
index 5493610..0000000
--- a/sched_mc/sched_02.txt
+++ /dev/null
@@ -1 +0,0 @@
-test the topology is implemented in the kernel
diff --git a/sched_mc/sched_03.sh b/sched_mc/sched_03.sh
deleted file mode 100755
index 6520ce5..0000000
--- a/sched_mc/sched_03.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-#
-# PM-QA validation test suite for the power management on Linux
-#
-# Copyright (C) 2011, Linaro Limited.
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# Contributors:
-# Daniel Lezcano <daniel.lezcano(a)linaro.org> (IBM Corporation)
-# - initial API and implementation
-#
-
-# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#sched_…
-
-source ../include/functions.sh
-
-FILES="core_id core_siblings core_siblings_list physical_package_id \
-thread_siblings thread_siblings_list"
-
-for_each_cpu check_topology_files $FILES
diff --git a/sched_mc/sched_03.txt b/sched_mc/sched_03.txt
deleted file mode 100644
index b9e8d6f..0000000
--- a/sched_mc/sched_03.txt
+++ /dev/null
@@ -1 +0,0 @@
-test the topology files are present
diff --git a/sched_mc/sched_04.sh b/sched_mc/sched_04.sh
deleted file mode 100755
index f9266e8..0000000
--- a/sched_mc/sched_04.sh
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/bash
-#
-# PM-QA validation test suite for the power management on Linux
-#
-# Copyright (C) 2011, Linaro Limited.
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# Contributors:
-# Daniel Lezcano <daniel.lezcano(a)linaro.org> (IBM Corporation)
-# - initial API and implementation
-#
-
-# URL : https://wiki.linaro.org/WorkingGroups/PowerManagement/Doc/QA/Scripts#sched_…
-
-source ../include/functions.sh
-
-check_change() {
- local val=$1
- local path=$2
-
- echo $val > $path
-}
-
-check_invalid_change() {
-
- local val=$1
- local path=$2
-
- echo $val > $path
- if [ "$?" != "0" ]; then
- return 0
- fi
-
- return 1
-}
-
-check_sched_mc_change() {
-
- local path=$CPU_PATH/sched_mc_power_savings
- local oldval=$(cat $path)
-
- check "setting value to 0" check_change 0 $path
- check "setting value to 1" check_change 1 $path
- check "setting value to 2" check_change 2 $path
- check "setting invalid value to 3" check_invalid_change 3 $path
- check "setting invalid value to -1" check_invalid_change -1 $path
-
- echo $oldval > $path
-}
-
-if [ $(id -u) != 0 ]; then
- log_skip "run as non-root"
- exit 0
-fi
-
-# check_sched_mc_files sched_mc_power_savings || exit 1
-check_sched_mc_change
diff --git a/sched_mc/sched_04.txt b/sched_mc/sched_04.txt
deleted file mode 100644
index 7f5ed4a..0000000
--- a/sched_mc/sched_04.txt
+++ /dev/null
@@ -1 +0,0 @@
-test the change are effective for the 'sched_mc_power_savings' file
diff --git a/sched_mc/sched_sanity.sh b/sched_mc/sched_sanity.sh
deleted file mode 100755
index 1b1b58b..0000000
--- a/sched_mc/sched_sanity.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-#
-# PM-QA validation test suite for the power management on Linux
-#
-# Copyright (C) 2011, Linaro Limited.
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# Contributors:
-# Daniel Lezcano <daniel.lezcano(a)linaro.org> (IBM Corporation)
-# - initial API and implementation
-#
-
-source ../include/functions.sh
-
-check_sched_mc_sysfs_entry() {
-
- local filepath=$CPU_PATH/sched_mc_power_savings
-
- test -f $filepath && return 1 || return 0
-}
-
-check_sched_mc_sysfs_entry
diff --git a/sched_mc/sched_sanity.txt b/sched_mc/sched_sanity.txt
deleted file mode 100644
index c79c23e..0000000
--- a/sched_mc/sched_sanity.txt
+++ /dev/null
@@ -1 +0,0 @@
-sched_mc is not enabled. Skipping all sched_mc tests...
--
1.8.0
On Tue, Feb 5, 2013 at 6:37 AM, Rafael J. Wysocki <rjw(a)sisk.pl> wrote:
> On Monday, February 04, 2013 04:45:11 PM Nathan Zimmer wrote:
>> I am noticing the cpufreq_driver_lock is quite hot.
>> On an idle 512 system perf shows me most of the system time is spent on this
>> lock. This is quite signifigant as top shows 5% of time in system time.
>> My solution was to first convert the lock to a rwlock and then to the rcu.
>>
>>
>> Nathan Zimmer (2):
>> cpufreq: Convert the cpufreq_driver_lock to a rwlock
>> cpufreq: Convert the cpufreq_driver_lock to use the rcu
>>
>> drivers/cpufreq/cpufreq.c | 139 ++++++++++++++++++++++++++--------------------
>> 1 file changed, 79 insertions(+), 60 deletions(-)
>
> I like these changes.
>
> Viresh, anyone, any comments?
Hi Nathan/Rafael,
Even i liked the basic idea behind the patchset, but didn't like the way it
is divided into patches. For me, it is highly discouraged to undo something
that you added in the same patchset. And you did exactly the same thing.
Patch 2 is revert of 1 + rcu stuff.
So, i would expect a single patch, i.e. merge of both patches + rebased
on latest stuff.
--
viresh