* [igt-dev] [PATCH] [i-g-t] tests/amdgpu/amd_hotplug: add delay after igt_system_suspend_autoresume @ 2023-04-24 13:48 Hersen Wu 2023-04-24 16:07 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork 2023-04-24 16:49 ` [igt-dev] [PATCH] [i-g-t] " Rodrigo Siqueira Jordao 0 siblings, 2 replies; 5+ messages in thread From: Hersen Wu @ 2023-04-24 13:48 UTC (permalink / raw) To: igt-dev, rodrigo.siqueira, aurabindo.pillai, alex.hung, hamza.mahfooz Cc: Hersen Wu at call back of igt_system_suspend_autoresume, linux kernel resume finish and in d0 state. but user mode components may not be fully out of sleep mode. add delay wait for system stable before issuing debugfs_hotplug_trigger. Signed-off-by: Hersen Wu <hersenxs.wu@amd.com> --- tests/amdgpu/amd_hotplug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/amdgpu/amd_hotplug.c b/tests/amdgpu/amd_hotplug.c index 736040a2..1c946ff8 100644 --- a/tests/amdgpu/amd_hotplug.c +++ b/tests/amdgpu/amd_hotplug.c @@ -133,6 +133,7 @@ static void test_hotplug_basic(data_t *data, bool suspend) if (suspend) { igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE); + sleep(30); } /* Trigger hotplug and confirm reference image is the same. */ -- 2.25.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [igt-dev] ✗ Fi.CI.BAT: failure for tests/amdgpu/amd_hotplug: add delay after igt_system_suspend_autoresume 2023-04-24 13:48 [igt-dev] [PATCH] [i-g-t] tests/amdgpu/amd_hotplug: add delay after igt_system_suspend_autoresume Hersen Wu @ 2023-04-24 16:07 ` Patchwork 2023-04-24 16:49 ` [igt-dev] [PATCH] [i-g-t] " Rodrigo Siqueira Jordao 1 sibling, 0 replies; 5+ messages in thread From: Patchwork @ 2023-04-24 16:07 UTC (permalink / raw) To: Hersen Wu; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 6078 bytes --] == Series Details == Series: tests/amdgpu/amd_hotplug: add delay after igt_system_suspend_autoresume URL : https://patchwork.freedesktop.org/series/116891/ State : failure == Summary == CI Bug Log - changes from CI_DRM_13054 -> IGTPW_8847 ==================================================== Summary ------- **FAILURE** Serious unknown changes coming with IGTPW_8847 absolutely need to be verified manually. If you think the reported changes have nothing to do with the changes introduced in IGTPW_8847, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/index.html Participating hosts (38 -> 38) ------------------------------ Additional (1): fi-kbl-soraka Missing (1): fi-snb-2520m Possible new issues ------------------- Here are the unknown changes that may have been introduced in IGTPW_8847: ### IGT changes ### #### Possible regressions #### * igt@i915_selftest@live@gt_tlb: - fi-apl-guc: [PASS][1] -> [ABORT][2] [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13054/fi-apl-guc/igt@i915_selftest@live@gt_tlb.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/fi-apl-guc/igt@i915_selftest@live@gt_tlb.html #### Suppressed #### The following results come from untrusted machines, tests, or statuses. They do not affect the overall result. * igt@i915_module_load@load: - {bat-mtlp-8}: [ABORT][3] ([i915#8361]) -> [ABORT][4] [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13054/bat-mtlp-8/igt@i915_module_load@load.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/bat-mtlp-8/igt@i915_module_load@load.html Known issues ------------ Here are the changes found in IGTPW_8847 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_exec_suspend@basic-s3@smem: - bat-rpls-1: NOTRUN -> [ABORT][5] ([i915#6687] / [i915#7978]) [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/bat-rpls-1/igt@gem_exec_suspend@basic-s3@smem.html * igt@gem_huc_copy@huc-copy: - fi-kbl-soraka: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#2190]) [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/fi-kbl-soraka/igt@gem_huc_copy@huc-copy.html * igt@gem_lmem_swapping@basic: - fi-kbl-soraka: NOTRUN -> [SKIP][7] ([fdo#109271] / [i915#4613]) +3 similar issues [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/fi-kbl-soraka/igt@gem_lmem_swapping@basic.html * igt@i915_selftest@live@gt_pm: - fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][8] ([i915#1886]) [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html * igt@i915_selftest@live@mman: - bat-rpls-1: NOTRUN -> [TIMEOUT][9] ([i915#6794]) [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/bat-rpls-1/igt@i915_selftest@live@mman.html * igt@kms_chamelium_frames@hdmi-crc-fast: - fi-kbl-soraka: NOTRUN -> [SKIP][10] ([fdo#109271]) +16 similar issues [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/fi-kbl-soraka/igt@kms_chamelium_frames@hdmi-crc-fast.html * igt@kms_pipe_crc_basic@nonblocking-crc@pipe-d-dp-1: - bat-dg2-8: [PASS][11] -> [FAIL][12] ([i915#7932]) [11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13054/bat-dg2-8/igt@kms_pipe_crc_basic@nonblocking-crc@pipe-d-dp-1.html [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/bat-dg2-8/igt@kms_pipe_crc_basic@nonblocking-crc@pipe-d-dp-1.html * igt@kms_pipe_crc_basic@read-crc: - bat-adlp-9: NOTRUN -> [SKIP][13] ([i915#3546]) +1 similar issue [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/bat-adlp-9/igt@kms_pipe_crc_basic@read-crc.html #### Possible fixes #### * igt@i915_selftest@live@migrate: - bat-adlp-6: [DMESG-FAIL][14] ([i915#7699]) -> [PASS][15] [14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13054/bat-adlp-6/igt@i915_selftest@live@migrate.html [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/bat-adlp-6/igt@i915_selftest@live@migrate.html * igt@i915_selftest@live@requests: - bat-rpls-1: [ABORT][16] ([i915#4983] / [i915#7911]) -> [PASS][17] [16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13054/bat-rpls-1/igt@i915_selftest@live@requests.html [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/bat-rpls-1/igt@i915_selftest@live@requests.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271 [i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886 [i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190 [i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546 [i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613 [i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983 [i915#6687]: https://gitlab.freedesktop.org/drm/intel/issues/6687 [i915#6794]: https://gitlab.freedesktop.org/drm/intel/issues/6794 [i915#7699]: https://gitlab.freedesktop.org/drm/intel/issues/7699 [i915#7911]: https://gitlab.freedesktop.org/drm/intel/issues/7911 [i915#7932]: https://gitlab.freedesktop.org/drm/intel/issues/7932 [i915#7978]: https://gitlab.freedesktop.org/drm/intel/issues/7978 [i915#8361]: https://gitlab.freedesktop.org/drm/intel/issues/8361 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_7266 -> IGTPW_8847 CI-20190529: 20190529 CI_DRM_13054: 8cabe2adb8e028197f9535daffd3d5ff98d51d8b @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_8847: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/index.html IGT_7266: 94411dd85f9ad6d76fb7b2097197122703a3914c @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8847/index.html [-- Attachment #2: Type: text/html, Size: 7131 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH] [i-g-t] tests/amdgpu/amd_hotplug: add delay after igt_system_suspend_autoresume 2023-04-24 13:48 [igt-dev] [PATCH] [i-g-t] tests/amdgpu/amd_hotplug: add delay after igt_system_suspend_autoresume Hersen Wu 2023-04-24 16:07 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork @ 2023-04-24 16:49 ` Rodrigo Siqueira Jordao 2023-04-24 19:02 ` Wu, Hersen 1 sibling, 1 reply; 5+ messages in thread From: Rodrigo Siqueira Jordao @ 2023-04-24 16:49 UTC (permalink / raw) To: Hersen Wu, igt-dev, aurabindo.pillai, alex.hung, hamza.mahfooz On 4/24/23 07:48, Hersen Wu wrote: > at call back of igt_system_suspend_autoresume, linux kernel resume > finish and in d0 state. but user mode components may not be fully > out of sleep mode. add delay wait for system stable before issuing > debugfs_hotplug_trigger. > > Signed-off-by: Hersen Wu <hersenxs.wu@amd.com> > --- > tests/amdgpu/amd_hotplug.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tests/amdgpu/amd_hotplug.c b/tests/amdgpu/amd_hotplug.c > index 736040a2..1c946ff8 100644 > --- a/tests/amdgpu/amd_hotplug.c > +++ b/tests/amdgpu/amd_hotplug.c > @@ -133,6 +133,7 @@ static void test_hotplug_basic(data_t *data, bool suspend) > if (suspend) { > igt_system_suspend_autoresume(SUSPEND_STATE_MEM, > SUSPEND_TEST_NONE); > + sleep(30); Do we need to wait all of this time? If so, why? > } > > /* Trigger hotplug and confirm reference image is the same. */ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH] [i-g-t] tests/amdgpu/amd_hotplug: add delay after igt_system_suspend_autoresume 2023-04-24 16:49 ` [igt-dev] [PATCH] [i-g-t] " Rodrigo Siqueira Jordao @ 2023-04-24 19:02 ` Wu, Hersen 2023-04-24 19:15 ` Ville Syrjälä 0 siblings, 1 reply; 5+ messages in thread From: Wu, Hersen @ 2023-04-24 19:02 UTC (permalink / raw) To: Siqueira, Rodrigo, igt-dev@lists.freedesktop.org, Pillai, Aurabindo, Hung, Alex, Mahfooz, Hamza [AMD Official Use Only - General] After igt_system_suspend_autoresume is executed, Linux kernel should be out of sleep mode. By adding read power_state from /sys/class/drm/card0/device# cat power_state. Value is D0. This is already checked by reading amdgpu adev->in_suspend, value is false. Some other components may not finish process for resume. When batch run test case below, igt@amdgpu/amd_hotplug@basic-suspend igt@amdgpu/amd_link_settings@link-training-configs igt@amdgpu/amd_mem_leak@connector-suspend-resume igt@amdgpu/amd_hotplug@basic-suspend is executed, but the rest two test case are skipped. I do not find method to check if all SW components are out of resume processing. The delay 30 seconds is safe value based on experiments. AMD IGT test list are executed 15 loops. With delay 15 seconds, intermittent failure could still be captured. Thanks! Hersen -----Original Message----- From: Siqueira, Rodrigo <Rodrigo.Siqueira@amd.com> Sent: Monday, April 24, 2023 12:50 PM To: Wu, Hersen <hersenxs.wu@amd.com>; igt-dev@lists.freedesktop.org; Pillai, Aurabindo <Aurabindo.Pillai@amd.com>; Hung, Alex <Alex.Hung@amd.com>; Mahfooz, Hamza <Hamza.Mahfooz@amd.com> Subject: Re: [PATCH] [i-g-t] tests/amdgpu/amd_hotplug: add delay after igt_system_suspend_autoresume On 4/24/23 07:48, Hersen Wu wrote: > at call back of igt_system_suspend_autoresume, linux kernel resume > finish and in d0 state. but user mode components may not be fully out > of sleep mode. add delay wait for system stable before issuing > debugfs_hotplug_trigger. > > Signed-off-by: Hersen Wu <hersenxs.wu@amd.com> > --- > tests/amdgpu/amd_hotplug.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tests/amdgpu/amd_hotplug.c b/tests/amdgpu/amd_hotplug.c > index 736040a2..1c946ff8 100644 > --- a/tests/amdgpu/amd_hotplug.c > +++ b/tests/amdgpu/amd_hotplug.c > @@ -133,6 +133,7 @@ static void test_hotplug_basic(data_t *data, bool suspend) > if (suspend) { > igt_system_suspend_autoresume(SUSPEND_STATE_MEM, > SUSPEND_TEST_NONE); > + sleep(30); Do we need to wait all of this time? If so, why? > } > > /* Trigger hotplug and confirm reference image is the same. */ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH] [i-g-t] tests/amdgpu/amd_hotplug: add delay after igt_system_suspend_autoresume 2023-04-24 19:02 ` Wu, Hersen @ 2023-04-24 19:15 ` Ville Syrjälä 0 siblings, 0 replies; 5+ messages in thread From: Ville Syrjälä @ 2023-04-24 19:15 UTC (permalink / raw) To: Wu, Hersen; +Cc: igt-dev@lists.freedesktop.org, Mahfooz, Hamza On Mon, Apr 24, 2023 at 07:02:04PM +0000, Wu, Hersen wrote: > [AMD Official Use Only - General] > > After igt_system_suspend_autoresume is executed, Linux kernel should be out of sleep mode. > By adding read power_state from /sys/class/drm/card0/device# cat power_state. Value is D0. > This is already checked by reading amdgpu adev->in_suspend, value is false. > > Some other components may not finish process for resume. > > When batch run test case below, > > igt@amdgpu/amd_hotplug@basic-suspend > igt@amdgpu/amd_link_settings@link-training-configs > igt@amdgpu/amd_mem_leak@connector-suspend-resume > > > igt@amdgpu/amd_hotplug@basic-suspend is executed, but the rest two test case are skipped. > > I do not find method to check if all SW components are out of resume processing. The delay 30 seconds is safe value based on experiments. There is no such suspend processing. The kernel just freezed/thaws userspace as a whole. Once the igt is running so is rest of userspace. > AMD IGT test list are executed 15 loops. > > With delay 15 seconds, intermittent failure could still be captured. > > Thanks! > Hersen > > > > > > > > -----Original Message----- > From: Siqueira, Rodrigo <Rodrigo.Siqueira@amd.com> > Sent: Monday, April 24, 2023 12:50 PM > To: Wu, Hersen <hersenxs.wu@amd.com>; igt-dev@lists.freedesktop.org; Pillai, Aurabindo <Aurabindo.Pillai@amd.com>; Hung, Alex <Alex.Hung@amd.com>; Mahfooz, Hamza <Hamza.Mahfooz@amd.com> > Subject: Re: [PATCH] [i-g-t] tests/amdgpu/amd_hotplug: add delay after igt_system_suspend_autoresume > > > > On 4/24/23 07:48, Hersen Wu wrote: > > at call back of igt_system_suspend_autoresume, linux kernel resume > > finish and in d0 state. but user mode components may not be fully out > > of sleep mode. add delay wait for system stable before issuing > > debugfs_hotplug_trigger. > > > > Signed-off-by: Hersen Wu <hersenxs.wu@amd.com> > > --- > > tests/amdgpu/amd_hotplug.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/tests/amdgpu/amd_hotplug.c b/tests/amdgpu/amd_hotplug.c > > index 736040a2..1c946ff8 100644 > > --- a/tests/amdgpu/amd_hotplug.c > > +++ b/tests/amdgpu/amd_hotplug.c > > @@ -133,6 +133,7 @@ static void test_hotplug_basic(data_t *data, bool suspend) > > if (suspend) { > > igt_system_suspend_autoresume(SUSPEND_STATE_MEM, > > SUSPEND_TEST_NONE); > > + sleep(30); > > Do we need to wait all of this time? If so, why? > > > } > > > > /* Trigger hotplug and confirm reference image is the same. */ -- Ville Syrjälä Intel ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-04-24 19:15 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-04-24 13:48 [igt-dev] [PATCH] [i-g-t] tests/amdgpu/amd_hotplug: add delay after igt_system_suspend_autoresume Hersen Wu 2023-04-24 16:07 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork 2023-04-24 16:49 ` [igt-dev] [PATCH] [i-g-t] " Rodrigo Siqueira Jordao 2023-04-24 19:02 ` Wu, Hersen 2023-04-24 19:15 ` Ville Syrjälä
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox