[PATCH] Input: trackpoint: document sysfs interface

2018-03-02 Thread Aishwarya Pant
Descriptions have been collected from git commit logs, code commits and
the TrackPoint System Version 4.0 Engineering Specification.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 .../ABI/testing/sysfs-devices-platform-trackpoint  | 115 +
 1 file changed, 115 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-trackpoint

diff --git a/Documentation/ABI/testing/sysfs-devices-platform-trackpoint 
b/Documentation/ABI/testing/sysfs-devices-platform-trackpoint
new file mode 100644
index ..df11901a6b3d
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-devices-platform-trackpoint
@@ -0,0 +1,115 @@
+What:  /sys/devices/platform/i8042/.../sensitivity
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Trackpoint sensitivity.
+
+What:  /sys/devices/platform/i8042/.../intertia
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Negative inertia factor. High values cause the cursor to
+   snap backward when the trackpoint is released.
+
+What:  /sys/devices/platform/i8042/.../reach
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Backup range for z-axis press.
+
+What:  /sys/devices/platform/i8042/.../draghys
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) The drag hysteresis controls how hard it is to drag with
+   z-axis pressed.
+
+What:  /sys/devices/platform/i8042/.../mindrag
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Minimum amount of force needed to trigger dragging.
+
+What:  /sys/devices/platform/i8042/.../speed
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Speed of the trackpoint cursor.
+
+What:  /sys/devices/platform/i8042/.../thresh
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Minimum value for z-axis force required to trigger a press
+   or release, relative to the running average.
+
+What:  /sys/devices/platform/i8042/.../upthresh
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) The offset from the running average required to generate a
+   select (click) on z-axis on release.
+
+What:  /sys/devices/platform/i8042/.../ztime
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) This attribute determines how sharp a press has to be in
+   order to be recognized.
+
+What:  /sys/devices/platform/i8042/.../jenks
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Minimum curvature in degrees required to generate a double
+   click without a release.
+
+What:  /sys/devices/platform/i8042/.../skipback
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) When the skipback bit is set, backup cursor movement during
+   releases from drags will be suppressed. The default value for
+   this bit is 0.
+
+What:  /sys/devices/platform/i8042/.../ext_dev
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Disable (0) or enable (1) external pointing device.
+
+What:  /sys/devices/platform/i8042/.../press_to_select
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Writing a value of 1 to this file will enable the Press to
+   Select functions like tapping the control stick to simulate a
+   left click, and writing 0 will disable it.
+
+What:  /sys/devices/platform/i8042/.../drift_time
+Date:  Dec, 2014
+KernelVersion: 3.19
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) This parameter controls the period of time to test for a
+   ‘hands off’ condition (i.e. when no force is applied) before a
+   drift (noise) calibration occurs.
+
+   IBM Trackpoints have a feature to compensate for drift by
+   recalibrating themselves periodically. By default, if for 0.5
+   seconds there is no change in position, it's used as the new
+   zero. This duration is too low. Often, the calibration happens
+ 

[PATCH] Input: trackpoint: document sysfs interface

2018-03-02 Thread Aishwarya Pant
Descriptions have been collected from git commit logs, code commits and
the TrackPoint System Version 4.0 Engineering Specification.

Signed-off-by: Aishwarya Pant 
---
 .../ABI/testing/sysfs-devices-platform-trackpoint  | 115 +
 1 file changed, 115 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-trackpoint

diff --git a/Documentation/ABI/testing/sysfs-devices-platform-trackpoint 
b/Documentation/ABI/testing/sysfs-devices-platform-trackpoint
new file mode 100644
index ..df11901a6b3d
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-devices-platform-trackpoint
@@ -0,0 +1,115 @@
+What:  /sys/devices/platform/i8042/.../sensitivity
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Trackpoint sensitivity.
+
+What:  /sys/devices/platform/i8042/.../intertia
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Negative inertia factor. High values cause the cursor to
+   snap backward when the trackpoint is released.
+
+What:  /sys/devices/platform/i8042/.../reach
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Backup range for z-axis press.
+
+What:  /sys/devices/platform/i8042/.../draghys
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) The drag hysteresis controls how hard it is to drag with
+   z-axis pressed.
+
+What:  /sys/devices/platform/i8042/.../mindrag
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Minimum amount of force needed to trigger dragging.
+
+What:  /sys/devices/platform/i8042/.../speed
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Speed of the trackpoint cursor.
+
+What:  /sys/devices/platform/i8042/.../thresh
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Minimum value for z-axis force required to trigger a press
+   or release, relative to the running average.
+
+What:  /sys/devices/platform/i8042/.../upthresh
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) The offset from the running average required to generate a
+   select (click) on z-axis on release.
+
+What:  /sys/devices/platform/i8042/.../ztime
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) This attribute determines how sharp a press has to be in
+   order to be recognized.
+
+What:  /sys/devices/platform/i8042/.../jenks
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Minimum curvature in degrees required to generate a double
+   click without a release.
+
+What:  /sys/devices/platform/i8042/.../skipback
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) When the skipback bit is set, backup cursor movement during
+   releases from drags will be suppressed. The default value for
+   this bit is 0.
+
+What:  /sys/devices/platform/i8042/.../ext_dev
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Disable (0) or enable (1) external pointing device.
+
+What:  /sys/devices/platform/i8042/.../press_to_select
+Date:  Aug, 2005
+KernelVersion: 2.6.14
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Writing a value of 1 to this file will enable the Press to
+   Select functions like tapping the control stick to simulate a
+   left click, and writing 0 will disable it.
+
+What:  /sys/devices/platform/i8042/.../drift_time
+Date:  Dec, 2014
+KernelVersion: 3.19
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) This parameter controls the period of time to test for a
+   ‘hands off’ condition (i.e. when no force is applied) before a
+   drift (noise) calibration occurs.
+
+   IBM Trackpoints have a feature to compensate for drift by
+   recalibrating themselves periodically. By default, if for 0.5
+   seconds there is no change in position, it's used as the new
+   zero. This duration is too low. Often, the calibration happens
+   when the trackpoint is in fact

[PATCH] HID: logitech-hidpp: document sysfs interface

2018-03-02 Thread Aishwarya Pant
Descriptions have been collected from git commit logs.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 .../ABI/testing/sysfs-driver-hid-logitech-hidpp   | 19 +++
 1 file changed, 19 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-driver-hid-logitech-hidpp

diff --git a/Documentation/ABI/testing/sysfs-driver-hid-logitech-hidpp 
b/Documentation/ABI/testing/sysfs-driver-hid-logitech-hidpp
new file mode 100644
index ..d8f831f2d6b5
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-driver-hid-logitech-hidpp
@@ -0,0 +1,19 @@
+What:  /sys/bus/hid/drivers/logitech-hidpp-device//range
+Date:  Jan, 2016
+KernelVersion: 4.6
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) This attribute controls the amount of 'turn' permitted in
+   Logitech G920 wheel. Reading from the file shows the current
+   range of the steering wheel. Writing a value within the min and
+   max boundary sets the range of the wheel.
+
+What:  
/sys/bus/hid/drivers/logitech-hidpp-device//builtin_power_supply
+Date:  Apr, 2017
+KernelVersion: 4.12
+Contact:   linux-in...@vger.kernel.org
+Description:
+   Presence of this file indicates that HID++ driver is capable of
+   handling battery properties in the kernel. This way, upower can
+   add a udev rule to decide whether or not it should use the
+   internal unifying support or the generic kernel one.
-- 
2.16.2



[PATCH] HID: logitech-hidpp: document sysfs interface

2018-03-02 Thread Aishwarya Pant
Descriptions have been collected from git commit logs.

Signed-off-by: Aishwarya Pant 
---
 .../ABI/testing/sysfs-driver-hid-logitech-hidpp   | 19 +++
 1 file changed, 19 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-driver-hid-logitech-hidpp

diff --git a/Documentation/ABI/testing/sysfs-driver-hid-logitech-hidpp 
b/Documentation/ABI/testing/sysfs-driver-hid-logitech-hidpp
new file mode 100644
index ..d8f831f2d6b5
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-driver-hid-logitech-hidpp
@@ -0,0 +1,19 @@
+What:  /sys/bus/hid/drivers/logitech-hidpp-device//range
+Date:  Jan, 2016
+KernelVersion: 4.6
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) This attribute controls the amount of 'turn' permitted in
+   Logitech G920 wheel. Reading from the file shows the current
+   range of the steering wheel. Writing a value within the min and
+   max boundary sets the range of the wheel.
+
+What:  
/sys/bus/hid/drivers/logitech-hidpp-device//builtin_power_supply
+Date:  Apr, 2017
+KernelVersion: 4.12
+Contact:   linux-in...@vger.kernel.org
+Description:
+   Presence of this file indicates that HID++ driver is capable of
+   handling battery properties in the kernel. This way, upower can
+   add a udev rule to decide whether or not it should use the
+   internal unifying support or the generic kernel one.
-- 
2.16.2



[PATCH] HID: ntrig: document sysfs interface

2018-03-01 Thread Aishwarya Pant
Add sysfs documentation for N-Trig touchscreens under Documentation/ABI.
Descriptions have been collected from code comments.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 Documentation/ABI/testing/sysfs-driver-hid-ntrig | 70 
 1 file changed, 70 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-driver-hid-ntrig

diff --git a/Documentation/ABI/testing/sysfs-driver-hid-ntrig 
b/Documentation/ABI/testing/sysfs-driver-hid-ntrig
new file mode 100644
index ..e574a5625efe
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-driver-hid-ntrig
@@ -0,0 +1,70 @@
+What:  /sys/bus/hid/drivers/ntrig//activate_slack
+Date:  May, 2010
+KernelVersion: 2.6.35
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Number of contact frames ignored before acknowledging the
+   start of activity (activating touch).
+
+
+What:  /sys/bus/hid/drivers/ntrig//decativate_slack
+Date:  May, 2010
+KernelVersion: 2.6.35
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Number of empty (no contact) frames ignored before
+   acknowledging the end of activity (deactivating touch).
+
+   When the last finger is removed from the device, it sends a
+   number of empty frames. By holding off on deactivation for a few
+   frames false erroneous disconnects can be tolerated, where the
+   sensor may mistakenly not detect a finger that is still present.
+
+
+What:  /sys/bus/hid/drivers/ntrig//activation_width
+What:  /sys/bus/hid/drivers/ntrig//activation_height
+Date:  May, 2010
+KernelVersion: 2.6.35
+Contact:   linux-in...@vger.kernel.org
+Description:
+   Threholds to override activation slack.
+
+   activation_width:   (RW) Width threshold to immediately
+   start processing touch events.
+
+   activation_height:  (RW) Height threshold to immediately
+   start processing touch events.
+
+
+What:  /sys/bus/hid/drivers/ntrig//min_width
+What:  /sys/bus/hid/drivers/ntrig//min_height
+Date:  May, 2010
+KernelVersion: 2.6.35
+Contact:   linux-in...@vger.kernel.org
+Description:
+   Minimum size contact accepted.
+
+   min_width:  (RW) Minimum touch contact width to decide
+   activation and activity.
+
+   min_height: (RW) Minimum touch contact height to decide
+   activation and activity.
+
+
+What:  /sys/bus/hid/drivers/ntrig//sensor_physical_width
+What:  /sys/bus/hid/drivers/ntrig//sensor_physical_height
+Date:  May, 2010
+KernelVersion: 2.6.35
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RO) These are internal ranges not used for normal events but
+   useful for tuning.
+
+
+What:  /sys/bus/hid/drivers/ntrig//sensor_logical_width
+What:  /sys/bus/hid/drivers/ntrig//sensor_logical_height
+Date:  May, 2010
+KernelVersion: 2.6.35
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RO) The range for positions reported during activity.
-- 
2.16.2



[PATCH] HID: ntrig: document sysfs interface

2018-03-01 Thread Aishwarya Pant
Add sysfs documentation for N-Trig touchscreens under Documentation/ABI.
Descriptions have been collected from code comments.

Signed-off-by: Aishwarya Pant 
---
 Documentation/ABI/testing/sysfs-driver-hid-ntrig | 70 
 1 file changed, 70 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-driver-hid-ntrig

diff --git a/Documentation/ABI/testing/sysfs-driver-hid-ntrig 
b/Documentation/ABI/testing/sysfs-driver-hid-ntrig
new file mode 100644
index ..e574a5625efe
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-driver-hid-ntrig
@@ -0,0 +1,70 @@
+What:  /sys/bus/hid/drivers/ntrig//activate_slack
+Date:  May, 2010
+KernelVersion: 2.6.35
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Number of contact frames ignored before acknowledging the
+   start of activity (activating touch).
+
+
+What:  /sys/bus/hid/drivers/ntrig//decativate_slack
+Date:  May, 2010
+KernelVersion: 2.6.35
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RW) Number of empty (no contact) frames ignored before
+   acknowledging the end of activity (deactivating touch).
+
+   When the last finger is removed from the device, it sends a
+   number of empty frames. By holding off on deactivation for a few
+   frames false erroneous disconnects can be tolerated, where the
+   sensor may mistakenly not detect a finger that is still present.
+
+
+What:  /sys/bus/hid/drivers/ntrig//activation_width
+What:  /sys/bus/hid/drivers/ntrig//activation_height
+Date:  May, 2010
+KernelVersion: 2.6.35
+Contact:   linux-in...@vger.kernel.org
+Description:
+   Threholds to override activation slack.
+
+   activation_width:   (RW) Width threshold to immediately
+   start processing touch events.
+
+   activation_height:  (RW) Height threshold to immediately
+   start processing touch events.
+
+
+What:  /sys/bus/hid/drivers/ntrig//min_width
+What:  /sys/bus/hid/drivers/ntrig//min_height
+Date:  May, 2010
+KernelVersion: 2.6.35
+Contact:   linux-in...@vger.kernel.org
+Description:
+   Minimum size contact accepted.
+
+   min_width:  (RW) Minimum touch contact width to decide
+   activation and activity.
+
+   min_height: (RW) Minimum touch contact height to decide
+   activation and activity.
+
+
+What:  /sys/bus/hid/drivers/ntrig//sensor_physical_width
+What:  /sys/bus/hid/drivers/ntrig//sensor_physical_height
+Date:  May, 2010
+KernelVersion: 2.6.35
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RO) These are internal ranges not used for normal events but
+   useful for tuning.
+
+
+What:  /sys/bus/hid/drivers/ntrig//sensor_logical_width
+What:  /sys/bus/hid/drivers/ntrig//sensor_logical_height
+Date:  May, 2010
+KernelVersion: 2.6.35
+Contact:   linux-in...@vger.kernel.org
+Description:
+   (RO) The range for positions reported during activity.
-- 
2.16.2



[PATCH] char/bsr: add sysfs interface documentation

2018-03-01 Thread Aishwarya Pant
Descriptions have collected from code comments and by reading through
code.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 Documentation/ABI/testing/sysfs-class-bsr | 25 +
 1 file changed, 25 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-bsr

diff --git a/Documentation/ABI/testing/sysfs-class-bsr 
b/Documentation/ABI/testing/sysfs-class-bsr
new file mode 100644
index ..7bf145d32cbc
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-bsr
@@ -0,0 +1,25 @@
+What:  /sys/class/bsr/bsr*/bsr_size
+Date:  Jul, 2008
+KernelVersion: 2.6.27
+Contact:   Arnd Bergmann <a...@arndb.de>,
+   Greg Kroah-Hartman <gre...@linuxfoundation.org>
+Description:
+   (RO) Size of the barrier-synchronization register (BSR)
+   register in bytes.
+
+What:  /sys/class/bsr/bsr*/bsr_length
+Date:  Jul, 2008
+KernelVersion: 2.6.27
+Contact:   Arnd Bergmann <a...@arndb.de>,
+   Greg Kroah-Hartman <gre...@linuxfoundation.org>
+Description:
+   (RO) The length of memory region that can be mapped in bytes.
+
+What:  /sys/class/bsr/bsr*/bsr_stride
+Date:  Jul, 2008
+KernelVersion: 2.6.27
+Contact:   Arnd Bergmann <a...@arndb.de>,
+   Greg Kroah-Hartman <gre...@linuxfoundation.org>
+Description:
+   (RO) The stride or the interval at which the allocated BSR bytes
+   repeat within the mapping.
-- 
2.16.2



[PATCH] char/bsr: add sysfs interface documentation

2018-03-01 Thread Aishwarya Pant
Descriptions have collected from code comments and by reading through
code.

Signed-off-by: Aishwarya Pant 
---
 Documentation/ABI/testing/sysfs-class-bsr | 25 +
 1 file changed, 25 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-bsr

diff --git a/Documentation/ABI/testing/sysfs-class-bsr 
b/Documentation/ABI/testing/sysfs-class-bsr
new file mode 100644
index ..7bf145d32cbc
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-bsr
@@ -0,0 +1,25 @@
+What:  /sys/class/bsr/bsr*/bsr_size
+Date:  Jul, 2008
+KernelVersion: 2.6.27
+Contact:   Arnd Bergmann ,
+   Greg Kroah-Hartman 
+Description:
+   (RO) Size of the barrier-synchronization register (BSR)
+   register in bytes.
+
+What:  /sys/class/bsr/bsr*/bsr_length
+Date:  Jul, 2008
+KernelVersion: 2.6.27
+Contact:   Arnd Bergmann ,
+   Greg Kroah-Hartman 
+Description:
+   (RO) The length of memory region that can be mapped in bytes.
+
+What:  /sys/class/bsr/bsr*/bsr_stride
+Date:  Jul, 2008
+KernelVersion: 2.6.27
+Contact:   Arnd Bergmann ,
+   Greg Kroah-Hartman 
+Description:
+   (RO) The stride or the interval at which the allocated BSR bytes
+   repeat within the mapping.
-- 
2.16.2



[PATCH] char/ipmi: add documentation for sysfs interface

2018-02-24 Thread Aishwarya Pant
This is an attempt to document the sysfs interface for the IPMI drivers.
Descriptions were collected from v2.0 of the IPMI specification and from
code comments.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 .../ABI/testing/sysfs-devices-platform-ipmi| 238 +
 1 file changed, 238 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-ipmi

diff --git a/Documentation/ABI/testing/sysfs-devices-platform-ipmi 
b/Documentation/ABI/testing/sysfs-devices-platform-ipmi
new file mode 100644
index ..2a781e7513b7
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-devices-platform-ipmi
@@ -0,0 +1,238 @@
+What:  /sys/devices/platform/ipmi_bmc.*/firmware_revision
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) The major and minor revision of the firmware.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/aux_firmware_revision
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Holds additional information about the firmware revision,
+   such as boot block or internal data structure version numbers.
+   The meanings of the numbers are specific to the vendor
+   identified by Manufacturer ID.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/revision
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Device revision. Useful for identifying if significant
+   hardware changes have been made to the implementation of the
+   management controller.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/provides_device_sdrs
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Indicates whether device provides device sensor data
+   records (1) or not (0).
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/device_id
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Device id is specified by the manufacturer identified by
+   the Manufacturer ID field. This field allows controller specific
+   software to identify the unique application command, OEM
+   fields, and functionality that are provided by the controller
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/additional_device_support
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Lists the IPMI ‘logical device’ commands and functions
+   that the controller supports that are in addition to the
+   mandatory IPM and Application commands.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/ipmi_version
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Displays the IPMI Command Specification Version.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/manufacturer_id
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Identifies the manufacturer responsible for the
+   specification of functionality of the vendor (OEM)-specific
+   commands, codes, and interfaces used in the controller.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/product_id
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Displays a number that identifies a particular system,
+   module, add-in card, or board set. The number is specified
+   according to the manufacturer given by Manufacturer ID.
+
+For detailed definitions of the above attributes, refer to section 20.1 'Get
+Device ID Command' of the IPMI specification v2.0.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/guid
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) A GUID (Globally Unique ID), also referred to as a UUID
+   (Universally Unique Identifier), for the management controller,
+   as described in section 20.8 'Get Device GUID Command' of the
+   IPMI specification v2.0.
+
+
+What:  /sys/devices/platform/ipmi_si.*/type
+Date:  Sep, 2017
+KernelVersion: v4.15
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) The device interface for IPMI "kcs", "smic", "bt" or
+   "invalid"
+
+What:  /sys/devices

[PATCH] char/ipmi: add documentation for sysfs interface

2018-02-24 Thread Aishwarya Pant
This is an attempt to document the sysfs interface for the IPMI drivers.
Descriptions were collected from v2.0 of the IPMI specification and from
code comments.

Signed-off-by: Aishwarya Pant 
---
 .../ABI/testing/sysfs-devices-platform-ipmi| 238 +
 1 file changed, 238 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-ipmi

diff --git a/Documentation/ABI/testing/sysfs-devices-platform-ipmi 
b/Documentation/ABI/testing/sysfs-devices-platform-ipmi
new file mode 100644
index ..2a781e7513b7
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-devices-platform-ipmi
@@ -0,0 +1,238 @@
+What:  /sys/devices/platform/ipmi_bmc.*/firmware_revision
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) The major and minor revision of the firmware.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/aux_firmware_revision
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Holds additional information about the firmware revision,
+   such as boot block or internal data structure version numbers.
+   The meanings of the numbers are specific to the vendor
+   identified by Manufacturer ID.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/revision
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Device revision. Useful for identifying if significant
+   hardware changes have been made to the implementation of the
+   management controller.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/provides_device_sdrs
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Indicates whether device provides device sensor data
+   records (1) or not (0).
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/device_id
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Device id is specified by the manufacturer identified by
+   the Manufacturer ID field. This field allows controller specific
+   software to identify the unique application command, OEM
+   fields, and functionality that are provided by the controller
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/additional_device_support
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Lists the IPMI ‘logical device’ commands and functions
+   that the controller supports that are in addition to the
+   mandatory IPM and Application commands.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/ipmi_version
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Displays the IPMI Command Specification Version.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/manufacturer_id
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Identifies the manufacturer responsible for the
+   specification of functionality of the vendor (OEM)-specific
+   commands, codes, and interfaces used in the controller.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/product_id
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) Displays a number that identifies a particular system,
+   module, add-in card, or board set. The number is specified
+   according to the manufacturer given by Manufacturer ID.
+
+For detailed definitions of the above attributes, refer to section 20.1 'Get
+Device ID Command' of the IPMI specification v2.0.
+
+
+What:  /sys/devices/platform/ipmi_bmc.*/guid
+Date:  Mar, 2006
+KernelVersion: v2.6.17
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) A GUID (Globally Unique ID), also referred to as a UUID
+   (Universally Unique Identifier), for the management controller,
+   as described in section 20.8 'Get Device GUID Command' of the
+   IPMI specification v2.0.
+
+
+What:  /sys/devices/platform/ipmi_si.*/type
+Date:  Sep, 2017
+KernelVersion: v4.15
+Contact:   openipmi-develo...@lists.sourceforge.net
+Description:
+   (RO) The device interface for IPMI "kcs", "smic", "bt" or
+   "invalid"
+
+What:  /sys/devices/platform/ipmi_si.*/idl

[RESEND PATCH v2] Documentation/ABI: add sysfs interface for s6e63m0 lcd driver

2018-02-23 Thread Aishwarya Pant
Document sysfs attributes of s6e63m0 lcd panel driver by looking through
git logs and reading code.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
Changes in v2:
- Convert spaces to tabs

 Documentation/ABI/testing/sysfs-class-lcd-s6e63m0 | 27 +++
 1 file changed, 27 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-lcd-s6e63m0

