Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: "Srivatsa, Anusha" <anusha.srivatsa@intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [i-g-t] tests/kms_rotation_crc: Remove hardcoding of platforms in igt_require()
Date: Wed, 14 Feb 2018 10:08:32 +0100	[thread overview]
Message-ID: <95db7a4c-da39-e96b-bc6a-4d2567d9935e@linux.intel.com> (raw)
In-Reply-To: <83F5C7385F545743AD4FB2A62F75B073338BA52B@ORSMSX108.amr.corp.intel.com>

Op 14-02-18 om 08:40 schreef Srivatsa, Anusha:
>
>> -----Original Message-----
>> From: Srivatsa, Anusha
>> Sent: Tuesday, February 13, 2018 5:09 PM
>> To: igt-dev@lists.freedesktop.org
>> Cc: Srivatsa, Anusha <anusha.srivatsa@intel.com>; Sripada, Radhakrishna
>> <radhakrishna.sripada@intel.com>; Vetter, Daniel <daniel.vetter@intel.com>;
>> Vivi, Rodrigo <rodrigo.vivi@intel.com>; Maarten Lankhorst
>> <maarten.lankhorst@linux.intel.com>; Kahola, Mika <mika.kahola@intel.com>
>> Subject: [i-g-t] tests/kms_rotation_crc: Remove hardcoding of platforms in
>> igt_require()
>>
>> Rework the rotate and reflect subtests by checking the crtc supported properties
>> against the ones that the test is testing. Remove the hardcoded platform names
>> in
>> igt_require()
>>
>> Cc: Radhakrishna Sripad <radhakrishna.sripada@intel.com>
>> Cc: Daniel Vetter <daniel.vetter@intel.com>
>> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
>> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
>> Cc: Mika Kahola <mika.kahola@intel.com>
>> Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
>> ---
>> tests/kms_rotation_crc.c | 12 +++---------
>> 1 file changed, 3 insertions(+), 9 deletions(-)
>>
>> diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index
>> 0cd5c6e..49d57a2 100644
>> --- a/tests/kms_rotation_crc.c
>> +++ b/tests/kms_rotation_crc.c
>> @@ -373,9 +373,6 @@ static void test_plane_rotation(data_t *data, int
>> plane_type, bool test_bad_form
>> 		igt_plane_t *plane;
>> 		int i, j;
>>
>> -		if (IS_CHERRYVIEW(data->devid) && pipe != PIPE_B)
>> -			continue;
>> -
>> 		igt_output_set_pipe(output, pipe);
>>
>> 		plane = igt_output_get_plane_type(output, plane_type); @@ -
>> 558,9 +555,7 @@ igt_main
>> 		igt_subtest_f("%s-rotation-%s",
>> 			      plane_test_str(subtest->plane),
>> 			      rot_test_str(subtest->rot)) {
>> -			igt_require(!(subtest->rot &
>> -				    (IGT_ROTATION_90 | IGT_ROTATION_270)) ||
>> -				    gen >= 9);
>> +			igt_require(igt_plane_get_prop(data.display.pipes-
>>> planes,
>> +IGT_PLANE_ROTATION) & subtest->rot);
> Mika, Maarten,
> Any comments?
igt_plane_get_prop returns the current value, not all supported rotations. I've retried the patch series, but if it still doesn't run you'll see a lot of PASS change to SKIP.

~Maarten
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2018-02-14  9:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-14  1:09 [igt-dev] [i-g-t] tests/kms_rotation_crc: Remove hardcoding of platforms in igt_require() Anusha Srivatsa
2018-02-14  2:01 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2018-02-14  7:40 ` [igt-dev] [i-g-t] " Srivatsa, Anusha
2018-02-14  9:08   ` Maarten Lankhorst [this message]
2018-02-14 11:39     ` Mika Kahola
2018-02-14 17:57       ` Srivatsa, Anusha
2018-02-14  9:15 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-02-14 11:16 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=95db7a4c-da39-e96b-bc6a-4d2567d9935e@linux.intel.com \
    --to=maarten.lankhorst@linux.intel.com \
    --cc=anusha.srivatsa@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