<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:宋体;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:宋体;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hi Alex<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">So sorry for my missing of you patch because the outlook on website didn’t show it.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Your patch seems cleaner and better. Can you help submit it ? Thanks in advance.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Reviewed-by: Yintian Tao<yttao@amd.com><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Can
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Deucher, Alexander <Alexander.Deucher@amd.com>
<br>
<b>Sent:</b> Saturday, May 18, 2019 1:07 AM<br>
<b>To:</b> Tao, Yintian <Yintian.Tao@amd.com>; Alex Deucher <alexdeucher@gmail.com><br>
<b>Cc:</b> amd-gfx@lists.freedesktop.org; Koenig, Christian <Christian.Koenig@amd.com>; Huang, Trigger <Trigger.Huang@amd.com><br>
<b>Subject:</b> Re: [PATCH] drm/amdgpu: set correct vram_width for vega10 under sriov<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black">Did you see the patch I attached?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:black">Alex<o:p></o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> Tao, Yintian<br>
<b>Sent:</b> Friday, May 17, 2019 10:51 AM<br>
<b>To:</b> Alex Deucher<br>
<b>Cc:</b> </span><a href="mailto:amd-gfx@lists.freedesktop.org"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">amd-gfx@lists.freedesktop.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">; Koenig, Christian;
Deucher, Alexander; Huang, Trigger<br>
<b>Subject:</b> </span><span lang="ZH-CN" style="font-size:11.0pt;color:black">答复</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">: [PATCH] drm/amdgpu: set correct vram_width for vega10 under sriov</span>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div id="x_divtagdefaultwrapper">
<p><span style="font-family:"Calibri",sans-serif;color:black">Hi Alex<o:p></o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">Many thanks for your review. I will merge these two patches into one and submit again.<o:p></o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">Best Regards<o:p></o:p></span></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">Yintian Tao<o:p></o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="MsoNormal"><b><span lang="ZH-CN" style="font-size:11.0pt;color:black">发件人</span></b><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">
Alex Deucher <</span><a href="mailto:alexdeucher@gmail.com"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">alexdeucher@gmail.com</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">><br>
</span><b><span lang="ZH-CN" style="font-size:11.0pt;color:black">发送时间</span></b><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> 2019</span><span lang="ZH-CN" style="font-size:11.0pt;color:black">年</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">5</span><span lang="ZH-CN" style="font-size:11.0pt;color:black">月</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">17</span><span lang="ZH-CN" style="font-size:11.0pt;color:black">日</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">
22:34:30<br>
</span><b><span lang="ZH-CN" style="font-size:11.0pt;color:black">收件人</span></b><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> Tao, Yintian<br>
</span><b><span lang="ZH-CN" style="font-size:11.0pt;color:black">抄送</span></b><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">
</span><a href="mailto:amd-gfx@lists.freedesktop.org"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">amd-gfx@lists.freedesktop.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">; Koenig, Christian; Deucher,
Alexander; Huang, Trigger<br>
</span><b><span lang="ZH-CN" style="font-size:11.0pt;color:black">主题</span></b><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> Re: [PATCH]
drm/amdgpu: set correct vram_width for vega10 under sriov</span> <o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">[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 <</span><a href="mailto:Yintian.Tao@amd.com"><span style="font-size:11.0pt">Yintian.Tao@amd.com</span></a><span style="font-size:11.0pt">> 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 <</span><a href="mailto:yttao@amd.com"><span style="font-size:11.0pt">yttao@amd.com</span></a><span style="font-size:11.0pt">><br>
> Sent: Thursday, May 16, 2019 8:03 PM<br>
> To: </span><a href="mailto:amd-gfx@lists.freedesktop.org"><span style="font-size:11.0pt">amd-gfx@lists.freedesktop.org</span></a><span style="font-size:11.0pt"><br>
> Cc: Tao, Yintian <</span><a href="mailto:Yintian.Tao@amd.com"><span style="font-size:11.0pt">Yintian.Tao@amd.com</span></a><span style="font-size:11.0pt">>; Huang, Trigger <</span><a href="mailto:Trigger.Huang@amd.com"><span style="font-size:11.0pt">Trigger.Huang@amd.com</span></a><span style="font-size:11.0pt">><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 <</span><a href="mailto:Trigger.Huang@amd.com"><span style="font-size:11.0pt">Trigger.Huang@amd.com</span></a><span style="font-size:11.0pt">><br>
> Signed-off-by: Yintian Tao <</span><a href="mailto:yttao@amd.com"><span style="font-size:11.0pt">yttao@amd.com</span></a><span style="font-size:11.0pt">><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>
> </span><a href="mailto:amd-gfx@lists.freedesktop.org"><span style="font-size:11.0pt">amd-gfx@lists.freedesktop.org</span></a><span style="font-size:11.0pt"><br>
> </span><a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx"><span style="font-size:11.0pt">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</span></a><span style="font-size:11.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>