diff --git a/Documentation/ABI/testing/sysfs-class-lcd-s6e63m0 
b/Documentation/ABI/testing/sysfs-class-lcd-s6e63m0
new file mode 100644
index ..ae0a2d3dcc07
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-lcd-s6e63m0
@@ -0,0 +1,27 @@
+sysfs interface for the S6E63M0 AMOLED LCD panel driver
+---
+
+What:  /sys/class/lcd//gamma_mode
+Date:  May, 2010
+KernelVersion: v2.6.35
+Contact:   dri-de...@lists.freedesktop.org
+Description:
+   (RW) Read or write the gamma mode. Following three modes are
+   supported:
+   0 - gamma value 2.2,
+   1 - gamma value 1.9 and
+   2 - gamma value 1.7.
+
+
+What:  /sys/class/lcd//gamma_table
+Date:  May, 2010
+KernelVersion: v2.6.35
+Contact:   dri-de...@lists.freedesktop.org
+Description:
+   (RO) Displays the size of the gamma table i.e. the number of
+   gamma modes available.
+
+This is a backlight lcd driver. These interfaces are an extension to the API
+documented in Documentation/ABI/testing/sysfs-class-lcd and in
+Documentation/ABI/stable/sysfs-class-backlight (under
+/sys/class/backlight//).
-- 
2.16.2



[RESEND PATCH v2] Documentation/ABI: add sysfs interface for s6e63m0 lcd driver

2018-02-23 Thread Aishwarya Pant
Document sysfs attributes of s6e63m0 lcd panel driver by looking through
git logs and reading code.

Signed-off-by: Aishwarya Pant 
---
Changes in v2:
- Convert spaces to tabs

 Documentation/ABI/testing/sysfs-class-lcd-s6e63m0 | 27 +++
 1 file changed, 27 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-lcd-s6e63m0

diff --git a/Documentation/ABI/testing/sysfs-class-lcd-s6e63m0 
b/Documentation/ABI/testing/sysfs-class-lcd-s6e63m0
new file mode 100644
index ..ae0a2d3dcc07
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-lcd-s6e63m0
@@ -0,0 +1,27 @@
+sysfs interface for the S6E63M0 AMOLED LCD panel driver
+---
+
+What:  /sys/class/lcd//gamma_mode
+Date:  May, 2010
+KernelVersion: v2.6.35
+Contact:   dri-de...@lists.freedesktop.org
+Description:
+   (RW) Read or write the gamma mode. Following three modes are
+   supported:
+   0 - gamma value 2.2,
+   1 - gamma value 1.9 and
+   2 - gamma value 1.7.
+
+
+What:  /sys/class/lcd//gamma_table
+Date:  May, 2010
+KernelVersion: v2.6.35
+Contact:   dri-de...@lists.freedesktop.org
+Description:
+   (RO) Displays the size of the gamma table i.e. the number of
+   gamma modes available.
+
+This is a backlight lcd driver. These interfaces are an extension to the API
+documented in Documentation/ABI/testing/sysfs-class-lcd and in
+Documentation/ABI/stable/sysfs-class-backlight (under
+/sys/class/backlight//).
-- 
2.16.2



[RESEND PATCH v2] Documentation/ABI: clean up sysfs-class-pktcdvd

2018-02-23 Thread Aishwarya Pant
Clean up the sysfs documentation such that it is in the same format as
described in Documentation/ABI/README. Mainly, the patch moves the
attribute names to the 'What:' field. This might be useful for scripting
and tracking changes in the ABI.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
Changes in v2:
- Convert spaces to tabs

 Documentation/ABI/testing/sysfs-class-pktcdvd | 129 +++---
 1 file changed, 75 insertions(+), 54 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-class-pktcdvd 
b/Documentation/ABI/testing/sysfs-class-pktcdvd
index b1c3f0263359..dde4f26d0780 100644
--- a/Documentation/ABI/testing/sysfs-class-pktcdvd
+++ b/Documentation/ABI/testing/sysfs-class-pktcdvd
@@ -1,60 +1,81 @@
-What:   /sys/class/pktcdvd/
-Date:   Oct. 2006
-KernelVersion:  2.6.20
-Contact:Thomas Maier <bal...@justmail.de>
-Description:
-
 sysfs interface
 ---
+The pktcdvd module (packet writing driver) creates the following files in the
+sysfs: ( is in the format major:minor)
+
+What:  /sys/class/pktcdvd/add
+What:  /sys/class/pktcdvd/remove
+What:  /sys/class/pktcdvd/device_map
+Date:  Oct. 2006
+KernelVersion: 2.6.20
+Contact:   Thomas Maier <bal...@justmail.de>
+Description:
+
+   add:(WO) Write a block device id (major:minor) to
+   create a new pktcdvd device and map it to the
+   block device.
+
+   remove: (WO) Write the pktcdvd device id (major:minor)
+   to remove the pktcdvd device.
+
+   device_map: (RO) Shows the device mapping in format:
+   pktcdvd[0-7]  
+
+
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/dev
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/uevent
+Date:  Oct. 2006
+KernelVersion: 2.6.20
+Contact:   Thomas Maier <bal...@justmail.de>
+Description:
+   dev:(RO) Device id
+
+   uevent: (WO) To send a uevent
+
+
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/stat/packets_started
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/stat/packets_finished
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_written
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_read
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_read_gather
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/stat/reset
+Date:  Oct. 2006
+KernelVersion: 2.6.20
+Contact:   Thomas Maier <bal...@justmail.de>
+Description:
+   packets_started:(RO) Number of started packets.
+
+   packets_finished:   (RO) Number of finished packets.
+
+   kb_written: (RO) kBytes written.
+
+   kb_read:(RO) kBytes read.
+
+   kb_read_gather: (RO) kBytes read to fill write packets.
+
+   reset:  (WO) Write any value to it to reset
+   pktcdvd device statistic values, like
+   bytes read/written.
+
+
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/write_queue/size
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/write_queue/congestion_off
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/write_queue/congestion_on
+Date:  Oct. 2006
+KernelVersion: 2.6.20
+Contact:   Thomas Maier <bal...@justmail.de>
+Description:
+   size:   (RO) Contains the size of the bio write queue.
+
+   congestion_off: (RW) If bio write queue size is below this mark,
+   accept new bio requests from the block layer.
 
-The pktcdvd module (packet writing driver) creates
-these files in the sysfs:
-( is in format  major:minor )
-
-/sys/class/pktcdvd/
-add(0200)  Write a block device id (major:minor)
-   to create a new pktcdvd device and map
-   it to the block device.
-
-remove (0200)  Write the pktcdvd device id (major:minor)
-   to it to remove the pktcdvd device.
-
-device_map (0444)  Shows the device mapping in format:
- pktcdvd[0-7]  
-
-/sys/class/pktcdvd/pktcdvd[0-7]/
-dev   (0444) Device id
-uevent(0200) To send an uevent.
-
-/sys/class/pktcdvd/pktcdvd[0-7]/stat/
-packets_started   (0444) Number of started packets.
-packets_finished  (0444) Number of finished packets.
-
-kb_written(0444) kBytes written.
-kb_read   (0444) kBytes read.
-kb_read_gather(0444) kBytes read to fill write packets.
-
-reset (0200) Write any value to it to reset
- pktcdvd device statistic values, like
- bytes read/written.
-
-/sys/cl

[RESEND PATCH v2] Documentation/ABI: clean up sysfs-class-pktcdvd

2018-02-23 Thread Aishwarya Pant
Clean up the sysfs documentation such that it is in the same format as
described in Documentation/ABI/README. Mainly, the patch moves the
attribute names to the 'What:' field. This might be useful for scripting
and tracking changes in the ABI.

Signed-off-by: Aishwarya Pant 
---
Changes in v2:
- Convert spaces to tabs

 Documentation/ABI/testing/sysfs-class-pktcdvd | 129 +++---
 1 file changed, 75 insertions(+), 54 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-class-pktcdvd 
b/Documentation/ABI/testing/sysfs-class-pktcdvd
index b1c3f0263359..dde4f26d0780 100644
--- a/Documentation/ABI/testing/sysfs-class-pktcdvd
+++ b/Documentation/ABI/testing/sysfs-class-pktcdvd
@@ -1,60 +1,81 @@
-What:   /sys/class/pktcdvd/
-Date:   Oct. 2006
-KernelVersion:  2.6.20
-Contact:Thomas Maier 
-Description:
-
 sysfs interface
 ---
+The pktcdvd module (packet writing driver) creates the following files in the
+sysfs: ( is in the format major:minor)
+
+What:  /sys/class/pktcdvd/add
+What:  /sys/class/pktcdvd/remove
+What:  /sys/class/pktcdvd/device_map
+Date:  Oct. 2006
+KernelVersion: 2.6.20
+Contact:   Thomas Maier 
+Description:
+
+   add:(WO) Write a block device id (major:minor) to
+   create a new pktcdvd device and map it to the
+   block device.
+
+   remove: (WO) Write the pktcdvd device id (major:minor)
+   to remove the pktcdvd device.
+
+   device_map: (RO) Shows the device mapping in format:
+   pktcdvd[0-7]  
+
+
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/dev
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/uevent
+Date:  Oct. 2006
+KernelVersion: 2.6.20
+Contact:   Thomas Maier 
+Description:
+   dev:(RO) Device id
+
+   uevent: (WO) To send a uevent
+
+
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/stat/packets_started
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/stat/packets_finished
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_written
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_read
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/stat/kb_read_gather
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/stat/reset
+Date:  Oct. 2006
+KernelVersion: 2.6.20
+Contact:   Thomas Maier 
+Description:
+   packets_started:(RO) Number of started packets.
+
+   packets_finished:   (RO) Number of finished packets.
+
+   kb_written: (RO) kBytes written.
+
+   kb_read:(RO) kBytes read.
+
+   kb_read_gather: (RO) kBytes read to fill write packets.
+
+   reset:  (WO) Write any value to it to reset
+   pktcdvd device statistic values, like
+   bytes read/written.
+
+
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/write_queue/size
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/write_queue/congestion_off
+What:  /sys/class/pktcdvd/pktcdvd[0-7]/write_queue/congestion_on
+Date:  Oct. 2006
+KernelVersion: 2.6.20
+Contact:   Thomas Maier 
+Description:
+   size:   (RO) Contains the size of the bio write queue.
+
+   congestion_off: (RW) If bio write queue size is below this mark,
+   accept new bio requests from the block layer.
 
-The pktcdvd module (packet writing driver) creates
-these files in the sysfs:
-( is in format  major:minor )
-
-/sys/class/pktcdvd/
-add(0200)  Write a block device id (major:minor)
-   to create a new pktcdvd device and map
-   it to the block device.
-
-remove (0200)  Write the pktcdvd device id (major:minor)
-   to it to remove the pktcdvd device.
-
-device_map (0444)  Shows the device mapping in format:
- pktcdvd[0-7]  
-
-/sys/class/pktcdvd/pktcdvd[0-7]/
-dev   (0444) Device id
-uevent(0200) To send an uevent.
-
-/sys/class/pktcdvd/pktcdvd[0-7]/stat/
-packets_started   (0444) Number of started packets.
-packets_finished  (0444) Number of finished packets.
-
-kb_written(0444) kBytes written.
-kb_read   (0444) kBytes read.
-kb_read_gather(0444) kBytes read to fill write packets.
-
-reset (0200) Write any value to it to reset
- pktcdvd device statistic values, like
- bytes read/written.
-
-/sys/class/pktcdvd/pktcdvd[0-7]/write_queue/
-size  (0444) Contains the size of the bio write
- queue

Re: [PATCH] acpi: nfit: document sysfs interface

2018-02-23 Thread Aishwarya Pant
On Wed, Feb 21, 2018 at 03:46:06PM -0800, Dan Williams wrote:



> 
> So, this looks great and is something I've had on my backlog for a
> while. That said this is a bit incomplete. These attributes are
> relative to the the "nd" bus which is the libnvdimm sub-system sysfs
> interface. This document describes that sysfs layout [3]. Ideally that
> content would be converted into Documentation/ABI format and merged
> with what you have done here into an overall
> Documentation/ABI/testing/sysfs-bus-nvdimm file.
> 
> I realize that's quite a bit more work, so I'm fine if we start with
> the nfit attributes and save that follow on work for a separate patch
> in the future.

Thanks for the review!

I'll keep the libnvdim interface in my backlog for now. I just sent a revision
of the nfit patch with the suggested changes.

Aishwarya

> 
> [3]: 
> https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git/tree/Documentation/nvdimm/nvdimm.txt?h=libnvdimm-for-next


Re: [PATCH] acpi: nfit: document sysfs interface

2018-02-23 Thread Aishwarya Pant
On Wed, Feb 21, 2018 at 03:46:06PM -0800, Dan Williams wrote:



> 
> So, this looks great and is something I've had on my backlog for a
> while. That said this is a bit incomplete. These attributes are
> relative to the the "nd" bus which is the libnvdimm sub-system sysfs
> interface. This document describes that sysfs layout [3]. Ideally that
> content would be converted into Documentation/ABI format and merged
> with what you have done here into an overall
> Documentation/ABI/testing/sysfs-bus-nvdimm file.
> 
> I realize that's quite a bit more work, so I'm fine if we start with
> the nfit attributes and save that follow on work for a separate patch
> in the future.

Thanks for the review!

I'll keep the libnvdim interface in my backlog for now. I just sent a revision
of the nfit patch with the suggested changes.

Aishwarya

> 
> [3]: 
> https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git/tree/Documentation/nvdimm/nvdimm.txt?h=libnvdimm-for-next


[PATCH v2] acpi: nfit: document sysfs interface

2018-02-23 Thread Aishwarya Pant
This is an attempt to document the nfit sysfs interface. The
descriptions have been collected from git commit logs and the ACPI
specification 6.2.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
Changes in v2:
- Add descriptions for range_index and ecc_unit_size
- Edit various descriptions as suggested

 Documentation/ABI/testing/sysfs-bus-nfit | 233 +++
 1 file changed, 233 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-nfit

diff --git a/Documentation/ABI/testing/sysfs-bus-nfit 
b/Documentation/ABI/testing/sysfs-bus-nfit
new file mode 100644
index ..619eb8ca0f99
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-bus-nfit
@@ -0,0 +1,233 @@
+For all of the nmem device attributes under nfit/*, see the 'NVDIMM Firmware
+Interface Table (NFIT)' section in the ACPI specification
+(http://www.uefi.org/specifications) for more details.
+
+What:  /sys/bus/nd/devices/nmemX/nfit/serial
+Date:  Jun, 2015
+KernelVersion: v4.2
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Serial number of the NVDIMM (non-volatile dual in-line
+   memory module), assigned by the module vendor.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/handle
+Date:  Apr, 2015
+KernelVersion: v4.2
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The address (given by the _ADR object) of the device on its
+   parent bus of the NVDIMM device containing the NVDIMM region.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/device
+Date:  Apr, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Device id for the NVDIMM, assigned by the module vendor.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/rev_id
+Date:  Jun, 2015
+KernelVersion: v4.2
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Revision of the NVDIMM, assigned by the module vendor.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/phys_id
+Date:  Apr, 2015
+KernelVersion: v4.2
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Handle (i.e., instance number) for the SMBIOS (system
+   management BIOS) Memory Device structure describing the NVDIMM
+   containing the NVDIMM region.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/flags
+Date:  Jun, 2015
+KernelVersion: v4.2
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The flags in the NFIT memory device sub-structure indicate
+   the state of the data on the nvdimm relative to its energy
+   source or last "flush to persistence".
+
+   The attribute is a translation of the 'NVDIMM State Flags' field
+   in section 5.2.25.3 'NVDIMM Region Mapping' Structure of the
+   ACPI specification 6.2.
+
+   The health states are "save_fail", "restore_fail", "flush_fail",
+   "not_armed", "smart_event", "map_fail" and "smart_notify".
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/format
+What:  /sys/bus/nd/devices/nmemX/nfit/format1
+What:  /sys/bus/nd/devices/nmemX/nfit/formats
+Date:  Apr, 2016
+KernelVersion: v4.7
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The interface codes indicate support for persistent memory
+   mapped directly into system physical address space and / or a
+   block aperture access mechanism to the NVDIMM media.
+   The 'formats' attribute displays the number of supported
+   interfaces.
+
+   This layout is compatible with existing libndctl binaries that
+   only expect one code per-dimm as they will ignore
+   nmemX/nfit/formats and nmemX/nfit/formatN.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/vendor
+Date:  Apr, 2016
+KernelVersion: v4.7
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Vendor id of the NVDIMM.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/dsm_mask
+Date:  May, 2016
+KernelVersion: v4.7
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The bitmask indicates the supported device specific control
+   functions relative to the NVDIMM command family supported by the
+   device
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/family
+Date:  Apr, 2016
+KernelVersion: v4.7
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Displays the NVDIMM family command sets. Values
+   0, 1, 2 and 3 correspond to NVDIMM_FAMILY_INTEL,
+   NVDIMM_FAMILY_HPE1, NVDIMM_FAMILY_HPE2 and NVDIMM_FAMILY_MSFT
+   respectively.
+
+   See the specifications for thes

[PATCH v2] acpi: nfit: document sysfs interface

2018-02-23 Thread Aishwarya Pant
This is an attempt to document the nfit sysfs interface. The
descriptions have been collected from git commit logs and the ACPI
specification 6.2.

Signed-off-by: Aishwarya Pant 
---
Changes in v2:
- Add descriptions for range_index and ecc_unit_size
- Edit various descriptions as suggested

 Documentation/ABI/testing/sysfs-bus-nfit | 233 +++
 1 file changed, 233 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-nfit

diff --git a/Documentation/ABI/testing/sysfs-bus-nfit 
b/Documentation/ABI/testing/sysfs-bus-nfit
new file mode 100644
index ..619eb8ca0f99
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-bus-nfit
@@ -0,0 +1,233 @@
+For all of the nmem device attributes under nfit/*, see the 'NVDIMM Firmware
+Interface Table (NFIT)' section in the ACPI specification
+(http://www.uefi.org/specifications) for more details.
+
+What:  /sys/bus/nd/devices/nmemX/nfit/serial
+Date:  Jun, 2015
+KernelVersion: v4.2
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Serial number of the NVDIMM (non-volatile dual in-line
+   memory module), assigned by the module vendor.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/handle
+Date:  Apr, 2015
+KernelVersion: v4.2
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The address (given by the _ADR object) of the device on its
+   parent bus of the NVDIMM device containing the NVDIMM region.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/device
+Date:  Apr, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Device id for the NVDIMM, assigned by the module vendor.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/rev_id
+Date:  Jun, 2015
+KernelVersion: v4.2
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Revision of the NVDIMM, assigned by the module vendor.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/phys_id
+Date:  Apr, 2015
+KernelVersion: v4.2
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Handle (i.e., instance number) for the SMBIOS (system
+   management BIOS) Memory Device structure describing the NVDIMM
+   containing the NVDIMM region.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/flags
+Date:  Jun, 2015
+KernelVersion: v4.2
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The flags in the NFIT memory device sub-structure indicate
+   the state of the data on the nvdimm relative to its energy
+   source or last "flush to persistence".
+
+   The attribute is a translation of the 'NVDIMM State Flags' field
+   in section 5.2.25.3 'NVDIMM Region Mapping' Structure of the
+   ACPI specification 6.2.
+
+   The health states are "save_fail", "restore_fail", "flush_fail",
+   "not_armed", "smart_event", "map_fail" and "smart_notify".
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/format
+What:  /sys/bus/nd/devices/nmemX/nfit/format1
+What:  /sys/bus/nd/devices/nmemX/nfit/formats
+Date:  Apr, 2016
+KernelVersion: v4.7
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The interface codes indicate support for persistent memory
+   mapped directly into system physical address space and / or a
+   block aperture access mechanism to the NVDIMM media.
+   The 'formats' attribute displays the number of supported
+   interfaces.
+
+   This layout is compatible with existing libndctl binaries that
+   only expect one code per-dimm as they will ignore
+   nmemX/nfit/formats and nmemX/nfit/formatN.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/vendor
+Date:  Apr, 2016
+KernelVersion: v4.7
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Vendor id of the NVDIMM.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/dsm_mask
+Date:  May, 2016
+KernelVersion: v4.7
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The bitmask indicates the supported device specific control
+   functions relative to the NVDIMM command family supported by the
+   device
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/family
+Date:  Apr, 2016
+KernelVersion: v4.7
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Displays the NVDIMM family command sets. Values
+   0, 1, 2 and 3 correspond to NVDIMM_FAMILY_INTEL,
+   NVDIMM_FAMILY_HPE1, NVDIMM_FAMILY_HPE2 and NVDIMM_FAMILY_MSFT
+   respectively.
+
+   See the specifications for these command famil

[PATCH v2] block: rbd: update sysfs interface

2018-02-23 Thread Aishwarya Pant
The existing sysfs interface has been updated to be in the same format
as described in Documentation/ABI/README. This will be useful for
scripting and tracking changes in the ABI. Attributes have been grouped
by functionality and/or the date on which they were added.

There are a couple of more changes:
- The attributes have been annotated with file permissions RO/RW/WO.
- Added description of the bus attribute supported_features

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
Changes in v2:
- Update dates and kernel version. Sorry, my scripts have been acting up :/
- Update contact information. Would it be more appropriate to use the mailing
  list ceph-de...@vger.kernel.org in the contact section?
- (WO) -> (RO) in image_id
- Fix typo pool_idr -> pool_id

 Documentation/ABI/testing/sysfs-bus-rbd | 203 +++-
 1 file changed, 122 insertions(+), 81 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-bus-rbd 
b/Documentation/ABI/testing/sysfs-bus-rbd
index f208ac58d613..cc30bee8b5f4 100644
--- a/Documentation/ABI/testing/sysfs-bus-rbd
+++ b/Documentation/ABI/testing/sysfs-bus-rbd
@@ -1,121 +1,162 @@
-What:  /sys/bus/rbd/
-Date:  November 2010
-Contact:   Yehuda Sadeh <yeh...@newdream.net>,
-   Sage Weil <s...@newdream.net>
+What:  /sys/bus/rbd/add
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   Sage Weil <s...@newdream.net>
 Description:
+   (WO) Add rbd block device.
 
-Being used for adding and removing rbd block devices.
+   Usage: 
[]
 
-Usage: []
+$ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add
 
- $ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add
+   The snapshot name can be "-" or omitted to map the image
+   read/write. A  will be assigned for any registered block
+   device. If snapshot is used, it will be mapped read-only.
 
-The snapshot name can be "-" or omitted to map the image read/write. A 
-will be assigned for any registered block device. If snapshot is used, it will
-be mapped read-only.
 
-Usage:  [force]
+What:  /sys/bus/rbd/remove
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   Sage Weil <s...@newdream.net>
+Description:
+   (WO) Remove rbd block device.
+
+   Usage:  [force]
 
- $ echo 2 > /sys/bus/rbd/remove
+$ echo 2 > /sys/bus/rbd/remove
+
+   Optional "force" argument which when passed will wait for
+   running requests and then unmap the image. Requests sent to the
+   driver after initiating the removal will be failed. (August
+   2016, since 4.9.)
 
-Optional "force" argument which when passed will wait for running requests and
-then unmap the image. Requests sent to the driver after initiating the removal
-will be failed.  (August 2016, since 4.9.)
 
 What:  /sys/bus/rbd/add_single_major
-Date:  December 2013
-KernelVersion: 3.14
-Contact:   Sage Weil <s...@inktank.com>
-Description:   Available only if rbd module is inserted with single_major
+Date:  Dec, 2013
+KernelVersion: v3.14
+Contact:   Sage Weil <s...@newdream.net>
+Description:
+   (WO) Available only if rbd module is inserted with single_major
parameter set to true.
-   Usage is the same as for /sys/bus/rbd/add.  If present,
+
+   Usage is the same as for /sys/bus/rbd/add. If present, this
should be used instead of the latter: any attempts to use
-   /sys/bus/rbd/add if /sys/bus/rbd/add_single_major is
-   available will fail for backwards compatibility reasons.
+   /sys/bus/rbd/add if /sys/bus/rbd/add_single_major is available
+   will fail for backwards compatibility reasons.
+
 
 What:  /sys/bus/rbd/remove_single_major
-Date:  December 2013
-KernelVersion: 3.14
-Contact:   Sage Weil <s...@inktank.com>
-Description:   Available only if rbd module is inserted with single_major
+Date:  Dec, 2013
+KernelVersion: v3.14
+Contact:   Sage Weil <s...@newdream.net>
+Description:
+   (WO) Available only if rbd module is inserted with single_major
parameter set to true.
-   Usage is the same as for /sys/bus/rbd/remove.  If present,
+
+   Usage is the same as for /sys/bus/rbd/remove. If present, this
should be used instead of the latter: any attempts to use
/sys/bus/rbd/remove if /sys/bus/rbd/remove_single_major is
available will fail for backwards compatibility reasons.
 
-Entries under /sys/bus/rbd/devices//
-
-
-client_addr
-
-   The ceph unique client en

[PATCH v2] block: rbd: update sysfs interface

2018-02-23 Thread Aishwarya Pant
The existing sysfs interface has been updated to be in the same format
as described in Documentation/ABI/README. This will be useful for
scripting and tracking changes in the ABI. Attributes have been grouped
by functionality and/or the date on which they were added.

There are a couple of more changes:
- The attributes have been annotated with file permissions RO/RW/WO.
- Added description of the bus attribute supported_features

Signed-off-by: Aishwarya Pant 
---
Changes in v2:
- Update dates and kernel version. Sorry, my scripts have been acting up :/
- Update contact information. Would it be more appropriate to use the mailing
  list ceph-de...@vger.kernel.org in the contact section?
- (WO) -> (RO) in image_id
- Fix typo pool_idr -> pool_id

 Documentation/ABI/testing/sysfs-bus-rbd | 203 +++-
 1 file changed, 122 insertions(+), 81 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-bus-rbd 
b/Documentation/ABI/testing/sysfs-bus-rbd
index f208ac58d613..cc30bee8b5f4 100644
--- a/Documentation/ABI/testing/sysfs-bus-rbd
+++ b/Documentation/ABI/testing/sysfs-bus-rbd
@@ -1,121 +1,162 @@
-What:  /sys/bus/rbd/
-Date:  November 2010
-Contact:   Yehuda Sadeh ,
-   Sage Weil 
+What:  /sys/bus/rbd/add
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   Sage Weil 
 Description:
+   (WO) Add rbd block device.
 
-Being used for adding and removing rbd block devices.
+   Usage: 
[]
 
-Usage: []
+$ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add
 
- $ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add
+   The snapshot name can be "-" or omitted to map the image
+   read/write. A  will be assigned for any registered block
+   device. If snapshot is used, it will be mapped read-only.
 
-The snapshot name can be "-" or omitted to map the image read/write. A 
-will be assigned for any registered block device. If snapshot is used, it will
-be mapped read-only.
 
-Usage:  [force]
+What:  /sys/bus/rbd/remove
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   Sage Weil 
+Description:
+   (WO) Remove rbd block device.
+
+   Usage:  [force]
 
- $ echo 2 > /sys/bus/rbd/remove
+$ echo 2 > /sys/bus/rbd/remove
+
+   Optional "force" argument which when passed will wait for
+   running requests and then unmap the image. Requests sent to the
+   driver after initiating the removal will be failed. (August
+   2016, since 4.9.)
 
-Optional "force" argument which when passed will wait for running requests and
-then unmap the image. Requests sent to the driver after initiating the removal
-will be failed.  (August 2016, since 4.9.)
 
 What:  /sys/bus/rbd/add_single_major
-Date:  December 2013
-KernelVersion: 3.14
-Contact:   Sage Weil 
-Description:   Available only if rbd module is inserted with single_major
+Date:  Dec, 2013
+KernelVersion: v3.14
+Contact:   Sage Weil 
+Description:
+   (WO) Available only if rbd module is inserted with single_major
parameter set to true.
-   Usage is the same as for /sys/bus/rbd/add.  If present,
+
+   Usage is the same as for /sys/bus/rbd/add. If present, this
should be used instead of the latter: any attempts to use
-   /sys/bus/rbd/add if /sys/bus/rbd/add_single_major is
-   available will fail for backwards compatibility reasons.
+   /sys/bus/rbd/add if /sys/bus/rbd/add_single_major is available
+   will fail for backwards compatibility reasons.
+
 
 What:  /sys/bus/rbd/remove_single_major
-Date:  December 2013
-KernelVersion: 3.14
-Contact:   Sage Weil 
-Description:   Available only if rbd module is inserted with single_major
+Date:  Dec, 2013
+KernelVersion: v3.14
+Contact:   Sage Weil 
+Description:
+   (WO) Available only if rbd module is inserted with single_major
parameter set to true.
-   Usage is the same as for /sys/bus/rbd/remove.  If present,
+
+   Usage is the same as for /sys/bus/rbd/remove. If present, this
should be used instead of the latter: any attempts to use
/sys/bus/rbd/remove if /sys/bus/rbd/remove_single_major is
available will fail for backwards compatibility reasons.
 
-Entries under /sys/bus/rbd/devices//
-
-
-client_addr
-
-   The ceph unique client entity_addr_t (address + nonce).
-   The format is :/: '1.2.3.4:1234/5678' or
-   '[1:2:3:4:5:6:7:8]:1234/5678'.  (August 2016, since 4.9.)
-
-client_id
-
-   The ceph unique client id that was assigned for this specific 

[PATCH] xen/blkback: update sysfs interface documentation

2018-02-20 Thread Aishwarya Pant
Add documentation for statistic attribute ds_req - the number of
discarded requests.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 Documentation/ABI/stable/sysfs-bus-xen-backend | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/ABI/stable/sysfs-bus-xen-backend 
b/Documentation/ABI/stable/sysfs-bus-xen-backend
index 3d5951c8bf5f..20ef835785ec 100644
--- a/Documentation/ABI/stable/sysfs-bus-xen-backend
+++ b/Documentation/ABI/stable/sysfs-bus-xen-backend
@@ -73,3 +73,10 @@ KernelVersion:   3.0
 Contact:   Konrad Rzeszutek Wilk <konrad.w...@oracle.com>
 Description:
 Number of sectors written by the frontend.
+
+What:  /sys/bus/xen-backend/devices/vbd-*/statistics/ds_req
+Date:  October 2011
+KernelVersion: 3.1
+Contact:   Konrad Rzeszutek Wilk <konrad.w...@oracle.com>
+Description:
+Number of discard requests from the frontend.
-- 
2.16.1



[PATCH] xen/blkback: update sysfs interface documentation

2018-02-20 Thread Aishwarya Pant
Add documentation for statistic attribute ds_req - the number of
discarded requests.

Signed-off-by: Aishwarya Pant 
---
 Documentation/ABI/stable/sysfs-bus-xen-backend | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/ABI/stable/sysfs-bus-xen-backend 
b/Documentation/ABI/stable/sysfs-bus-xen-backend
index 3d5951c8bf5f..20ef835785ec 100644
--- a/Documentation/ABI/stable/sysfs-bus-xen-backend
+++ b/Documentation/ABI/stable/sysfs-bus-xen-backend
@@ -73,3 +73,10 @@ KernelVersion:   3.0
 Contact:   Konrad Rzeszutek Wilk 
 Description:
 Number of sectors written by the frontend.
+
+What:  /sys/bus/xen-backend/devices/vbd-*/statistics/ds_req
+Date:  October 2011
+KernelVersion: 3.1
+Contact:   Konrad Rzeszutek Wilk 
+Description:
+Number of discard requests from the frontend.
-- 
2.16.1



[PATCH] block: rbd: update sysfs interface

2018-02-20 Thread Aishwarya Pant
The existing sysfs interface has been updated to be in the same format
as described in Documentation/ABI/README. This will be useful for
scripting and tracking changes in the ABI. Attributes have been grouped
by functionality and/or the date on which they were added.

There are a couple of more changes:
- The attributes have been annotated with file permissions RO/RW/WO.
- Added description of the bus attribute supported_features

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 Documentation/ABI/testing/sysfs-bus-rbd | 202 +++-
 1 file changed, 122 insertions(+), 80 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-bus-rbd 
b/Documentation/ABI/testing/sysfs-bus-rbd
index f208ac58d613..9549e9b0fcf8 100644
--- a/Documentation/ABI/testing/sysfs-bus-rbd
+++ b/Documentation/ABI/testing/sysfs-bus-rbd
@@ -1,121 +1,163 @@
-What:  /sys/bus/rbd/
-Date:  November 2010
+What:  /sys/bus/rbd/add
+What:  /sys/bus/rbd/remove
+Date:  Jan, 2012
+KernelVersion: v3.10
 Contact:   Yehuda Sadeh <yeh...@newdream.net>,
Sage Weil <s...@newdream.net>
 Description:
+   add : (WO) Add rbd block device.
 
-Being used for adding and removing rbd block devices.
+   Usage: 
[]
 
-Usage: []
+$ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add
 
- $ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add
+   The snapshot name can be "-" or omitted to map the image
+   read/write. A  will be assigned for any registered block
+   device. If snapshot is used, it will be mapped read-only.
 
-The snapshot name can be "-" or omitted to map the image read/write. A 
-will be assigned for any registered block device. If snapshot is used, it will
-be mapped read-only.
+   remove: (WO) Remove rbd block device.
 
-Usage:  [force]
+   Usage:  [force]
 
- $ echo 2 > /sys/bus/rbd/remove
+$ echo 2 > /sys/bus/rbd/remove
+
+   Optional "force" argument which when passed will wait for
+   running requests and then unmap the image. Requests sent to the
+   driver after initiating the removal will be failed. (August
+   2016, since 4.9.)
 
-Optional "force" argument which when passed will wait for running requests and
-then unmap the image. Requests sent to the driver after initiating the removal
-will be failed.  (August 2016, since 4.9.)
 
 What:  /sys/bus/rbd/add_single_major
-Date:  December 2013
-KernelVersion: 3.14
-Contact:   Sage Weil <s...@inktank.com>
-Description:   Available only if rbd module is inserted with single_major
+Date:  Dec, 2013
+KernelVersion: v3.14
+Contact:   Yehuda Sadeh <yeh...@newdream.net>,
+   Sage Weil <s...@newdream.net>
+Description:
+   (WO) Available only if rbd module is inserted with single_major
parameter set to true.
-   Usage is the same as for /sys/bus/rbd/add.  If present,
+
+   Usage is the same as for /sys/bus/rbd/add. If present, this
should be used instead of the latter: any attempts to use
-   /sys/bus/rbd/add if /sys/bus/rbd/add_single_major is
-   available will fail for backwards compatibility reasons.
+   /sys/bus/rbd/add if /sys/bus/rbd/add_single_major is available
+   will fail for backwards compatibility reasons.
+
 
 What:  /sys/bus/rbd/remove_single_major
-Date:  December 2013
-KernelVersion: 3.14
-Contact:   Sage Weil <s...@inktank.com>
-Description:   Available only if rbd module is inserted with single_major
+Date:  Dec, 2013
+KernelVersion: v3.14
+Contact:   Yehuda Sadeh <yeh...@newdream.net>,
+   Sage Weil <s...@newdream.net>
+Description:
+   (WO) Available only if rbd module is inserted with single_major
parameter set to true.
-   Usage is the same as for /sys/bus/rbd/remove.  If present,
+
+   Usage is the same as for /sys/bus/rbd/remove. If present, this
should be used instead of the latter: any attempts to use
/sys/bus/rbd/remove if /sys/bus/rbd/remove_single_major is
available will fail for backwards compatibility reasons.
 
-Entries under /sys/bus/rbd/devices//
-
-
-client_addr
-
-   The ceph unique client entity_addr_t (address + nonce).
-   The format is :/: '1.2.3.4:1234/5678' or
-   '[1:2:3:4:5:6:7:8]:1234/5678'.  (August 2016, since 4.9.)
-
-client_id
-
-   The ceph unique client id that was assigned for this specific session.
-
-cluster_fsid
-
-   The ceph cluster UUID.  (August 2016, since 4.9.)
-
-

[PATCH] block: rbd: update sysfs interface

2018-02-20 Thread Aishwarya Pant
The existing sysfs interface has been updated to be in the same format
as described in Documentation/ABI/README. This will be useful for
scripting and tracking changes in the ABI. Attributes have been grouped
by functionality and/or the date on which they were added.

There are a couple of more changes:
- The attributes have been annotated with file permissions RO/RW/WO.
- Added description of the bus attribute supported_features

Signed-off-by: Aishwarya Pant 
---
 Documentation/ABI/testing/sysfs-bus-rbd | 202 +++-
 1 file changed, 122 insertions(+), 80 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-bus-rbd 
b/Documentation/ABI/testing/sysfs-bus-rbd
index f208ac58d613..9549e9b0fcf8 100644
--- a/Documentation/ABI/testing/sysfs-bus-rbd
+++ b/Documentation/ABI/testing/sysfs-bus-rbd
@@ -1,121 +1,163 @@
-What:  /sys/bus/rbd/
-Date:  November 2010
+What:  /sys/bus/rbd/add
+What:  /sys/bus/rbd/remove
+Date:  Jan, 2012
+KernelVersion: v3.10
 Contact:   Yehuda Sadeh ,
Sage Weil 
 Description:
+   add : (WO) Add rbd block device.
 
-Being used for adding and removing rbd block devices.
+   Usage: 
[]
 
-Usage: []
+$ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add
 
- $ echo "192.168.0.1 name=admin rbd foo" > /sys/bus/rbd/add
+   The snapshot name can be "-" or omitted to map the image
+   read/write. A  will be assigned for any registered block
+   device. If snapshot is used, it will be mapped read-only.
 
-The snapshot name can be "-" or omitted to map the image read/write. A 
-will be assigned for any registered block device. If snapshot is used, it will
-be mapped read-only.
+   remove: (WO) Remove rbd block device.
 
-Usage:  [force]
+   Usage:  [force]
 
- $ echo 2 > /sys/bus/rbd/remove
+$ echo 2 > /sys/bus/rbd/remove
+
+   Optional "force" argument which when passed will wait for
+   running requests and then unmap the image. Requests sent to the
+   driver after initiating the removal will be failed. (August
+   2016, since 4.9.)
 
-Optional "force" argument which when passed will wait for running requests and
-then unmap the image. Requests sent to the driver after initiating the removal
-will be failed.  (August 2016, since 4.9.)
 
 What:  /sys/bus/rbd/add_single_major
-Date:  December 2013
-KernelVersion: 3.14
-Contact:   Sage Weil 
-Description:   Available only if rbd module is inserted with single_major
+Date:  Dec, 2013
+KernelVersion: v3.14
+Contact:   Yehuda Sadeh ,
+   Sage Weil 
+Description:
+   (WO) Available only if rbd module is inserted with single_major
parameter set to true.
-   Usage is the same as for /sys/bus/rbd/add.  If present,
+
+   Usage is the same as for /sys/bus/rbd/add. If present, this
should be used instead of the latter: any attempts to use
-   /sys/bus/rbd/add if /sys/bus/rbd/add_single_major is
-   available will fail for backwards compatibility reasons.
+   /sys/bus/rbd/add if /sys/bus/rbd/add_single_major is available
+   will fail for backwards compatibility reasons.
+
 
 What:  /sys/bus/rbd/remove_single_major
-Date:  December 2013
-KernelVersion: 3.14
-Contact:   Sage Weil 
-Description:   Available only if rbd module is inserted with single_major
+Date:  Dec, 2013
+KernelVersion: v3.14
+Contact:   Yehuda Sadeh ,
+   Sage Weil 
+Description:
+   (WO) Available only if rbd module is inserted with single_major
parameter set to true.
-   Usage is the same as for /sys/bus/rbd/remove.  If present,
+
+   Usage is the same as for /sys/bus/rbd/remove. If present, this
should be used instead of the latter: any attempts to use
/sys/bus/rbd/remove if /sys/bus/rbd/remove_single_major is
available will fail for backwards compatibility reasons.
 
-Entries under /sys/bus/rbd/devices//
-
-
-client_addr
-
-   The ceph unique client entity_addr_t (address + nonce).
-   The format is :/: '1.2.3.4:1234/5678' or
-   '[1:2:3:4:5:6:7:8]:1234/5678'.  (August 2016, since 4.9.)
-
-client_id
-
-   The ceph unique client id that was assigned for this specific session.
-
-cluster_fsid
-
-   The ceph cluster UUID.  (August 2016, since 4.9.)
-
-config_info
-
-   The string written into /sys/bus/rbd/add{,_single_major}.  (August
-   2016, since 4.9.)
-
-features
-
-   A hexadecimal encoding of the feature bits for this image.
 
-major
-
-   The block device major number.
-
-m

[PATCH v3] aoe: document sysfs interface

2018-02-19 Thread Aishwarya Pant
Documentation has been compiled from git commit logs and descriptions in
Documentation/aoe/aoe.txt. This should be useful for scripting and
tracking changes in the ABI.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
Changes in v3:
- name -> names in description of netif
v2:
- interface -> interfaces in description of netif

 Documentation/ABI/testing/sysfs-block-aoe | 45 +++
 1 file changed, 45 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-block-aoe

diff --git a/Documentation/ABI/testing/sysfs-block-aoe 
b/Documentation/ABI/testing/sysfs-block-aoe
new file mode 100644
index ..b5837765bcdd
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-block-aoe
@@ -0,0 +1,45 @@
+What:  /sys/block/etherd*/mac
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) The ethernet address of the remote Ata over Ethernet (AoE)
+   device.
+
+What:  /sys/block/etherd*/netif
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) The names of the network interfaces on the localhost (comma
+   separated) through which we are communicating with the remote
+   AoE device.
+
+What:  /sys/block/etherd*/state
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) Device status. The state attribute is "up" when the device
+   is ready for I/O and "down" if detected but unusable. The
+   "down,closewait" state shows that the device is still open and
+   cannot come up again until it has been closed.  The "up,kickme"
+   state means that the driver wants to send more commands to the
+   target but found out there were already the max number of
+   commands waiting for a response. It will retry again after being
+   kicked by the periodic timer handler routine.
+
+What:  /sys/block/etherd*/firmware-version
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) Version of the firmware in the target.
+
+What:  /sys/block/etherd*/payload
+Date:  Dec, 2012
+KernelVersion: v3.10
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) The amount of user data transferred (in bytes) inside each 
AoE
+   command on the network, network headers excluded.
-- 
2.16.1



