From: "Souza, Jose" <jose.souza@intel.com>
To: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
"maarten.lankhorst@linux.intel.com"
<maarten.lankhorst@linux.intel.com>
Cc: "Pandiyan, Dhinakaran" <dhinakaran.pandiyan@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t] lib/psr: Fix skips on kms_frontbuffer_tracking on !PSR capable platforms.
Date: Mon, 28 Jan 2019 23:08:59 +0000 [thread overview]
Message-ID: <d2ceaf80cacb90a0900bf9944573cf19aaf1b165.camel@intel.com> (raw)
In-Reply-To: <20190128125037.24541-1-maarten.lankhorst@linux.intel.com>
[-- Attachment #1.1: Type: text/plain, Size: 2267 bytes --]
On Mon, 2019-01-28 at 13:50 +0100, Maarten Lankhorst wrote:
> We unconditionally call psr_disable in kms_frontbuffer_tracking,
> which
> causes a skipping of all tests on PSR incapable platforms. Use a
> proper
> int in psr_set() and use -1 to denote disable.
The call to disable_features() is the one causing problems? Could share
one report with this problem?
If this is the case would not be easier just do this?
static bool disable_features(const struct test_mode *t)
{
bool ret = true;
if (t->feature == FEATURE_DEFAULT)
return false;
fbc_disable();
drrs_disable();
if (psr.can_test)
ret = psr_disable(drm.debugfs);
return ret;
}
>
> Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
> Cc: José Roberto de Souza <jose.souza@intel.com>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> ---
> lib/igt_psr.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/lib/igt_psr.c b/lib/igt_psr.c
> index d726fad58e9d..5eb6d2c6ace5 100644
> --- a/lib/igt_psr.c
> +++ b/lib/igt_psr.c
> @@ -100,13 +100,13 @@ static void restore_psr_debugfs(int sig)
> psr_write(psr_restore_debugfs_fd, "0");
> }
>
> -static bool psr_set(int debugfs_fd, enum psr_mode mode)
> +static bool psr_set(int debugfs_fd, int mode)
> {
> int ret;
>
> ret = has_psr_debugfs(debugfs_fd);
> if (ret == -ENODEV) {
> - igt_skip("PSR not available\n");
> + igt_skip_on_f(mode >= PSR_MODE_1, "PSR not
> available\n");
> return false;
> }
>
> @@ -117,7 +117,7 @@ static bool psr_set(int debugfs_fd, enum psr_mode
> mode)
> * version enabled and the PSR version of the test, it
> will
> * fail in the first psr_wait_entry() of the test.
> */
> - ret = psr_modparam_set(mode <= PSR_MODE_2);
> + ret = psr_modparam_set(mode >= PSR_MODE_1);
> } else {
> const char *debug_val;
>
> @@ -155,7 +155,7 @@ bool psr_enable(int debugfs_fd, enum psr_mode
> mode)
> bool psr_disable(int debugfs_fd)
> {
> /* Any mode different than PSR_MODE_1/2 will disable PSR */
> - return psr_set(debugfs_fd, PSR_MODE_2 + 1);
> + return psr_set(debugfs_fd, -1);
> }
>
> bool psr_sink_support(int debugfs_fd, enum psr_mode mode)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
prev parent reply other threads:[~2019-01-28 23:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-28 12:50 [igt-dev] [PATCH i-g-t] lib/psr: Fix skips on kms_frontbuffer_tracking on !PSR capable platforms Maarten Lankhorst
2019-01-28 13:25 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2019-01-28 16:33 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/psr: Fix skips on kms_frontbuffer_tracking on !PSR capable platforms. (rev2) Patchwork
2019-01-28 20:53 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-01-28 23:08 ` Souza, Jose [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=d2ceaf80cacb90a0900bf9944573cf19aaf1b165.camel@intel.com \
--to=jose.souza@intel.com \
--cc=dhinakaran.pandiyan@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=maarten.lankhorst@linux.intel.com \
/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