Skip to content

Commit 44a8c96

Browse files
committed
Merge tag 'v6.17-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto update from Herbert Xu: "API: - Allow hash drivers without fallbacks (e.g., hardware key) Algorithms: - Add hmac hardware key support (phmac) on s390 - Re-enable sha384 in FIPS mode - Disable sha1 in FIPS mode - Convert zstd to acomp Drivers: - Lower priority of qat skcipher and aead - Convert aspeed to partial block API - Add iMX8QXP support in caam - Add rate limiting support for GEN6 devices in qat - Enable telemetry for GEN6 devices in qat - Implement full backlog mode for hisilicon/sec2" * tag 'v6.17-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (116 commits) crypto: keembay - Use min() to simplify ocs_create_linked_list_from_sg() crypto: hisilicon/hpre - fix dma unmap sequence crypto: qat - make adf_dev_autoreset() static crypto: ccp - reduce stack usage in ccp_run_aes_gcm_cmd crypto: qat - refactor ring-related debug functions crypto: qat - fix seq_file position update in adf_ring_next() crypto: qat - fix DMA direction for compression on GEN2 devices crypto: jitter - replace ARRAY_SIZE definition with header include crypto: engine - remove {prepare,unprepare}_crypt_hardware callbacks crypto: engine - remove request batching support crypto: qat - flush misc workqueue during device shutdown crypto: qat - enable rate limiting feature for GEN6 devices crypto: qat - add compression slice count for rate limiting crypto: qat - add get_svc_slice_cnt() in device data structure crypto: qat - add adf_rl_get_num_svc_aes() in rate limiting crypto: qat - relocate service related functions crypto: qat - consolidate service enums crypto: qat - add decompression service for rate limiting crypto: qat - validate service in rate limiting sysfs api crypto: hisilicon/sec2 - implement full backlog mode for sec ...
2 parents b4efd62 + bf24d64 commit 44a8c96

File tree

150 files changed

+4088
-2044
lines changed

Some content is hidden

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

150 files changed

+4088
-2044
lines changed

Documentation/ABI/testing/debugfs-driver-qat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Contact: [email protected]
6767
Description: (RO) Read returns power management information specific to the
6868
QAT device.
6969

70-
This attribute is only available for qat_4xxx devices.
70+
This attribute is only available for qat_4xxx and qat_6xxx devices.
7171

7272
What: /sys/kernel/debug/qat_<device>_<BDF>/cnv_errors
7373
Date: January 2024

Documentation/ABI/testing/debugfs-driver-qat_telemetry

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Description: (RW) Enables/disables the reporting of telemetry metrics.
3232

3333
echo 0 > /sys/kernel/debug/qat_4xxx_0000:6b:00.0/telemetry/control
3434

35-
This attribute is only available for qat_4xxx devices.
35+
This attribute is only available for qat_4xxx and qat_6xxx devices.
3636

3737
What: /sys/kernel/debug/qat_<device>_<BDF>/telemetry/device_data
3838
Date: March 2024
@@ -67,6 +67,10 @@ Description: (RO) Reports device telemetry counters.
6767
exec_xlt<N> execution count of Translator slice N
6868
util_dcpr<N> utilization of Decompression slice N [%]
6969
exec_dcpr<N> execution count of Decompression slice N
70+
util_cnv<N> utilization of Compression and verify slice N [%]
71+
exec_cnv<N> execution count of Compression and verify slice N
72+
util_dcprz<N> utilization of Decompression slice N [%]
73+
exec_dcprz<N> execution count of Decompression slice N
7074
util_pke<N> utilization of PKE N [%]
7175
exec_pke<N> execution count of PKE N
7276
util_ucs<N> utilization of UCS slice N [%]
@@ -100,7 +104,7 @@ Description: (RO) Reports device telemetry counters.
100104
If a device lacks of a specific accelerator, the corresponding
101105
attribute is not reported.
102106

103-
This attribute is only available for qat_4xxx devices.
107+
This attribute is only available for qat_4xxx and qat_6xxx devices.
104108

