drm/amdgpu: move VM related defines into amdgpu_vm.h
authorChristian König <christian.koenig@amd.com>
Thu, 30 Mar 2017 12:41:19 +0000 (14:41 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Apr 2017 03:33:50 +0000 (23:33 -0400)
Try to clean up amdgpu.h.

Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h

index a90b49a15335a908513ebdc486435cb55cdff2e9..46c22e7df99db1160bc1b6e68d196168a644c9e5 100644 (file)
@@ -122,14 +122,6 @@ extern int amdgpu_param_buf_per_se;
 /* max number of IP instances */
 #define AMDGPU_MAX_SDMA_INSTANCES              2
 
-/* max number of VMHUB */
-#define AMDGPU_MAX_VMHUBS                      2
-#define AMDGPU_GFXHUB                          0
-#define AMDGPU_MMHUB                           1
-
-/* hardcode that limit for now */
-#define AMDGPU_VA_RESERVED_SIZE                        (8 << 20)
-
 /* hard reset data */
 #define AMDGPU_ASIC_RESET_DATA                  0x39d5e86b
 
index fbe17bf73a00028baddaab3f6be6f01a4a974d90..2c2996c161f142a6e76dd3a22c42639105f3f075 100644 (file)
@@ -76,6 +76,14 @@ struct amdgpu_bo_list_entry;
 #define AMDGPU_VM_FAULT_STOP_FIRST     1
 #define AMDGPU_VM_FAULT_STOP_ALWAYS    2
 
+/* max number of VMHUB */
+#define AMDGPU_MAX_VMHUBS                      2
+#define AMDGPU_GFXHUB                          0
+#define AMDGPU_MMHUB                           1
+
+/* hardcode that limit for now */
+#define AMDGPU_VA_RESERVED_SIZE                        (8 << 20)
+
 struct amdgpu_vm_pt {
        struct amdgpu_bo        *bo;
        uint64_t                addr;