Skip to content

Commit 457fa34

Browse files
committed
Merge tag 'char-misc-4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver updates from Greg KH: "Here is the big set of char and misc driver patches for 4.21-rc1. Lots of different types of driver things in here, as this tree seems to be the "collection of various driver subsystems not big enough to have their own git tree" lately. Anyway, some highlights of the changes in here: - binderfs: is it a rule that all driver subsystems will eventually grow to have their own filesystem? Binder now has one to handle the use of it in containerized systems. This was discussed at the Plumbers conference a few months ago and knocked into mergable shape very fast by Christian Brauner. Who also has signed up to be another binder maintainer, showing a distinct lack of good judgement :) - binder updates and fixes - mei driver updates - fpga driver updates and additions - thunderbolt driver updates - soundwire driver updates - extcon driver updates - nvmem driver updates - hyper-v driver updates - coresight driver updates - pvpanic driver additions and reworking for more device support - lp driver updates. Yes really, it's _finally_ moved to the proper parallal port driver model, something I never thought I would see happen. Good stuff. - other tiny driver updates and fixes. All of these have been in linux-next for a while with no reported issues" * tag 'char-misc-4.21-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (116 commits) MAINTAINERS: add another Android binder maintainer intel_th: msu: Fix an off-by-one in attribute store stm class: Add a reference to the SyS-T document stm class: Fix a module refcount leak in policy creation error path char: lp: use new parport device model char: lp: properly count the lp devices char: lp: use first unused lp number while registering char: lp: detach the device when parallel port is removed char: lp: introduce list to save port number bus: qcom: remove duplicated include from qcom-ebi2.c VMCI: Use memdup_user() rather than duplicating its implementation char/rtc: Use of_node_name_eq for node name comparisons misc: mic: fix a DMA pool free failure ptp: fix an IS_ERR() vs NULL check genwqe: Fix size check binder: implement binderfs binder: fix use-after-free due to ksys_close() during fdget() bus: fsl-mc: remove duplicated include files bus: fsl-mc: explicitly define the fsl_mc_command endianness misc: ti-st: make array read_ver_cmd static, shrinks object size ...
2 parents b07039b + fbc4904 commit 457fa34

123 files changed

Lines changed: 4973 additions & 917 deletions

File tree

Some content is hidden

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

‎Documentation/ABI/testing/sysfs-bus-thunderbolt‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ Description: Holds a comma separated list of device unique_ids that
2121
If a device is authorized automatically during boot its
2222
boot attribute is set to 1.
2323

24+
What: /sys/bus/thunderbolt/devices/.../domainX/iommu_dma_protection
25+
Date: Mar 2019
26+
KernelVersion: 4.21
27+
Contact: thunderbolt-software@lists.01.org
28+
Description: This attribute tells whether the system uses IOMMU
29+
for DMA protection. Value of 1 means IOMMU is used 0 means
30+
it is not (DMA protection is solely based on Thunderbolt
31+
security levels).
32+
2433
What: /sys/bus/thunderbolt/devices/.../domainX/security
2534
Date: Sep 2017
2635
KernelVersion: 4.13

‎Documentation/admin-guide/thunderbolt.rst‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,26 @@ If the user still wants to connect the device they can either approve
133133
the device without a key or write a new key and write 1 to the
134134
``authorized`` file to get the new key stored on the device NVM.
135135

