From: "Souza, Jose" <jose.souza@intel.com>
To: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
"Pandiyan, Dhinakaran" <dhinakaran.pandiyan@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_dp_dsc: Disable DSC even if enabling failed
Date: Fri, 22 Mar 2019 20:33:49 +0000 [thread overview]
Message-ID: <27039e7645410bbb1804454df624bf3a22911deb.camel@intel.com> (raw)
In-Reply-To: <20190321231822.9118-1-dhinakaran.pandiyan@intel.com>
[-- Attachment #1.1: Type: text/plain, Size: 2639 bytes --]
On Thu, 2019-03-21 at 16:18 -0700, Dhinakaran Pandiyan wrote:
> The test leaves the debugfs flag enabled if the driver failed to
> enable
> DSC. And is it turns out, the feature gets enabled only after the
> test
> completes and consequently affects PSR2 tests that follow. Let's make
> sure
> the test cleans up correctly, even if the DSC test itself needs to be
> fixed.
>
> Also included some formatting fixes within the function.
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
>
> Cc: José Roberto de Souza <jose.souza@intel.com>
> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
> ---
> tests/kms_dp_dsc.c | 23 ++++++++++++++++-------
> 1 file changed, 16 insertions(+), 7 deletions(-)
>
> diff --git a/tests/kms_dp_dsc.c b/tests/kms_dp_dsc.c
> index 9792be33..da93cd74 100644
> --- a/tests/kms_dp_dsc.c
> +++ b/tests/kms_dp_dsc.c
> @@ -157,14 +157,16 @@ static void update_display(data_t *data, enum
> dsc_test_type test_type)
>
> if (data->connector->connector_type ==
> DRM_MODE_CONNECTOR_DisplayPort &&
> data->pipe == PIPE_A) {
> - igt_debug ("DSC not supported on Pipe A on external
> DP\n");
> + igt_debug("DSC not supported on Pipe A on external
> DP\n");
> return;
> }
>
> if (test_type == test_basic_dsc_enable) {
> - igt_debug ("DSC is supported on %s\n",
> - data->conn_name);
> + bool enabled;
> +
> + igt_debug("DSC is supported on %s\n", data->conn_name);
> force_dp_dsc_enable(data);
> +
> igt_create_pattern_fb(data->drm_fd, data->mode-
> >hdisplay,
> data->mode->vdisplay,
> DRM_FORMAT_XRGB8888,
> @@ -174,13 +176,20 @@ static void update_display(data_t *data, enum
> dsc_test_type test_type)
> DRM_PLANE_TYPE_PRIM
> ARY);
> igt_plane_set_fb(primary, &data->fb_test_pattern);
> igt_display_commit(&data->display);
> - /* Until we have CRC check support, manually check if
> RGB test pattern has no corruption */
> - manual ("RGB test pattern without corruption");
> - igt_assert_f(is_dp_dsc_enabled(data),
> +
> + /*
> + * Until we have CRC check support, manually check if
> RGB test
> + * pattern has no corruption.
> + */
> + manual("RGB test pattern without corruption");
> +
> + enabled = is_dp_dsc_enabled(data);
> + clear_dp_dsc_enable(data);
> +
> + igt_assert_f(enabled,
> "Default DSC enable failed on Connector:
> %s Pipe: %s",
> data->conn_name,
> kmstest_pipe_name(data->pipe));
> - clear_dp_dsc_enable(data);
> } else {
> igt_assert(!"Unknown test type\n");
Ugr
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 153 bytes --]
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-03-22 20:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-21 23:18 [igt-dev] [PATCH i-g-t] tests/kms_dp_dsc: Disable DSC even if enabling failed Dhinakaran Pandiyan
2019-03-21 23:50 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-03-22 19:02 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_dp_dsc: Disable DSC even if enabling failed (rev2) Patchwork
2019-03-22 20:33 ` Souza, Jose [this message]
2019-03-25 18:17 ` [igt-dev] [PATCH i-g-t] tests/kms_dp_dsc: Disable DSC even if enabling failed Dhinakaran Pandiyan
2019-03-23 18:25 ` [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_dp_dsc: Disable DSC even if enabling failed (rev2) Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=27039e7645410bbb1804454df624bf3a22911deb.camel@intel.com \
--to=jose.souza@intel.com \
--cc=dhinakaran.pandiyan@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox