<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=us-ascii">
<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:SimSun;
        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:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle20
        {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.0in 1.0in 1.0in;}
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" style="word-wrap:break-word">
<p style="font-family:Arial;font-size:10pt;color:#008000;margin:15pt;" align="Left">
[Public]<br>
</p>
<br>
<div>
<div class="WordSection1">
<p class="MsoNormal">Ok, I see. Thanks!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Jiansong<o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Deucher, Alexander <Alexander.Deucher@amd.com> <br>
<b>Sent:</b> Thursday, July 15, 2021 10:55 AM<br>
<b>To:</b> Chen, Jiansong (Simon) <Jiansong.Chen@amd.com>; Alex Deucher <alexdeucher@gmail.com>; Zeng, Oak <Oak.Zeng@amd.com><br>
<b>Cc:</b> Xu, Feifei <Feifei.Xu@amd.com>; Kuehling, Felix <Felix.Kuehling@amd.com>; Liu, Leo <Leo.Liu@amd.com>; amd-gfx list <amd-gfx@lists.freedesktop.org>; Zhang, Hawking <Hawking.Zhang@amd.com><br>
<b>Subject:</b> Re: [PATCH 2/3] drm/amdgpu: Fix a printing message<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:15.0pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:green">[Public]<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">I think it's more consistent to use dev_info since we already use that pretty extensively in the driver.  <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black">Alex<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:black"><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="color:black">From:</span></b><span style="color:black"> amd-gfx <<a href="mailto:amd-gfx-bounces@lists.freedesktop.org">amd-gfx-bounces@lists.freedesktop.org</a>> on behalf of Chen, Jiansong (Simon) <<a href="mailto:Jiansong.Chen@amd.com">Jiansong.Chen@amd.com</a>><br>
<b>Sent:</b> Wednesday, July 14, 2021 10:51 PM<br>
<b>To:</b> Alex Deucher <<a href="mailto:alexdeucher@gmail.com">alexdeucher@gmail.com</a>>; Zeng, Oak <<a href="mailto:Oak.Zeng@amd.com">Oak.Zeng@amd.com</a>><br>
<b>Cc:</b> Xu, Feifei <<a href="mailto:Feifei.Xu@amd.com">Feifei.Xu@amd.com</a>>; Kuehling, Felix <<a href="mailto:Felix.Kuehling@amd.com">Felix.Kuehling@amd.com</a>>; Liu, Leo <<a href="mailto:Leo.Liu@amd.com">Leo.Liu@amd.com</a>>; amd-gfx list <<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>>;
 Zhang, Hawking <<a href="mailto:Hawking.Zhang@amd.com">Hawking.Zhang@amd.com</a>><br>
<b>Subject:</b> RE: [PATCH 2/3] drm/amdgpu: Fix a printing message</span> <o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">[Public]<br>
<br>
[Public]<br>
<br>
Hi Alex,<br>
Is DRM_DEV_INFO more suitable than dev_info as far as DRM subsystem is concerned? Thanks!<br>
<br>
Regards,<br>
Jiansong<br>
-----Original Message-----<br>
From: amd-gfx <<a href="mailto:amd-gfx-bounces@lists.freedesktop.org">amd-gfx-bounces@lists.freedesktop.org</a>> On Behalf Of Alex Deucher<br>
Sent: Wednesday, July 14, 2021 11:48 PM<br>
To: Zeng, Oak <<a href="mailto:Oak.Zeng@amd.com">Oak.Zeng@amd.com</a>><br>
Cc: Xu, Feifei <<a href="mailto:Feifei.Xu@amd.com">Feifei.Xu@amd.com</a>>; Kuehling, Felix <<a href="mailto:Felix.Kuehling@amd.com">Felix.Kuehling@amd.com</a>>; Liu, Leo <<a href="mailto:Leo.Liu@amd.com">Leo.Liu@amd.com</a>>; amd-gfx list <<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>>;
 Zhang, Hawking <<a href="mailto:Hawking.Zhang@amd.com">Hawking.Zhang@amd.com</a>><br>
