aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3728-drm-amdkfd-add-renoir-cache-info-for-CRAT-v2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3728-drm-amdkfd-add-renoir-cache-info-for-CRAT-v2.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3728-drm-amdkfd-add-renoir-cache-info-for-CRAT-v2.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3728-drm-amdkfd-add-renoir-cache-info-for-CRAT-v2.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3728-drm-amdkfd-add-renoir-cache-info-for-CRAT-v2.patch
new file mode 100644
index 00000000..c72e607d
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3728-drm-amdkfd-add-renoir-cache-info-for-CRAT-v2.patch
@@ -0,0 +1,41 @@
+From 4a9167b03021294bdb3b8bbcc3221c6f2a033583 Mon Sep 17 00:00:00 2001
+From: Huang Rui <ray.huang@amd.com>
+Date: Mon, 2 Sep 2019 22:59:01 +0800
+Subject: [PATCH 3728/4256] drm/amdkfd: add renoir cache info for CRAT (v2)
+
+Renoir's cache info should be the same with raven and carrizo's.
+
+v2: fix missed "break"
+
+Signed-off-by: Huang Rui <ray.huang@amd.com>
+Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
+index a95e6bc2f7f9..d9e075d66065 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
+@@ -138,6 +138,7 @@ static struct kfd_gpu_cache_info carrizo_cache_info[] = {
+ /* TODO - check & update Vega10 cache details */
+ #define vega10_cache_info carrizo_cache_info
+ #define raven_cache_info carrizo_cache_info
++#define renoir_cache_info carrizo_cache_info
+ /* TODO - check & update Navi10 cache details */
+ #define navi10_cache_info carrizo_cache_info
+
+@@ -670,6 +671,10 @@ static int kfd_fill_gpu_cache_info(struct kfd_dev *kdev,
+ pcache_info = raven_cache_info;
+ num_of_cache_types = ARRAY_SIZE(raven_cache_info);
+ break;
++ case CHIP_RENOIR:
++ pcache_info = renoir_cache_info;
++ num_of_cache_types = ARRAY_SIZE(renoir_cache_info);
++ break;
+ case CHIP_NAVI10:
+ case CHIP_NAVI14:
+ pcache_info = navi10_cache_info;
+--
+2.17.1
+