<html 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)">
<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;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello Kamil,</p>
<p class="MsoNormal">Thanks for the inputs.</p>
<p class="MsoNormal">I will keep note this comments and update this patch for the same.
</p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:kamil.konieczny@linux.intel.com">Kamil Konieczny</a><br>
<b>Sent: </b>Tuesday, January 3, 2023 8:20 PM<br>
<b>To: </b><a href="mailto:igt-dev@lists.freedesktop.org">igt-dev@lists.freedesktop.org</a><br>
<b>Cc: </b><a href="mailto:dnyaneshwar.bhadane@intel.com">Bhadane, Dnyaneshwar</a>;
<a href="mailto:chaitanya.kumar.borah@intel.com">Borah, Chaitanya Kumar</a>; <a href="mailto:suresh.kumar.kurmi@intel.com">
Kurmi, Suresh Kumar</a>; <a href="mailto:swati2.sharma@intel.com">Sharma, Swati2</a><br>
<b>Subject: </b>Re: [igt-dev] [i-g-t] tests/kms_cursor_crc: Add Gaurd for MSO eDP for Pipe C and D</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi,<br>
<br>
On 2022-12-30 at 12:16:38 +0530, bhadanednyaneshwar wrote:<br>
> MSO eDP is not supported on pipe C and D. Added a test condition<br>
------------------------------------------- ^<br>
> to prevent tests from execution on pipe C and D.This condition was<br>
> missed for cursor-size-change,cursor-alpha-opaque and<br>
> cursor-alpha-transparent testcases.<br>
<br>
Please improve a little commit message, you just added skips for<br>
not supported cursors in those subtests.<br>
<br>
> <br>
> Inside require_cursor_size() checks first for eligiblity to igt commit<br>
> using test buffer.For MSO eDP, It is fail to commit for pipe C/pipe D<br>
> and require_cursor_size() return non zero value. So it will skip<br>
> the dynamic testcase for pipe C and D.<br>
<br>
The above paragraph is spelling what you done. Will it only skip<br>
for pipe C and D ? Or any pipe on which it cannot create cursor ?<br>
<br>
You can add cc here:<br>
<br>
Cc: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com><br>
Cc: Suresh Kumar Kurmi <suresh.kumar.kurmi@intel.com><br>
Cc: Swati Sharma <swati2.sharma@intel.com><br>
> <br>
> Signed-off-by: bhadanednyaneshwar <dnyaneshwar.bhadane@intel.com><br>
---------------- ^<br>
Please put here your name (look for example for Swati), I guess<br>
it should be<br>
<br>
Signed-off-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com><br>
<br>
but if I guess wrong please put correct one (it is best to put this<br>
in global git config).<br>
<br>
> ---<br>
>  tests/kms_cursor_crc.c | 21 ++++++++++++++++++---<br>
>  1 file changed, 18 insertions(+), 3 deletions(-)<br>
> <br>
> diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c<br>
> index 17f294d6..d8fb9c0d 100644<br>
> --- a/tests/kms_cursor_crc.c<br>
> +++ b/tests/kms_cursor_crc.c<br>
> @@ -786,7 +786,12 @@ static void run_tests_on_pipe(data_t *data)<br>
>        igt_subtest_with_dynamic("cursor-size-change") {<br>
>                for_each_pipe(&data->display, pipe) {<br>
>                        data->pipe = pipe;<br>
> -<br>
> +                     create_cursor_fb(data, data->cursor_max_w, data->cursor_max_h);<br>
----------------------- ^<br>
Do you really need this here ? It is used elsewhere within fixup<br>
(there is assert in this function), in other tests below<br>
require_cursor_size is called without create_cursor_fb<br>
<br>
> +                     if (require_cursor_size(data, data->cursor_max_w, data->cursor_max_h)) {<br>
> +                             igt_debug("Cursor size %dx%d not supported by driver\n",<br>
> +                                       data->cursor_max_w, data->cursor_max_h);<br>
> +                             continue;<br>
> +                     }<br>
<br>
Put newline here.<br>
<br>
>                        igt_dynamic_f("pipe-%s-%s",<br>
>                                      kmstest_pipe_name(pipe),<br>
>                                      data->output->name)<br>
> @@ -800,7 +805,12 @@ static void run_tests_on_pipe(data_t *data)<br>
>        igt_subtest_with_dynamic("cursor-alpha-opaque") {<br>
>                for_each_pipe(&data->display, pipe) {<br>
>                        data->pipe = pipe;<br>
> -<br>
> +                     create_cursor_fb(data, data->cursor_max_w, data->cursor_max_h);<br>
----------------------- ^<br>
> +                     if (require_cursor_size(data, data->cursor_max_w, data->cursor_max_h)) {<br>
> +                             igt_debug("Cursor size %dx%d not supported by driver\n",<br>
> +                                       data->cursor_max_w, data->cursor_max_h);<br>
> +                             continue;<br>
> +                     }<br>
<br>
Put newline here.<br>
<br>
>                        igt_dynamic_f("pipe-%s-%s",<br>
>                                      kmstest_pipe_name(pipe),<br>
>                                      data->output->name)<br>
> @@ -814,7 +824,12 @@ static void run_tests_on_pipe(data_t *data)<br>
>        igt_subtest_with_dynamic("cursor-alpha-transparent") {<br>
>                for_each_pipe(&data->display, pipe) {<br>
>                        data->pipe = pipe;<br>
> -<br>
> +                     create_cursor_fb(data, data->cursor_max_w, data->cursor_max_h);<br>
----------------------- ^<br>
> +                     if (require_cursor_size(data, data->cursor_max_w, data->cursor_max_h)) {<br>
> +                             igt_debug("Cursor size %dx%d not supported by driver\n",<br>
> +                                       data->cursor_max_w, data->cursor_max_h);<br>
> +                             continue;<br>
> +                     }<br>
<br>
Put newline here.<br>
<br>
Regards,<br>
Kamil<br>
<br>
>                        igt_dynamic_f("pipe-%s-%s",<br>
>                                      kmstest_pipe_name(pipe),<br>
>                                      data->output->name)<br>
> -- <br>
> 2.35.1<br>
> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>