[PATCH v3] aoe: document sysfs interface

2018-02-19 Thread Aishwarya Pant
Documentation has been compiled from git commit logs and descriptions in
Documentation/aoe/aoe.txt. This should be useful for scripting and
tracking changes in the ABI.

Signed-off-by: Aishwarya Pant 
---
Changes in v3:
- name -> names in description of netif
v2:
- interface -> interfaces in description of netif

 Documentation/ABI/testing/sysfs-block-aoe | 45 +++
 1 file changed, 45 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-block-aoe

diff --git a/Documentation/ABI/testing/sysfs-block-aoe 
b/Documentation/ABI/testing/sysfs-block-aoe
new file mode 100644
index ..b5837765bcdd
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-block-aoe
@@ -0,0 +1,45 @@
+What:  /sys/block/etherd*/mac
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin 
+Description:
+   (RO) The ethernet address of the remote Ata over Ethernet (AoE)
+   device.
+
+What:  /sys/block/etherd*/netif
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin 
+Description:
+   (RO) The names of the network interfaces on the localhost (comma
+   separated) through which we are communicating with the remote
+   AoE device.
+
+What:  /sys/block/etherd*/state
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin 
+Description:
+   (RO) Device status. The state attribute is "up" when the device
+   is ready for I/O and "down" if detected but unusable. The
+   "down,closewait" state shows that the device is still open and
+   cannot come up again until it has been closed.  The "up,kickme"
+   state means that the driver wants to send more commands to the
+   target but found out there were already the max number of
+   commands waiting for a response. It will retry again after being
+   kicked by the periodic timer handler routine.
+
+What:  /sys/block/etherd*/firmware-version
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin 
+Description:
+   (RO) Version of the firmware in the target.
+
+What:  /sys/block/etherd*/payload
+Date:  Dec, 2012
+KernelVersion: v3.10
+Contact:   Ed L. Cashin 
+Description:
+   (RO) The amount of user data transferred (in bytes) inside each 
AoE
+   command on the network, network headers excluded.
-- 
2.16.1



[PATCH] acpi: nfit: document sysfs interface

2018-02-19 Thread Aishwarya Pant
This is an attempt to document the nfit sysfs interface. The
descriptions have been collected from git commit logs and the ACPI
specification 6.2. There are still two undocumented attributes-
range_index and ecc_unit_size, for which I couldn't collect complete
information.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 Documentation/ABI/testing/sysfs-bus-nfit | 202 +++
 1 file changed, 202 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-nfit

diff --git a/Documentation/ABI/testing/sysfs-bus-nfit 
b/Documentation/ABI/testing/sysfs-bus-nfit
new file mode 100644
index ..758d8d0d4c37
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-bus-nfit
@@ -0,0 +1,202 @@
+What:  /sys/bus/nd/devices/nmemX/nfit/serial
+Date:  Apr, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Serial number of the NVDIMM (non-volatile dual in-line
+   memory module), assigned by the module vendor.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/handle
+Date:  Apr, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The address (given by the _ADR object) of the device on its
+   parent bus of the NVDIMM device containing the NVDIMM region.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/device
+Date:  Apr, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Identifier for the NVDIMM, assigned by the module vendor.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/rev_id
+Date:  Apr, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Revision of the NVDIMM, assigned by the module vendor.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/phys_id
+Date:  Apr, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Handle (i.e., instance number) for the SMBIOS (system
+   management BIOS) Memory Device structure describing the NVDIMM
+   containing the NVDIMM region.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/flags
+Date:  Jun, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The flags in the NFIT memory device sub-structure indicate
+   the state of the data on the nvdimm relative to its energy
+   source or last "flush to persistence".
+
+   The attribute is a translation of the 'NVDIMM State Flags' field
+   in section 5.2.25.3 'NVDIMM Region Mapping' Structure of the
+   ACPI specification 6.2.
+
+   The health states are "save_fail", "restore_fail", "flush_fail",
+   "not_armed", "smart_event", "map_fail" and "smart_notify".
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/format
+What:  /sys/bus/nd/devices/nmemX/nfit/format1
+What:  /sys/bus/nd/devices/nmemX/nfit/formats
+Date:  Apr, 2016
+KernelVersion: v4.6
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Identifiers for the programming interface. Starting with
+   ACPI 6.1 an NFIT table reports multiple 'NVDIMM Control Region
+   Structure' instances per-dimm, one for each supported format
+   interface. That code is represented in the sysfs as follows:
+   nmemX/nfit/formats, nmemX/nfit/format, nmemX/nfit/format1,
+   nmemX/nfit/format2 ... nmemX/nfit/formatN, where format2 -
+   formatN are theoretical as there are no known DIMMs with support
+   for more than two interface formats. The 'formats' attribute
+   displays the number of supported interfaces.
+
+   This layout is compatible with existing libndctl binaries that
+   only expect one code per-dimm as they will ignore
+   nmemX/nfit/formats and nmemX/nfit/formatN.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/vendor
+Date:  Apr, 2016
+KernelVersion: v4.6
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Identifier indicating the vendor of the NVDIMM.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/dsm_mask
+Date:  Apr, 2016
+KernelVersion: v4.6
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The bitmask indicates the supported device specific control
+   functions.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/family
+Date:  Apr, 2016
+KernelVersion: v4.6
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Displays the NVDIMM family (and the command sets). Values
+   0, 1, 2 and 3 correspond to NVDIMM_FAMILY_INTEL,
+   NVDI

[PATCH] acpi: nfit: document sysfs interface

2018-02-19 Thread Aishwarya Pant
This is an attempt to document the nfit sysfs interface. The
descriptions have been collected from git commit logs and the ACPI
specification 6.2. There are still two undocumented attributes-
range_index and ecc_unit_size, for which I couldn't collect complete
information.

Signed-off-by: Aishwarya Pant 
---
 Documentation/ABI/testing/sysfs-bus-nfit | 202 +++
 1 file changed, 202 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-nfit

diff --git a/Documentation/ABI/testing/sysfs-bus-nfit 
b/Documentation/ABI/testing/sysfs-bus-nfit
new file mode 100644
index ..758d8d0d4c37
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-bus-nfit
@@ -0,0 +1,202 @@
+What:  /sys/bus/nd/devices/nmemX/nfit/serial
+Date:  Apr, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Serial number of the NVDIMM (non-volatile dual in-line
+   memory module), assigned by the module vendor.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/handle
+Date:  Apr, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The address (given by the _ADR object) of the device on its
+   parent bus of the NVDIMM device containing the NVDIMM region.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/device
+Date:  Apr, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Identifier for the NVDIMM, assigned by the module vendor.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/rev_id
+Date:  Apr, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Revision of the NVDIMM, assigned by the module vendor.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/phys_id
+Date:  Apr, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Handle (i.e., instance number) for the SMBIOS (system
+   management BIOS) Memory Device structure describing the NVDIMM
+   containing the NVDIMM region.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/flags
+Date:  Jun, 2015
+KernelVersion: v4.1
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The flags in the NFIT memory device sub-structure indicate
+   the state of the data on the nvdimm relative to its energy
+   source or last "flush to persistence".
+
+   The attribute is a translation of the 'NVDIMM State Flags' field
+   in section 5.2.25.3 'NVDIMM Region Mapping' Structure of the
+   ACPI specification 6.2.
+
+   The health states are "save_fail", "restore_fail", "flush_fail",
+   "not_armed", "smart_event", "map_fail" and "smart_notify".
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/format
+What:  /sys/bus/nd/devices/nmemX/nfit/format1
+What:  /sys/bus/nd/devices/nmemX/nfit/formats
+Date:  Apr, 2016
+KernelVersion: v4.6
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Identifiers for the programming interface. Starting with
+   ACPI 6.1 an NFIT table reports multiple 'NVDIMM Control Region
+   Structure' instances per-dimm, one for each supported format
+   interface. That code is represented in the sysfs as follows:
+   nmemX/nfit/formats, nmemX/nfit/format, nmemX/nfit/format1,
+   nmemX/nfit/format2 ... nmemX/nfit/formatN, where format2 -
+   formatN are theoretical as there are no known DIMMs with support
+   for more than two interface formats. The 'formats' attribute
+   displays the number of supported interfaces.
+
+   This layout is compatible with existing libndctl binaries that
+   only expect one code per-dimm as they will ignore
+   nmemX/nfit/formats and nmemX/nfit/formatN.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/vendor
+Date:  Apr, 2016
+KernelVersion: v4.6
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Identifier indicating the vendor of the NVDIMM.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/dsm_mask
+Date:  Apr, 2016
+KernelVersion: v4.6
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) The bitmask indicates the supported device specific control
+   functions.
+
+
+What:  /sys/bus/nd/devices/nmemX/nfit/family
+Date:  Apr, 2016
+KernelVersion: v4.6
+Contact:   linux-nvd...@lists.01.org
+Description:
+   (RO) Displays the NVDIMM family (and the command sets). Values
+   0, 1, 2 and 3 correspond to NVDIMM_FAMILY_INTEL,
+   NVDIMM_FAMILY_HPE1, NVDIMM_FAMILY_HP

[PATCH v2] block/loop: add documentation for sysfs interface

2018-02-16 Thread Aishwarya Pant
Documentation has been compiled from git logs and by reading through
code.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
For drivers/block/loop.c, I don't see any maintainers or mailing lists except
for LKML. I am guessing linux-block mailing list should be okay.

Changes in v2:
- Add linux-bl...@vger.kernel.org to the recipient list.

 Documentation/ABI/testing/sysfs-block-loop | 50 ++
 1 file changed, 50 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-block-loop

diff --git a/Documentation/ABI/testing/sysfs-block-loop 
b/Documentation/ABI/testing/sysfs-block-loop
new file mode 100644
index ..627f4eb87286
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-block-loop
@@ -0,0 +1,50 @@
+What:  /sys/block/loopX/loop/autoclear
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Shows if the device is in autoclear mode or not ( "1" or
+   "0"). Autoclear (if set) indicates that the loopback device will
+   self-distruct after last close.
+
+What:  /sys/block/loopX/loop/backing_file
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) The path of the backing file that the loop device maps its
+   data blocks to.
+
+What:  /sys/block/loopX/loop/offset
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Start offset (in bytes).
+
+What:  /sys/block/loopX/loop/sizelimit
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) The size (in bytes) that the block device maps, starting
+   from the offset.
+
+What:  /sys/block/loopX/loop/partscan
+Date:  Aug, 2011
+KernelVersion: v3.10
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Shows if automatic partition scanning is enabled for the
+   device or not ("1" or "0"). This can be requested individually
+   per loop device during its setup by setting LO_FLAGS_PARTSCAN in
+   in the ioctl request. By default, no partition tables are
+   scanned.
+
+What:  /sys/block/loopX/loop/dio
+Date:  Aug, 2015
+KernelVersion: v4.10
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Shows if direct IO is being used to access backing file or
+   not ("1 or "0").
-- 
2.16.1



[PATCH v2] block/loop: add documentation for sysfs interface

2018-02-16 Thread Aishwarya Pant
Documentation has been compiled from git logs and by reading through
code.

Signed-off-by: Aishwarya Pant 
---
For drivers/block/loop.c, I don't see any maintainers or mailing lists except
for LKML. I am guessing linux-block mailing list should be okay.

Changes in v2:
- Add linux-bl...@vger.kernel.org to the recipient list.

 Documentation/ABI/testing/sysfs-block-loop | 50 ++
 1 file changed, 50 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-block-loop

diff --git a/Documentation/ABI/testing/sysfs-block-loop 
b/Documentation/ABI/testing/sysfs-block-loop
new file mode 100644
index ..627f4eb87286
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-block-loop
@@ -0,0 +1,50 @@
+What:  /sys/block/loopX/loop/autoclear
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Shows if the device is in autoclear mode or not ( "1" or
+   "0"). Autoclear (if set) indicates that the loopback device will
+   self-distruct after last close.
+
+What:  /sys/block/loopX/loop/backing_file
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) The path of the backing file that the loop device maps its
+   data blocks to.
+
+What:  /sys/block/loopX/loop/offset
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Start offset (in bytes).
+
+What:  /sys/block/loopX/loop/sizelimit
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) The size (in bytes) that the block device maps, starting
+   from the offset.
+
+What:  /sys/block/loopX/loop/partscan
+Date:  Aug, 2011
+KernelVersion: v3.10
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Shows if automatic partition scanning is enabled for the
+   device or not ("1" or "0"). This can be requested individually
+   per loop device during its setup by setting LO_FLAGS_PARTSCAN in
+   in the ioctl request. By default, no partition tables are
+   scanned.
+
+What:  /sys/block/loopX/loop/dio
+Date:  Aug, 2015
+KernelVersion: v4.10
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Shows if direct IO is being used to access backing file or
+   not ("1 or "0").
-- 
2.16.1



[PATCH v2] aoe: document sysfs interface

2018-02-16 Thread Aishwarya Pant
Documentation has been compiled from git commit logs and descriptions in
Documentation/aoe/aoe.txt. This should be useful for scripting and
tracking changes in the ABI.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
Changes in v2:
- interface -> interfaces in description of netif

 Documentation/ABI/testing/sysfs-block-aoe | 44 +++
 1 file changed, 44 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-block-aoe

diff --git a/Documentation/ABI/testing/sysfs-block-aoe 
b/Documentation/ABI/testing/sysfs-block-aoe
new file mode 100644
index ..6f0795f7f10c
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-block-aoe
@@ -0,0 +1,44 @@
+What:  /sys/block/etherd*/mac
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) The ethernet address of the remote Ata over Ethernet (AoE)
+   device.
+
+What:  /sys/block/etherd*/netif
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) The name of the network interfaces on the localhost through
+   which we are communicating with the remote AoE device.
+
+What:  /sys/block/etherd*/state
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) Device status. The state attribute is "up" when the device
+   is ready for I/O and "down" if detected but unusable. The
+   "down,closewait" state shows that the device is still open and
+   cannot come up again until it has been closed.  The "up,kickme"
+   state means that the driver wants to send more commands to the
+   target but found out there were already the max number of
+   commands waiting for a response. It will retry again after being
+   kicked by the periodic timer handler routine.
+
+What:  /sys/block/etherd*/firmware-version
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) Version of the firmware in the target.
+
+What:  /sys/block/etherd*/payload
+Date:  Dec, 2012
+KernelVersion: v3.10
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) The amount of user data transferred (in bytes) inside each 
AoE
+   command on the network, network headers excluded.
-- 
2.16.1



[PATCH v2] aoe: document sysfs interface

2018-02-16 Thread Aishwarya Pant
Documentation has been compiled from git commit logs and descriptions in
Documentation/aoe/aoe.txt. This should be useful for scripting and
tracking changes in the ABI.

Signed-off-by: Aishwarya Pant 
---
Changes in v2:
- interface -> interfaces in description of netif

 Documentation/ABI/testing/sysfs-block-aoe | 44 +++
 1 file changed, 44 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-block-aoe

diff --git a/Documentation/ABI/testing/sysfs-block-aoe 
b/Documentation/ABI/testing/sysfs-block-aoe
new file mode 100644
index ..6f0795f7f10c
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-block-aoe
@@ -0,0 +1,44 @@
+What:  /sys/block/etherd*/mac
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin 
+Description:
+   (RO) The ethernet address of the remote Ata over Ethernet (AoE)
+   device.
+
+What:  /sys/block/etherd*/netif
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin 
+Description:
+   (RO) The name of the network interfaces on the localhost through
+   which we are communicating with the remote AoE device.
+
+What:  /sys/block/etherd*/state
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin 
+Description:
+   (RO) Device status. The state attribute is "up" when the device
+   is ready for I/O and "down" if detected but unusable. The
+   "down,closewait" state shows that the device is still open and
+   cannot come up again until it has been closed.  The "up,kickme"
+   state means that the driver wants to send more commands to the
+   target but found out there were already the max number of
+   commands waiting for a response. It will retry again after being
+   kicked by the periodic timer handler routine.
+
+What:  /sys/block/etherd*/firmware-version
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin 
+Description:
+   (RO) Version of the firmware in the target.
+
+What:  /sys/block/etherd*/payload
+Date:  Dec, 2012
+KernelVersion: v3.10
+Contact:   Ed L. Cashin 
+Description:
+   (RO) The amount of user data transferred (in bytes) inside each 
AoE
+   command on the network, network headers excluded.
-- 
2.16.1



[PATCH] aoe: document sysfs interface

2018-02-16 Thread Aishwarya Pant
Documentation has been compiled from git commit logs and descriptions in
Documentation/aoe/aoe.txt. This should be useful for scripting and
tracking changes in the ABI.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 Documentation/ABI/testing/sysfs-block-aoe | 44 +++
 1 file changed, 44 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-block-aoe

diff --git a/Documentation/ABI/testing/sysfs-block-aoe 
b/Documentation/ABI/testing/sysfs-block-aoe
new file mode 100644
index ..d197c7770dc0
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-block-aoe
@@ -0,0 +1,44 @@
+What:  /sys/block/etherd*/mac
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) The ethernet address of the remote Ata over Ethernet (AoE)
+   device.
+
+What:  /sys/block/etherd*/netif
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) The name of the network interface on the localhost through
+   which we are communicating with the remote AoE device.
+
+What:  /sys/block/etherd*/state
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) Device status. The state attribute is "up" when the device
+   is ready for I/O and "down" if detected but unusable. The
+   "down,closewait" state shows that the device is still open and
+   cannot come up again until it has been closed.  The "up,kickme"
+   state means that the driver wants to send more commands to the
+   target but found out there were already the max number of
+   commands waiting for a response. It will retry again after being
+   kicked by the periodic timer handler routine.
+
+What:  /sys/block/etherd*/firmware-version
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) Version of the firmware in the target.
+
+What:  /sys/block/etherd*/payload
+Date:  Dec, 2012
+KernelVersion: v3.10
+Contact:   Ed L. Cashin <ed.cas...@acm.org>
+Description:
+   (RO) The amount of user data transferred (in bytes) inside each 
AoE
+   command on the network, network headers excluded.
-- 
2.16.1



[PATCH] aoe: document sysfs interface

2018-02-16 Thread Aishwarya Pant
Documentation has been compiled from git commit logs and descriptions in
Documentation/aoe/aoe.txt. This should be useful for scripting and
tracking changes in the ABI.

Signed-off-by: Aishwarya Pant 
---
 Documentation/ABI/testing/sysfs-block-aoe | 44 +++
 1 file changed, 44 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-block-aoe

diff --git a/Documentation/ABI/testing/sysfs-block-aoe 
b/Documentation/ABI/testing/sysfs-block-aoe
new file mode 100644
index ..d197c7770dc0
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-block-aoe
@@ -0,0 +1,44 @@
+What:  /sys/block/etherd*/mac
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin 
+Description:
+   (RO) The ethernet address of the remote Ata over Ethernet (AoE)
+   device.
+
+What:  /sys/block/etherd*/netif
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin 
+Description:
+   (RO) The name of the network interface on the localhost through
+   which we are communicating with the remote AoE device.
+
+What:  /sys/block/etherd*/state
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin 
+Description:
+   (RO) Device status. The state attribute is "up" when the device
+   is ready for I/O and "down" if detected but unusable. The
+   "down,closewait" state shows that the device is still open and
+   cannot come up again until it has been closed.  The "up,kickme"
+   state means that the driver wants to send more commands to the
+   target but found out there were already the max number of
+   commands waiting for a response. It will retry again after being
+   kicked by the periodic timer handler routine.
+
+What:  /sys/block/etherd*/firmware-version
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   Ed L. Cashin 
+Description:
+   (RO) Version of the firmware in the target.
+
+What:  /sys/block/etherd*/payload
+Date:  Dec, 2012
+KernelVersion: v3.10
+Contact:   Ed L. Cashin 
+Description:
+   (RO) The amount of user data transferred (in bytes) inside each 
AoE
+   command on the network, network headers excluded.
-- 
2.16.1



[PATCH] block/loop: add documentation for sysfs interface

2018-02-14 Thread Aishwarya Pant
Documentation has been compiled from git logs and by reading through
code.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---

For drivers/block/loop.c, I don't see any maintainers or mailing lists except
for LKML.

 Documentation/ABI/testing/sysfs-block-loop | 50 ++
 1 file changed, 50 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-block-loop

