From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Dhinakaran Pandiyan <dhinakaran.pandiyan@gmail.com>
Cc: igt-dev@lists.freedesktop.org,
Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/psr: Skip if PSR cannot be enabled for the current mode.
Date: Wed, 1 Aug 2018 21:58:30 -0700 [thread overview]
Message-ID: <20180802045830.GA9743@intel.com> (raw)
In-Reply-To: <20180801064323.14110-1-dhinakaran.pandiyan@intel.com>
On Tue, Jul 31, 2018 at 11:43:23PM -0700, Dhinakaran Pandiyan wrote:
> PSR tests on ICL fail waiting for PSR to become active, whereas the
> driver does not enable it on the HW due to unmet timing requirements
> [ 482.485873] [drm:intel_dp_compute_config [i915]] PSR condition failed: PSR setup time (330 us) too long
> We should probably bring back the kernel patch that programmed an alternate
> mode, but skip tests for now.
I'm in favor of allowing alternate modes. If panel advertises 2 modes
I believe we should be able to support both and unblock cases like this.
But it need to be done correctly this time...
>
> Cc: José Roberto de Souza <jose.souza@intel.com>
> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
> ---
> tests/kms_psr.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/tests/kms_psr.c b/tests/kms_psr.c
> index 218b3960..89118ad4 100644
> --- a/tests/kms_psr.c
> +++ b/tests/kms_psr.c
> @@ -193,11 +193,19 @@ static bool sink_support(data_t *data)
> char buf[512];
>
> igt_debugfs_read(data->drm_fd, "i915_edp_psr_status", buf);
> -
> return data->with_psr_disabled ||
> strstr(buf, "Sink_Support: yes\n");
> }
>
> +static bool mode_support(data_t *data)
> +{
> + char buf[512];
> +
> + igt_debugfs_read(data->drm_fd, "i915_edp_psr_status", buf);
> + return data->with_psr_disabled ||
> + strstr(buf, "Enabled: yes\n");
> +}
> +
> static bool psr_wait_entry_if_enabled(data_t *data)
> {
> if (data->with_psr_disabled)
> @@ -422,6 +430,8 @@ int main(int argc, char *argv[])
> drm_intel_bufmgr_gem_enable_reuse(data.bufmgr);
>
> display_init(&data);
> + igt_require_f(mode_support(&data),
> + "PSR not enabled for current mode\n");
> }
>
> igt_subtest("basic") {
> --
> 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
prev parent reply other threads:[~2018-08-02 4:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-01 6:43 [igt-dev] [PATCH i-g-t] tests/psr: Skip if PSR cannot be enabled for the current mode Dhinakaran Pandiyan
2018-08-01 8:47 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-08-01 8:59 ` [igt-dev] [PATCH i-g-t] " Chris Wilson
2018-08-01 19:05 ` Dhinakaran Pandiyan
2018-08-01 19:34 ` Chris Wilson
2018-08-01 9:49 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork
2018-08-01 20:03 ` [igt-dev] [PATCH i-g-t] " Souza, Jose
2018-08-01 21:17 ` Dhinakaran Pandiyan
2018-08-01 20:19 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-08-01 21:09 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-08-02 4:58 ` Rodrigo Vivi [this message]
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=20180802045830.GA9743@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=dhinakaran.pandiyan@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.