Skip to content

Commit 58935f2

Browse files
committed
Merge tag 'omap-for-v4.7/fixes-powedomain' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes
Fixes for omaps for v4.7-rc cycle: - Fix dra7 for hardware issues limiting L4Per and L3init power domains to on state. Without this the devices may not work correctly after some time of use because of asymmetric aging. And related to this, let's also remove the unusable states. - Always select omap interconnect for am43x as otherwise the am43x only configurations will not boot properly. This can happen easily for any product kernels that leave out other SoCs to save memory. - Fix DSS PLL2 addresses that have gone unused for now - Select erratum 430973 for omap3, this is now safe to do and can save quite a bit of debugging time for people who may have left it out. * tag 'omap-for-v4.7/fixes-powedomain' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: OMAP: DRA7: powerdomain data: Remove unused pwrsts_mem_ret ARM: OMAP: DRA7: powerdomain data: Remove unused pwrsts_logic_ret ARM: OMAP: DRA7: powerdomain data: Set L3init and L4per to ON ARM: OMAP2+: Select OMAP_INTERCONNECT for SOC_AM43XX ARM: dts: DRA74x: fix DSS PLL2 addresses ARM: OMAP2: Enable Errata 430973 for OMAP3 + Linux 4.7-rc2 Signed-off-by: Olof Johansson <[email protected]>
2 parents 9503427 + 6b41d44 commit 58935f2

File tree

259 files changed

+2493
-1597
lines changed

Some content is hidden

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

259 files changed

+2493
-1597
lines changed

Documentation/DocBook/device-drivers.tmpl

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,44 @@ X!Edrivers/base/interface.c
128128
!Edrivers/base/platform.c
129129
!Edrivers/base/bus.c
130130
</sect1>
131-
<sect1><title>Device Drivers DMA Management</title>
131+
<sect1>
132+
<title>Buffer Sharing and Synchronization</title>
133+
<para>
134+
The dma-buf subsystem provides the framework for sharing buffers
135+
for hardware (DMA) access across multiple device drivers and
136+
subsystems, and for synchronizing asynchronous hardware access.
137+
</para>
138+
<para>
139+
This is used, for example, by drm "prime" multi-GPU support, but
140+
is of course not limited to GPU use cases.
141+
</para>
142+
<para>
143+
The three main components of this are: (1) dma-buf, representing
144+
a sg_table and exposed to userspace as a file descriptor to allow
145+
passing between devices, (2) fence, which provides a mechanism
146+
to signal when one device as finished access, and (3) reservation,
147+
which manages the shared or exclusive fence(s) associated with
148+
the buffer.
149+
</para>
150+
<sect2><title>dma-buf</title>
132151
!Edrivers/dma-buf/dma-buf.c
152+
!Iinclude/linux/dma-buf.h
153+
</sect2>
154+
<sect2><title>reservation</title>
155+
!Pdrivers/dma-buf/reservation.c Reservation Object Overview
156+
!Edrivers/dma-buf/reservation.c
157+
!Iinclude/linux/reservation.h
158+
</sect2>
159+
<sect2><title>fence</title>
133160
!Edrivers/dma-buf/fence.c
134-
!Edrivers/dma-buf/seqno-fence.c
135161
!Iinclude/linux/fence.h
162+
!Edrivers/dma-buf/seqno-fence.c
136163
!Iinclude/linux/seqno-fence.h
137-
!Edrivers/dma-buf/reservation.c
138-
!Iinclude/linux/reservation.h
139164
!Edrivers/dma-buf/sync_file.c
140165
!Iinclude/linux/sync_file.h
166+
</sect2>
167+
</sect1>
168+
<sect1><title>Device Drivers DMA Management</title>
141169
!Edrivers/base/dma-coherent.c
142170
!Edrivers/base/dma-mapping.c
143171
</sect1>

Documentation/arm64/silicon-errata.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ stable kernels.
5656
| ARM | MMU-500 | #841119,#826419 | N/A |
5757
| | | | |
5858
| Cavium | ThunderX ITS | #22375, #24313 | CAVIUM_ERRATUM_22375 |
59+
| Cavium | ThunderX ITS | #23144 | CAVIUM_ERRATUM_23144 |
5960
| Cavium | ThunderX GICv3 | #23154 | CAVIUM_ERRATUM_23154 |
6061
| Cavium | ThunderX Core | #27456 | CAVIUM_ERRATUM_27456 |
6162
| Cavium | ThunderX SMMUv2 | #27704 | N/A |

Documentation/devicetree/bindings/display/imx/ldb.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Required properties:
6262
display-timings are used instead.
6363

6464
Optional properties (required if display-timings are used):
65+
- ddc-i2c-bus: phandle of an I2C controller used for DDC EDID probing
6566
- display-timings : A node that describes the display timings as defined in
6667
Documentation/devicetree/bindings/display/display-timing.txt.
6768
- fsl,data-mapping : should be "spwg" or "jeida"

Documentation/filesystems/devpts.txt

Lines changed: 15 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -1,141 +1,26 @@
1+
Each mount of the devpts filesystem is now distinct such that ptys
2+
and their indicies allocated in one mount are independent from ptys
3+
and their indicies in all other mounts.
14

2-
To support containers, we now allow multiple instances of devpts filesystem,
3-
such that indices of ptys allocated in one instance are independent of indices
4-
allocated in other instances of devpts.
5+
All mounts of the devpts filesystem now create a /dev/pts/ptmx node
6+
with permissions 0000.
57

6-
To preserve backward compatibility, this support for multiple instances is
7-
enabled only if:
8+
To retain backwards compatibility the a ptmx device node (aka any node
9+
created with "mknod name c 5 2") when opened will look for an instance
10+
of devpts under the name "pts" in the same directory as the ptmx device
11+
node.
812

9-
- CONFIG_DEVPTS_MULTIPLE_INSTANCES=y, and
10-
- '-o newinstance' mount option is specified while mounting devpts
11-
12-
IOW, devpts now supports both single-instance and multi-instance semantics.
13-
14-
If CONFIG_DEVPTS_MULTIPLE_INSTANCES=n, there is no change in behavior and
15-
this referred to as the "legacy" mode. In this mode, the new mount options
16-
(-o newinstance and -o ptmxmode) will be ignored with a 'bogus option' message
17-
on console.
18-
19-
If CONFIG_DEVPTS_MULTIPLE_INSTANCES=y and devpts is mounted without the
20-
'newinstance' option (as in current start-up scripts) the new mount binds
21-
to the initial kernel mount of devpts. This mode is referred to as the
22-
'single-instance' mode and the current, single-instance semantics are
23-
preserved, i.e PTYs are common across the system.
24-
25-
The only difference between this single-instance mode and the legacy mode
26-
is the presence of new, '/dev/pts/ptmx' node with permissions 0000, which
27-
can safely be ignored.
28-
29-
If CONFIG_DEVPTS_MULTIPLE_INSTANCES=y and 'newinstance' option is specified,
30-
the mount is considered to be in the multi-instance mode and a new instance
31-
of the devpts fs is created. Any ptys created in this instance are independent
32-
of ptys in other instances of devpts. Like in the single-instance mode, the
33-
/dev/pts/ptmx node is present. To effectively use the multi-instance mode,
34-
open of /dev/ptmx must be a redirected to '/dev/pts/ptmx' using a symlink or
35-
bind-mount.
36-
37-
Eg: A container startup script could do the following:
38-
39-
$ chmod 0666 /dev/pts/ptmx
40-
$ rm /dev/ptmx
41-
$ ln -s pts/ptmx /dev/ptmx
42-
$ ns_exec -cm /bin/bash
43-
44-
# We are now in new container
45-
46-
$ umount /dev/pts
47-
$ mount -t devpts -o newinstance lxcpts /dev/pts
48-
$ sshd -p 1234
49-
50-
where 'ns_exec -cm /bin/bash' calls clone() with CLONE_NEWNS flag and execs
51-
/bin/bash in the child process. A pty created by the sshd is not visible in
52-
the original mount of /dev/pts.
13+
As an option instead of placing a /dev/ptmx device node at /dev/ptmx
14+
it is possible to place a symlink to /dev/pts/ptmx at /dev/ptmx or
15+
to bind mount /dev/ptx/ptmx to /dev/ptmx. If you opt for using
16+
the devpts filesystem in this manner devpts should be mounted with
17+
the ptmxmode=0666, or chmod 0666 /dev/pts/ptmx should be called.
5318

