Skip to contentSkip to conversation

tests/kms_plane_scaling: modify fb height for yuv planar

PATCH In review Vidya Srinivas 3 participants 4 messages Mar 21, 2018 – Mar 23, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/kms_plane_scaling: modify fb height for yuv planar

fb src height to be more than minimum scanlines for planar formats like NV12. Changing the fb height to 19
so that the height is more than min value after KMD adjustments

Credits-to: Maarten Lankhorst <[email protected]>

---
 tests/kms_plane_scaling.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
tests/kms_plane_scaling.c +4 -2
index 36fcfc0..027b42e 100644
@@ -130,9 +130,11 @@ static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane,
 	mode = igt_output_get_mode(output);
 
 	/* create buffer in the range of  min and max source side limit.*/
-	width = height = 9;
 	if (pixel_format == DRM_FORMAT_NV12)
-		width = height = 17;
+		width = height = 19;
+	else
+		width = height = 9;
+
 	igt_create_color_fb(display->drm_fd, width, height,
 		       pixel_format, tiling, 0.0, 1.0, 0.0, &d->fb[0]);
 	igt_plane_set_fb(plane, &d->fb[0]);
Signature · 6 lines
2.7.4

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw

[igt-dev] ✗ Fi.CI.BAT: warning for tests/kms_plane_scaling: modify fb height for yuv planar (rev3)

== Series Details ==

== Series Details ==

Series: tests/kms_plane_scaling: modify fb height for yuv planar (rev3)
URL : https://patchwork.freedesktop.org/series/40343/
State : warning

== Summary ==

IGT patchset tested on top of latest successful build 94e886203a99ef19b8319489a45cd348e76e8ccd igt: Replace 'all-engines' magic numbers with macro

with latest DRM-Tip kernel build CI_DRM_3958
9d737cebc219 drm-tip: 2018y-03m-20d-14h-56m-05s UTC integration manifest

No testlist changes.

---- Possible new issues:

Test kms_flip:

        Subgroup basic-flip-vs-wf_vblank:
                pass       -> DMESG-WARN (fi-skl-6700hq)
        Subgroup basic-plain-flip:
                pass       -> DMESG-WARN (fi-skl-6700hq)

---- Known issues:

Test debugfs_test:

        Subgroup read_all_entries:
                pass       -> INCOMPLETE (fi-snb-2520m) fdo#103713
Test gem_mmap_gtt:
        Subgroup basic-small-bo-tiledx:
                pass       -> FAIL       (fi-gdg-551) fdo#102575
Test kms_busy:
        Subgroup basic-flip-b:
                pass       -> DMESG-WARN (fi-skl-6700hq) fdo#101144 +2
Test kms_pipe_crc_basic:
        Subgroup suspend-read-crc-pipe-a:
                incomplete -> PASS       (fi-cfl-s2) fdo#105641

fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fdo#102575 https://bugs.freedesktop.org/show_bug.cgi?id=102575
fdo#101144 https://bugs.freedesktop.org/show_bug.cgi?id=101144
fdo#105641 https://bugs.freedesktop.org/show_bug.cgi?id=105641

fi-bdw-5557u     total:285  pass:264  dwarn:0   dfail:0   fail:0   skip:21  time:436s
fi-bdw-gvtdvm    total:285  pass:261  dwarn:0   dfail:0   fail:0   skip:24  time:443s
fi-blb-e6850     total:285  pass:220  dwarn:1   dfail:0   fail:0   skip:64  time:381s
fi-bsw-n3050     total:285  pass:239  dwarn:0   dfail:0   fail:0   skip:46  time:537s
fi-bwr-2160      total:285  pass:180  dwarn:0   dfail:0   fail:0   skip:105 time:299s
fi-bxt-dsi       total:285  pass:255  dwarn:0   dfail:0   fail:0   skip:30  time:514s
fi-bxt-j4205     total:285  pass:256  dwarn:0   dfail:0   fail:0   skip:29  time:509s
fi-byt-j1900     total:285  pass:250  dwarn:0   dfail:0   fail:0   skip:35  time:520s
fi-byt-n2820     total:285  pass:246  dwarn:0   dfail:0   fail:0   skip:39  time:505s
fi-cfl-8700k     total:285  pass:257  dwarn:0   dfail:0   fail:0   skip:28  time:412s
fi-cfl-s2        total:285  pass:259  dwarn:0   dfail:0   fail:0   skip:26  time:576s
fi-cfl-u         total:285  pass:259  dwarn:0   dfail:0   fail:0   skip:26  time:511s
fi-cnl-drrs      total:285  pass:254  dwarn:3   dfail:0   fail:0   skip:28  time:521s
fi-elk-e7500     total:285  pass:225  dwarn:1   dfail:0   fail:0   skip:59  time:426s
fi-gdg-551       total:285  pass:176  dwarn:0   dfail:0   fail:1   skip:108 time:318s
fi-glk-1         total:285  pass:257  dwarn:0   dfail:0   fail:0   skip:28  time:537s
fi-hsw-4770      total:285  pass:258  dwarn:0   dfail:0   fail:0   skip:27  time:409s
fi-ilk-650       total:285  pass:225  dwarn:0   dfail:0   fail:0   skip:60  time:422s
fi-ivb-3520m     total:285  pass:256  dwarn:0   dfail:0   fail:0   skip:29  time:475s
fi-ivb-3770      total:285  pass:252  dwarn:0   dfail:0   fail:0   skip:33  time:435s
fi-kbl-7500u     total:285  pass:260  dwarn:1   dfail:0   fail:0   skip:24  time:478s
fi-kbl-7567u     total:285  pass:265  dwarn:0   dfail:0   fail:0   skip:20  time:470s
fi-kbl-r         total:285  pass:258  dwarn:0   dfail:0   fail:0   skip:27  time:514s
fi-pnv-d510      total:285  pass:219  dwarn:1   dfail:0   fail:0   skip:65  time:654s
fi-skl-6260u     total:285  pass:265  dwarn:0   dfail:0   fail:0   skip:20  time:442s
fi-skl-6600u     total:285  pass:258  dwarn:0   dfail:0   fail:0   skip:27  time:538s
fi-skl-6700hq    total:285  pass:254  dwarn:5   dfail:0   fail:0   skip:26  time:554s
fi-skl-6700k2    total:285  pass:261  dwarn:0   dfail:0   fail:0   skip:24  time:502s
fi-skl-6770hq    total:285  pass:265  dwarn:0   dfail:0   fail:0   skip:20  time:510s
fi-skl-guc       total:285  pass:257  dwarn:0   dfail:0   fail:0   skip:28  time:429s
fi-snb-2520m     total:3    pass:2    dwarn:0   dfail:0   fail:0   skip:0  
fi-snb-2600      total:285  pass:245  dwarn:0   dfail:0   fail:0   skip:40  time:399s

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1174/issues.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#2 lore raw
In reply to Vidya Srinivas

