diff options
author | Felix Kuehling | 2017-11-28 00:29:45 +0100 |
---|---|---|
committer | Oded Gabbay | 2017-11-28 00:29:45 +0100 |
commit | a99c6d4fdc0470c3137d834d578441d057a5ebd0 (patch) | |
tree | 26be32f53c49d521990ee44c96b1ca3809dfd6cb /drivers/gpu/drm/amd/amdkfd/kfd_priv.h | |
parent | drm/amdkfd: Fix printing pointer cast (diff) | |
download | kernel-qcow2-linux-a99c6d4fdc0470c3137d834d578441d057a5ebd0.tar.gz kernel-qcow2-linux-a99c6d4fdc0470c3137d834d578441d057a5ebd0.tar.xz kernel-qcow2-linux-a99c6d4fdc0470c3137d834d578441d057a5ebd0.zip |
drm/amdkfd: map multiple processes to HW scheduler
Allow HWS to to execute multiple processes on the hardware
concurrently. The number of concurrent processes is limited by
the number of VMIDs allocated to the HWS.
A module parameter can be used for limiting this further or turn
it off altogether (mainly for debugging purposes).
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
Signed-off-by: Jay Cornwall <Jay.Cornwall@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_priv.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h index a66876467995..1edab2199f0b 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h +++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h @@ -88,6 +88,12 @@ extern int max_num_of_queues_per_device; /* Kernel module parameter to specify the scheduling policy */ extern int sched_policy; +/* + * Kernel module parameter to specify the maximum process + * number per HW scheduler + */ +extern int hws_max_conc_proc; + extern int cwsr_enable; /* @@ -214,6 +220,9 @@ struct kfd_dev { /* Debug manager */ struct kfd_dbgmgr *dbgmgr; + /* Maximum process number mapped to HW scheduler */ + unsigned int max_proc_per_quantum; + /* CWSR */ bool cwsr_enabled; const void *cwsr_isa; |