Skip to content

Commit

Permalink
Merge branch 'master' into for-next
Browse files Browse the repository at this point in the history
Sync up with Linus' tree to be able to apply Cesar's patch
against newer version of the code.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Jiri Kosina committed Oct 28, 2012
2 parents f16f849 + e657e07 commit 3bd7bf1
Show file tree
Hide file tree
Showing 13,374 changed files with 701,046 additions and 382,099 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -84,3 +84,11 @@ GTAGS
*.orig *.orig
*~ *~
\#*# \#*#

#
# Leavings from module signing
#
extra_certificates
signing_key.priv
signing_key.x509
x509.genkey
6 changes: 2 additions & 4 deletions Documentation/00-INDEX
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ local_ops.txt
- semantics and behavior of local atomic operations. - semantics and behavior of local atomic operations.
lockdep-design.txt lockdep-design.txt
- documentation on the runtime locking correctness validator. - documentation on the runtime locking correctness validator.
lockup-watchdogs.txt
- info on soft and hard lockup detectors (aka nmi_watchdog).
logo.gif logo.gif
- full colour GIF image of Linux logo (penguin - Tux). - full colour GIF image of Linux logo (penguin - Tux).
logo.txt logo.txt
Expand Down Expand Up @@ -240,8 +242,6 @@ netlabel/
- directory with information on the NetLabel subsystem. - directory with information on the NetLabel subsystem.
networking/ networking/
- directory with info on various aspects of networking with Linux. - directory with info on various aspects of networking with Linux.
nmi_watchdog.txt
- info on NMI watchdog for SMP systems.
nommu-mmap.txt nommu-mmap.txt
- documentation about no-mmu memory mapping support. - documentation about no-mmu memory mapping support.
numastat.txt numastat.txt
Expand Down Expand Up @@ -270,8 +270,6 @@ preempt-locking.txt
- info on locking under a preemptive kernel. - info on locking under a preemptive kernel.
printk-formats.txt printk-formats.txt
- how to get printk format specifiers right - how to get printk format specifiers right
prio_tree.txt
- info on radix-priority-search-tree use for indexing vmas.
ramoops.txt ramoops.txt
- documentation of the ramoops oops/panic logging module. - documentation of the ramoops oops/panic logging module.
rbtree.txt rbtree.txt
Expand Down
22 changes: 0 additions & 22 deletions Documentation/ABI/obsolete/proc-pid-oom_adj

This file was deleted.

25 changes: 21 additions & 4 deletions Documentation/ABI/testing/ima_policy
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,48 +12,65 @@ Description:
then closing the file. The new policy takes effect after then closing the file. The new policy takes effect after
the file ima/policy is closed. the file ima/policy is closed.


IMA appraisal, if configured, uses these file measurements
for local measurement appraisal.

rule format: action [condition ...] rule format: action [condition ...]


action: measure | dont_measure action: measure | dont_measure | appraise | dont_appraise | audit
condition:= base | lsm condition:= base | lsm
base: [[func=] [mask=] [fsmagic=] [uid=]] base: [[func=] [mask=] [fsmagic=] [uid=] [fowner]]
lsm: [[subj_user=] [subj_role=] [subj_type=] lsm: [[subj_user=] [subj_role=] [subj_type=]
[obj_user=] [obj_role=] [obj_type=]] [obj_user=] [obj_role=] [obj_type=]]


base: func:= [BPRM_CHECK][FILE_MMAP][FILE_CHECK] base: func:= [BPRM_CHECK][FILE_MMAP][FILE_CHECK]
mask:= [MAY_READ] [MAY_WRITE] [MAY_APPEND] [MAY_EXEC] mask:= [MAY_READ] [MAY_WRITE] [MAY_APPEND] [MAY_EXEC]
fsmagic:= hex value fsmagic:= hex value
uid:= decimal value uid:= decimal value
fowner:=decimal value
lsm: are LSM specific lsm: are LSM specific


default policy: default policy:
# PROC_SUPER_MAGIC # PROC_SUPER_MAGIC
dont_measure fsmagic=0x9fa0 dont_measure fsmagic=0x9fa0
dont_appraise fsmagic=0x9fa0
# SYSFS_MAGIC # SYSFS_MAGIC
dont_measure fsmagic=0x62656572 dont_measure fsmagic=0x62656572
dont_appraise fsmagic=0x62656572
# DEBUGFS_MAGIC # DEBUGFS_MAGIC
dont_measure fsmagic=0x64626720 dont_measure fsmagic=0x64626720
dont_appraise fsmagic=0x64626720
# TMPFS_MAGIC # TMPFS_MAGIC
dont_measure fsmagic=0x01021994 dont_measure fsmagic=0x01021994
dont_appraise fsmagic=0x01021994
# RAMFS_MAGIC
dont_measure fsmagic=0x858458f6
dont_appraise fsmagic=0x858458f6
# SECURITYFS_MAGIC # SECURITYFS_MAGIC
dont_measure fsmagic=0x73636673 dont_measure fsmagic=0x73636673
dont_appraise fsmagic=0x73636673


