95 lines · plain
1..2 **************************************************3 * *4 * Automatically generated file, do not edit! *5 * *6 **************************************************7 8.. _amdgpu_synid_gfx8_msg:9 10msg11===12 13A 16-bit message code. The bits of this operand have the following meaning:14 15 ============ =============================== ===============16 Bits Description Value Range17 ============ =============================== ===============18 3:0 Message *type*. 0..1519 6:4 Optional *operation*. 0..720 7:7 Unused. \-21 9:8 Optional *stream*. 0..322 15:10 Unused. \-23 ============ =============================== ===============24 25This operand may be specified as one of the following:26 27* An :ref:`integer_number<amdgpu_synid_integer_number>` or an :ref:`absolute_expression<amdgpu_synid_absolute_expression>`. The value must be in the range from 0 to 0xFFFF.28* A *sendmsg* value which is described below.29 30 ==================================== ====================================================31 Sendmsg Value Syntax Description32 ==================================== ====================================================33 sendmsg(<*type*>) A message identified by its *type*.34 sendmsg(<*type*>,<*op*>) A message identified by its *type* and *operation*.35 sendmsg(<*type*>,<*op*>,<*stream*>) A message identified by its *type* and *operation*36 with a stream *id*.37 ==================================== ====================================================38 39*Type* may be specified using message *name* or message *id*.40 41*Op* may be specified using operation *name* or operation *id*.42 43Stream *id* is an integer in the range from 0 to 3.44 45Numeric values may be specified as positive :ref:`integer numbers<amdgpu_synid_integer_number>`46or :ref:`absolute expressions<amdgpu_synid_absolute_expression>`.47 48Each message type supports specific operations:49 50 ====================== ========== ============================== ============ ==========51 Message name Message Id Supported Operations Operation Id Stream Id52 ====================== ========== ============================== ============ ==========53 MSG_INTERRUPT 1 \- \- \-54 MSG_GS 2 GS_OP_CUT 1 Optional55 \ GS_OP_EMIT 2 Optional56 \ GS_OP_EMIT_CUT 3 Optional57 MSG_GS_DONE 3 GS_OP_NOP 0 \-58 \ GS_OP_CUT 1 Optional59 \ GS_OP_EMIT 2 Optional60 \ GS_OP_EMIT_CUT 3 Optional61 MSG_SAVEWAVE 4 \- \- \-62 MSG_SYSMSG 15 SYSMSG_OP_ECC_ERR_INTERRUPT 1 \-63 \ SYSMSG_OP_REG_RD 2 \-64 \ SYSMSG_OP_HOST_TRAP_ACK 3 \-65 \ SYSMSG_OP_TTRACE_PC 4 \-66 ====================== ========== ============================== ============ ==========67 68*Sendmsg* arguments are validated depending on how *type* value is specified:69 70* If message *type* is specified by name, arguments values must satisfy limitations detailed in the table above.71* If message *type* is specified as a number, each argument must not exceed the corresponding value range (see the first table).72 73Examples:74 75.. parsed-literal::76 77 // numeric message code78 msg = 0x1079 s_sendmsg 0x1280 s_sendmsg msg + 281 82 // sendmsg with strict arguments validation83 s_sendmsg sendmsg(MSG_INTERRUPT)84 s_sendmsg sendmsg(MSG_GS, GS_OP_EMIT)85 s_sendmsg sendmsg(MSG_GS, 2)86 s_sendmsg sendmsg(MSG_GS_DONE, GS_OP_EMIT_CUT, 1)87 s_sendmsg sendmsg(MSG_SYSMSG, SYSMSG_OP_TTRACE_PC)88 89 // sendmsg with validation of value range only90 msg = 291 op = 392 stream = 193 s_sendmsg sendmsg(msg, op, stream)94 s_sendmsg sendmsg(2, GS_OP_CUT)95