[PATCH 099/102] drm/amdkfd: Increase vcrat size for GPU

Alex Deucher alexdeucher at gmail.com
Tue Jul 16 01:27:38 UTC 2019


From: Oak Zeng <Oak.Zeng at amd.com>

GPU cache info (part of virtual CRAT) size depends on CU number.
For arcturus, CU number has been increased from 64 to 128. So
the required memory for vcrat also increases.

Signed-off-by: Oak Zeng <Oak.Zeng at amd.com>
Reviewed-by: Yong Zhao <Yong.Zhao at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
index b30ccbfeb648..454552fe2563 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
@@ -788,7 +788,7 @@ int kfd_create_crat_image_acpi(void **crat_image, size_t *size)
  * is put in the code to ensure we don't overwrite.
  */
 #define VCRAT_SIZE_FOR_CPU	(2 * PAGE_SIZE)
-#define VCRAT_SIZE_FOR_GPU	(3 * PAGE_SIZE)
+#define VCRAT_SIZE_FOR_GPU	(4 * PAGE_SIZE)
 
 /* kfd_fill_cu_for_cpu - Fill in Compute info for the given CPU NUMA node
  *
-- 
2.20.1



More information about the amd-gfx mailing list