summaryrefslogtreecommitdiff
path: root/tests/kms_rmfb.c
AgeCommit message (Collapse)Author
2021-10-11igt: s/DRM_FORMAT_MOD_NONE/DRM_FORMAT_MOD_LINEAR/Ville Syrjälä
DRM_FORMAT_MOD_LINEAR is the more sensible name for DRM_FORMAT_MOD_NONE. Use the better name. Reviewed-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2021-07-15Nuke local versions of DRM_FORMAT and DRM_MODELucas De Marchi
Use the definition from kernel headers. Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
2021-04-19Added test description for kms testsNidhi Gupta
Added description for following tests: tests/kms_atomic.c tests/kms_concurrent.c tests/kms_content_protection.c tests/kms_fbcon_fbt.c tests/kms_getfb.c tests/kms_lease.c tests/kms_panel_fitting.c tests/kms_pipe_b_c_ivb.c tests/kms_plane_lowres.c tests/kms_plane_scaling.c tests/kms_prop_blob.c tests/kms_rmfb.c tests/kms_sequence.c tests/kms_vrr.c tests/kms_pipe_crc_basic.c tests/kms_plane_alpha_blend.c tests/kms_draw_crc.c tests/kms_tv_load_detect.c tests/kms_busy.c tests/kms_force_connector_basic.c tests/kms_setmode.c Signed-off-by: Nidhi Gupta <nidhi1.gupta@intel.com> Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
2021-02-23tests/kms_rmfb: Use COMMIT_UNIVERSAL for overlay/cursor planesVille Syrjälä
Using COMMIT_LEGACY for the cursor plane makes the test fail because the cursor framebuffer is never handed over to the kernel, and instead only the BO gets passed in via the legacy cursor ioctl. Thus the rmfb ioctl will not turn off the cursor plane since the kernel is using an internal fb for the cursor. Let's avoid that by treating the cursor as just another universal plane. Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2019-12-03tests/i915/kms: remove igt_skip_on_simulation()Swati Sharma
Removing igt_skip_on_simulation() from all the kms tests since this feature is not supported anymore. v2: Rebase Signed-off-by: Swati Sharma <swati2.sharma@intel.com> Signed-off-by: Karthik B S <karthik.b.s@intel.com> Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
2019-03-29tests/kms_rmfb: Ignore plane configuration errorsVille Syrjälä
We may not be able to turn on all the planes (eg. due to memory bandwidth limitations). Let's accept that fact and simply turn on as many planes as we can. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2018-10-01igt: Require a display (KMS enabled) for KMS testsChris Wilson
Simple rule of thumb, if a kms_* test calls igt_display_init() in its global fixture, skip the entire test if the driver has disabled KMS. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Antonio Argenziano <antonio.argenziano@intel.com>
2018-03-19tests/kms_rmfb: Use for_each_pipe_with_single_output.Maarten Lankhorst
A single output on every pipe will do for testing. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2017-10-02tests: Stop looking at plane private membersMaarten Lankhorst
Most of these tests have no reason to look at those members, so try other ways of getting the information. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2017-06-19tests/kms_rmfb: Fix cursor fb sizeVille Syrjälä
Don't use the display mode size to determine the cursor fb size. That will lead to a framebuffer with a stride that the cursor plane won't support. Just use the max cursor size as the fb size instead. This started to trip up after i915 started to actually use the cursor fb stride in commit 1e1bb8710e60 ("drm/i915: Use fb->pitches[0] in cursor code") Cc: Marta Löfstedt <marta.lofstedt@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97975 Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2017-01-31tests/kms_rmfb: Add support for dynamic number of planesRobert Foss
Add changes reflecting the new support for dynamic number of planes per pipe. Signed-off-by: Robert Foss <robert.foss@collabora.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
2016-07-26tests: Add kms_rmfb test.Maarten Lankhorst
This tests rmfb and last close behavior. In those cases the framebuffers should be removed from the crtc. If atomic modeset is supported, we do it all in one nice atomic commit too. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2016-06-29tests: Remove kms_rmfb.cMaarten Lankhorst
Accidentally added as part of another patch. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2016-06-29igt_kms: Add modeset support for atomic style commits.Maarten Lankhorst
All pipes are now updated in the loop first, before connectors are read out. The mode_id and active crtc properties are added, and crtc_id for connectors. These are required to do a modeset, and the behavior during atomic commits is changed slightly too. A lot of code will do the following: - Init. - igt_output_set_pipe(output, pipe); - commit. Since legacy setcrtc and atomic commit differ, there are some differences in how we commit pipes and connectors too. For atomic we set output->crtc during igt_output_set_pipe, and use it in atomic commit. This may be set to NULL, in which case the output is disconnected from the crtc. Unlike legacy we won't attempt to bind all connectors to all pipes, only the ones that were explicitly set. As a test, convert kms_rmfb.c Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2016-06-29tests/kms_rmfb: Use for_each_pipe_with_valid_output.Maarten Lankhorst
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
2016-06-09tests/kms_chv_cursor_fail: Remove extra igt_pipe_crc_start.Maarten Lankhorst
There is a extra call to igt_pipe_crc_start that is not matched to any stop. Because of this the exit handler tries to reset the crc source on exit while the pipe disabled. This causes fails with -EIO: (kms_chv_cursor_fail:2643) igt-debugfs-CRITICAL: Test assertion failure function igt_pipe_crc_pipe_off, file igt_debugfs.c:364: (kms_chv_cursor_fail:2643) igt-debugfs-CRITICAL: Failed assertion: write(fd, buf, strlen(buf)) == strlen(buf) (kms_chv_cursor_fail:2643) igt-debugfs-CRITICAL: Last errno: 5, EIO (kms_chv_cursor_fail:2643) igt-debugfs-CRITICAL: error: -1 != 11 Stack trace: #0 [__igt_fail_assert+0xf1] #1 [igt_pipe_crc_pipe_off+0xe4] #2 [pipe_crc_exit_handler+0x35] #3 [igt_atexit_handler+0x4c] #4 [__libc_secure_getenv+0x112] #5 [exit+0x15] #6 [igt_exit+0xd6] #7 [main+0x1ee] #8 [__libc_start_main+0xf0] #9 [_start+0x29] #10 [<unknown>+0x29] Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>