History

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.

Fenghua Yu committed 3 years ago

Commit 9e410fe1 parent 376c2c91 file · +4 −0Browse files

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

Unified · Split

include/uapi/linux/idxd.h+4−0
@@ -180,6 +180,7 @@ struct dsa_hw_desc { · 179 unmodified lines
180 uint64_t rdback_addr;180 uint64_t rdback_addr;
181 uint64_t pattern;181 uint64_t pattern;
182 uint64_t desc_list_addr;182 uint64_t desc_list_addr;
183 uint64_t pattern_lower;
183 };184 };
184 union {185 union {
185 uint64_t dst_addr;186 uint64_t dst_addr;
@@ -244,6 +245,9 @@ struct dsa_hw_desc { · 58 unmodified lines
244 uint16_t dest_app_tag_seed;245 uint16_t dest_app_tag_seed;
245 };246 };
246 247
248 /* Fill */
249 uint64_t pattern_upper;
250
247 uint8_t op_specific[24];251 uint8_t op_specific[24];
248 };252 };
249} __attribute__((packed));253} __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