Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2018-10-16 | drm/amdgpu: Fix typo in amdgpu_vmid_mgr_init | Rex Zhu | 1 | -1/+1 | |
fix a typo in for loop: i->j Reviewed-by: Christian König <[email protected]> Signed-off-by: Rex Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] | |||||
2018-07-05 | drm/amdgpu: remove duplicated codes | Flora Cui | 1 | -5/+0 | |
the fence_context and seqno is init in amdgpu_vm_manager_init() & amdgpu_vmid_mgr_init(). remove the amdgpu_vmid_mgr_init() copy. Signed-off-by: Flora Cui <[email protected]> Reviewed-by: Junwei Zhang <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: update the PASID mapping only on demand | Christian König | 1 | -0/+1 | |
Updating the PASID is rather heavyweight and shouldn't be done all the time. Signed-off-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: Fix potential uninitialized use of 'idle' in amdgpu_ids.c | Harry Wentland | 1 | -1/+2 | |
v2: Use NULL and reverse christmas tree ordering Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: cache the fence to wait for a VMID | Christian König | 1 | -2/+5 | |
Beneficial when a lot of processes are waiting for VMIDs. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: restructure amdgpu_vmid_grab | Christian König | 1 | -47/+42 | |
Now that we have the different cases for grabbing a VMID in separate functions, restructure the top level function to only have one place where VMIDs are assigned to jobs. Signed-off-by: Christian König <[email protected]> Acked-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: move reusing VMIDs into separate function | Christian König | 1 | -49/+81 | |
Let's try this once more. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: cleanup and simplify amdgpu_vmid_grab_reserved | Christian König | 1 | -23/+35 | |
Drop the "_locked" from the name, cleanup and simplify the logic a bit. Add missing comments. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: stop checking GPU reset counter during VMID grab | Christian König | 1 | -5/+1 | |
We do this later on when we flush the VMID anyway. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: make VMID owner none atomic v2 | Christian König | 1 | -5/+7 | |
The variable is protected by the VMID mutex anyway. v2: grab the mutex while resetting the VMID as well Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: split finding idle VMID into separate function | Christian König | 1 | -47/+69 | |
No functional change, but makes it easier to maintain the code. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: make VMID assignment more fair v2 | Christian König | 1 | -5/+7 | |
Similar to finding an idle one before reuse. This guarantees fairness between processes. Otherwise process with a reserved VMID have an unfair advantage while scheduling jobs. v2: improve commit message Signed-off-by: Christian König <[email protected]> Acked-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: forward pasid to backend flush implementations | Christian König | 1 | -0/+2 | |
rd the pasid from the VM code to the emit_vm_flush function and update all implementations with the new parameter. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: trace allocated PASIDs | Christian König | 1 | -0/+4 | |
Trace all allocated PASIDs. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: add amdgpu_pasid_free_delayed v2 | Christian König | 1 | -0/+82 | |
Free up a pasid after all fences signaled. v2: also handle the case when we can't allocate a fence array. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2018-02-19 | drm/amdgpu: fix semicolon.cocci warnings | Fengguang Wu | 1 | -1/+1 | |
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c:281:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 620f774f4687 ("drm/amdgpu: separate VMID and PASID handling") CC: Christian König <[email protected]> Signed-off-by: Fengguang Wu <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-27 | drm/amdgpu: drop client_id from VM | Christian König | 1 | -4/+4 | |
Use the fence context from the scheduler entity. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-27 | drm/amdgpu: rename vm_id to vmid | Christian König | 1 | -3/+3 | |
sed -i "s/vm_id/vmid/g" drivers/gpu/drm/amd/amdgpu/*.c sed -i "s/vm_id/vmid/g" drivers/gpu/drm/amd/amdgpu/*.h Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2017-12-27 | drm/amdgpu: separate VMID and PASID handling | Christian König | 1 | -0/+459 | |
Move both into the new files amdgpu_ids.[ch]. No functional change. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Signed-off-by: Alex Deucher <[email protected]> |