aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd
AgeCommit message (Collapse)AuthorFilesLines
2015-08-17drm/amdgpu: use scheduler for VCE ib testChunming Zhou1-68/+90
Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]>
2015-08-17drm/amdgpu: use scheduler for UVD ib testChunming Zhou1-19/+42
Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]>
2015-08-17drm/amdgpu: use gpu scheduler for sdma ib testChunming Zhou3-42/+34
Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]>
2015-08-17drm/amdgpu: Use gpu scheduler for gfx ring ib testChunming Zhou2-28/+27
Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]>
2015-08-17drm/amdgpu: add helper function for kernel submissionChunming Zhou2-0/+42
Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]>
2015-08-17drm/amdgpu: fix seq in ctx_add_fenceChunming Zhou6-13/+15
if enabling scheduler, then the queued seq is assigned when pushing job before emitting job. Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]>
2015-08-17drm/amdgpu: wait forever for wait emitChunming Zhou2-5/+5
the job must be emitted by scheduler, otherwise scheduler is abnormal. Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]>
2015-08-17drm/amdgpu: add amdgpu.sched_hw_submission optionJammy Zhou5-6/+12
This option can be used to specify the max number of submissions in the active HW queue. The default value is 2 now. Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Chunming Zhou <[email protected]>
2015-08-17drm/amdgpu: add amdgpu.sched_jobs optionJammy Zhou5-5/+13
This option can be used to specify the max job number in the job queue, and it is 16 by default. Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Chunming Zhou <[email protected]>
2015-08-17drm/amdgpu: silent the message for GPU scheduler creationJammy Zhou1-2/+0
Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Chunming Zhou <[email protected]>
2015-08-17drm/amdgpu: fix syncing to VM updatesChristian König1-3/+16
Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
2015-08-17drm/amdgpu: add check for callbackChunming Zhou1-1/+2
it is possible that the callback isn't defined sometimes. Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]>
2015-08-17drm/amdgpu: add enable_scheduler module optionJammy Zhou1-0/+3
Signed-off-by: Jammy Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: protect fence_process from multiple contextChunming Zhou3-2/+7
fence_process may be called from kthread, user thread and interrupt context. it is possible to called concurrently, then will wake up fence queue multiple times. Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: add sched isr to fence processChunming Zhou1-1/+17
Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: dispatch job for vmChunming Zhou2-48/+217
use kernel context to submit command for vm Signed-off-by: Chunming Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: add kernel ctx support (v2)Chunming Zhou3-24/+71
v2: rebase against kfd changes Signed-off-by: Chunming Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: prepare job before push to sw queue for pte ringChunming Zhou5-1/+5
user mode will still use pte ring as a normal ring. if the prepare job generates another command(update pte) on its ring in scheduler, then will kill scheduler which is going to waiting later job but pending running job. Signed-off-by: Chunming Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: make sure the fence is emitted before ring to get it.Chunming Zhou4-18/+25
Signed-off-by: Chunming Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: use scheduler user seq instead of previous user seqChunming Zhou1-6/+20
Signed-off-by: Chunming Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: dispatch jobs in csChunming Zhou2-57/+200
BO validation is moved to scheduler except usrptr which must be validated in user process Signed-off-by: Chunming Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: add bo list copyChunming Zhou2-0/+53
Signed-off-by: Chunming Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: add backend implementation of gpu scheduler (v2)Chunming Zhou4-2/+119
v2: fix rebase breakage Signed-off-by: Chunming Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: disable hw semaphore with schedulerChunming Zhou1-1/+1
Signed-off-by: Chunming Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: add context entity initChunming Zhou2-1/+37
Signed-off-by: Chunming Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: add scheduler initializationAlex Deucher4-1/+21
1. Add kernel parameter option, default 0 2. Add scheduler initialization for amdgpu Signed-off-by: Chunming Zhou <[email protected]> Signed-off-by: Jammy Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amd: add basic scheduling frameworkJammy Zhou2-0/+691
run queue: A set of entities scheduling commands for the same ring. It implements the scheduling policy that selects the next entity to emit commands from. entity: A scheduler entity is a wrapper around a job queue or a group of other entities. This can be used to build hierarchies of entities. For example all job queue entities belonging to the same process may be placed in a higher level entity and scheduled against other process entities. Entities take turns emitting jobs from their job queue to the corresponding hardware ring, in accordance with the scheduler policy. Signed-off-by: Shaoyun Liu <[email protected]> Signed-off-by: Chunming Zhou <[email protected]> Signed-off-by: Jammy Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: Enable the Fiji DID 0x7300 supportDavid Zhang1-0/+2
Signed-off-by: David Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]>
2015-08-17drm/amdgpu: remove VM workaround for FijiAlex Deucher1-1/+1
The bug is fixed in fiji. Signed-off-by: Alex Deucher <[email protected]>
2015-08-17drm/amdgpu: add support for VCE 3.x on FijiAlex Deucher3-0/+19
VCE on fiji is single pipe only. Reviewed-by: David Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
2015-08-17drm/amdgpu: Add Fiji support to the UVD 6.0 IP moduleDavid Zhang2-0/+12
Signed-off-by: David Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]>
2015-08-17drm/amdgpu: Add Fiji support to the SDMA 3.0 IP moduleDavid Zhang2-0/+38
Signed-off-by: David Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]>
2015-08-17drm/amdgpu: Add Fiji support to the GFX 8.0 IP module (v2)David Zhang2-1/+115
v2: agd5f: fix the rb setup. Signed-off-by: David Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]>
2015-08-17drm/amdgpu: Add Fiji support to the DCE 10.0 IP module (v2)David Zhang2-0/+30
v2: agd5f: fix up XDMA golden settings Signed-off-by: David Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]>
2015-08-17drm/amdgpu: Add Fiji support to SMC and DPM (v2)David Zhang7-1/+1267
v2: agd5f: prepare for release Signed-off-by: David Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]>
2015-08-17drm/amdgpu: Add Fiji smu 7.1.3 headers (v2)David Zhang3-0/+8608
v2: agd5f: prepare for release Signed-off-by: David Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]>
2015-08-17drm/amdgpu: Add Fiji support to IH moduleDavid Zhang1-0/+7
Signed-off-by: David Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]>
2015-08-17drm/amdgpu: Add Fiji support to the GMC 8.5 IP moduleDavid Zhang2-1/+33
Signed-off-by: David Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]>
2015-08-17drm/amdgpu: Add Fiji DID 0x7300 common supportDavid Zhang3-0/+37
Signed-off-by: David Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]>
2015-08-17drm/amdgpu: handle conditional support for CIK properlyAlex Deucher2-2/+4
gfx7 support is not necessary or available if CIK support is not enabled. Signed-off-by: Alex Deucher <[email protected]>
2015-08-17drm/amdgpu: optimize amdgpu_parser_initmonk.liu1-9/+8
use kmalloc_array instead of kcalloc where appropriate and other cleanups. Signed-off-by: monk.liu <[email protected]> Reviewed-by: Christian König <[email protected]>
2015-08-17drm/amdgpu: merge amdgpu_family.h into amd_shared.h (v2)Jammy Zhou23-174/+138
Make the definitions common for all driver components v2: fix kfd Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
2015-08-17drm/amdgpu: add some pptable definitionsJammy Zhou1-1/+5
Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
2015-08-17drm/amdgpu: add some common definitions to amd_shared.hJammy Zhou1-0/+11
Add GPU family definitions and timeout value for IP components. Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
2015-08-17drm/amdgpu: allow userspace to read more debug registersMarek Olšák1-0/+20
Feel free to suggest more. Signed-off-by: Marek Olšák <[email protected]> Acked-by: Michel Dänzer <[email protected]> Reviewed-by: Christian König <[email protected]>
2015-08-17drm/amdgpu: move some atombios definitions to common folder (v2)Alex Deucher6-1/+2
the definitions can be shared by different IP components. v2: fix include path Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
2015-08-17drm/amdgpu: fix UVD/VCE fence handlingChristian König3-6/+9
We need to return the sequence number to userspace even when we don't use user fences. Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
2015-08-17drm/amdgpu: add fence suspend/resume functionsAlex Deucher3-17/+67
Added to: - handle draining the ring on suspend - properly enable/disable interrupts on suspend and resume Fix breakages from: commit 467ee3be53d240d08beed2e82a941e820c1ac323 Author: Chunming Zhou <[email protected]> Date: Mon Jun 1 14:14:32 2015 +0800 drm/amdgpu: always enable EOP interrupt v2 Tested-by: Audrey Grodzovsky <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
2015-08-17drm/amdgpu: always enable EOP interrupt v2Chunming Zhou2-37/+6
v2 (chk): always enable EOP interrupt, independent of scheduler, remove now unused delayed_irq handling. Signed-off-by: Chunming Zhou <[email protected]> Signed-off-by: Christian König <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>
2015-08-17drm/amdgpu: rework vm_grab_id interfaceChristian König3-15/+17
This makes assigning VM IDs independent from the use of VM IDs. Signed-off-by: Christian König <[email protected]> Reviewed-by: Jammy Zhou <[email protected]>