aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/ABI/testing/sysfs-block-zram39
-rw-r--r--Documentation/DocBook/kernel-hacking.tmpl2
-rw-r--r--Documentation/arm64/memory.txt4
-rw-r--r--Documentation/blockdev/zram.txt54
-rw-r--r--Documentation/cgroups/memcg_test.txt4
-rw-r--r--Documentation/cgroups/resource_counter.txt12
-rw-r--r--Documentation/filesystems/Locking10
-rw-r--r--Documentation/filesystems/affs.txt9
-rw-r--r--Documentation/filesystems/proc.txt17
-rw-r--r--Documentation/irqflags-tracing.txt7
-rw-r--r--Documentation/kbuild/kconfig-language.txt4
-rw-r--r--Documentation/kernel-parameters.txt5
-rw-r--r--Documentation/rapidio/sysfs.txt66
-rw-r--r--Documentation/scheduler/sched-arch.txt2
-rw-r--r--Documentation/sysctl/kernel.txt1
15 files changed, 182 insertions, 54 deletions
diff --git a/Documentation/ABI/testing/sysfs-block-zram b/Documentation/ABI/testing/sysfs-block-zram
index 3f0b9ae61d8c..70ec992514d0 100644
--- a/Documentation/ABI/testing/sysfs-block-zram
+++ b/Documentation/ABI/testing/sysfs-block-zram
@@ -43,6 +43,36 @@ Description:
43 The invalid_io file is read-only and specifies the number of 43 The invalid_io file is read-only and specifies the number of
44 non-page-size-aligned I/O requests issued to this device. 44 non-page-size-aligned I/O requests issued to this device.
45 45
46What: /sys/block/zram<id>/failed_reads
47Date: February 2014
48Contact: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
49Description:
50 The failed_reads file is read-only and specifies the number of
51 failed reads happened on this device.
52
53What: /sys/block/zram<id>/failed_writes
54Date: February 2014
55Contact: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
56Description:
57 The failed_writes file is read-only and specifies the number of
58 failed writes happened on this device.
59
60What: /sys/block/zram<id>/max_comp_streams
61Date: February 2014
62Contact: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
63Description:
64 The max_comp_streams file is read-write and specifies the
65 number of backend's zcomp_strm compression streams (number of
66 concurrent compress operations).
67
68What: /sys/block/zram<id>/comp_algorithm
69Date: February 2014
70Contact: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
71Description:
72 The comp_algorithm file is read-write and lets to show
73 available and selected compression algorithms, change
74 compression algorithm selection.
75
46What: /sys/block/zram<id>/notify_free 76What: /sys/block/zram<id>/notify_free
47Date: August 2010 77Date: August 2010
48Contact: Nitin Gupta <ngupta@vflare.org> 78Contact: Nitin Gupta <ngupta@vflare.org>
@@ -53,15 +83,6 @@ Description:
53 is freed. This statistic is applicable only when this disk is 83 is freed. This statistic is applicable only when this disk is
54 being used as a swap disk. 84 being used as a swap disk.
55 85
56What: /sys/block/zram<id>/discard
57Date: August 2010
58Contact: Nitin Gupta <ngupta@vflare.org>
59Description:
60 The discard file is read-only and specifies the number of
61 discard requests received by this device. These requests
62 provide information to block device regarding blocks which are
63 no longer used by filesystem.
64
65What: /sys/block/zram<id>/zero_pages 86What: /sys/block/zram<id>/zero_pages
66Date: August 2010 87Date: August 2010
67Contact: Nitin Gupta <ngupta@vflare.org> 88Contact: Nitin Gupta <ngupta@vflare.org>
diff --git a/Documentation/DocBook/kernel-hacking.tmpl b/Documentation/DocBook/kernel-hacking.tmpl
index bd9015d10cff..e84f09467cd7 100644
--- a/Documentation/DocBook/kernel-hacking.tmpl
+++ b/Documentation/DocBook/kernel-hacking.tmpl
@@ -671,7 +671,7 @@ printk(KERN_INFO "my ip: %pI4\n", &amp;ipaddress);
671 671
672 <sect1 id="routines-local-irqs"> 672 <sect1 id="routines-local-irqs">
673 <title><function>local_irq_save()</function>/<function>local_irq_restore()</function> 673 <title><function>local_irq_save()</function>/<function>local_irq_restore()</function>
674 <filename class="headerfile">include/asm/system.h</filename> 674 <filename class="headerfile">include/linux/irqflags.h</filename>
675 </title> 675 </title>
676 676
677 <para> 677 <para>
diff --git a/Documentation/arm64/memory.txt b/Documentation/arm64/memory.txt
index 85e24c4f215c..d50fa618371b 100644
--- a/Documentation/arm64/memory.txt
+++ b/Documentation/arm64/memory.txt
@@ -39,7 +39,7 @@ ffffffbffa000000 ffffffbffaffffff 16MB PCI I/O space
39 39
40ffffffbffb000000 ffffffbffbbfffff 12MB [guard] 40ffffffbffb000000 ffffffbffbbfffff 12MB [guard]
41 41
42ffffffbffbc00000 ffffffbffbdfffff 2MB earlyprintk device 42ffffffbffbc00000 ffffffbffbdfffff 2MB fixed mappings
43 43
44ffffffbffbe00000 ffffffbffbffffff 2MB [guard] 44ffffffbffbe00000 ffffffbffbffffff 2MB [guard]
45 45
@@ -66,7 +66,7 @@ fffffdfffa000000 fffffdfffaffffff 16MB PCI I/O space
66 66
67fffffdfffb000000 fffffdfffbbfffff 12MB [guard] 67fffffdfffb000000 fffffdfffbbfffff 12MB [guard]
68 68
69fffffdfffbc00000 fffffdfffbdfffff 2MB earlyprintk device 69fffffdfffbc00000 fffffdfffbdfffff 2MB fixed mappings
70 70
71fffffdfffbe00000 fffffdfffbffffff 2MB [guard] 71fffffdfffbe00000 fffffdfffbffffff 2MB [guard]
72 72
diff --git a/Documentation/blockdev/zram.txt b/Documentation/blockdev/zram.txt
index 2eccddffa6c8..0595c3f56ccf 100644
--- a/Documentation/blockdev/zram.txt
+++ b/Documentation/blockdev/zram.txt
@@ -21,7 +21,43 @@ Following shows a typical sequence of steps for using zram.
21 This creates 4 devices: /dev/zram{0,1,2,3} 21 This creates 4 devices: /dev/zram{0,1,2,3}
22 (num_devices parameter is optional. Default: 1) 22 (num_devices parameter is optional. Default: 1)
23 23
242) Set Disksize 242) Set max number of compression streams
25 Compression backend may use up to max_comp_streams compression streams,
26 thus allowing up to max_comp_streams concurrent compression operations.
27 By default, compression backend uses single compression stream.
28
29 Examples:
30 #show max compression streams number
31 cat /sys/block/zram0/max_comp_streams
32
33 #set max compression streams number to 3
34 echo 3 > /sys/block/zram0/max_comp_streams
35
36Note:
37In order to enable compression backend's multi stream support max_comp_streams
38must be initially set to desired concurrency level before ZRAM device
39initialisation. Once the device initialised as a single stream compression
40backend (max_comp_streams equals to 1), you will see error if you try to change
41the value of max_comp_streams because single stream compression backend
42implemented as a special case by lock overhead issue and does not support
43dynamic max_comp_streams. Only multi stream backend supports dynamic
44max_comp_streams adjustment.
45
463) Select compression algorithm
47 Using comp_algorithm device attribute one can see available and
48 currently selected (shown in square brackets) compression algortithms,
49 change selected compression algorithm (once the device is initialised
50 there is no way to change compression algorithm).
51
52 Examples:
53 #show supported compression algorithms
54 cat /sys/block/zram0/comp_algorithm
55 lzo [lz4]
56
57 #select lzo compression algorithm
58 echo lzo > /sys/block/zram0/comp_algorithm
59
604) Set Disksize
25 Set disk size by writing the value to sysfs node 'disksize'. 61 Set disk size by writing the value to sysfs node 'disksize'.
26 The value can be either in bytes or you can use mem suffixes. 62 The value can be either in bytes or you can use mem suffixes.
27 Examples: 63 Examples:
@@ -33,32 +69,38 @@ Following shows a typical sequence of steps for using zram.
33 echo 512M > /sys/block/zram0/disksize 69 echo 512M > /sys/block/zram0/disksize
34 echo 1G > /sys/block/zram0/disksize 70 echo 1G > /sys/block/zram0/disksize
35 71
363) Activate: 72Note:
73There is little point creating a zram of greater than twice the size of memory
74since we expect a 2:1 compression ratio. Note that zram uses about 0.1% of the
75size of the disk when not in use so a huge zram is wasteful.
76
775) Activate:
37 mkswap /dev/zram0 78 mkswap /dev/zram0
38 swapon /dev/zram0 79 swapon /dev/zram0
39 80
40 mkfs.ext4 /dev/zram1 81 mkfs.ext4 /dev/zram1
41 mount /dev/zram1 /tmp 82 mount /dev/zram1 /tmp
42 83
434) Stats: 846) Stats:
44 Per-device statistics are exported as various nodes under 85 Per-device statistics are exported as various nodes under
45 /sys/block/zram<id>/ 86 /sys/block/zram<id>/
46 disksize 87 disksize
47 num_reads 88 num_reads
48 num_writes 89 num_writes
90 failed_reads
91 failed_writes
49 invalid_io 92 invalid_io
50 notify_free 93 notify_free
51 discard
52 zero_pages 94 zero_pages
53 orig_data_size 95 orig_data_size
54 compr_data_size 96 compr_data_size
55 mem_used_total 97 mem_used_total
56 98
575) Deactivate: 997) Deactivate:
58 swapoff /dev/zram0 100 swapoff /dev/zram0
59 umount /dev/zram1 101 umount /dev/zram1
60 102
616) Reset: 1038) Reset:
62 Write any positive value to 'reset' sysfs node 104 Write any positive value to 'reset' sysfs node
63 echo 1 > /sys/block/zram0/reset 105 echo 1 > /sys/block/zram0/reset
64 echo 1 > /sys/block/zram1/reset 106 echo 1 > /sys/block/zram1/reset
diff --git a/Documentation/cgroups/memcg_test.txt b/Documentation/cgroups/memcg_test.txt
index ce94a83a7d9a..80ac454704b8 100644
--- a/Documentation/cgroups/memcg_test.txt
+++ b/Documentation/cgroups/memcg_test.txt
@@ -24,7 +24,7 @@ Please note that implementation details can be changed.
24 24
25 a page/swp_entry may be charged (usage += PAGE_SIZE) at 25 a page/swp_entry may be charged (usage += PAGE_SIZE) at
26 26
27 mem_cgroup_newpage_charge() 27 mem_cgroup_charge_anon()
28 Called at new page fault and Copy-On-Write. 28 Called at new page fault and Copy-On-Write.
29 29
30 mem_cgroup_try_charge_swapin() 30 mem_cgroup_try_charge_swapin()
@@ -32,7 +32,7 @@ Please note that implementation details can be changed.
32 Followed by charge-commit-cancel protocol. (With swap accounting) 32 Followed by charge-commit-cancel protocol. (With swap accounting)
33 At commit, a charge recorded in swap_cgroup is removed. 33 At commit, a charge recorded in swap_cgroup is removed.
34 34
35 mem_cgroup_cache_charge() 35 mem_cgroup_charge_file()
36 Called at add_to_page_cache() 36 Called at add_to_page_cache()
37 37
38 mem_cgroup_cache_charge_swapin() 38 mem_cgroup_cache_charge_swapin()
diff --git a/Documentation/cgroups/resource_counter.txt b/Documentation/cgroups/resource_counter.txt
index 5108afb3645c..762ca54eb929 100644
--- a/Documentation/cgroups/resource_counter.txt
+++ b/Documentation/cgroups/resource_counter.txt
@@ -76,15 +76,7 @@ to work with it.
76 limit_fail_at parameter is set to the particular res_counter element 76 limit_fail_at parameter is set to the particular res_counter element
77 where the charging failed. 77 where the charging failed.
78 78
79 d. int res_counter_charge_locked 79 d. u64 res_counter_uncharge(struct res_counter *rc, unsigned long val)
80 (struct res_counter *rc, unsigned long val, bool force)
81
82 The same as res_counter_charge(), but it must not acquire/release the
83 res_counter->lock internally (it must be called with res_counter->lock
84 held). The force parameter indicates whether we can bypass the limit.
85
86 e. u64 res_counter_uncharge[_locked]
87 (struct res_counter *rc, unsigned long val)
88 80
89 When a resource is released (freed) it should be de-accounted 81 When a resource is released (freed) it should be de-accounted
90 from the resource counter it was accounted to. This is called 82 from the resource counter it was accounted to. This is called
@@ -93,7 +85,7 @@ to work with it.
93 85
94 The _locked routines imply that the res_counter->lock is taken. 86 The _locked routines imply that the res_counter->lock is taken.
95 87
96 f. u64 res_counter_uncharge_until 88 e. u64 res_counter_uncharge_until
97 (struct res_counter *rc, struct res_counter *top, 89 (struct res_counter *rc, struct res_counter *top,
98 unsigned long val) 90 unsigned long val)
99 91
diff --git a/Documentation/filesystems/Locking b/Documentation/filesystems/Locking
index f424e0e5b46b..efca5c1bbb10 100644
--- a/Documentation/filesystems/Locking
+++ b/Documentation/filesystems/Locking
@@ -529,6 +529,7 @@ locking rules:
529open: yes 529open: yes
530close: yes 530close: yes
531fault: yes can return with page locked 531fault: yes can return with page locked
532map_pages: yes
532page_mkwrite: yes can return with page locked 533page_mkwrite: yes can return with page locked
533access: yes 534access: yes
534 535
@@ -540,6 +541,15 @@ the page, then ensure it is not already truncated (the page lock will block
540subsequent truncate), and then return with VM_FAULT_LOCKED, and the page 541subsequent truncate), and then return with VM_FAULT_LOCKED, and the page
541locked. The VM will unlock the page. 542locked. The VM will unlock the page.
542 543
544 ->map_pages() is called when VM asks to map easy accessible pages.
545Filesystem should find and map pages associated with offsets from "pgoff"
546till "max_pgoff". ->map_pages() is called with page table locked and must
547not block. If it's not possible to reach a page without blocking,
548filesystem should skip it. Filesystem should use do_set_pte() to setup
549page table entry. Pointer to entry associated with offset "pgoff" is
550passed in "pte" field in vm_fault structure. Pointers to entries for other
551offsets should be calculated relative to "pte".
552
543 ->page_mkwrite() is called when a previously read-only pte is 553 ->page_mkwrite() is called when a previously read-only pte is
544about to become writeable. The filesystem again must ensure that there are 554about to become writeable. The filesystem again must ensure that there are
545no truncate/invalidate races, and then return with the page locked. If 555no truncate/invalidate races, and then return with the page locked. If
diff --git a/Documentation/filesystems/affs.txt b/Documentation/filesystems/affs.txt
index 81ac488e3758..71b63c2b9841 100644
--- a/Documentation/filesystems/affs.txt
+++ b/Documentation/filesystems/affs.txt
@@ -49,6 +49,10 @@ mode=mode Sets the mode flags to the given (octal) value, regardless
49 This is useful since most of the plain AmigaOS files 49 This is useful since most of the plain AmigaOS files
50 will map to 600. 50 will map to 600.
51 51
52nofilenametruncate
53 The file system will return an error when filename exceeds
54 standard maximum filename length (30 characters).
55
52reserved=num Sets the number of reserved blocks at the start of the 56reserved=num Sets the number of reserved blocks at the start of the
53 partition to num. You should never need this option. 57 partition to num. You should never need this option.
54 Default is 2. 58 Default is 2.
@@ -181,9 +185,8 @@ tested, though several hundred MB have been read and written using
181this fs. For a most up-to-date list of bugs please consult 185this fs. For a most up-to-date list of bugs please consult
182fs/affs/Changes. 186fs/affs/Changes.
183 187
184Filenames are truncated to 30 characters without warning (this 188By default, filenames are truncated to 30 characters without warning.
185can be changed by setting the compile-time option AFFS_NO_TRUNCATE 189'nofilenametruncate' mount option can change that behavior.
186in include/linux/amigaffs.h).
187 190
188Case is ignored by the affs in filename matching, but Linux shells 191Case is ignored by the affs in filename matching, but Linux shells
189do care about the case. Example (with /wb being an affs mounted fs): 192do care about the case. Example (with /wb being an affs mounted fs):
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
index f00bee144add..8b9cd8eb3f91 100644
--- a/Documentation/filesystems/proc.txt
+++ b/Documentation/filesystems/proc.txt
@@ -1648,18 +1648,21 @@ pids, so one need to either stop or freeze processes being inspected
1648if precise results are needed. 1648if precise results are needed.
1649 1649
1650 1650
16513.7 /proc/<pid>/fdinfo/<fd> - Information about opened file 16513.8 /proc/<pid>/fdinfo/<fd> - Information about opened file
1652--------------------------------------------------------------- 1652---------------------------------------------------------------
1653This file provides information associated with an opened file. The regular 1653This file provides information associated with an opened file. The regular
1654files have at least two fields -- 'pos' and 'flags'. The 'pos' represents 1654files have at least three fields -- 'pos', 'flags' and mnt_id. The 'pos'
1655the current offset of the opened file in decimal form [see lseek(2) for 1655represents the current offset of the opened file in decimal form [see lseek(2)
1656details] and 'flags' denotes the octal O_xxx mask the file has been 1656for details], 'flags' denotes the octal O_xxx mask the file has been
1657created with [see open(2) for details]. 1657created with [see open(2) for details] and 'mnt_id' represents mount ID of
1658the file system containing the opened file [see 3.5 /proc/<pid>/mountinfo
1659for details].
1658 1660
1659A typical output is 1661A typical output is
1660 1662
1661 pos: 0 1663 pos: 0
1662 flags: 0100002 1664 flags: 0100002
1665 mnt_id: 19
1663 1666
1664The files such as eventfd, fsnotify, signalfd, epoll among the regular pos/flags 1667The files such as eventfd, fsnotify, signalfd, epoll among the regular pos/flags
1665pair provide additional information particular to the objects they represent. 1668pair provide additional information particular to the objects they represent.
@@ -1668,6 +1671,7 @@ pair provide additional information particular to the objects they represent.
1668 ~~~~~~~~~~~~~ 1671 ~~~~~~~~~~~~~
1669 pos: 0 1672 pos: 0
1670 flags: 04002 1673 flags: 04002
1674 mnt_id: 9
1671 eventfd-count: 5a 1675 eventfd-count: 5a
1672 1676
1673 where 'eventfd-count' is hex value of a counter. 1677 where 'eventfd-count' is hex value of a counter.
@@ -1676,6 +1680,7 @@ pair provide additional information particular to the objects they represent.
1676 ~~~~~~~~~~~~~~ 1680 ~~~~~~~~~~~~~~
1677 pos: 0 1681 pos: 0
1678 flags: 04002 1682 flags: 04002
1683 mnt_id: 9
1679 sigmask: 0000000000000200 1684 sigmask: 0000000000000200
1680 1685
1681 where 'sigmask' is hex value of the signal mask associated 1686 where 'sigmask' is hex value of the signal mask associated
@@ -1685,6 +1690,7 @@ pair provide additional information particular to the objects they represent.
1685 ~~~~~~~~~~~ 1690 ~~~~~~~~~~~
1686 pos: 0 1691 pos: 0
1687 flags: 02 1692 flags: 02
1693 mnt_id: 9
1688 tfd: 5 events: 1d data: ffffffffffffffff 1694 tfd: 5 events: 1d data: ffffffffffffffff
1689 1695
1690 where 'tfd' is a target file descriptor number in decimal form, 1696 where 'tfd' is a target file descriptor number in decimal form,
@@ -1718,6 +1724,7 @@ pair provide additional information particular to the objects they represent.
1718 1724
1719 pos: 0 1725 pos: 0
1720 flags: 02 1726 flags: 02
1727 mnt_id: 9
1721 fanotify flags:10 event-flags:0 1728 fanotify flags:10 event-flags:0
1722 fanotify mnt_id:12 mflags:40 mask:38 ignored_mask:40000003 1729 fanotify mnt_id:12 mflags:40 mask:38 ignored_mask:40000003
1723 fanotify ino:4f969 sdev:800013 mflags:0 mask:3b ignored_mask:40000000 fhandle-bytes:8 fhandle-type:1 f_handle:69f90400c275b5b4 1730 fanotify ino:4f969 sdev:800013 mflags:0 mask:3b ignored_mask:40000000 fhandle-bytes:8 fhandle-type:1 f_handle:69f90400c275b5b4
diff --git a/Documentation/irqflags-tracing.txt b/Documentation/irqflags-tracing.txt
index 67aa71e73035..f6da05670e16 100644
--- a/Documentation/irqflags-tracing.txt
+++ b/Documentation/irqflags-tracing.txt
@@ -22,13 +22,6 @@ rather straightforward and risk-free manner.
22Architectures that want to support this need to do a couple of 22Architectures that want to support this need to do a couple of
23code-organizational changes first: 23code-organizational changes first:
24 24
25- move their irq-flags manipulation code from their asm/system.h header
26 to asm/irqflags.h
27
28- rename local_irq_disable()/etc to raw_local_irq_disable()/etc. so that
29 the linux/irqflags.h code can inject callbacks and can construct the
30 real local_irq_disable()/etc APIs.
31
32- add and enable TRACE_IRQFLAGS_SUPPORT in their arch level Kconfig file 25- add and enable TRACE_IRQFLAGS_SUPPORT in their arch level Kconfig file
33 26
34and then a couple of functional changes are needed as well to implement 27and then a couple of functional changes are needed as well to implement
diff --git a/Documentation/kbuild/kconfig-language.txt b/Documentation/kbuild/kconfig-language.txt
index c420676c6fe3..350f733bf2c7 100644
--- a/Documentation/kbuild/kconfig-language.txt
+++ b/Documentation/kbuild/kconfig-language.txt
@@ -157,6 +157,10 @@ applicable everywhere (see syntax).
157 to the build environment (if this is desired, it can be done via 157 to the build environment (if this is desired, it can be done via
158 another symbol). 158 another symbol).
159 159
160 - "allnoconfig_y"
161 This declares the symbol as one that should have the value y when
162 using "allnoconfig". Used for symbols that hide other symbols.
163
160Menu dependencies 164Menu dependencies
161----------------- 165-----------------
162 166
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index bc3478581f67..b6c67d592be5 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -884,6 +884,11 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
884 Enable debug messages at boot time. See 884 Enable debug messages at boot time. See
885 Documentation/dynamic-debug-howto.txt for details. 885 Documentation/dynamic-debug-howto.txt for details.
886 886
887 early_ioremap_debug [KNL]
888 Enable debug messages in early_ioremap support. This
889 is useful for tracking down temporary early mappings
890 which are not unmapped.
891
887 earlycon= [KNL] Output early console device and options. 892 earlycon= [KNL] Output early console device and options.
888 uart[8250],io,<addr>[,options] 893 uart[8250],io,<addr>[,options]
889 uart[8250],mmio,<addr>[,options] 894 uart[8250],mmio,<addr>[,options]
diff --git a/Documentation/rapidio/sysfs.txt b/Documentation/rapidio/sysfs.txt
index 271438c0617f..47ce9a5336e1 100644
--- a/Documentation/rapidio/sysfs.txt
+++ b/Documentation/rapidio/sysfs.txt
@@ -2,8 +2,8 @@
2 2
3~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 4
51. Device Subdirectories 51. RapidIO Device Subdirectories
6------------------------ 6--------------------------------
7 7
8For each RapidIO device, the RapidIO subsystem creates files in an individual 8For each RapidIO device, the RapidIO subsystem creates files in an individual
9subdirectory with the following name, /sys/bus/rapidio/devices/<device_name>. 9subdirectory with the following name, /sys/bus/rapidio/devices/<device_name>.
@@ -25,8 +25,8 @@ seen by the enumerating host (destID = 1):
25NOTE: An enumerating or discovering endpoint does not create a sysfs entry for 25NOTE: An enumerating or discovering endpoint does not create a sysfs entry for
26itself, this is why an endpoint with destID=1 is not shown in the list. 26itself, this is why an endpoint with destID=1 is not shown in the list.
27 27
282. Attributes Common for All Devices 282. Attributes Common for All RapidIO Devices
29------------------------------------ 29--------------------------------------------
30 30
31Each device subdirectory contains the following informational read-only files: 31Each device subdirectory contains the following informational read-only files:
32 32
@@ -52,16 +52,16 @@ This attribute is similar in behavior to the "config" attribute of PCI devices
52and provides an access to the RapidIO device registers using standard file read 52and provides an access to the RapidIO device registers using standard file read
53and write operations. 53and write operations.
54 54
553. Endpoint Device Attributes 553. RapidIO Endpoint Device Attributes
56----------------------------- 56-------------------------------------
57 57
58Currently Linux RapidIO subsystem does not create any endpoint specific sysfs 58Currently Linux RapidIO subsystem does not create any endpoint specific sysfs
59attributes. It is possible that RapidIO master port drivers and endpoint device 59attributes. It is possible that RapidIO master port drivers and endpoint device
60drivers will add their device-specific sysfs attributes but such attributes are 60drivers will add their device-specific sysfs attributes but such attributes are
61outside the scope of this document. 61outside the scope of this document.
62 62
634. Switch Device Attributes 634. RapidIO Switch Device Attributes
64--------------------------- 64-----------------------------------
65 65
66RapidIO switches have additional attributes in sysfs. RapidIO subsystem supports 66RapidIO switches have additional attributes in sysfs. RapidIO subsystem supports
67common and device-specific sysfs attributes for switches. Because switches are 67common and device-specific sysfs attributes for switches. Because switches are
@@ -106,3 +106,53 @@ attribute:
106 for that controller always will be 0. 106 for that controller always will be 0.
107 To initiate RapidIO enumeration/discovery on all available mports 107 To initiate RapidIO enumeration/discovery on all available mports
108 a user must write '-1' (or RIO_MPORT_ANY) into this attribute file. 108 a user must write '-1' (or RIO_MPORT_ANY) into this attribute file.
109
110
1116. RapidIO Bus Controllers/Ports
112--------------------------------
113
114On-chip RapidIO controllers and PCIe-to-RapidIO bridges (referenced as
115"Master Port" or "mport") are presented in sysfs as the special class of
116devices: "rapidio_port".
117
118The /sys/class/rapidio_port subdirectory contains individual subdirectories
119named as "rapidioN" where N = mport ID registered with RapidIO subsystem.
120
121NOTE: An mport ID is not a RapidIO destination ID assigned to a given local
122mport device.
123
124Each mport device subdirectory in addition to standard entries contains the
125following device-specific attributes:
126
127 port_destid - reports RapidIO destination ID assigned to the given RapidIO
128 mport device. If value 0xFFFFFFFF is returned this means that
129 no valid destination ID have been assigned to the mport (yet).
130 Normally, before enumeration/discovery have been executed only
131 fabric enumerating mports have a valid destination ID assigned
132 to them using "hdid=..." rapidio module parameter.
133 sys_size - reports RapidIO common transport system size:
134 0 = small (8-bit destination ID, max. 256 devices),
135 1 = large (16-bit destination ID, max. 65536 devices).
136
137After enumeration or discovery was performed for a given mport device,
138the corresponding subdirectory will also contain subdirectories for each
139child RapidIO device connected to the mport. Naming conventions for RapidIO
140devices are described in Section 1 above.
141
142The example below shows mport device subdirectory with several child RapidIO
143devices attached to it.
144
145[rio@rapidio ~]$ ls /sys/class/rapidio_port/rapidio0/ -l
146total 0
147drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0001
148drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0004
149drwxr-xr-x 3 root root 0 Feb 11 15:10 00:e:0007
150drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0002
151drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0003
152drwxr-xr-x 3 root root 0 Feb 11 15:10 00:s:0005
153lrwxrwxrwx 1 root root 0 Feb 11 15:11 device -> ../../../0000:01:00.0
154-r--r--r-- 1 root root 4096 Feb 11 15:11 port_destid
155drwxr-xr-x 2 root root 0 Feb 11 15:11 power
156lrwxrwxrwx 1 root root 0 Feb 11 15:04 subsystem -> ../../../../../../class/rapidio_port
157-r--r--r-- 1 root root 4096 Feb 11 15:11 sys_size
158-rw-r--r-- 1 root root 4096 Feb 11 15:04 uevent
diff --git a/Documentation/scheduler/sched-arch.txt b/Documentation/scheduler/sched-arch.txt
index 9290de703450..a2f27bbf2cba 100644
--- a/Documentation/scheduler/sched-arch.txt
+++ b/Documentation/scheduler/sched-arch.txt
@@ -8,7 +8,7 @@ Context switch
8By default, the switch_to arch function is called with the runqueue 8By default, the switch_to arch function is called with the runqueue
9locked. This is usually not a problem unless switch_to may need to 9locked. This is usually not a problem unless switch_to may need to
10take the runqueue lock. This is usually due to a wake up operation in 10take the runqueue lock. This is usually due to a wake up operation in
11the context switch. See arch/ia64/include/asm/system.h for an example. 11the context switch. See arch/ia64/include/asm/switch_to.h for an example.
12 12
13To request the scheduler call switch_to with the runqueue unlocked, 13To request the scheduler call switch_to with the runqueue unlocked,
14you must `#define __ARCH_WANT_UNLOCKED_CTXSW` in a header file 14you must `#define __ARCH_WANT_UNLOCKED_CTXSW` in a header file
diff --git a/Documentation/sysctl/kernel.txt b/Documentation/sysctl/kernel.txt
index 271a09db6629..9886c3d57fc2 100644
--- a/Documentation/sysctl/kernel.txt
+++ b/Documentation/sysctl/kernel.txt
@@ -317,6 +317,7 @@ for more than this value report a warning.
317This file shows up if CONFIG_DETECT_HUNG_TASK is enabled. 317This file shows up if CONFIG_DETECT_HUNG_TASK is enabled.
318 318
3190: means infinite timeout - no checking done. 3190: means infinite timeout - no checking done.
320Possible values to set are in range {0..LONG_MAX/HZ}.
320 321
321============================================================== 322==============================================================
322 323