measure func=BPRM_CHECK measure func=BPRM_CHECK
measure func=FILE_MMAP mask=MAY_EXEC measure func=FILE_MMAP mask=MAY_EXEC
measure func=FILE_CHECK mask=MAY_READ uid=0 measure func=FILE_CHECK mask=MAY_READ uid=0
appraise fowner=0


The default policy measures all executables in bprm_check, The default policy measures all executables in bprm_check,
all files mmapped executable in file_mmap, and all files all files mmapped executable in file_mmap, and all files
open for read by root in do_filp_open. open for read by root in do_filp_open. The default appraisal
policy appraises all files owned by root.


Examples of LSM specific definitions: Examples of LSM specific definitions:


SELinux: SELinux:
# SELINUX_MAGIC # SELINUX_MAGIC
dont_measure fsmagic=0xF97CFF8C dont_measure fsmagic=0xf97cff8c
dont_appraise fsmagic=0xf97cff8c


dont_measure obj_type=var_log_t dont_measure obj_type=var_log_t
dont_appraise obj_type=var_log_t
dont_measure obj_type=auditd_log_t dont_measure obj_type=auditd_log_t
dont_appraise obj_type=auditd_log_t
measure subj_user=system_u func=FILE_CHECK mask=MAY_READ measure subj_user=system_u func=FILE_CHECK mask=MAY_READ
measure subj_role=system_r func=FILE_CHECK mask=MAY_READ measure subj_role=system_r func=FILE_CHECK mask=MAY_READ


Expand Down
14 changes: 14 additions & 0 deletions Documentation/ABI/testing/sysfs-block
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -206,3 +206,17 @@ Description:
when a discarded area is read the discard_zeroes_data when a discarded area is read the discard_zeroes_data
parameter will be set to one. Otherwise it will be 0 and parameter will be set to one. Otherwise it will be 0 and
the result of reading a discarded area is undefined. the result of reading a discarded area is undefined.

What: /sys/block/<disk>/queue/write_same_max_bytes
Date: January 2012
Contact: Martin K. Petersen <martin.petersen@oracle.com>
Description:
Some devices support a write same operation in which a
single data block can be written to a range of several
contiguous blocks on storage. This can be used to wipe
areas on disk or to initialize drives in a RAID
configuration. write_same_max_bytes indicates how many
bytes can be written in a single write same command. If
write_same_max_bytes is 0, write same is not supported
by the device.

12 changes: 6 additions & 6 deletions Documentation/ABI/testing/sysfs-bus-fcoe
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ Attributes:
this value will change the dev_loss_tmo for all this value will change the dev_loss_tmo for all
FCFs discovered by this controller. FCFs discovered by this controller.


lesb_link_fail: Link Error Status Block (LESB) link failure count. lesb/link_fail: Link Error Status Block (LESB) link failure count.


lesb_vlink_fail: Link Error Status Block (LESB) virtual link lesb/vlink_fail: Link Error Status Block (LESB) virtual link
failure count. failure count.


lesb_miss_fka: Link Error Status Block (LESB) missed FCoE lesb/miss_fka: Link Error Status Block (LESB) missed FCoE
Initialization Protocol (FIP) Keep-Alives (FKA). Initialization Protocol (FIP) Keep-Alives (FKA).


lesb_symb_err: Link Error Status Block (LESB) symbolic error count. lesb/symb_err: Link Error Status Block (LESB) symbolic error count.


lesb_err_block: Link Error Status Block (LESB) block error count. lesb/err_block: Link Error Status Block (LESB) block error count.


lesb_fcs_error: Link Error Status Block (LESB) Fibre Channel lesb/fcs_error: Link Error Status Block (LESB) Fibre Channel
Serivces error count. Serivces error count.


Notes: ctlr_X (global increment starting at 0) Notes: ctlr_X (global increment starting at 0)
Expand Down
18 changes: 12 additions & 6 deletions Documentation/ABI/testing/sysfs-bus-rbd
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ client_id


The ceph unique client id that was assigned for this specific session. The ceph unique client id that was assigned for this specific session.


features

A hexadecimal encoding of the feature bits for this image.

major major


The block device major number. The block device major number.
Expand All @@ -33,6 +37,11 @@ name


The name of the rbd image. The name of the rbd image.


image_id

