18 Jun, 2013
3 commits
-
Conflicts:
drivers/thermal/Kconfig
drivers/thermal/Makefile -
Added documentation describing details of the x86 package temperature
thermal driver.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Zhang Rui -
This driver register CPU digital temperature sensor as a thermal
zone at package level.
Each package will show up as one zone with at max two trip points.
These trip points can be both read and updated. Once a non zero
value is set in the trip point, if the package package temperature
goes above or below this setting, a thermal notification is
generated.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Zhang Rui
13 Jun, 2013
10 commits
-
In case emulated temperature is in use, using the trend
provided by driver layer can lead to bogus situation.
In this case, debugger user would set a temperature value,
but the trend would be from driver computation.To avoid this situation, this patch changes the get_tz_trend()
to consider the emulated temperature whenever that is in use.Cc: Zhang Rui
Cc: Amit Daniel Kachhap
Cc: Durgadoss R
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
Update documentation by adding an example for DRA752 on DT description.
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Grant Likely
Cc: Rob Herring
Cc: Rob Landley
Cc: Greg Kroah-Hartman
Cc: Zhang Rui
Cc: J Keerthy
Cc: devicetree-discuss@lists.ozlabs.org
Cc: linux-doc@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
Add support to TI dra752 chips by adapting the driver
device table.Cc: Zhang Rui
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
This patch adds the thermal data for TI DRA752 chips.
In this change it includes (autogen):
. Register offset definitions
. Bitfields and masks for all registers
. Conversion tableAlso, the thermal limits, thresholds and extrapolation
rules are included. The extrapolation rule is simply
add +2C as margin.All 5 sensors, MPU, GPU, CORE, DSPEVE and IVA, are defined
and exposed. Only MPU has cooling device.Cc: Zhang Rui
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
This patch changes the driver to avoid the usage of IS_ERR_OR_NULL()
macro. This macro can lead to dangerous results, like returning
success (0) during a failure scenario (NULL pointer handling).For this reason this patch is changing the driver after
revisiting the code. These are the cases:
i. For cases in which IS_ERR_OR_NULL() is used for checking
return values of functions that returns either PTR_ERR()
or a valid pointer, it has been translated to IS_ERR() check only.
ii. For cases that a NULL check is still needed, it has been
translated to if (!ptr || IS_ERR(ptr)).Cc: Zhang Rui
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
In order to read the history buffer, it is required to
freeze BG FSM. This patch adds the missing piece of code
to freeze the FSM and also a contention area to avoid
other parts of the code to access the DTEMPs.Cc: Zhang Rui
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
For boards that provide a PCB sensor close to SoC junction
temperature, it is possible to remove the cumulative heat
reported by the SoC temperature sensor.This patch changes the extrapolation computation to consider
an external sensor in the extrapolation equations.Cc: Zhang Rui
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
Add missing irq line for TALERT on DT entry for OMAP5430.
Cc: linux-pm@vger.kernel.org
Cc: Grant Likely
Cc: Rob Herring
Cc: Rob Landley
Cc: Greg Kroah-Hartman
Cc: Zhang Rui
Cc: J Keerthy
Cc: devicetree-discuss@lists.ozlabs.org
Cc: linux-doc@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
Added callback registration for package threshold reports. Also added
a callback to check the rate control implemented in callback or not.
If there is no rate control implemented, then there is a default rate
control similar to core threshold notification by delaying for
CHECK_INTERVAL (5 minutes) between reports.Signed-off-by: Srinivas Pandruvada
Signed-off-by: Zhang Rui
28 May, 2013
12 commits
-
The variable 'descend' is initialized as -1 in function get_property(),
and will never get any chance to be updated by the following code.if (freq != CPUFREQ_ENTRY_INVALID && descend != -1)
descend = !!(freq > table[i].frequency);This makes function get_property() return the wrong frequency for given
cooling level if the frequency table is sorted in ascending. Fix it
by correcting the 'descend' check in if-condition to 'descend == -1'.Signed-off-by: Shawn Guo
Signed-off-by: Zhang Rui -
'spear_thermal_id_table' is always compiled in and the driver
is dependent on OF. Hence use of of_match_ptr is unnecessary.Signed-off-by: Sachin Kamat
Cc: Vincenzo Frascino
Cc: Viresh Kumar
Acked-by: Viresh Kumar
Acked-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
'kirkwood_thermal_id_table' is always compiled in and the driver
is dependent on OF. Hence use of of_match_ptr is unnecessary.Signed-off-by: Sachin Kamat
Cc: Nobuhiro Iwamatsu
Acked-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
'dove_thermal_id_table' is always compiled in and the driver
is dependent on OF. Hence use of of_match_ptr is unnecessary.Signed-off-by: Sachin Kamat
Cc: Andrew Lunn
Acked-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
'armada_thermal_id_table' is always compiled in and the driver
is dependent on OF. Hence use of of_match_ptr is unnecessary.Signed-off-by: Sachin Kamat
Cc: Ezequiel Garcia
Acked-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
Update driver path and status for TI SoC thermal drivers
on MAINTAINERS file.Signed-off-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
This patch moves the ti-soc-thermal driver out of
the staging tree to the thermal tree.Cc: Grant Likely
Cc: Rob Herring
Cc: Rob Landley
Cc: Greg Kroah-Hartman
Cc: Zhang Rui
Cc: Eduardo Valentin
Cc: J Keerthy
Cc: Radhesh Fadnis
Cc: Cyril Roelandt
Cc: devicetree-discuss@lists.ozlabs.org
Cc: linux-doc@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: devel@driverdev.osuosl.org
Cc: linux-pm@vger.kernel.org
Signed-off-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
devm_ioremap_resource does sanity checks on the given resource.
No need to duplicate this in the driver.CC: Ezequiel Garcia
CC: Vincenzo Frascino
Signed-off-by: Zhang Rui
Acked-by: Ezequiel Garcia -
This patch adds a requirement needing .get_trip_temp() callback
function for registering thermal zone device. This function is
used when thermal zone is updated and essential where thermal core
handles thermal trip based only polling way not hw interrupt.Signed-off-by: Jonghwa Lee
Signed-off-by: MyungJoo Ham
Acked-by: Durgadoss R
Signed-off-by: Zhang Rui -
Setting policy results in invalid value error.
% echo "step_wise" > policy
% echo: write error: Invalid argumentNeed clean up of the buffer which "echo" may add based on the arguments, before
comparing aganist list of governor names.Signed-off-by: Andy Shevchenko
Reported-by: Srinivas Pandruvada
Acked-by: Eduardo Valentin
Tested-by: Eduardo Valentin
Signed-off-by: Zhang Rui -
Signed-off-by: Laurent Pinchart
Acked-by: Eduardo Valentin
Signed-off-by: Zhang Rui
20 May, 2013
2 commits
-
Use the newly introduced devm_ioremap_resource().
devm_ioremap_resource() provides its own error messages; so all explicit
error messages can be removed from the failure code paths.CC: Vincenzo Frascino
Signed-off-by: Zhang Rui -
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.Signed-off-by: Wolfram Sang
Acked-by: Eduardo Valentin
Signed-off-by: Zhang Rui
16 May, 2013
11 commits
-
…it/rostedt/linux-trace
Pull tracing fixes from Steven Rostedt:
"This includes a fix to a memory leak when adding filters to traces.Also, Masami Hiramatsu fixed up some minor bugs that were discovered
by sparse."* tag 'trace-fixes-v3.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
tracing/kprobes: Make print_*probe_event static
tracing/kprobes: Fix a sparse warning for incorrect type in assignment
tracing/kprobes: Use rcu_dereference_raw for tp->files
tracing: Fix leaks of filter preds -
Pull x86 fixes from Thomas Gleixner:
- Fix for a CPU hot-add deadlock in microcode update code
- Fix for idle consolidation fallout
- Documentation update for initial kernel direct mapping
* 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/mm: Add missing comments for initial kernel direct mapping
x86/microcode: Add local mutex to fix physical CPU hot-add deadlock
x86: Fix idle consolidation fallout -
Pull perf fixes from Thomas Gleixner:
- Fix for a task exit cleanup race caused by a missing a preempt
disable- Cleanup of the event notification functions with a massive reduction
of duplicated code* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf: Factor out auxiliary events notification
perf: Fix EXIT event notification -
Pull timer fixes from Thomas Gleixner:
- Cure for not using zalloc in the first place, which leads to random
crashes with CPUMASK_OFF_STACK.- Revert a user space visible change which broke udev
- Add a missing cpu_online early return introduced by the new full
dyntick conversions- Plug a long standing race in the timer wheel cpu hotplug code.
Sigh...- Cleanup NOHZ per cpu data on cpu down to prevent stale data on cpu
up.* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
time: Revert ALWAYS_USE_PERSISTENT_CLOCK compile time optimizaitons
timer: Don't reinitialize the cpu base lock during CPU_UP_PREPARE
tick: Don't invoke tick_nohz_stop_sched_tick() if the cpu is offline
tick: Cleanup NOHZ per cpu data on cpu down
tick: Use zalloc_cpumask_var for allocating offstack cpumasks -
Pull core fixes from Thomas Gleixner:
- Two fixlets for the fallout of the generic idle task conversion
- Documentation update
* 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
rcu/idle: Wrap cpu-idle poll mode within rcu_idle_enter/exit
idle: Fix hlt/nohlt command-line handling in new generic idle
kthread: Document ways of reducing OS jitter due to per-CPU kthreads -
Pull ARM fixes from Russell King:
"A small number of fixes for stuff from the last merge window, and in
one case (IRQ time accounting) the previous merge window."* 'fixes' of git://git.linaro.org/people/rmk/linux-arm:
ARM: 7720/1: ARM v6/v7 cmpxchg64 shouldn't clear upper 32 bits of the old/new value
ARM: 7715/1: MCPM: adapt to GIC changes after upstream merge
ARM: 7714/1: mmc: mmci: Ensure return value of regulator_enable() is checked
ARM: 7712/1: Remove trailing whitespace in arch/arm/Makefile
ARM: 7711/1: dove: fix Dove cpu type from V7 to PJ4
ARM: finally enable IRQ time accounting config -
Pull Ceph fixes from Sage Weil:
"Yes, this is a much larger pull than I would like after -rc1. There
are a few things included:- a few fixes for leaks and incorrect assertions
- a few patches fixing behavior when mapped images are resized
- handling for cloned/layered images that are flattened out from
underneath the clientThe last bit was non-trivial, and there is some code movement and
associated cleanup mixed in. This was ready and was meant to go in
last week but I missed the boat on Friday. My only excuse is that I
was waiting for an all clear from the testing and there were many
other shiny things to distract me.Strictly speaking, handling the flatten case isn't a regression and
could wait, so if you like we can try to pull the series apart, but
Alex and I would much prefer to have it all in as it is a case real
users will hit with 3.10."* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: (33 commits)
rbd: re-submit flattened write request (part 2)
rbd: re-submit write request for flattened clone
rbd: re-submit read request for flattened clone
rbd: detect when clone image is flattened
rbd: reference count parent requests
rbd: define parent image request routines
rbd: define rbd_dev_unparent()
rbd: don't release write request until necessary
rbd: get parent info on refresh
rbd: ignore zero-overlap parent
rbd: support reading parent page data for writes
rbd: fix parent request size assumption
libceph: init sent and completed when starting
rbd: kill rbd_img_request_get()
rbd: only set up watch for mapped images
rbd: set mapping read-only flag in rbd_add()
rbd: support reading parent page data
rbd: fix an incorrect assertion condition
rbd: define rbd_dev_v2_header_info()
rbd: get rid of trivial v1 header wrappers
... -
According to sparse warning, print_*probe_event static because
those functions are not directly called from outside.Link: http://lkml.kernel.org/r/20130513115839.6545.83067.stgit@mhiramat-M0-7522
Cc: Srikar Dronamraju
Cc: Oleg Nesterov
Cc: Tom Zanussi
Cc: Frederic Weisbecker
Cc: Ingo Molnar
Signed-off-by: Masami Hiramatsu
Signed-off-by: Steven Rostedt -
Fix a sparse warning about the rcu operated pointer is
defined without __rcu address space.Link: http://lkml.kernel.org/r/20130513115837.6545.23322.stgit@mhiramat-M0-7522
Cc: Srikar Dronamraju
Cc: Oleg Nesterov
Cc: Tom Zanussi
Cc: Frederic Weisbecker
Cc: Ingo Molnar
Signed-off-by: Masami Hiramatsu
Signed-off-by: Steven Rostedt -
Use rcu_dereference_raw() for accessing tp->files. Because the
write-side uses rcu_assign_pointer() for memory barrier,
the read-side also has to use rcu_dereference_raw() with
read memory barrier.Link: http://lkml.kernel.org/r/20130513115834.6545.17022.stgit@mhiramat-M0-7522
Cc: Srikar Dronamraju
Cc: Oleg Nesterov
Cc: Tom Zanussi
Cc: Frederic Weisbecker
Cc: Ingo Molnar
Signed-off-by: Masami Hiramatsu
Signed-off-by: Steven Rostedt -
Special preds are created when folding a series of preds that
can be done in serial. These are allocated in an ops field of
the pred structure. But they were never freed, causing memory
leaks.This was discovered using the kmemleak checker:
unreferenced object 0xffff8800797fd5e0 (size 32):
comm "swapper/0", pid 1, jiffies 4294690605 (age 104.608s)
hex dump (first 32 bytes):
00 00 01 00 03 00 05 00 07 00 09 00 0b 00 0d 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[] kmemleak_alloc+0x73/0x98
[] kmemleak_alloc_recursive.constprop.42+0x16/0x18
[] __kmalloc+0xd7/0x125
[] kcalloc.constprop.24+0x2d/0x2f
[] fold_pred_tree_cb+0xa9/0xf4
[] walk_pred_tree+0x47/0xcc
[] replace_preds.isra.20+0x6f8/0x72f
[] create_filter+0x4e/0x8b
[] ftrace_test_event_filter+0x5a/0x155
[] do_one_initcall+0xa0/0x137
[] kernel_init_freeable+0x14d/0x1dc
[] kernel_init+0xe/0xdb
[] ret_from_fork+0x7c/0xb0
[] 0xffffffffffffffffCc: Tom Zanussi
Cc: stable@vger.kernel.org # 2.6.39+
Signed-off-by: Steven Rostedt
15 May, 2013
2 commits
-
Kay Sievers noted that the ALWAYS_USE_PERSISTENT_CLOCK config,
which enables some minor compile time optimization to avoid
uncessary code in mostly the suspend/resume path could cause
problems for userland.In particular, the dependency for RTC_HCTOSYS on
!ALWAYS_USE_PERSISTENT_CLOCK, which avoids setting the time
twice and simplifies suspend/resume, has the side effect
of causing the /sys/class/rtc/rtcN/hctosys flag to always be
zero, and this flag is commonly used by udev to setup the
/dev/rtc symlink to /dev/rtcN, which can cause pain for
older applications.While the udev rules could use some work to be less fragile,
breaking userland should strongly be avoided. Additionally
the compile time optimizations are fairly minor, and the code
being optimized is likely to be reworked in the future, so
lets revert this change.Reported-by: Kay Sievers
Signed-off-by: John Stultz
Cc: stable #3.9
Cc: Feng Tang
Cc: Jason Gunthorpe
Link: http://lkml.kernel.org/r/1366828376-18124-1-git-send-email-john.stultz@linaro.org
Signed-off-by: Thomas Gleixner -
Pull ext4 update from Ted Ts'o:
"Fixed regressions (two stability regressions and a performance
regression) introduced during the 3.10-rc1 merge window.Also included is a bug fix relating to allocating blocks after
resizing an ext3 file system when using the ext4 file system driver"* tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
jbd,jbd2: fix oops in jbd2_journal_put_journal_head()
ext4: revert "ext4: use io_end for multiple bios"
ext4: limit group search loop for non-extent files
ext4: fix fio regression