From: "Kazlauskas, Nicholas" <Nicholas.Kazlauskas@amd.com>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Cc: Petri Latvala <petri.latvala@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t v2] lib/igt_kms: Don't reset VRR_ENABLED on every commit
Date: Thu, 31 Jan 2019 15:09:52 +0000 [thread overview]
Message-ID: <c61c5c90-9fbe-c75d-5c08-dde0c84e3ffb@amd.com> (raw)
In-Reply-To: <7f3ad6a8-0ce9-015f-7449-4b0a2aa792c2@linux.intel.com>
On 1/31/19 9:53 AM, Maarten Lankhorst wrote:
> Op 31-01-2019 om 15:48 schreef Nicholas Kazlauskas:
>> If the VRR tests failed then there was a chance that VRR could be
>> left enabled when exiting the test so the VRR_ENABLED property was
>> reset to 0 whenever the pipe was reset.
>>
>> However, in doing so the pipe's state was considered changed even
>> if VRR_ENABLED was already 0. This causes the pipe to be added to
>> commits where it previously wasn't.
>>
>> Other tests with properties that can persist for failures (like color
>> management) don't bother resetting the properties - so this patch
>> changes VRR_ENABLED to work the same.
>>
>> Cc: Harry Wentland <harry.wentland@amd.com>
>> Cc: Petri Latvala <petri.latvala@intel.com>
>> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109490
>> Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
>> ---
>> lib/igt_kms.c | 3 ---
>> 1 file changed, 3 deletions(-)
>>
>> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
>> index 71df98d2..0bec3734 100644
>> --- a/lib/igt_kms.c
>> +++ b/lib/igt_kms.c
>> @@ -1791,9 +1791,6 @@ static void igt_pipe_reset(igt_pipe_t *pipe)
>> igt_pipe_obj_set_prop_value(pipe, IGT_CRTC_ACTIVE, 0);
>> igt_pipe_obj_clear_prop_changed(pipe, IGT_CRTC_OUT_FENCE_PTR);
>>
>> - if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_VRR_ENABLED))
>> - igt_pipe_obj_set_prop_value(pipe, IGT_CRTC_VRR_ENABLED, 0);
>> -
>> pipe->out_fence_fd = -1;
>> }
>>
>
> It's ok to force it disabled if any test could start failing because of it? Most tests are probably not aware of VRR.
>
A lot of atomic state can persist outside of an intended test. I
couldn't really find anywhere that explicitly resets CRTC properties
like gamma/background color/etc.
So I currently disable vrr before I check the main pass/fail threshold
in the test. There are a few cases where the test can still fail while
it's enabled, but those are mostly system failures. This bit in igt_kms
is kind of redundant in that sense.
This patch aims to keep things they were before, where one test failure
can cascade and cause many other tests to fail. I personally favor full
test isolation when possible so I can tell what specifically went wrong
when something happens but when everything breaks I guess it gives more
incentive to address the breakage itself.
Nicholas Kazlauskas
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-01-31 15:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-31 14:48 [igt-dev] [PATCH i-g-t v2] lib/igt_kms: Don't reset VRR_ENABLED on every commit Nicholas Kazlauskas
2019-01-31 14:53 ` Maarten Lankhorst
2019-01-31 15:09 ` Kazlauskas, Nicholas [this message]
2019-01-31 15:57 ` Maarten Lankhorst
2019-02-05 16:16 ` Wentland, Harry
2019-01-31 16:26 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_kms: Don't reset VRR_ENABLED on every commit (rev2) Patchwork
2019-02-01 0:05 ` [igt-dev] ✓ Fi.CI.IGT: " 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=c61c5c90-9fbe-c75d-5c08-dde0c84e3ffb@amd.com \
--to=nicholas.kazlauskas@amd.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=petri.latvala@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