The unique id for the rbd image. (For rbd image format 1
this is empty.)

pool pool


The name of the storage pool where this rbd image resides. The name of the storage pool where this rbd image resides.
Expand All @@ -57,12 +66,6 @@ current_snap


The current snapshot for which the device is mapped. The current snapshot for which the device is mapped.


create_snap

Create a snapshot:

$ echo <snap-name> > /sys/bus/rbd/devices/<dev-id>/snap_create

snap_* snap_*


A directory per each snapshot A directory per each snapshot
Expand All @@ -79,4 +82,7 @@ snap_size


The size of the image when this snapshot was taken. The size of the image when this snapshot was taken.


snap_features

A hexadecimal encoding of the feature bits for this snapshot.


7 changes: 7 additions & 0 deletions Documentation/ABI/testing/sysfs-bus-usb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -220,3 +220,10 @@ Description:
If the device doesn't support LTM, the file will read "no". If the device doesn't support LTM, the file will read "no".
The file will be present for all speeds of USB devices, and will The file will be present for all speeds of USB devices, and will
always read "no" for USB 1.1 and USB 2.0 devices. always read "no" for USB 1.1 and USB 2.0 devices.

What: /sys/bus/usb/devices/.../(hub interface)/portX
Date: August 2012
Contact: Lan Tianyu <tianyu.lan@intel.com>
Description:
The /sys/bus/usb/devices/.../(hub interface)/portX
is usb port device's sysfs directory.
22 changes: 11 additions & 11 deletions Documentation/ABI/testing/sysfs-class-extcon
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Description:
accessory cables have such capability. For example, accessory cables have such capability. For example,
the 30-pin port of Nuri board (/arch/arm/mach-exynos) the 30-pin port of Nuri board (/arch/arm/mach-exynos)
may have both HDMI and Charger attached, or analog audio, may have both HDMI and Charger attached, or analog audio,
video, and USB cables attached simulteneously. video, and USB cables attached simultaneously.


If there are cables mutually exclusive with each other, If there are cables mutually exclusive with each other,
such binary relations may be expressed with extcon_dev's such binary relations may be expressed with extcon_dev's
Expand All @@ -35,7 +35,7 @@ Description:
The /sys/class/extcon/.../state shows and stores the cable The /sys/class/extcon/.../state shows and stores the cable
attach/detach information of the corresponding extcon object. attach/detach information of the corresponding extcon object.
If the extcon object has an optional callback "show_state" If the extcon object has an optional callback "show_state"
defined, the showing function is overriden with the optional defined, the showing function is overridden with the optional
callback. callback.


If the default callback for showing function is used, the If the default callback for showing function is used, the
Expand All @@ -46,19 +46,19 @@ Description:
TA=1 TA=1
EAR_JACK=0 EAR_JACK=0
# #
In this example, the extcon device have USB_OTG and TA In this example, the extcon device has USB_OTG and TA
cables attached and HDMI and EAR_JACK cables detached. cables attached and HDMI and EAR_JACK cables detached.


In order to update the state of an extcon device, enter a hex In order to update the state of an extcon device, enter a hex
state number starting with 0x. state number starting with 0x:
echo 0xHEX > state # echo 0xHEX > state


This updates the whole state of the extcon dev. This updates the whole state of the extcon device.
Inputs of all the methods are required to meet the Inputs of all the methods are required to meet the
mutually_exclusive contidions if they exist. mutually_exclusive conditions if they exist.


It is recommended to use this "global" state interface if It is recommended to use this "global" state interface if
you need to enter the value atomically. The later state you need to set the value atomically. The later state
interface associated with each cable cannot update interface associated with each cable cannot update
multiple cable states of an extcon device simultaneously. multiple cable states of an extcon device simultaneously.


Expand All @@ -73,7 +73,7 @@ What: /sys/class/extcon/.../cable.x/state
Date: February 2012 Date: February 2012
Contact: MyungJoo Ham <myungjoo.ham@samsung.com> Contact: MyungJoo Ham <myungjoo.ham@samsung.com>
Description: Description:
The /sys/class/extcon/.../cable.x/name shows and stores the The /sys/class/extcon/.../cable.x/state shows and stores the
state of cable "x" (integer between 0 and 31) of an extcon state of cable "x" (integer between 0 and 31) of an extcon
device. The state value is either 0 (detached) or 1 device. The state value is either 0 (detached) or 1
(attached). (attached).
Expand All @@ -83,8 +83,8 @@ Date: December 2011
Contact: MyungJoo Ham <myungjoo.ham@samsung.com> Contact: MyungJoo Ham <myungjoo.ham@samsung.com>
Description: Description:
Shows the relations of mutually exclusiveness. For example, Shows the relations of mutually exclusiveness. For example,
if the mutually_exclusive array of extcon_dev is if the mutually_exclusive array of extcon device is
{0x3, 0x5, 0xC, 0x0}, the, the output is: {0x3, 0x5, 0xC, 0x0}, then the output is:
# ls mutually_exclusive/ # ls mutually_exclusive/
0x3 0x3
0x5 0x5
Expand Down
17 changes: 17 additions & 0 deletions Documentation/ABI/testing/sysfs-devices-firmware_node
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,17 @@
What: /sys/devices/.../firmware_node/
Date: September 2012
Contact: <>
Description:
The /sys/devices/.../firmware_node directory contains attributes
allowing the user space to check and modify some firmware
related properties of given device.

