* [igt-dev] Must-Pass Test Suite for KMS drivers @ 2022-10-24 12:43 ` maxime 0 siblings, 0 replies; 24+ messages in thread From: maxime @ 2022-10-24 12:43 UTC (permalink / raw) To: Daniel Vetter, David Airlie, Maarten Lankhorst, Thomas Zimmermann, Maxime Ripard, Petri Latvala, Arkadiusz Hiler Cc: Dom Cobley, Tim Gover, Martin Roukala, igt-dev, dri-devel, Phil Elwell [-- Attachment #1: Type: text/plain, Size: 2390 bytes --] Hi, I've discussing the idea for the past year to add an IGT test suite that all well-behaved KMS drivers must pass. The main idea behind it comes from v4l2-compliance and cec-compliance, that are being used to validate that the drivers are sane. We should probably start building up the test list, and eventually mandate that all tests pass for all the new KMS drivers we would merge in the kernel, and be run by KCi or similar. I did a first pass to create a draft of such a test-suite, which would contain: igt@core_auth@basic-auth igt@core_auth@getclient-master-drop igt@core_auth@getclient-simple igt@core_auth@many-magics igt@core_getclient igt@core_getstats igt@core_getversion igt@core_hotunplug@hotrebind-lateclose igt@core_hotunplug@hotunbind-rebind igt@core_hotunplug@unbind-rebind igt@core_setmaster igt@core_setmaster_vs_auth igt@device_reset@unbind-reset-rebind igt@drm_read igt@dumb_buffer igt@fbdev igt@feature_discovery@display igt@kms_3d igt@kms_addfb_basic igt@kms_async_flips igt@kms_color igt@kms_concurrent igt@kms_cursor_crc igt@kms_cursor_edge_walk igt@kms_cursor_legacy@basic-busy-flip-before-cursor igt@kms_cursor_legacy@basic-flip-after-cursor igt@kms_cursor_legacy@basic-flip-after-cursor igt@kms_display_modes igt@kms_dither igt@kms_dp_aux_dev igt@kms_flip@basic-flip-vs-dpms igt@kms_flip@basic-flip-vs-modeset igt@kms_flip@basic-flip-vs-wf_vblank igt@kms_flip@basic-plain-flip igt@kms_flip_event_leak@basic igt@kms_force_connector_basic@force-connector-state igt@kms_force_connector_basic@force-edid igt@kms_force_connector_basic@force-load-detect igt@kms_force_connector_basic@prune-stale-modes igt@kms_getfb igt@kms_hdmi_inject igt@kms_hdr igt@kms_invalid_mode igt@kms_lease igt@kms_panel_fitting igt@kms_pipe_crc_basic igt@kms_plane_alpha_blend igt@kms_plane igt@kms_plane_cursor igt@kms_plane_lowres igt@kms_plane_multiple igt@kms_plane_scaling igt@kms_prop_blob igt@kms_properties igt@kms_rmfb igt@kms_scaling_modes igt@kms_sequence igt@kms_setmode igt@kms_sysfs_edid_timing igt@kms_tv_load_detect igt@kms_universal_plane igt@kms_vblank igt@kms_vrr igt@kms_writeback Most of them are skipped on vc4 right now, but I could see that some of them fail already (kms_rmfb, core_hotunplug), so it proves to be useful already. What do you think? Is there some more tests needed, or did I include some tests that shouldn't have been there? Thanks! Maxime [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Must-Pass Test Suite for KMS drivers @ 2022-10-24 12:43 ` maxime 0 siblings, 0 replies; 24+ messages in thread From: maxime @ 2022-10-24 12:43 UTC (permalink / raw) To: Daniel Vetter, David Airlie, Maarten Lankhorst, Thomas Zimmermann, Maxime Ripard, Petri Latvala, Arkadiusz Hiler Cc: Dom Cobley, Tim Gover, Dave Stevenson, Martin Roukala, igt-dev, dri-devel, Phil Elwell [-- Attachment #1: Type: text/plain, Size: 2390 bytes --] Hi, I've discussing the idea for the past year to add an IGT test suite that all well-behaved KMS drivers must pass. The main idea behind it comes from v4l2-compliance and cec-compliance, that are being used to validate that the drivers are sane. We should probably start building up the test list, and eventually mandate that all tests pass for all the new KMS drivers we would merge in the kernel, and be run by KCi or similar. I did a first pass to create a draft of such a test-suite, which would contain: igt@core_auth@basic-auth igt@core_auth@getclient-master-drop igt@core_auth@getclient-simple igt@core_auth@many-magics igt@core_getclient igt@core_getstats igt@core_getversion igt@core_hotunplug@hotrebind-lateclose igt@core_hotunplug@hotunbind-rebind igt@core_hotunplug@unbind-rebind igt@core_setmaster igt@core_setmaster_vs_auth igt@device_reset@unbind-reset-rebind igt@drm_read igt@dumb_buffer igt@fbdev igt@feature_discovery@display igt@kms_3d igt@kms_addfb_basic igt@kms_async_flips igt@kms_color igt@kms_concurrent igt@kms_cursor_crc igt@kms_cursor_edge_walk igt@kms_cursor_legacy@basic-busy-flip-before-cursor igt@kms_cursor_legacy@basic-flip-after-cursor igt@kms_cursor_legacy@basic-flip-after-cursor igt@kms_display_modes igt@kms_dither igt@kms_dp_aux_dev igt@kms_flip@basic-flip-vs-dpms igt@kms_flip@basic-flip-vs-modeset igt@kms_flip@basic-flip-vs-wf_vblank igt@kms_flip@basic-plain-flip igt@kms_flip_event_leak@basic igt@kms_force_connector_basic@force-connector-state igt@kms_force_connector_basic@force-edid igt@kms_force_connector_basic@force-load-detect igt@kms_force_connector_basic@prune-stale-modes igt@kms_getfb igt@kms_hdmi_inject igt@kms_hdr igt@kms_invalid_mode igt@kms_lease igt@kms_panel_fitting igt@kms_pipe_crc_basic igt@kms_plane_alpha_blend igt@kms_plane igt@kms_plane_cursor igt@kms_plane_lowres igt@kms_plane_multiple igt@kms_plane_scaling igt@kms_prop_blob igt@kms_properties igt@kms_rmfb igt@kms_scaling_modes igt@kms_sequence igt@kms_setmode igt@kms_sysfs_edid_timing igt@kms_tv_load_detect igt@kms_universal_plane igt@kms_vblank igt@kms_vrr igt@kms_writeback Most of them are skipped on vc4 right now, but I could see that some of them fail already (kms_rmfb, core_hotunplug), so it proves to be useful already. What do you think? Is there some more tests needed, or did I include some tests that shouldn't have been there? Thanks! Maxime [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-10-24 12:43 ` maxime @ 2022-10-24 15:48 ` Rob Clark -1 siblings, 0 replies; 24+ messages in thread From: Rob Clark @ 2022-10-24 15:48 UTC (permalink / raw) To: maxime Cc: Petri Latvala, Tim Gover, David Airlie, Martin Roukala, dri-devel, igt-dev, Thomas Zimmermann, Daniel Vetter, Phil Elwell, Dom Cobley On Mon, Oct 24, 2022 at 5:43 AM <maxime@cerno.tech> wrote: > > Hi, > > I've discussing the idea for the past year to add an IGT test suite that > all well-behaved KMS drivers must pass. > > The main idea behind it comes from v4l2-compliance and cec-compliance, > that are being used to validate that the drivers are sane. > > We should probably start building up the test list, and eventually > mandate that all tests pass for all the new KMS drivers we would merge > in the kernel, and be run by KCi or similar. Let's get https://patchwork.freedesktop.org/patch/502641/ merged first, that already gives us a mechanism similar to what we use in mesa to track pass/fail/flake Beyond that, I think some of the igt tests need to get more stable before we could consider a "mustpass" list. The kms_lease tests seem to fail on msm due to bad assumptions in the test about which CRTCs primary planes can attach to. The legacy-cursor crc tests seem a bit racy (there was a patch posted for that, not sure if it landed yet), etc. The best thing to do is actually start running CI and tracking xfails and flakes ;-) BR, -R > I did a first pass to create a draft of such a test-suite, which would > contain: > > igt@core_auth@basic-auth > igt@core_auth@getclient-master-drop > igt@core_auth@getclient-simple > igt@core_auth@many-magics > igt@core_getclient > igt@core_getstats > igt@core_getversion > igt@core_hotunplug@hotrebind-lateclose > igt@core_hotunplug@hotunbind-rebind > igt@core_hotunplug@unbind-rebind > igt@core_setmaster > igt@core_setmaster_vs_auth > igt@device_reset@unbind-reset-rebind > igt@drm_read > igt@dumb_buffer > igt@fbdev > igt@feature_discovery@display > igt@kms_3d > igt@kms_addfb_basic > igt@kms_async_flips > igt@kms_color > igt@kms_concurrent > igt@kms_cursor_crc > igt@kms_cursor_edge_walk > igt@kms_cursor_legacy@basic-busy-flip-before-cursor > igt@kms_cursor_legacy@basic-flip-after-cursor > igt@kms_cursor_legacy@basic-flip-after-cursor > igt@kms_display_modes > igt@kms_dither > igt@kms_dp_aux_dev > igt@kms_flip@basic-flip-vs-dpms > igt@kms_flip@basic-flip-vs-modeset > igt@kms_flip@basic-flip-vs-wf_vblank > igt@kms_flip@basic-plain-flip > igt@kms_flip_event_leak@basic > igt@kms_force_connector_basic@force-connector-state > igt@kms_force_connector_basic@force-edid > igt@kms_force_connector_basic@force-load-detect > igt@kms_force_connector_basic@prune-stale-modes > igt@kms_getfb > igt@kms_hdmi_inject > igt@kms_hdr > igt@kms_invalid_mode > igt@kms_lease > igt@kms_panel_fitting > igt@kms_pipe_crc_basic > igt@kms_plane_alpha_blend > igt@kms_plane > igt@kms_plane_cursor > igt@kms_plane_lowres > igt@kms_plane_multiple > igt@kms_plane_scaling > igt@kms_prop_blob > igt@kms_properties > igt@kms_rmfb > igt@kms_scaling_modes > igt@kms_sequence > igt@kms_setmode > igt@kms_sysfs_edid_timing > igt@kms_tv_load_detect > igt@kms_universal_plane > igt@kms_vblank > igt@kms_vrr > igt@kms_writeback > > Most of them are skipped on vc4 right now, but I could see that some of > them fail already (kms_rmfb, core_hotunplug), so it proves to be useful > already. > > What do you think? Is there some more tests needed, or did I include > some tests that shouldn't have been there? > > Thanks! > Maxime ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Must-Pass Test Suite for KMS drivers @ 2022-10-24 15:48 ` Rob Clark 0 siblings, 0 replies; 24+ messages in thread From: Rob Clark @ 2022-10-24 15:48 UTC (permalink / raw) To: maxime Cc: Petri Latvala, Tim Gover, Dave Stevenson, David Airlie, Martin Roukala, dri-devel, igt-dev, Arkadiusz Hiler, Thomas Zimmermann, Daniel Vetter, Phil Elwell, Dom Cobley On Mon, Oct 24, 2022 at 5:43 AM <maxime@cerno.tech> wrote: > > Hi, > > I've discussing the idea for the past year to add an IGT test suite that > all well-behaved KMS drivers must pass. > > The main idea behind it comes from v4l2-compliance and cec-compliance, > that are being used to validate that the drivers are sane. > > We should probably start building up the test list, and eventually > mandate that all tests pass for all the new KMS drivers we would merge > in the kernel, and be run by KCi or similar. Let's get https://patchwork.freedesktop.org/patch/502641/ merged first, that already gives us a mechanism similar to what we use in mesa to track pass/fail/flake Beyond that, I think some of the igt tests need to get more stable before we could consider a "mustpass" list. The kms_lease tests seem to fail on msm due to bad assumptions in the test about which CRTCs primary planes can attach to. The legacy-cursor crc tests seem a bit racy (there was a patch posted for that, not sure if it landed yet), etc. The best thing to do is actually start running CI and tracking xfails and flakes ;-) BR, -R > I did a first pass to create a draft of such a test-suite, which would > contain: > > igt@core_auth@basic-auth > igt@core_auth@getclient-master-drop > igt@core_auth@getclient-simple > igt@core_auth@many-magics > igt@core_getclient > igt@core_getstats > igt@core_getversion > igt@core_hotunplug@hotrebind-lateclose > igt@core_hotunplug@hotunbind-rebind > igt@core_hotunplug@unbind-rebind > igt@core_setmaster > igt@core_setmaster_vs_auth > igt@device_reset@unbind-reset-rebind > igt@drm_read > igt@dumb_buffer > igt@fbdev > igt@feature_discovery@display > igt@kms_3d > igt@kms_addfb_basic > igt@kms_async_flips > igt@kms_color > igt@kms_concurrent > igt@kms_cursor_crc > igt@kms_cursor_edge_walk > igt@kms_cursor_legacy@basic-busy-flip-before-cursor > igt@kms_cursor_legacy@basic-flip-after-cursor > igt@kms_cursor_legacy@basic-flip-after-cursor > igt@kms_display_modes > igt@kms_dither > igt@kms_dp_aux_dev > igt@kms_flip@basic-flip-vs-dpms > igt@kms_flip@basic-flip-vs-modeset > igt@kms_flip@basic-flip-vs-wf_vblank > igt@kms_flip@basic-plain-flip > igt@kms_flip_event_leak@basic > igt@kms_force_connector_basic@force-connector-state > igt@kms_force_connector_basic@force-edid > igt@kms_force_connector_basic@force-load-detect > igt@kms_force_connector_basic@prune-stale-modes > igt@kms_getfb > igt@kms_hdmi_inject > igt@kms_hdr > igt@kms_invalid_mode > igt@kms_lease > igt@kms_panel_fitting > igt@kms_pipe_crc_basic > igt@kms_plane_alpha_blend > igt@kms_plane > igt@kms_plane_cursor > igt@kms_plane_lowres > igt@kms_plane_multiple > igt@kms_plane_scaling > igt@kms_prop_blob > igt@kms_properties > igt@kms_rmfb > igt@kms_scaling_modes > igt@kms_sequence > igt@kms_setmode > igt@kms_sysfs_edid_timing > igt@kms_tv_load_detect > igt@kms_universal_plane > igt@kms_vblank > igt@kms_vrr > igt@kms_writeback > > Most of them are skipped on vc4 right now, but I could see that some of > them fail already (kms_rmfb, core_hotunplug), so it proves to be useful > already. > > What do you think? Is there some more tests needed, or did I include > some tests that shouldn't have been there? > > Thanks! > Maxime ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-10-24 15:48 ` Rob Clark (?) @ 2022-10-24 15:58 ` Ville Syrjälä 2022-10-24 18:16 ` Juha-Pekka Heikkila 2022-10-27 14:48 ` Maxime Ripard -1 siblings, 2 replies; 24+ messages in thread From: Ville Syrjälä @ 2022-10-24 15:58 UTC (permalink / raw) To: Rob Clark Cc: Petri Latvala, Tim Gover, David Airlie, Martin Roukala, dri-devel, igt-dev, maxime, Thomas Zimmermann, Daniel Vetter, Phil Elwell, Dom Cobley On Mon, Oct 24, 2022 at 08:48:15AM -0700, Rob Clark wrote: > On Mon, Oct 24, 2022 at 5:43 AM <maxime@cerno.tech> wrote: > > > > Hi, > > > > I've discussing the idea for the past year to add an IGT test suite that > > all well-behaved KMS drivers must pass. > > > > The main idea behind it comes from v4l2-compliance and cec-compliance, > > that are being used to validate that the drivers are sane. > > > > We should probably start building up the test list, and eventually > > mandate that all tests pass for all the new KMS drivers we would merge > > in the kernel, and be run by KCi or similar. > > Let's get https://patchwork.freedesktop.org/patch/502641/ merged > first, that already gives us a mechanism similar to what we use in > mesa to track pass/fail/flake > > Beyond that, I think some of the igt tests need to get more stable > before we could consider a "mustpass" list. The kms_lease tests seem > to fail on msm due to bad assumptions in the test about which CRTCs > primary planes can attach to. The legacy-cursor crc tests seem a bit > racy (there was a patch posted for that, not sure if it landed yet), > etc. I think the safest set to start with would be pure uapi validation stuff. Anything that interactics with real world hardware is a much tougher cookie. > > The best thing to do is actually start running CI and tracking xfails > and flakes ;-) > > BR, > -R > > > I did a first pass to create a draft of such a test-suite, which would > > contain: > > > > igt@core_auth@basic-auth > > igt@core_auth@getclient-master-drop > > igt@core_auth@getclient-simple > > igt@core_auth@many-magics > > igt@core_getclient > > igt@core_getstats > > igt@core_getversion > > igt@core_hotunplug@hotrebind-lateclose > > igt@core_hotunplug@hotunbind-rebind > > igt@core_hotunplug@unbind-rebind > > igt@core_setmaster > > igt@core_setmaster_vs_auth > > igt@device_reset@unbind-reset-rebind > > igt@drm_read > > igt@dumb_buffer > > igt@fbdev > > igt@feature_discovery@display > > igt@kms_3d > > igt@kms_addfb_basic > > igt@kms_async_flips > > igt@kms_color > > igt@kms_concurrent > > igt@kms_cursor_crc > > igt@kms_cursor_edge_walk > > igt@kms_cursor_legacy@basic-busy-flip-before-cursor > > igt@kms_cursor_legacy@basic-flip-after-cursor > > igt@kms_cursor_legacy@basic-flip-after-cursor > > igt@kms_display_modes > > igt@kms_dither > > igt@kms_dp_aux_dev > > igt@kms_flip@basic-flip-vs-dpms > > igt@kms_flip@basic-flip-vs-modeset > > igt@kms_flip@basic-flip-vs-wf_vblank > > igt@kms_flip@basic-plain-flip > > igt@kms_flip_event_leak@basic > > igt@kms_force_connector_basic@force-connector-state > > igt@kms_force_connector_basic@force-edid > > igt@kms_force_connector_basic@force-load-detect > > igt@kms_force_connector_basic@prune-stale-modes > > igt@kms_getfb > > igt@kms_hdmi_inject > > igt@kms_hdr > > igt@kms_invalid_mode > > igt@kms_lease > > igt@kms_panel_fitting > > igt@kms_pipe_crc_basic > > igt@kms_plane_alpha_blend > > igt@kms_plane > > igt@kms_plane_cursor > > igt@kms_plane_lowres > > igt@kms_plane_multiple > > igt@kms_plane_scaling > > igt@kms_prop_blob > > igt@kms_properties > > igt@kms_rmfb > > igt@kms_scaling_modes > > igt@kms_sequence > > igt@kms_setmode > > igt@kms_sysfs_edid_timing > > igt@kms_tv_load_detect > > igt@kms_universal_plane > > igt@kms_vblank > > igt@kms_vrr > > igt@kms_writeback > > > > Most of them are skipped on vc4 right now, but I could see that some of > > them fail already (kms_rmfb, core_hotunplug), so it proves to be useful > > already. > > > > What do you think? Is there some more tests needed, or did I include > > some tests that shouldn't have been there? > > > > Thanks! > > Maxime -- Ville Syrjälä Intel ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-10-24 15:58 ` [igt-dev] " Ville Syrjälä @ 2022-10-24 18:16 ` Juha-Pekka Heikkila 2022-10-27 14:48 ` Maxime Ripard 1 sibling, 0 replies; 24+ messages in thread From: Juha-Pekka Heikkila @ 2022-10-24 18:16 UTC (permalink / raw) To: Ville Syrjälä, Rob Clark Cc: Petri Latvala, Tim Gover, David Airlie, Martin Roukala, dri-devel, igt-dev, maxime, Thomas Zimmermann, Daniel Vetter, Phil Elwell, Dom Cobley On 24.10.2022 18.58, Ville Syrjälä wrote: > On Mon, Oct 24, 2022 at 08:48:15AM -0700, Rob Clark wrote: >> On Mon, Oct 24, 2022 at 5:43 AM <maxime@cerno.tech> wrote: >>> >>> Hi, >>> >>> I've discussing the idea for the past year to add an IGT test suite that >>> all well-behaved KMS drivers must pass. >>> >>> The main idea behind it comes from v4l2-compliance and cec-compliance, >>> that are being used to validate that the drivers are sane. >>> >>> We should probably start building up the test list, and eventually >>> mandate that all tests pass for all the new KMS drivers we would merge >>> in the kernel, and be run by KCi or similar. >> >> Let's get https://patchwork.freedesktop.org/patch/502641/ merged >> first, that already gives us a mechanism similar to what we use in >> mesa to track pass/fail/flake >> >> Beyond that, I think some of the igt tests need to get more stable >> before we could consider a "mustpass" list. The kms_lease tests seem >> to fail on msm due to bad assumptions in the test about which CRTCs >> primary planes can attach to. The legacy-cursor crc tests seem a bit >> racy (there was a patch posted for that, not sure if it landed yet), >> etc. > > I think the safest set to start with would be pure uapi validation > stuff. Anything that interactics with real world hardware is a much > tougher cookie. > I agree with Ville As is with different pixel formats on different kms crc tests there are specialities just to make crcs happy hence I think crc tests will need to be carefully chosen for this type test set. And as for those legacy cursor tests to be included people first need consensus across drivers how those tests are supposed to work and then strip out platform specific quirks from those tests. /Juha-Pekka >> >> The best thing to do is actually start running CI and tracking xfails >> and flakes ;-) >> >> BR, >> -R >> >>> I did a first pass to create a draft of such a test-suite, which would >>> contain: >>> >>> igt@core_auth@basic-auth >>> igt@core_auth@getclient-master-drop >>> igt@core_auth@getclient-simple >>> igt@core_auth@many-magics >>> igt@core_getclient >>> igt@core_getstats >>> igt@core_getversion >>> igt@core_hotunplug@hotrebind-lateclose >>> igt@core_hotunplug@hotunbind-rebind >>> igt@core_hotunplug@unbind-rebind >>> igt@core_setmaster >>> igt@core_setmaster_vs_auth >>> igt@device_reset@unbind-reset-rebind >>> igt@drm_read >>> igt@dumb_buffer >>> igt@fbdev >>> igt@feature_discovery@display >>> igt@kms_3d >>> igt@kms_addfb_basic >>> igt@kms_async_flips >>> igt@kms_color >>> igt@kms_concurrent >>> igt@kms_cursor_crc >>> igt@kms_cursor_edge_walk >>> igt@kms_cursor_legacy@basic-busy-flip-before-cursor >>> igt@kms_cursor_legacy@basic-flip-after-cursor >>> igt@kms_cursor_legacy@basic-flip-after-cursor >>> igt@kms_display_modes >>> igt@kms_dither >>> igt@kms_dp_aux_dev >>> igt@kms_flip@basic-flip-vs-dpms >>> igt@kms_flip@basic-flip-vs-modeset >>> igt@kms_flip@basic-flip-vs-wf_vblank >>> igt@kms_flip@basic-plain-flip >>> igt@kms_flip_event_leak@basic >>> igt@kms_force_connector_basic@force-connector-state >>> igt@kms_force_connector_basic@force-edid >>> igt@kms_force_connector_basic@force-load-detect >>> igt@kms_force_connector_basic@prune-stale-modes >>> igt@kms_getfb >>> igt@kms_hdmi_inject >>> igt@kms_hdr >>> igt@kms_invalid_mode >>> igt@kms_lease >>> igt@kms_panel_fitting >>> igt@kms_pipe_crc_basic >>> igt@kms_plane_alpha_blend >>> igt@kms_plane >>> igt@kms_plane_cursor >>> igt@kms_plane_lowres >>> igt@kms_plane_multiple >>> igt@kms_plane_scaling >>> igt@kms_prop_blob >>> igt@kms_properties >>> igt@kms_rmfb >>> igt@kms_scaling_modes >>> igt@kms_sequence >>> igt@kms_setmode >>> igt@kms_sysfs_edid_timing >>> igt@kms_tv_load_detect >>> igt@kms_universal_plane >>> igt@kms_vblank >>> igt@kms_vrr >>> igt@kms_writeback >>> >>> Most of them are skipped on vc4 right now, but I could see that some of >>> them fail already (kms_rmfb, core_hotunplug), so it proves to be useful >>> already. >>> >>> What do you think? Is there some more tests needed, or did I include >>> some tests that shouldn't have been there? >>> >>> Thanks! >>> Maxime > ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-10-24 15:58 ` [igt-dev] " Ville Syrjälä 2022-10-24 18:16 ` Juha-Pekka Heikkila @ 2022-10-27 14:48 ` Maxime Ripard 1 sibling, 0 replies; 24+ messages in thread From: Maxime Ripard @ 2022-10-27 14:48 UTC (permalink / raw) To: Ville Syrjälä Cc: Petri Latvala, Tim Gover, David Airlie, Martin Roukala, dri-devel, igt-dev, Thomas Zimmermann, Daniel Vetter, Phil Elwell, Dom Cobley [-- Attachment #1: Type: text/plain, Size: 1554 bytes --] On Mon, Oct 24, 2022 at 06:58:09PM +0300, Ville Syrjälä wrote: > On Mon, Oct 24, 2022 at 08:48:15AM -0700, Rob Clark wrote: > > On Mon, Oct 24, 2022 at 5:43 AM <maxime@cerno.tech> wrote: > > > > > > Hi, > > > > > > I've discussing the idea for the past year to add an IGT test suite that > > > all well-behaved KMS drivers must pass. > > > > > > The main idea behind it comes from v4l2-compliance and cec-compliance, > > > that are being used to validate that the drivers are sane. > > > > > > We should probably start building up the test list, and eventually > > > mandate that all tests pass for all the new KMS drivers we would merge > > > in the kernel, and be run by KCi or similar. > > > > Let's get https://patchwork.freedesktop.org/patch/502641/ merged > > first, that already gives us a mechanism similar to what we use in > > mesa to track pass/fail/flake > > > > Beyond that, I think some of the igt tests need to get more stable > > before we could consider a "mustpass" list. The kms_lease tests seem > > to fail on msm due to bad assumptions in the test about which CRTCs > > primary planes can attach to. The legacy-cursor crc tests seem a bit > > racy (there was a patch posted for that, not sure if it landed yet), > > etc. > > I think the safest set to start with would be pure uapi validation > stuff. Anything that interactics with real world hardware is a much > tougher cookie. So I guess we would remove kms_cursor_legacy, kms_lease and kms_tv_load_detect. Anything else? Thanks! Maxime [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-10-24 15:48 ` Rob Clark @ 2022-10-26 8:17 ` maxime -1 siblings, 0 replies; 24+ messages in thread From: maxime @ 2022-10-26 8:17 UTC (permalink / raw) To: Rob Clark Cc: Petri Latvala, Tim Gover, David Airlie, Martin Roukala, dri-devel, igt-dev, Thomas Zimmermann, Daniel Vetter, Phil Elwell, Dom Cobley Hi Rob, On Mon, Oct 24, 2022 at 08:48:15AM -0700, Rob Clark wrote: > On Mon, Oct 24, 2022 at 5:43 AM <maxime@cerno.tech> wrote: > > I've discussing the idea for the past year to add an IGT test suite that > > all well-behaved KMS drivers must pass. > > > > The main idea behind it comes from v4l2-compliance and cec-compliance, > > that are being used to validate that the drivers are sane. > > > > We should probably start building up the test list, and eventually > > mandate that all tests pass for all the new KMS drivers we would merge > > in the kernel, and be run by KCi or similar. > > Let's get https://patchwork.freedesktop.org/patch/502641/ merged > first, that already gives us a mechanism similar to what we use in > mesa to track pass/fail/flake I'm not sure it's a dependency per-se, and I believe both can (and should) happen separately. AFAIU, the CI patches are here to track which tests are supposed to be working and which aren't so that we can track regressions. The list I was talking about is here to identify issues in the first place. All tests must pass, and if one fails it should be considered a hard failure. This would be eligible for CI only for drivers which have been known to pass them all already, but we wouldn't need to track which ones can fail or not, all of them must. > Beyond that, I think some of the igt tests need to get more stable > before we could consider a "mustpass" list. I agree that IGT tests could get more stable on ARM platforms, but it's also a chicken-and-egg issue. If no-one is using them regularly on ARM, then they'll never get fixed. > The kms_lease tests seem to fail on msm due to bad assumptions in the > test about which CRTCs primary planes can attach to. The legacy-cursor > crc tests seem a bit racy (there was a patch posted for that, not sure > if it landed yet), etc. And this is fine, we can merge that list without them, and if and when they get stable, we'll add them later. > The best thing to do is actually start running CI and tracking xfails > and flakes ;-) Again, I wouldn't oppose them. The issue I'm trying to solve is that there's just no way to know, at the moment: - When you're running IGT, which tests are relevant for your platform exactly. - If some of them fail, is it expected for them to fail or not. The ci/ patch you mentioned help for that a bit, but only for platforms where someone already did that work. When you want to do that work in the first place, it's extremely tedious and obscure. - And if some of them fail, is it something that I should actually fix or not. The mustpass list addresses all those issues by providing a baseline. Maxime ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Must-Pass Test Suite for KMS drivers @ 2022-10-26 8:17 ` maxime 0 siblings, 0 replies; 24+ messages in thread From: maxime @ 2022-10-26 8:17 UTC (permalink / raw) To: Rob Clark Cc: Petri Latvala, Tim Gover, Dave Stevenson, David Airlie, Martin Roukala, dri-devel, igt-dev, Arkadiusz Hiler, Thomas Zimmermann, Daniel Vetter, Phil Elwell, Dom Cobley Hi Rob, On Mon, Oct 24, 2022 at 08:48:15AM -0700, Rob Clark wrote: > On Mon, Oct 24, 2022 at 5:43 AM <maxime@cerno.tech> wrote: > > I've discussing the idea for the past year to add an IGT test suite that > > all well-behaved KMS drivers must pass. > > > > The main idea behind it comes from v4l2-compliance and cec-compliance, > > that are being used to validate that the drivers are sane. > > > > We should probably start building up the test list, and eventually > > mandate that all tests pass for all the new KMS drivers we would merge > > in the kernel, and be run by KCi or similar. > > Let's get https://patchwork.freedesktop.org/patch/502641/ merged > first, that already gives us a mechanism similar to what we use in > mesa to track pass/fail/flake I'm not sure it's a dependency per-se, and I believe both can (and should) happen separately. AFAIU, the CI patches are here to track which tests are supposed to be working and which aren't so that we can track regressions. The list I was talking about is here to identify issues in the first place. All tests must pass, and if one fails it should be considered a hard failure. This would be eligible for CI only for drivers which have been known to pass them all already, but we wouldn't need to track which ones can fail or not, all of them must. > Beyond that, I think some of the igt tests need to get more stable > before we could consider a "mustpass" list. I agree that IGT tests could get more stable on ARM platforms, but it's also a chicken-and-egg issue. If no-one is using them regularly on ARM, then they'll never get fixed. > The kms_lease tests seem to fail on msm due to bad assumptions in the > test about which CRTCs primary planes can attach to. The legacy-cursor > crc tests seem a bit racy (there was a patch posted for that, not sure > if it landed yet), etc. And this is fine, we can merge that list without them, and if and when they get stable, we'll add them later. > The best thing to do is actually start running CI and tracking xfails > and flakes ;-) Again, I wouldn't oppose them. The issue I'm trying to solve is that there's just no way to know, at the moment: - When you're running IGT, which tests are relevant for your platform exactly. - If some of them fail, is it expected for them to fail or not. The ci/ patch you mentioned help for that a bit, but only for platforms where someone already did that work. When you want to do that work in the first place, it's extremely tedious and obscure. - And if some of them fail, is it something that I should actually fix or not. The mustpass list addresses all those issues by providing a baseline. Maxime ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-10-26 8:17 ` maxime @ 2022-10-27 15:08 ` Rob Clark -1 siblings, 0 replies; 24+ messages in thread From: Rob Clark @ 2022-10-27 15:08 UTC (permalink / raw) To: maxime Cc: Petri Latvala, Tim Gover, Martin Roukala, dri-devel, igt-dev, Tomeu Vizoso, Thomas Zimmermann, Daniel Vetter, Dave Airlie, Phil Elwell, Dom Cobley On Wed, Oct 26, 2022 at 1:17 AM <maxime@cerno.tech> wrote: > > Hi Rob, > > On Mon, Oct 24, 2022 at 08:48:15AM -0700, Rob Clark wrote: > > On Mon, Oct 24, 2022 at 5:43 AM <maxime@cerno.tech> wrote: > > > I've discussing the idea for the past year to add an IGT test suite that > > > all well-behaved KMS drivers must pass. > > > > > > The main idea behind it comes from v4l2-compliance and cec-compliance, > > > that are being used to validate that the drivers are sane. > > > > > > We should probably start building up the test list, and eventually > > > mandate that all tests pass for all the new KMS drivers we would merge > > > in the kernel, and be run by KCi or similar. > > > > Let's get https://patchwork.freedesktop.org/patch/502641/ merged > > first, that already gives us a mechanism similar to what we use in > > mesa to track pass/fail/flake > > I'm not sure it's a dependency per-se, and I believe both can (and > should) happen separately. Basically my reasoning is that getting IGT green is a process that so far is consisting of equal parts IGT test fixes, to clear out lingering i915'isms, etc, and driver fixes. Yes, you could do this manually but the drm/ci approach seems like it would make it easier to track, so it is easier to see what tests are being run on which hw, and what the pass/fail/flake status is. And the expectation files can also be updated as we uprev the igt version being used in CI. I could be biased by how CI has been deployed (IMHO, successfully) in mesa.. my experience there doesn't make me see any value in a "mustpass" list. But does make me see value in automating and tracking status. Obviously we want all the tests to pass, but getting there is going to be a process. Tracking that progress is the thing that is useful now. BR, -R > AFAIU, the CI patches are here to track which tests are supposed to be > working and which aren't so that we can track regressions. > > The list I was talking about is here to identify issues in the first > place. All tests must pass, and if one fails it should be considered a > hard failure. > > This would be eligible for CI only for drivers which have been known to > pass them all already, but we wouldn't need to track which ones can fail > or not, all of them must. > > > Beyond that, I think some of the igt tests need to get more stable > > before we could consider a "mustpass" list. > > I agree that IGT tests could get more stable on ARM platforms, but it's > also a chicken-and-egg issue. If no-one is using them regularly on ARM, > then they'll never get fixed. > > > The kms_lease tests seem to fail on msm due to bad assumptions in the > > test about which CRTCs primary planes can attach to. The legacy-cursor > > crc tests seem a bit racy (there was a patch posted for that, not sure > > if it landed yet), etc. > > And this is fine, we can merge that list without them, and if and when > they get stable, we'll add them later. > > > The best thing to do is actually start running CI and tracking xfails > > and flakes ;-) > > Again, I wouldn't oppose them. > > The issue I'm trying to solve is that there's just no way to know, at > the moment: > > - When you're running IGT, which tests are relevant for your platform > exactly. > > - If some of them fail, is it expected for them to fail or not. The > ci/ patch you mentioned help for that a bit, but only for platforms > where someone already did that work. When you want to do that work > in the first place, it's extremely tedious and obscure. > > - And if some of them fail, is it something that I should actually fix > or not. > > The mustpass list addresses all those issues by providing a baseline. > > Maxime ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Must-Pass Test Suite for KMS drivers @ 2022-10-27 15:08 ` Rob Clark 0 siblings, 0 replies; 24+ messages in thread From: Rob Clark @ 2022-10-27 15:08 UTC (permalink / raw) To: maxime Cc: Petri Latvala, Tim Gover, Dave Stevenson, Arkadiusz Hiler, Martin Roukala, dri-devel, igt-dev, Tomeu Vizoso, Thomas Zimmermann, Daniel Vetter, Phil Elwell, Dom Cobley On Wed, Oct 26, 2022 at 1:17 AM <maxime@cerno.tech> wrote: > > Hi Rob, > > On Mon, Oct 24, 2022 at 08:48:15AM -0700, Rob Clark wrote: > > On Mon, Oct 24, 2022 at 5:43 AM <maxime@cerno.tech> wrote: > > > I've discussing the idea for the past year to add an IGT test suite that > > > all well-behaved KMS drivers must pass. > > > > > > The main idea behind it comes from v4l2-compliance and cec-compliance, > > > that are being used to validate that the drivers are sane. > > > > > > We should probably start building up the test list, and eventually > > > mandate that all tests pass for all the new KMS drivers we would merge > > > in the kernel, and be run by KCi or similar. > > > > Let's get https://patchwork.freedesktop.org/patch/502641/ merged > > first, that already gives us a mechanism similar to what we use in > > mesa to track pass/fail/flake > > I'm not sure it's a dependency per-se, and I believe both can (and > should) happen separately. Basically my reasoning is that getting IGT green is a process that so far is consisting of equal parts IGT test fixes, to clear out lingering i915'isms, etc, and driver fixes. Yes, you could do this manually but the drm/ci approach seems like it would make it easier to track, so it is easier to see what tests are being run on which hw, and what the pass/fail/flake status is. And the expectation files can also be updated as we uprev the igt version being used in CI. I could be biased by how CI has been deployed (IMHO, successfully) in mesa.. my experience there doesn't make me see any value in a "mustpass" list. But does make me see value in automating and tracking status. Obviously we want all the tests to pass, but getting there is going to be a process. Tracking that progress is the thing that is useful now. BR, -R > AFAIU, the CI patches are here to track which tests are supposed to be > working and which aren't so that we can track regressions. > > The list I was talking about is here to identify issues in the first > place. All tests must pass, and if one fails it should be considered a > hard failure. > > This would be eligible for CI only for drivers which have been known to > pass them all already, but we wouldn't need to track which ones can fail > or not, all of them must. > > > Beyond that, I think some of the igt tests need to get more stable > > before we could consider a "mustpass" list. > > I agree that IGT tests could get more stable on ARM platforms, but it's > also a chicken-and-egg issue. If no-one is using them regularly on ARM, > then they'll never get fixed. > > > The kms_lease tests seem to fail on msm due to bad assumptions in the > > test about which CRTCs primary planes can attach to. The legacy-cursor > > crc tests seem a bit racy (there was a patch posted for that, not sure > > if it landed yet), etc. > > And this is fine, we can merge that list without them, and if and when > they get stable, we'll add them later. > > > The best thing to do is actually start running CI and tracking xfails > > and flakes ;-) > > Again, I wouldn't oppose them. > > The issue I'm trying to solve is that there's just no way to know, at > the moment: > > - When you're running IGT, which tests are relevant for your platform > exactly. > > - If some of them fail, is it expected for them to fail or not. The > ci/ patch you mentioned help for that a bit, but only for platforms > where someone already did that work. When you want to do that work > in the first place, it's extremely tedious and obscure. > > - And if some of them fail, is it something that I should actually fix > or not. > > The mustpass list addresses all those issues by providing a baseline. > > Maxime ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-10-27 15:08 ` Rob Clark @ 2022-11-07 9:29 ` Maxime Ripard -1 siblings, 0 replies; 24+ messages in thread From: Maxime Ripard @ 2022-11-07 9:29 UTC (permalink / raw) To: Rob Clark Cc: Petri Latvala, Tim Gover, Martin Roukala, dri-devel, igt-dev, Tomeu Vizoso, Thomas Zimmermann, Daniel Vetter, Dave Airlie, Phil Elwell, Dom Cobley On Thu, Oct 27, 2022 at 08:08:28AM -0700, Rob Clark wrote: > On Wed, Oct 26, 2022 at 1:17 AM <maxime@cerno.tech> wrote: > > > > Hi Rob, > > > > On Mon, Oct 24, 2022 at 08:48:15AM -0700, Rob Clark wrote: > > > On Mon, Oct 24, 2022 at 5:43 AM <maxime@cerno.tech> wrote: > > > > I've discussing the idea for the past year to add an IGT test suite that > > > > all well-behaved KMS drivers must pass. > > > > > > > > The main idea behind it comes from v4l2-compliance and cec-compliance, > > > > that are being used to validate that the drivers are sane. > > > > > > > > We should probably start building up the test list, and eventually > > > > mandate that all tests pass for all the new KMS drivers we would merge > > > > in the kernel, and be run by KCi or similar. > > > > > > Let's get https://patchwork.freedesktop.org/patch/502641/ merged > > > first, that already gives us a mechanism similar to what we use in > > > mesa to track pass/fail/flake > > > > I'm not sure it's a dependency per-se, and I believe both can (and > > should) happen separately. > > Basically my reasoning is that getting IGT green is a process that so > far is consisting of equal parts IGT test fixes, to clear out > lingering i915'isms, etc, and driver fixes. Yes, you could do this > manually but the drm/ci approach seems like it would make it easier to > track, so it is easier to see what tests are being run on which hw, > and what the pass/fail/flake status is. And the expectation files can > also be updated as we uprev the igt version being used in CI. > > I could be biased by how CI has been deployed (IMHO, successfully) in > mesa.. my experience there doesn't make me see any value in a > "mustpass" list. But does make me see value in automating and > tracking status. Obviously we want all the tests to pass, but getting > there is going to be a process. Tracking that progress is the thing > that is useful now. Yeah, I understand where you're coming from, and for CI I agree that your approach looks like the best one. It's not what I'm trying to address though. My issue is that, even though I have a bunch of KMS experience by now, every time I need to use IGT, I have exactly zero idea what test I need to run to check that a given driver behaves decently. I have no idea which tests I should run, which tests are supposed to be working but can't really because of some intel-specific behavior, which tests are skipped but shouldn't, which tests are broken but should be, etc. I don't want to have a nice table with everything green because there was no regression, I want to see which bugs I haven't found out are still lingering in my driver. I've been chasing bugs too many times where it turned out that there was a test for that in IGT somewhere, hidden in a 70k tests haystack with zero documentation. So, yeah, I get what you're saying, it makes sense, and please go forward with drm/ci. I still think we need to find a beginning of a solution for the issue I'm talking about. Maxime ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Must-Pass Test Suite for KMS drivers @ 2022-11-07 9:29 ` Maxime Ripard 0 siblings, 0 replies; 24+ messages in thread From: Maxime Ripard @ 2022-11-07 9:29 UTC (permalink / raw) To: Rob Clark Cc: Petri Latvala, Tim Gover, Dave Stevenson, Arkadiusz Hiler, Martin Roukala, dri-devel, igt-dev, Tomeu Vizoso, Thomas Zimmermann, Daniel Vetter, Phil Elwell, Dom Cobley On Thu, Oct 27, 2022 at 08:08:28AM -0700, Rob Clark wrote: > On Wed, Oct 26, 2022 at 1:17 AM <maxime@cerno.tech> wrote: > > > > Hi Rob, > > > > On Mon, Oct 24, 2022 at 08:48:15AM -0700, Rob Clark wrote: > > > On Mon, Oct 24, 2022 at 5:43 AM <maxime@cerno.tech> wrote: > > > > I've discussing the idea for the past year to add an IGT test suite that > > > > all well-behaved KMS drivers must pass. > > > > > > > > The main idea behind it comes from v4l2-compliance and cec-compliance, > > > > that are being used to validate that the drivers are sane. > > > > > > > > We should probably start building up the test list, and eventually > > > > mandate that all tests pass for all the new KMS drivers we would merge > > > > in the kernel, and be run by KCi or similar. > > > > > > Let's get https://patchwork.freedesktop.org/patch/502641/ merged > > > first, that already gives us a mechanism similar to what we use in > > > mesa to track pass/fail/flake > > > > I'm not sure it's a dependency per-se, and I believe both can (and > > should) happen separately. > > Basically my reasoning is that getting IGT green is a process that so > far is consisting of equal parts IGT test fixes, to clear out > lingering i915'isms, etc, and driver fixes. Yes, you could do this > manually but the drm/ci approach seems like it would make it easier to > track, so it is easier to see what tests are being run on which hw, > and what the pass/fail/flake status is. And the expectation files can > also be updated as we uprev the igt version being used in CI. > > I could be biased by how CI has been deployed (IMHO, successfully) in > mesa.. my experience there doesn't make me see any value in a > "mustpass" list. But does make me see value in automating and > tracking status. Obviously we want all the tests to pass, but getting > there is going to be a process. Tracking that progress is the thing > that is useful now. Yeah, I understand where you're coming from, and for CI I agree that your approach looks like the best one. It's not what I'm trying to address though. My issue is that, even though I have a bunch of KMS experience by now, every time I need to use IGT, I have exactly zero idea what test I need to run to check that a given driver behaves decently. I have no idea which tests I should run, which tests are supposed to be working but can't really because of some intel-specific behavior, which tests are skipped but shouldn't, which tests are broken but should be, etc. I don't want to have a nice table with everything green because there was no regression, I want to see which bugs I haven't found out are still lingering in my driver. I've been chasing bugs too many times where it turned out that there was a test for that in IGT somewhere, hidden in a 70k tests haystack with zero documentation. So, yeah, I get what you're saying, it makes sense, and please go forward with drm/ci. I still think we need to find a beginning of a solution for the issue I'm talking about. Maxime ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-11-07 9:29 ` Maxime Ripard @ 2022-11-07 19:13 ` Rob Clark -1 siblings, 0 replies; 24+ messages in thread From: Rob Clark @ 2022-11-07 19:13 UTC (permalink / raw) To: Maxime Ripard Cc: Petri Latvala, Tim Gover, Martin Roukala, dri-devel, igt-dev, Tomeu Vizoso, Thomas Zimmermann, Daniel Vetter, Dave Airlie, Phil Elwell, Dom Cobley On Mon, Nov 7, 2022 at 1:29 AM Maxime Ripard <maxime@cerno.tech> wrote: > > On Thu, Oct 27, 2022 at 08:08:28AM -0700, Rob Clark wrote: > > On Wed, Oct 26, 2022 at 1:17 AM <maxime@cerno.tech> wrote: > > > > > > Hi Rob, > > > > > > On Mon, Oct 24, 2022 at 08:48:15AM -0700, Rob Clark wrote: > > > > On Mon, Oct 24, 2022 at 5:43 AM <maxime@cerno.tech> wrote: > > > > > I've discussing the idea for the past year to add an IGT test suite that > > > > > all well-behaved KMS drivers must pass. > > > > > > > > > > The main idea behind it comes from v4l2-compliance and cec-compliance, > > > > > that are being used to validate that the drivers are sane. > > > > > > > > > > We should probably start building up the test list, and eventually > > > > > mandate that all tests pass for all the new KMS drivers we would merge > > > > > in the kernel, and be run by KCi or similar. > > > > > > > > Let's get https://patchwork.freedesktop.org/patch/502641/ merged > > > > first, that already gives us a mechanism similar to what we use in > > > > mesa to track pass/fail/flake > > > > > > I'm not sure it's a dependency per-se, and I believe both can (and > > > should) happen separately. > > > > Basically my reasoning is that getting IGT green is a process that so > > far is consisting of equal parts IGT test fixes, to clear out > > lingering i915'isms, etc, and driver fixes. Yes, you could do this > > manually but the drm/ci approach seems like it would make it easier to > > track, so it is easier to see what tests are being run on which hw, > > and what the pass/fail/flake status is. And the expectation files can > > also be updated as we uprev the igt version being used in CI. > > > > I could be biased by how CI has been deployed (IMHO, successfully) in > > mesa.. my experience there doesn't make me see any value in a > > "mustpass" list. But does make me see value in automating and > > tracking status. Obviously we want all the tests to pass, but getting > > there is going to be a process. Tracking that progress is the thing > > that is useful now. > > Yeah, I understand where you're coming from, and for CI I agree that > your approach looks like the best one. > > It's not what I'm trying to address though. > > My issue is that, even though I have a bunch of KMS experience by now, > every time I need to use IGT, I have exactly zero idea what test I > need to run to check that a given driver behaves decently. > > I have no idea which tests I should run, which tests are supposed to be > working but can't really because of some intel-specific behavior, which > tests are skipped but shouldn't, which tests are broken but should be, > etc. yeah, I feel your pain.. I think the best suggestion I can make atm is to compare to the xfails from the other drivers, and if in doubt ask on #igt BR, -R > I don't want to have a nice table with everything green because there > was no regression, I want to see which bugs I haven't found out are > still lingering in my driver. I've been chasing bugs too many times > where it turned out that there was a test for that in IGT somewhere, > hidden in a 70k tests haystack with zero documentation. > > So, yeah, I get what you're saying, it makes sense, and please go > forward with drm/ci. I still think we need to find a beginning of a > solution for the issue I'm talking about. > > Maxime ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Must-Pass Test Suite for KMS drivers @ 2022-11-07 19:13 ` Rob Clark 0 siblings, 0 replies; 24+ messages in thread From: Rob Clark @ 2022-11-07 19:13 UTC (permalink / raw) To: Maxime Ripard Cc: Petri Latvala, Tim Gover, Dave Stevenson, Arkadiusz Hiler, Martin Roukala, dri-devel, igt-dev, Tomeu Vizoso, Thomas Zimmermann, Daniel Vetter, Phil Elwell, Dom Cobley On Mon, Nov 7, 2022 at 1:29 AM Maxime Ripard <maxime@cerno.tech> wrote: > > On Thu, Oct 27, 2022 at 08:08:28AM -0700, Rob Clark wrote: > > On Wed, Oct 26, 2022 at 1:17 AM <maxime@cerno.tech> wrote: > > > > > > Hi Rob, > > > > > > On Mon, Oct 24, 2022 at 08:48:15AM -0700, Rob Clark wrote: > > > > On Mon, Oct 24, 2022 at 5:43 AM <maxime@cerno.tech> wrote: > > > > > I've discussing the idea for the past year to add an IGT test suite that > > > > > all well-behaved KMS drivers must pass. > > > > > > > > > > The main idea behind it comes from v4l2-compliance and cec-compliance, > > > > > that are being used to validate that the drivers are sane. > > > > > > > > > > We should probably start building up the test list, and eventually > > > > > mandate that all tests pass for all the new KMS drivers we would merge > > > > > in the kernel, and be run by KCi or similar. > > > > > > > > Let's get https://patchwork.freedesktop.org/patch/502641/ merged > > > > first, that already gives us a mechanism similar to what we use in > > > > mesa to track pass/fail/flake > > > > > > I'm not sure it's a dependency per-se, and I believe both can (and > > > should) happen separately. > > > > Basically my reasoning is that getting IGT green is a process that so > > far is consisting of equal parts IGT test fixes, to clear out > > lingering i915'isms, etc, and driver fixes. Yes, you could do this > > manually but the drm/ci approach seems like it would make it easier to > > track, so it is easier to see what tests are being run on which hw, > > and what the pass/fail/flake status is. And the expectation files can > > also be updated as we uprev the igt version being used in CI. > > > > I could be biased by how CI has been deployed (IMHO, successfully) in > > mesa.. my experience there doesn't make me see any value in a > > "mustpass" list. But does make me see value in automating and > > tracking status. Obviously we want all the tests to pass, but getting > > there is going to be a process. Tracking that progress is the thing > > that is useful now. > > Yeah, I understand where you're coming from, and for CI I agree that > your approach looks like the best one. > > It's not what I'm trying to address though. > > My issue is that, even though I have a bunch of KMS experience by now, > every time I need to use IGT, I have exactly zero idea what test I > need to run to check that a given driver behaves decently. > > I have no idea which tests I should run, which tests are supposed to be > working but can't really because of some intel-specific behavior, which > tests are skipped but shouldn't, which tests are broken but should be, > etc. yeah, I feel your pain.. I think the best suggestion I can make atm is to compare to the xfails from the other drivers, and if in doubt ask on #igt BR, -R > I don't want to have a nice table with everything green because there > was no regression, I want to see which bugs I haven't found out are > still lingering in my driver. I've been chasing bugs too many times > where it turned out that there was a test for that in IGT somewhere, > hidden in a 70k tests haystack with zero documentation. > > So, yeah, I get what you're saying, it makes sense, and please go > forward with drm/ci. I still think we need to find a beginning of a > solution for the issue I'm talking about. > > Maxime ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-10-24 12:43 ` maxime @ 2022-10-28 7:31 ` Thomas Zimmermann -1 siblings, 0 replies; 24+ messages in thread From: Thomas Zimmermann @ 2022-10-28 7:31 UTC (permalink / raw) To: maxime, Daniel Vetter, David Airlie, Maarten Lankhorst, Petri Latvala, Arkadiusz Hiler Cc: Dom Cobley, Tim Gover, Martin Roukala, dri-devel, igt-dev, Phil Elwell [-- Attachment #1.1: Type: text/plain, Size: 3024 bytes --] Hi Maxime Am 24.10.22 um 14:43 schrieb maxime@cerno.tech: > Hi, > > I've discussing the idea for the past year to add an IGT test suite that > all well-behaved KMS drivers must pass. > > The main idea behind it comes from v4l2-compliance and cec-compliance, > that are being used to validate that the drivers are sane. > > We should probably start building up the test list, and eventually > mandate that all tests pass for all the new KMS drivers we would merge > in the kernel, and be run by KCi or similar. > > I did a first pass to create a draft of such a test-suite, which would > contain: > > igt@core_auth@basic-auth > igt@core_auth@getclient-master-drop > igt@core_auth@getclient-simple > igt@core_auth@many-magics > igt@core_getclient > igt@core_getstats > igt@core_getversion > igt@core_hotunplug@hotrebind-lateclose > igt@core_hotunplug@hotunbind-rebind > igt@core_hotunplug@unbind-rebind > igt@core_setmaster > igt@core_setmaster_vs_auth > igt@device_reset@unbind-reset-rebind > igt@drm_read > igt@dumb_buffer > igt@fbdev Maybe we make this test optional? At least sprd decided to not support fbdev at all. Best regards Thomas > igt@feature_discovery@display > igt@kms_3d > igt@kms_addfb_basic > igt@kms_async_flips > igt@kms_color > igt@kms_concurrent > igt@kms_cursor_crc > igt@kms_cursor_edge_walk > igt@kms_cursor_legacy@basic-busy-flip-before-cursor > igt@kms_cursor_legacy@basic-flip-after-cursor > igt@kms_cursor_legacy@basic-flip-after-cursor > igt@kms_display_modes > igt@kms_dither > igt@kms_dp_aux_dev > igt@kms_flip@basic-flip-vs-dpms > igt@kms_flip@basic-flip-vs-modeset > igt@kms_flip@basic-flip-vs-wf_vblank > igt@kms_flip@basic-plain-flip > igt@kms_flip_event_leak@basic > igt@kms_force_connector_basic@force-connector-state > igt@kms_force_connector_basic@force-edid > igt@kms_force_connector_basic@force-load-detect > igt@kms_force_connector_basic@prune-stale-modes > igt@kms_getfb > igt@kms_hdmi_inject > igt@kms_hdr > igt@kms_invalid_mode > igt@kms_lease > igt@kms_panel_fitting > igt@kms_pipe_crc_basic > igt@kms_plane_alpha_blend > igt@kms_plane > igt@kms_plane_cursor > igt@kms_plane_lowres > igt@kms_plane_multiple > igt@kms_plane_scaling > igt@kms_prop_blob > igt@kms_properties > igt@kms_rmfb > igt@kms_scaling_modes > igt@kms_sequence > igt@kms_setmode > igt@kms_sysfs_edid_timing > igt@kms_tv_load_detect > igt@kms_universal_plane > igt@kms_vblank > igt@kms_vrr > igt@kms_writeback > > Most of them are skipped on vc4 right now, but I could see that some of > them fail already (kms_rmfb, core_hotunplug), so it proves to be useful > already. > > What do you think? Is there some more tests needed, or did I include > some tests that shouldn't have been there? > > Thanks! > Maxime -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Must-Pass Test Suite for KMS drivers @ 2022-10-28 7:31 ` Thomas Zimmermann 0 siblings, 0 replies; 24+ messages in thread From: Thomas Zimmermann @ 2022-10-28 7:31 UTC (permalink / raw) To: maxime, Daniel Vetter, David Airlie, Maarten Lankhorst, Petri Latvala, Arkadiusz Hiler Cc: Dom Cobley, Tim Gover, Dave Stevenson, Martin Roukala, dri-devel, igt-dev, Phil Elwell [-- Attachment #1.1: Type: text/plain, Size: 3024 bytes --] Hi Maxime Am 24.10.22 um 14:43 schrieb maxime@cerno.tech: > Hi, > > I've discussing the idea for the past year to add an IGT test suite that > all well-behaved KMS drivers must pass. > > The main idea behind it comes from v4l2-compliance and cec-compliance, > that are being used to validate that the drivers are sane. > > We should probably start building up the test list, and eventually > mandate that all tests pass for all the new KMS drivers we would merge > in the kernel, and be run by KCi or similar. > > I did a first pass to create a draft of such a test-suite, which would > contain: > > igt@core_auth@basic-auth > igt@core_auth@getclient-master-drop > igt@core_auth@getclient-simple > igt@core_auth@many-magics > igt@core_getclient > igt@core_getstats > igt@core_getversion > igt@core_hotunplug@hotrebind-lateclose > igt@core_hotunplug@hotunbind-rebind > igt@core_hotunplug@unbind-rebind > igt@core_setmaster > igt@core_setmaster_vs_auth > igt@device_reset@unbind-reset-rebind > igt@drm_read > igt@dumb_buffer > igt@fbdev Maybe we make this test optional? At least sprd decided to not support fbdev at all. Best regards Thomas > igt@feature_discovery@display > igt@kms_3d > igt@kms_addfb_basic > igt@kms_async_flips > igt@kms_color > igt@kms_concurrent > igt@kms_cursor_crc > igt@kms_cursor_edge_walk > igt@kms_cursor_legacy@basic-busy-flip-before-cursor > igt@kms_cursor_legacy@basic-flip-after-cursor > igt@kms_cursor_legacy@basic-flip-after-cursor > igt@kms_display_modes > igt@kms_dither > igt@kms_dp_aux_dev > igt@kms_flip@basic-flip-vs-dpms > igt@kms_flip@basic-flip-vs-modeset > igt@kms_flip@basic-flip-vs-wf_vblank > igt@kms_flip@basic-plain-flip > igt@kms_flip_event_leak@basic > igt@kms_force_connector_basic@force-connector-state > igt@kms_force_connector_basic@force-edid > igt@kms_force_connector_basic@force-load-detect > igt@kms_force_connector_basic@prune-stale-modes > igt@kms_getfb > igt@kms_hdmi_inject > igt@kms_hdr > igt@kms_invalid_mode > igt@kms_lease > igt@kms_panel_fitting > igt@kms_pipe_crc_basic > igt@kms_plane_alpha_blend > igt@kms_plane > igt@kms_plane_cursor > igt@kms_plane_lowres > igt@kms_plane_multiple > igt@kms_plane_scaling > igt@kms_prop_blob > igt@kms_properties > igt@kms_rmfb > igt@kms_scaling_modes > igt@kms_sequence > igt@kms_setmode > igt@kms_sysfs_edid_timing > igt@kms_tv_load_detect > igt@kms_universal_plane > igt@kms_vblank > igt@kms_vrr > igt@kms_writeback > > Most of them are skipped on vc4 right now, but I could see that some of > them fail already (kms_rmfb, core_hotunplug), so it proves to be useful > already. > > What do you think? Is there some more tests needed, or did I include > some tests that shouldn't have been there? > > Thanks! > Maxime -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-10-28 7:31 ` Thomas Zimmermann @ 2022-11-07 9:30 ` Maxime Ripard -1 siblings, 0 replies; 24+ messages in thread From: Maxime Ripard @ 2022-11-07 9:30 UTC (permalink / raw) To: Thomas Zimmermann Cc: Petri Latvala, Tim Gover, David Airlie, Martin Roukala, dri-devel, igt-dev, Daniel Vetter, Phil Elwell, Dom Cobley Hi Thomas, On Fri, Oct 28, 2022 at 09:31:38AM +0200, Thomas Zimmermann wrote: > Am 24.10.22 um 14:43 schrieb maxime@cerno.tech: > > I've discussing the idea for the past year to add an IGT test suite that > > all well-behaved KMS drivers must pass. > > > > The main idea behind it comes from v4l2-compliance and cec-compliance, > > that are being used to validate that the drivers are sane. > > > > We should probably start building up the test list, and eventually > > mandate that all tests pass for all the new KMS drivers we would merge > > in the kernel, and be run by KCi or similar. > > > > I did a first pass to create a draft of such a test-suite, which would > > contain: > > > > igt@core_auth@basic-auth > > igt@core_auth@getclient-master-drop > > igt@core_auth@getclient-simple > > igt@core_auth@many-magics > > igt@core_getclient > > igt@core_getstats > > igt@core_getversion > > igt@core_hotunplug@hotrebind-lateclose > > igt@core_hotunplug@hotunbind-rebind > > igt@core_hotunplug@unbind-rebind > > igt@core_setmaster > > igt@core_setmaster_vs_auth > > igt@device_reset@unbind-reset-rebind > > igt@drm_read > > igt@dumb_buffer > > igt@fbdev > > Maybe we make this test optional? At least sprd decided to not support fbdev > at all. I'm not sure we need to make that test optional, or at least, we should run it all the time, but skip it if there's no fbdev emulation, and not report it as a failure? Maxime ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Must-Pass Test Suite for KMS drivers @ 2022-11-07 9:30 ` Maxime Ripard 0 siblings, 0 replies; 24+ messages in thread From: Maxime Ripard @ 2022-11-07 9:30 UTC (permalink / raw) To: Thomas Zimmermann Cc: Petri Latvala, Tim Gover, Dave Stevenson, David Airlie, Martin Roukala, dri-devel, igt-dev, Arkadiusz Hiler, Daniel Vetter, Phil Elwell, Dom Cobley Hi Thomas, On Fri, Oct 28, 2022 at 09:31:38AM +0200, Thomas Zimmermann wrote: > Am 24.10.22 um 14:43 schrieb maxime@cerno.tech: > > I've discussing the idea for the past year to add an IGT test suite that > > all well-behaved KMS drivers must pass. > > > > The main idea behind it comes from v4l2-compliance and cec-compliance, > > that are being used to validate that the drivers are sane. > > > > We should probably start building up the test list, and eventually > > mandate that all tests pass for all the new KMS drivers we would merge > > in the kernel, and be run by KCi or similar. > > > > I did a first pass to create a draft of such a test-suite, which would > > contain: > > > > igt@core_auth@basic-auth > > igt@core_auth@getclient-master-drop > > igt@core_auth@getclient-simple > > igt@core_auth@many-magics > > igt@core_getclient > > igt@core_getstats > > igt@core_getversion > > igt@core_hotunplug@hotrebind-lateclose > > igt@core_hotunplug@hotunbind-rebind > > igt@core_hotunplug@unbind-rebind > > igt@core_setmaster > > igt@core_setmaster_vs_auth > > igt@device_reset@unbind-reset-rebind > > igt@drm_read > > igt@dumb_buffer > > igt@fbdev > > Maybe we make this test optional? At least sprd decided to not support fbdev > at all. I'm not sure we need to make that test optional, or at least, we should run it all the time, but skip it if there's no fbdev emulation, and not report it as a failure? Maxime ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-11-07 9:30 ` Maxime Ripard @ 2022-11-07 9:42 ` Thomas Zimmermann -1 siblings, 0 replies; 24+ messages in thread From: Thomas Zimmermann @ 2022-11-07 9:42 UTC (permalink / raw) To: Maxime Ripard Cc: Petri Latvala, Tim Gover, David Airlie, Martin Roukala, dri-devel, igt-dev, Daniel Vetter, Phil Elwell, Dom Cobley [-- Attachment #1.1: Type: text/plain, Size: 1857 bytes --] Hi Am 07.11.22 um 10:30 schrieb Maxime Ripard: > Hi Thomas, > > On Fri, Oct 28, 2022 at 09:31:38AM +0200, Thomas Zimmermann wrote: >> Am 24.10.22 um 14:43 schrieb maxime@cerno.tech: >>> I've discussing the idea for the past year to add an IGT test suite that >>> all well-behaved KMS drivers must pass. >>> >>> The main idea behind it comes from v4l2-compliance and cec-compliance, >>> that are being used to validate that the drivers are sane. >>> >>> We should probably start building up the test list, and eventually >>> mandate that all tests pass for all the new KMS drivers we would merge >>> in the kernel, and be run by KCi or similar. >>> >>> I did a first pass to create a draft of such a test-suite, which would >>> contain: >>> >>> igt@core_auth@basic-auth >>> igt@core_auth@getclient-master-drop >>> igt@core_auth@getclient-simple >>> igt@core_auth@many-magics >>> igt@core_getclient >>> igt@core_getstats >>> igt@core_getversion >>> igt@core_hotunplug@hotrebind-lateclose >>> igt@core_hotunplug@hotunbind-rebind >>> igt@core_hotunplug@unbind-rebind >>> igt@core_setmaster >>> igt@core_setmaster_vs_auth >>> igt@device_reset@unbind-reset-rebind >>> igt@drm_read >>> igt@dumb_buffer >>> igt@fbdev >> >> Maybe we make this test optional? At least sprd decided to not support fbdev >> at all. > > I'm not sure we need to make that test optional, or at least, we should > run it all the time, but skip it if there's no fbdev emulation, and not > report it as a failure? Sure. I just meant that fbdev support shouldn't be a blocker. If there, it should work of course. Best regards Thomas > > Maxime -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Must-Pass Test Suite for KMS drivers @ 2022-11-07 9:42 ` Thomas Zimmermann 0 siblings, 0 replies; 24+ messages in thread From: Thomas Zimmermann @ 2022-11-07 9:42 UTC (permalink / raw) To: Maxime Ripard Cc: Petri Latvala, Tim Gover, Dave Stevenson, David Airlie, Martin Roukala, dri-devel, igt-dev, Arkadiusz Hiler, Daniel Vetter, Phil Elwell, Dom Cobley [-- Attachment #1.1: Type: text/plain, Size: 1857 bytes --] Hi Am 07.11.22 um 10:30 schrieb Maxime Ripard: > Hi Thomas, > > On Fri, Oct 28, 2022 at 09:31:38AM +0200, Thomas Zimmermann wrote: >> Am 24.10.22 um 14:43 schrieb maxime@cerno.tech: >>> I've discussing the idea for the past year to add an IGT test suite that >>> all well-behaved KMS drivers must pass. >>> >>> The main idea behind it comes from v4l2-compliance and cec-compliance, >>> that are being used to validate that the drivers are sane. >>> >>> We should probably start building up the test list, and eventually >>> mandate that all tests pass for all the new KMS drivers we would merge >>> in the kernel, and be run by KCi or similar. >>> >>> I did a first pass to create a draft of such a test-suite, which would >>> contain: >>> >>> igt@core_auth@basic-auth >>> igt@core_auth@getclient-master-drop >>> igt@core_auth@getclient-simple >>> igt@core_auth@many-magics >>> igt@core_getclient >>> igt@core_getstats >>> igt@core_getversion >>> igt@core_hotunplug@hotrebind-lateclose >>> igt@core_hotunplug@hotunbind-rebind >>> igt@core_hotunplug@unbind-rebind >>> igt@core_setmaster >>> igt@core_setmaster_vs_auth >>> igt@device_reset@unbind-reset-rebind >>> igt@drm_read >>> igt@dumb_buffer >>> igt@fbdev >> >> Maybe we make this test optional? At least sprd decided to not support fbdev >> at all. > > I'm not sure we need to make that test optional, or at least, we should > run it all the time, but skip it if there's no fbdev emulation, and not > report it as a failure? Sure. I just meant that fbdev support shouldn't be a blocker. If there, it should work of course. Best regards Thomas > > Maxime -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-11-07 9:42 ` Thomas Zimmermann (?) @ 2022-11-07 10:26 ` Daniel Vetter 2022-11-07 10:53 ` Thomas Zimmermann -1 siblings, 1 reply; 24+ messages in thread From: Daniel Vetter @ 2022-11-07 10:26 UTC (permalink / raw) To: Thomas Zimmermann Cc: Petri Latvala, Tim Gover, David Airlie, Martin Roukala, dri-devel, igt-dev, Maxime Ripard, Daniel Vetter, Phil Elwell, Dom Cobley On Mon, 7 Nov 2022 at 10:43, Thomas Zimmermann <tzimmermann@suse.de> wrote: > > Hi > > Am 07.11.22 um 10:30 schrieb Maxime Ripard: > > Hi Thomas, > > > > On Fri, Oct 28, 2022 at 09:31:38AM +0200, Thomas Zimmermann wrote: > >> Am 24.10.22 um 14:43 schrieb maxime@cerno.tech: > >>> I've discussing the idea for the past year to add an IGT test suite that > >>> all well-behaved KMS drivers must pass. > >>> > >>> The main idea behind it comes from v4l2-compliance and cec-compliance, > >>> that are being used to validate that the drivers are sane. > >>> > >>> We should probably start building up the test list, and eventually > >>> mandate that all tests pass for all the new KMS drivers we would merge > >>> in the kernel, and be run by KCi or similar. > >>> > >>> I did a first pass to create a draft of such a test-suite, which would > >>> contain: > >>> > >>> igt@core_auth@basic-auth > >>> igt@core_auth@getclient-master-drop > >>> igt@core_auth@getclient-simple > >>> igt@core_auth@many-magics > >>> igt@core_getclient > >>> igt@core_getstats > >>> igt@core_getversion > >>> igt@core_hotunplug@hotrebind-lateclose > >>> igt@core_hotunplug@hotunbind-rebind > >>> igt@core_hotunplug@unbind-rebind > >>> igt@core_setmaster > >>> igt@core_setmaster_vs_auth > >>> igt@device_reset@unbind-reset-rebind > >>> igt@drm_read > >>> igt@dumb_buffer > >>> igt@fbdev > >> > >> Maybe we make this test optional? At least sprd decided to not support fbdev > >> at all. > > > > I'm not sure we need to make that test optional, or at least, we should > > run it all the time, but skip it if there's no fbdev emulation, and not > > report it as a failure? > > Sure. I just meant that fbdev support shouldn't be a blocker. If there, > it should work of course. Not supporting fbdev looks more like an accident than intention here, and maybe a good reason to have these kind of must-past lists. Eventually, once the i915-ism is worked out of igt well enough for a set of tests at least. The drm/ci effort should help in building up that list (by essentially extracting the common set of tests that everyone passes and graduating that to the must-pass list for kms conformance or whatever we'll call it). -Daniel > > Best regards > Thomas > > > > > Maxime > > -- > Thomas Zimmermann > Graphics Driver Developer > SUSE Software Solutions Germany GmbH > Maxfeldstr. 5, 90409 Nürnberg, Germany > (HRB 36809, AG Nürnberg) > Geschäftsführer: Ivo Totev -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-11-07 10:26 ` [igt-dev] " Daniel Vetter @ 2022-11-07 10:53 ` Thomas Zimmermann 2022-11-07 17:04 ` Daniel Vetter 0 siblings, 1 reply; 24+ messages in thread From: Thomas Zimmermann @ 2022-11-07 10:53 UTC (permalink / raw) To: Daniel Vetter Cc: Petri Latvala, Tim Gover, David Airlie, Martin Roukala, dri-devel, igt-dev, Maxime Ripard, Daniel Vetter, Phil Elwell, Dom Cobley [-- Attachment #1.1: Type: text/plain, Size: 3093 bytes --] Hi Am 07.11.22 um 11:26 schrieb Daniel Vetter: > On Mon, 7 Nov 2022 at 10:43, Thomas Zimmermann <tzimmermann@suse.de> wrote: >> >> Hi >> >> Am 07.11.22 um 10:30 schrieb Maxime Ripard: >>> Hi Thomas, >>> >>> On Fri, Oct 28, 2022 at 09:31:38AM +0200, Thomas Zimmermann wrote: >>>> Am 24.10.22 um 14:43 schrieb maxime@cerno.tech: >>>>> I've discussing the idea for the past year to add an IGT test suite that >>>>> all well-behaved KMS drivers must pass. >>>>> >>>>> The main idea behind it comes from v4l2-compliance and cec-compliance, >>>>> that are being used to validate that the drivers are sane. >>>>> >>>>> We should probably start building up the test list, and eventually >>>>> mandate that all tests pass for all the new KMS drivers we would merge >>>>> in the kernel, and be run by KCi or similar. >>>>> >>>>> I did a first pass to create a draft of such a test-suite, which would >>>>> contain: >>>>> >>>>> igt@core_auth@basic-auth >>>>> igt@core_auth@getclient-master-drop >>>>> igt@core_auth@getclient-simple >>>>> igt@core_auth@many-magics >>>>> igt@core_getclient >>>>> igt@core_getstats >>>>> igt@core_getversion >>>>> igt@core_hotunplug@hotrebind-lateclose >>>>> igt@core_hotunplug@hotunbind-rebind >>>>> igt@core_hotunplug@unbind-rebind >>>>> igt@core_setmaster >>>>> igt@core_setmaster_vs_auth >>>>> igt@device_reset@unbind-reset-rebind >>>>> igt@drm_read >>>>> igt@dumb_buffer >>>>> igt@fbdev >>>> >>>> Maybe we make this test optional? At least sprd decided to not support fbdev >>>> at all. >>> >>> I'm not sure we need to make that test optional, or at least, we should >>> run it all the time, but skip it if there's no fbdev emulation, and not >>> report it as a failure? >> >> Sure. I just meant that fbdev support shouldn't be a blocker. If there, >> it should work of course. > > Not supporting fbdev looks more like an accident than intention here, > and maybe a good reason to have these kind of must-past lists. No. Back then, I specifically asked the developer, Kevin Tang IIRC, about fbdev/console support and he replied that he has no intention of adding it. It's the only driver without fbdev, but as we don't have such a requirements AFAIK, I left it at that. Best regards Thomas > Eventually, once the i915-ism is worked out of igt well enough for a > set of tests at least. The drm/ci effort should help in building up > that list (by essentially extracting the common set of tests that > everyone passes and graduating that to the must-pass list for kms > conformance or whatever we'll call it). > -Daniel > >> >> Best regards >> Thomas >> >>> >>> Maxime >> >> -- >> Thomas Zimmermann >> Graphics Driver Developer >> SUSE Software Solutions Germany GmbH >> Maxfeldstr. 5, 90409 Nürnberg, Germany >> (HRB 36809, AG Nürnberg) >> Geschäftsführer: Ivo Totev > > > -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany (HRB 36809, AG Nürnberg) Geschäftsführer: Ivo Totev [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 840 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [igt-dev] Must-Pass Test Suite for KMS drivers 2022-11-07 10:53 ` Thomas Zimmermann @ 2022-11-07 17:04 ` Daniel Vetter 0 siblings, 0 replies; 24+ messages in thread From: Daniel Vetter @ 2022-11-07 17:04 UTC (permalink / raw) To: Thomas Zimmermann Cc: Petri Latvala, Tim Gover, David Airlie, Martin Roukala, dri-devel, igt-dev, Maxime Ripard, Daniel Vetter, Phil Elwell, Dom Cobley On Mon, 7 Nov 2022 at 11:53, Thomas Zimmermann <tzimmermann@suse.de> wrote: > > Hi > > Am 07.11.22 um 11:26 schrieb Daniel Vetter: > > On Mon, 7 Nov 2022 at 10:43, Thomas Zimmermann <tzimmermann@suse.de> wrote: > >> > >> Hi > >> > >> Am 07.11.22 um 10:30 schrieb Maxime Ripard: > >>> Hi Thomas, > >>> > >>> On Fri, Oct 28, 2022 at 09:31:38AM +0200, Thomas Zimmermann wrote: > >>>> Am 24.10.22 um 14:43 schrieb maxime@cerno.tech: > >>>>> I've discussing the idea for the past year to add an IGT test suite that > >>>>> all well-behaved KMS drivers must pass. > >>>>> > >>>>> The main idea behind it comes from v4l2-compliance and cec-compliance, > >>>>> that are being used to validate that the drivers are sane. > >>>>> > >>>>> We should probably start building up the test list, and eventually > >>>>> mandate that all tests pass for all the new KMS drivers we would merge > >>>>> in the kernel, and be run by KCi or similar. > >>>>> > >>>>> I did a first pass to create a draft of such a test-suite, which would > >>>>> contain: > >>>>> > >>>>> igt@core_auth@basic-auth > >>>>> igt@core_auth@getclient-master-drop > >>>>> igt@core_auth@getclient-simple > >>>>> igt@core_auth@many-magics > >>>>> igt@core_getclient > >>>>> igt@core_getstats > >>>>> igt@core_getversion > >>>>> igt@core_hotunplug@hotrebind-lateclose > >>>>> igt@core_hotunplug@hotunbind-rebind > >>>>> igt@core_hotunplug@unbind-rebind > >>>>> igt@core_setmaster > >>>>> igt@core_setmaster_vs_auth > >>>>> igt@device_reset@unbind-reset-rebind > >>>>> igt@drm_read > >>>>> igt@dumb_buffer > >>>>> igt@fbdev > >>>> > >>>> Maybe we make this test optional? At least sprd decided to not support fbdev > >>>> at all. > >>> > >>> I'm not sure we need to make that test optional, or at least, we should > >>> run it all the time, but skip it if there's no fbdev emulation, and not > >>> report it as a failure? > >> > >> Sure. I just meant that fbdev support shouldn't be a blocker. If there, > >> it should work of course. > > > > Not supporting fbdev looks more like an accident than intention here, > > and maybe a good reason to have these kind of must-past lists. > > No. Back then, I specifically asked the developer, Kevin Tang IIRC, > about fbdev/console support and he replied that he has no intention of > adding it. > > It's the only driver without fbdev, but as we don't have such a > requirements AFAIK, I left it at that. It does hurt a bit the sales pitch that a drm-kms driver is the one-stop-shop for display driver needs, and so I'd only do this if there's some technical reasons why fbdev just wont work (like no hw support for formats fbdev supports or something), and not just because the vendor has no need for this right now. Otoh it's generally just one line to add if the driver works correctly, so ... *shrug* Cheers, Daniel > > Best regards > Thomas > > > Eventually, once the i915-ism is worked out of igt well enough for a > > set of tests at least. The drm/ci effort should help in building up > > that list (by essentially extracting the common set of tests that > > everyone passes and graduating that to the must-pass list for kms > > conformance or whatever we'll call it). > > -Daniel > > > >> > >> Best regards > >> Thomas > >> > >>> > >>> Maxime > >> > >> -- > >> Thomas Zimmermann > >> Graphics Driver Developer > >> SUSE Software Solutions Germany GmbH > >> Maxfeldstr. 5, 90409 Nürnberg, Germany > >> (HRB 36809, AG Nürnberg) > >> Geschäftsführer: Ivo Totev > > > > > > > > -- > Thomas Zimmermann > Graphics Driver Developer > SUSE Software Solutions Germany GmbH > Maxfeldstr. 5, 90409 Nürnberg, Germany > (HRB 36809, AG Nürnberg) > Geschäftsführer: Ivo Totev -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch ^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~2022-11-07 19:13 UTC | newest] Thread overview: 24+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-10-24 12:43 [igt-dev] Must-Pass Test Suite for KMS drivers maxime 2022-10-24 12:43 ` maxime 2022-10-24 15:48 ` [igt-dev] " Rob Clark 2022-10-24 15:48 ` Rob Clark 2022-10-24 15:58 ` [igt-dev] " Ville Syrjälä 2022-10-24 18:16 ` Juha-Pekka Heikkila 2022-10-27 14:48 ` Maxime Ripard 2022-10-26 8:17 ` maxime 2022-10-26 8:17 ` maxime 2022-10-27 15:08 ` [igt-dev] " Rob Clark 2022-10-27 15:08 ` Rob Clark 2022-11-07 9:29 ` [igt-dev] " Maxime Ripard 2022-11-07 9:29 ` Maxime Ripard 2022-11-07 19:13 ` [igt-dev] " Rob Clark 2022-11-07 19:13 ` Rob Clark 2022-10-28 7:31 ` [igt-dev] " Thomas Zimmermann 2022-10-28 7:31 ` Thomas Zimmermann 2022-11-07 9:30 ` [igt-dev] " Maxime Ripard 2022-11-07 9:30 ` Maxime Ripard 2022-11-07 9:42 ` [igt-dev] " Thomas Zimmermann 2022-11-07 9:42 ` Thomas Zimmermann 2022-11-07 10:26 ` [igt-dev] " Daniel Vetter 2022-11-07 10:53 ` Thomas Zimmermann 2022-11-07 17:04 ` Daniel Vetter
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.