Op 21-03-18 om 06:06 schreef Vidya Srinivas:

Quoted 19 lines

fb src height to be more than minimum scanlines for planar formats like NV12. Changing the fb height to 19
so that the height is more than min value after KMD adjustments

Credits-to: Maarten Lankhorst <[email protected]>

---
 tests/kms_plane_scaling.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
tests/kms_plane_scaling.c +0 -0
index 36fcfc0..027b42e 100644
@@ -130,9 +130,11 @@ static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane,
 	mode = igt_output_get_mode(output);
 
 	/* create buffer in the range of  min and max source side limit.*/

tests/kms_plane_scaling.c static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane, · line 140

Quoted 10 lines
tests/kms_plane_scaling.c +4 -2
-	width = height = 9;
 	if (pixel_format == DRM_FORMAT_NV12)
-		width = height = 17;
+		width = height = 19;
+	else
+		width = height = 9;
+
 	igt_create_color_fb(display->drm_fd, width, height,
 		       pixel_format, tiling, 0.0, 1.0, 0.0, &d->fb[0]);
 	igt_plane_set_fb(plane, &d->fb[0]);

But in all seriousness, if we create underruns should we simply refuse to show NV12 with -EINVAL if it's not correctly aligned?

I can understand that we don't do it for legacy formats, but don't see why we can't do it for NV12. Especially since it's a corner case that

could be understandable if you know the hw format as well.

~Maarten

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#3 lore raw
Quoted 46 lines

-----Original Message-----
From: Maarten Lankhorst [mailto:[email protected]]
Sent: Wednesday, March 21, 2018 5:08 PM
To: Srinivas, Vidya <[email protected]>; [email protected]
Cc: Kamath, Sunil <[email protected]>; Shankar, Uma <[email protected]>
Subject: Re: [PATCH i-g-t] [i-g-t] tests/kms_plane_scaling: modify fb height for yuv planar

Op 21-03-18 om 06:06 schreef Vidya Srinivas:

tests/kms_plane_scaling.c static void check_scaling_pipe_plane_rot(data_t

Quoted 16 lines

fb src height to be more than minimum scanlines for planar formats like NV12. Changing the fb height to 19 so that the height is more than min value after KMD adjustments

Credits-to: Maarten Lankhorst <[email protected]>

---
 tests/kms_plane_scaling.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
tests/kms_plane_scaling.c +0 -0
index 36fcfc0..027b42e 100644
@@ -130,9 +130,11 @@ static void check_scaling_pipe_plane_rot(data_t

*d, igt_plane_t *plane,

tests/kms_plane_scaling.c static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane, · line 140

Quoted 13 lines
tests/kms_plane_scaling.c +4 -2
 	mode = igt_output_get_mode(output);
 
 	/* create buffer in the range of  min and max source side limit.*/
-	width = height = 9;
 	if (pixel_format == DRM_FORMAT_NV12)
-		width = height = 17;
+		width = height = 19;
+	else
+		width = height = 9;
+
 	igt_create_color_fb(display->drm_fd, width, height,
 		       pixel_format, tiling, 0.0, 1.0, 0.0, &d->fb[0]);
 	igt_plane_set_fb(plane, &d->fb[0]);

But in all seriousness, if we create underruns should we simply refuse to show NV12 with -EINVAL if it's not correctly aligned?

Quoted 5 lines

I can understand that we don't do it for legacy formats, but don't see why we can't do it for NV12. Especially since it's a corner case that

could be understandable if you know the hw format as well.

True. We could. But the results are inconsistent as per observation currently. As in: even when the final calculated width and height (just before writing to Plane size) is multiplier of 4 (like 28x28), we saw underrun.

But as per your suggestion, when we use 19x19 and add checks for primary plane and adjustments which were being done for sprite, no underruns are seen.
Can we go ahead with this and KMD changes submitted on trybot? Could you please have a check?
https://patchwork.freedesktop.org/series/38919/ - please check rev 16 of the series. Thanks much.

Regards
Vidya

Quoted 1 line

~Maarten

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev