Revision befb1b3c2703897c5b8ffb0044dc5d0e5f27c5d7 authored by Reinette Chatre on 19 September 2018, 17:29:06 UTC, committed by Thomas Gleixner on 28 September 2018, 20:44:53 UTC
It is possible that a failure can occur during the scheduling of a
pinned event. The initial portion of perf_event_read_local() contains
the various error checks an event should pass before it can be
considered valid. Ensure that the potential scheduling failure
of a pinned event is checked for and have a credible error.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: fenghua.yu@intel.com
Cc: tony.luck@intel.com
Cc: acme@kernel.org
Cc: gavin.hindman@intel.com
Cc: jithu.joseph@intel.com
Cc: dave.hansen@intel.com
Cc: hpa@zytor.com
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/6486385d1f30336e9973b24c8c65f5079543d3d3.1537377064.git.reinette.chatre@intel.com

1 parent c307aaf
Raw File
ir35221
Kernel driver ir35221
=====================

Supported chips:
  * Infinion IR35221
    Prefix: 'ir35221'
    Addresses scanned: -
    Datasheet: Datasheet is not publicly available.

Author: Samuel Mendoza-Jonas <sam@mendozajonas.com>


Description
-----------

IR35221 is a Digital DC-DC Multiphase Converter


Usage Notes
-----------

This driver does not probe for PMBus devices. You will have to instantiate
devices explicitly.

Example: the following commands will load the driver for an IR35221
at address 0x70 on I2C bus #4:

# modprobe ir35221
# echo ir35221 0x70 > /sys/bus/i2c/devices/i2c-4/new_device


Sysfs attributes
----------------

curr1_label		"iin"
curr1_input		Measured input current
curr1_max		Maximum current
curr1_max_alarm		Current high alarm

curr[2-3]_label		"iout[1-2]"
curr[2-3]_input		Measured output current
curr[2-3]_crit		Critical maximum current
curr[2-3]_crit_alarm	Current critical high alarm
curr[2-3]_highest	Highest output current
curr[2-3]_lowest	Lowest output current
curr[2-3]_max		Maximum current
curr[2-3]_max_alarm	Current high alarm

in1_label		"vin"
in1_input		Measured input voltage
in1_crit		Critical maximum input voltage
in1_crit_alarm		Input voltage critical high alarm
in1_highest		Highest input voltage
in1_lowest		Lowest input voltage
in1_min			Minimum input voltage
in1_min_alarm		Input voltage low alarm

in[2-3]_label		"vout[1-2]"
in[2-3]_input		Measured output voltage
in[2-3]_lcrit		Critical minimum output voltage
in[2-3]_lcrit_alarm	Output voltage critical low alarm
in[2-3]_crit		Critical maximum output voltage
in[2-3]_crit_alarm	Output voltage critical high alarm
in[2-3]_highest		Highest output voltage
in[2-3]_lowest		Lowest output voltage
in[2-3]_max		Maximum output voltage
in[2-3]_max_alarm	Output voltage high alarm
in[2-3]_min		Minimum output voltage
in[2-3]_min_alarm	Output voltage low alarm

power1_label		"pin"
power1_input		Measured input power
power1_alarm		Input power high alarm
power1_max		Input power limit

power[2-3]_label	"pout[1-2]"
power[2-3]_input	Measured output power
power[2-3]_max		Output power limit
power[2-3]_max_alarm	Output power high alarm

temp[1-2]_input		Measured temperature
temp[1-2]_crit		Critical high temperature
temp[1-2]_crit_alarm	Chip temperature critical high alarm
temp[1-2]_highest	Highest temperature
temp[1-2]_lowest	Lowest temperature
temp[1-2]_max		Maximum temperature
temp[1-2]_max_alarm	Chip temperature high alarm
back to top