]> git.karo-electronics.de Git - karo-tx-linux.git/commit
amdkfd: Add module parameter of scheduling policy
authorBen Goz <ben.goz@amd.com>
Wed, 16 Jul 2014 21:48:28 +0000 (00:48 +0300)
committerOded Gabbay <oded.gabbay@amd.com>
Wed, 16 Jul 2014 21:48:28 +0000 (00:48 +0300)
commit31c21fece7a5f279ebdd1ee260493450017183f4
tree976ca4eb3428b8f5ca363f6ad163027ba73ceecb
parented6e6a3487bd736cbcfc74fe0f9d9220bae00c72
amdkfd: Add module parameter of scheduling policy

This patch adds a new parameter to the amdkfd driver. This parameter enables
the user to select the scheduling policy of the CP. The choices are:

* CP Scheduling with support for over-subscription
* CP Scheduling without support for over-subscription
* Without CP Scheduling

Note that the third option (Without CP scheduling) is only for debug purposes
and bringup of new H/W. As such, it is _not_ guaranteed to work at all times on
all H/W versions.

v3: Fixed description of parameter, changed the permissions to read_only, added
a verification of the value and added documentation

v5: Set default sched_policy to HWS as it is now supported by firmware

Signed-off-by: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_module.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h