136+
DMA protection utilizing IOMMU
137+
------------------------------
138+
Recent systems from 2018 and forward with Thunderbolt ports may natively
139+
support IOMMU. This means that Thunderbolt security is handled by an IOMMU
140+
so connected devices cannot access memory regions outside of what is
141+
allocated for them by drivers. When Linux is running on such system it
142+
automatically enables IOMMU if not enabled by the user already. These
143+
systems can be identified by reading ``1`` from
144+
``/sys/bus/thunderbolt/devices/domainX/iommu_dma_protection`` attribute.
145+
146+
The driver does not do anything special in this case but because DMA
147+
protection is handled by the IOMMU, security levels (if set) are
148+
redundant. For this reason some systems ship with security level set to
149+
``none``. Other systems have security level set to ``user`` in order to
150+
support downgrade to older OS, so users who want to automatically
151+
authorize devices when IOMMU DMA protection is enabled can use the
152+
following ``udev`` rule::
153+
154+
ACTION=="add", SUBSYSTEM=="thunderbolt", ATTRS{iommu_dma_protection}=="1", ATTR{authorized}=="0", ATTR{authorized}="1"
155+
136156
Upgrading NVM on Thunderbolt device or host
137157
-------------------------------------------
138158
Since most of the functionality is handled in firmware running on a
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
Intel Service Layer Driver for Stratix10 SoC
2+
============================================
3+
Intel Stratix10 SoC is composed of a 64 bit quad-core ARM Cortex A53 hard
4+
processor system (HPS) and Secure Device Manager (SDM). When the FPGA is
5+
configured from HPS, there needs to be a way for HPS to notify SDM the
6+
location and size of the configuration data. Then SDM will get the
7+
configuration data from that location and perform the FPGA configuration.
8+
9+
To meet the whole system security needs and support virtual machine requesting
10+
communication with SDM, only the secure world of software (EL3, Exception
11+
Layer 3) can interface with SDM. All software entities running on other
12+
exception layers must channel through the EL3 software whenever it needs
13+
service from SDM.
14+
15+
Intel Stratix10 service layer driver, running at privileged exception level
16+
(EL1, Exception Layer 1), interfaces with the service providers and provides
17+
the services for FPGA configuration, QSPI, Crypto and warm reset. Service layer
18+
driver also manages secure monitor call (SMC) to communicate with secure monitor
19+
code running in EL3.
20+
21+
Required properties:
22+
-------------------
23+
The svc node has the following mandatory properties, must be located under
24+
the firmware node.
25+
26+
- compatible: "intel,stratix10-svc"
27+
- method: smc or hvc
28+
smc - Secure Monitor Call
29+
hvc - Hypervisor Call
30+
- memory-region:
31+
phandle to the reserved memory node. See
32+
Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt
33+
for details
34+
35+
Example:
36+
-------
37+
38+
reserved-memory {
39+
#address-cells = <2>;
40+
#size-cells = <2>;
41+
ranges;
42+
43+
service_reserved: svcbuffer@0 {
44+
compatible = "shared-dma-pool";
45+
reg = <0x0 0x0 0x0 0x1000000>;
46+
alignment = <0x1000>;
47+
no-map;
48+
};
49+
};
50+
51+
firmware {
52+
svc {
53+
compatible = "intel,stratix10-svc";
54+
method = "smc";
55+
memory-region = <&service_reserved>;
56+
};
57+
};
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Intel Stratix10 SoC FPGA Manager
2+
3+
Required properties:
4+
The fpga_mgr node has the following mandatory property, must be located under
5+
firmware/svc node.
6+
7+
- compatible : should contain "intel,stratix10-soc-fpga-mgr"
8+
9+
Example:
10+
11+
firmware {
12+
svc {
13+
fpga_mgr: fpga-mgr {
14+
compatible = "intel,stratix10-soc-fpga-mgr";
15+
};
16+
};
17+
};
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
* QEMU PVPANIC MMIO Configuration bindings
2+
3+
QEMU's emulation / virtualization targets provide the following PVPANIC
4+
MMIO Configuration interface on the "virt" machine.
5+
type:
6+
7+
- a read-write, 16-bit wide data register.
8+
9+
QEMU exposes the data register to guests as memory mapped registers.
10+
11+
Required properties:
12+
13+
- compatible: "qemu,pvpanic-mmio".
14+
- reg: the MMIO region used by the device.
15+
* Bytes 0x0 Write panic event to the reg when guest OS panics.
16+
* Bytes 0x1 Reserved.
17+
18+
Example:
19+
20+
/ {
21+
#size-cells = <0x2>;
22+
#address-cells = <0x2>;
23+
24+
pvpanic-mmio@9060000 {
25+
compatible = "qemu,pvpanic-mmio";
26+
reg = <0x0 0x9060000 0x0 0x2>;
27+
};
28+
};
29+

‎Documentation/devicetree/bindings/nvmem/amlogic-efuse.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Required properties:
44
- compatible: should be "amlogic,meson-gxbb-efuse"
5+
- clocks: phandle to the efuse peripheral clock provided by the
6+
clock controller.
57

68
= Data cells =
79
Are child nodes of eFuse, bindings of which as described in
@@ -11,6 +13,7 @@ Example:
1113

