diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2189-drm-amdkfd-Set-local-memory-size-to-0-on-Raven.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2189-drm-amdkfd-Set-local-memory-size-to-0-on-Raven.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2189-drm-amdkfd-Set-local-memory-size-to-0-on-Raven.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2189-drm-amdkfd-Set-local-memory-size-to-0-on-Raven.patch new file mode 100644 index 00000000..5624d294 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2189-drm-amdkfd-Set-local-memory-size-to-0-on-Raven.patch @@ -0,0 +1,33 @@ +From 8af7318d9def6ba3295db9111132925c9223c487 Mon Sep 17 00:00:00 2001 +From: Yong Zhao <yong.zhao@amd.com> +Date: Tue, 24 Oct 2017 18:43:44 -0400 +Subject: [PATCH 2189/4131] drm/amdkfd: Set local memory size to 0 on Raven + +Change-Id: I3f5e615d38867931f57a2a7ba51dd415b7eb89b1 +Signed-off-by: Yong Zhao <yong.zhao@amd.com> +--- + drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 7 ++++--- + 1 file changed, 4 insertions(+), 3 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c +index 9494cf2..38e3700 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c +@@ -506,10 +506,11 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr, + dev->node_props.max_engine_clk_fcompute); + + /* +- * If the ASIC is CZ, set local memory size to 0 to disable +- * local memory support ++ * If the ASIC is APU except Kaveri, set local memory size ++ * to 0 to disable local memory support + */ +- if (dev->gpu->device_info->asic_family != CHIP_CARRIZO) { ++ if (!dev->gpu->device_info->is_need_iommu_device ++ || dev->gpu->device_info->asic_family == CHIP_KAVERI) { + dev->gpu->kfd2kgd->get_local_mem_info(dev->gpu->kgd, + &local_mem_info); + sysfs_show_64bit_prop(buffer, "local_mem_size", +-- +2.7.4 + |