<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only - General]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thanks a lot Christian</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Vitaly<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> Koenig, Christian <Christian.Koenig@amd.com><br>
<b>Sent:</b> Friday, July 8, 2022 3:20 AM<br>
<b>To:</b> Prosyak, Vitaly <Vitaly.Prosyak@amd.com>; igt-dev@lists.freedesktop.org <igt-dev@lists.freedesktop.org><br>
<b>Cc:</b> Siqueira, Rodrigo <Rodrigo.Siqueira@amd.com>; Olsak, Marek <Marek.Olsak@amd.com>; Deucher, Alexander <Alexander.Deucher@amd.com><br>
<b>Subject:</b> Re: [PATCH 1/7] lib/amdgpu: increase number of resources</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Am 07.07.22 um 20:28 schrieb vitaly.prosyak@amd.com:<br>
> From: Vitaly Prosyak <vitaly.prosyak@amd.com><br>
><br>
> Add arrays of bo's for VRAM and GTT.<br>
> Eviction test uses 4 bo resources.<br>
><br>
> Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com><br>
<br>
Of hand that looks totally clean and well organized.<br>
<br>
Feel free to add an Acked-by: Christian König <christian.koenig@amd.com> <br>
to the whole series.<br>
<br>
Regards,<br>
Christian.<br>
<br>
> ---<br>
> lib/amdgpu/amd_ip_blocks.h | 4 +++-<br>
> 1 file changed, 3 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/lib/amdgpu/amd_ip_blocks.h b/lib/amdgpu/amd_ip_blocks.h<br>
> index cb7d1474..c16ad179 100644<br>
> --- a/lib/amdgpu/amd_ip_blocks.h<br>
> +++ b/lib/amdgpu/amd_ip_blocks.h<br>
> @@ -58,11 +58,13 @@ struct amdgpu_ring_context {<br>
> <br>
> amdgpu_bo_handle bo;<br>
> amdgpu_bo_handle bo2;<br>
> + amdgpu_bo_handle boa_vram[2];<br>
> + amdgpu_bo_handle boa_gtt[2];<br>
> <br>
> amdgpu_context_handle context_handle;<br>
> struct drm_amdgpu_info_hw_ip hw_ip_info; /* result of amdgpu_query_hw_ip_info */<br>
> <br>
> - amdgpu_bo_handle resources[2]; /* amdgpu_bo_alloc_and_map */<br>
> + amdgpu_bo_handle resources[4]; /* amdgpu_bo_alloc_and_map */<br>
> amdgpu_va_handle va_handle; /* amdgpu_bo_alloc_and_map */<br>
> amdgpu_va_handle va_handle2; /* amdgpu_bo_alloc_and_map */<br>
> <br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>