Skip to content

Commit 302f756

Browse files
authored
Merge pull request #2 from rockchip-linux/release-4.4
sync upstream Rockchip
2 parents 1ffe69d + 4311650 commit 302f756

File tree

3,886 files changed

+1012630
-362963
lines changed

Some content is hidden

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

3,886 files changed

+1012630
-362963
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Module.symvers
4545
/boot.img
4646
/kernel.img
4747
/resource.img
48+
/zboot.img
4849
/tags
4950
/TAGS
5051
/linux

Documentation/ABI/testing/sysfs-devices-system-cpu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ What: /sys/devices/system/cpu/vulnerabilities
276276
/sys/devices/system/cpu/vulnerabilities/meltdown
277277
/sys/devices/system/cpu/vulnerabilities/spectre_v1
278278
/sys/devices/system/cpu/vulnerabilities/spectre_v2
279+
/sys/devices/system/cpu/vulnerabilities/spec_store_bypass
279280
Date: January 2018
280281
Contact: Linux kernel mailing list <[email protected]>
281282
Description: Information about CPU vulnerabilities

Documentation/ABI/testing/sysfs-fs-f2fs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ Date: February 2015
101101
Contact: "Jaegeuk Kim" <[email protected]>
102102
Description:
103103
Controls the trimming rate in batch mode.
104+
<deprecated>
104105

105106
What: /sys/fs/f2fs/<disk>/cp_interval
106107
Date: October 2015
@@ -192,3 +193,14 @@ Date: November 2017
192193
Contact: "Sheng Yong" <[email protected]>
193194
Description:
194195
Controls readahead inode block in readdir.
196+
197+
What: /sys/fs/f2fs/<disk>/extension_list
198+
Date: Feburary 2018
199+
Contact: "Chao Yu" <[email protected]>
200+
Description:
201+
Used to control configure extension list:
202+
- Query: cat /sys/fs/f2fs/<disk>/extension_list
203+
- Add: echo '[h/c]extension' > /sys/fs/f2fs/<disk>/extension_list
204+
- Del: echo '[h/c]!extension' > /sys/fs/f2fs/<disk>/extension_list
205+
- [h] means add/del hot file extension
206+
- [c] means add/del cold file extension

Documentation/Changes

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ o GNU C 3.2 # gcc --version
2525
o GNU make 3.80 # make --version
2626
o binutils 2.12 # ld -v
2727
o util-linux 2.10o # fdformat --version
28-
o module-init-tools 0.9.10 # depmod -V
28+
o kmod 13 # depmod -V
2929
o e2fsprogs 1.41.4 # e2fsck -V
3030
o jfsutils 1.1.3 # fsck.jfs -V
3131
o reiserfsprogs 3.6.3 # reiserfsck -V
@@ -132,12 +132,6 @@ is not build with CONFIG_KALLSYMS and you have no way to rebuild and
132132
reproduce the Oops with that option, then you can still decode that Oops
133133
with ksymoops.
134134

135-
Module-Init-Tools
136-
-----------------
137-
138-
A new module loader is now in the kernel that requires module-init-tools
139-
to use. It is backward compatible with the 2.4.x series kernels.
140-
141135
Mkinitrd
142136
--------
143137

@@ -319,14 +313,15 @@ Util-linux
319313
----------
320314
o <ftp://ftp.kernel.org/pub/linux/utils/util-linux/>
321315

316+
Kmod
317+
----
318+
o <https://www.kernel.org/pub/linux/utils/kernel/kmod/>
319+
o <https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git>
320+
322321
Ksymoops
323322
--------
324323
o <ftp://ftp.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4/>
325324

326-
Module-Init-Tools
327-
-----------------
328-
o <ftp://ftp.kernel.org/pub/linux/kernel/people/rusty/modules/>
329-
330325
Mkinitrd
331326
--------
332327
o <https://code.launchpad.net/initrd-tools/main>

Documentation/device-mapper/thin-provisioning.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,11 @@ $low_water_mark is expressed in blocks of size $data_block_size. If
112112
free space on the data device drops below this level then a dm event
113113
will be triggered which a userspace daemon should catch allowing it to
114114
extend the pool device. Only one such event will be sent.
115-
Resuming a device with a new table itself triggers an event so the
116-
userspace daemon can use this to detect a situation where a new table
117-
already exceeds the threshold.
115+
116+
No special event is triggered if a just resumed device's free space is below
117+
the low water mark. However, resuming a device always triggers an
118+
event; a userspace daemon should verify that free space exceeds the low
119+
water mark when handling this event.
118120