diff --git a/Documentation/ABI/testing/sysfs-block-loop 
b/Documentation/ABI/testing/sysfs-block-loop
new file mode 100644
index ..627f4eb87286
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-block-loop
@@ -0,0 +1,50 @@
+What:  /sys/block/loopX/loop/autoclear
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Shows if the device is in autoclear mode or not ( "1" or
+   "0"). Autoclear (if set) indicates that the loopback device will
+   self-distruct after last close.
+
+What:  /sys/block/loopX/loop/backing_file
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) The path of the backing file that the loop device maps its
+   data blocks to.
+
+What:  /sys/block/loopX/loop/offset
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Start offset (in bytes).
+
+What:  /sys/block/loopX/loop/sizelimit
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) The size (in bytes) that the block device maps, starting
+   from the offset.
+
+What:  /sys/block/loopX/loop/partscan
+Date:  Aug, 2011
+KernelVersion: v3.10
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Shows if automatic partition scanning is enabled for the
+   device or not ("1" or "0"). This can be requested individually
+   per loop device during its setup by setting LO_FLAGS_PARTSCAN in
+   in the ioctl request. By default, no partition tables are
+   scanned.
+
+What:  /sys/block/loopX/loop/dio
+Date:  Aug, 2015
+KernelVersion: v4.10
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Shows if direct IO is being used to access backing file or
+   not ("1 or "0").
-- 
2.16.1



[PATCH] block/loop: add documentation for sysfs interface

2018-02-14 Thread Aishwarya Pant
Documentation has been compiled from git logs and by reading through
code.

Signed-off-by: Aishwarya Pant 
---

For drivers/block/loop.c, I don't see any maintainers or mailing lists except
for LKML.

 Documentation/ABI/testing/sysfs-block-loop | 50 ++
 1 file changed, 50 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-block-loop

diff --git a/Documentation/ABI/testing/sysfs-block-loop 
b/Documentation/ABI/testing/sysfs-block-loop
new file mode 100644
index ..627f4eb87286
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-block-loop
@@ -0,0 +1,50 @@
+What:  /sys/block/loopX/loop/autoclear
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Shows if the device is in autoclear mode or not ( "1" or
+   "0"). Autoclear (if set) indicates that the loopback device will
+   self-distruct after last close.
+
+What:  /sys/block/loopX/loop/backing_file
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) The path of the backing file that the loop device maps its
+   data blocks to.
+
+What:  /sys/block/loopX/loop/offset
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Start offset (in bytes).
+
+What:  /sys/block/loopX/loop/sizelimit
+Date:  Aug, 2010
+KernelVersion: v2.6.37
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) The size (in bytes) that the block device maps, starting
+   from the offset.
+
+What:  /sys/block/loopX/loop/partscan
+Date:  Aug, 2011
+KernelVersion: v3.10
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Shows if automatic partition scanning is enabled for the
+   device or not ("1" or "0"). This can be requested individually
+   per loop device during its setup by setting LO_FLAGS_PARTSCAN in
+   in the ioctl request. By default, no partition tables are
+   scanned.
+
+What:  /sys/block/loopX/loop/dio
+Date:  Aug, 2015
+KernelVersion: v4.10
+Contact:   linux-bl...@vger.kernel.org
+Description:
+   (RO) Shows if direct IO is being used to access backing file or
+   not ("1 or "0").
-- 
2.16.1



[PATCH] acpi: device_sysfs: update sysfs documentation

2018-02-13 Thread Aishwarya Pant
Add documentation for two attributes - status and hrv in
Documentation/ABI/testing/sysfs-bus-acpi. Compiled from git logs and the
ACPI specification.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 Documentation/ABI/testing/sysfs-bus-acpi | 36 
 1 file changed, 36 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-bus-acpi 
b/Documentation/ABI/testing/sysfs-bus-acpi
index 7fa9cbc75344..89feb01d1d0d 100644
--- a/Documentation/ABI/testing/sysfs-bus-acpi
+++ b/Documentation/ABI/testing/sysfs-bus-acpi
@@ -56,3 +56,39 @@ Description:
Writing 1 to this attribute will trigger hot removal of
this device object.  This file exists for every device
object that has _EJ0 method.
+
+What:  /sys/bus/acpi/devices/.../status
+Date:  Jan, 2014
+Contact:   Rafael J. Wysocki <r...@rjwysocki.net>
+Description:
+   (RO) Displays the ACPI device status - enabled, disabled or
+   functioning or present, if the method _STA is present.
+
+   Return value is an integer containing a device status bitmap:
+
+   Bit [0] –  Set if the device is present.
+   Bit [1] –  Set if the device is enabled and decoding its
+   resources.
+   Bit [2] –  Set if the device should be shown in the UI.
+   Bit [3] –  Set if the device is functioning properly (cleared if
+   device failed its diagnostics).
+   Bit [4] –  Set if the battery is present.
+   Bits [31:5] –  Reserved (must be cleared)
+
+   If bit [0] is cleared, then bit 1 must also be cleared (a device
+   that is not present cannot be enabled).
+
+   Bit 0 can be clear (not present) with bit [3] set (device is
+   functional). This case is used to indicate a valid device for
+   which no device driver should be loaded.
+
+   More special cases are covered in the ACPI specification.
+
+What:  /sys/bus/acpi/devices/.../hrv
+Date:  Apr, 2016
+Contact:   Rafael J. Wysocki <r...@rjwysocki.net>
+Description:
+   (RO) Allows users to read the hardware version of non-PCI
+   hardware, if the _HRV control method is present. It is most
+   useful for non-PCI devices because lspci can list the hardware
+   version for PCI devices.
-- 
2.16.1



[PATCH] acpi: device_sysfs: update sysfs documentation

2018-02-13 Thread Aishwarya Pant
Add documentation for two attributes - status and hrv in
Documentation/ABI/testing/sysfs-bus-acpi. Compiled from git logs and the
ACPI specification.

Signed-off-by: Aishwarya Pant 
---
 Documentation/ABI/testing/sysfs-bus-acpi | 36 
 1 file changed, 36 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-bus-acpi 
b/Documentation/ABI/testing/sysfs-bus-acpi
index 7fa9cbc75344..89feb01d1d0d 100644
--- a/Documentation/ABI/testing/sysfs-bus-acpi
+++ b/Documentation/ABI/testing/sysfs-bus-acpi
@@ -56,3 +56,39 @@ Description:
Writing 1 to this attribute will trigger hot removal of
this device object.  This file exists for every device
object that has _EJ0 method.
+
+What:  /sys/bus/acpi/devices/.../status
+Date:  Jan, 2014
+Contact:   Rafael J. Wysocki 
+Description:
+   (RO) Displays the ACPI device status - enabled, disabled or
+   functioning or present, if the method _STA is present.
+
+   Return value is an integer containing a device status bitmap:
+
+   Bit [0] –  Set if the device is present.
+   Bit [1] –  Set if the device is enabled and decoding its
+   resources.
+   Bit [2] –  Set if the device should be shown in the UI.
+   Bit [3] –  Set if the device is functioning properly (cleared if
+   device failed its diagnostics).
+   Bit [4] –  Set if the battery is present.
+   Bits [31:5] –  Reserved (must be cleared)
+
+   If bit [0] is cleared, then bit 1 must also be cleared (a device
+   that is not present cannot be enabled).
+
+   Bit 0 can be clear (not present) with bit [3] set (device is
+   functional). This case is used to indicate a valid device for
+   which no device driver should be loaded.
+
+   More special cases are covered in the ACPI specification.
+
+What:  /sys/bus/acpi/devices/.../hrv
+Date:  Apr, 2016
+Contact:   Rafael J. Wysocki 
+Description:
+   (RO) Allows users to read the hardware version of non-PCI
+   hardware, if the _HRV control method is present. It is most
+   useful for non-PCI devices because lspci can list the hardware
+   version for PCI devices.
-- 
2.16.1



[PATCH] libata: transport: cleanup documentation of sysfs interface

2018-02-13 Thread Aishwarya Pant
Clean-up the documentation of sysfs interfaces to be in the same format
as described in Documentation/ABI/README. This will be useful for
tracking changes in the ABI. Attributes are grouped by function (device,
link or port) and then by date added.

This patch also adds documentation for one attribute -
/sys/class/ata_port/ataX/port_no

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 Documentation/ABI/testing/sysfs-ata | 171 +---
 1 file changed, 100 insertions(+), 71 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-ata 
b/Documentation/ABI/testing/sysfs-ata
index aa4296498859..9ab0ef1dd1c7 100644
--- a/Documentation/ABI/testing/sysfs-ata
+++ b/Documentation/ABI/testing/sysfs-ata
@@ -1,110 +1,139 @@
 What:  /sys/class/ata_...
-Date:  August 2008
-Contact:   Gwendal Grignou<gwen...@google.com>
 Description:
-
-Provide a place in sysfs for storing the ATA topology of the system.  This 
allows
-retrieving various information about ATA objects.
+   Provide a place in sysfs for storing the ATA topology of the
+   system. This allows retrieving various information about ATA
+   objects.
 
 Files under /sys/class/ata_port
 ---
 
-   For each port, a directory ataX is created where X is the ata_port_id of
-   the port. The device parent is the ata host device.
+For each port, a directory ataX is created where X is the ata_port_id of the
+port. The device parent is the ata host device.
 
-idle_irq (read)
 
-   Number of IRQ received by the port while idle [some ata HBA only].
+What:  /sys/class/ata_port/ataX/nr_pmp_links
+What:  /sys/class/ata_port/ataX/idle_irq
+Date:  May, 2010
+KernelVersion: v2.6.37
+Contact:   Gwendal Grignou <gwen...@chromium.org>
+Description:
+   nr_pmp_links:   (RO) If a SATA Port Multiplier (PM) is
+   connected, the number of links behind it.
 
-nr_pmp_links (read)
+   idle_irq:   (RO) Number of IRQ received by the port while
+   idle [some ata HBA only].
 
-   If a SATA Port Multiplier (PM) is connected, number of link behind it.
+
+What:  /sys/class/ata_port/ataX/port_no
+Date:  May, 2013
+KernelVersion: v3.11
+Contact:   Gwendal Grignou <gwen...@chromium.org>
+Description:
+   (RO) Host local port number. While registering host controller,
+   port numbers are tracked based upon number of ports available on
+   the controller. This attribute is needed by udev for composing
+   persistent links in /dev/disk/by-path.
 
 Files under /sys/class/ata_link
 ---
 
-   Behind each port, there is a ata_link. If there is a SATA PM in the
-   topology, 15 ata_link objects are created.
-
-   If a link is behind a port, the directory name is linkX, where X is
-   ata_port_id of the port.
-   If a link is behind a PM, its name is linkX.Y where X is ata_port_id
-   of the parent port and Y the PM port.
+Behind each port, there is a ata_link. If there is a SATA PM in the topology, 
15
+ata_link objects are created.
 
-hw_sata_spd_limit
+If a link is behind a port, the directory name is linkX, where X is ata_port_id
+of the port. If a link is behind a PM, its name is linkX.Y where X is
+ata_port_id of the parent port and Y the PM port.
 
-   Maximum speed supported by the connected SATA device.
 
-sata_spd_limit
+What:  /sys/class/ata_link/linkX[.Y]/hw_sata_spd_limit
+What:  /sys/class/ata_link/linkX[.Y]/sata_spd_limit
+What:  /sys/class/ata_link/linkX[.Y]/sata_spd
+Date:  May, 2010
+KernelVersion: v2.6.37
+Contact:   Gwendal Grignou <gwen...@chromium.org>
+Description:
+   hw_sata_spd_limit:  (RO) Maximum speed supported by the
+   connected SATA device.
 
-   Maximum speed imposed by libata.
+   sata_spd_limit: (RO) Maximum speed imposed by libata.
 
-sata_spd
+   sata_spd:   (RO) Current speed of the link
+   eg. 1.5, 3 Gbps etc.
 
-   Current speed of the link [1.5, 3Gps,...].
 
 Files under /sys/class/ata_device
 -
 
-   Behind each link, up to two ata device are created.
-   The name of the directory is devX[.Y].Z where:
-   - X is ata_port_id of the port where the device is connected,
-   - Y the port of the PM if any, and
-   - Z the device id: for PATA, there is usually 2 devices [0,1],
-   only 1 for SATA.
-
-class
-   Device class. Can be "ata" for disk, "atapi" for packet device,
-   "pmp" for PM, or "none" if no device was found behind the link.
-
-dma_mode
+Behind each link, up to two ata dev

[PATCH] libata: transport: cleanup documentation of sysfs interface

2018-02-13 Thread Aishwarya Pant
Clean-up the documentation of sysfs interfaces to be in the same format
as described in Documentation/ABI/README. This will be useful for
tracking changes in the ABI. Attributes are grouped by function (device,
link or port) and then by date added.

This patch also adds documentation for one attribute -
/sys/class/ata_port/ataX/port_no

Signed-off-by: Aishwarya Pant 
---
 Documentation/ABI/testing/sysfs-ata | 171 +---
 1 file changed, 100 insertions(+), 71 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-ata 
b/Documentation/ABI/testing/sysfs-ata
index aa4296498859..9ab0ef1dd1c7 100644
--- a/Documentation/ABI/testing/sysfs-ata
+++ b/Documentation/ABI/testing/sysfs-ata
@@ -1,110 +1,139 @@
 What:  /sys/class/ata_...
-Date:  August 2008
-Contact:   Gwendal Grignou
 Description:
-
-Provide a place in sysfs for storing the ATA topology of the system.  This 
allows
-retrieving various information about ATA objects.
+   Provide a place in sysfs for storing the ATA topology of the
+   system. This allows retrieving various information about ATA
+   objects.
 
 Files under /sys/class/ata_port
 ---
 
-   For each port, a directory ataX is created where X is the ata_port_id of
-   the port. The device parent is the ata host device.
+For each port, a directory ataX is created where X is the ata_port_id of the
+port. The device parent is the ata host device.
 
-idle_irq (read)
 
-   Number of IRQ received by the port while idle [some ata HBA only].
+What:  /sys/class/ata_port/ataX/nr_pmp_links
+What:  /sys/class/ata_port/ataX/idle_irq
+Date:  May, 2010
+KernelVersion: v2.6.37
+Contact:   Gwendal Grignou 
+Description:
+   nr_pmp_links:   (RO) If a SATA Port Multiplier (PM) is
+   connected, the number of links behind it.
 
-nr_pmp_links (read)
+   idle_irq:   (RO) Number of IRQ received by the port while
+   idle [some ata HBA only].
 
-   If a SATA Port Multiplier (PM) is connected, number of link behind it.
+
+What:  /sys/class/ata_port/ataX/port_no
+Date:  May, 2013
+KernelVersion: v3.11
+Contact:   Gwendal Grignou 
+Description:
+   (RO) Host local port number. While registering host controller,
+   port numbers are tracked based upon number of ports available on
+   the controller. This attribute is needed by udev for composing
+   persistent links in /dev/disk/by-path.
 
 Files under /sys/class/ata_link
 ---
 
-   Behind each port, there is a ata_link. If there is a SATA PM in the
-   topology, 15 ata_link objects are created.
-
-   If a link is behind a port, the directory name is linkX, where X is
-   ata_port_id of the port.
-   If a link is behind a PM, its name is linkX.Y where X is ata_port_id
-   of the parent port and Y the PM port.
+Behind each port, there is a ata_link. If there is a SATA PM in the topology, 
15
+ata_link objects are created.
 
-hw_sata_spd_limit
+If a link is behind a port, the directory name is linkX, where X is ata_port_id
+of the port. If a link is behind a PM, its name is linkX.Y where X is
+ata_port_id of the parent port and Y the PM port.
 
-   Maximum speed supported by the connected SATA device.
 
-sata_spd_limit
+What:  /sys/class/ata_link/linkX[.Y]/hw_sata_spd_limit
+What:  /sys/class/ata_link/linkX[.Y]/sata_spd_limit
+What:  /sys/class/ata_link/linkX[.Y]/sata_spd
+Date:  May, 2010
+KernelVersion: v2.6.37
+Contact:   Gwendal Grignou 
+Description:
+   hw_sata_spd_limit:  (RO) Maximum speed supported by the
+   connected SATA device.
 
-   Maximum speed imposed by libata.
+   sata_spd_limit: (RO) Maximum speed imposed by libata.
 
-sata_spd
+   sata_spd:   (RO) Current speed of the link
+   eg. 1.5, 3 Gbps etc.
 
-   Current speed of the link [1.5, 3Gps,...].
 
 Files under /sys/class/ata_device
 -
 
-   Behind each link, up to two ata device are created.
-   The name of the directory is devX[.Y].Z where:
-   - X is ata_port_id of the port where the device is connected,
-   - Y the port of the PM if any, and
-   - Z the device id: for PATA, there is usually 2 devices [0,1],
-   only 1 for SATA.
-
-class
-   Device class. Can be "ata" for disk, "atapi" for packet device,
-   "pmp" for PM, or "none" if no device was found behind the link.
-
-dma_mode
+Behind each link, up to two ata devices are created.
+The name of the directory is devX[.Y].Z where:
+- X is ata_port_id of the port where the device is connected,
+- Y the port 

[PATCH] libata: update documentation for sysfs interfaces

2018-02-13 Thread Aishwarya Pant
Dcoumentation has been added by parsing through git commit history and
reading code. This might be useful for scripting and tracking changes in
the ABI.

I do not have complete descriptions for the following 3 attributes; they
have been annotated with the comment [to be documented] -

/sys/class/scsi_host/hostX/ahci_port_cmd
/sys/class/scsi_host/hostX/ahci_host_caps
/sys/class/scsi_host/hostX/ahci_host_cap2

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 Documentation/ABI/testing/sysfs-block-device| 58 
 Documentation/ABI/testing/sysfs-class-scsi_host | 89 +
 2 files changed, 147 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-block-device

diff --git a/Documentation/ABI/testing/sysfs-block-device 
b/Documentation/ABI/testing/sysfs-block-device
new file mode 100644
index ..82ef6eab042d
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-block-device
@@ -0,0 +1,58 @@
+What:  /sys/block/*/device/sw_activity
+Date:  Jun, 2008
+KernelVersion: v2.6.27
+Contact:   linux-...@vger.kernel.org
+Description:
+   (RW) Used by drivers which support software controlled activity
+   LEDs.
+
+   It has the following valid values:
+
+   0   OFF - the LED is not activated on activity
+   1   BLINK_ON - the LED blinks on every 10ms when activity is
+   detected.
+   2   BLINK_OFF - the LED is on when idle, and blinks off
+   every 10ms when activity is detected.
+
+   Note that the user must turn sw_activity OFF it they wish to
+   control the activity LED via the em_message file.
+
+
+What:  /sys/block/*/device/unload_heads
+Date:  Sep, 2008
+KernelVersion: v2.6.28
+Contact:   linux-...@vger.kernel.org
+Description:
+   (RW) Hard disk shock protection
+
+   Writing an integer value to this file will take the heads of the
+   respective drive off the platter and block all I/O operations
+   for the specified number of milliseconds.
+
+   - If the device does not support the unload heads feature,
+ access is denied with -EOPNOTSUPP.
+   - The maximal value accepted for a timeout is 3
+ milliseconds.
+   - A previously set timeout can be cancelled and disk can resume
+ normal operation immediately by specifying a timeout of 0.
+   - Some hard drives only comply with an earlier version of the
+ ATA standard, but support the unload feature nonetheless.
+ There is no safe way Linux can detect these devices, so this
+ is not enabled by default. If it is known that your device
+ does support the unload feature, then you can tell the kernel
+ to enable it by writing -1. It can be disabled again by
+ writing -2.
+   - Values below -2 are rejected with -EINVAL
+
+   For more information, see
+   Documentation/laptops/disk-shock-protection.txt
+
+
+What:  /sys/block/*/device/ncq_prio_enable
+Date:  Oct, 2016
+KernelVersion: v4.10
+Contact:   linux-...@vger.kernel.org
+Description:
+   (RW) Write to the file to turn on or off the SATA ncq (native
+   command queueing) support. By default this feature is turned
+   off.
diff --git a/Documentation/ABI/testing/sysfs-class-scsi_host 
b/Documentation/ABI/testing/sysfs-class-scsi_host
index 0eb255e7db12..bafc59fd7b69 100644
--- a/Documentation/ABI/testing/sysfs-class-scsi_host
+++ b/Documentation/ABI/testing/sysfs-class-scsi_host
@@ -27,3 +27,92 @@ Description: This file contains the current status of the 
"SSD Smart Path"
the direct i/o path to physical devices.  This setting is
controller wide, affecting all configured logical drives on the
controller.  This file is readable and writable.
+
+What:  /sys/class/scsi_host/hostX/link_power_management_policy
+Date:  Oct, 2007
+KernelVersion: v2.6.24
+Contact:   linux-...@vger.kernel.org
+Description:
+   (RW) This parameter allows the user to read and set the link
+   (interface) power management.
+
+   There are four possible options:
+
+   min_power: Tell the controller to try to make the link use the
+   least possible power when possible. This may sacrifice some
+   performance due to increased latency when coming out of lower
+   power states.
+
+   max_performance: Generally, this means no power management.
+   Tell the controller to have performance be a priority over power
+   management.
+
+   me

[PATCH] libata: update documentation for sysfs interfaces

2018-02-13 Thread Aishwarya Pant
Dcoumentation has been added by parsing through git commit history and
reading code. This might be useful for scripting and tracking changes in
the ABI.

I do not have complete descriptions for the following 3 attributes; they
have been annotated with the comment [to be documented] -

/sys/class/scsi_host/hostX/ahci_port_cmd
/sys/class/scsi_host/hostX/ahci_host_caps
/sys/class/scsi_host/hostX/ahci_host_cap2

Signed-off-by: Aishwarya Pant 
---
 Documentation/ABI/testing/sysfs-block-device| 58 
 Documentation/ABI/testing/sysfs-class-scsi_host | 89 +
 2 files changed, 147 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-block-device

diff --git a/Documentation/ABI/testing/sysfs-block-device 
b/Documentation/ABI/testing/sysfs-block-device
new file mode 100644
index ..82ef6eab042d
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-block-device
@@ -0,0 +1,58 @@
+What:  /sys/block/*/device/sw_activity
+Date:  Jun, 2008
+KernelVersion: v2.6.27
+Contact:   linux-...@vger.kernel.org
+Description:
+   (RW) Used by drivers which support software controlled activity
+   LEDs.
+
+   It has the following valid values:
+
+   0   OFF - the LED is not activated on activity
+   1   BLINK_ON - the LED blinks on every 10ms when activity is
+   detected.
+   2   BLINK_OFF - the LED is on when idle, and blinks off
+   every 10ms when activity is detected.
+
+   Note that the user must turn sw_activity OFF it they wish to
+   control the activity LED via the em_message file.
+
+
+What:  /sys/block/*/device/unload_heads
+Date:  Sep, 2008
+KernelVersion: v2.6.28
+Contact:   linux-...@vger.kernel.org
+Description:
+   (RW) Hard disk shock protection
+
+   Writing an integer value to this file will take the heads of the
+   respective drive off the platter and block all I/O operations
+   for the specified number of milliseconds.
+
+   - If the device does not support the unload heads feature,
+ access is denied with -EOPNOTSUPP.
+   - The maximal value accepted for a timeout is 3
+ milliseconds.
+   - A previously set timeout can be cancelled and disk can resume
+ normal operation immediately by specifying a timeout of 0.
+   - Some hard drives only comply with an earlier version of the
+ ATA standard, but support the unload feature nonetheless.
+ There is no safe way Linux can detect these devices, so this
+ is not enabled by default. If it is known that your device
+ does support the unload feature, then you can tell the kernel
+ to enable it by writing -1. It can be disabled again by
+ writing -2.
+   - Values below -2 are rejected with -EINVAL
+
+   For more information, see
+   Documentation/laptops/disk-shock-protection.txt
+
+
+What:  /sys/block/*/device/ncq_prio_enable
+Date:  Oct, 2016
+KernelVersion: v4.10
+Contact:   linux-...@vger.kernel.org
+Description:
+   (RW) Write to the file to turn on or off the SATA ncq (native
+   command queueing) support. By default this feature is turned
+   off.
diff --git a/Documentation/ABI/testing/sysfs-class-scsi_host 
b/Documentation/ABI/testing/sysfs-class-scsi_host
index 0eb255e7db12..bafc59fd7b69 100644
--- a/Documentation/ABI/testing/sysfs-class-scsi_host
+++ b/Documentation/ABI/testing/sysfs-class-scsi_host
@@ -27,3 +27,92 @@ Description: This file contains the current status of the 
"SSD Smart Path"
the direct i/o path to physical devices.  This setting is
controller wide, affecting all configured logical drives on the
controller.  This file is readable and writable.
+
+What:  /sys/class/scsi_host/hostX/link_power_management_policy
+Date:  Oct, 2007
+KernelVersion: v2.6.24
+Contact:   linux-...@vger.kernel.org
+Description:
+   (RW) This parameter allows the user to read and set the link
+   (interface) power management.
+
+   There are four possible options:
+
+   min_power: Tell the controller to try to make the link use the
+   least possible power when possible. This may sacrifice some
+   performance due to increased latency when coming out of lower
+   power states.
+
+   max_performance: Generally, this means no power management.
+   Tell the controller to have performance be a priority over power
+   management.
+
+   medium_power: Tell the controlle

[PATCH v2 2/2] acpi/dock: document sysfs interface

2018-02-10 Thread Aishwarya Pant
Description has been collected from git commit history and reading
through code.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
Changes in v2:
- Split up attribute definitions

 .../ABI/testing/sysfs-devices-platform-dock| 39 ++
 1 file changed, 39 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-dock

diff --git a/Documentation/ABI/testing/sysfs-devices-platform-dock 
b/Documentation/ABI/testing/sysfs-devices-platform-dock
new file mode 100644
index ..1d8c18f905c7
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-devices-platform-dock
@@ -0,0 +1,39 @@
+What:  /sys/devices/platform/dock.N/docked
+Date:  Dec, 2006
+KernelVersion: 2.6.19
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Value 1 or 0 indicates whether the software believes the
+   laptop is docked in a docking station.
+
+What:  /sys/devices/platform/dock.N/undock
+Date:  Dec, 2006
+KernelVersion: 2.6.19
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (WO) Writing to this file causes the software to initiate an
+   undock request to the firmware.
+
+What:  /sys/devices/platform/dock.N/uid
+Date:  Feb, 2007
+KernelVersion: v2.6.21
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Displays the docking station the laptop is docked to.
+
+What:  /sys/devices/platform/dock.N/flags
+Date:  May, 2007
+KernelVersion: v2.6.21
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Show dock station flags, useful for checking if undock
+   request has been made by the user (from the immediate_undock
+   option).
+
+What:  /sys/devices/platform/dock.N/type
+Date:  Aug, 2008
+KernelVersion: v2.6.27
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Display the dock station type- dock_station, ata_bay or
+   battery_bay.
-- 
2.16.1



[PATCH v2 2/2] acpi/dock: document sysfs interface

2018-02-10 Thread Aishwarya Pant
Description has been collected from git commit history and reading
through code.

Signed-off-by: Aishwarya Pant 
---
Changes in v2:
- Split up attribute definitions

 .../ABI/testing/sysfs-devices-platform-dock| 39 ++
 1 file changed, 39 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-dock

diff --git a/Documentation/ABI/testing/sysfs-devices-platform-dock 
b/Documentation/ABI/testing/sysfs-devices-platform-dock
new file mode 100644
index ..1d8c18f905c7
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-devices-platform-dock
@@ -0,0 +1,39 @@
+What:  /sys/devices/platform/dock.N/docked
+Date:  Dec, 2006
+KernelVersion: 2.6.19
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Value 1 or 0 indicates whether the software believes the
+   laptop is docked in a docking station.
+
+What:  /sys/devices/platform/dock.N/undock
+Date:  Dec, 2006
+KernelVersion: 2.6.19
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (WO) Writing to this file causes the software to initiate an
+   undock request to the firmware.
+
+What:  /sys/devices/platform/dock.N/uid
+Date:  Feb, 2007
+KernelVersion: v2.6.21
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Displays the docking station the laptop is docked to.
+
+What:  /sys/devices/platform/dock.N/flags
+Date:  May, 2007
+KernelVersion: v2.6.21
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Show dock station flags, useful for checking if undock
+   request has been made by the user (from the immediate_undock
+   option).
+
+What:  /sys/devices/platform/dock.N/type
+Date:  Aug, 2008
+KernelVersion: v2.6.27
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Display the dock station type- dock_station, ata_bay or
+   battery_bay.
-- 
2.16.1



[PATCH v2 1/2] acpi/dptf: document sysfs atttributes

2018-02-10 Thread Aishwarya Pant
The descriptions have been collected from git commit logs and reading
through code.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
Changes in v2:
- Split up attribute definitions

 Documentation/ABI/testing/sysfs-platform-dptf | 40 +++
 1 file changed, 40 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-platform-dptf

diff --git a/Documentation/ABI/testing/sysfs-platform-dptf 
b/Documentation/ABI/testing/sysfs-platform-dptf
new file mode 100644
index ..325dc0667dbb
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-platform-dptf
@@ -0,0 +1,40 @@
+What:  /sys/bus/platform/devices/INT3407:00/dptf_power/charger_type
+Date:  Jul, 2016
+KernelVersion: v4.10
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) The charger type - Traditional, Hybrid or NVDC.
+
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/adapter_rating_mw
+Date:  Jul, 2016
+KernelVersion: v4.10
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Adapter rating in milliwatts (the maximum Adapter power).
+   Must be 0 if no AC Adaptor is plugged in.
+
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/max_platform_power_mw
+Date:  Jul, 2016
+KernelVersion: v4.10
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Maximum platform power that can be supported by the battery
+   in milliwatts.
+
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/platform_power_source
+Date:  Jul, 2016
+KernelVersion: v4.10
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Display the platform power source
+   0x00 = DC
+   0x01 = AC
+   0x02 = USB
+   0x03 = Wireless Charger
+
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/battery_steady_power
+Date:  Jul, 2016
+KernelVersion: v4.10
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) The maximum sustained power for battery in milliwatts.
-- 
2.16.1



[PATCH v2 1/2] acpi/dptf: document sysfs atttributes

2018-02-10 Thread Aishwarya Pant
The descriptions have been collected from git commit logs and reading
through code.

Signed-off-by: Aishwarya Pant 
---
Changes in v2:
- Split up attribute definitions

 Documentation/ABI/testing/sysfs-platform-dptf | 40 +++
 1 file changed, 40 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-platform-dptf

diff --git a/Documentation/ABI/testing/sysfs-platform-dptf 
b/Documentation/ABI/testing/sysfs-platform-dptf
new file mode 100644
index ..325dc0667dbb
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-platform-dptf
@@ -0,0 +1,40 @@
+What:  /sys/bus/platform/devices/INT3407:00/dptf_power/charger_type
+Date:  Jul, 2016
+KernelVersion: v4.10
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) The charger type - Traditional, Hybrid or NVDC.
+
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/adapter_rating_mw
+Date:  Jul, 2016
+KernelVersion: v4.10
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Adapter rating in milliwatts (the maximum Adapter power).
+   Must be 0 if no AC Adaptor is plugged in.
+
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/max_platform_power_mw
+Date:  Jul, 2016
+KernelVersion: v4.10
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Maximum platform power that can be supported by the battery
+   in milliwatts.
+
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/platform_power_source
+Date:  Jul, 2016
+KernelVersion: v4.10
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Display the platform power source
+   0x00 = DC
+   0x01 = AC
+   0x02 = USB
+   0x03 = Wireless Charger
+
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/battery_steady_power
+Date:  Jul, 2016
+KernelVersion: v4.10
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) The maximum sustained power for battery in milliwatts.
-- 
2.16.1



[PATCH v2 0/2] acpi: document sysfs interfaces

2018-02-10 Thread Aishwarya Pant
Patchset contains documentation for two acpi drivers- dock and dptf. Description
was collected from git history and reading through code. This might be useful
for tracking changes in the ABI.

Changes in v2:
- Split up multiple attribute definitions

Aishwarya Pant (2):
  acpi/dptf: document sysfs atttributes
  acpi/dock: document sysfs interface

 .../ABI/testing/sysfs-devices-platform-dock| 39 +
 Documentation/ABI/testing/sysfs-platform-dptf  | 40 ++
 2 files changed, 79 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-dock
 create mode 100644 Documentation/ABI/testing/sysfs-platform-dptf

-- 
2.16.1



[PATCH v2 0/2] acpi: document sysfs interfaces

2018-02-10 Thread Aishwarya Pant
Patchset contains documentation for two acpi drivers- dock and dptf. Description
was collected from git history and reading through code. This might be useful
for tracking changes in the ABI.

Changes in v2:
- Split up multiple attribute definitions

Aishwarya Pant (2):
  acpi/dptf: document sysfs atttributes
  acpi/dock: document sysfs interface

 .../ABI/testing/sysfs-devices-platform-dock| 39 +
 Documentation/ABI/testing/sysfs-platform-dptf  | 40 ++
 2 files changed, 79 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-dock
 create mode 100644 Documentation/ABI/testing/sysfs-platform-dptf

-- 
2.16.1



[PATCH v5] Documentation/ABI: update infiniband sysfs interfaces

2018-02-09 Thread Aishwarya Pant
Add documentation for core and hardware specific infiniband interfaces.
The descriptions have been collected from git commit logs, reading
through code and data sheets. Some drivers have incomplete doc and are
annotated with the comment '[to be documented]'.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
Reviewed-by: Hal Rosenstock <h...@mellanox.com>
---
Sorry, there were no changes in v4!

Changes in v5:
- Typo GODs -> GIDs
v3:
-  outbound -> inbound in description of port_rcv_constraint_errors
v2:
- Move infiniband interface from testing to stable
- Fix typos
- Update description of cap_mask, port_xmit_constraint_errors and
  port_rcv_constraint_errors
- Add doc for hw_counters
- Remove old documentation

 Documentation/ABI/stable/sysfs-class-infiniband  | 818 +++
 Documentation/ABI/testing/sysfs-class-infiniband |  16 -
 Documentation/infiniband/sysfs.txt   | 129 +---
 3 files changed, 820 insertions(+), 143 deletions(-)
 create mode 100644 Documentation/ABI/stable/sysfs-class-infiniband
 delete mode 100644 Documentation/ABI/testing/sysfs-class-infiniband

diff --git a/Documentation/ABI/stable/sysfs-class-infiniband 
b/Documentation/ABI/stable/sysfs-class-infiniband
new file mode 100644
index ..17211ceb9bf4
--- /dev/null
+++ b/Documentation/ABI/stable/sysfs-class-infiniband
@@ -0,0 +1,818 @@
+sysfs interface common for all infiniband devices
+-
+
+What:  /sys/class/infiniband//node_type
+What:  /sys/class/infiniband//node_guid
+What:  /sys/class/infiniband//sys_image_guid
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+   node_type:  (RO) Node type (CA, RNIC, usNIC, usNIC UDP,
+   switch or router)
+
+   node_guid:  (RO) Node GUID
+
+   sys_image_guid: (RO) System image GUID
+
+
+What:  /sys/class/infiniband//node_desc
+Date:  Feb, 2006
+KernelVersion: v2.6.17
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RW) Update the node description with information such as the
+   node's hostname, so that IB network management software can tie
+   its view to the real world.
+
+
+What:  /sys/class/infiniband//fw_ver
+Date:  Jun, 2016
+KernelVersion: v4.10
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Display firmware version
+
+
+What:  /sys/class/infiniband//ports//lid
+What:  /sys/class/infiniband//ports//rate
+What:  /sys/class/infiniband//ports//lid_mask_count
+What:  /sys/class/infiniband//ports//sm_sl
+What:  /sys/class/infiniband//ports//sm_lid
+What:  /sys/class/infiniband//ports//state
+What:  /sys/class/infiniband//ports//phys_state
+What:  /sys/class/infiniband//ports//cap_mask
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+
+   lid:(RO) Port LID
+
+   rate:   (RO) Port data rate (active width * active
+   speed)
+
+   lid_mask_count: (RO) Port LID mask count
+
+   sm_sl:  (RO) Subnet manager SL for port's subnet
+
+   sm_lid: (RO) Subnet manager LID for port's subnet
+
+   state:  (RO) Port state (DOWN, INIT, ARMED, ACTIVE or
+   ACTIVE_DEFER)
+
+   phys_state: (RO) Port physical state (Sleep, Polling,
+   LinkUp, etc)
+
+   cap_mask:   (RO) Port capability mask. 2 bits here are
+   settable- IsCommunicationManagementSupported
+   (set when CM module is loaded) and IsSM (set via
+   open of issmN file).
+
+
+What:  /sys/class/infiniband//ports//link_layer
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Link layer type information (Infiniband or Ethernet type)
+
+
+What:  
/sys/class/infiniband//ports//counters/symbol_error
+What:  
/sys/class/infiniband//ports//counters/port_rcv_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_remote_physical_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_switch_relay_errors
+What:  
/sys/class/infiniband//ports//counters/link_error_recovery
+What:  
/sys/class/infiniband//ports//counters/port_xmit_constraint_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_contraint_errors
+What:  
/sys/class/infiniband//ports//counters/local_link_integrity_errors
+What:  
/sys/class/infiniband//ports//counters/excessive_buffer_overrun_errors
+What:  
/sy

