Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20230303213413.3357431-3-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Fenghua Yu and committed by
Vinod Koul
12bbc2c2 9e410fe3

+20
+20
include/uapi/linux/idxd.h
··· 78 78 DSA_OPCODE_DIF_INS, 79 79 DSA_OPCODE_DIF_STRP, 80 80 DSA_OPCODE_DIF_UPDT, 81 + DSA_OPCODE_DIX_GEN = 0x17, 81 82 DSA_OPCODE_CFLUSH = 0x20, 82 83 }; 83 84 ··· 249 248 /* Fill */ 250 249 uint64_t pattern_upper; 251 250 251 + /* DIX generate */ 252 + struct { 253 + uint8_t dix_gen_res; 254 + uint8_t dest_dif_flags; 255 + uint8_t dif_flags; 256 + uint8_t dix_gen_res2[13]; 257 + uint32_t ref_tag_seed; 258 + uint16_t app_tag_mask; 259 + uint16_t app_tag_seed; 260 + }; 261 + 252 262 uint8_t op_specific[24]; 253 263 }; 254 264 } __attribute__((packed)); ··· 336 324 uint32_t dif_upd_dest_ref_tag; 337 325 uint16_t dif_upd_dest_app_tag_mask; 338 326 uint16_t dif_upd_dest_app_tag; 327 + }; 328 + 329 + /* DIX generate */ 330 + struct { 331 + uint64_t dix_gen_res; 332 + uint32_t dix_ref_tag; 333 + uint16_t dix_app_tag_mask; 334 + uint16_t dix_app_tag; 339 335 }; 340 336 341 337 uint8_t op_specific[16];