drm/amdkfd: add renoir cache info for CRAT (v2)
authorHuang Rui <ray.huang@amd.com>
Mon, 2 Sep 2019 14:59:01 +0000 (22:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2019 14:54:49 +0000 (09:54 -0500)
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>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c

index e6f40ce..1ef3c32 100644 (file)
@@ -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;