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
78 DSA_OPCODE_DIF_INS,78 DSA_OPCODE_DIF_INS,
79 DSA_OPCODE_DIF_STRP,79 DSA_OPCODE_DIF_STRP,
80 DSA_OPCODE_DIF_UPDT,80 DSA_OPCODE_DIF_UPDT,
81 DSA_OPCODE_DIX_GEN = 0x17,
81 DSA_OPCODE_CFLUSH = 0x20,82 DSA_OPCODE_CFLUSH = 0x20,
82};83};
83 84
@@ -248,6 +249,17 @@ struct dsa_hw_desc { · 164 unmodified lines
248 /* Fill */249 /* Fill */
249 uint64_t pattern_upper;250 uint64_t pattern_upper;
250 251
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
251 uint8_t op_specific[24];263 uint8_t op_specific[24];
252 };264 };
253} __attribute__((packed));265} __attribute__((packed));
@@ -326,6 +338,14 @@ struct dsa_completion_record { · 72 unmodified lines
326 uint16_t dif_upd_dest_app_tag;338 uint16_t dif_upd_dest_app_tag;
327 };339 };
328 340
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
329 uint8_t op_specific[16];349 uint8_t op_specific[16];
330 };350 };
331} __attribute__((packed));351} __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