History

dmaengine: idxd: Add descriptor definitions for DIX generate operation

The Data Integrity Extension (DIX) generate operation (0x17) computes the Data Integrity Field (DIF) on the source data and writes only the computed DIF for each source block to the PI destination address. Add descriptor definitions for this operation so that user can use DSA to accelerate DIX generate operation.

Fenghua Yu committed 3 years ago

Commit 12bbc2c1 parent 9e410fe1 file · +20 −0Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/idxd.h+20−0
@@ -78,6 +78,7 @@ enum dsa_opcode { · 77 unmodified lines
7878 DSA_OPCODE_DIF_INS,
7979 DSA_OPCODE_DIF_STRP,
8080 DSA_OPCODE_DIF_UPDT,
81+ DSA_OPCODE_DIX_GEN = 0x17,
8182 DSA_OPCODE_CFLUSH = 0x20,
8283 };
8384
@@ -248,6 +249,17 @@ struct dsa_hw_desc { · 164 unmodified lines
248249 /* Fill */
249250 uint64_t pattern_upper;
250251
252+ /* DIX generate */
253+ struct {
254+ uint8_t dix_gen_res;
255+ uint8_t dest_dif_flags;
256+ uint8_t dif_flags;
257+ uint8_t dix_gen_res2[13];
258+ uint32_t ref_tag_seed;
259+ uint16_t app_tag_mask;
260+ uint16_t app_tag_seed;
261+ };
262+
251263 uint8_t op_specific[24];
252264 };
253265 } __attribute__((packed));
@@ -326,6 +338,14 @@ struct dsa_completion_record { · 72 unmodified lines
326338 uint16_t dif_upd_dest_app_tag;
327339 };
328340
341+ /* DIX generate */
342+ struct {
343+ uint64_t dix_gen_res;
344+ uint32_t dix_ref_tag;
345+ uint16_t dix_app_tag_mask;
346+ uint16_t dix_app_tag;
347+ };
348+
329349 uint8_t op_specific[16];
330350 };
331351 } __attribute__((packed));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t