diff options
| author | Christian König <[email protected]> | 2017-07-31 13:32:40 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-08-17 19:46:05 +0000 |
| commit | 0f4b3c68626199cd5ce619e2a3105d44b81f2753 (patch) | |
| tree | 138bbebec60074a45000a2e14ab6204c02270350 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | |
| parent | drm/amdgpu: SHADOW and VRAM_CONTIGUOUS flags shouldn't be used by userspace (diff) | |
| download | kernel-0f4b3c68626199cd5ce619e2a3105d44b81f2753.tar.gz kernel-0f4b3c68626199cd5ce619e2a3105d44b81f2753.zip | |
drm/amdgpu: cleanup static CSA handling
Move the CSA bo_va from the VM to the fpriv structure.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h index e5b1baf387c1..afcfb8bcfb65 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h @@ -90,7 +90,8 @@ static inline bool is_virtual_machine(void) struct amdgpu_vm; int amdgpu_allocate_static_csa(struct amdgpu_device *adev); -int amdgpu_map_static_csa(struct amdgpu_device *adev, struct amdgpu_vm *vm); +int amdgpu_map_static_csa(struct amdgpu_device *adev, struct amdgpu_vm *vm, + struct amdgpu_bo_va **bo_va); void amdgpu_virt_init_setting(struct amdgpu_device *adev); uint32_t amdgpu_virt_kiq_rreg(struct amdgpu_device *adev, uint32_t reg); void amdgpu_virt_kiq_wreg(struct amdgpu_device *adev, uint32_t reg, uint32_t v); |
