]> Git Repo - linux.git/commitdiff
drm/amdkfd: Remove DUMMY_VRAM_SIZE
authorMukul Joshi <[email protected]>
Mon, 12 Jun 2023 23:02:39 +0000 (19:02 -0400)
committerAlex Deucher <[email protected]>
Thu, 15 Jun 2023 15:06:58 +0000 (11:06 -0400)
Remove DUMMY_VRAM_SIZE as it is not needed and can result
in reporting incorrect memory size.

Signed-off-by: Mukul Joshi <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c

index 3dcd8f8bc98e56aa680ad1100a02e74cb4573697..49f40d9f16e8652e79582d13d5bcc95e26f4a5ad 100644 (file)
@@ -30,9 +30,6 @@
 #include "amdgpu.h"
 #include "amdgpu_amdkfd.h"
 
-/* Fixme: Fake 32GB for 1PNPS1 mode bringup */
-#define DUMMY_VRAM_SIZE 31138512896
-
 /* GPU Processor ID base for dGPUs for which VCRAT needs to be created.
  * GPU processor ID are expressed with Bit[31]=1.
  * The base is set to 0x8000_0000 + 0x1000 to avoid collision with GPU IDs
@@ -1056,8 +1053,6 @@ static int kfd_parse_subtype_mem(struct crat_subtype_memory *mem,
 
                        props->heap_type = heap_type;
                        props->flags = flags;
-                       if (size_in_bytes == 0)
-                               size_in_bytes = DUMMY_VRAM_SIZE; /* Fixme: TBD */
                        props->size_in_bytes = size_in_bytes;
                        props->width = width;
 
This page took 0.061528 seconds and 4 git commands to generate.