Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit db58316

Browse files
author
Jiri Kosina
committed
Merge branches 'for-3.11/battery', 'for-3.11/elo', 'for-3.11/holtek' and 'for-3.11/i2c-hid-fixed' into for-linus
4 parents d0a934b + d8e5aec + c99f818 + 811adb9 commit db58316

File tree

1,547 files changed

+30480
-12494
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,547 files changed

+30480
-12494
lines changed

Documentation/bcache.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,10 @@ cache<0..n>
319319
Symlink to each of the cache devices comprising this cache set.
320320

321321
cache_available_percent
322-
Percentage of cache device free.
322+
Percentage of cache device which doesn't contain dirty data, and could
323+
potentially be used for writeback. This doesn't mean this space isn't used
324+
for clean cached data; the unused statistic (in priority_stats) is typically
325+
much lower.
323326

324327
clear_stats
325328
Clears the statistics associated with this cache
@@ -423,8 +426,11 @@ nbuckets
423426
Total buckets in this cache
424427

425428
priority_stats
426-
Statistics about how recently data in the cache has been accessed. This can
427-
reveal your working set size.
429+
Statistics about how recently data in the cache has been accessed.
430+
This can reveal your working set size. Unused is the percentage of
431+
the cache that doesn't contain any data. Metadata is bcache's
432+
metadata overhead. Average is the average priority of cache buckets.
433+
Next is a list of quantiles with the priority threshold of each.
428434

429435
written
430436
Sum of all data that has been written to the cache; comparison with

Documentation/devices.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -498,12 +498,8 @@ Your cooperation is appreciated.
498498

499499
Each device type has 5 bits (32 minors).
500500

501-
13 block 8-bit MFM/RLL/IDE controller
502-
0 = /dev/xda First XT disk whole disk
503-
64 = /dev/xdb Second XT disk whole disk
504-
505-
Partitions are handled in the same way as IDE disks
506-
(see major number 3).
501+
13 block Previously used for the XT disk (/dev/xdN)
502+
Deleted in kernel v3.9.
507503

508504
14 char Open Sound System (OSS)
509505
0 = /dev/mixer Mixer control

Documentation/devicetree/bindings/net/macb.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Required properties:
44
- compatible: Should be "cdns,[<chip>-]{macb|gem}"
55
Use "cdns,at91sam9260-macb" Atmel at91sam9260 and at91sam9263 SoCs.
66
Use "cdns,at32ap7000-macb" for other 10/100 usage or use the generic form: "cdns,macb".
7-
Use "cnds,pc302-gem" for Picochip picoXcell pc302 and later devices based on
7+
Use "cdns,pc302-gem" for Picochip picoXcell pc302 and later devices based on
88
the Cadence GEM, or the generic form: "cdns,gem".
99
- reg: Address and length of the register set for the device
1010
- interrupts: Should contain macb interrupt

Documentation/devicetree/bindings/rtc/atmel,at91rm9200-rtc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Atmel AT91RM9200 Real Time Clock
22

33
Required properties:
4-
- compatible: should be: "atmel,at91rm9200-rtc"
4+
- compatible: should be: "atmel,at91rm9200-rtc" or "atmel,at91sam9x5-rtc"
55
- reg: physical base address of the controller and length of memory mapped
66
region.
77
- interrupts: rtc alarm/event interrupt
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Simple Framebuffer
2+
3+
A simple frame-buffer describes a raw memory region that may be rendered to,
4+
with the assumption that the display hardware has already been set up to scan
5+
out from that buffer.
6+
7+
Required properties:
8+
- compatible: "simple-framebuffer"
9+
- reg: Should contain the location and size of the framebuffer memory.
10+
- width: The width of the framebuffer in pixels.
11+
- height: The height of the framebuffer in pixels.
12+
- stride: The number of bytes in each line of the framebuffer.
13+
- format: The format of the framebuffer surface. Valid values are:
14+
- r5g6b5 (16-bit pixels, d[15:11]=r, d[10:5]=g, d[4:0]=b).
15+
16+
Example:
17+
18+
framebuffer {
19+
compatible = "simple-framebuffer";
20+
reg = <0x1d385000 (1600 * 1200 * 2)>;
21+
width = <1600>;
22+
height = <1200>;
23+
stride = <(1600 * 2)>;
24+
format = "r5g6b5";
25+
};

Documentation/devicetree/usage-model.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,11 @@ Linux it will look something like this:
191191
};
192192

193193
The bootargs property contains the kernel arguments, and the initrd-*
194-
properties define the address and size of an initrd blob. The
195-
chosen node may also optionally contain an arbitrary number of
196-
additional properties for platform-specific configuration data.
194+
properties define the address and size of an initrd blob. Note that
195+
initrd-end is the first address after the initrd image, so this doesn't
196+
match the usual semantic of struct resource. The chosen node may also
197+
optionally contain an arbitrary number of additional properties for
198+
platform-specific configuration data.
197199

198200
During early boot, the architecture setup code calls of_scan_flat_dt()
199201
several times with different helper callbacks to parse device tree

Documentation/dmatest.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ command:
3434
After a while you will start to get messages about current status or error like
3535
in the original code.
3636

37-
Note that running a new test will stop any in progress test.
37+
Note that running a new test will not stop any in progress test.
3838

3939
The following command should return actual state of the test.
4040
% cat /sys/kernel/debug/dmatest/run
@@ -52,8 +52,8 @@ To wait for test done the user may perform a busy loop that checks the state.
5252

5353
The module parameters that is supplied to the kernel command line will be used
5454
for the first performed test. After user gets a control, the test could be
55-
interrupted or re-run with same or different parameters. For the details see
56-
the above section "Part 2 - When dmatest is built as a module..."
55+
re-run with the same or different parameters. For the details see the above
56+
section "Part 2 - When dmatest is built as a module..."
5757

5858
In both cases the module parameters are used as initial values for the test case.
5959
You always could check them at run-time by running

Documentation/filesystems/xfs.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ When mounting an XFS filesystem, the following options are accepted.
3333
removing extended attributes) the on-disk superblock feature
3434
bit field will be updated to reflect this format being in use.
3535

36+
CRC enabled filesystems always use the attr2 format, and so
37+
will reject the noattr2 mount option if it is set.
38+
3639
barrier
3740
Enables the use of block layer write barriers for writes into
3841
the journal and unwritten extent conversion. This allows for

Documentation/kernel-parameters.txt

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3005,6 +3005,27 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
30053005
Force threading of all interrupt handlers except those
30063006
marked explicitly IRQF_NO_THREAD.
30073007

3008+
tmem [KNL,XEN]
3009+
Enable the Transcendent memory driver if built-in.
3010+
3011+
tmem.cleancache=0|1 [KNL, XEN]
3012+
Default is on (1). Disable the usage of the cleancache
3013+
API to send anonymous pages to the hypervisor.
3014+
3015+
tmem.frontswap=0|1 [KNL, XEN]
3016+
Default is on (1). Disable the usage of the frontswap
3017+
API to send swap pages to the hypervisor. If disabled
3018+
the selfballooning and selfshrinking are force disabled.
3019+
3020+
tmem.selfballooning=0|1 [KNL, XEN]
3021+
Default is on (1). Disable the driving of swap pages
3022+
to the hypervisor.
3023+
3024+
tmem.selfshrinking=0|1 [KNL, XEN]
3025+
Default is on (1). Partial swapoff that immediately
3026+
transfers pages from Xen hypervisor back to the
3027+
kernel based on different criteria.
3028+
30083029
topology= [S390]
30093030
Format: {off | on}
30103031
Specify if the kernel should make use of the cpu
@@ -3330,9 +3351,6 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
33303351
plus one apbt timer for broadcast timer.
33313352
x86_mrst_timer=apbt_only | lapic_and_apbt
33323353

