<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:"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;}
/* 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">
<div class="WordSection1">
<p class="MsoNormal">Re-reported.<o:p></o:p></p>
<p class="MsoNormal"><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> Wang, Chao-kai (Stylon) <Stylon.Wang@amd.com> <br>
<b>Sent:</b> Tuesday, October 12, 2021 10:57 PM<br>
<b>To:</b> Vudum, Lakshminarayana <lakshminarayana.vudum@intel.com>; Siqueira, Rodrigo <Rodrigo.Siqueira@amd.com>; igt-dev@lists.freedesktop.org<br>
<b>Cc:</b> Choi, Nicholas <Nicholas.Choi@amd.com>; Wentland, Harry <Harry.Wentland@amd.com>; Kazlauskas, Nicholas <Nicholas.Kazlauskas@amd.com>; contact@emersion.fr<br>
<b>Subject:</b> Re: [PATCH i-g-t v2] tests/kms_hdr: Fix failure to read output_bpc<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:5.0pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue">[AMD Official Use Only]<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="color:black">Hi Lakshminarayana,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Here it is: <a href="https://patchwork.freedesktop.org/series/95601/">https://patchwork.freedesktop.org/series/95601/</a><o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Regards<o:p></o:p></span></p>
</div>
<div id="Signature">
<div>
<div id="divtagdefaultwrapper">
<p style="background:white"><b><u><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Stylon Wang</span></u></b><span style="color:#201F1E"><o:p></o:p></span></p>
<p style="background:white;text-align:start"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">MTS Software Development Eng. |<b> AMD</b><br>
Display Solution Team</span><span style="color:#201F1E"><o:p></o:p></span></p>
<p style="background:white;text-align:start"><b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white">O</span></b><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;background:white"> +(886) 2-3789-3667
ext. 23667 <b>C</b> +(886) 921-897-142</span><span style="color:#201F1E"><o:p></o:p></span></p>
<p style="background:white;text-align:start"><b><span style="font-size:9.0pt;color:#F26522;letter-spacing:-1.4pt">----------------------------------------------------------------------------------------------------------------------------------</span></b><span style="color:#201F1E"><o:p></o:p></span></p>
<p style="background:white;text-align:start"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black;border:none windowtext 1.0pt;padding:0in">6F, 3, YuanCyu St (NanKang Software Park) Taipei, Taiwan</span><span style="color:#201F1E"><o:p></o:p></span></p>
<p style="background:white;text-align:start"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><a href="https://www.facebook.com/AMD" target="_blank">Facebook</a> | <a href="https://twitter.com/AMD" target="_blank">Twitter</a> | <a href="http://www.amd.com/" target="_blank">amd.com</a></span><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"> </span><span style="color:#201F1E"><o:p></o:p></span></p>
<p style="background:white;text-align:start"><span style="color:#201F1E"> <o:p></o:p></span></p>
</div>
</div>
</div>
</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"> Vudum, Lakshminarayana <<a href="mailto:lakshminarayana.vudum@intel.com">lakshminarayana.vudum@intel.com</a>><br>
<b>Sent:</b> October 9, 2021 5:04 AM<br>
<b>To:</b> Siqueira, Rodrigo <<a href="mailto:Rodrigo.Siqueira@amd.com">Rodrigo.Siqueira@amd.com</a>>;
<a href="mailto:igt-dev@lists.freedesktop.org">igt-dev@lists.freedesktop.org</a> <<a href="mailto:igt-dev@lists.freedesktop.org">igt-dev@lists.freedesktop.org</a>><br>
<b>Cc:</b> Choi, Nicholas <<a href="mailto:Nicholas.Choi@amd.com">Nicholas.Choi@amd.com</a>>; Wentland, Harry <<a href="mailto:Harry.Wentland@amd.com">Harry.Wentland@amd.com</a>>; Kazlauskas, Nicholas <<a href="mailto:Nicholas.Kazlauskas@amd.com">Nicholas.Kazlauskas@amd.com</a>>;
Siqueira, Rodrigo <<a href="mailto:Rodrigo.Siqueira@amd.com">Rodrigo.Siqueira@amd.com</a>>;
<a href="mailto:contact@emersion.fr">contact@emersion.fr</a> <<a href="mailto:contact@emersion.fr">contact@emersion.fr</a>>; Wang, Chao-kai (Stylon) <<a href="mailto:Stylon.Wang@amd.com">Stylon.Wang@amd.com</a>><br>
<b>Subject:</b> RE: [PATCH i-g-t v2] tests/kms_hdr: Fix failure to read output_bpc</span>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Can you please post the series link here?<br>
<br>
Lakshmi.<br>
-----Original Message-----<br>
From: Rodrigo Siqueira Jordao <<a href="mailto:rjordrigo@amd.com">rjordrigo@amd.com</a>>
<br>
Sent: Friday, October 8, 2021 12:32 PM<br>
To: <a href="mailto:igt-dev@lists.freedesktop.org">igt-dev@lists.freedesktop.org</a>; Vudum, Lakshminarayana <<a href="mailto:lakshminarayana.vudum@intel.com">lakshminarayana.vudum@intel.com</a>><br>
Cc: <a href="mailto:nicholas.choi@amd.com">nicholas.choi@amd.com</a>; <a href="mailto:harry.wentland@amd.com">
harry.wentland@amd.com</a>; <a href="mailto:nicholas.kazlauskas@amd.com">nicholas.kazlauskas@amd.com</a>;
<a href="mailto:rodrigo.siqueira@amd.com">rodrigo.siqueira@amd.com</a>; <a href="mailto:contact@emersion.fr">
contact@emersion.fr</a>; Stylon Wang <<a href="mailto:stylon.wang@amd.com">stylon.wang@amd.com</a>><br>
Subject: Re: [PATCH i-g-t v2] tests/kms_hdr: Fix failure to read output_bpc<br>
<br>
Hi Lakshminarayana,<br>
<br>
It looks like that we have another false-positive result from the CI in this patch.<br>
<br>
Thanks<br>
Siqueira<br>
<br>
On 2021-10-08 4:59 a.m., Stylon Wang wrote:<br>
> The first commit with TEST_ONLY flag in bpc-switch subtests could fail <br>
> the test, because previous state can be with any bpc or even wth no <br>
> crtc assigned to the connector.<br>
> <br>
> v2:<br>
> - Keep the test commit for its original purpose of checking<br>
> if 512x512 plane size works for the hardware.<br>
> - Add new atomic commit so the setting of 8 bpc really takes effect.<br>
> <br>
> Signed-off-by: Stylon Wang <<a href="mailto:stylon.wang@amd.com">stylon.wang@amd.com</a>><br>
> ---<br>
> tests/kms_hdr.c | 22 +++++++++++++---------<br>
> 1 file changed, 13 insertions(+), 9 deletions(-)<br>
> <br>
> diff --git a/tests/kms_hdr.c b/tests/kms_hdr.c index <br>
> 5b8529c8..273263db 100644<br>
> --- a/tests/kms_hdr.c<br>
> +++ b/tests/kms_hdr.c<br>
> @@ -213,16 +213,27 @@ static void test_bpc_switch_on_output(data_t <br>
> *data, igt_output_t *output,<br>
> <br>
> draw_hdr_pattern(&afb);<br>
> <br>
> - /* Start in 8bpc. */<br>
> + /* Plane may be required to fit fullscreen. Check it here and allow<br>
> + * smaller plane size in following tests.<br>
> + */<br>
> igt_plane_set_fb(data->primary, &afb);<br>
> igt_plane_set_size(data->primary, data->w, data->h);<br>
> - igt_output_set_prop_value(data->output, IGT_CONNECTOR_MAX_BPC, 8);<br>
> ret = igt_display_try_commit_atomic(display, DRM_MODE_ATOMIC_TEST_ONLY, NULL);<br>
> if (!ret) {<br>
> data->w = afb.width;<br>
> data->h = afb.height;<br>
> }<br>
> <br>
> + /* Start in 8bpc. */<br>
> + igt_output_set_prop_value(data->output, IGT_CONNECTOR_MAX_BPC, 8);<br>
> + igt_display_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);<br>
> + /*<br>
> + * i915 driver doesn't expose max bpc as debugfs entry,<br>
> + * so limiting assert only for amd driver.<br>
> + */<br>
> + if (is_amdgpu_device(data->fd))<br>
> + assert_output_bpc(data, 8);<br>
> +<br>
> /*<br>
> * amdgpu requires a primary plane when the CRTC is enabled.<br>
> * However, some older Intel hardware (hsw) have scaling @@ <br>
> -232,13 +243,6 @@ static void test_bpc_switch_on_output(data_t *data, igt_output_t *output,<br>
> if (!is_amdgpu_device(data->fd))<br>
> igt_plane_set_fb(data->primary, NULL);<br>
> <br>
> - /*<br>
> - * i915 driver doesn't expose max bpc as debugfs entry,<br>
> - * so limiting assert only for amd driver.<br>
> - */<br>
> - if (is_amdgpu_device(data->fd))<br>
> - assert_output_bpc(data, 8);<br>
> -<br>
> /* Switch to 10bpc. */<br>
> igt_output_set_prop_value(data->output, IGT_CONNECTOR_MAX_BPC, 10);<br>
> igt_display_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET,
<br>
> NULL);<br>
> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>