diff options
author | 2017-04-21 15:40:25 +0800 | |
---|---|---|
committer | 2017-04-28 17:32:58 -0400 | |
commit | 904cd3891dd390b109c8146974b47fca78b97c98 (patch) | |
tree | 83881d9b0b0111324e8bba36a4863a2d8c127c36 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | |
parent | drm/amdgpu/vce4: move mm table constructions functions into mmsch header file (diff) | |
download | linux-dev-904cd3891dd390b109c8146974b47fca78b97c98.tar.xz linux-dev-904cd3891dd390b109c8146974b47fca78b97c98.zip |
drm/amdgpu/virt: add two functions for MM table
Add two functions to allocate & free MM table memory.
Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h index 1ee0a190b33b..a8ed162cc0bc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h @@ -98,5 +98,7 @@ int amdgpu_virt_request_full_gpu(struct amdgpu_device *adev, bool init); int amdgpu_virt_release_full_gpu(struct amdgpu_device *adev, bool init); int amdgpu_virt_reset_gpu(struct amdgpu_device *adev); int amdgpu_sriov_gpu_reset(struct amdgpu_device *adev, bool voluntary); +int amdgpu_virt_alloc_mm_table(struct amdgpu_device *adev); +void amdgpu_virt_free_mm_table(struct amdgpu_device *adev); #endif |