1214
efuse: efuse {
1315
compatible = "amlogic,meson-gxbb-efuse";
16+
clocks = <&clkc CLKID_EFUSE>;
1417
#address-cells = <1>;
1518
#size-cells = <1>;
1619

‎Documentation/driver-api/firmware/other_interfaces.rst‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,33 @@ EDD Interfaces
1313
.. kernel-doc:: drivers/firmware/edd.c
1414
:internal:
1515

16+
Intel Stratix10 SoC Service Layer
17+
---------------------------------
18+
Some features of the Intel Stratix10 SoC require a level of privilege
19+
higher than the kernel is granted. Such secure features include
20+
FPGA programming. In terms of the ARMv8 architecture, the kernel runs
21+
at Exception Level 1 (EL1), access to the features requires
22+
Exception Level 3 (EL3).
23+
24+
The Intel Stratix10 SoC service layer provides an in kernel API for
25+
drivers to request access to the secure features. The requests are queued
26+
and processed one by one. ARM’s SMCCC is used to pass the execution
27+
of the requests on to a secure monitor (EL3).
28+
29+
.. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h
30+
:functions: stratix10_svc_command_code
31+
32+
.. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h
33+
:functions: stratix10_svc_client_msg
34+
35+
.. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h
36+
:functions: stratix10_svc_command_reconfig_payload
37+
38+
.. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h
39+
:functions: stratix10_svc_cb_data
40+
41+
.. kernel-doc:: include/linux/firmware/intel/stratix10-svc-client.h
42+
:functions: stratix10_svc_client
43+
44+
.. kernel-doc:: drivers/firmware/stratix10-svc.c
45+
:export:

‎Documentation/trace/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ Linux Tracing Technologies
2222
hwlat_detector
2323
intel_th
2424
stm
25+
sys-t

‎MAINTAINERS‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,7 @@ M: Arve Hjønnevåg <arve@android.com>
958958
M: Todd Kjos <tkjos@android.com>
959959
M: Martijn Coenen <maco@android.com>
960960
M: Joel Fernandes <joel@joelfernandes.org>
961+
M: Christian Brauner <christian@brauner.io>
961962
T: git git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
962963
L: devel@driverdev.osuosl.org
963964
S: Supported
@@ -1442,6 +1443,7 @@ F: arch/arm/mach-ep93xx/micro9.c
14421443

14431444
ARM/CORESIGHT FRAMEWORK AND DRIVERS
14441445
M: Mathieu Poirier <mathieu.poirier@linaro.org>
1446+
R: Suzuki K Poulose <suzuki.poulose@arm.com>
14451447
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
14461448
S: Maintained
14471449
F: drivers/hwtracing/coresight/*
@@ -16242,7 +16244,7 @@ F: drivers/vme/
1624216244
F: include/linux/vme*
1624316245

1624416246
VMWARE BALLOON DRIVER
16245-
M: Xavier Deguillard <xdeguillard@vmware.com>
16247+
M: Julien Freche <jfreche@vmware.com>
1624616248
M: Nadav Amit <namit@vmware.com>
1624716249
M: "VMware, Inc." <pv-drivers@vmware.com>
1624816250
L: linux-kernel@vger.kernel.org

‎arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@
2424
#address-cells = <2>;
2525
#size-cells = <2>;
2626

27+
reserved-memory {
28+
#address-cells = <2>;
29+
#size-cells = <2>;
30+
ranges;
31+
32+
service_reserved: svcbuffer@0 {
33+
compatible = "shared-dma-pool";
34+
reg = <0x0 0x0 0x0 0x1000000>;
35+
alignment = <0x1000>;
36+
no-map;
37+
};
38+
};
39+
2740
cpus {
2841
#address-cells = <1>;
2942
#size-cells = <0>;
@@ -93,6 +106,14 @@
93106
interrupt-parent = <&intc>;
94107
ranges = <0 0 0 0xffffffff>;
95108

109+
base_fpga_region {
110+
#address-cells = <0x1>;
111+
#size-cells = <0x1>;
112+
113+
compatible = "fpga-region";
114+
fpga-mgr = <&fpga_mgr>;
115+
};
116+
96117
clkmgr: clock-controller@ffd10000 {
97118
compatible = "intel,stratix10-clkmgr";
98119
reg = <0xffd10000 0x1000>;
@@ -537,5 +558,17 @@
537558

538559
status = "disabled";
539560
};
561+
562+
firmware {
563+
svc {
564+
compatible = "intel,stratix10-svc";
565+
method = "smc";
566+
memory-region = <&service_reserved>;
567+
568+
fpga_mgr: fpga-mgr {
569+
compatible = "intel,stratix10-soc-fpga-mgr";
570+
};
571+
};
572+
};
540573
};
541574
};

0 commit comments

Comments
 (0)