diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1533-drm-amdkfd-Use-software-scheduler-on-Tonga-ASIC.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1533-drm-amdkfd-Use-software-scheduler-on-Tonga-ASIC.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1533-drm-amdkfd-Use-software-scheduler-on-Tonga-ASIC.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1533-drm-amdkfd-Use-software-scheduler-on-Tonga-ASIC.patch new file mode 100644 index 00000000..a014387d --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1533-drm-amdkfd-Use-software-scheduler-on-Tonga-ASIC.patch @@ -0,0 +1,42 @@ +From 87433478499a91b71b294a47c9e3724e5aaadd60 Mon Sep 17 00:00:00 2001 +From: Jay Cornwall <Jay.Cornwall@amd.com> +Date: Thu, 6 Oct 2016 20:10:12 -0500 +Subject: [PATCH 1533/4131] drm/amdkfd: Use software scheduler on Tonga ASIC + +The CP scheduling path depends on the context save/restore feature for +timely runlist dequeue. Tonga ASICs do not support this feature. + +Instead use the software scheduling path on Tonga. This does not +support HQD/VMID oversubscription or SR-IOV virtualization but is +otherwise equal in functionality. + +Signed-off-by: Jay Cornwall <Jay.Cornwall@amd.com> +--- + drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 11 +++++++++-- + 1 file changed, 9 insertions(+), 2 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +index d77c1ad..3bc831f 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +@@ -1483,8 +1483,15 @@ struct device_queue_manager *device_queue_manager_init(struct kfd_dev *dev) + if (!dqm) + return NULL; + +- dqm->sched_policy = (dev->device_info->asic_family == CHIP_HAWAII) ? +- KFD_SCHED_POLICY_NO_HWS : sched_policy; ++ switch (dev->device_info->asic_family) { ++ case CHIP_HAWAII: ++ case CHIP_TONGA: ++ dqm->sched_policy = KFD_SCHED_POLICY_NO_HWS; ++ break; ++ default: ++ dqm->sched_policy = sched_policy; ++ break; ++ } + + dqm->dev = dev; + switch (dqm->sched_policy) { +-- +2.7.4 + |