119121
A low water mark for the metadata device is maintained in the kernel and
120122
will trigger a dm event if free space on the metadata device drops below

Documentation/device-mapper/verity.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,17 @@ fec_start <offset>
109109
This is the offset, in <data_block_size> blocks, from the start of the
110110
FEC device to the beginning of the encoding data.
111111

112+
check_at_most_once
113+
Verify data blocks only the first time they are read from the data device,
114+
rather than every time. This reduces the overhead of dm-verity so that it
115+
can be used on systems that are memory and/or CPU constrained. However, it
116+
provides a reduced level of security because only offline tampering of the
117+
data device's content will be detected, not online tampering.
118+
119+
Hash blocks are still verified each time they are read from the hash device,
120+
since verification of hash blocks is less performance critical than data
121+
blocks, and a hash block will not be verified any more after all the data
122+
blocks it covers have been verified anyway.
112123

113124
Theory of operation
114125
===================

Documentation/devicetree/bindings/arm/mali-midgard.txt

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# (C) COPYRIGHT 2013-2015 ARM Limited. All rights reserved.
2+
# (C) COPYRIGHT 2013-2017 ARM Limited. All rights reserved.
33
#
44
# This program is free software and is provided to you under the terms of the
55
# GNU General Public License version 2 as published by the Free Software
@@ -33,8 +33,6 @@ Optional:
3333
Documentation/devicetree/bindings/regulator/regulator.txt for details.
3434
- operating-points : Refer to Documentation/devicetree/bindings/power/opp.txt
3535
for details.
36-
- snoop_enable_smc : SMC function ID to enable CCI snooping on the GPU port(s).
37-
- snoop_disable_smc : SMC function ID to disable CCI snooping on the GPU port(s).
3836
- jm_config : For T860/T880. Sets job manager configuration. An array containing:
3937
- 1 to override the TIMESTAMP value, 0 otherwise.
4038
- 1 to override clock gate, forcing them to be always on, 0 otherwise.
@@ -45,19 +43,27 @@ for details.
4543
- power_model : Sets power model parameters. Note that this model was designed for the Juno
4644
platform, and may not be suitable for other platforms. A structure containing :
4745
- compatible: Should be arm,mali-simple-power-model
48-
- voltage: Voltage at reference point. Specified in mV.
49-
- frequency: Frequency at reference point. Specified in MHz.
50-
- dynamic-power: Dynamic power at reference frequency and voltage. Specified in mW.
51-
- static-power: Static power at reference frequency. Specified in mW.
52-
- ts: An array containing coefficients for the temperature scaling factor.
53-
Used as : tsf = ts[3]*T^3 + ts[2]*T^2 + ts[1]*T + ts[0], where T = temperature
46+
- dynamic-coefficient: Coefficient, in pW/(Hz V^2), which is multiplied
47+
by v^2*f to calculate the dynamic power consumption.
48+
- static-coefficient: Coefficient, in uW/V^3, which is multiplied by
49+
v^3 to calculate the static power consumption.
50+
- ts: An array containing coefficients for the temperature scaling
51+
factor. This is used to scale the static power by a factor of
52+
tsf/1000000, where tsf = ts[3]*T^3 + ts[2]*T^2 + ts[1]*T + ts[0],
53+
and T = temperature in degrees.
5454
- thermal-zone: A string identifying the thermal zone used for the GPU
5555
- system-coherency : Sets the coherency protocol to be used for coherent
5656
accesses made from the GPU.
5757
If not set then no coherency is used.
5858
- 0 : ACE-Lite
5959
- 1 : ACE
6060
- 31 : No coherency
61+
- ipa-model : Sets the IPA model to be used for power management. GPU probe will fail if the
62+
model is not found in the registered models list. If no model is specified here,
63+
a gpu-id based model is picked if available, otherwise the default model is used.
64+
- mali-simple-power-model: Default model used on mali
65+
- protected-mode-switcher : Phandle to device implemented protected mode switching functionality.
66+
Refer to Documentation/devicetree/bindings/arm/smc-protected-mode-switcher.txt for one implementation.
6167

