drm/amdgpu: add num_level to the VM manager
authorChristian König <christian.koenig@amd.com>
Mon, 17 Oct 2016 13:08:10 +0000 (15:08 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:23 +0000 (23:55 -0400)
Needs to be filled with handling.

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_vm.h
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

index 69535d9..e56df94 100644 (file)
@@ -154,6 +154,7 @@ struct amdgpu_vm_manager {
        unsigned                                seqno[AMDGPU_MAX_RINGS];
 
        uint32_t                                max_pfn;
+       uint32_t                                num_level;
        /* vram base address for page table entry  */
        u64                                     vram_base_offset;
        /* is vm enabled? */
index 35f74c6..d958660 100644 (file)
@@ -621,6 +621,7 @@ static int gmc_v6_0_vm_init(struct amdgpu_device *adev)
         * amdkfd will use VMIDs 8-15
         */
        adev->vm_manager.num_ids = AMDGPU_NUM_OF_VMIDS;
+       adev->vm_manager.num_level = 1;
        amdgpu_vm_manager_init(adev);
 
        /* base offset of vram pages */
index dc9b6d6..0c0a601 100644 (file)
@@ -742,6 +742,7 @@ static int gmc_v7_0_vm_init(struct amdgpu_device *adev)
         * amdkfd will use VMIDs 8-15
         */
        adev->vm_manager.num_ids = AMDGPU_NUM_OF_VMIDS;
+       adev->vm_manager.num_level = 1;
        amdgpu_vm_manager_init(adev);
 
        /* base offset of vram pages */
index ead889a..d19d1c5 100644 (file)
@@ -945,6 +945,7 @@ static int gmc_v8_0_vm_init(struct amdgpu_device *adev)
         * amdkfd will use VMIDs 8-15
         */
        adev->vm_manager.num_ids = AMDGPU_NUM_OF_VMIDS;
+       adev->vm_manager.num_level = 1;
        amdgpu_vm_manager_init(adev);
 
        /* base offset of vram pages */
index 232c208..5b4eb7a 100644 (file)
@@ -500,6 +500,7 @@ static int gmc_v9_0_vm_init(struct amdgpu_device *adev)
         * amdkfd will use VMIDs 8-15
         */
        adev->vm_manager.num_ids = AMDGPU_NUM_OF_VMIDS;
+       adev->vm_manager.num_level = 1;
        amdgpu_vm_manager_init(adev);
 
        /* base offset of vram pages */