What: /sys/devices/.../firmware_node/description
Date: September 2012
Contact: Lance Ortiz <lance.ortiz@hp.com>
Description:
The /sys/devices/.../firmware/description attribute contains a string
that describes the device as provided by the _STR method in the ACPI
namespace. This attribute is read-only. If the device does not have
an _STR method associated with it in the ACPI namespace, this
attribute is not present.
11 changes: 11 additions & 0 deletions Documentation/ABI/testing/sysfs-devices-system-cpu
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -176,3 +176,14 @@ Description: Disable L3 cache indices
All AMD processors with L3 caches provide this functionality. All AMD processors with L3 caches provide this functionality.
For details, see BKDGs at For details, see BKDGs at
http://developer.amd.com/documentation/guides/Pages/default.aspx http://developer.amd.com/documentation/guides/Pages/default.aspx


What: /sys/devices/system/cpu/cpufreq/boost
Date: August 2012
Contact: Linux kernel mailing list <linux-kernel@vger.kernel.org>
Description: Processor frequency boosting control

This switch controls the boost setting for the whole system.
Boosting allows the CPU and the firmware to run at a frequency
beyound it's nominal limit.
More details can be found in Documentation/cpu-freq/boost.txt
70 changes: 70 additions & 0 deletions Documentation/ABI/testing/sysfs-driver-ppi
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,70 @@
What: /sys/devices/pnp0/<bus-num>/ppi/
Date: August 2012
Kernel Version: 3.6
Contact: xiaoyan.zhang@intel.com
Description:
This folder includes the attributes related with PPI (Physical
Presence Interface). Only if TPM is supported by BIOS, this
folder makes sence. The folder path can be got by command
'find /sys/ -name 'pcrs''. For the detail information of PPI,
please refer to the PPI specification from
http://www.trustedcomputinggroup.org/

What: /sys/devices/pnp0/<bus-num>/ppi/version
Date: August 2012
Contact: xiaoyan.zhang@intel.com
Description:
This attribute shows the version of the PPI supported by the
platform.
This file is readonly.

What: /sys/devices/pnp0/<bus-num>/ppi/request
Date: August 2012
Contact: xiaoyan.zhang@intel.com
Description:
This attribute shows the request for an operation to be
executed in the pre-OS environment. It is the only input from
the OS to the pre-OS environment. The request should be an
integer value range from 1 to 160, and 0 means no request.
This file can be read and written.

What: /sys/devices/pnp0/00:<bus-num>/ppi/response
Date: August 2012
Contact: xiaoyan.zhang@intel.com
Description:
This attribute shows the response to the most recent operation
request it acted upon. The format is "<request> <response num>
: <response description>".
This file is readonly.

What: /sys/devices/pnp0/<bus-num>/ppi/transition_action
Date: August 2012
Contact: xiaoyan.zhang@intel.com
Description:
This attribute shows the platform-specific action that should
take place in order to transition to the BIOS for execution of
a requested operation. The format is "<action num>: <action
description>".
This file is readonly.

What: /sys/devices/pnp0/<bus-num>/ppi/tcg_operations
Date: August 2012
Contact: xiaoyan.zhang@intel.com
Description:
This attribute shows whether it is allowed to request an
operation to be executed in the pre-OS environment by the BIOS
for the requests defined by TCG, i.e. requests from 1 to 22.
The format is "<request> <status num>: <status description>".
This attribute is only supported by PPI version 1.2+.
This file is readonly.

What: /sys/devices/pnp0/<bus-num>/ppi/vs_operations
Date: August 2012
Contact: xiaoyan.zhang@intel.com
Description:
This attribute shows whether it is allowed to request an
operation to be executed in the pre-OS environment by the BIOS
for the verdor specific requests, i.e. requests from 128 to
255. The format is same with tcg_operations. This attribute
is also only supported by PPI version 1.2+.
This file is readonly.
Loading

0 comments on commit 3bd7bf1

Please sign in to comment.