<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#008000;margin:15pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Left">
[Public]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Acked-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Mukul Joshi <mukul.joshi@amd.com><br>
<b>Sent:</b> Monday, June 12, 2023 7:06 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Joshi, Mukul <Mukul.Joshi@amd.com>; Kuehling, Felix <Felix.Kuehling@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdkfd: Remove DUMMY_VRAM_SIZE</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Remove DUMMY_VRAM_SIZE as it is not needed and can result<br>
in reporting incorrect memory size.<br>
<br>
Signed-off-by: Mukul Joshi <mukul.joshi@amd.com><br>
---<br>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 5 -----<br>
1 file changed, 5 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c<br>
index 3dcd8f8bc98e..49f40d9f16e8 100644<br>
--- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c<br>
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c<br>
@@ -30,9 +30,6 @@<br>
#include "amdgpu.h"<br>
#include "amdgpu_amdkfd.h"<br>
<br>
-/* Fixme: Fake 32GB for 1PNPS1 mode bringup */<br>
-#define DUMMY_VRAM_SIZE 31138512896<br>
-<br>
/* GPU Processor ID base for dGPUs for which VCRAT needs to be created.<br>
* GPU processor ID are expressed with Bit[31]=1.<br>
* The base is set to 0x8000_0000 + 0x1000 to avoid collision with GPU IDs<br>
@@ -1056,8 +1053,6 @@ static int kfd_parse_subtype_mem(struct crat_subtype_memory *mem,<br>
<br>
props->heap_type = heap_type;<br>
props->flags = flags;<br>
- if (size_in_bytes == 0)<br>
- size_in_bytes = DUMMY_VRAM_SIZE; /* Fixme: TBD */<br>
props->size_in_bytes = size_in_bytes;<br>
props->width = width;<br>
<br>
-- <br>
2.35.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>