6268
Example for a Mali-T602:
6369

@@ -82,10 +88,8 @@ gpu@0xfc010000 {
8288
>;
8389
power_model {
8490
compatible = "arm,mali-simple-power-model";
85-
voltage = <800>;
86-
frequency = <500>;
87-
static-power = <500>;
88-
dynamic-power = <1500>;
91+
static-coefficient = <2427750>;
92+
dynamic-coefficient = <4687>;
8993
ts = <20000 2000 (-20) 2>;
9094
thermal-zone = "gpu";
9195
};

Documentation/devicetree/bindings/arm/rockchip.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,17 +115,33 @@ Rockchip platforms device tree bindings
115115
Required root node properties:
116116
- compatible = "rockchip,rk3399-evb", "rockchip,rk3399";
117117

118+
- Rockchip RK3399 Rock960 version ab board:
119+
Required root node properties:
120+
- compatible = "rockchip,rock960", "rockchip,rk3399";
121+
118122
- Rockchip RK3326 f863 board:
119123
Required root node properties:
120124
- compatible = "rockchip,rk3326-863-lp3-v10", "rockchip,rk3326";
121125

126+
- Rockchip RK3326 f863 avb board:
127+
Required root node properties:
128+
- compatible = "rockchip,rk3326-863-lp3-v10-avb", "rockchip,rk3326";
129+
130+
- Rockchip RK3326 86v board:
131+
Required root node properties:
132+
- compatible = "rockchip,rk3326-86v-v10", "rockchip,rk3326";
133+
122134
- Rockchip RK3326 evb board:
123135
Required root node properties:
124136
- compatible = "rockchip,rk3326-evb-lp3-v10", "rockchip,rk3326";
137+
Or
138+
- compatible = "rockchip,rk3326-evb-lp3-v10-linux", "rockchip,rk3326";
125139

126140
- Rockchip PX30 evb ddr3 board:
127141
Required root node properties:
128142
- compatible = "rockchip,px30-evb-ddr3-v10", "rockchip,px30";
143+
Or
144+
- compatible = "rockchip,px30-evb-ddr3-v10-linux", "rockchip,px30";
129145

130146
- Rockchip PX30 evb ddr4 board:
131147
Required root node properties:

Documentation/devicetree/bindings/cpufreq/cpufreq-rockchip.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ In 'operating-points-v2' table:
4949
current temperature is above reference temperature.
5050
- rockchip,pvtm-thermal-zone: A thermal zone node containing thermal sensor,
5151
it's used to get the current temperature.
52+
- rockchip,thermal-zone: A thermal zone node containing thermal sensor,
53+
it's used to get the current temperature.
5254

5355
- nvmem-cells: A phandle to cpu_leakage data provided by a nvmem device.
5456
- nvmem-cell-names: Should be "cpu_leakage"
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Rockchip Electronics And Security Accelerator
2+
3+
Required properties:
4+
- compatible: Should be "rockchip,rk3288-crypto"
5+
- reg: Base physical address of the engine and length of memory mapped
6+
region
7+
- interrupts: Interrupt number
8+
- clocks: Reference to the clocks about crypto
9+
- clock-names: "aclk" used to clock data
10+
"hclk" used to clock data
11+
"sclk" used to clock crypto accelerator
12+
"apb_pclk" used to clock dma
13+
- resets: Must contain an entry for each entry in reset-names.
14+
See ../reset/reset.txt for details.
15+
- reset-names: Must include the name "crypto-rst".
16+
17+
Examples:
18+
19+
crypto: cypto-controller@ff8a0000 {
20+
compatible = "rockchip,rk3288-crypto";
21+
reg = <0xff8a0000 0x4000>;
22+
interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
23+
clocks = <&cru ACLK_CRYPTO>, <&cru HCLK_CRYPTO>,
24+
<&cru SCLK_CRYPTO>, <&cru ACLK_DMAC1>;
25+
clock-names = "aclk", "hclk", "sclk", "apb_pclk";
26+
resets = <&cru SRST_CRYPTO>;
27+
reset-names = "crypto-rst";
28+
status = "okay";
29+
};

0 commit comments

Comments
 (0)