<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi Alex</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Many thanks for your review. I will merge these two patches into one and submit again.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Best Regards</p>
<p style="margin-top:0;margin-bottom:0">Yintian Tao</p>
</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>发件人:</b> Alex Deucher <alexdeucher@gmail.com><br>
<b>发送时间:</b> 2019年5月17日 22:34:30<br>
<b>收件人:</b> Tao, Yintian<br>
<b>抄送:</b> amd-gfx@lists.freedesktop.org; Koenig, Christian; Deucher, Alexander; Huang, Trigger<br>
<b>主题:</b> Re: [PATCH] drm/amdgpu: set correct vram_width for vega10 under sriov</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">[CAUTION: External Email]<br>
<br>
How about combining these two patches into one?  This seems cleaner.<br>
<br>
Alex<br>
<br>
On Thu, May 16, 2019 at 10:39 PM Tao, Yintian <Yintian.Tao@amd.com> wrote:<br>
><br>
> Ping...<br>
><br>
> Hi Christian and Alex<br>
><br>
><br>
> Can you help review this? Thanks in advance.<br>
><br>
><br>
> Best Regards<br>
> Yintian Tao<br>
><br>
> -----Original Message-----<br>
> From: Yintian Tao <yttao@amd.com><br>
> Sent: Thursday, May 16, 2019 8:03 PM<br>
> To: amd-gfx@lists.freedesktop.org<br>
> Cc: Tao, Yintian <Yintian.Tao@amd.com>; Huang, Trigger <Trigger.Huang@amd.com><br>
> Subject: [PATCH] drm/amdgpu: set correct vram_width for vega10 under sriov<br>
><br>
> For Vega10 SR-IOV, vram_width can't be read from ATOM as RAVEN, and DF related registers is not readable, seems hardcord is the only way to set the correct vram_width<br>
><br>
> Signed-off-by: Trigger Huang <Trigger.Huang@amd.com><br>
> Signed-off-by: Yintian Tao <yttao@amd.com><br>
> ---<br>
>  drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 7 +++++++<br>
>  1 file changed, 7 insertions(+)<br>
><br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c<br>
> index c221570..a417763 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c<br>
> @@ -848,6 +848,13 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev)<br>
>                 adev->gmc.vram_width = numchan * chansize;<br>
>         }<br>
><br>
> +       /* For Vega10 SR-IOV, vram_width can't be read from ATOM as RAVEN,<br>
> +        * and DF related registers is not readable, seems hardcord is the<br>
> +        * only way to set the correct vram_width */<br>
> +       if (amdgpu_sriov_vf(adev) && (adev->asic_type == CHIP_VEGA10)) {<br>
> +               adev->gmc.vram_width = 2048;<br>
> +       }<br>
> +<br>
>         /* size in MB on si */<br>
>         adev->gmc.mc_vram_size =<br>
>                 adev->nbio_funcs->get_memsize(adev) * 1024ULL * 1024ULL;<br>
> --<br>
> 2.7.4<br>
><br>
> _______________________________________________<br>
> amd-gfx mailing list<br>
> amd-gfx@lists.freedesktop.org<br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</div>
</span></font></div>
</body>
</html>