* [igt-dev] [PATCH i-g-t v2] tools/amd_hdmi_compliance: Test 4K video modes with YUV encoding
@ 2019-09-12 19:28 Wang, Chao-kai (Stylon)
2019-09-12 20:05 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Wang, Chao-kai (Stylon) @ 2019-09-12 19:28 UTC (permalink / raw)
To: igt-dev@lists.freedesktop.org
From: Stylon Wang <stylon.wang@amd.com>
HDMI 2.0 compliance tests needs 4K modes with YUV encoding.
This test selects 4K modes based on specified VIC.
v2:
- rename to amd_hdmi_compliance
- replace fprintf with igt_info/warn
- use EXIT_SUCCESS/FAILURE in exit()
Signed-off-by: Stylon Wang <stylon.wang@amd.com>
---
tools/Makefile.am | 3 +
tools/Makefile.sources | 4 +
tools/amd_hdmi_compliance.c | 199 ++++++++++++++++++++++++++++++++++++
tools/meson.build | 5 +
4 files changed, 211 insertions(+)
create mode 100644 tools/amd_hdmi_compliance.c
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 4f54720f..f09e02b2 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -11,6 +11,9 @@ bin_PROGRAMS += intel_dp_compliance
intel_dp_compliance_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS)
intel_dp_compliance_LDADD = $(top_builddir)/lib/libintel_tools.la
+bin_PROGRAMS += amd_hdmi_compliance
+amd_hdmi_compliance_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS)
+
SUBDIRS = null_state_gen registers
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi -I$(top_srcdir)/lib \
diff --git a/tools/Makefile.sources b/tools/Makefile.sources
index 50706f41..d764895d 100644
--- a/tools/Makefile.sources
+++ b/tools/Makefile.sources
@@ -66,3 +66,7 @@ intel_dp_compliance_SOURCES = \
intel_dp_compliance_hotplug.c \
$(NULL)
+amd_hdmi_compliance_SOURCES = \
+ amd_hdmi_compliance.c \
+ $(NULL)
+
diff --git a/tools/amd_hdmi_compliance.c b/tools/amd_hdmi_compliance.c
new file mode 100644
index 00000000..1a759299
--- /dev/null
+++ b/tools/amd_hdmi_compliance.c
@@ -0,0 +1,199 @@
+/*
+ * Copyright 2019 Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#include "igt.h"
+
+/* Common test data */
+typedef struct data {
+ struct igt_fb pattern_fb_info;
+ int fd;
+ igt_display_t display;
+ igt_plane_t *primary;
+ igt_output_t *output;
+ igt_pipe_t *pipe;
+ enum pipe pipe_id;
+ bool use_virtual_connector;
+} data_t;
+
+/* Video modes indexed by VIC */
+static drmModeModeInfo test_modes[] = {
+ [1] = { 25175,
+ 640, 656, 752, 800, 0,
+ 480, 489, 492, 525, 0,
+ 60, 0xa, 0x40,
+ "640x480", /* VIC 1 */
+ },
+ [96] = { 594000,
+ 3840, 4896, 4984, 5280, 0,
+ 2160, 2168, 2178, 2250, 0,
+ 50, 0x5|DRM_MODE_FLAG_PIC_AR_16_9, 0x40,
+ "3840x2160", /* VIC 96 */
+ },
+ [97] = { 594000,
+ 3840, 4016, 4104, 4400, 0,
+ 2160, 2168, 2178, 2250, 0,
+ 60, 0x5|DRM_MODE_FLAG_PIC_AR_16_9, 0x40,
+ "3840x2160", /* VIC 97 */
+ },
+ [101] = { 594000,
+ 4096, 5064, 5152, 5280, 0,
+ 2160, 2168, 2178, 2250, 0,
+ 50, 0x5|DRM_MODE_FLAG_PIC_AR_256_135, 0x40,
+ "4096x2160", /* VIC 101 */
+ },
+ [102] = { 594000,
+ 4096, 4184, 4272, 4400, 0,
+ 2160, 2168, 2178, 2250, 0,
+ 60, 0x5|DRM_MODE_FLAG_PIC_AR_256_135, 0x40,
+ "4096x2160", /* VIC 102 */
+ },
+ [106] = { 594000,
+ 3840, 4896, 4984, 5280, 0,
+ 2160, 2168, 2178, 2250, 0,
+ 50, 0x5|DRM_MODE_FLAG_PIC_AR_64_27, 0x40,
+ "3840x2160", /* VIC 106 */
+ },
+ [107] = { 594000,
+ 3840, 4016, 4104, 4400, 0,
+ 2160, 2168, 2178, 2250, 0,
+ 60, 0x5|DRM_MODE_FLAG_PIC_AR_64_27, 0x40,
+ "3840x2160", /* VIC 107 */
+ },
+};
+
+/* Common test setup. */
+static void test_init(data_t *data)
+{
+ igt_display_t *display = &data->display;
+
+ data->pipe_id = PIPE_A;
+ data->pipe = &data->display.pipes[data->pipe_id];
+
+ igt_display_reset(display);
+
+ /* find a connected HDMI output */
+ data->output = NULL;
+ for (int i=0; i < data->display.n_outputs; ++i) {
+ drmModeConnector *connector = data->display.outputs[i].config.connector;
+ if (connector->connection == DRM_MODE_CONNECTED &&
+ (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA ||
+ (data->use_virtual_connector &&
+ connector->connector_type == DRM_MODE_CONNECTOR_VIRTUAL))) {
+ data->output = &data->display.outputs[i];
+ }
+ }
+
+ igt_require(data->output);
+
+ data->primary =
+ igt_pipe_get_plane_type(data->pipe, DRM_PLANE_TYPE_PRIMARY);
+
+ igt_output_set_pipe(data->output, data->pipe_id);
+
+}
+
+/* Common test cleanup. */
+static void test_fini(data_t *data)
+{
+ igt_display_reset(&data->display);
+}
+
+static void wait_for_keypress(void)
+{
+ while (getchar() != '\n')
+ ;
+}
+
+static void test_vic_mode(data_t *data, int vic)
+{
+ igt_display_t *display = &data->display;
+ drmModeModeInfo *mode;
+ igt_fb_t afb;
+
+ test_init(data);
+
+ mode = &test_modes[vic];
+
+ igt_output_override_mode(data->output, mode);
+
+ igt_create_pattern_fb(data->fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, 0, &afb);
+
+ igt_plane_set_fb(data->primary, &afb);
+
+ igt_display_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
+
+ igt_info("Press [Enter] to finish\n");
+ wait_for_keypress();
+
+ test_fini(data);
+}
+
+const char *optstr = "hvt:";
+static void usage(const char *name)
+{
+ igt_info("Usage: %s [options]\n", name);
+ igt_info("-h Show help\n");
+ igt_info("-t vic Select video mode based on VIC\n");
+ igt_info("-v Test on 'Virtual' connector as well, for debugging.\n");
+}
+
+int main(int argc, char **argv)
+{
+ data_t data;
+ int c;
+ int vic = 1; /* default to VIC 1 (640x480) */
+
+ memset(&data, 0, sizeof(data));
+
+ while((c = getopt(argc, argv, optstr)) != -1) {
+ switch(c) {
+ case 't':
+ vic = atoi(optarg);
+ break;
+ case 'v':
+ data.use_virtual_connector = true;
+ break;
+ default:
+ case 'h':
+ usage(argv[0]);
+ exit(EXIT_SUCCESS);
+ }
+ }
+
+ if (vic < 1 ||
+ vic > ARRAY_SIZE(test_modes) ||
+ !test_modes[vic].name[0]) {
+ igt_warn("VIC %d is not supported\n", vic);
+ exit(EXIT_FAILURE);
+ }
+
+ data.fd = drm_open_driver_master(DRIVER_ANY);
+ kmstest_set_vt_graphics_mode();
+
+ igt_display_require(&data.display, data.fd);
+ igt_require(data.display.is_atomic);
+ igt_display_require_output(&data.display);
+
+ test_vic_mode(&data, vic);
+
+ igt_display_fini(&data.display);
+}
diff --git a/tools/meson.build b/tools/meson.build
index 6e72b263..eecb122b 100644
--- a/tools/meson.build
+++ b/tools/meson.build
@@ -100,6 +100,11 @@ executable('intel_gpu_top', 'intel_gpu_top.c',
install_rpath : bindir_rpathdir,
dependencies : lib_igt_perf)
+executable('amd_hdmi_compliance', 'amd_hdmi_compliance.c',
+ dependencies : [tool_deps],
+ install_rpath : bindir_rpathdir,
+ install : true)
+
conf_data = configuration_data()
conf_data.set('prefix', prefix)
conf_data.set('exec_prefix', '${prefix}')
--
2.17.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for tools/amd_hdmi_compliance: Test 4K video modes with YUV encoding
2019-09-12 19:28 [igt-dev] [PATCH i-g-t v2] tools/amd_hdmi_compliance: Test 4K video modes with YUV encoding Wang, Chao-kai (Stylon)
@ 2019-09-12 20:05 ` Patchwork
2019-09-13 9:58 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-09-16 12:43 ` [igt-dev] [PATCH i-g-t v2] " Kazlauskas, Nicholas
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2019-09-12 20:05 UTC (permalink / raw)
To: Wang, Chao-kai (Stylon); +Cc: igt-dev
== Series Details ==
Series: tools/amd_hdmi_compliance: Test 4K video modes with YUV encoding
URL : https://patchwork.freedesktop.org/series/66618/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6883 -> IGTPW_3450
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/66618/revisions/1/mbox/
Known issues
------------
Here are the changes found in IGTPW_3450 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_mmap_gtt@basic-read-no-prefault:
- fi-icl-u3: [PASS][1] -> [DMESG-WARN][2] ([fdo#107724]) +2 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/fi-icl-u3/igt@gem_mmap_gtt@basic-read-no-prefault.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/fi-icl-u3/igt@gem_mmap_gtt@basic-read-no-prefault.html
* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [PASS][3] -> [DMESG-WARN][4] ([fdo#102614])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/fi-hsw-peppy/igt@kms_frontbuffer_tracking@basic.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/fi-hsw-peppy/igt@kms_frontbuffer_tracking@basic.html
#### Possible fixes ####
* igt@gem_sync@basic-each:
- {fi-tgl-u}: [INCOMPLETE][5] ([fdo#111647]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/fi-tgl-u/igt@gem_sync@basic-each.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/fi-tgl-u/igt@gem_sync@basic-each.html
* igt@i915_selftest@live_execlists:
- fi-skl-gvtdvm: [DMESG-FAIL][7] ([fdo#111108]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/fi-skl-gvtdvm/igt@i915_selftest@live_execlists.html
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][9] ([fdo#111096]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/fi-kbl-7500u/igt@kms_chamelium@hdmi-hpd-fast.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/fi-kbl-7500u/igt@kms_chamelium@hdmi-hpd-fast.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#106107]: https://bugs.freedesktop.org/show_bug.cgi?id=106107
[fdo#106350]: https://bugs.freedesktop.org/show_bug.cgi?id=106350
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[fdo#111108]: https://bugs.freedesktop.org/show_bug.cgi?id=111108
[fdo#111647]: https://bugs.freedesktop.org/show_bug.cgi?id=111647
Participating hosts (55 -> 47)
------------------------------
Missing (8): fi-ilk-m540 fi-hsw-4200u fi-tgl-u2 fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5178 -> IGTPW_3450
CI-20190529: 20190529
CI_DRM_6883: 66ebb484c4bf16531678a935499adc17c1b3be0d @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3450: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/
IGT_5178: efb4539494d94f03374874d3b61bd04ef3802aaa @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for tools/amd_hdmi_compliance: Test 4K video modes with YUV encoding
2019-09-12 19:28 [igt-dev] [PATCH i-g-t v2] tools/amd_hdmi_compliance: Test 4K video modes with YUV encoding Wang, Chao-kai (Stylon)
2019-09-12 20:05 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
@ 2019-09-13 9:58 ` Patchwork
2019-09-16 12:43 ` [igt-dev] [PATCH i-g-t v2] " Kazlauskas, Nicholas
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2019-09-13 9:58 UTC (permalink / raw)
To: Wang, Chao-kai (Stylon); +Cc: igt-dev
== Series Details ==
Series: tools/amd_hdmi_compliance: Test 4K video modes with YUV encoding
URL : https://patchwork.freedesktop.org/series/66618/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6883_full -> IGTPW_3450_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/66618/revisions/1/mbox/
Known issues
------------
Here are the changes found in IGTPW_3450_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_bad_reloc@negative-reloc-bsd2:
- shard-iclb: [PASS][1] -> [SKIP][2] ([fdo#109276]) +15 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-iclb2/igt@gem_bad_reloc@negative-reloc-bsd2.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-iclb5/igt@gem_bad_reloc@negative-reloc-bsd2.html
* igt@gem_exec_schedule@preempt-other-bsd:
- shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#111325]) +5 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-iclb8/igt@gem_exec_schedule@preempt-other-bsd.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-iclb2/igt@gem_exec_schedule@preempt-other-bsd.html
* igt@i915_pm_rc6_residency@rc6-accuracy:
- shard-kbl: [PASS][5] -> [SKIP][6] ([fdo#109271])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-kbl3/igt@i915_pm_rc6_residency@rc6-accuracy.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-kbl1/igt@i915_pm_rc6_residency@rc6-accuracy.html
* igt@i915_suspend@fence-restore-untiled:
- shard-apl: [PASS][7] -> [DMESG-WARN][8] ([fdo#108566]) +4 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-apl5/igt@i915_suspend@fence-restore-untiled.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-apl6/igt@i915_suspend@fence-restore-untiled.html
* igt@kms_cursor_crc@pipe-a-cursor-256x85-onscreen:
- shard-kbl: [PASS][9] -> [FAIL][10] ([fdo#103232])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-kbl1/igt@kms_cursor_crc@pipe-a-cursor-256x85-onscreen.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-kbl7/igt@kms_cursor_crc@pipe-a-cursor-256x85-onscreen.html
- shard-apl: [PASS][11] -> [FAIL][12] ([fdo#103232])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-apl8/igt@kms_cursor_crc@pipe-a-cursor-256x85-onscreen.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-apl2/igt@kms_cursor_crc@pipe-a-cursor-256x85-onscreen.html
* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy:
- shard-glk: [PASS][13] -> [FAIL][14] ([fdo#104873])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-glk2/igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-glk2/igt@kms_cursor_legacy@2x-long-flip-vs-cursor-legacy.html
* igt@kms_draw_crc@draw-method-xrgb8888-mmap-gtt-xtiled:
- shard-snb: [PASS][15] -> [SKIP][16] ([fdo#109271]) +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-snb5/igt@kms_draw_crc@draw-method-xrgb8888-mmap-gtt-xtiled.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-snb7/igt@kms_draw_crc@draw-method-xrgb8888-mmap-gtt-xtiled.html
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-msflip-blt:
- shard-glk: [PASS][17] -> [FAIL][18] ([fdo#103167])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-glk6/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-msflip-blt.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-glk6/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-shrfb-msflip-blt.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: [PASS][19] -> [FAIL][20] ([fdo#103167]) +4 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-iclb5/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-iclb7/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-pwrite.html
* igt@kms_psr2_su@page_flip:
- shard-iclb: [PASS][21] -> [SKIP][22] ([fdo#109642] / [fdo#111068])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-iclb2/igt@kms_psr2_su@page_flip.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-iclb4/igt@kms_psr2_su@page_flip.html
* igt@kms_psr@psr2_cursor_plane_onoff:
- shard-iclb: [PASS][23] -> [SKIP][24] ([fdo#109441]) +3 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-iclb2/igt@kms_psr@psr2_cursor_plane_onoff.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-iclb4/igt@kms_psr@psr2_cursor_plane_onoff.html
#### Possible fixes ####
* igt@gem_eio@in-flight-suspend:
- shard-apl: [DMESG-WARN][25] ([fdo#108566]) -> [PASS][26] +2 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-apl7/igt@gem_eio@in-flight-suspend.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-apl5/igt@gem_eio@in-flight-suspend.html
* igt@gem_exec_schedule@preempt-other-chain-bsd:
- shard-iclb: [SKIP][27] ([fdo#111325]) -> [PASS][28] +5 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-iclb4/igt@gem_exec_schedule@preempt-other-chain-bsd.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-iclb3/igt@gem_exec_schedule@preempt-other-chain-bsd.html
* igt@kms_flip@basic-flip-vs-dpms:
- shard-apl: [INCOMPLETE][29] ([fdo#103927]) -> [PASS][30] +2 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-apl2/igt@kms_flip@basic-flip-vs-dpms.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-apl6/igt@kms_flip@basic-flip-vs-dpms.html
* igt@kms_flip@flip-vs-expired-vblank:
- shard-glk: [FAIL][31] ([fdo#105363]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-glk2/igt@kms_flip@flip-vs-expired-vblank.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-glk2/igt@kms_flip@flip-vs-expired-vblank.html
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render:
- shard-iclb: [FAIL][33] ([fdo#103167]) -> [PASS][34] +3 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-iclb5/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-iclb1/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html
* igt@kms_psr@psr2_primary_mmap_gtt:
- shard-iclb: [SKIP][35] ([fdo#109441]) -> [PASS][36] +3 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-iclb1/igt@kms_psr@psr2_primary_mmap_gtt.html
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-iclb2/igt@kms_psr@psr2_primary_mmap_gtt.html
* igt@kms_setmode@basic:
- shard-apl: [FAIL][37] ([fdo#99912]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-apl7/igt@kms_setmode@basic.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-apl6/igt@kms_setmode@basic.html
* igt@prime_vgem@fence-wait-bsd2:
- shard-iclb: [SKIP][39] ([fdo#109276]) -> [PASS][40] +12 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-iclb5/igt@prime_vgem@fence-wait-bsd2.html
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-iclb1/igt@prime_vgem@fence-wait-bsd2.html
#### Warnings ####
* igt@gem_ctx_isolation@vcs1-nonpriv:
- shard-iclb: [FAIL][41] ([fdo#111329]) -> [SKIP][42] ([fdo#109276])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-iclb4/igt@gem_ctx_isolation@vcs1-nonpriv.html
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-iclb6/igt@gem_ctx_isolation@vcs1-nonpriv.html
* igt@gem_mocs_settings@mocs-isolation-bsd2:
- shard-iclb: [SKIP][43] ([fdo#109276]) -> [FAIL][44] ([fdo#111330])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-iclb7/igt@gem_mocs_settings@mocs-isolation-bsd2.html
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-iclb4/igt@gem_mocs_settings@mocs-isolation-bsd2.html
* igt@gem_mocs_settings@mocs-reset-bsd2:
- shard-iclb: [FAIL][45] ([fdo#111330]) -> [SKIP][46] ([fdo#109276]) +1 similar issue
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6883/shard-iclb1/igt@gem_mocs_settings@mocs-reset-bsd2.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/shard-iclb7/igt@gem_mocs_settings@mocs-reset-bsd2.html
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104873]: https://bugs.freedesktop.org/show_bug.cgi?id=104873
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325
[fdo#111329]: https://bugs.freedesktop.org/show_bug.cgi?id=111329
[fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (10 -> 6)
------------------------------
Missing (4): pig-skl-6260u shard-skl pig-hsw-4770r pig-glk-j5005
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5178 -> IGTPW_3450
* Piglit: piglit_4509 -> None
CI-20190529: 20190529
CI_DRM_6883: 66ebb484c4bf16531678a935499adc17c1b3be0d @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3450: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/
IGT_5178: efb4539494d94f03374874d3b61bd04ef3802aaa @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3450/
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [igt-dev] [PATCH i-g-t v2] tools/amd_hdmi_compliance: Test 4K video modes with YUV encoding
2019-09-12 19:28 [igt-dev] [PATCH i-g-t v2] tools/amd_hdmi_compliance: Test 4K video modes with YUV encoding Wang, Chao-kai (Stylon)
2019-09-12 20:05 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-09-13 9:58 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
@ 2019-09-16 12:43 ` Kazlauskas, Nicholas
2 siblings, 0 replies; 4+ messages in thread
From: Kazlauskas, Nicholas @ 2019-09-16 12:43 UTC (permalink / raw)
To: Wang, Chao-kai (Stylon), igt-dev@lists.freedesktop.org
On 2019-09-12 3:28 p.m., Wang, Chao-kai (Stylon) wrote:
> From: Stylon Wang <stylon.wang@amd.com>
>
> HDMI 2.0 compliance tests needs 4K modes with YUV encoding.
> This test selects 4K modes based on specified VIC.
>
> v2:
> - rename to amd_hdmi_compliance
> - replace fprintf with igt_info/warn
> - use EXIT_SUCCESS/FAILURE in exit()
>
> Signed-off-by: Stylon Wang <stylon.wang@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Commit message looks a lot better now.
I think you could probably hook this up to some of the debugfs entries
you've added in amdgpu to help automate things but that can probably be
done later.
For now I'll push since it seems to have passed all the patchwork tests.
Nicholas Kazlauskas
> ---
> tools/Makefile.am | 3 +
> tools/Makefile.sources | 4 +
> tools/amd_hdmi_compliance.c | 199 ++++++++++++++++++++++++++++++++++++
> tools/meson.build | 5 +
> 4 files changed, 211 insertions(+)
> create mode 100644 tools/amd_hdmi_compliance.c
>
> diff --git a/tools/Makefile.am b/tools/Makefile.am
> index 4f54720f..f09e02b2 100644
> --- a/tools/Makefile.am
> +++ b/tools/Makefile.am
> @@ -11,6 +11,9 @@ bin_PROGRAMS += intel_dp_compliance
> intel_dp_compliance_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS)
> intel_dp_compliance_LDADD = $(top_builddir)/lib/libintel_tools.la
>
> +bin_PROGRAMS += amd_hdmi_compliance
> +amd_hdmi_compliance_CFLAGS = $(AM_CFLAGS) $(GLIB_CFLAGS)
> +
> SUBDIRS = null_state_gen registers
>
> AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include/drm-uapi -I$(top_srcdir)/lib \
> diff --git a/tools/Makefile.sources b/tools/Makefile.sources
> index 50706f41..d764895d 100644
> --- a/tools/Makefile.sources
> +++ b/tools/Makefile.sources
> @@ -66,3 +66,7 @@ intel_dp_compliance_SOURCES = \
> intel_dp_compliance_hotplug.c \
> $(NULL)
>
> +amd_hdmi_compliance_SOURCES = \
> + amd_hdmi_compliance.c \
> + $(NULL)
> +
> diff --git a/tools/amd_hdmi_compliance.c b/tools/amd_hdmi_compliance.c
> new file mode 100644
> index 00000000..1a759299
> --- /dev/null
> +++ b/tools/amd_hdmi_compliance.c
> @@ -0,0 +1,199 @@
> +/*
> + * Copyright 2019 Advanced Micro Devices, Inc.
> + *
> + * Permission is hereby granted, free of charge, to any person obtaining a
> + * copy of this software and associated documentation files (the "Software"),
> + * to deal in the Software without restriction, including without limitation
> + * the rights to use, copy, modify, merge, publish, distribute, sublicense,
> + * and/or sell copies of the Software, and to permit persons to whom the
> + * Software is furnished to do so, subject to the following conditions:
> + *
> + * The above copyright notice and this permission notice shall be included in
> + * all copies or substantial portions of the Software.
> + *
> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
> + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
> + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
> + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
> + * OTHER DEALINGS IN THE SOFTWARE.
> + */
> +
> +#include "igt.h"
> +
> +/* Common test data */
> +typedef struct data {
> + struct igt_fb pattern_fb_info;
> + int fd;
> + igt_display_t display;
> + igt_plane_t *primary;
> + igt_output_t *output;
> + igt_pipe_t *pipe;
> + enum pipe pipe_id;
> + bool use_virtual_connector;
> +} data_t;
> +
> +/* Video modes indexed by VIC */
> +static drmModeModeInfo test_modes[] = {
> + [1] = { 25175,
> + 640, 656, 752, 800, 0,
> + 480, 489, 492, 525, 0,
> + 60, 0xa, 0x40,
> + "640x480", /* VIC 1 */
> + },
> + [96] = { 594000,
> + 3840, 4896, 4984, 5280, 0,
> + 2160, 2168, 2178, 2250, 0,
> + 50, 0x5|DRM_MODE_FLAG_PIC_AR_16_9, 0x40,
> + "3840x2160", /* VIC 96 */
> + },
> + [97] = { 594000,
> + 3840, 4016, 4104, 4400, 0,
> + 2160, 2168, 2178, 2250, 0,
> + 60, 0x5|DRM_MODE_FLAG_PIC_AR_16_9, 0x40,
> + "3840x2160", /* VIC 97 */
> + },
> + [101] = { 594000,
> + 4096, 5064, 5152, 5280, 0,
> + 2160, 2168, 2178, 2250, 0,
> + 50, 0x5|DRM_MODE_FLAG_PIC_AR_256_135, 0x40,
> + "4096x2160", /* VIC 101 */
> + },
> + [102] = { 594000,
> + 4096, 4184, 4272, 4400, 0,
> + 2160, 2168, 2178, 2250, 0,
> + 60, 0x5|DRM_MODE_FLAG_PIC_AR_256_135, 0x40,
> + "4096x2160", /* VIC 102 */
> + },
> + [106] = { 594000,
> + 3840, 4896, 4984, 5280, 0,
> + 2160, 2168, 2178, 2250, 0,
> + 50, 0x5|DRM_MODE_FLAG_PIC_AR_64_27, 0x40,
> + "3840x2160", /* VIC 106 */
> + },
> + [107] = { 594000,
> + 3840, 4016, 4104, 4400, 0,
> + 2160, 2168, 2178, 2250, 0,
> + 60, 0x5|DRM_MODE_FLAG_PIC_AR_64_27, 0x40,
> + "3840x2160", /* VIC 107 */
> + },
> +};
> +
> +/* Common test setup. */
> +static void test_init(data_t *data)
> +{
> + igt_display_t *display = &data->display;
> +
> + data->pipe_id = PIPE_A;
> + data->pipe = &data->display.pipes[data->pipe_id];
> +
> + igt_display_reset(display);
> +
> + /* find a connected HDMI output */
> + data->output = NULL;
> + for (int i=0; i < data->display.n_outputs; ++i) {
> + drmModeConnector *connector = data->display.outputs[i].config.connector;
> + if (connector->connection == DRM_MODE_CONNECTED &&
> + (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA ||
> + (data->use_virtual_connector &&
> + connector->connector_type == DRM_MODE_CONNECTOR_VIRTUAL))) {
> + data->output = &data->display.outputs[i];
> + }
> + }
> +
> + igt_require(data->output);
> +
> + data->primary =
> + igt_pipe_get_plane_type(data->pipe, DRM_PLANE_TYPE_PRIMARY);
> +
> + igt_output_set_pipe(data->output, data->pipe_id);
> +
> +}
> +
> +/* Common test cleanup. */
> +static void test_fini(data_t *data)
> +{
> + igt_display_reset(&data->display);
> +}
> +
> +static void wait_for_keypress(void)
> +{
> + while (getchar() != '\n')
> + ;
> +}
> +
> +static void test_vic_mode(data_t *data, int vic)
> +{
> + igt_display_t *display = &data->display;
> + drmModeModeInfo *mode;
> + igt_fb_t afb;
> +
> + test_init(data);
> +
> + mode = &test_modes[vic];
> +
> + igt_output_override_mode(data->output, mode);
> +
> + igt_create_pattern_fb(data->fd, mode->hdisplay, mode->vdisplay, DRM_FORMAT_XRGB8888, 0, &afb);
> +
> + igt_plane_set_fb(data->primary, &afb);
> +
> + igt_display_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
> +
> + igt_info("Press [Enter] to finish\n");
> + wait_for_keypress();
> +
> + test_fini(data);
> +}
> +
> +const char *optstr = "hvt:";
> +static void usage(const char *name)
> +{
> + igt_info("Usage: %s [options]\n", name);
> + igt_info("-h Show help\n");
> + igt_info("-t vic Select video mode based on VIC\n");
> + igt_info("-v Test on 'Virtual' connector as well, for debugging.\n");
> +}
> +
> +int main(int argc, char **argv)
> +{
> + data_t data;
> + int c;
> + int vic = 1; /* default to VIC 1 (640x480) */
> +
> + memset(&data, 0, sizeof(data));
> +
> + while((c = getopt(argc, argv, optstr)) != -1) {
> + switch(c) {
> + case 't':
> + vic = atoi(optarg);
> + break;
> + case 'v':
> + data.use_virtual_connector = true;
> + break;
> + default:
> + case 'h':
> + usage(argv[0]);
> + exit(EXIT_SUCCESS);
> + }
> + }
> +
> + if (vic < 1 ||
> + vic > ARRAY_SIZE(test_modes) ||
> + !test_modes[vic].name[0]) {
> + igt_warn("VIC %d is not supported\n", vic);
> + exit(EXIT_FAILURE);
> + }
> +
> + data.fd = drm_open_driver_master(DRIVER_ANY);
> + kmstest_set_vt_graphics_mode();
> +
> + igt_display_require(&data.display, data.fd);
> + igt_require(data.display.is_atomic);
> + igt_display_require_output(&data.display);
> +
> + test_vic_mode(&data, vic);
> +
> + igt_display_fini(&data.display);
> +}
> diff --git a/tools/meson.build b/tools/meson.build
> index 6e72b263..eecb122b 100644
> --- a/tools/meson.build
> +++ b/tools/meson.build
> @@ -100,6 +100,11 @@ executable('intel_gpu_top', 'intel_gpu_top.c',
> install_rpath : bindir_rpathdir,
> dependencies : lib_igt_perf)
>
> +executable('amd_hdmi_compliance', 'amd_hdmi_compliance.c',
> + dependencies : [tool_deps],
> + install_rpath : bindir_rpathdir,
> + install : true)
> +
> conf_data = configuration_data()
> conf_data.set('prefix', prefix)
> conf_data.set('exec_prefix', '${prefix}')
>
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-09-16 12:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-12 19:28 [igt-dev] [PATCH i-g-t v2] tools/amd_hdmi_compliance: Test 4K video modes with YUV encoding Wang, Chao-kai (Stylon)
2019-09-12 20:05 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-09-13 9:58 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-09-16 12:43 ` [igt-dev] [PATCH i-g-t v2] " Kazlauskas, Nicholas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox