<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;" align="Left">
[Public]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I think it's more consistent to use dev_info since we already use that pretty extensively in the driver.  </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Alex</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<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 Chen, Jiansong (Simon) <Jiansong.Chen@amd.com><br>
<b>Sent:</b> Wednesday, July 14, 2021 10:51 PM<br>
<b>To:</b> 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</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">[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 <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Alex Deucher<br>
Sent: Wednesday, July 14, 2021 11:48 PM<br>
To: Zeng, Oak <Oak.Zeng@amd.com><br>
Cc: 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>
Subject: Re: [PATCH 2/3] drm/amdgpu: Fix a printing message<br>
<br>
On Wed, Jul 14, 2021 at 11:25 AM Oak Zeng <Oak.Zeng@amd.com> 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 <Oak.Zeng@amd.com><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>
> amd-gfx@lists.freedesktop.org<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>
amd-gfx@lists.freedesktop.org<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>
amd-gfx@lists.freedesktop.org<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><br>
</div>
</span></font></div>
</div>
</body>
</html>