5419
Total count of pty pairs in all instances is limited by sysctls:
5520
kernel.pty.max = 4096 - global limit
56-
kernel.pty.reserve = 1024 - reserve for initial instance
21+
kernel.pty.reserve = 1024 - reserved for filesystems mounted from the initial mount namespace
5722
kernel.pty.nr - current count of ptys
5823

5924
Per-instance limit could be set by adding mount option "max=<count>".
6025
This feature was added in kernel 3.4 together with sysctl kernel.pty.reserve.
6126
In kernels older than 3.4 sysctl kernel.pty.max works as per-instance limit.
62-
63-
User-space changes
64-
------------------
65-
66-
In multi-instance mode (i.e '-o newinstance' mount option is specified at least
67-
once), following user-space issues should be noted.
68-
69-
1. If -o newinstance mount option is never used, /dev/pts/ptmx can be ignored
70-
and no change is needed to system-startup scripts.
71-
72-
2. To effectively use multi-instance mode (i.e -o newinstance is specified)
73-
administrators or startup scripts should "redirect" open of /dev/ptmx to
74-
/dev/pts/ptmx using either a bind mount or symlink.
75-
76-
$ mount -t devpts -o newinstance devpts /dev/pts
77-
78-
followed by either
79-
80-
$ rm /dev/ptmx
81-
$ ln -s pts/ptmx /dev/ptmx
82-
$ chmod 666 /dev/pts/ptmx
83-
or
84-
$ mount -o bind /dev/pts/ptmx /dev/ptmx
85-
86-
3. The '/dev/ptmx -> pts/ptmx' symlink is the preferred method since it
87-
enables better error-reporting and treats both single-instance and
88-
multi-instance mounts similarly.
89-
90-
But this method requires that system-startup scripts set the mode of
91-
/dev/pts/ptmx correctly (default mode is 0000). The scripts can set the
92-
mode by, either
93-
94-
- adding ptmxmode mount option to devpts entry in /etc/fstab, or
95-
- using 'chmod 0666 /dev/pts/ptmx'
96-
97-
4. If multi-instance mode mount is needed for containers, but the system
98-
startup scripts have not yet been updated, container-startup scripts
99-
should bind mount /dev/ptmx to /dev/pts/ptmx to avoid breaking single-
100-
instance mounts.
101-
102-
Or, in general, container-startup scripts should use:
103-
104-
mount -t devpts -o newinstance -o ptmxmode=0666 devpts /dev/pts
105-
if [ ! -L /dev/ptmx ]; then
106-
mount -o bind /dev/pts/ptmx /dev/ptmx
107-
fi
108-
109-
When all devpts mounts are multi-instance, /dev/ptmx can permanently be
110-
a symlink to pts/ptmx and the bind mount can be ignored.
111-
112-
5. A multi-instance mount that is not accompanied by the /dev/ptmx to
113-
/dev/pts/ptmx redirection would result in an unusable/unreachable pty.
114-
115-
mount -t devpts -o newinstance lxcpts /dev/pts
116-
117-
immediately followed by:
118-
119-
open("/dev/ptmx")
120-
121-
would create a pty, say /dev/pts/7, in the initial kernel mount.
122-
But /dev/pts/7 would be invisible in the new mount.
123-
124-
6. The permissions for /dev/pts/ptmx node should be specified when mounting
125-
/dev/pts, using the '-o ptmxmode=%o' mount option (default is 0000).
126-
127-
mount -t devpts -o newinstance -o ptmxmode=0644 devpts /dev/pts
128-
129-
The permissions can be later be changed as usual with 'chmod'.
130-
131-
chmod 666 /dev/pts/ptmx
132-
133-
7. A mount of devpts without the 'newinstance' option results in binding to
134-
initial kernel mount. This behavior while preserving legacy semantics,
135-
does not provide strict isolation in a container environment. i.e by
136-
mounting devpts without the 'newinstance' option, a container could
137-
get visibility into the 'host' or root container's devpts.
138-
139-
To workaround this and have strict isolation, all mounts of devpts,
140-
including the mount in the root container, should use the newinstance
141-
option.

