<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Acked-by: Christian König <a class="moz-txt-link-rfc2396E" href="mailto:christian.koenig@amd.com"><christian.koenig@amd.com></a><br>
<br>
Thanks,<br>
Christian.<br>
<br>
<div class="moz-cite-prefix">Am 23.05.24 um 19:11 schrieb Jiang,
Sonny:<br>
</div>
<blockquote type="cite"
cite="mid:BL1PR12MB51263D2BC502E2FCF5C7123DFDF42@BL1PR12MB5126.namprd12.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<p
style="font-family:Calibri;font-size:10pt;color:#0000FF;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;"
align="Left">
[AMD Official Use Only - AMD Internal Distribution Only]<br>
</p>
<br>
<div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The patch is Reviewed-by: Sonny Jiang <a class="moz-txt-link-rfc2396E" href="mailto:sonjiang@amd.com"><sonjiang@amd.com></a></div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Sonny</div>
<div class="elementToProof"
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>From:</b>
Dong, Ruijing <a class="moz-txt-link-rfc2396E" href="mailto:Ruijing.Dong@amd.com"><Ruijing.Dong@amd.com></a><br>
<b>Sent:</b> Thursday, May 23, 2024 12:58 PM<br>
<b>To:</b> Wu, David <a class="moz-txt-link-rfc2396E" href="mailto:David.Wu3@amd.com"><David.Wu3@amd.com></a>;
<a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>
<a class="moz-txt-link-rfc2396E" href="mailto:amd-gfx@lists.freedesktop.org"><amd-gfx@lists.freedesktop.org></a>; Koenig, Christian
<a class="moz-txt-link-rfc2396E" href="mailto:Christian.Koenig@amd.com"><Christian.Koenig@amd.com></a><br>
<b>Cc:</b> Deucher, Alexander
<a class="moz-txt-link-rfc2396E" href="mailto:Alexander.Deucher@amd.com"><Alexander.Deucher@amd.com></a>; Liu, Leo
<a class="moz-txt-link-rfc2396E" href="mailto:Leo.Liu@amd.com"><Leo.Liu@amd.com></a>; Jiang, Sonny
<a class="moz-txt-link-rfc2396E" href="mailto:Sonny.Jiang@amd.com"><Sonny.Jiang@amd.com></a><br>
<b>Subject:</b> RE: [PATCH] drm/amdgpu: drop some kernel
messages in VCN code</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="3" face="Times New Roman"><span
style="font-size:12pt;"><a name="BM_BEGIN"
moz-do-not-send="true"></a>
<div><font size="2"><span style="font-size:11pt;">[AMD
Official Use Only - AMD Internal Distribution Only]<br>
<br>
Thanks for the response, and it looks good to me.<br>
<br>
Ruijing<br>
<br>
-----Original Message-----<br>
From: Wu, David <a class="moz-txt-link-rfc2396E" href="mailto:David.Wu3@amd.com"><David.Wu3@amd.com></a><br>
Sent: Thursday, May 23, 2024 12:55 PM<br>
To: Dong, Ruijing <a class="moz-txt-link-rfc2396E" href="mailto:Ruijing.Dong@amd.com"><Ruijing.Dong@amd.com></a>; Wu,
David <a class="moz-txt-link-rfc2396E" href="mailto:David.Wu3@amd.com"><David.Wu3@amd.com></a>;
<a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>; Koenig, Christian
<a class="moz-txt-link-rfc2396E" href="mailto:Christian.Koenig@amd.com"><Christian.Koenig@amd.com></a><br>
Cc: Deucher, Alexander
<a class="moz-txt-link-rfc2396E" href="mailto:Alexander.Deucher@amd.com"><Alexander.Deucher@amd.com></a>; Liu, Leo
<a class="moz-txt-link-rfc2396E" href="mailto:Leo.Liu@amd.com"><Leo.Liu@amd.com></a>; Jiang, Sonny
<a class="moz-txt-link-rfc2396E" href="mailto:Sonny.Jiang@amd.com"><Sonny.Jiang@amd.com></a><br>
Subject: Re: [PATCH] drm/amdgpu: drop some kernel
messages in VCN code<br>
<br>
please see in line.<br>
<br>
On 2024-05-23 12:02, Dong, Ruijing wrote:<br>
> [AMD Official Use Only - AMD Internal
Distribution Only]<br>
><br>
> Please see my question inline below.<br>
><br>
> Thanks,<br>
> Ruijing<br>
><br>
> -----Original Message-----<br>
> From: Wu, David <a class="moz-txt-link-rfc2396E" href="mailto:David.Wu3@amd.com"><David.Wu3@amd.com></a><br>
> Sent: Thursday, May 23, 2024 11:05 AM<br>
> To: <a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>; Koenig,
Christian<br>
> <a class="moz-txt-link-rfc2396E" href="mailto:Christian.Koenig@amd.com"><Christian.Koenig@amd.com></a><br>
> Cc: Deucher, Alexander
<a class="moz-txt-link-rfc2396E" href="mailto:Alexander.Deucher@amd.com"><Alexander.Deucher@amd.com></a>; Liu, Leo<br>
> <a class="moz-txt-link-rfc2396E" href="mailto:Leo.Liu@amd.com"><Leo.Liu@amd.com></a>; Jiang, Sonny
<a class="moz-txt-link-rfc2396E" href="mailto:Sonny.Jiang@amd.com"><Sonny.Jiang@amd.com></a>; Dong, Ruijing<br>
> <a class="moz-txt-link-rfc2396E" href="mailto:Ruijing.Dong@amd.com"><Ruijing.Dong@amd.com></a><br>
> Subject: [PATCH] drm/amdgpu: drop some kernel
messages in VCN code<br>
><br>
> We have messages when the VCN fails to
initialize and there is no need to report on
success.<br>
> Also PSP loading FWs is the default for
production.<br>
><br>
> Signed-off-by: David (Ming Qiang) Wu
<a class="moz-txt-link-rfc2396E" href="mailto:David.Wu3@amd.com"><David.Wu3@amd.com></a><br>
> ---<br>
> drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 1
- drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c | 3
--- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c | 10
+---------<br>
> 3 files changed, 1 insertion(+), 13
deletions(-)<br>
><br>
> diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c<br>
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c<br>
> index b89605b400c0..5e2b7c340724 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c<br>
> @@ -1078,7 +1078,6 @@ void
amdgpu_vcn_setup_ucode(struct amdgpu_device *adev)<br>
> IP_VERSION(4, 0,
3))<br>
> break;<br>
> }<br>
> - dev_info(adev->dev, "Will
use PSP to load VCN firmware\n");<br>
> }<br>
> }<br>
><br>
> diff --git
a/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c<br>
> b/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c<br>
> index 64c856bfe0cb..68ef29bc70e2 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c<br>
> @@ -145,8 +145,6 @@ static int
jpeg_v5_0_0_hw_init(void *handle)<br>
> if (r)<br>
> return r;<br>
><br>
> - DRM_DEV_INFO(adev->dev, "JPEG decode
initialized successfully.\n");<br>
> -<br>
> return 0;<br>
> }<br>
><br>
> @@ -549,7 +547,6 @@ static const struct
amdgpu_ring_funcs jpeg_v5_0_0_dec_ring_vm_funcs = {
static void jpeg_v5_0_0_set_dec_ring_funcs(struct
amdgpu_device *adev) {<br>
>
adev->jpeg.inst->ring_dec->funcs =
&jpeg_v5_0_0_dec_ring_vm_funcs;<br>
> - DRM_DEV_INFO(adev->dev, "JPEG decode
is enabled in VM mode\n");<br>
> }<br>
><br>
> static const struct amdgpu_irq_src_funcs
jpeg_v5_0_0_irq_funcs = {<br>
> diff --git
a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c<br>
> b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c<br>
> index 36d4ca645c56..070b56610c7d 100644<br>
> --- a/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c<br>
> +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c<br>
> @@ -200,16 +200,10 @@ static int
vcn_v5_0_0_hw_init(void *handle)<br>
><br>
> r =
amdgpu_ring_test_helper(ring);<br>
> if (r)<br>
> - goto done;<br>
> + return r;<br>
> }<br>
> [Ruijing] Are we assuming the hw init process
always be successful?<br>
<br>
No - it could fail with errors and in this case the
top level will report error. Otherwise it will
succeed(and no need to report successful message).<br>
<br>
David<br>
<br>
> return 0;<br>
> -done:<br>
> - if (!r)<br>
> - DRM_INFO("VCN decode and encode
initialized successfully(under %s).\n",<br>
> - (adev->pg_flags
& AMD_PG_SUPPORT_VCN_DPG)?"DPG Mode":"SPG
Mode");<br>
> -<br>
> - return r;<br>
> }<br>
><br>
> /**<br>
> @@ -1122,8 +1116,6 @@ static void<br>
> vcn_v5_0_0_set_unified_ring_funcs(struct
amdgpu_device *adev)<br>
><br>
>
adev->vcn.inst[i].ring_enc[0].funcs =
&vcn_v5_0_0_unified_ring_vm_funcs;<br>
>
adev->vcn.inst[i].ring_enc[0].me = i;<br>
> -<br>
> - DRM_INFO("VCN(%d) encode/decode
are enabled in VM mode\n", i);<br>
> }<br>
> }<br>
><br>
> --<br>
> 2.34.1<br>
><br>
</span></font></div>
</span></font></div>
</div>
</blockquote>
<br>
</body>
</html>