[PATCH v5] Documentation/ABI: update infiniband sysfs interfaces

2018-02-09 Thread Aishwarya Pant
Add documentation for core and hardware specific infiniband interfaces.
The descriptions have been collected from git commit logs, reading
through code and data sheets. Some drivers have incomplete doc and are
annotated with the comment '[to be documented]'.

Signed-off-by: Aishwarya Pant 
Reviewed-by: Hal Rosenstock 
---
Sorry, there were no changes in v4!

Changes in v5:
- Typo GODs -> GIDs
v3:
-  outbound -> inbound in description of port_rcv_constraint_errors
v2:
- Move infiniband interface from testing to stable
- Fix typos
- Update description of cap_mask, port_xmit_constraint_errors and
  port_rcv_constraint_errors
- Add doc for hw_counters
- Remove old documentation

 Documentation/ABI/stable/sysfs-class-infiniband  | 818 +++
 Documentation/ABI/testing/sysfs-class-infiniband |  16 -
 Documentation/infiniband/sysfs.txt   | 129 +---
 3 files changed, 820 insertions(+), 143 deletions(-)
 create mode 100644 Documentation/ABI/stable/sysfs-class-infiniband
 delete mode 100644 Documentation/ABI/testing/sysfs-class-infiniband

diff --git a/Documentation/ABI/stable/sysfs-class-infiniband 
b/Documentation/ABI/stable/sysfs-class-infiniband
new file mode 100644
index ..17211ceb9bf4
--- /dev/null
+++ b/Documentation/ABI/stable/sysfs-class-infiniband
@@ -0,0 +1,818 @@
+sysfs interface common for all infiniband devices
+-
+
+What:  /sys/class/infiniband//node_type
+What:  /sys/class/infiniband//node_guid
+What:  /sys/class/infiniband//sys_image_guid
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+   node_type:  (RO) Node type (CA, RNIC, usNIC, usNIC UDP,
+   switch or router)
+
+   node_guid:  (RO) Node GUID
+
+   sys_image_guid: (RO) System image GUID
+
+
+What:  /sys/class/infiniband//node_desc
+Date:  Feb, 2006
+KernelVersion: v2.6.17
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RW) Update the node description with information such as the
+   node's hostname, so that IB network management software can tie
+   its view to the real world.
+
+
+What:  /sys/class/infiniband//fw_ver
+Date:  Jun, 2016
+KernelVersion: v4.10
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Display firmware version
+
+
+What:  /sys/class/infiniband//ports//lid
+What:  /sys/class/infiniband//ports//rate
+What:  /sys/class/infiniband//ports//lid_mask_count
+What:  /sys/class/infiniband//ports//sm_sl
+What:  /sys/class/infiniband//ports//sm_lid
+What:  /sys/class/infiniband//ports//state
+What:  /sys/class/infiniband//ports//phys_state
+What:  /sys/class/infiniband//ports//cap_mask
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+
+   lid:(RO) Port LID
+
+   rate:   (RO) Port data rate (active width * active
+   speed)
+
+   lid_mask_count: (RO) Port LID mask count
+
+   sm_sl:  (RO) Subnet manager SL for port's subnet
+
+   sm_lid: (RO) Subnet manager LID for port's subnet
+
+   state:  (RO) Port state (DOWN, INIT, ARMED, ACTIVE or
+   ACTIVE_DEFER)
+
+   phys_state: (RO) Port physical state (Sleep, Polling,
+   LinkUp, etc)
+
+   cap_mask:   (RO) Port capability mask. 2 bits here are
+   settable- IsCommunicationManagementSupported
+   (set when CM module is loaded) and IsSM (set via
+   open of issmN file).
+
+
+What:  /sys/class/infiniband//ports//link_layer
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Link layer type information (Infiniband or Ethernet type)
+
+
+What:  
/sys/class/infiniband//ports//counters/symbol_error
+What:  
/sys/class/infiniband//ports//counters/port_rcv_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_remote_physical_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_switch_relay_errors
+What:  
/sys/class/infiniband//ports//counters/link_error_recovery
+What:  
/sys/class/infiniband//ports//counters/port_xmit_constraint_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_contraint_errors
+What:  
/sys/class/infiniband//ports//counters/local_link_integrity_errors
+What:  
/sys/class/infiniband//ports//counters/excessive_buffer_overrun_errors
+What:  
/sys/class/infiniband//ports//counters/port_xmit_data

[PATCH v4] Documentation/ABI: update infiniband sysfs interfaces

2018-02-09 Thread Aishwarya Pant
Add documentation for core and hardware specific infiniband interfaces.
The descriptions have been collected from git commit logs, reading
through code and data sheets. Some drivers have incomplete doc and are
annotated with the comment '[to be documented]'.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
Reviewed-by: Hal Rosenstock <h...@mellanox.com>
---
Changes in v4:
- Typo GODs -> GIDs
v3:
-  outbound -> inbound in description of port_rcv_constraint_errors
v2:
- Move infiniband interface from testing to stable
- Fix typos
- Update description of cap_mask, port_xmit_constraint_errors and
  port_rcv_constraint_errors
- Add doc for hw_counters
- Remove old documentation

 Documentation/ABI/stable/sysfs-class-infiniband  | 818 +++
 Documentation/ABI/testing/sysfs-class-infiniband |  16 -
 Documentation/infiniband/sysfs.txt   | 129 +---
 3 files changed, 820 insertions(+), 143 deletions(-)
 create mode 100644 Documentation/ABI/stable/sysfs-class-infiniband
 delete mode 100644 Documentation/ABI/testing/sysfs-class-infiniband

diff --git a/Documentation/ABI/stable/sysfs-class-infiniband 
b/Documentation/ABI/stable/sysfs-class-infiniband
new file mode 100644
index ..f3acf3713a91
--- /dev/null
+++ b/Documentation/ABI/stable/sysfs-class-infiniband
@@ -0,0 +1,818 @@
+sysfs interface common for all infiniband devices
+-
+
+What:  /sys/class/infiniband//node_type
+What:  /sys/class/infiniband//node_guid
+What:  /sys/class/infiniband//sys_image_guid
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+   node_type:  (RO) Node type (CA, RNIC, usNIC, usNIC UDP,
+   switch or router)
+
+   node_guid:  (RO) Node GUID
+
+   sys_image_guid: (RO) System image GUID
+
+
+What:  /sys/class/infiniband//node_desc
+Date:  Feb, 2006
+KernelVersion: v2.6.17
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RW) Update the node description with information such as the
+   node's hostname, so that IB network management software can tie
+   its view to the real world.
+
+
+What:  /sys/class/infiniband//fw_ver
+Date:  Jun, 2016
+KernelVersion: v4.10
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Display firmware version
+
+
+What:  /sys/class/infiniband//ports//lid
+What:  /sys/class/infiniband//ports//rate
+What:  /sys/class/infiniband//ports//lid_mask_count
+What:  /sys/class/infiniband//ports//sm_sl
+What:  /sys/class/infiniband//ports//sm_lid
+What:  /sys/class/infiniband//ports//state
+What:  /sys/class/infiniband//ports//phys_state
+What:  /sys/class/infiniband//ports//cap_mask
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+
+   lid:(RO) Port LID
+
+   rate:   (RO) Port data rate (active width * active
+   speed)
+
+   lid_mask_count: (RO) Port LID mask count
+
+   sm_sl:  (RO) Subnet manager SL for port's subnet
+
+   sm_lid: (RO) Subnet manager LID for port's subnet
+
+   state:  (RO) Port state (DOWN, INIT, ARMED, ACTIVE or
+   ACTIVE_DEFER)
+
+   phys_state: (RO) Port physical state (Sleep, Polling,
+   LinkUp, etc)
+
+   cap_mask:   (RO) Port capability mask. 2 bits here are
+   settable- IsCommunicationManagementSupported
+   (set when CM module is loaded) and IsSM (set via
+   open of issmN file).
+
+
+What:  /sys/class/infiniband//ports//link_layer
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Link layer type information (Infiniband or Ethernet type)
+
+
+What:  
/sys/class/infiniband//ports//counters/symbol_error
+What:  
/sys/class/infiniband//ports//counters/port_rcv_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_remote_physical_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_switch_relay_errors
+What:  
/sys/class/infiniband//ports//counters/link_error_recovery
+What:  
/sys/class/infiniband//ports//counters/port_xmit_constraint_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_contraint_errors
+What:  
/sys/class/infiniband//ports//counters/local_link_integrity_errors
+What:  
/sys/class/infiniband//ports//counters/excessive_buffer_overrun_errors
+What:  
/sys/class/infiniband//ports//counters/po

[PATCH v4] Documentation/ABI: update infiniband sysfs interfaces

2018-02-09 Thread Aishwarya Pant
Add documentation for core and hardware specific infiniband interfaces.
The descriptions have been collected from git commit logs, reading
through code and data sheets. Some drivers have incomplete doc and are
annotated with the comment '[to be documented]'.

Signed-off-by: Aishwarya Pant 
Reviewed-by: Hal Rosenstock 
---
Changes in v4:
- Typo GODs -> GIDs
v3:
-  outbound -> inbound in description of port_rcv_constraint_errors
v2:
- Move infiniband interface from testing to stable
- Fix typos
- Update description of cap_mask, port_xmit_constraint_errors and
  port_rcv_constraint_errors
- Add doc for hw_counters
- Remove old documentation

 Documentation/ABI/stable/sysfs-class-infiniband  | 818 +++
 Documentation/ABI/testing/sysfs-class-infiniband |  16 -
 Documentation/infiniband/sysfs.txt   | 129 +---
 3 files changed, 820 insertions(+), 143 deletions(-)
 create mode 100644 Documentation/ABI/stable/sysfs-class-infiniband
 delete mode 100644 Documentation/ABI/testing/sysfs-class-infiniband

diff --git a/Documentation/ABI/stable/sysfs-class-infiniband 
b/Documentation/ABI/stable/sysfs-class-infiniband
new file mode 100644
index ..f3acf3713a91
--- /dev/null
+++ b/Documentation/ABI/stable/sysfs-class-infiniband
@@ -0,0 +1,818 @@
+sysfs interface common for all infiniband devices
+-
+
+What:  /sys/class/infiniband//node_type
+What:  /sys/class/infiniband//node_guid
+What:  /sys/class/infiniband//sys_image_guid
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+   node_type:  (RO) Node type (CA, RNIC, usNIC, usNIC UDP,
+   switch or router)
+
+   node_guid:  (RO) Node GUID
+
+   sys_image_guid: (RO) System image GUID
+
+
+What:  /sys/class/infiniband//node_desc
+Date:  Feb, 2006
+KernelVersion: v2.6.17
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RW) Update the node description with information such as the
+   node's hostname, so that IB network management software can tie
+   its view to the real world.
+
+
+What:  /sys/class/infiniband//fw_ver
+Date:  Jun, 2016
+KernelVersion: v4.10
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Display firmware version
+
+
+What:  /sys/class/infiniband//ports//lid
+What:  /sys/class/infiniband//ports//rate
+What:  /sys/class/infiniband//ports//lid_mask_count
+What:  /sys/class/infiniband//ports//sm_sl
+What:  /sys/class/infiniband//ports//sm_lid
+What:  /sys/class/infiniband//ports//state
+What:  /sys/class/infiniband//ports//phys_state
+What:  /sys/class/infiniband//ports//cap_mask
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+
+   lid:(RO) Port LID
+
+   rate:   (RO) Port data rate (active width * active
+   speed)
+
+   lid_mask_count: (RO) Port LID mask count
+
+   sm_sl:  (RO) Subnet manager SL for port's subnet
+
+   sm_lid: (RO) Subnet manager LID for port's subnet
+
+   state:  (RO) Port state (DOWN, INIT, ARMED, ACTIVE or
+   ACTIVE_DEFER)
+
+   phys_state: (RO) Port physical state (Sleep, Polling,
+   LinkUp, etc)
+
+   cap_mask:   (RO) Port capability mask. 2 bits here are
+   settable- IsCommunicationManagementSupported
+   (set when CM module is loaded) and IsSM (set via
+   open of issmN file).
+
+
+What:  /sys/class/infiniband//ports//link_layer
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Link layer type information (Infiniband or Ethernet type)
+
+
+What:  
/sys/class/infiniband//ports//counters/symbol_error
+What:  
/sys/class/infiniband//ports//counters/port_rcv_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_remote_physical_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_switch_relay_errors
+What:  
/sys/class/infiniband//ports//counters/link_error_recovery
+What:  
/sys/class/infiniband//ports//counters/port_xmit_constraint_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_contraint_errors
+What:  
/sys/class/infiniband//ports//counters/local_link_integrity_errors
+What:  
/sys/class/infiniband//ports//counters/excessive_buffer_overrun_errors
+What:  
/sys/class/infiniband//ports//counters/port_xmit_data
+What:  
/sys/class/infiniband/

Re: [PATCH 1/2] acpi/dptf: document sysfs atttributes

2018-02-09 Thread Aishwarya Pant
On Fri, Feb 09, 2018 at 11:31:35AM +0100, Rafael J. Wysocki wrote:
> On Wed, Feb 7, 2018 at 2:18 PM, Aishwarya Pant <aishp...@gmail.com> wrote:
> > The descriptions have been collected from git commit logs and reading
> > through code.
> >
> > Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
> > ---
> >  Documentation/ABI/testing/sysfs-platform-dptf | 30 
> > +++
> >  1 file changed, 30 insertions(+)
> >  create mode 100644 Documentation/ABI/testing/sysfs-platform-dptf
> >
> > diff --git a/Documentation/ABI/testing/sysfs-platform-dptf 
> > b/Documentation/ABI/testing/sysfs-platform-dptf
> > new file mode 100644
> > index ..e8168e5198d7
> > --- /dev/null
> > +++ b/Documentation/ABI/testing/sysfs-platform-dptf
> > @@ -0,0 +1,30 @@
> > +sysfs interface for ACPI DPTF platform power driver
> > +---
> 
> The header isn't necessary.
> 
> > +
> > +What:  /sys/bus/platform/devices/INT3407:00/dptf_power/charger_type
> > +What:  
> > /sys/bus/platform/devices/INT3407:00/dptf_power/adapter_rating_mw
> > +What:  
> > /sys/bus/platform/devices/INT3407:00/dptf_power/max_platform_power_mw
> > +What:  
> > /sys/bus/platform/devices/INT3407:00/dptf_power/platform_power_source
> > +What:  
> > /sys/bus/platform/devices/INT3407:00/dptf_power/battery_steady_power
> 
> There should be one entry per attribute AFAICS.

I grouped attributes by the date in which they were added for brevity, because
otherwise fields like Date added, KernelVersion and Contact information are the
same.

I can split them up if it makes more sense...

Aishwarya

> 
> Also I need Srinivas to tell me whether or not the descriptions are
> accurate enough.
> 
> > +Date:  Jul, 2016
> > +KernelVersion: v4.10
> > +Contact:   linux-a...@vger.kernel.org
> > +Description:
> > +   charger_type:   (RO) The charger type- Traditional,
> > +   Hybrid or NVDC.
> > +
> > +   adapter_rating_mw:  (RO) Adapter rating in milliwatts 
> > (the
> > +   maximum Adapter power). Must be 0 
> > if no
> > +   AC Adaptor is plugged in.
> > +
> > +   max_platform_power_mw:  (RO) Maximum platform power that 
> > can be
> > +   supported by the battery in 
> > milliwatts.
> > +
> > +   platform_power_source:  (RO) Display the platform power 
> > source
> > +   0x00 = DC
> > +   0x01 = AC
> > +   0x02 = USB
> > +   0x03 = Wireless Charger
> > +
> > +   battery_steady_power_mw:(RO) The maximum sustained power for
> > +   battery in milliwatts.
> > --


Re: [PATCH 1/2] acpi/dptf: document sysfs atttributes

2018-02-09 Thread Aishwarya Pant
On Fri, Feb 09, 2018 at 11:31:35AM +0100, Rafael J. Wysocki wrote:
> On Wed, Feb 7, 2018 at 2:18 PM, Aishwarya Pant  wrote:
> > The descriptions have been collected from git commit logs and reading
> > through code.
> >
> > Signed-off-by: Aishwarya Pant 
> > ---
> >  Documentation/ABI/testing/sysfs-platform-dptf | 30 
> > +++
> >  1 file changed, 30 insertions(+)
> >  create mode 100644 Documentation/ABI/testing/sysfs-platform-dptf
> >
> > diff --git a/Documentation/ABI/testing/sysfs-platform-dptf 
> > b/Documentation/ABI/testing/sysfs-platform-dptf
> > new file mode 100644
> > index ..e8168e5198d7
> > --- /dev/null
> > +++ b/Documentation/ABI/testing/sysfs-platform-dptf
> > @@ -0,0 +1,30 @@
> > +sysfs interface for ACPI DPTF platform power driver
> > +---
> 
> The header isn't necessary.
> 
> > +
> > +What:  /sys/bus/platform/devices/INT3407:00/dptf_power/charger_type
> > +What:  
> > /sys/bus/platform/devices/INT3407:00/dptf_power/adapter_rating_mw
> > +What:  
> > /sys/bus/platform/devices/INT3407:00/dptf_power/max_platform_power_mw
> > +What:  
> > /sys/bus/platform/devices/INT3407:00/dptf_power/platform_power_source
> > +What:  
> > /sys/bus/platform/devices/INT3407:00/dptf_power/battery_steady_power
> 
> There should be one entry per attribute AFAICS.

I grouped attributes by the date in which they were added for brevity, because
otherwise fields like Date added, KernelVersion and Contact information are the
same.

I can split them up if it makes more sense...

Aishwarya

> 
> Also I need Srinivas to tell me whether or not the descriptions are
> accurate enough.
> 
> > +Date:  Jul, 2016
> > +KernelVersion: v4.10
> > +Contact:   linux-a...@vger.kernel.org
> > +Description:
> > +   charger_type:   (RO) The charger type- Traditional,
> > +   Hybrid or NVDC.
> > +
> > +   adapter_rating_mw:  (RO) Adapter rating in milliwatts 
> > (the
> > +   maximum Adapter power). Must be 0 
> > if no
> > +   AC Adaptor is plugged in.
> > +
> > +   max_platform_power_mw:  (RO) Maximum platform power that 
> > can be
> > +   supported by the battery in 
> > milliwatts.
> > +
> > +   platform_power_source:  (RO) Display the platform power 
> > source
> > +   0x00 = DC
> > +   0x01 = AC
> > +   0x02 = USB
> > +   0x03 = Wireless Charger
> > +
> > +   battery_steady_power_mw:(RO) The maximum sustained power for
> > +   battery in milliwatts.
> > --


[PATCH v5] Documentation/ABI: update cpuidle sysfs documentation

2018-02-07 Thread Aishwarya Pant
Update cpuidle documentation using git logs and existing documentation
in Documentation/cpuidle/sysfs.txt. This might be useful for scripting
and tracking changes in the ABI.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
Changes in v5:
- Update contact information- LKML -> power management mailing list
v4:
- Fix patch formatting
v3:
- Fix subject line
v2:
- Merge cpuidle_sysfs_switch attributes' description with the previous
  entry.

 Documentation/ABI/testing/sysfs-devices-system-cpu | 77 +-
 1 file changed, 75 insertions(+), 2 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu 
b/Documentation/ABI/testing/sysfs-devices-system-cpu
index bfd29bc8d37a..4ed63b6cfb15 100644
--- a/Documentation/ABI/testing/sysfs-devices-system-cpu
+++ b/Documentation/ABI/testing/sysfs-devices-system-cpu
@@ -108,6 +108,8 @@ Description:CPU topology files that describe a 
logical CPU's relationship
 
 What:  /sys/devices/system/cpu/cpuidle/current_driver
/sys/devices/system/cpu/cpuidle/current_governer_ro
+   /sys/devices/system/cpu/cpuidle/available_governors
+   /sys/devices/system/cpu/cpuidle/current_governor
 Date:  September 2007
 Contact:   Linux kernel mailing list <linux-kernel@vger.kernel.org>
 Description:   Discover cpuidle policy and mechanism
@@ -119,13 +121,84 @@ Description:  Discover cpuidle policy and mechanism
Idle policy (governor) is differentiated from idle mechanism
(driver)
 
-   current_driver: displays current idle mechanism
+   current_driver: (RO) displays current idle mechanism
 
-   current_governor_ro: displays current idle policy
+   current_governor_ro: (RO) displays current idle policy
+
+   With the cpuidle_sysfs_switch boot option enabled (meant for
+   developer testing), the following three attributes are visible
+   instead:
+
+   current_driver: same as described above
+
+   available_governors: (RO) displays a space separated list of
+   available governors
+
+   current_governor: (RW) displays current idle policy. Users can
+   switch the governor at runtime by writing to this file.
 
See files in Documentation/cpuidle/ for more information.
 
 
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/name
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/latency
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/power
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/time
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/usage
+Date:  September 2007
+KernelVersion: v2.6.24
+Contact:   Linux power management list <linux...@vger.kernel.org>
+Description:
+   The directory /sys/devices/system/cpu/cpuX/cpuidle contains per
+   logical CPU specific cpuidle information for each online cpu X.
+   The processor idle states which are available for use have the
+   following attributes:
+
+   name: (RO) Name of the idle state (string).
+
+   latency: (RO) The latency to exit out of this idle state (in
+   microseconds).
+
+   power: (RO) The power consumed while in this idle state (in
+   milliwatts).
+
+   time: (RO) The total time spent in this idle state (in 
microseconds).
+
+   usage: (RO) Number of times this state was entered (a count).
+
+
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/desc
+Date:  February 2008
+KernelVersion: v2.6.25
+Contact:   Linux power management list <linux...@vger.kernel.org>
+Description:
+   (RO) A small description about the idle state (string).
+
+
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/disable
+Date:  March 2012
+KernelVersion: v3.10
+Contact:   Linux power management list <linux...@vger.kernel.org>
+Description:
+   (RW) Option to disable this idle state (bool). The behavior and
+   the effect of the disable variable depends on the implementation
+   of a particular governor. In the ladder governor, for example,
+   it is not coherent, i.e. if one is disabling a light state, then
+   all deeper states are disabled as well, but the disable variable
+   does not reflect it. Likewise, if one enables a deep state but a
+   lighter state still is disabled, then this has no effect.
+
+
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/residency
+Date:  March 2014
+KernelVersion: v3.15
+Contact:   Linux power management list <linux...@vger.kernel.org>
+Description:
+   (RO) Display the target residency i.e. the minimum amount of
+   

[PATCH v5] Documentation/ABI: update cpuidle sysfs documentation

2018-02-07 Thread Aishwarya Pant
Update cpuidle documentation using git logs and existing documentation
in Documentation/cpuidle/sysfs.txt. This might be useful for scripting
and tracking changes in the ABI.

Signed-off-by: Aishwarya Pant 
---
Changes in v5:
- Update contact information- LKML -> power management mailing list
v4:
- Fix patch formatting
v3:
- Fix subject line
v2:
- Merge cpuidle_sysfs_switch attributes' description with the previous
  entry.

 Documentation/ABI/testing/sysfs-devices-system-cpu | 77 +-
 1 file changed, 75 insertions(+), 2 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu 
b/Documentation/ABI/testing/sysfs-devices-system-cpu
index bfd29bc8d37a..4ed63b6cfb15 100644
--- a/Documentation/ABI/testing/sysfs-devices-system-cpu
+++ b/Documentation/ABI/testing/sysfs-devices-system-cpu
@@ -108,6 +108,8 @@ Description:CPU topology files that describe a 
logical CPU's relationship
 
 What:  /sys/devices/system/cpu/cpuidle/current_driver
/sys/devices/system/cpu/cpuidle/current_governer_ro
+   /sys/devices/system/cpu/cpuidle/available_governors
+   /sys/devices/system/cpu/cpuidle/current_governor
 Date:  September 2007
 Contact:   Linux kernel mailing list 
 Description:   Discover cpuidle policy and mechanism
@@ -119,13 +121,84 @@ Description:  Discover cpuidle policy and mechanism
Idle policy (governor) is differentiated from idle mechanism
(driver)
 
-   current_driver: displays current idle mechanism
+   current_driver: (RO) displays current idle mechanism
 
-   current_governor_ro: displays current idle policy
+   current_governor_ro: (RO) displays current idle policy
+
+   With the cpuidle_sysfs_switch boot option enabled (meant for
+   developer testing), the following three attributes are visible
+   instead:
+
+   current_driver: same as described above
+
+   available_governors: (RO) displays a space separated list of
+   available governors
+
+   current_governor: (RW) displays current idle policy. Users can
+   switch the governor at runtime by writing to this file.
 
See files in Documentation/cpuidle/ for more information.
 
 
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/name
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/latency
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/power
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/time
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/usage
+Date:  September 2007
+KernelVersion: v2.6.24
+Contact:   Linux power management list 
+Description:
+   The directory /sys/devices/system/cpu/cpuX/cpuidle contains per
+   logical CPU specific cpuidle information for each online cpu X.
+   The processor idle states which are available for use have the
+   following attributes:
+
+   name: (RO) Name of the idle state (string).
+
+   latency: (RO) The latency to exit out of this idle state (in
+   microseconds).
+
+   power: (RO) The power consumed while in this idle state (in
+   milliwatts).
+
+   time: (RO) The total time spent in this idle state (in 
microseconds).
+
+   usage: (RO) Number of times this state was entered (a count).
+
+
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/desc
+Date:  February 2008
+KernelVersion: v2.6.25
+Contact:   Linux power management list 
+Description:
+   (RO) A small description about the idle state (string).
+
+
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/disable
+Date:  March 2012
+KernelVersion: v3.10
+Contact:   Linux power management list 
+Description:
+   (RW) Option to disable this idle state (bool). The behavior and
+   the effect of the disable variable depends on the implementation
+   of a particular governor. In the ladder governor, for example,
+   it is not coherent, i.e. if one is disabling a light state, then
+   all deeper states are disabled as well, but the disable variable
+   does not reflect it. Likewise, if one enables a deep state but a
+   lighter state still is disabled, then this has no effect.
+
+
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/residency
+Date:  March 2014
+KernelVersion: v3.15
+Contact:   Linux power management list 
+Description:
+   (RO) Display the target residency i.e. the minimum amount of
+   time (in microseconds) this cpu should spend in this idle state
+   to make the transition worth the effort.
+
+
 What:  /sys/devices/system/cpu/cpu#/cpufreq/*
 D

[PATCH v1 2/2] acpi/dock: document sysfs interface

2018-02-07 Thread Aishwarya Pant
Description has been collected from git commit history and reading
through code.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 .../ABI/testing/sysfs-devices-platform-dock| 38 ++
 1 file changed, 38 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-dock

diff --git a/Documentation/ABI/testing/sysfs-devices-platform-dock 
b/Documentation/ABI/testing/sysfs-devices-platform-dock
new file mode 100644
index ..0bb0d42e9126
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-devices-platform-dock
@@ -0,0 +1,38 @@
+sysfs interface for ACPI dock station driver
+
+
+What:  /sys/devices/platform/dock.N/docked
+What:  /sys/devices/platform/dock.N/undock
+Date:  Dec, 2006
+KernelVersion: 2.6.19
+Contact:   linux-a...@vger.kernel.org
+Description:
+   docked: (RO) Value 1 or 0 indicates whether the software
+   believes the laptop is docked in a docking station.
+
+   undock: (WO) Writing to this file causes the software to
+   initiate an undock request to the firmware.
+
+What:  /sys/devices/platform/dock.N/uid
+Date:  Feb, 2007
+KernelVersion: v2.6.21
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Displays the docking station the laptop is docked to.
+
+What:  /sys/devices/platform/dock.N/flags
+Date:  May, 2007
+KernelVersion: v2.6.21
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Show dock station flags, useful for checking if undock
+   request has been made by the user (from the immediate_undock
+   option).
+
+What:  /sys/devices/platform/dock.N/type
+Date:  Aug, 2008
+KernelVersion: v2.6.27
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Display the dock station type- dock_station, ata_bay or
+   battery_bay.
-- 
2.16.1



[PATCH v1 2/2] acpi/dock: document sysfs interface

2018-02-07 Thread Aishwarya Pant
Description has been collected from git commit history and reading
through code.

Signed-off-by: Aishwarya Pant 
---
 .../ABI/testing/sysfs-devices-platform-dock| 38 ++
 1 file changed, 38 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-dock

diff --git a/Documentation/ABI/testing/sysfs-devices-platform-dock 
b/Documentation/ABI/testing/sysfs-devices-platform-dock
new file mode 100644
index ..0bb0d42e9126
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-devices-platform-dock
@@ -0,0 +1,38 @@
+sysfs interface for ACPI dock station driver
+
+
+What:  /sys/devices/platform/dock.N/docked
+What:  /sys/devices/platform/dock.N/undock
+Date:  Dec, 2006
+KernelVersion: 2.6.19
+Contact:   linux-a...@vger.kernel.org
+Description:
+   docked: (RO) Value 1 or 0 indicates whether the software
+   believes the laptop is docked in a docking station.
+
+   undock: (WO) Writing to this file causes the software to
+   initiate an undock request to the firmware.
+
+What:  /sys/devices/platform/dock.N/uid
+Date:  Feb, 2007
+KernelVersion: v2.6.21
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Displays the docking station the laptop is docked to.
+
+What:  /sys/devices/platform/dock.N/flags
+Date:  May, 2007
+KernelVersion: v2.6.21
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Show dock station flags, useful for checking if undock
+   request has been made by the user (from the immediate_undock
+   option).
+
+What:  /sys/devices/platform/dock.N/type
+Date:  Aug, 2008
+KernelVersion: v2.6.27
+Contact:   linux-a...@vger.kernel.org
+Description:
+   (RO) Display the dock station type- dock_station, ata_bay or
+   battery_bay.
-- 
2.16.1



[PATCH 1/2] acpi/dptf: document sysfs atttributes

2018-02-07 Thread Aishwarya Pant
The descriptions have been collected from git commit logs and reading
through code.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 Documentation/ABI/testing/sysfs-platform-dptf | 30 +++
 1 file changed, 30 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-platform-dptf

diff --git a/Documentation/ABI/testing/sysfs-platform-dptf 
b/Documentation/ABI/testing/sysfs-platform-dptf
new file mode 100644
index ..e8168e5198d7
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-platform-dptf
@@ -0,0 +1,30 @@
+sysfs interface for ACPI DPTF platform power driver
+---
+
+What:  /sys/bus/platform/devices/INT3407:00/dptf_power/charger_type
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/adapter_rating_mw
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/max_platform_power_mw
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/platform_power_source
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/battery_steady_power
+Date:  Jul, 2016
+KernelVersion: v4.10
+Contact:   linux-a...@vger.kernel.org
+Description:
+   charger_type:   (RO) The charger type- Traditional,
+   Hybrid or NVDC.
+
+   adapter_rating_mw:  (RO) Adapter rating in milliwatts (the
+   maximum Adapter power). Must be 0 if no
+   AC Adaptor is plugged in.
+
+   max_platform_power_mw:  (RO) Maximum platform power that can be
+   supported by the battery in milliwatts.
+
+   platform_power_source:  (RO) Display the platform power source
+   0x00 = DC
+   0x01 = AC
+   0x02 = USB
+   0x03 = Wireless Charger
+
+   battery_steady_power_mw:(RO) The maximum sustained power for
+   battery in milliwatts.
-- 
2.16.1



[PATCH 1/2] acpi/dptf: document sysfs atttributes

2018-02-07 Thread Aishwarya Pant
The descriptions have been collected from git commit logs and reading
through code.

Signed-off-by: Aishwarya Pant 
---
 Documentation/ABI/testing/sysfs-platform-dptf | 30 +++
 1 file changed, 30 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-platform-dptf

diff --git a/Documentation/ABI/testing/sysfs-platform-dptf 
b/Documentation/ABI/testing/sysfs-platform-dptf
new file mode 100644
index ..e8168e5198d7
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-platform-dptf
@@ -0,0 +1,30 @@
+sysfs interface for ACPI DPTF platform power driver
+---
+
+What:  /sys/bus/platform/devices/INT3407:00/dptf_power/charger_type
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/adapter_rating_mw
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/max_platform_power_mw
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/platform_power_source
+What:  
/sys/bus/platform/devices/INT3407:00/dptf_power/battery_steady_power
+Date:  Jul, 2016
+KernelVersion: v4.10
+Contact:   linux-a...@vger.kernel.org
+Description:
+   charger_type:   (RO) The charger type- Traditional,
+   Hybrid or NVDC.
+
+   adapter_rating_mw:  (RO) Adapter rating in milliwatts (the
+   maximum Adapter power). Must be 0 if no
+   AC Adaptor is plugged in.
+
+   max_platform_power_mw:  (RO) Maximum platform power that can be
+   supported by the battery in milliwatts.
+
+   platform_power_source:  (RO) Display the platform power source
+   0x00 = DC
+   0x01 = AC
+   0x02 = USB
+   0x03 = Wireless Charger
+
+   battery_steady_power_mw:(RO) The maximum sustained power for
+   battery in milliwatts.
-- 
2.16.1



[PATCH 0/2] acpi: document sysfs interfaces

2018-02-07 Thread Aishwarya Pant
Patchset contains documentation for two acpi drivers- dock and dptf. Description
was collected from git history and reading through code. This might be useful
for tracking changes in the ABI.

Aishwarya Pant (2):
  acpi/dptf: document sysfs atttributes
  acpi/dock: document sysfs interface

 .../ABI/testing/sysfs-devices-platform-dock| 38 ++
 Documentation/ABI/testing/sysfs-platform-dptf  | 30 +
 2 files changed, 68 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-dock
 create mode 100644 Documentation/ABI/testing/sysfs-platform-dptf

-- 
2.16.1



[PATCH 0/2] acpi: document sysfs interfaces

2018-02-07 Thread Aishwarya Pant
Patchset contains documentation for two acpi drivers- dock and dptf. Description
was collected from git history and reading through code. This might be useful
for tracking changes in the ABI.

Aishwarya Pant (2):
  acpi/dptf: document sysfs atttributes
  acpi/dock: document sysfs interface

 .../ABI/testing/sysfs-devices-platform-dock| 38 ++
 Documentation/ABI/testing/sysfs-platform-dptf  | 30 +
 2 files changed, 68 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-dock
 create mode 100644 Documentation/ABI/testing/sysfs-platform-dptf

-- 
2.16.1



[PATCH v3] Documentation/ABI: update infiniband sysfs interfaces

2018-02-06 Thread Aishwarya Pant
Add documentation for core and hardware specific infiniband interfaces.
The descriptions have been collected from git commit logs, reading
through code and data sheets. Some drivers have incomplete doc and are
annotated with the comment '[to be documented]'.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
Changes in v3:
-  outbound -> inbound in description of port_rcv_constraint_errors
v2:
- Move infiniband interface from testing to stable
- Fix typos
- Update description of cap_mask, port_xmit_constraint_errors and
  port_rcv_constraint_errors
- Add doc for hw_counters
- Remove old documentation

 Documentation/ABI/stable/sysfs-class-infiniband  | 818 +++
 Documentation/ABI/testing/sysfs-class-infiniband |  16 -
 Documentation/infiniband/sysfs.txt   | 129 +---
 3 files changed, 820 insertions(+), 143 deletions(-)
 create mode 100644 Documentation/ABI/stable/sysfs-class-infiniband
 delete mode 100644 Documentation/ABI/testing/sysfs-class-infiniband

diff --git a/Documentation/ABI/stable/sysfs-class-infiniband 
b/Documentation/ABI/stable/sysfs-class-infiniband
new file mode 100644
index ..f3acf3713a91
--- /dev/null
+++ b/Documentation/ABI/stable/sysfs-class-infiniband
@@ -0,0 +1,818 @@
+sysfs interface common for all infiniband devices
+-
+
+What:  /sys/class/infiniband//node_type
+What:  /sys/class/infiniband//node_guid
+What:  /sys/class/infiniband//sys_image_guid
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+   node_type:  (RO) Node type (CA, RNIC, usNIC, usNIC UDP,
+   switch or router)
+
+   node_guid:  (RO) Node GUID
+
+   sys_image_guid: (RO) System image GUID
+
+
+What:  /sys/class/infiniband//node_desc
+Date:  Feb, 2006
+KernelVersion: v2.6.17
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RW) Update the node description with information such as the
+   node's hostname, so that IB network management software can tie
+   its view to the real world.
+
+
+What:  /sys/class/infiniband//fw_ver
+Date:  Jun, 2016
+KernelVersion: v4.10
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Display firmware version
+
+
+What:  /sys/class/infiniband//ports//lid
+What:  /sys/class/infiniband//ports//rate
+What:  /sys/class/infiniband//ports//lid_mask_count
+What:  /sys/class/infiniband//ports//sm_sl
+What:  /sys/class/infiniband//ports//sm_lid
+What:  /sys/class/infiniband//ports//state
+What:  /sys/class/infiniband//ports//phys_state
+What:  /sys/class/infiniband//ports//cap_mask
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+
+   lid:(RO) Port LID
+
+   rate:   (RO) Port data rate (active width * active
+   speed)
+
+   lid_mask_count: (RO) Port LID mask count
+
+   sm_sl:  (RO) Subnet manager SL for port's subnet
+
+   sm_lid: (RO) Subnet manager LID for port's subnet
+
+   state:  (RO) Port state (DOWN, INIT, ARMED, ACTIVE or
+   ACTIVE_DEFER)
+
+   phys_state: (RO) Port physical state (Sleep, Polling,
+   LinkUp, etc)
+
+   cap_mask:   (RO) Port capability mask. 2 bits here are
+   settable- IsCommunicationManagementSupported
+   (set when CM module is loaded) and IsSM (set via
+   open of issmN file).
+
+
+What:  /sys/class/infiniband//ports//link_layer
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Link layer type information (Infiniband or Ethernet type)
+
+
+What:  
/sys/class/infiniband//ports//counters/symbol_error
+What:  
/sys/class/infiniband//ports//counters/port_rcv_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_remote_physical_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_switch_relay_errors
+What:  
/sys/class/infiniband//ports//counters/link_error_recovery
+What:  
/sys/class/infiniband//ports//counters/port_xmit_constraint_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_contraint_errors
+What:  
/sys/class/infiniband//ports//counters/local_link_integrity_errors
+What:  
/sys/class/infiniband//ports//counters/excessive_buffer_overrun_errors
+What:  
/sys/class/infiniband//ports//counters/port_xmit_data
+What:  
/sys/class/infiniband//ports//counters/port_rcv_d

[PATCH v3] Documentation/ABI: update infiniband sysfs interfaces

2018-02-06 Thread Aishwarya Pant
Add documentation for core and hardware specific infiniband interfaces.
The descriptions have been collected from git commit logs, reading
through code and data sheets. Some drivers have incomplete doc and are
annotated with the comment '[to be documented]'.

Signed-off-by: Aishwarya Pant 
---
Changes in v3:
-  outbound -> inbound in description of port_rcv_constraint_errors
v2:
- Move infiniband interface from testing to stable
- Fix typos
- Update description of cap_mask, port_xmit_constraint_errors and
  port_rcv_constraint_errors
- Add doc for hw_counters
- Remove old documentation

 Documentation/ABI/stable/sysfs-class-infiniband  | 818 +++
 Documentation/ABI/testing/sysfs-class-infiniband |  16 -
 Documentation/infiniband/sysfs.txt   | 129 +---
 3 files changed, 820 insertions(+), 143 deletions(-)
 create mode 100644 Documentation/ABI/stable/sysfs-class-infiniband
 delete mode 100644 Documentation/ABI/testing/sysfs-class-infiniband

diff --git a/Documentation/ABI/stable/sysfs-class-infiniband 
b/Documentation/ABI/stable/sysfs-class-infiniband
new file mode 100644
index ..f3acf3713a91
--- /dev/null
+++ b/Documentation/ABI/stable/sysfs-class-infiniband
@@ -0,0 +1,818 @@
+sysfs interface common for all infiniband devices
+-
+
+What:  /sys/class/infiniband//node_type
+What:  /sys/class/infiniband//node_guid
+What:  /sys/class/infiniband//sys_image_guid
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+   node_type:  (RO) Node type (CA, RNIC, usNIC, usNIC UDP,
+   switch or router)
+
+   node_guid:  (RO) Node GUID
+
+   sys_image_guid: (RO) System image GUID
+
+
+What:  /sys/class/infiniband//node_desc
+Date:  Feb, 2006
+KernelVersion: v2.6.17
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RW) Update the node description with information such as the
+   node's hostname, so that IB network management software can tie
+   its view to the real world.
+
+
+What:  /sys/class/infiniband//fw_ver
+Date:  Jun, 2016
+KernelVersion: v4.10
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Display firmware version
+
+
+What:  /sys/class/infiniband//ports//lid
+What:  /sys/class/infiniband//ports//rate
+What:  /sys/class/infiniband//ports//lid_mask_count
+What:  /sys/class/infiniband//ports//sm_sl
+What:  /sys/class/infiniband//ports//sm_lid
+What:  /sys/class/infiniband//ports//state
+What:  /sys/class/infiniband//ports//phys_state
+What:  /sys/class/infiniband//ports//cap_mask
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+
+   lid:(RO) Port LID
+
+   rate:   (RO) Port data rate (active width * active
+   speed)
+
+   lid_mask_count: (RO) Port LID mask count
+
+   sm_sl:  (RO) Subnet manager SL for port's subnet
+
+   sm_lid: (RO) Subnet manager LID for port's subnet
+
+   state:  (RO) Port state (DOWN, INIT, ARMED, ACTIVE or
+   ACTIVE_DEFER)
+
+   phys_state: (RO) Port physical state (Sleep, Polling,
+   LinkUp, etc)
+
+   cap_mask:   (RO) Port capability mask. 2 bits here are
+   settable- IsCommunicationManagementSupported
+   (set when CM module is loaded) and IsSM (set via
+   open of issmN file).
+
+
+What:  /sys/class/infiniband//ports//link_layer
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Link layer type information (Infiniband or Ethernet type)
+
+
+What:  
/sys/class/infiniband//ports//counters/symbol_error
+What:  
/sys/class/infiniband//ports//counters/port_rcv_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_remote_physical_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_switch_relay_errors
+What:  
/sys/class/infiniband//ports//counters/link_error_recovery
+What:  
/sys/class/infiniband//ports//counters/port_xmit_constraint_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_contraint_errors
+What:  
/sys/class/infiniband//ports//counters/local_link_integrity_errors
+What:  
/sys/class/infiniband//ports//counters/excessive_buffer_overrun_errors
+What:  
/sys/class/infiniband//ports//counters/port_xmit_data
+What:  
/sys/class/infiniband//ports//counters/port_rcv_data
+What:  
/sys/cl

[PATCH v2] Documentation/ABI: add sysfs interface for s6e63m0 lcd driver

2018-02-06 Thread Aishwarya Pant
Document sysfs attributes of s6e63m0 lcd panel driver by looking through
git logs and reading code.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
Changes in v2:
- Update contact information

 Documentation/ABI/testing/sysfs-class-lcd-s6e63m0 | 27 +++
 1 file changed, 27 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-lcd-s6e63m0

diff --git a/Documentation/ABI/testing/sysfs-class-lcd-s6e63m0 
b/Documentation/ABI/testing/sysfs-class-lcd-s6e63m0
new file mode 100644
index ..ae0a2d3dcc07
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-lcd-s6e63m0
@@ -0,0 +1,27 @@
+sysfs interface for the S6E63M0 AMOLED LCD panel driver
+---
+
+What:  /sys/class/lcd//gamma_mode
+Date:  May, 2010
+KernelVersion: v2.6.35
+Contact:   dri-de...@lists.freedesktop.org
+Description:
+   (RW) Read or write the gamma mode. Following three modes are
+   supported:
+   0 - gamma value 2.2,
+   1 - gamma value 1.9 and
+   2 - gamma value 1.7.
+
+
+What:  /sys/class/lcd//gamma_table
+Date:  May, 2010
+KernelVersion: v2.6.35
+Contact:   dri-de...@lists.freedesktop.org
+Description:
+   (RO) Displays the size of the gamma table i.e. the number of
+   gamma modes available.
+
+This is a backlight lcd driver. These interfaces are an extension to the API
+documented in Documentation/ABI/testing/sysfs-class-lcd and in
+Documentation/ABI/stable/sysfs-class-backlight (under
+/sys/class/backlight//).
-- 
2.16.1



[PATCH v2] Documentation/ABI: add sysfs interface for s6e63m0 lcd driver

2018-02-06 Thread Aishwarya Pant
Document sysfs attributes of s6e63m0 lcd panel driver by looking through
git logs and reading code.

Signed-off-by: Aishwarya Pant 
---
Changes in v2:
- Update contact information

 Documentation/ABI/testing/sysfs-class-lcd-s6e63m0 | 27 +++
 1 file changed, 27 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-lcd-s6e63m0

diff --git a/Documentation/ABI/testing/sysfs-class-lcd-s6e63m0 
b/Documentation/ABI/testing/sysfs-class-lcd-s6e63m0
new file mode 100644
index ..ae0a2d3dcc07
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-lcd-s6e63m0
@@ -0,0 +1,27 @@
+sysfs interface for the S6E63M0 AMOLED LCD panel driver
+---
+
+What:  /sys/class/lcd//gamma_mode
+Date:  May, 2010
+KernelVersion: v2.6.35
+Contact:   dri-de...@lists.freedesktop.org
+Description:
+   (RW) Read or write the gamma mode. Following three modes are
+   supported:
+   0 - gamma value 2.2,
+   1 - gamma value 1.9 and
+   2 - gamma value 1.7.
+
+
+What:  /sys/class/lcd//gamma_table
+Date:  May, 2010
+KernelVersion: v2.6.35
+Contact:   dri-de...@lists.freedesktop.org
+Description:
+   (RO) Displays the size of the gamma table i.e. the number of
+   gamma modes available.
+
+This is a backlight lcd driver. These interfaces are an extension to the API
+documented in Documentation/ABI/testing/sysfs-class-lcd and in
+Documentation/ABI/stable/sysfs-class-backlight (under
+/sys/class/backlight//).
-- 
2.16.1



[PATCH v4] Documentation/ABI: update cpuidle sysfs documentation

2018-02-06 Thread Aishwarya Pant
Update cpuidle documentation using git logs and existing documentation
in Documentation/cpuidle/sysfs.txt. This might be useful for scripting
and tracking changes in the ABI.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
Changes in v4:
- Fix patch formatting
v3:
- Fix subject line
v2:
- Merge cpuidle_sysfs_switch attributes' description with the previous
  entry.

 Documentation/ABI/testing/sysfs-devices-system-cpu | 77 +-
 1 file changed, 75 insertions(+), 2 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu 
b/Documentation/ABI/testing/sysfs-devices-system-cpu
index bfd29bc8d37a..e9ee67f80933 100644
--- a/Documentation/ABI/testing/sysfs-devices-system-cpu
+++ b/Documentation/ABI/testing/sysfs-devices-system-cpu
@@ -108,6 +108,8 @@ Description:CPU topology files that describe a 
logical CPU's relationship
 
 What:  /sys/devices/system/cpu/cpuidle/current_driver
/sys/devices/system/cpu/cpuidle/current_governer_ro
+   /sys/devices/system/cpu/cpuidle/available_governors
+   /sys/devices/system/cpu/cpuidle/current_governor
 Date:  September 2007
 Contact:   Linux kernel mailing list <linux-kernel@vger.kernel.org>
 Description:   Discover cpuidle policy and mechanism
@@ -119,13 +121,84 @@ Description:  Discover cpuidle policy and mechanism
Idle policy (governor) is differentiated from idle mechanism
(driver)
 
-   current_driver: displays current idle mechanism
+   current_driver: (RO) displays current idle mechanism
 
-   current_governor_ro: displays current idle policy
+   current_governor_ro: (RO) displays current idle policy
+
+   With the cpuidle_sysfs_switch boot option enabled (meant for
+   developer testing), the following three attributes are visible
+   instead:
+
+   current_driver: same as described above
+
+   available_governors: (RO) displays a space separated list of
+   available governors
+
+   current_governor: (RW) displays current idle policy. Users can
+   switch the governor at runtime by writing to this file.
 
See files in Documentation/cpuidle/ for more information.
 
 
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/name
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/latency
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/power
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/time
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/usage
+Date:  September 2007
+KernelVersion: v2.6.24
+Contact:   Linux kernel mailing list <linux-kernel@vger.kernel.org>
+Description:
+   The directory /sys/devices/system/cpu/cpuX/cpuidle contains per
+   logical CPU specific cpuidle information for each online cpu X.
+   The processor idle states which are available for use have the
+   following attributes:
+
+   name: (RO) Name of the idle state (string).
+
+   latency: (RO) The latency to exit out of this idle state (in
+   microseconds).
+
+   power: (RO) The power consumed while in this idle state (in
+   milliwatts).
+
+   time: (RO) The total time spent in this idle state (in 
microseconds).
+
+   usage: (RO) Number of times this state was entered (a count).
+
+
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/desc
+Date:  February 2008
+KernelVersion: v2.6.25
+Contact:   Linux kernel mailing list <linux-kernel@vger.kernel.org>
+Description:
+   (RO) A small description about the idle state (string).
+
+
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/disable
+Date:  March 2012
+KernelVersion: v3.10
+Contact:   Linux kernel mailing list <linux-kernel@vger.kernel.org>
+Description:
+   (RW) Option to disable this idle state (bool). The behavior and
+   the effect of the disable variable depends on the implementation
+   of a particular governor. In the ladder governor, for example,
+   it is not coherent, i.e. if one is disabling a light state, then
+   all deeper states are disabled as well, but the disable variable
+   does not reflect it. Likewise, if one enables a deep state but a
+   lighter state still is disabled, then this has no effect.
+
+
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/residency
+Date:  March 2014
+KernelVersion: v3.15
+Contact:   Linux kernel mailing list <linux-kernel@vger.kernel.org>
+Description:
+   (RO) Display the target residency i.e. the minimum amount of
+   time (in microseconds) this cpu should spend in thi

[PATCH v4] Documentation/ABI: update cpuidle sysfs documentation

2018-02-06 Thread Aishwarya Pant
Update cpuidle documentation using git logs and existing documentation
in Documentation/cpuidle/sysfs.txt. This might be useful for scripting
and tracking changes in the ABI.

Signed-off-by: Aishwarya Pant 
---
Changes in v4:
- Fix patch formatting
v3:
- Fix subject line
v2:
- Merge cpuidle_sysfs_switch attributes' description with the previous
  entry.

 Documentation/ABI/testing/sysfs-devices-system-cpu | 77 +-
 1 file changed, 75 insertions(+), 2 deletions(-)

diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu 
b/Documentation/ABI/testing/sysfs-devices-system-cpu
index bfd29bc8d37a..e9ee67f80933 100644
--- a/Documentation/ABI/testing/sysfs-devices-system-cpu
+++ b/Documentation/ABI/testing/sysfs-devices-system-cpu
@@ -108,6 +108,8 @@ Description:CPU topology files that describe a 
logical CPU's relationship
 
 What:  /sys/devices/system/cpu/cpuidle/current_driver
/sys/devices/system/cpu/cpuidle/current_governer_ro
+   /sys/devices/system/cpu/cpuidle/available_governors
+   /sys/devices/system/cpu/cpuidle/current_governor
 Date:  September 2007
 Contact:   Linux kernel mailing list 
 Description:   Discover cpuidle policy and mechanism
@@ -119,13 +121,84 @@ Description:  Discover cpuidle policy and mechanism
Idle policy (governor) is differentiated from idle mechanism
(driver)
 
-   current_driver: displays current idle mechanism
+   current_driver: (RO) displays current idle mechanism
 
-   current_governor_ro: displays current idle policy
+   current_governor_ro: (RO) displays current idle policy
+
+   With the cpuidle_sysfs_switch boot option enabled (meant for
+   developer testing), the following three attributes are visible
+   instead:
+
+   current_driver: same as described above
+
+   available_governors: (RO) displays a space separated list of
+   available governors
+
+   current_governor: (RW) displays current idle policy. Users can
+   switch the governor at runtime by writing to this file.
 
See files in Documentation/cpuidle/ for more information.
 
 
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/name
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/latency
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/power
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/time
+   /sys/devices/system/cpu/cpuX/cpuidle/stateN/usage
+Date:  September 2007
+KernelVersion: v2.6.24
+Contact:   Linux kernel mailing list 
+Description:
+   The directory /sys/devices/system/cpu/cpuX/cpuidle contains per
+   logical CPU specific cpuidle information for each online cpu X.
+   The processor idle states which are available for use have the
+   following attributes:
+
+   name: (RO) Name of the idle state (string).
+
+   latency: (RO) The latency to exit out of this idle state (in
+   microseconds).
+
+   power: (RO) The power consumed while in this idle state (in
+   milliwatts).
+
+   time: (RO) The total time spent in this idle state (in 
microseconds).
+
+   usage: (RO) Number of times this state was entered (a count).
+
+
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/desc
+Date:  February 2008
+KernelVersion: v2.6.25
+Contact:   Linux kernel mailing list 
+Description:
+   (RO) A small description about the idle state (string).
+
+
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/disable
+Date:  March 2012
+KernelVersion: v3.10
+Contact:   Linux kernel mailing list 
+Description:
+   (RW) Option to disable this idle state (bool). The behavior and
+   the effect of the disable variable depends on the implementation
+   of a particular governor. In the ladder governor, for example,
+   it is not coherent, i.e. if one is disabling a light state, then
+   all deeper states are disabled as well, but the disable variable
+   does not reflect it. Likewise, if one enables a deep state but a
+   lighter state still is disabled, then this has no effect.
+
+
+What:  /sys/devices/system/cpu/cpuX/cpuidle/stateN/residency
+Date:  March 2014
+KernelVersion: v3.15
+Contact:   Linux kernel mailing list 
+Description:
+   (RO) Display the target residency i.e. the minimum amount of
+   time (in microseconds) this cpu should spend in this idle state
+   to make the transition worth the effort.
+
+
 What:  /sys/devices/system/cpu/cpu#/cpufreq/*
 Date:  pre-git history
 Contact:   linux...@vger.kernel.org
-- 
2.16.1



[PATCH v2 3/3] backlight: adp8860: document sysfs attributes

2018-02-05 Thread Aishwarya Pant
Add documentation for sysfs interface of adp8860 series backlight
devices by reading through code and git commits.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
Acked-by: Michael Hennerich <michael.henner...@analog.com>
---
 .../ABI/testing/sysfs-class-backlight-adp8860  | 54 ++
 1 file changed, 54 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp8860

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-adp8860 
b/Documentation/ABI/testing/sysfs-class-backlight-adp8860
new file mode 100644
index ..54d61c788b1b
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-adp8860
@@ -0,0 +1,54 @@
+sysfs interface for analog devices adp8860 backlight driver
+---
+
+The backlight brightness control operates at three different levels for the
+adp8860, adp8861 and adp8863 devices: daylight (level 1), office (level 2) and
+dark (level 3). By default the brightness operates at the daylight brightness
+level.
+
+What:  /sys/class/backlight//ambient_light_level
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich <michael.henner...@analog.com>
+Description:
+   (RO) 13-bit conversion value for the first light sensor—high
+   byte (Bit 12 to Bit 8). The value is updated every 80 ms (when
+   the light sensor is enabled).
+
+
+What:  /sys/class/backlight//ambient_light_zone
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich <michael.henner...@analog.com>
+Description:
+   (RW) Read or write the specific level at which the backlight
+   operates. Value "0" enables automatic ambient light sensing, and
+   values "1", "2" or "3" set the control to daylight, office or
+   dark respectively.
+
+
+What:  /sys/class/backlight//l1_daylight_max
+What:  /sys/class/backlight//l2_office_max
+What:  /sys/class/backlight//l3_dark_max
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich <michael.henner...@analog.com>
+Description:
+   (RW) Maximum current setting for the backlight when brightness
+   is at one of the three levels (daylight, office or dark). This
+   is an input code between 0 and 127, which is transformed to a
+   value between 0 mA and 30 mA using linear or non-linear
+   algorithms.
+
+
+What:  /sys/class/backlight//l1_daylight_dim
+What:  /sys/class/backlight//l2_office_dim
+What:  /sys/class/backlight//l3_dark_dim
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich <michael.henner...@analog.com>
+Description:
+   (RW) Dim current setting for the backlight when brightness is at
+   one of the three levels (daylight, office or dark). This is an
+   input code between 0 and 127, which is transformed to a value
+   between 0 mA and 30 mA using linear or non-linear algorithms.
-- 
2.16.1



[PATCH v2 3/3] backlight: adp8860: document sysfs attributes

2018-02-05 Thread Aishwarya Pant
Add documentation for sysfs interface of adp8860 series backlight
devices by reading through code and git commits.

Signed-off-by: Aishwarya Pant 
Acked-by: Michael Hennerich 
---
 .../ABI/testing/sysfs-class-backlight-adp8860  | 54 ++
 1 file changed, 54 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp8860

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-adp8860 
b/Documentation/ABI/testing/sysfs-class-backlight-adp8860
new file mode 100644
index ..54d61c788b1b
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-adp8860
@@ -0,0 +1,54 @@
+sysfs interface for analog devices adp8860 backlight driver
+---
+
+The backlight brightness control operates at three different levels for the
+adp8860, adp8861 and adp8863 devices: daylight (level 1), office (level 2) and
+dark (level 3). By default the brightness operates at the daylight brightness
+level.
+
+What:  /sys/class/backlight//ambient_light_level
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich 
+Description:
+   (RO) 13-bit conversion value for the first light sensor—high
+   byte (Bit 12 to Bit 8). The value is updated every 80 ms (when
+   the light sensor is enabled).
+
+
+What:  /sys/class/backlight//ambient_light_zone
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich 
+Description:
+   (RW) Read or write the specific level at which the backlight
+   operates. Value "0" enables automatic ambient light sensing, and
+   values "1", "2" or "3" set the control to daylight, office or
+   dark respectively.
+
+
+What:  /sys/class/backlight//l1_daylight_max
+What:  /sys/class/backlight//l2_office_max
+What:  /sys/class/backlight//l3_dark_max
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich 
+Description:
+   (RW) Maximum current setting for the backlight when brightness
+   is at one of the three levels (daylight, office or dark). This
+   is an input code between 0 and 127, which is transformed to a
+   value between 0 mA and 30 mA using linear or non-linear
+   algorithms.
+
+
+What:  /sys/class/backlight//l1_daylight_dim
+What:  /sys/class/backlight//l2_office_dim
+What:  /sys/class/backlight//l3_dark_dim
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich 
+Description:
+   (RW) Dim current setting for the backlight when brightness is at
+   one of the three levels (daylight, office or dark). This is an
+   input code between 0 and 127, which is transformed to a value
+   between 0 mA and 30 mA using linear or non-linear algorithms.
-- 
2.16.1



[PATCH v2 2/3] backlight: adp5520: document sysfs attributes

2018-02-05 Thread Aishwarya Pant
Add documentation for sysfs interface of adp5520/adp5501 analog devices
backlight driver by reading code and looking through git commit logs.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
Acked-by: Michael Hennerich <michael.henner...@analog.com>
---
 .../ABI/testing/sysfs-class-backlight-adp5520  | 31 ++
 1 file changed, 31 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp5520

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-adp5520 
b/Documentation/ABI/testing/sysfs-class-backlight-adp5520
new file mode 100644
index ..34b6ebafa210
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-adp5520
@@ -0,0 +1,31 @@
+sysfs interface for analog devices adp5520(01) backlight driver
+---
+
+The backlight brightness control operates at three different levels for the
+adp5520 and adp5501 devices: daylight (level 1), office (level 2) and dark
+(level 3). By default the brightness operates at the daylight brightness level.
+
+What:  /sys/class/backlight//daylight_max
+What:  /sys/class/backlight//office_max
+What:  /sys/class/backlight//dark_max
+Date:  Sep, 2009
+KernelVersion: v2.6.32
+Contact:   Michael Hennerich <michael.henner...@analog.com>
+Description:
+   (RW) Maximum current setting for the backlight when brightness
+   is at one of the three levels (daylight, office or dark). This
+   is an input code between 0 and 127, which is transformed to a
+   value between 0 mA and 30 mA using linear or non-linear
+   algorithms.
+
+What:  /sys/class/backlight//daylight_dim
+What:  /sys/class/backlight//office_dim
+What:  /sys/class/backlight//dark_dim
+Date:  Sep, 2009
+KernelVersion: v2.6.32
+Contact:   Michael Hennerich <michael.henner...@analog.com>
+Description:
+   (RW) Dim current setting for the backlight when brightness is at
+   one of the three levels (daylight, office or dark). This is an
+   input code between 0 and 127, which is transformed to a value
+   between 0 mA and 30 mA using linear or non-linear algorithms.
-- 
2.16.1



[PATCH v2 2/3] backlight: adp5520: document sysfs attributes

2018-02-05 Thread Aishwarya Pant
Add documentation for sysfs interface of adp5520/adp5501 analog devices
backlight driver by reading code and looking through git commit logs.

Signed-off-by: Aishwarya Pant 
Acked-by: Michael Hennerich 
---
 .../ABI/testing/sysfs-class-backlight-adp5520  | 31 ++
 1 file changed, 31 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp5520

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-adp5520 
b/Documentation/ABI/testing/sysfs-class-backlight-adp5520
new file mode 100644
index ..34b6ebafa210
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-adp5520
@@ -0,0 +1,31 @@
+sysfs interface for analog devices adp5520(01) backlight driver
+---
+
+The backlight brightness control operates at three different levels for the
+adp5520 and adp5501 devices: daylight (level 1), office (level 2) and dark
+(level 3). By default the brightness operates at the daylight brightness level.
+
+What:  /sys/class/backlight//daylight_max
+What:  /sys/class/backlight//office_max
+What:  /sys/class/backlight//dark_max
+Date:  Sep, 2009
+KernelVersion: v2.6.32
+Contact:   Michael Hennerich 
+Description:
+   (RW) Maximum current setting for the backlight when brightness
+   is at one of the three levels (daylight, office or dark). This
+   is an input code between 0 and 127, which is transformed to a
+   value between 0 mA and 30 mA using linear or non-linear
+   algorithms.
+
+What:  /sys/class/backlight//daylight_dim
+What:  /sys/class/backlight//office_dim
+What:  /sys/class/backlight//dark_dim
+Date:  Sep, 2009
+KernelVersion: v2.6.32
+Contact:   Michael Hennerich 
+Description:
+   (RW) Dim current setting for the backlight when brightness is at
+   one of the three levels (daylight, office or dark). This is an
+   input code between 0 and 127, which is transformed to a value
+   between 0 mA and 30 mA using linear or non-linear algorithms.
-- 
2.16.1



[PATCH v2 1/3] backlight: lm3639: document sysfs attributes

2018-02-05 Thread Aishwarya Pant
Add documentation for sysfs interfaces of Texas Instruments lm3639
backlight + flash led driver chip by looking through git commits and
reading code.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
Acked-by: Daniel Thompson <daniel.thomp...@linaro.org>
---
Changes in v2:
- Update contact information

 Documentation/ABI/testing/sysfs-class-backlight-lm3639 | 11 +++
 1 file changed, 11 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lm3639

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lm3639 
b/Documentation/ABI/testing/sysfs-class-backlight-lm3639
new file mode 100644
index ..f7e92a82ea25
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-lm3639
@@ -0,0 +1,11 @@
+sysfs interface for Texas Instruments lm3639 backlight + flash led driver chip
+--
+
+What:  /sys/class/backlight//bled_mode
+Date:  Oct, 2012
+KernelVersion: v3.10
+Contact:   dri-de...@lists.freedesktop.org
+Description:
+   (WO) Write to the backlight mapping mode. The backlight current
+   can be mapped for either exponential (value "0") or linear
+   mapping modes (default).
-- 
2.16.1



[PATCH v2 1/3] backlight: lm3639: document sysfs attributes

2018-02-05 Thread Aishwarya Pant
Add documentation for sysfs interfaces of Texas Instruments lm3639
backlight + flash led driver chip by looking through git commits and
reading code.

Signed-off-by: Aishwarya Pant 
Acked-by: Daniel Thompson 
---
Changes in v2:
- Update contact information

 Documentation/ABI/testing/sysfs-class-backlight-lm3639 | 11 +++
 1 file changed, 11 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lm3639

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lm3639 
b/Documentation/ABI/testing/sysfs-class-backlight-lm3639
new file mode 100644
index ..f7e92a82ea25
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-lm3639
@@ -0,0 +1,11 @@
+sysfs interface for Texas Instruments lm3639 backlight + flash led driver chip
+--
+
+What:  /sys/class/backlight//bled_mode
+Date:  Oct, 2012
+KernelVersion: v3.10
+Contact:   dri-de...@lists.freedesktop.org
+Description:
+   (WO) Write to the backlight mapping mode. The backlight current
+   can be mapped for either exponential (value "0") or linear
+   mapping modes (default).
-- 
2.16.1



[PATCH v2 0/3] backlight: document sysfs interfaces

2018-02-05 Thread Aishwarya Pant
Patchset contains documentation of the sysfs interfaces for the
following five backlight drivers-
1) lm3639
2) adp5520
3) adp8860

It was compiled from data sheets, reading code and git history logs. In v2 of
the patches, documentation for lp8788 and lp855x devices was dropped as the
attributes contained debug information.

Aishwarya Pant (3):
  backlight: lm3639: document sysfs attributes
  backlight: adp5520: document sysfs attributes
  backlight: adp8860: document sysfs attributes

 .../ABI/testing/sysfs-class-backlight-adp5520  | 31 +
 .../ABI/testing/sysfs-class-backlight-adp8860  | 54 ++
 .../ABI/testing/sysfs-class-backlight-lm3639   | 11 +
 3 files changed, 96 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp5520
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp8860
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lm3639

-- 
2.16.1



[PATCH v2 0/3] backlight: document sysfs interfaces

2018-02-05 Thread Aishwarya Pant
Patchset contains documentation of the sysfs interfaces for the
following five backlight drivers-
1) lm3639
2) adp5520
3) adp8860

It was compiled from data sheets, reading code and git history logs. In v2 of
the patches, documentation for lp8788 and lp855x devices was dropped as the
attributes contained debug information.

Aishwarya Pant (3):
  backlight: lm3639: document sysfs attributes
  backlight: adp5520: document sysfs attributes
  backlight: adp8860: document sysfs attributes

 .../ABI/testing/sysfs-class-backlight-adp5520  | 31 +
 .../ABI/testing/sysfs-class-backlight-adp8860  | 54 ++
 .../ABI/testing/sysfs-class-backlight-lm3639   | 11 +
 3 files changed, 96 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp5520
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp8860
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lm3639

-- 
2.16.1



[PATCH v2] Documentation/ABI: update infiniband sysfs interfaces

2018-02-05 Thread Aishwarya Pant
Add documentation for core and hardware specific infiniband interfaces.
The descriptions have been collected from git commit logs, reading
through code and data sheets. Some drivers have incomplete doc and are
annotated with the comment '[to be documented]'.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
Changes in v2:
- Move infiniband interface from testing to stable
- Fix typos
- Update description of cap_mask, port_xmit_constraint_errors and
  port_rcv_constraint_errors
- Add doc for hw_counters
- Remove old documentation

 Documentation/ABI/stable/sysfs-class-infiniband  | 818 +++
 Documentation/ABI/testing/sysfs-class-infiniband |  16 -
 Documentation/infiniband/sysfs.txt   | 129 +---
 3 files changed, 820 insertions(+), 143 deletions(-)
 create mode 100644 Documentation/ABI/stable/sysfs-class-infiniband
 delete mode 100644 Documentation/ABI/testing/sysfs-class-infiniband

diff --git a/Documentation/ABI/stable/sysfs-class-infiniband 
b/Documentation/ABI/stable/sysfs-class-infiniband
new file mode 100644
index ..f9c709a8d0ab
--- /dev/null
+++ b/Documentation/ABI/stable/sysfs-class-infiniband
@@ -0,0 +1,818 @@
+sysfs interface common for all infiniband devices
+-
+
+What:  /sys/class/infiniband//node_type
+What:  /sys/class/infiniband//node_guid
+What:  /sys/class/infiniband//sys_image_guid
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+   node_type:  (RO) Node type (CA, RNIC, usNIC, usNIC UDP,
+   switch or router)
+
+   node_guid:  (RO) Node GUID
+
+   sys_image_guid: (RO) System image GUID
+
+
+What:  /sys/class/infiniband//node_desc
+Date:  Feb, 2006
+KernelVersion: v2.6.17
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RW) Update the node description with information such as the
+   node's hostname, so that IB network management software can tie
+   its view to the real world.
+
+
+What:  /sys/class/infiniband//fw_ver
+Date:  Jun, 2016
+KernelVersion: v4.10
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Display firmware version
+
+
+What:  /sys/class/infiniband//ports//lid
+What:  /sys/class/infiniband//ports//rate
+What:  /sys/class/infiniband//ports//lid_mask_count
+What:  /sys/class/infiniband//ports//sm_sl
+What:  /sys/class/infiniband//ports//sm_lid
+What:  /sys/class/infiniband//ports//state
+What:  /sys/class/infiniband//ports//phys_state
+What:  /sys/class/infiniband//ports//cap_mask
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+
+   lid:(RO) Port LID
+
+   rate:   (RO) Port data rate (active width * active
+   speed)
+
+   lid_mask_count: (RO) Port LID mask count
+
+   sm_sl:  (RO) Subnet manager SL for port's subnet
+
+   sm_lid: (RO) Subnet manager LID for port's subnet
+
+   state:  (RO) Port state (DOWN, INIT, ARMED, ACTIVE or
+   ACTIVE_DEFER)
+
+   phys_state: (RO) Port physical state (Sleep, Polling,
+   LinkUp, etc)
+
+   cap_mask:   (RO) Port capability mask. 2 bits here are
+   settable- IsCommunicationManagementSupported
+   (set when CM module is loaded) and IsSM (set via
+   open of issmN file).
+
+
+What:  /sys/class/infiniband//ports//link_layer
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Link layer type information (Infiniband or Ethernet type)
+
+
+What:  
/sys/class/infiniband//ports//counters/symbol_error
+What:  
/sys/class/infiniband//ports//counters/port_rcv_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_remote_physical_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_switch_relay_errors
+What:  
/sys/class/infiniband//ports//counters/link_error_recovery
+What:  
/sys/class/infiniband//ports//counters/port_xmit_constraint_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_contraint_errors
+What:  
/sys/class/infiniband//ports//counters/local_link_integrity_errors
+What:  
/sys/class/infiniband//ports//counters/excessive_buffer_overrun_errors
+What:  
/sys/class/infiniband//ports//counters/port_xmit_data
+What:  
/sys/class/infiniband//ports//counters/port_rcv_data
+What:  
/sys/class/infiniband//ports//counters/port_xmit_packets

[PATCH v2] Documentation/ABI: update infiniband sysfs interfaces

2018-02-05 Thread Aishwarya Pant
Add documentation for core and hardware specific infiniband interfaces.
The descriptions have been collected from git commit logs, reading
through code and data sheets. Some drivers have incomplete doc and are
annotated with the comment '[to be documented]'.

Signed-off-by: Aishwarya Pant 
---
Changes in v2:
- Move infiniband interface from testing to stable
- Fix typos
- Update description of cap_mask, port_xmit_constraint_errors and
  port_rcv_constraint_errors
- Add doc for hw_counters
- Remove old documentation

 Documentation/ABI/stable/sysfs-class-infiniband  | 818 +++
 Documentation/ABI/testing/sysfs-class-infiniband |  16 -
 Documentation/infiniband/sysfs.txt   | 129 +---
 3 files changed, 820 insertions(+), 143 deletions(-)
 create mode 100644 Documentation/ABI/stable/sysfs-class-infiniband
 delete mode 100644 Documentation/ABI/testing/sysfs-class-infiniband

diff --git a/Documentation/ABI/stable/sysfs-class-infiniband 
b/Documentation/ABI/stable/sysfs-class-infiniband
new file mode 100644
index ..f9c709a8d0ab
--- /dev/null
+++ b/Documentation/ABI/stable/sysfs-class-infiniband
@@ -0,0 +1,818 @@
+sysfs interface common for all infiniband devices
+-
+
+What:  /sys/class/infiniband//node_type
+What:  /sys/class/infiniband//node_guid
+What:  /sys/class/infiniband//sys_image_guid
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+   node_type:  (RO) Node type (CA, RNIC, usNIC, usNIC UDP,
+   switch or router)
+
+   node_guid:  (RO) Node GUID
+
+   sys_image_guid: (RO) System image GUID
+
+
+What:  /sys/class/infiniband//node_desc
+Date:  Feb, 2006
+KernelVersion: v2.6.17
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RW) Update the node description with information such as the
+   node's hostname, so that IB network management software can tie
+   its view to the real world.
+
+
+What:  /sys/class/infiniband//fw_ver
+Date:  Jun, 2016
+KernelVersion: v4.10
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Display firmware version
+
+
+What:  /sys/class/infiniband//ports//lid
+What:  /sys/class/infiniband//ports//rate
+What:  /sys/class/infiniband//ports//lid_mask_count
+What:  /sys/class/infiniband//ports//sm_sl
+What:  /sys/class/infiniband//ports//sm_lid
+What:  /sys/class/infiniband//ports//state
+What:  /sys/class/infiniband//ports//phys_state
+What:  /sys/class/infiniband//ports//cap_mask
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+
+   lid:(RO) Port LID
+
+   rate:   (RO) Port data rate (active width * active
+   speed)
+
+   lid_mask_count: (RO) Port LID mask count
+
+   sm_sl:  (RO) Subnet manager SL for port's subnet
+
+   sm_lid: (RO) Subnet manager LID for port's subnet
+
+   state:  (RO) Port state (DOWN, INIT, ARMED, ACTIVE or
+   ACTIVE_DEFER)
+
+   phys_state: (RO) Port physical state (Sleep, Polling,
+   LinkUp, etc)
+
+   cap_mask:   (RO) Port capability mask. 2 bits here are
+   settable- IsCommunicationManagementSupported
+   (set when CM module is loaded) and IsSM (set via
+   open of issmN file).
+
+
+What:  /sys/class/infiniband//ports//link_layer
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Link layer type information (Infiniband or Ethernet type)
+
+
+What:  
/sys/class/infiniband//ports//counters/symbol_error
+What:  
/sys/class/infiniband//ports//counters/port_rcv_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_remote_physical_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_switch_relay_errors
+What:  
/sys/class/infiniband//ports//counters/link_error_recovery
+What:  
/sys/class/infiniband//ports//counters/port_xmit_constraint_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_contraint_errors
+What:  
/sys/class/infiniband//ports//counters/local_link_integrity_errors
+What:  
/sys/class/infiniband//ports//counters/excessive_buffer_overrun_errors
+What:  
/sys/class/infiniband//ports//counters/port_xmit_data
+What:  
/sys/class/infiniband//ports//counters/port_rcv_data
+What:  
/sys/class/infiniband//ports//counters/port_xmit_packets
+What:  
/sys/class

Re: [PATCH 1/5] backlight: lp8788: document sysfs attributes

2018-02-04 Thread Aishwarya Pant
On Thu, Feb 01, 2018 at 11:36:04AM +, Daniel Thompson wrote:
> On Wed, Jan 31, 2018 at 01:51:21PM +0200, Jani Nikula wrote:
> > On Wed, 31 Jan 2018, Daniel Thompson <daniel.thomp...@linaro.org> wrote:
> > > On Fri, Jan 26, 2018 at 08:20:08PM +0530, Aishwarya Pant wrote:
> > >> Add documentation for sysfs interfaces of lp8788 backlight driver by
> > >> looking through the code and the git commit history.
> > >> 
> > >> Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
> > >> ---
> > >>  Documentation/ABI/testing/sysfs-class-backlight-lp8788 | 10 ++
> > >>  1 file changed, 10 insertions(+)
> > >>  create mode 100644 
> > >> Documentation/ABI/testing/sysfs-class-backlight-lp8788
> > >> 
> > >> diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lp8788 
> > >> b/Documentation/ABI/testing/sysfs-class-backlight-lp8788
> > >> new file mode 100644
> > >> index ..c0e565c8d63d
> > >> --- /dev/null
> > >> +++ b/Documentation/ABI/testing/sysfs-class-backlight-lp8788
> > >> @@ -0,0 +1,10 @@
> > >> +sysfs interface for Texas Instruments lp8788 mfd backlight driver
> > >> +-
> > >> +
> > >> +What:   /sys/class/backlight//bl_ctl_mode
> > >> +Date:   Feb, 2013
> > >> +KernelVersion:  v3.10
> > >> +Contact:Milo Kim <milo@ti.com>
> > >> +Description:
> > >> +(RO) Displays whether the brightness is controlled by 
> > >> the PWM
> > >> +input("PWM based") or the I2C register("Register 
> > >> based").
> > >
> > > I rather dislike drivers with this type of "bonus" sysfs controls. I'm
> > > struggling to come up with any reason why the userspace would want to
> > > read this control (and I think bl_ctl_mode gets the fewest hits after
> > > searching with google hits of any search I've tried) . It looks to me 
> > > like this is debug information that should never have gone into sysfs 
> > > at all.
> > 
> > Agreed. I think the same holds for the other extra sysfs attributes. At
> > worst, having these prevents the backlight class from adding the names
> > later on, which is just backwards.
> 
> The problem is that they do exist...
> 
> For controls which appear to be misplaced debug attributes I think I am
> happy to nuke the values entirely. It is extremely improbable that any
> userspace will notice.
> 
> Unfortunately some of the controls look like they could be poked by an
> custom userspace so I'm quite so confident about nuking these ones...and if we
> don't nuke we should document (so thanks Aishwarya!). 
> 

Hi

Thanks for reviewing. Should I take it to assume that we would like to keep the
debug-like attributes in documentation for now?

Aishwarya

> 
> Daniel.


Re: [PATCH 1/5] backlight: lp8788: document sysfs attributes

2018-02-04 Thread Aishwarya Pant
On Thu, Feb 01, 2018 at 11:36:04AM +, Daniel Thompson wrote:
> On Wed, Jan 31, 2018 at 01:51:21PM +0200, Jani Nikula wrote:
> > On Wed, 31 Jan 2018, Daniel Thompson  wrote:
> > > On Fri, Jan 26, 2018 at 08:20:08PM +0530, Aishwarya Pant wrote:
> > >> Add documentation for sysfs interfaces of lp8788 backlight driver by
> > >> looking through the code and the git commit history.
> > >> 
> > >> Signed-off-by: Aishwarya Pant 
> > >> ---
> > >>  Documentation/ABI/testing/sysfs-class-backlight-lp8788 | 10 ++
> > >>  1 file changed, 10 insertions(+)
> > >>  create mode 100644 
> > >> Documentation/ABI/testing/sysfs-class-backlight-lp8788
> > >> 
> > >> diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lp8788 
> > >> b/Documentation/ABI/testing/sysfs-class-backlight-lp8788
> > >> new file mode 100644
> > >> index ..c0e565c8d63d
> > >> --- /dev/null
> > >> +++ b/Documentation/ABI/testing/sysfs-class-backlight-lp8788
> > >> @@ -0,0 +1,10 @@
> > >> +sysfs interface for Texas Instruments lp8788 mfd backlight driver
> > >> +-
> > >> +
> > >> +What:   /sys/class/backlight//bl_ctl_mode
> > >> +Date:   Feb, 2013
> > >> +KernelVersion:  v3.10
> > >> +Contact:Milo Kim 
> > >> +Description:
> > >> +(RO) Displays whether the brightness is controlled by 
> > >> the PWM
> > >> +input("PWM based") or the I2C register("Register 
> > >> based").
> > >
> > > I rather dislike drivers with this type of "bonus" sysfs controls. I'm
> > > struggling to come up with any reason why the userspace would want to
> > > read this control (and I think bl_ctl_mode gets the fewest hits after
> > > searching with google hits of any search I've tried) . It looks to me 
> > > like this is debug information that should never have gone into sysfs 
> > > at all.
> > 
> > Agreed. I think the same holds for the other extra sysfs attributes. At
> > worst, having these prevents the backlight class from adding the names
> > later on, which is just backwards.
> 
> The problem is that they do exist...
> 
> For controls which appear to be misplaced debug attributes I think I am
> happy to nuke the values entirely. It is extremely improbable that any
> userspace will notice.
> 
> Unfortunately some of the controls look like they could be poked by an
> custom userspace so I'm quite so confident about nuking these ones...and if we
> don't nuke we should document (so thanks Aishwarya!). 
> 

Hi

Thanks for reviewing. Should I take it to assume that we would like to keep the
debug-like attributes in documentation for now?

Aishwarya

> 
> Daniel.


Re: [PATCH] Documentation/ABI: update infiniband sysfs interfaces

2018-02-04 Thread Aishwarya Pant
On Thu, Feb 01, 2018 at 12:48:18PM -0500, Hal Rosenstock wrote:
> On 2/1/2018 8:32 AM, Aishwarya Pant wrote:
> > Add documentation for core and hardware specific infiniband interfaces.
> > The descriptions have been collected from git commit logs, reading
> > through code and data sheets. Some drivers have incomplete doc and are
> > annotated with the comment '[to be documented]'.
> > 
> > Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
> > ---
> >  Documentation/ABI/testing/sysfs-class-infiniband | 755 
> > +++
> >  1 file changed, 755 insertions(+)
> > 
> > diff --git a/Documentation/ABI/testing/sysfs-class-infiniband 
> > b/Documentation/ABI/testing/sysfs-class-infiniband
> > index a86abe66a316..2e150169633b 100644
> > --- a/Documentation/ABI/testing/sysfs-class-infiniband
> > +++ b/Documentation/ABI/testing/sysfs-class-infiniband
> > @@ -1,3 +1,194 @@
> > +sysfs interface common for all infiniband devices
> > +-
> > +
> > +What:  /sys/class/infiniband//node_type
> > +What:  /sys/class/infiniband//node_guid
> > +What:  /sys/class/infiniband//sys_image_guid
> > +Date:  Apr, 2005
> > +KernelVersion: v2.6.12
> > +Contact:   linux-r...@vger.kernel.org
> > +Description:
> > +   node_type:  (RO) Node type (CA, RNIC, usNIC, usNIC UDP,
> > +   switch or router)
> > +
> > +   node_guid:  (RO) Node GUID
> > +
> > +   sys_image_guid: (RO) System image GUID
> > +
> > +
> > +What:  /sys/class/infiniband//node_desc
> > +Date:  Feb, 2006
> > +KernelVersion: v2.6.17
> > +Contact:   linux-r...@vger.kernel.org
> > +Description:
> > +   (RW) Update the node description with information such as the
> > +   node's hostname, so that IB network management software can tie
> > +   its view to the real world.
> > +
> > +
> > +What:  /sys/class/infiniband//fw_ver
> > +Date:  Jun, 2016
> > +KernelVersion: v4.10
> > +Contact:   linux-r...@vger.kernel.org
> > +Description:
> > +   (RO) Display firmware version
> > +
> > +
> > +What:  /sys/class/infiniband//ports//lid
> > +What:  /sys/class/infiniband//ports//rate
> > +What:  
> > /sys/class/infiniband//ports//lid_mask_count
> > +What:  /sys/class/infiniband//ports//sm_sl
> > +What:  /sys/class/infiniband//ports//sm_lid
> > +What:  /sys/class/infiniband//ports//state
> > +What:  
> > /sys/class/infiniband//ports//phys_state
> > +What:  /sys/class/infiniband//ports//cap_mask
> > +Date:  Apr, 2005
> > +KernelVersion: v2.6.12
> > +Contact:   linux-r...@vger.kernel.org
> > +Description:
> > +
> > +   lid:(RO) Port LID
> > +
> > +   rate:   (RO) Port data rate (active width * active
> > +   speed)
> > +
> > +   lid_mask_count: (RO) Port LID mask count
> > +
> > +   sm_slL  (RO) Subnet manager SL for port's subnet
> 
> Typo sm_sl:
> 
> > +
> > +   sm_lid: (RO) Subnet manager LID for port's subnet
> > +
> > +   state:  (RO) Port state (DOWN, INIT, ARMED, ACTIVE or
> > +   ACTIVE_DEFER> +
> > +   phys_state: (RO) Port physical state (Sleep, Polling,
> > +   LinkUp, etc)
> > +
> > +   cap_mask:   (RO) Port capability mask
> 
> 2 bits here are settable: IsCommunicationManagementSupported and IsSM.

Hi

Sorry, I don't quite understand this. cap_mask is a read only value which
indicates the supported functions. So the two bits-
IsCommunicationManagementSupported and IsSM, should not be setttable?

Aishwarya




Re: [PATCH] Documentation/ABI: update infiniband sysfs interfaces

2018-02-04 Thread Aishwarya Pant
On Thu, Feb 01, 2018 at 12:48:18PM -0500, Hal Rosenstock wrote:
> On 2/1/2018 8:32 AM, Aishwarya Pant wrote:
> > Add documentation for core and hardware specific infiniband interfaces.
> > The descriptions have been collected from git commit logs, reading
> > through code and data sheets. Some drivers have incomplete doc and are
> > annotated with the comment '[to be documented]'.
> > 
> > Signed-off-by: Aishwarya Pant 
> > ---
> >  Documentation/ABI/testing/sysfs-class-infiniband | 755 
> > +++
> >  1 file changed, 755 insertions(+)
> > 
> > diff --git a/Documentation/ABI/testing/sysfs-class-infiniband 
> > b/Documentation/ABI/testing/sysfs-class-infiniband
> > index a86abe66a316..2e150169633b 100644
> > --- a/Documentation/ABI/testing/sysfs-class-infiniband
> > +++ b/Documentation/ABI/testing/sysfs-class-infiniband
> > @@ -1,3 +1,194 @@
> > +sysfs interface common for all infiniband devices
> > +-
> > +
> > +What:  /sys/class/infiniband//node_type
> > +What:  /sys/class/infiniband//node_guid
> > +What:  /sys/class/infiniband//sys_image_guid
> > +Date:  Apr, 2005
> > +KernelVersion: v2.6.12
> > +Contact:   linux-r...@vger.kernel.org
> > +Description:
> > +   node_type:  (RO) Node type (CA, RNIC, usNIC, usNIC UDP,
> > +   switch or router)
> > +
> > +   node_guid:  (RO) Node GUID
> > +
> > +   sys_image_guid: (RO) System image GUID
> > +
> > +
> > +What:  /sys/class/infiniband//node_desc
> > +Date:  Feb, 2006
> > +KernelVersion: v2.6.17
> > +Contact:   linux-r...@vger.kernel.org
> > +Description:
> > +   (RW) Update the node description with information such as the
> > +   node's hostname, so that IB network management software can tie
> > +   its view to the real world.
> > +
> > +
> > +What:  /sys/class/infiniband//fw_ver
> > +Date:  Jun, 2016
> > +KernelVersion: v4.10
> > +Contact:   linux-r...@vger.kernel.org
> > +Description:
> > +   (RO) Display firmware version
> > +
> > +
> > +What:  /sys/class/infiniband//ports//lid
> > +What:  /sys/class/infiniband//ports//rate
> > +What:  
> > /sys/class/infiniband//ports//lid_mask_count
> > +What:  /sys/class/infiniband//ports//sm_sl
> > +What:  /sys/class/infiniband//ports//sm_lid
> > +What:  /sys/class/infiniband//ports//state
> > +What:  
> > /sys/class/infiniband//ports//phys_state
> > +What:  /sys/class/infiniband//ports//cap_mask
> > +Date:  Apr, 2005
> > +KernelVersion: v2.6.12
> > +Contact:   linux-r...@vger.kernel.org
> > +Description:
> > +
> > +   lid:(RO) Port LID
> > +
> > +   rate:   (RO) Port data rate (active width * active
> > +   speed)
> > +
> > +   lid_mask_count: (RO) Port LID mask count
> > +
> > +   sm_slL  (RO) Subnet manager SL for port's subnet
> 
> Typo sm_sl:
> 
> > +
> > +   sm_lid: (RO) Subnet manager LID for port's subnet
> > +
> > +   state:  (RO) Port state (DOWN, INIT, ARMED, ACTIVE or
> > +   ACTIVE_DEFER> +
> > +   phys_state: (RO) Port physical state (Sleep, Polling,
> > +   LinkUp, etc)
> > +
> > +   cap_mask:   (RO) Port capability mask
> 
> 2 bits here are settable: IsCommunicationManagementSupported and IsSM.

Hi

Sorry, I don't quite understand this. cap_mask is a read only value which
indicates the supported functions. So the two bits-
IsCommunicationManagementSupported and IsSM, should not be setttable?

Aishwarya




Re: [PATCH] Documentation/ABI: update infiniband sysfs interfaces

2018-02-02 Thread Aishwarya Pant
On Thu, Feb 01, 2018 at 03:08:11PM -0700, Jason Gunthorpe wrote:
> On Thu, Feb 01, 2018 at 07:02:33PM +0530, Aishwarya Pant wrote:
> > Add documentation for core and hardware specific infiniband interfaces.
> > The descriptions have been collected from git commit logs, reading
> > through code and data sheets. Some drivers have incomplete doc and are
> > annotated with the comment '[to be documented]'.
> > 
> > Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
> >  Documentation/ABI/testing/sysfs-class-infiniband | 755 
> > +++
> >  1 file changed, 755 insertions(+)
> 
> Wow this looks really great
> 
> Should this patch delete some of the old documentation?

Yeah, I should do that because the documentation in
Documentation/infiniband/sysfs.txt is out of date.

> 
> > diff --git a/Documentation/ABI/testing/sysfs-class-infiniband 
> > b/Documentation/ABI/testing/sysfs-class-infiniband
> 
> Lots, maybe even all of of this is considered stable..

Okay, I guess it should belong to the stable directory then.

> 
> > +sysfs interface for Broadcom NetXtreme-E RoCE driver
> > +
> > +
> > +What:  /sys/class/infiniband/bnxt_reX/fw_rev
> > +What:  /sys/class/infiniband/bnxt_reX/hw_rev
> > +What:  /sys/class/infiniband/bnxt_reX/hca_type
> 
> These are actually common to all drivers
> 
>  /sys/class/infiniband/XXX/fw_rev, etc

Would make sense to define these at one place- hw_rev, hca_type, board_id are
common to a lot of the drivers.

Aishwarya

> 
> Jason


Re: [PATCH] Documentation/ABI: update infiniband sysfs interfaces

2018-02-02 Thread Aishwarya Pant
On Thu, Feb 01, 2018 at 03:08:11PM -0700, Jason Gunthorpe wrote:
> On Thu, Feb 01, 2018 at 07:02:33PM +0530, Aishwarya Pant wrote:
> > Add documentation for core and hardware specific infiniband interfaces.
> > The descriptions have been collected from git commit logs, reading
> > through code and data sheets. Some drivers have incomplete doc and are
> > annotated with the comment '[to be documented]'.
> > 
> > Signed-off-by: Aishwarya Pant 
> >  Documentation/ABI/testing/sysfs-class-infiniband | 755 
> > +++
> >  1 file changed, 755 insertions(+)
> 
> Wow this looks really great
> 
> Should this patch delete some of the old documentation?

Yeah, I should do that because the documentation in
Documentation/infiniband/sysfs.txt is out of date.

> 
> > diff --git a/Documentation/ABI/testing/sysfs-class-infiniband 
> > b/Documentation/ABI/testing/sysfs-class-infiniband
> 
> Lots, maybe even all of of this is considered stable..

Okay, I guess it should belong to the stable directory then.

> 
> > +sysfs interface for Broadcom NetXtreme-E RoCE driver
> > +
> > +
> > +What:  /sys/class/infiniband/bnxt_reX/fw_rev
> > +What:  /sys/class/infiniband/bnxt_reX/hw_rev
> > +What:  /sys/class/infiniband/bnxt_reX/hca_type
> 
> These are actually common to all drivers
> 
>  /sys/class/infiniband/XXX/fw_rev, etc

Would make sense to define these at one place- hw_rev, hca_type, board_id are
common to a lot of the drivers.

Aishwarya

> 
> Jason


Re: [PATCH 2/5] backlight: lp855x: document sysfs attributes

2018-02-01 Thread Aishwarya Pant
On Thu, Feb 01, 2018 at 11:06:42AM +, Daniel Thompson wrote:
> On Fri, Jan 26, 2018 at 08:23:00PM +0530, Aishwarya Pant wrote:
> > Add documentation for sysfs interface of Texas Instruments lp855x
> > backlight driver by reading code and looking through git commit logs.
> > 
> > Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
> > ---
> >  .../ABI/testing/sysfs-class-backlight-lp855x  | 19 
> > +++
> >  1 file changed, 19 insertions(+)
> >  create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lp855x
> > 
> > diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lp855x 
> > b/Documentation/ABI/testing/sysfs-class-backlight-lp855x
> > new file mode 100644
> > index ..5b9d38958875
> > --- /dev/null
> > +++ b/Documentation/ABI/testing/sysfs-class-backlight-lp855x
> > @@ -0,0 +1,19 @@
> > +sysfs interface for Texas Instruments lp855x backlight driver
> > +
> > +
> > +What:  /sys/class/backlight//chip_id
> > +Date:  Mar, 2012
> > +KernelVersion: v3.10
> > +Contact:   Milo Kim <milo@ti.com>
> > +Description:
> > +   (RO) Displays the lp8755x chip id. Possible values are:
> > +   lp8550, lp8551, lp8552, lp8553, lp8555, lp8556 or lp8557.
> > +
> > +
> > +What:  /sys/class/backlight//bl_ctl_mode
> > +Date:  Mar, 2012
> > +KernelVersion: v3.10
> > +Contact:   Linux kernel mailing list <linux-kernel@vger.kernel.org>
> > +Description:
> > +   (RO) Displays whether the brightness is controlled by the pwm
> > +   input("pwm based) or the i2c register("register based").
> 
> Since like the first patch in the series, these look like they are for
> debugging. That thread is still active but whatever the outcome of that
> thread please assume it also applies to this patch.

All right, I'll wait for conclusion on that thread before I re-send the patchset
with the updates.

Aishwarya

> 
> 
> Daniel.


Re: [PATCH 2/5] backlight: lp855x: document sysfs attributes

2018-02-01 Thread Aishwarya Pant
On Thu, Feb 01, 2018 at 11:06:42AM +, Daniel Thompson wrote:
> On Fri, Jan 26, 2018 at 08:23:00PM +0530, Aishwarya Pant wrote:
> > Add documentation for sysfs interface of Texas Instruments lp855x
> > backlight driver by reading code and looking through git commit logs.
> > 
> > Signed-off-by: Aishwarya Pant 
> > ---
> >  .../ABI/testing/sysfs-class-backlight-lp855x  | 19 
> > +++
> >  1 file changed, 19 insertions(+)
> >  create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lp855x
> > 
> > diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lp855x 
> > b/Documentation/ABI/testing/sysfs-class-backlight-lp855x
> > new file mode 100644
> > index ..5b9d38958875
> > --- /dev/null
> > +++ b/Documentation/ABI/testing/sysfs-class-backlight-lp855x
> > @@ -0,0 +1,19 @@
> > +sysfs interface for Texas Instruments lp855x backlight driver
> > +
> > +
> > +What:  /sys/class/backlight//chip_id
> > +Date:  Mar, 2012
> > +KernelVersion: v3.10
> > +Contact:   Milo Kim 
> > +Description:
> > +   (RO) Displays the lp8755x chip id. Possible values are:
> > +   lp8550, lp8551, lp8552, lp8553, lp8555, lp8556 or lp8557.
> > +
> > +
> > +What:  /sys/class/backlight//bl_ctl_mode
> > +Date:  Mar, 2012
> > +KernelVersion: v3.10
> > +Contact:   Linux kernel mailing list 
> > +Description:
> > +   (RO) Displays whether the brightness is controlled by the pwm
> > +   input("pwm based) or the i2c register("register based").
> 
> Since like the first patch in the series, these look like they are for
> debugging. That thread is still active but whatever the outcome of that
> thread please assume it also applies to this patch.

All right, I'll wait for conclusion on that thread before I re-send the patchset
with the updates.

Aishwarya

> 
> 
> Daniel.


[PATCH] Documentation/ABI: update infiniband sysfs interfaces

2018-02-01 Thread Aishwarya Pant
Add documentation for core and hardware specific infiniband interfaces.
The descriptions have been collected from git commit logs, reading
through code and data sheets. Some drivers have incomplete doc and are
annotated with the comment '[to be documented]'.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 Documentation/ABI/testing/sysfs-class-infiniband | 755 +++
 1 file changed, 755 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-class-infiniband 
b/Documentation/ABI/testing/sysfs-class-infiniband
index a86abe66a316..2e150169633b 100644
--- a/Documentation/ABI/testing/sysfs-class-infiniband
+++ b/Documentation/ABI/testing/sysfs-class-infiniband
@@ -1,3 +1,194 @@
+sysfs interface common for all infiniband devices
+-
+
+What:  /sys/class/infiniband//node_type
+What:  /sys/class/infiniband//node_guid
+What:  /sys/class/infiniband//sys_image_guid
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+   node_type:  (RO) Node type (CA, RNIC, usNIC, usNIC UDP,
+   switch or router)
+
+   node_guid:  (RO) Node GUID
+
+   sys_image_guid: (RO) System image GUID
+
+
+What:  /sys/class/infiniband//node_desc
+Date:  Feb, 2006
+KernelVersion: v2.6.17
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RW) Update the node description with information such as the
+   node's hostname, so that IB network management software can tie
+   its view to the real world.
+
+
+What:  /sys/class/infiniband//fw_ver
+Date:  Jun, 2016
+KernelVersion: v4.10
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Display firmware version
+
+
+What:  /sys/class/infiniband//ports//lid
+What:  /sys/class/infiniband//ports//rate
+What:  /sys/class/infiniband//ports//lid_mask_count
+What:  /sys/class/infiniband//ports//sm_sl
+What:  /sys/class/infiniband//ports//sm_lid
+What:  /sys/class/infiniband//ports//state
+What:  /sys/class/infiniband//ports//phys_state
+What:  /sys/class/infiniband//ports//cap_mask
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+
+   lid:(RO) Port LID
+
+   rate:   (RO) Port data rate (active width * active
+   speed)
+
+   lid_mask_count: (RO) Port LID mask count
+
+   sm_slL  (RO) Subnet manager SL for port's subnet
+
+   sm_lid: (RO) Subnet manager LID for port's subnet
+
+   state:  (RO) Port state (DOWN, INIT, ARMED, ACTIVE or
+   ACTIVE_DEFER)
+
+   phys_state: (RO) Port physical state (Sleep, Polling,
+   LinkUp, etc)
+
+   cap_mask:   (RO) Port capability mask
+
+
+What:  /sys/class/inifiniband//ports//link_layer
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Link layer type information (Infiniband or Ethernet type)
+
+
+What:  
/sys/class/infiniband//ports//counters/symbol_error
+What:  
/sys/class/infiniband//ports//counters/port_rcv_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_remote_physical_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_switch_relay_errors
+What:  
/sys/class/infiniband//ports//counters/link_error_recovery
+What:  
/sys/class/infiniband//ports//counters/port_xmit_constraint_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_contraint_errors
+What:  
/sys/class/infiniband//ports//counters/local_link_integrity_errors
+What:  
/sys/class/infiniband//ports//counters/ecessive_buffer_overrun_errors
+What:  
/sys/class/infiniband//ports//counters/port_xmit_data
+What:  
/sys/class/infiniband//ports//counters/port_rcv_data
+What:  
/sys/class/infiniband//ports//counters/port_xmit_packets
+What:  
/sys/class/infiniband//ports//counters/port_rcv_packets
+What:  
/sys/class/infiniband//ports//counters/unicast_rcv_packets
+What:  
/sys/class/infiniband//ports//counters/unicast_xmit_packets
+What:  
/sys/class/infiniband//ports//counters/multicast_rcv_packets
+What:  
/sys/class/infiniband//ports//counters/multicast_xmit_packets
+What:  
/sys/class/infiniband//ports//counters/link_downed
+What:  
/sys/class/infiniband//ports//counters/port_xmit_discards
+What:  
/sys/class/infiniband//ports//counters/VL15_dropped
+What:  
/sys/class/infiniband//ports//counters/port_xmit_wait
+Date:  Apr, 2005
+KernelV

[PATCH] Documentation/ABI: update infiniband sysfs interfaces

2018-02-01 Thread Aishwarya Pant
Add documentation for core and hardware specific infiniband interfaces.
The descriptions have been collected from git commit logs, reading
through code and data sheets. Some drivers have incomplete doc and are
annotated with the comment '[to be documented]'.

Signed-off-by: Aishwarya Pant 
---
 Documentation/ABI/testing/sysfs-class-infiniband | 755 +++
 1 file changed, 755 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-class-infiniband 
b/Documentation/ABI/testing/sysfs-class-infiniband
index a86abe66a316..2e150169633b 100644
--- a/Documentation/ABI/testing/sysfs-class-infiniband
+++ b/Documentation/ABI/testing/sysfs-class-infiniband
@@ -1,3 +1,194 @@
+sysfs interface common for all infiniband devices
+-
+
+What:  /sys/class/infiniband//node_type
+What:  /sys/class/infiniband//node_guid
+What:  /sys/class/infiniband//sys_image_guid
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+   node_type:  (RO) Node type (CA, RNIC, usNIC, usNIC UDP,
+   switch or router)
+
+   node_guid:  (RO) Node GUID
+
+   sys_image_guid: (RO) System image GUID
+
+
+What:  /sys/class/infiniband//node_desc
+Date:  Feb, 2006
+KernelVersion: v2.6.17
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RW) Update the node description with information such as the
+   node's hostname, so that IB network management software can tie
+   its view to the real world.
+
+
+What:  /sys/class/infiniband//fw_ver
+Date:  Jun, 2016
+KernelVersion: v4.10
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Display firmware version
+
+
+What:  /sys/class/infiniband//ports//lid
+What:  /sys/class/infiniband//ports//rate
+What:  /sys/class/infiniband//ports//lid_mask_count
+What:  /sys/class/infiniband//ports//sm_sl
+What:  /sys/class/infiniband//ports//sm_lid
+What:  /sys/class/infiniband//ports//state
+What:  /sys/class/infiniband//ports//phys_state
+What:  /sys/class/infiniband//ports//cap_mask
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact:   linux-r...@vger.kernel.org
+Description:
+
+   lid:(RO) Port LID
+
+   rate:   (RO) Port data rate (active width * active
+   speed)
+
+   lid_mask_count: (RO) Port LID mask count
+
+   sm_slL  (RO) Subnet manager SL for port's subnet
+
+   sm_lid: (RO) Subnet manager LID for port's subnet
+
+   state:  (RO) Port state (DOWN, INIT, ARMED, ACTIVE or
+   ACTIVE_DEFER)
+
+   phys_state: (RO) Port physical state (Sleep, Polling,
+   LinkUp, etc)
+
+   cap_mask:   (RO) Port capability mask
+
+
+What:  /sys/class/inifiniband//ports//link_layer
+Date:  Oct, 2010
+KernelVersion: v2.6.37
+Contact:   linux-r...@vger.kernel.org
+Description:
+   (RO) Link layer type information (Infiniband or Ethernet type)
+
+
+What:  
/sys/class/infiniband//ports//counters/symbol_error
+What:  
/sys/class/infiniband//ports//counters/port_rcv_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_remote_physical_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_switch_relay_errors
+What:  
/sys/class/infiniband//ports//counters/link_error_recovery
+What:  
/sys/class/infiniband//ports//counters/port_xmit_constraint_errors
+What:  
/sys/class/infiniband//ports//counters/port_rcv_contraint_errors
+What:  
/sys/class/infiniband//ports//counters/local_link_integrity_errors
+What:  
/sys/class/infiniband//ports//counters/ecessive_buffer_overrun_errors
+What:  
/sys/class/infiniband//ports//counters/port_xmit_data
+What:  
/sys/class/infiniband//ports//counters/port_rcv_data
+What:  
/sys/class/infiniband//ports//counters/port_xmit_packets
+What:  
/sys/class/infiniband//ports//counters/port_rcv_packets
+What:  
/sys/class/infiniband//ports//counters/unicast_rcv_packets
+What:  
/sys/class/infiniband//ports//counters/unicast_xmit_packets
+What:  
/sys/class/infiniband//ports//counters/multicast_rcv_packets
+What:  
/sys/class/infiniband//ports//counters/multicast_xmit_packets
+What:  
/sys/class/infiniband//ports//counters/link_downed
+What:  
/sys/class/infiniband//ports//counters/port_xmit_discards
+What:  
/sys/class/infiniband//ports//counters/VL15_dropped
+What:  
/sys/class/infiniband//ports//counters/port_xmit_wait
+Date:  Apr, 2005
+KernelVersion: v2.6.12
+Contact

[PATCH 5/5] backlight: adp8860: document sysfs attributes

2018-01-26 Thread Aishwarya Pant
Add documentation for sysfs interface of adp8860 series backlight
devices by reading through code and git commits.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 .../ABI/testing/sysfs-class-backlight-adp8860  | 54 ++
 1 file changed, 54 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp8860

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-adp8860 
b/Documentation/ABI/testing/sysfs-class-backlight-adp8860
new file mode 100644
index ..54d61c788b1b
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-adp8860
@@ -0,0 +1,54 @@
+sysfs interface for analog devices adp8860 backlight driver
+---
+
+The backlight brightness control operates at three different levels for the
+adp8860, adp8861 and adp8863 devices: daylight (level 1), office (level 2) and
+dark (level 3). By default the brightness operates at the daylight brightness
+level.
+
+What:  /sys/class/backlight//ambient_light_level
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich <michael.henner...@analog.com>
+Description:
+   (RO) 13-bit conversion value for the first light sensor—high
+   byte (Bit 12 to Bit 8). The value is updated every 80 ms (when
+   the light sensor is enabled).
+
+
+What:  /sys/class/backlight//ambient_light_zone
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich <michael.henner...@analog.com>
+Description:
+   (RW) Read or write the specific level at which the backlight
+   operates. Value "0" enables automatic ambient light sensing, and
+   values "1", "2" or "3" set the control to daylight, office or
+   dark respectively.
+
+
+What:  /sys/class/backlight//l1_daylight_max
+What:  /sys/class/backlight//l2_office_max
+What:  /sys/class/backlight//l3_dark_max
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich <michael.henner...@analog.com>
+Description:
+   (RW) Maximum current setting for the backlight when brightness
+   is at one of the three levels (daylight, office or dark). This
+   is an input code between 0 and 127, which is transformed to a
+   value between 0 mA and 30 mA using linear or non-linear
+   algorithms.
+
+
+What:  /sys/class/backlight//l1_daylight_dim
+What:  /sys/class/backlight//l2_office_dim
+What:  /sys/class/backlight//l3_dark_dim
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich <michael.henner...@analog.com>
+Description:
+   (RW) Dim current setting for the backlight when brightness is at
+   one of the three levels (daylight, office or dark). This is an
+   input code between 0 and 127, which is transformed to a value
+   between 0 mA and 30 mA using linear or non-linear algorithms.
-- 
2.16.1



[PATCH 5/5] backlight: adp8860: document sysfs attributes

2018-01-26 Thread Aishwarya Pant
Add documentation for sysfs interface of adp8860 series backlight
devices by reading through code and git commits.

Signed-off-by: Aishwarya Pant 
---
 .../ABI/testing/sysfs-class-backlight-adp8860  | 54 ++
 1 file changed, 54 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp8860

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-adp8860 
b/Documentation/ABI/testing/sysfs-class-backlight-adp8860
new file mode 100644
index ..54d61c788b1b
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-adp8860
@@ -0,0 +1,54 @@
+sysfs interface for analog devices adp8860 backlight driver
+---
+
+The backlight brightness control operates at three different levels for the
+adp8860, adp8861 and adp8863 devices: daylight (level 1), office (level 2) and
+dark (level 3). By default the brightness operates at the daylight brightness
+level.
+
+What:  /sys/class/backlight//ambient_light_level
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich 
+Description:
+   (RO) 13-bit conversion value for the first light sensor—high
+   byte (Bit 12 to Bit 8). The value is updated every 80 ms (when
+   the light sensor is enabled).
+
+
+What:  /sys/class/backlight//ambient_light_zone
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich 
+Description:
+   (RW) Read or write the specific level at which the backlight
+   operates. Value "0" enables automatic ambient light sensing, and
+   values "1", "2" or "3" set the control to daylight, office or
+   dark respectively.
+
+
+What:  /sys/class/backlight//l1_daylight_max
+What:  /sys/class/backlight//l2_office_max
+What:  /sys/class/backlight//l3_dark_max
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich 
+Description:
+   (RW) Maximum current setting for the backlight when brightness
+   is at one of the three levels (daylight, office or dark). This
+   is an input code between 0 and 127, which is transformed to a
+   value between 0 mA and 30 mA using linear or non-linear
+   algorithms.
+
+
+What:  /sys/class/backlight//l1_daylight_dim
+What:  /sys/class/backlight//l2_office_dim
+What:  /sys/class/backlight//l3_dark_dim
+Date:  Apr, 2010
+KernelVersion: v2.6.35
+Contact:   Michael Hennerich 
+Description:
+   (RW) Dim current setting for the backlight when brightness is at
+   one of the three levels (daylight, office or dark). This is an
+   input code between 0 and 127, which is transformed to a value
+   between 0 mA and 30 mA using linear or non-linear algorithms.
-- 
2.16.1



[PATCH 4/5] backlight: adp5520: document sysfs attributes

2018-01-26 Thread Aishwarya Pant
Add documentation for sysfs interface of adp5520/adp5501 analog devices
backlight driver by reading code and looking through git commit logs.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 .../ABI/testing/sysfs-class-backlight-adp5520  | 31 ++
 1 file changed, 31 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp5520

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-adp5520 
b/Documentation/ABI/testing/sysfs-class-backlight-adp5520
new file mode 100644
index ..34b6ebafa210
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-adp5520
@@ -0,0 +1,31 @@
+sysfs interface for analog devices adp5520(01) backlight driver
+---
+
+The backlight brightness control operates at three different levels for the
+adp5520 and adp5501 devices: daylight (level 1), office (level 2) and dark
+(level 3). By default the brightness operates at the daylight brightness level.
+
+What:  /sys/class/backlight//daylight_max
+What:  /sys/class/backlight//office_max
+What:  /sys/class/backlight//dark_max
+Date:  Sep, 2009
+KernelVersion: v2.6.32
+Contact:   Michael Hennerich <michael.henner...@analog.com>
+Description:
+   (RW) Maximum current setting for the backlight when brightness
+   is at one of the three levels (daylight, office or dark). This
+   is an input code between 0 and 127, which is transformed to a
+   value between 0 mA and 30 mA using linear or non-linear
+   algorithms.
+
+What:  /sys/class/backlight//daylight_dim
+What:  /sys/class/backlight//office_dim
+What:  /sys/class/backlight//dark_dim
+Date:  Sep, 2009
+KernelVersion: v2.6.32
+Contact:   Michael Hennerich <michael.henner...@analog.com>
+Description:
+   (RW) Dim current setting for the backlight when brightness is at
+   one of the three levels (daylight, office or dark). This is an
+   input code between 0 and 127, which is transformed to a value
+   between 0 mA and 30 mA using linear or non-linear algorithms.
-- 
2.16.1



[PATCH 4/5] backlight: adp5520: document sysfs attributes

2018-01-26 Thread Aishwarya Pant
Add documentation for sysfs interface of adp5520/adp5501 analog devices
backlight driver by reading code and looking through git commit logs.

Signed-off-by: Aishwarya Pant 
---
 .../ABI/testing/sysfs-class-backlight-adp5520  | 31 ++
 1 file changed, 31 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp5520

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-adp5520 
b/Documentation/ABI/testing/sysfs-class-backlight-adp5520
new file mode 100644
index ..34b6ebafa210
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-adp5520
@@ -0,0 +1,31 @@
+sysfs interface for analog devices adp5520(01) backlight driver
+---
+
+The backlight brightness control operates at three different levels for the
+adp5520 and adp5501 devices: daylight (level 1), office (level 2) and dark
+(level 3). By default the brightness operates at the daylight brightness level.
+
+What:  /sys/class/backlight//daylight_max
+What:  /sys/class/backlight//office_max
+What:  /sys/class/backlight//dark_max
+Date:  Sep, 2009
+KernelVersion: v2.6.32
+Contact:   Michael Hennerich 
+Description:
+   (RW) Maximum current setting for the backlight when brightness
+   is at one of the three levels (daylight, office or dark). This
+   is an input code between 0 and 127, which is transformed to a
+   value between 0 mA and 30 mA using linear or non-linear
+   algorithms.
+
+What:  /sys/class/backlight//daylight_dim
+What:  /sys/class/backlight//office_dim
+What:  /sys/class/backlight//dark_dim
+Date:  Sep, 2009
+KernelVersion: v2.6.32
+Contact:   Michael Hennerich 
+Description:
+   (RW) Dim current setting for the backlight when brightness is at
+   one of the three levels (daylight, office or dark). This is an
+   input code between 0 and 127, which is transformed to a value
+   between 0 mA and 30 mA using linear or non-linear algorithms.
-- 
2.16.1



[PATCH 3/5] backlight: lm3639: document sysfs attributes

2018-01-26 Thread Aishwarya Pant
Add documentation for sysfs interfaces of Texas Instruments lm3639
backlight + flash led driver chip by looking through git commits and
reading code.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 Documentation/ABI/testing/sysfs-class-backlight-lm3639 | 13 +
 1 file changed, 13 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lm3639

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lm3639 
b/Documentation/ABI/testing/sysfs-class-backlight-lm3639
new file mode 100644
index ..ec87dc8f4395
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-lm3639
@@ -0,0 +1,13 @@
+sysfs interface for Texas Instruments lm3639 backlight + flash led driver chip
+--
+
+What:  /sys/class/backlight//bled_mode
+Date:  Oct, 2012
+KernelVersion: v3.10
+Contact:   Lee Jones <lee.jo...@linaro.org>,
+   Daniel Thompson <daniel.thomp...@linaro.org>,
+   Jingoo Han <jingooh...@gmail.com>
+Description:
+   (WO) Write to the backlight mapping mode. The backlight current
+   can be mapped for either exponential (value "0") or linear
+   mapping modes (default).
-- 
2.16.1



[PATCH 3/5] backlight: lm3639: document sysfs attributes

2018-01-26 Thread Aishwarya Pant
Add documentation for sysfs interfaces of Texas Instruments lm3639
backlight + flash led driver chip by looking through git commits and
reading code.

Signed-off-by: Aishwarya Pant 
---
 Documentation/ABI/testing/sysfs-class-backlight-lm3639 | 13 +
 1 file changed, 13 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lm3639

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lm3639 
b/Documentation/ABI/testing/sysfs-class-backlight-lm3639
new file mode 100644
index ..ec87dc8f4395
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-lm3639
@@ -0,0 +1,13 @@
+sysfs interface for Texas Instruments lm3639 backlight + flash led driver chip
+--
+
+What:  /sys/class/backlight//bled_mode
+Date:  Oct, 2012
+KernelVersion: v3.10
+Contact:   Lee Jones ,
+   Daniel Thompson ,
+   Jingoo Han 
+Description:
+   (WO) Write to the backlight mapping mode. The backlight current
+   can be mapped for either exponential (value "0") or linear
+   mapping modes (default).
-- 
2.16.1



[PATCH 2/5] backlight: lp855x: document sysfs attributes

2018-01-26 Thread Aishwarya Pant
Add documentation for sysfs interface of Texas Instruments lp855x
backlight driver by reading code and looking through git commit logs.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 .../ABI/testing/sysfs-class-backlight-lp855x  | 19 +++
 1 file changed, 19 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lp855x

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lp855x 
b/Documentation/ABI/testing/sysfs-class-backlight-lp855x
new file mode 100644
index ..5b9d38958875
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-lp855x
@@ -0,0 +1,19 @@
+sysfs interface for Texas Instruments lp855x backlight driver
+
+
+What:  /sys/class/backlight//chip_id
+Date:  Mar, 2012
+KernelVersion: v3.10
+Contact:   Milo Kim <milo@ti.com>
+Description:
+   (RO) Displays the lp8755x chip id. Possible values are:
+   lp8550, lp8551, lp8552, lp8553, lp8555, lp8556 or lp8557.
+
+
+What:  /sys/class/backlight//bl_ctl_mode
+Date:  Mar, 2012
+KernelVersion: v3.10
+Contact:   Linux kernel mailing list <linux-kernel@vger.kernel.org>
+Description:
+   (RO) Displays whether the brightness is controlled by the pwm
+   input("pwm based) or the i2c register("register based").
-- 
2.16.1



[PATCH 2/5] backlight: lp855x: document sysfs attributes

2018-01-26 Thread Aishwarya Pant
Add documentation for sysfs interface of Texas Instruments lp855x
backlight driver by reading code and looking through git commit logs.

Signed-off-by: Aishwarya Pant 
---
 .../ABI/testing/sysfs-class-backlight-lp855x  | 19 +++
 1 file changed, 19 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lp855x

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lp855x 
b/Documentation/ABI/testing/sysfs-class-backlight-lp855x
new file mode 100644
index ..5b9d38958875
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-lp855x
@@ -0,0 +1,19 @@
+sysfs interface for Texas Instruments lp855x backlight driver
+
+
+What:  /sys/class/backlight//chip_id
+Date:  Mar, 2012
+KernelVersion: v3.10
+Contact:   Milo Kim 
+Description:
+   (RO) Displays the lp8755x chip id. Possible values are:
+   lp8550, lp8551, lp8552, lp8553, lp8555, lp8556 or lp8557.
+
+
+What:  /sys/class/backlight//bl_ctl_mode
+Date:  Mar, 2012
+KernelVersion: v3.10
+Contact:   Linux kernel mailing list 
+Description:
+   (RO) Displays whether the brightness is controlled by the pwm
+   input("pwm based) or the i2c register("register based").
-- 
2.16.1



[PATCH 1/5] backlight: lp8788: document sysfs attributes

2018-01-26 Thread Aishwarya Pant
Add documentation for sysfs interfaces of lp8788 backlight driver by
looking through the code and the git commit history.

Signed-off-by: Aishwarya Pant <aishp...@gmail.com>
---
 Documentation/ABI/testing/sysfs-class-backlight-lp8788 | 10 ++
 1 file changed, 10 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lp8788

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lp8788 
b/Documentation/ABI/testing/sysfs-class-backlight-lp8788
new file mode 100644
index ..c0e565c8d63d
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-lp8788
@@ -0,0 +1,10 @@
+sysfs interface for Texas Instruments lp8788 mfd backlight driver
+-
+
+What:  /sys/class/backlight//bl_ctl_mode
+Date:  Feb, 2013
+KernelVersion: v3.10
+Contact:   Milo Kim <milo@ti.com>
+Description:
+   (RO) Displays whether the brightness is controlled by the PWM
+   input("PWM based") or the I2C register("Register based").
-- 
2.16.1



[PATCH 1/5] backlight: lp8788: document sysfs attributes

2018-01-26 Thread Aishwarya Pant
Add documentation for sysfs interfaces of lp8788 backlight driver by
looking through the code and the git commit history.

Signed-off-by: Aishwarya Pant 
---
 Documentation/ABI/testing/sysfs-class-backlight-lp8788 | 10 ++
 1 file changed, 10 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lp8788

diff --git a/Documentation/ABI/testing/sysfs-class-backlight-lp8788 
b/Documentation/ABI/testing/sysfs-class-backlight-lp8788
new file mode 100644
index ..c0e565c8d63d
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-class-backlight-lp8788
@@ -0,0 +1,10 @@
+sysfs interface for Texas Instruments lp8788 mfd backlight driver
+-
+
+What:  /sys/class/backlight//bl_ctl_mode
+Date:  Feb, 2013
+KernelVersion: v3.10
+Contact:   Milo Kim 
+Description:
+   (RO) Displays whether the brightness is controlled by the PWM
+   input("PWM based") or the I2C register("Register based").
-- 
2.16.1



[PATCH 0/5] backlight: document sysfs interfaces

2018-01-26 Thread Aishwarya Pant
Patchset contains documentation of the sysfs interfaces for the
following five backlight drivers-
1) lp8788
2) lp855x
3) lm3639
4) adp5520
5) adp8860

It was compiled from data sheets, reading code and git history logs.

Aishwarya Pant (5):
  backlight: lp8788: document sysfs attributes
  backlight: lp855: document sysfs attributes
  backlight: lm3639: document sysfs attributes
  backlight: adp5520: document sysfs attributes
  backlight: adp8860: document sysfs attributes

 .../ABI/testing/sysfs-class-backlight-adp5520  | 31 +
 .../ABI/testing/sysfs-class-backlight-adp8860  | 54 ++
 .../ABI/testing/sysfs-class-backlight-lm3639   | 13 ++
 .../ABI/testing/sysfs-class-backlight-lp855x   | 19 
 .../ABI/testing/sysfs-class-backlight-lp8788   | 10 
 5 files changed, 127 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp5520
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp8860
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lm3639
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lp855x
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lp8788

-- 
2.16.1



[PATCH 0/5] backlight: document sysfs interfaces

2018-01-26 Thread Aishwarya Pant
Patchset contains documentation of the sysfs interfaces for the
following five backlight drivers-
1) lp8788
2) lp855x
3) lm3639
4) adp5520
5) adp8860

It was compiled from data sheets, reading code and git history logs.

Aishwarya Pant (5):
  backlight: lp8788: document sysfs attributes
  backlight: lp855: document sysfs attributes
  backlight: lm3639: document sysfs attributes
  backlight: adp5520: document sysfs attributes
  backlight: adp8860: document sysfs attributes

 .../ABI/testing/sysfs-class-backlight-adp5520  | 31 +
 .../ABI/testing/sysfs-class-backlight-adp8860  | 54 ++
 .../ABI/testing/sysfs-class-backlight-lm3639   | 13 ++
 .../ABI/testing/sysfs-class-backlight-lp855x   | 19 
 .../ABI/testing/sysfs-class-backlight-lp8788   | 10 
 5 files changed, 127 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp5520
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-adp8860
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lm3639
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lp855x
 create mode 100644 Documentation/ABI/testing/sysfs-class-backlight-lp8788

-- 
2.16.1



  1   2   3   >