Documentation/kdump/gdbmacros.txt

Lines changed: 82 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,21 +170,92 @@ document trapinfo
170170
address the kernel panicked.
171171
end
172172

173+
define dump_log_idx
174+
set $idx = $arg0
175+
if ($argc > 1)
176+
set $prev_flags = $arg1
177+
else
178+
set $prev_flags = 0
179+
end
180+
set $msg = ((struct printk_log *) (log_buf + $idx))
181+
set $prefix = 1
182+
set $newline = 1
183+
set $log = log_buf + $idx + sizeof(*$msg)
173184

174-
define dmesg
175-
set $i = 0
176-
set $end_idx = (log_end - 1) & (log_buf_len - 1)
185+
# prev & LOG_CONT && !(msg->flags & LOG_PREIX)
186+
if (($prev_flags & 8) && !($msg->flags & 4))
187+
set $prefix = 0
188+
end
189+
190+
# msg->flags & LOG_CONT
191+
if ($msg->flags & 8)
192+
# (prev & LOG_CONT && !(prev & LOG_NEWLINE))
193+
if (($prev_flags & 8) && !($prev_flags & 2))
194+
set $prefix = 0
195+
end
196+
# (!(msg->flags & LOG_NEWLINE))
197+
if (!($msg->flags & 2))
198+
set $newline = 0
199+
end
200+
end
201+
202+
if ($prefix)
203+
printf "[%5lu.%06lu] ", $msg->ts_nsec / 1000000000, $msg->ts_nsec % 1000000000
204+
end
205+
if ($msg->text_len != 0)
206+
eval "printf \"%%%d.%ds\", $log", $msg->text_len, $msg->text_len
207+
end
208+
if ($newline)
209+
printf "\n"
210+
end
211+
if ($msg->dict_len > 0)
212+
set $dict = $log + $msg->text_len
213+
set $idx = 0
214+
set $line = 1
215+
while ($idx < $msg->dict_len)
216+
if ($line)
217+
printf " "
218+
set $line = 0
219+
end
220+
set $c = $dict[$idx]
221+
if ($c == '\0')
222+
printf "\n"
223+
set $line = 1
224+
else
225+
if ($c < ' ' || $c >= 127 || $c == '\\')
226+
printf "\\x%02x", $c
227+
else
228+
printf "%c", $c
229+
end
230+
end
231+
set $idx = $idx + 1
232+
end
233+
printf "\n"
234+
end
235+
end
236+
document dump_log_idx
237+
Dump a single log given its index in the log buffer. The first
238+
parameter is the index into log_buf, the second is optional and
239+
specified the previous log buffer's flags, used for properly
240+
formatting continued lines.
241+
end
177242

178-
while ($i < logged_chars)
179-
set $idx = (log_end - 1 - logged_chars + $i) & (log_buf_len - 1)
243+
define dmesg
244+
set $i = log_first_idx
245+
set $end_idx = log_first_idx
246+
set $prev_flags = 0
180247

