mirror of
https://github.com/torvalds/linux.git
synced 2026-05-01 04:52:32 -04:00
drm/amdgpu: Add gpu_addr support to seq64 allocation
Add gpu address support to seq64 alloc function.
v1:(Christian)
- Add the user of this new interface change to the same
patch.
Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
cb4a73f46f
commit
f7cb6a28e1
@@ -32,13 +32,14 @@
|
||||
struct amdgpu_seq64 {
|
||||
struct amdgpu_bo *sbo;
|
||||
u32 num_sem;
|
||||
u64 gpu_addr;
|
||||
u64 *cpu_base_addr;
|
||||
DECLARE_BITMAP(used, AMDGPU_MAX_SEQ64_SLOTS);
|
||||
};
|
||||
|
||||
void amdgpu_seq64_fini(struct amdgpu_device *adev);
|
||||
int amdgpu_seq64_init(struct amdgpu_device *adev);
|
||||
int amdgpu_seq64_alloc(struct amdgpu_device *adev, u64 *gpu_addr, u64 **cpu_addr);
|
||||
int amdgpu_seq64_alloc(struct amdgpu_device *adev, u64 *va, u64 *gpu_addr, u64 **cpu_addr);
|
||||
void amdgpu_seq64_free(struct amdgpu_device *adev, u64 gpu_addr);
|
||||
int amdgpu_seq64_map(struct amdgpu_device *adev, struct amdgpu_vm *vm,
|
||||
struct amdgpu_bo_va **bo_va);
|
||||
|
||||
Reference in New Issue
Block a user