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 16 bytes of pattern in memory fill operation

The memory fill operation (0x04) can fill in memory with either 8 bytes
or 16 bytes of pattern. To fill in memory with 16 bytes of pattern, the
first 8 bytes are provided in pattern lower in bytes 16-23 and the next
8 bytes are in pattern upper in bytes 40-47 in the descriptor. Currently
only 8 bytes of pattern is enabled.

Add descriptor definitions for pattern lower and pattern upper so that
user can use 16 bytes of pattern to fill memory.

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-2-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Fenghua Yu and committed by
Vinod Koul
9e410fe3 376c2c9b

+4
+4
include/uapi/linux/idxd.h
··· 180 180 uint64_t rdback_addr; 181 181 uint64_t pattern; 182 182 uint64_t desc_list_addr; 183 + uint64_t pattern_lower; 183 184 }; 184 185 union { 185 186 uint64_t dst_addr; ··· 244 243 uint16_t dest_app_tag_mask; 245 244 uint16_t dest_app_tag_seed; 246 245 }; 246 + 247 + /* Fill */ 248 + uint64_t pattern_upper; 247 249 248 250 uint8_t op_specific[24]; 249 251 };