diff options
author | Fenghua Yu <fenghua.yu@intel.com> | 2023-03-03 22:34:11 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-03-31 13:55:25 +0200 |
commit | 9e410fe3dc9a938bc47f71dff254be7419bd40d2 (patch) | |
tree | 5fbbe4b543ab8a5f51e164a827a0405cbcfcaef3 /include/uapi | |
parent | dmaengine: mv_xor_v2: Use some clk_ helper functions to simplify code (diff) | |
download | linux-9e410fe3dc9a938bc47f71dff254be7419bd40d2.tar.xz linux-9e410fe3dc9a938bc47f71dff254be7419bd40d2.zip |
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>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/idxd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/idxd.h b/include/uapi/linux/idxd.h index 1d553bedbdb5..c43d7df5fc15 100644 --- a/include/uapi/linux/idxd.h +++ b/include/uapi/linux/idxd.h @@ -180,6 +180,7 @@ struct dsa_hw_desc { uint64_t rdback_addr; uint64_t pattern; uint64_t desc_list_addr; + uint64_t pattern_lower; }; union { uint64_t dst_addr; @@ -244,6 +245,9 @@ struct dsa_hw_desc { uint16_t dest_app_tag_seed; }; + /* Fill */ + uint64_t pattern_upper; + uint8_t op_specific[24]; }; } __attribute__((packed)); |