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 9e1b9e9..5da013c 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 5f2ab9c..a648525 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