181-
if ($idx + 100 <= $end_idx) || \
182-
($end_idx <= $idx && $idx + 100 < log_buf_len)
183-
printf "%.100s", &log_buf[$idx]
184-
set $i = $i + 100
248+
while (1)
249+
set $msg = ((struct printk_log *) (log_buf + $i))
250+
if ($msg->len == 0)
251+
set $i = 0
185252
else
186-
printf "%c", log_buf[$idx]
187-
set $i = $i + 1
253+
dump_log_idx $i $prev_flags
254+
set $i = $i + $msg->len
255+
set $prev_flags = $msg->flags
256+
end
257+
if ($i == $end_idx)
258+
loop_break
188259
end
189260
end
190261
end

Documentation/networking/dsa/dsa.txt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,6 @@ does not allocate any driver private context space.
369369
Switch configuration
370370
--------------------
371371

372-
- priv_size: additional size needed by the switch driver for its private context
373-
374372
- tag_protocol: this is to indicate what kind of tagging protocol is supported,
375373
should be a valid value from the dsa_tag_protocol enum
376374

@@ -416,11 +414,6 @@ PHY devices and link management
416414
to the switch port MDIO registers. If unavailable return a negative error
417415
code.
418416

419-
- poll_link: Function invoked by DSA to query the link state of the switch
420-
builtin Ethernet PHYs, per port. This function is responsible for calling
421-
netif_carrier_{on,off} when appropriate, and can be used to poll all ports in a
422-
single call. Executes from workqueue context.
423-
424417
- adjust_link: Function invoked by the PHY library when a slave network device
425418
is attached to a PHY device. This function is responsible for appropriately
426419
configuring the switch port link parameters: speed, duplex, pause based on
@@ -542,6 +535,16 @@ Bridge layer
542535
Bridge VLAN filtering
543536
---------------------
544537

538+
- port_vlan_filtering: bridge layer function invoked when the bridge gets
539+
configured for turning on or off VLAN filtering. If nothing specific needs to
540+
be done at the hardware level, this callback does not need to be implemented.
541+
When VLAN filtering is turned on, the hardware must be programmed with
542+
rejecting 802.1Q frames which have VLAN IDs outside of the programmed allowed
543+
VLAN ID map/rules. If there is no PVID programmed into the switch port,
544+
untagged frames must be rejected as well. When turned off the switch must
545+
accept any 802.1Q frames irrespective of their VLAN ID, and untagged frames are
546+
allowed.
547+
545548
- port_vlan_prepare: bridge layer function invoked when the bridge prepares the
546549
configuration of a VLAN on the given port. If the operation is not supported
547550
by the hardware, this function should return -EOPNOTSUPP to inform the bridge

Documentation/networking/ip-sysctl.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,15 +1036,17 @@ proxy_arp_pvlan - BOOLEAN
10361036

10371037
shared_media - BOOLEAN
10381038
Send(router) or accept(host) RFC1620 shared media redirects.
1039-
Overrides ip_secure_redirects.
1039+
Overrides secure_redirects.
10401040
shared_media for the interface will be enabled if at least one of
10411041
conf/{all,interface}/shared_media is set to TRUE,
10421042
it will be disabled otherwise
10431043
default TRUE
10441044

10451045
secure_redirects - BOOLEAN
1046-
Accept ICMP redirect messages only for gateways,
1047-
listed in default gateway list.
1046+
Accept ICMP redirect messages only to gateways listed in the
1047+
interface's current gateway list. Even if disabled, RFC1122 redirect
1048+
rules still apply.
1049+
Overridden by shared_media.
10481050
secure_redirects for the interface will be enabled if at least one of
10491051
conf/{all,interface}/secure_redirects is set to TRUE,
10501052
it will be disabled otherwise

0 commit comments

Comments
 (0)