105109
What: /sys/kernel/debug/qat_<device>_<BDF>/telemetry/rp_<A/B/C/D>_data
106110
Date: March 2024
@@ -225,4 +229,4 @@ Description: (RW) Selects up to 4 Ring Pairs (RP) to monitor, one per file,
225229
``rp2srv`` from sysfs.
226230
See Documentation/ABI/testing/sysfs-driver-qat for details.
227231

228-
This attribute is only available for qat_4xxx devices.
232+
This attribute is only available for qat_4xxx and qat_6xxx devices.

Documentation/ABI/testing/sysfs-driver-qat

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Description: (RW) Reports the current state of the QAT device. Write to
1414
It is possible to transition the device from up to down only
1515
if the device is up and vice versa.
1616

17-
This attribute is only available for qat_4xxx devices.
17+
This attribute is available for qat_4xxx and qat_6xxx devices.
1818

1919
What: /sys/bus/pci/devices/<BDF>/qat/cfg_services
2020
Date: June 2022
@@ -23,24 +23,28 @@ Contact: [email protected]
2323
Description: (RW) Reports the current configuration of the QAT device.
2424
Write to the file to change the configured services.
2525

26-
The values are:
27-
28-
* sym;asym: the device is configured for running crypto
29-
services
30-
* asym;sym: identical to sym;asym
31-
* dc: the device is configured for running compression services
32-
* dcc: identical to dc but enables the dc chaining feature,
33-
hash then compression. If this is not required chose dc
34-
* sym: the device is configured for running symmetric crypto
35-
services
36-
* asym: the device is configured for running asymmetric crypto
37-
services
38-
* asym;dc: the device is configured for running asymmetric
39-
crypto services and compression services
40-
* dc;asym: identical to asym;dc
41-
* sym;dc: the device is configured for running symmetric crypto
42-
services and compression services
43-
* dc;sym: identical to sym;dc
26+
One or more services can be enabled per device.
27+
Certain configurations are restricted to specific device types;
28+
where applicable this is explicitly indicated, for example
29+
(qat_6xxx) denotes applicability exclusively to that device series.
30+
31+
The available services include:
32+
33+
* sym: Configures the device for symmetric cryptographic operations.
34+
* asym: Configures the device for asymmetric cryptographic operations.
35+
* dc: Configures the device for compression and decompression
36+
operations.
37+
* dcc: Similar to dc, but with the additional dc chaining feature
38+
enabled, cipher then compress (qat_6xxx), hash then compression.
39+
If this is not required choose dc.
40+
* decomp: Configures the device for decompression operations (qat_6xxx).
41+
42+
Service combinations are permitted for all services except dcc.
43+
On QAT GEN4 devices (qat_4xxx driver) a maximum of two services can be
44+
combined and on QAT GEN6 devices (qat_6xxx driver ) a maximum of three
45+
services can be combined.
46+
The order of services is not significant. For instance, sym;asym is
47+
functionally equivalent to asym;sym.
4448

4549
It is possible to set the configuration only if the device
4650
is in the `down` state (see /sys/bus/pci/devices/<BDF>/qat/state)
@@ -59,7 +63,7 @@ Description: (RW) Reports the current configuration of the QAT device.
5963
# cat /sys/bus/pci/devices/<BDF>/qat/cfg_services
6064
dc
6165

62-
This attribute is only available for qat_4xxx devices.
66+
This attribute is available for qat_4xxx and qat_6xxx devices.
6367

6468
What: /sys/bus/pci/devices/<BDF>/qat/pm_idle_enabled
6569
Date: June 2023
@@ -94,7 +98,7 @@ Description: (RW) This configuration option provides a way to force the device i
9498
# cat /sys/bus/pci/devices/<BDF>/qat/pm_idle_enabled
9599
0
96100

97-
This attribute is only available for qat_4xxx devices.
101+
This attribute is available for qat_4xxx and qat_6xxx devices.
98102

99103
What: /sys/bus/pci/devices/<BDF>/qat/rp2srv
100104
Date: January 2024
@@ -126,7 +130,7 @@ Description:
126130
# cat /sys/bus/pci/devices/<BDF>/qat/rp2srv
127131
sym
128132

