drm/amdgpu:new PM4 entry for VI/AI
authorMonk Liu <Monk.Liu@amd.com>
Mon, 1 May 2017 09:23:44 +0000 (17:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:26 +0000 (17:40 -0400)
TMZ package will be used for VULKAN/CHAINED-IB MCBP

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc15d.h
drivers/gpu/drm/amd/amdgpu/vid.h

index 9e1b9e9f1f875c63ff7a964805af1790690466bf..5da013ce2533b89209027ae09829c7dbf4f4c8a4 100644 (file)
 #define        PACKET3_WAIT_ON_CE_COUNTER                      0x86
 #define        PACKET3_WAIT_ON_DE_COUNTER_DIFF                 0x88
 #define        PACKET3_SWITCH_BUFFER                           0x8B
+#define PACKET3_FRAME_CONTROL                          0x90
+#                      define FRAME_CMD(x) ((x) << 28)
+                       /*
+                        * x=0: tmz_begin
+                        * x=1: tmz_end
+                        */
+
 #define PACKET3_SET_RESOURCES                          0xA0
 /* 1. header
  * 2. CONTROL
index 5f2ab9c1609a3a6d44fa1d63f6a33aef0b304066..a6485254a169444940a3d356a92dea50e59d4fce 100644 (file)
 #define        PACKET3_WAIT_ON_CE_COUNTER                      0x86
 #define        PACKET3_WAIT_ON_DE_COUNTER_DIFF                 0x88
 #define        PACKET3_SWITCH_BUFFER                           0x8B
+#define PACKET3_FRAME_CONTROL                          0x90
+#                      define FRAME_CMD(x) ((x) << 28)
+                       /*
+                        * x=0: tmz_begin
+                        * x=1: tmz_end
+                        */
 #define        PACKET3_SET_RESOURCES                           0xA0
 /* 1. header
  * 2. CONTROL