From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [CI 1/5] tests/psr: Remove option to run test with PSR disabled.
Date: Mon, 16 Jul 2018 10:35:09 -0700 [thread overview]
Message-ID: <20180716173509.GH4262@intel.com> (raw)
In-Reply-To: <20180716173157.GG4262@intel.com>
On Mon, Jul 16, 2018 at 10:31:57AM -0700, Rodrigo Vivi wrote:
> On Sat, Jul 14, 2018 at 03:19:11PM -0700, Dhinakaran Pandiyan wrote:
> > The original use for this was to validate sink CRC without PSR, now that
> > that the support for sink CRC was removed, this command line option is
> > pointless.
>
> oh... well... I still like this option...
>
> 1. If we keep the manual approach, the --no-psr is useful for people
> to understand what to expect without psr and then compare the results.
> (Specially because some of the writes that I did on the test are so
> ugly for human eyes that people would believe it is a bug :$)
>
> I also use to play with planes and cursor on non-psr panels,
> but for this second case I know that I should use, and if necessary
> improve, other tests..
oh, but in case this blocks the whole work of creating the library
feel free to ignore me and use my:
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
;)
>
> >
> > Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
> > ---
> > tests/kms_psr.c | 37 +++----------------------------------
> > 1 file changed, 3 insertions(+), 34 deletions(-)
> >
> > diff --git a/tests/kms_psr.c b/tests/kms_psr.c
> > index 4eca51da..aace884c 100644
> > --- a/tests/kms_psr.c
> > +++ b/tests/kms_psr.c
> > @@ -69,7 +69,6 @@ typedef struct {
> > int mod_stride;
> > drmModeModeInfo *mode;
> > igt_output_t *output;
> > - bool with_psr_disabled;
> > } data_t;
> >
> > static void create_cursor_fb(data_t *data)
> > @@ -193,8 +192,7 @@ static bool sink_support(data_t *data)
> >
> > igt_debugfs_read(data->drm_fd, "i915_edp_psr_status", buf);
> >
> > - return data->with_psr_disabled ||
> > - strstr(buf, "Sink_Support: yes\n");
> > + return strstr(buf, "Sink_Support: yes\n");
> > }
> >
> > static bool psr_active(data_t *data, bool check_active)
> > @@ -211,9 +209,6 @@ static bool psr_active(data_t *data, bool check_active)
> >
> > static bool wait_psr_entry(data_t *data)
> > {
> > - if (data->with_psr_disabled)
> > - return true;
> > -
> > return igt_wait((psr_active(data, true)), 500, 1);
> > }
> >
> > @@ -387,34 +382,11 @@ static void dpms_off_on(data_t *data)
> > DRM_MODE_DPMS_ON);
> > }
> >
> > -static int opt_handler(int opt, int opt_index, void *_data)
> > -{
> > - data_t *data = _data;
> > -
> > - switch (opt) {
> > - case 'n':
> > - data->with_psr_disabled = true;
> > - break;
> > - default:
> > - igt_assert(0);
> > - }
> > -
> > - return 0;
> > -}
> > -
> > -int main(int argc, char *argv[])
> > +igt_main
> > {
> > - const char *help_str =
> > - " --no-psr\tRun test without PSR.";
> > - static struct option long_options[] = {
> > - {"no-psr", 0, 0, 'n'},
> > - { 0, 0, 0, 0 }
> > - };
> > data_t data = {};
> > enum operations op;
> >
> > - igt_subtest_init_parse_opts(&argc, argv, "", long_options,
> > - help_str, opt_handler, &data);
> > igt_skip_on_simulation();
> >
> > igt_fixture {
> > @@ -423,8 +395,7 @@ int main(int argc, char *argv[])
> > kmstest_set_vt_graphics_mode();
> > data.devid = intel_get_drm_devid(data.drm_fd);
> >
> > - igt_set_module_param_int("enable_psr", data.with_psr_disabled ?
> > - 0 : 1);
> > + igt_set_module_param_int("enable_psr", 1);
> > igt_require_f(sink_support(&data),
> > "Sink does not support PSR\n");
> >
> > @@ -503,6 +474,4 @@ int main(int argc, char *argv[])
> > drm_intel_bufmgr_destroy(data.bufmgr);
> > display_fini(&data);
> > }
> > -
> > - igt_exit();
> > }
> > --
> > 2.17.1
> >
> > _______________________________________________
> > igt-dev mailing list
> > igt-dev@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/igt-dev
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2018-07-16 17:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-14 22:19 [igt-dev] [CI 1/5] tests/psr: Remove option to run test with PSR disabled Dhinakaran Pandiyan
2018-07-14 22:19 ` [igt-dev] [CI 2/5] tests/psr: Prepare for moving PSR state checking functions into lib Dhinakaran Pandiyan
2018-07-16 17:35 ` Rodrigo Vivi
2018-07-14 22:19 ` [igt-dev] [CI 3/5] tests/psr: Move PSR state test functions to lib Dhinakaran Pandiyan
2018-07-16 17:38 ` Rodrigo Vivi
2018-07-14 22:19 ` [igt-dev] [CI 4/5] tests/frontbuffer_tracking: Use the library functions to test PSR Dhinakaran Pandiyan
2018-07-16 17:39 ` Rodrigo Vivi
2018-07-14 22:19 ` [igt-dev] [CI 5/5] DEBUG/psr: Test fix for fdo #105450 Dhinakaran Pandiyan
2018-07-16 17:41 ` Rodrigo Vivi
2018-07-14 22:40 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [CI,1/5] tests/psr: Remove option to run test with PSR disabled Patchwork
2018-07-14 23:37 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-07-16 17:31 ` [igt-dev] [CI 1/5] " Rodrigo Vivi
2018-07-16 17:35 ` Rodrigo Vivi [this message]
2018-07-16 21:20 ` Dhinakaran Pandiyan
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=20180716173509.GH4262@intel.com \
--to=rodrigo.vivi@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;
as well as URLs for NNTP newsgroup(s).