129-
This attribute is only available for qat_4xxx devices.
133+
This attribute is available for qat_4xxx and qat_6xxx devices.
130134

131135
What: /sys/bus/pci/devices/<BDF>/qat/num_rps
132136
Date: January 2024
@@ -140,7 +144,7 @@ Description:
140144
# cat /sys/bus/pci/devices/<BDF>/qat/num_rps
141145
64
142146

143-
This attribute is only available for qat_4xxx devices.
147+
This attribute is available for qat_4xxx and qat_6xxx devices.
144148

145149
What: /sys/bus/pci/devices/<BDF>/qat/auto_reset
146150
Date: May 2024
@@ -160,4 +164,4 @@ Description: (RW) Reports the current state of the autoreset feature
160164
* 0/Nn/off: auto reset disabled. If the device encounters an
161165
unrecoverable error, it will not be reset.
162166

163-
This attribute is only available for qat_4xxx devices.
167+
This attribute is available for qat_4xxx and qat_6xxx devices.

Documentation/ABI/testing/sysfs-driver-qat_rl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Description:
3131
* rm_all: Removes all the configured SLAs.
3232
* Inputs: None
3333

34-
This attribute is only available for qat_4xxx devices.
34+
This attribute is only available for qat_4xxx and qat_6xxx devices.
3535

3636
What: /sys/bus/pci/devices/<BDF>/qat_rl/rp
3737
Date: January 2024
@@ -68,7 +68,7 @@ Description:
6868
## Write
6969
# echo 0x5 > /sys/bus/pci/devices/<BDF>/qat_rl/rp
7070

71-
This attribute is only available for qat_4xxx devices.
71+
This attribute is only available for qat_4xxx and qat_6xxx devices.
7272

7373
What: /sys/bus/pci/devices/<BDF>/qat_rl/id
7474
Date: January 2024
@@ -101,7 +101,7 @@ Description:
101101
# cat /sys/bus/pci/devices/<BDF>/qat_rl/rp
102102
0x5 ## ring pair ID 0 and ring pair ID 2
103103

104-
This attribute is only available for qat_4xxx devices.
104+
This attribute is only available for qat_4xxx and qat_6xxx devices.
105105

106106
What: /sys/bus/pci/devices/<BDF>/qat_rl/cir
107107
Date: January 2024
@@ -135,7 +135,7 @@ Description:
135135
# cat /sys/bus/pci/devices/<BDF>/qat_rl/cir
136136
500
137137

138-
This attribute is only available for qat_4xxx devices.
138+
This attribute is only available for qat_4xxx and qat_6xxx devices.
139139

140140
What: /sys/bus/pci/devices/<BDF>/qat_rl/pir
141141
Date: January 2024
@@ -169,7 +169,7 @@ Description:
169169
# cat /sys/bus/pci/devices/<BDF>/qat_rl/pir
170170
750
171171

172-
This attribute is only available for qat_4xxx devices.
172+
This attribute is only available for qat_4xxx and qat_6xxx devices.
173173

174174
What: /sys/bus/pci/devices/<BDF>/qat_rl/srv
175175
Date: January 2024
@@ -202,7 +202,7 @@ Description:
202202
# cat /sys/bus/pci/devices/<BDF>/qat_rl/srv
203203
dc
204204

205-
This attribute is only available for qat_4xxx devices.
205+
This attribute is only available for qat_4xxx and qat_6xxx devices.
206206

207207
What: /sys/bus/pci/devices/<BDF>/qat_rl/cap_rem
208208
Date: January 2024
@@ -223,4 +223,4 @@ Description:
223223
# cat /sys/bus/pci/devices/<BDF>/qat_rl/cap_rem
224224
0
225225

226-
This attribute is only available for qat_4xxx devices.
226+
This attribute is only available for qat_4xxx and qat_6xxx devices.

Documentation/crypto/crypto_engine.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ engine using ``crypto_engine_stop()`` and destroy the engine with
3636
Before transferring any request, you have to fill the context enginectx by
3737
providing functions for the following:
3838

39-
* ``prepare_crypt_hardware``: Called once before any prepare functions are
40-
called.
41-
42-
* ``unprepare_crypt_hardware``: Called once after all unprepare functions have
43-
been called.
44-
4539
* ``prepare_cipher_request``/``prepare_hash_request``: Called before each
4640
corresponding request is performed. If some processing or other preparatory
4741
work is required, do it here.

Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-aes.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ properties:
1515
oneOf:
1616
- const: atmel,at91sam9g46-aes
1717
- items:
18-
- const: microchip,sam9x7-aes
18+
- enum:
19+
- microchip,sam9x7-aes
20+
- microchip,sama7d65-aes
1921
- const: atmel,at91sam9g46-aes
2022

2123
reg:

Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-sha.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ properties:
1515
oneOf:
1616
- const: atmel,at91sam9g46-sha
1717
- items:
18-
- const: microchip,sam9x7-sha
18+
- enum:
19+
- microchip,sam9x7-sha
20+
- microchip,sama7d65-sha
1921
- const: atmel,at91sam9g46-sha
2022

2123
reg:

Documentation/devicetree/bindings/crypto/atmel,at91sam9g46-tdes.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ properties:
1515
oneOf:
1616
- const: atmel,at91sam9g46-tdes
1717
- items:
18-
- const: microchip,sam9x7-tdes
18+
- enum:
19+
- microchip,sam9x7-tdes
20+
- microchip,sama7d65-tdes
1921
- const: atmel,at91sam9g46-tdes
2022

2123
reg:

Documentation/devicetree/bindings/crypto/fsl,sec-v4.0.yaml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ properties:
4646
- items:
4747
- enum:
4848
- fsl,imx6ul-caam
49+
- fsl,imx8qm-caam
50+
- fsl,imx8qxp-caam
4951
- fsl,sec-v5.0
5052
- const: fsl,sec-v4.0
5153
- const: fsl,sec-v4.0
@@ -77,6 +79,9 @@ properties:
7779
interrupts:
7880
maxItems: 1
7981

82+
power-domains:
83+
maxItems: 1
84+
8085
fsl,sec-era:
8186
description: Defines the 'ERA' of the SEC device.
8287
$ref: /schemas/types.yaml#/definitions/uint32
@@ -106,7 +111,10 @@ patternProperties:
106111
- const: fsl,sec-v5.0-job-ring
107112
- const: fsl,sec-v4.0-job-ring
108113
- items:
109-
- const: fsl,sec-v5.0-job-ring
114+
- enum:
115+
- fsl,imx8qm-job-ring
116+
- fsl,imx8qxp-job-ring
117+
- fsl,sec-v5.0-job-ring
110118
- const: fsl,sec-v4.0-job-ring
111119
- const: fsl,sec-v4.0-job-ring
112120

@@ -116,6 +124,9 @@ patternProperties:
116124
interrupts:
117125
maxItems: 1
118126

127+
power-domains:
128+
maxItems: 1
129+
119130
fsl,liodn:
120131
description:
121132
Specifies the LIODN to be used in conjunction with the ppid-to-liodn
@@ -125,6 +136,20 @@ patternProperties:
125136
$ref: /schemas/types.yaml#/definitions/uint32-array
126137
items:
127138
- maximum: 0xfff
139+
allOf:
140+
- if:
141+
properties:
142+
compatible:
143+
contains:
144+
enum:
145+
- fsl,imx8qm-job-ring
146+
- fsl,imx8qxp-job-ring
147+
then:
148+
required:
149+
- power-domains
150+
else:
151+
properties:
152+
power-domains: false
128153

129154
'^rtic@[0-9a-f]+$':
130155
type: object
@@ -212,6 +237,20 @@ required:
212237
- reg
213238
- ranges
214239

240+
if:
241+
properties:
242+
compatible:
243+
contains:
244+
enum:
245+
- fsl,imx8qm-caam
246+
- fsl,imx8qxp-caam
247+
then:
248+
required:
249+
- power-domains
250+
else:
251+
properties:
252+
power-domains: false
253+
215254
additionalProperties: false
216255

217256
examples:

Documentation/devicetree/bindings/crypto/omap-aes.txt

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)