diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1255-drm-amdkfd-Correct-CZ-max_waves_per_simd-value.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/1255-drm-amdkfd-Correct-CZ-max_waves_per_simd-value.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1255-drm-amdkfd-Correct-CZ-max_waves_per_simd-value.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1255-drm-amdkfd-Correct-CZ-max_waves_per_simd-value.patch new file mode 100644 index 00000000..15561b6b --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1255-drm-amdkfd-Correct-CZ-max_waves_per_simd-value.patch @@ -0,0 +1,35 @@ +From fde1b1b979b1a3b66ed83a961ed5c89b7083b92b Mon Sep 17 00:00:00 2001 +From: Philip Cox <Philip.Cox@amd.com> +Date: Wed, 29 Mar 2017 15:38:15 -0400 +Subject: [PATCH 1255/4131] drm/amdkfd: Correct CZ max_waves_per_simd value + +The ACPI CRAT reports the wrong value for max_waves_per_simd on +Carrizo. + +Change-Id: Icb889422b76e63ce6fcada332e502a37960495b6 +Signed-off-by: Philip Cox <Philip.Cox@amd.com> +--- + drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c +index 7603967..8a7beaa 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c +@@ -1243,11 +1243,13 @@ int kfd_topology_add_device(struct kfd_dev *gpu) + /* Fix errors in CZ CRAT. + * simd_count: Carrizo CRAT reports wrong simd_count, probably because it + * doesn't consider masked out CUs ++ * max_waves_per_simd: Carrizo reports wrong max_waves_per_simd. + * capability flag: Carrizo CRAT doesn't report IOMMU flags. + */ + if (dev->gpu->device_info->asic_family == CHIP_CARRIZO) { + dev->node_props.simd_count = + cu_info.simd_per_cu * cu_info.cu_active_number; ++ dev->node_props.max_waves_per_simd = 10; + dev->node_props.capability |= HSA_CAP_ATS_PRESENT; + } + +-- +2.7.4 + |