drm/amdgpu: add count field for the SDMA NOP packet v2
This is added to support the burst NOP v2: squash the typo fix Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
a60c42320b
commit
4207a734c3
|
@ -487,6 +487,7 @@
|
|||
(((op) & 0xFF) << 0))
|
||||
/* sDMA opcodes */
|
||||
#define SDMA_OPCODE_NOP 0
|
||||
# define SDMA_NOP_COUNT(x) (((x) & 0x3FFF) << 16)
|
||||
#define SDMA_OPCODE_COPY 1
|
||||
# define SDMA_COPY_SUB_OPCODE_LINEAR 0
|
||||
# define SDMA_COPY_SUB_OPCODE_TILED 1
|
||||
|
|
|
@ -2163,5 +2163,10 @@
|
|||
#define SDMA_PKT_NOP_HEADER_sub_op_shift 8
|
||||
#define SDMA_PKT_NOP_HEADER_SUB_OP(x) (((x) & SDMA_PKT_NOP_HEADER_sub_op_mask) << SDMA_PKT_NOP_HEADER_sub_op_shift)
|
||||
|
||||
/*define for count field*/
|
||||
#define SDMA_PKT_NOP_HEADER_count_offset 0
|
||||
#define SDMA_PKT_NOP_HEADER_count_mask 0x00003FFF
|
||||
#define SDMA_PKT_NOP_HEADER_count_shift 16
|
||||
#define SDMA_PKT_NOP_HEADER_COUNT(x) (((x) & SDMA_PKT_NOP_HEADER_count_mask) << SDMA_PKT_NOP_HEADER_count_shift)
|
||||
|
||||
#endif /* __ICELAND_SDMA_PKT_OPEN_H_ */
|
||||
|
|
|
@ -2236,5 +2236,10 @@
|
|||
#define SDMA_PKT_NOP_HEADER_sub_op_shift 8
|
||||
#define SDMA_PKT_NOP_HEADER_SUB_OP(x) (((x) & SDMA_PKT_NOP_HEADER_sub_op_mask) << SDMA_PKT_NOP_HEADER_sub_op_shift)
|
||||
|
||||
/*define for count field*/
|
||||
#define SDMA_PKT_NOP_HEADER_count_offset 0
|
||||
#define SDMA_PKT_NOP_HEADER_count_mask 0x00003FFF
|
||||
#define SDMA_PKT_NOP_HEADER_count_shift 16
|
||||
#define SDMA_PKT_NOP_HEADER_COUNT(x) (((x) & SDMA_PKT_NOP_HEADER_count_mask) << SDMA_PKT_NOP_HEADER_count_shift)
|
||||
|
||||
#endif /* __TONGA_SDMA_PKT_OPEN_H_ */
|
||||
|
|
Loading…
Reference in New Issue