diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2716-drm-amdkfd-Replace-mqd-with-mqd_mgr-as-the-variable-.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2716-drm-amdkfd-Replace-mqd-with-mqd_mgr-as-the-variable-.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2716-drm-amdkfd-Replace-mqd-with-mqd_mgr-as-the-variable-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2716-drm-amdkfd-Replace-mqd-with-mqd_mgr-as-the-variable-.patch new file mode 100644 index 00000000..f158c1af --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2716-drm-amdkfd-Replace-mqd-with-mqd_mgr-as-the-variable-.patch @@ -0,0 +1,59 @@ +From 5fcf037a225ae97e22f51ec36d76beb13291328e Mon Sep 17 00:00:00 2001 +From: Yong Zhao <yong.zhao@amd.com> +Date: Mon, 4 Jun 2018 14:33:13 -0400 +Subject: [PATCH 2716/2940] drm/amdkfd: Replace mqd with mqd_mgr as the + variable name for mqd_manager + +This will make reading code much easier. This fixes a few spots missed in a +previous commit with the same title. + +Signed-off-by: Yong Zhao <yong.zhao@amd.com> +Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> +Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 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 fb9d66ea13b7..d38efbbcd671 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +@@ -1547,7 +1547,7 @@ static int get_wave_state(struct device_queue_manager *dqm, + u32 *ctl_stack_used_size, + u32 *save_area_used_size) + { +- struct mqd_manager *mqd; ++ struct mqd_manager *mqd_mgr; + int r; + + dqm_lock(dqm); +@@ -1558,19 +1558,19 @@ static int get_wave_state(struct device_queue_manager *dqm, + goto dqm_unlock; + } + +- mqd = dqm->ops.get_mqd_manager(dqm, KFD_MQD_TYPE_COMPUTE); +- if (!mqd) { ++ mqd_mgr = dqm->ops.get_mqd_manager(dqm, KFD_MQD_TYPE_COMPUTE); ++ if (!mqd_mgr) { + r = -ENOMEM; + goto dqm_unlock; + } + +- if (!mqd->get_wave_state) { ++ if (!mqd_mgr->get_wave_state) { + r = -EINVAL; + goto dqm_unlock; + } + +- r = mqd->get_wave_state(mqd, q->mqd, ctl_stack, ctl_stack_used_size, +- save_area_used_size); ++ r = mqd_mgr->get_wave_state(mqd_mgr, q->mqd, ctl_stack, ++ ctl_stack_used_size, save_area_used_size); + + dqm_unlock: + dqm_unlock(dqm); +-- +2.17.1 + |