Subject: Re: [PATCH 2/3] drm/amdgpu: Fix a printing message<br>
<br>
On Wed, Jul 14, 2021 at 11:25 AM Oak Zeng <<a href="mailto:Oak.Zeng@amd.com">Oak.Zeng@amd.com</a>> wrote:<br>
><br>
> The printing message "PSP loading VCN firmware" is mis-leading because<br>
> people might think driver is loading VCN firmware. Actually when this<br>
> message is printed, driver is just preparing some VCN ucode, not<br>
> loading VCN firmware yet. The actual VCN firmware loading will be in<br>
> the PSP block hw_init. Fix the printing message<br>
><br>
> Signed-off-by: Oak Zeng <<a href="mailto:Oak.Zeng@amd.com">Oak.Zeng@amd.com</a>><br>
> ---<br>
>  drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 2 +-<br>
> drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 2 +-<br>
> drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 2 +-<br>
> drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 2 +-<br>
>  4 files changed, 4 insertions(+), 4 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c<br>
> b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c<br>
> index 284bb42..1f8e902 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c<br>
> @@ -119,7 +119,7 @@ static int vcn_v1_0_sw_init(void *handle)<br>
>                 adev->firmware.ucode[AMDGPU_UCODE_ID_VCN].fw = adev->vcn.fw;<br>
>                 adev->firmware.fw_size +=<br>
>                         ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);<br>
> -               DRM_INFO("PSP loading VCN firmware\n");<br>
> +               DRM_INFO("VCN 1.0: Will use PSP to load VCN<br>
> + firmware\n");<br>
>         }<br>
><br>
>         r = amdgpu_vcn_resume(adev);<br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c<br>
> b/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c<br>
> index 8af567c..ebe4f2b 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c<br>
> @@ -122,7 +122,7 @@ static int vcn_v2_0_sw_init(void *handle)<br>
>                 adev->firmware.ucode[AMDGPU_UCODE_ID_VCN].fw = adev->vcn.fw;<br>
>                 adev->firmware.fw_size +=<br>
>                         ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);<br>
> -               DRM_INFO("PSP loading VCN firmware\n");<br>
> +               DRM_INFO("VCN 2.0: Will use PSP to load VCN<br>
> + firmware\n");<br>
<br>
While you are here, switch to dev_info() so we get the device information in the output (in case we have multiple GPUs in a system).<br>
<br>
Alex<br>
<br>
>         }<br>
><br>
>         r = amdgpu_vcn_resume(adev);<br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c<br>
> b/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c<br>
> index 888b17d..5741504 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c<br>
> @@ -152,7 +152,7 @@ static int vcn_v2_5_sw_init(void *handle)<br>
>                         adev->firmware.fw_size +=<br>
>                                 ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);<br>
>                 }<br>
> -               DRM_INFO("PSP loading VCN firmware\n");<br>
> +               DRM_INFO("VCN 2.5: Will use PSP to load VCN<br>
> + firmware\n");<br>
>         }<br>
><br>
>         r = amdgpu_vcn_resume(adev);<br>
> diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c<br>
> b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c<br>
> index c3580de..b81eae3 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c<br>
> @@ -158,7 +158,7 @@ static int vcn_v3_0_sw_init(void *handle)<br>
>                         adev->firmware.fw_size +=<br>
>                                 ALIGN(le32_to_cpu(hdr->ucode_size_bytes), PAGE_SIZE);<br>
>                 }<br>
> -               DRM_INFO("PSP loading VCN firmware\n");<br>
> +               DRM_INFO("VCN 3.0: Will use PSP to load VCN<br>
> + firmware\n");<br>
>         }<br>
><br>
>         r = amdgpu_vcn_resume(adev);<br>
> --<br>
> 2.7.4<br>
><br>
> _______________________________________________<br>
> amd-gfx mailing list<br>
> <a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
> <a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist">
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist</a><br>
> s.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7CJi<br>
> ansong.Chen%40amd.com%7C051da5b064d944f4c0a908d946ded869%7C3dd8961fe48<br>
> 84e608e11a82d994e183d%7C0%7C0%7C637618745208108548%7CUnknown%7CTWFpbGZ<br>
> sb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3<br>
> D%7C1000&amp;sdata=WpGaXXjVSQEjcRgg0E%2FUjRMZT%2FDRe05nwG6xiDJjRbk%3D&<br>
> amp;reserved=0<br>
_______________________________________________<br>
amd-gfx mailing list<br>
<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7Calexander.deucher%40amd.com%7Ce7e186e3c28f4131fdc008d9473b8643%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637619143252510438%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=1rIdDQqiz9t9NVditEbTRR6qeqvucqhCvnsg7obVA9c%3D&amp;reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7Calexander.deucher%40amd.com%7Ce7e186e3c28f4131fdc008d9473b8643%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637619143252510438%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=1rIdDQqiz9t9NVditEbTRR6qeqvucqhCvnsg7obVA9c%3D&amp;reserved=0</a><br>
_______________________________________________<br>
amd-gfx mailing list<br>
<a href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7Calexander.deucher%40amd.com%7Ce7e186e3c28f4131fdc008d9473b8643%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637619143252520390%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ZhcsiGqrIcLHktlp0RBx1qwFJp6RI0nP%2BFFUxddKlRo%3D&amp;reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7Calexander.deucher%40amd.com%7Ce7e186e3c28f4131fdc008d9473b8643%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637619143252520390%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ZhcsiGqrIcLHktlp0RBx1qwFJp6RI0nP%2BFFUxddKlRo%3D&amp;reserved=0</a><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>