3333-
xd= [HW,XT] Original XT pre-IDE (RLL encoded) disks.
3334-
xd_geo= See header of drivers/block/xd.c.
3335-
33363354
xen_emul_unplug= [HW,X86,XEN]
33373355
Unplug Xen emulated devices
33383356
Format: [unplug0,][unplug1]
Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
REDUCING OS JITTER DUE TO PER-CPU KTHREADS
2+
3+
This document lists per-CPU kthreads in the Linux kernel and presents
4+
options to control their OS jitter. Note that non-per-CPU kthreads are
5+
not listed here. To reduce OS jitter from non-per-CPU kthreads, bind
6+
them to a "housekeeping" CPU dedicated to such work.
7+
8+
9+
REFERENCES
10+
11+
o Documentation/IRQ-affinity.txt: Binding interrupts to sets of CPUs.
12+
13+
o Documentation/cgroups: Using cgroups to bind tasks to sets of CPUs.
14+
15+
o man taskset: Using the taskset command to bind tasks to sets
16+
of CPUs.
17+
18+
o man sched_setaffinity: Using the sched_setaffinity() system
19+
call to bind tasks to sets of CPUs.
20+
21+
o /sys/devices/system/cpu/cpuN/online: Control CPU N's hotplug state,
22+
writing "0" to offline and "1" to online.
23+
24+
o In order to locate kernel-generated OS jitter on CPU N:
25+
26+
cd /sys/kernel/debug/tracing
27+
echo 1 > max_graph_depth # Increase the "1" for more detail
28+
echo function_graph > current_tracer
29+
# run workload
30+
cat per_cpu/cpuN/trace
31+
32+
33+
KTHREADS
34+
35+
Name: ehca_comp/%u
36+
Purpose: Periodically process Infiniband-related work.
37+
To reduce its OS jitter, do any of the following:
38+
1. Don't use eHCA Infiniband hardware, instead choosing hardware
39+
that does not require per-CPU kthreads. This will prevent these
40+
kthreads from being created in the first place. (This will
41+
work for most people, as this hardware, though important, is
42+
relatively old and is produced in relatively low unit volumes.)
43+
2. Do all eHCA-Infiniband-related work on other CPUs, including
44+
interrupts.
45+
3. Rework the eHCA driver so that its per-CPU kthreads are
46+
provisioned only on selected CPUs.
47+
48+
49+
Name: irq/%d-%s
50+
Purpose: Handle threaded interrupts.
51+
To reduce its OS jitter, do the following:
52+
1. Use irq affinity to force the irq threads to execute on
53+
some other CPU.
54+
55+
Name: kcmtpd_ctr_%d
56+
Purpose: Handle Bluetooth work.
57+
To reduce its OS jitter, do one of the following:
58+
1. Don't use Bluetooth, in which case these kthreads won't be
59+
created in the first place.
60+
2. Use irq affinity to force Bluetooth-related interrupts to
61+
occur on some other CPU and furthermore initiate all
62+
Bluetooth activity on some other CPU.
63+
64+
Name: ksoftirqd/%u
65+
Purpose: Execute softirq handlers when threaded or when under heavy load.
66+
To reduce its OS jitter, each softirq vector must be handled
67+
separately as follows:
68+
TIMER_SOFTIRQ: Do all of the following:
69+
1. To the extent possible, keep the CPU out of the kernel when it
70+
is non-idle, for example, by avoiding system calls and by forcing
71+
both kernel threads and interrupts to execute elsewhere.
72+
2. Build with CONFIG_HOTPLUG_CPU=y. After boot completes, force
73+
the CPU offline, then bring it back online. This forces
74+
recurring timers to migrate elsewhere. If you are concerned
75+
with multiple CPUs, force them all offline before bringing the
76+
first one back online. Once you have onlined the CPUs in question,
77+
do not offline any other CPUs, because doing so could force the
78+
timer back onto one of the CPUs in question.
79+
NET_TX_SOFTIRQ and NET_RX_SOFTIRQ: Do all of the following:
80+
1. Force networking interrupts onto other CPUs.
81+
2. Initiate any network I/O on other CPUs.
82+
3. Once your application has started, prevent CPU-hotplug operations
83+
from being initiated from tasks that might run on the CPU to
84+
be de-jittered. (It is OK to force this CPU offline and then
85+
bring it back online before you start your application.)
86+
BLOCK_SOFTIRQ: Do all of the following:
87+
1. Force block-device interrupts onto some other CPU.
88+
2. Initiate any block I/O on other CPUs.
89+
3. Once your application has started, prevent CPU-hotplug operations
90+
from being initiated from tasks that might run on the CPU to
91+
be de-jittered. (It is OK to force this CPU offline and then
92+
bring it back online before you start your application.)
93+
BLOCK_IOPOLL_SOFTIRQ: Do all of the following:
94+
1. Force block-device interrupts onto some other CPU.
95+
2. Initiate any block I/O and block-I/O polling on other CPUs.
96+
3. Once your application has started, prevent CPU-hotplug operations
97+
from being initiated from tasks that might run on the CPU to
98+
be de-jittered. (It is OK to force this CPU offline and then
99+
bring it back online before you start your application.)
100+
TASKLET_SOFTIRQ: Do one or more of the following:
101+
1. Avoid use of drivers that use tasklets. (Such drivers will contain
102+
calls to things like tasklet_schedule().)
103+
2. Convert all drivers that you must use from tasklets to workqueues.
104+
3. Force interrupts for drivers using tasklets onto other CPUs,
105+
and also do I/O involving these drivers on other CPUs.
106+
SCHED_SOFTIRQ: Do all of the following:
107+
1. Avoid sending scheduler IPIs to the CPU to be de-jittered,
108+
for example, ensure that at most one runnable kthread is present
109+
on that CPU. If a thread that expects to run on the de-jittered
110+
CPU awakens, the scheduler will send an IPI that can result in
111+
a subsequent SCHED_SOFTIRQ.
112+
2. Build with CONFIG_RCU_NOCB_CPU=y, CONFIG_RCU_NOCB_CPU_ALL=y,
113+
CONFIG_NO_HZ_FULL=y, and, in addition, ensure that the CPU
114+
to be de-jittered is marked as an adaptive-ticks CPU using the
115+
"nohz_full=" boot parameter. This reduces the number of
116+
scheduler-clock interrupts that the de-jittered CPU receives,
117+
minimizing its chances of being selected to do the load balancing
118+
work that runs in SCHED_SOFTIRQ context.
119+
3. To the extent possible, keep the CPU out of the kernel when it
120+
is non-idle, for example, by avoiding system calls and by
121+
forcing both kernel threads and interrupts to execute elsewhere.
122+
This further reduces the number of scheduler-clock interrupts
123+
received by the de-jittered CPU.
124+
HRTIMER_SOFTIRQ: Do all of the following:
125+
1. To the extent possible, keep the CPU out of the kernel when it
126+
is non-idle. For example, avoid system calls and force both
127+
kernel threads and interrupts to execute elsewhere.
128+
2. Build with CONFIG_HOTPLUG_CPU=y. Once boot completes, force the
129+
CPU offline, then bring it back online. This forces recurring
130+
timers to migrate elsewhere. If you are concerned with multiple
131+
CPUs, force them all offline before bringing the first one
132+
back online. Once you have onlined the CPUs in question, do not
133+
offline any other CPUs, because doing so could force the timer
134+
back onto one of the CPUs in question.
135+
RCU_SOFTIRQ: Do at least one of the following:
136+
1. Offload callbacks and keep the CPU in either dyntick-idle or
137+
adaptive-ticks state by doing all of the following:
138+
a. Build with CONFIG_RCU_NOCB_CPU=y, CONFIG_RCU_NOCB_CPU_ALL=y,
139+
CONFIG_NO_HZ_FULL=y, and, in addition ensure that the CPU
140+
to be de-jittered is marked as an adaptive-ticks CPU using
141+
the "nohz_full=" boot parameter. Bind the rcuo kthreads
142+
to housekeeping CPUs, which can tolerate OS jitter.
143+
b. To the extent possible, keep the CPU out of the kernel
144+
when it is non-idle, for example, by avoiding system
145+
calls and by forcing both kernel threads and interrupts
146+
to execute elsewhere.
147+
2. Enable RCU to do its processing remotely via dyntick-idle by
148+
doing all of the following:
149+
a. Build with CONFIG_NO_HZ=y and CONFIG_RCU_FAST_NO_HZ=y.
150+
b. Ensure that the CPU goes idle frequently, allowing other
151+
CPUs to detect that it has passed through an RCU quiescent
152+
state. If the kernel is built with CONFIG_NO_HZ_FULL=y,
153+
userspace execution also allows other CPUs to detect that
154+
the CPU in question has passed through a quiescent state.
155+
c. To the extent possible, keep the CPU out of the kernel
156+
when it is non-idle, for example, by avoiding system
157+
calls and by forcing both kernel threads and interrupts
158+
to execute elsewhere.
159+
160+
Name: rcuc/%u
161+
Purpose: Execute RCU callbacks in CONFIG_RCU_BOOST=y kernels.
162+
To reduce its OS jitter, do at least one of the following:
163+
1. Build the kernel with CONFIG_PREEMPT=n. This prevents these
164+
kthreads from being created in the first place, and also obviates
165+
the need for RCU priority boosting. This approach is feasible
166+
for workloads that do not require high degrees of responsiveness.
167+
2. Build the kernel with CONFIG_RCU_BOOST=n. This prevents these
168+
kthreads from being created in the first place. This approach
169+
is feasible only if your workload never requires RCU priority
170+
boosting, for example, if you ensure frequent idle time on all
171+
CPUs that might execute within the kernel.
172+
3. Build with CONFIG_RCU_NOCB_CPU=y and CONFIG_RCU_NOCB_CPU_ALL=y,
173+
which offloads all RCU callbacks to kthreads that can be moved
174+
off of CPUs susceptible to OS jitter. This approach prevents the
175+
rcuc/%u kthreads from having any work to do, so that they are
176+
never awakened.
177+
4. Ensure that the CPU never enters the kernel, and, in particular,
178+
avoid initiating any CPU hotplug operations on this CPU. This is
179+
another way of preventing any callbacks from being queued on the
180+
CPU, again preventing the rcuc/%u kthreads from having any work
181+
to do.
182+
183+
Name: rcuob/%d, rcuop/%d, and rcuos/%d
184+
Purpose: Offload RCU callbacks from the corresponding CPU.
185+
To reduce its OS jitter, do at least one of the following:
186+
1. Use affinity, cgroups, or other mechanism to force these kthreads
187+
to execute on some other CPU.
188+
2. Build with CONFIG_RCU_NOCB_CPUS=n, which will prevent these
189+
kthreads from being created in the first place. However, please
190+
note that this will not eliminate OS jitter, but will instead
191+
shift it to RCU_SOFTIRQ.
192+
193+
Name: watchdog/%u
194+
Purpose: Detect software lockups on each CPU.
195+
To reduce its OS jitter, do at least one of the following:
196+
1. Build with CONFIG_LOCKUP_DETECTOR=n, which will prevent these
197+
kthreads from being created in the first place.
198+
2. Echo a zero to /proc/sys/kernel/watchdog to disable the
199+
watchdog timer.
200+
3. Echo a large number of /proc/sys/kernel/watchdog_thresh in
201+
order to reduce the frequency of OS jitter due to the watchdog
202+
timer down to a level that is acceptable for your workload.

Documentation/m68k/kernel-options.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ Valid names are:
8080
/dev/sdd: -> 0x0830 (forth SCSI disk)
8181
/dev/sde: -> 0x0840 (fifth SCSI disk)
8282
/dev/fd : -> 0x0200 (floppy disk)
83-
/dev/xda: -> 0x0c00 (first XT disk, unused in Linux/m68k)
84-
/dev/xdb: -> 0x0c40 (second XT disk, unused in Linux/m68k)
8583

8684
The name must be followed by a decimal number, that stands for the
8785
partition number. Internally, the value of the number is just

0 commit comments

Comments
 (0)