* [igt-dev] [PATCH i-g-t] lib/igt_psr: Changed psr_set logic to account for older kernels
@ 2018-10-17 21:26 Casey Bowman
2018-10-17 21:54 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Casey Bowman @ 2018-10-17 21:26 UTC (permalink / raw)
To: igt-dev; +Cc: Casey Bowman, dhinakaran.pandiyan
Only EINVAL was being used to account for older kernels,
but on legacy kernels that don't use i915_edp_psr_debug,
the ENOENT error will be thrown. This changes the logic
to set PSR via the module parameter if a problem occurs
when attempting to set PSR via the debugfs_fd.
Signed-off-by: Casey Bowman <casey.g.bowman@intel.com>
---
lib/igt_psr.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index 0ddfb64f..6904393c 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -61,6 +61,8 @@ static int has_psr_debugfs(int debugfs_fd)
* Check if new PSR debugfs api is usable by writing an invalid value.
* Legacy mode will return OK here, debugfs api will return -EINVAL.
* -ENODEV is returned when PSR is unavailable.
+ * -ENOENT is returned when PSR debugfs api doesn't exist (i.e. using
+ * an older kernel).
*/
ret = psr_write(debugfs_fd, "0xf");
if (ret == -EINVAL)
@@ -103,11 +105,11 @@ static bool psr_set(int debugfs_fd, bool enable)
return false;
}
- if (ret == -EINVAL) {
- ret = psr_modparam_set(enable);
- } else {
+ if (ret == 0) {
ret = psr_write(debugfs_fd, enable ? "0x3" : "0x1");
igt_assert(ret > 0);
+ } else {
+ ret = psr_modparam_set(enable);
}
/* Restore original value on exit */
--
2.19.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_psr: Changed psr_set logic to account for older kernels
2018-10-17 21:26 [igt-dev] [PATCH i-g-t] lib/igt_psr: Changed psr_set logic to account for older kernels Casey Bowman
@ 2018-10-17 21:54 ` Patchwork
2018-10-17 22:54 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-10-18 21:12 ` [igt-dev] [PATCH i-g-t] " Souza, Jose
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2018-10-17 21:54 UTC (permalink / raw)
To: Casey Bowman; +Cc: igt-dev
== Series Details ==
Series: lib/igt_psr: Changed psr_set logic to account for older kernels
URL : https://patchwork.freedesktop.org/series/51142/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4994 -> IGTPW_1962 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/51142/revisions/1/mbox/
== Known issues ==
Here are the changes found in IGTPW_1962 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@drv_module_reload@basic-reload:
fi-glk-j4005: PASS -> DMESG-WARN (fdo#106725, fdo#106248)
igt@kms_chamelium@dp-edid-read:
fi-kbl-7500u: PASS -> WARN (fdo#102672)
igt@kms_flip@basic-flip-vs-modeset:
fi-glk-j4005: PASS -> DMESG-WARN (fdo#106000)
==== Possible fixes ====
igt@gem_exec_suspend@basic-s3:
fi-cfl-8109u: INCOMPLETE (fdo#108126, fdo#107187) -> PASS
igt@gem_exec_suspend@basic-s4-devices:
fi-kbl-7500u: DMESG-WARN (fdo#107139, fdo#105128) -> PASS
igt@kms_frontbuffer_tracking@basic:
fi-icl-u2: FAIL (fdo#103167) -> PASS
igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a:
fi-byt-clapper: FAIL (fdo#107362) -> PASS
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
fi-byt-clapper: FAIL (fdo#107362, fdo#103191) -> PASS
fdo#102672 https://bugs.freedesktop.org/show_bug.cgi?id=102672
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#105128 https://bugs.freedesktop.org/show_bug.cgi?id=105128
fdo#106000 https://bugs.freedesktop.org/show_bug.cgi?id=106000
fdo#106248 https://bugs.freedesktop.org/show_bug.cgi?id=106248
fdo#106725 https://bugs.freedesktop.org/show_bug.cgi?id=106725
fdo#107139 https://bugs.freedesktop.org/show_bug.cgi?id=107139
fdo#107187 https://bugs.freedesktop.org/show_bug.cgi?id=107187
fdo#107362 https://bugs.freedesktop.org/show_bug.cgi?id=107362
fdo#108126 https://bugs.freedesktop.org/show_bug.cgi?id=108126
== Participating hosts (46 -> 40) ==
Missing (6): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-kbl-7560u
== Build changes ==
* IGT: IGT_4682 -> IGTPW_1962
CI_DRM_4994: a587d260a1db3d6660c4148a5b3055f525bc7938 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1962: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1962/
IGT_4682: 0ac43db33e116b546e5704fe0b4dde21f391e09c @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1962/issues.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for lib/igt_psr: Changed psr_set logic to account for older kernels
2018-10-17 21:26 [igt-dev] [PATCH i-g-t] lib/igt_psr: Changed psr_set logic to account for older kernels Casey Bowman
2018-10-17 21:54 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
@ 2018-10-17 22:54 ` Patchwork
2018-10-18 21:12 ` [igt-dev] [PATCH i-g-t] " Souza, Jose
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2018-10-17 22:54 UTC (permalink / raw)
To: Casey Bowman; +Cc: igt-dev
== Series Details ==
Series: lib/igt_psr: Changed psr_set logic to account for older kernels
URL : https://patchwork.freedesktop.org/series/51142/
State : success
== Summary ==
= CI Bug Log - changes from IGT_4682_full -> IGTPW_1962_full =
== Summary - WARNING ==
Minor unknown changes coming with IGTPW_1962_full need to be verified
manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_1962_full, please notify your bug team to allow them
to document this new failure mode, which will reduce false positives in CI.
External URL: https://patchwork.freedesktop.org/api/1.0/series/51142/revisions/1/mbox/
== Possible new issues ==
Here are the unknown changes that may have been introduced in IGTPW_1962_full:
=== IGT changes ===
==== Warnings ====
igt@kms_plane@plane-position-hole-dpms-pipe-a-planes:
shard-snb: SKIP -> PASS +5
igt@pm_rc6_residency@rc6-accuracy:
shard-kbl: PASS -> SKIP
== Known issues ==
Here are the changes found in IGTPW_1962_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@gem_exec_schedule@pi-ringfull-bsd:
shard-glk: NOTRUN -> FAIL (fdo#103158) +2
igt@gem_workarounds@suspend-resume-context:
shard-kbl: PASS -> INCOMPLETE (fdo#103665)
igt@kms_available_modes_crc@available_mode_test_crc:
shard-glk: NOTRUN -> FAIL (fdo#106641)
igt@kms_busy@extended-modeset-hang-newfb-render-b:
shard-hsw: NOTRUN -> DMESG-WARN (fdo#107956) +4
igt@kms_busy@extended-modeset-hang-newfb-render-c:
shard-kbl: PASS -> DMESG-WARN (fdo#107956)
igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-b:
shard-snb: NOTRUN -> DMESG-WARN (fdo#107956) +3
igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-b:
shard-hsw: PASS -> DMESG-WARN (fdo#107956)
igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-c:
shard-glk: NOTRUN -> DMESG-WARN (fdo#107956) +4
igt@kms_chv_cursor_fail@pipe-b-256x256-bottom-edge:
shard-glk: NOTRUN -> INCOMPLETE (k.org#198133, fdo#103359)
igt@kms_cursor_crc@cursor-256x85-random:
shard-apl: PASS -> FAIL (fdo#103232) +2
igt@kms_cursor_crc@cursor-64x64-suspend:
shard-apl: PASS -> FAIL (fdo#103191, fdo#103232)
igt@kms_cursor_legacy@cursora-vs-flipa-toggle:
shard-glk: PASS -> DMESG-WARN (fdo#106538, fdo#105763)
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen:
shard-glk: PASS -> FAIL (fdo#103167) +2
shard-apl: PASS -> FAIL (fdo#103167) +2
shard-kbl: PASS -> FAIL (fdo#103167)
igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-mmap-cpu:
shard-glk: NOTRUN -> FAIL (fdo#103167) +4
igt@kms_plane@plane-position-covered-pipe-a-planes:
shard-glk: NOTRUN -> FAIL (fdo#103166)
igt@kms_plane_alpha_blend@pipe-c-alpha-7efc:
shard-glk: NOTRUN -> FAIL (fdo#108146)
igt@kms_plane_alpha_blend@pipe-c-alpha-transparant-fb:
shard-glk: NOTRUN -> FAIL (fdo#108145) +5
igt@kms_plane_multiple@atomic-pipe-a-tiling-yf:
shard-apl: PASS -> FAIL (fdo#103166)
igt@kms_setmode@basic:
shard-hsw: NOTRUN -> FAIL (fdo#99912)
igt@kms_vblank@pipe-b-query-forked:
shard-snb: PASS -> INCOMPLETE (fdo#105411)
==== Possible fixes ====
igt@kms_available_modes_crc@available_mode_test_crc:
shard-apl: FAIL (fdo#106641) -> PASS
igt@kms_busy@extended-modeset-hang-newfb-render-b:
shard-snb: DMESG-WARN (fdo#107956) -> PASS
igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-c:
shard-apl: DMESG-WARN (fdo#107956) -> PASS
igt@kms_ccs@pipe-a-crc-sprite-planes-basic:
shard-glk: FAIL (fdo#108145) -> PASS
igt@kms_color@pipe-a-degamma:
shard-apl: FAIL (fdo#108145, fdo#104782) -> PASS
igt@kms_cursor_crc@cursor-128x128-onscreen:
shard-apl: FAIL (fdo#103232) -> PASS +4
igt@kms_cursor_crc@cursor-128x128-suspend:
shard-apl: FAIL (fdo#103191, fdo#103232) -> PASS +1
shard-kbl: FAIL (fdo#103191, fdo#103232) -> PASS
igt@kms_cursor_crc@cursor-256x256-dpms:
shard-glk: FAIL (fdo#103232) -> PASS +1
igt@kms_cursor_crc@cursor-256x256-onscreen:
shard-kbl: FAIL (fdo#103232) -> PASS
igt@kms_flip@flip-vs-expired-vblank:
shard-glk: FAIL (fdo#102887, fdo#105363) -> PASS
igt@kms_flip@flip-vs-expired-vblank-interruptible:
shard-kbl: FAIL (fdo#102887, fdo#105363) -> PASS
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-blt:
shard-glk: FAIL (fdo#103167) -> PASS +2
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-gtt:
shard-apl: FAIL (fdo#103167) -> PASS +2
igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-render:
shard-kbl: FAIL (fdo#103167) -> PASS +1
igt@kms_plane_multiple@atomic-pipe-a-tiling-x:
shard-apl: FAIL (fdo#103166) -> PASS +1
shard-kbl: FAIL (fdo#103166) -> PASS
igt@kms_plane_multiple@atomic-pipe-a-tiling-y:
shard-glk: FAIL (fdo#103166) -> PASS +1
igt@kms_plane_multiple@atomic-pipe-b-tiling-y:
shard-apl: DMESG-FAIL (fdo#103166, fdo#103558, fdo#105602) -> PASS +1
igt@kms_rotation_crc@sprite-rotation-90-pos-100-0:
shard-apl: DMESG-WARN (fdo#103558, fdo#105602) -> PASS +15
igt@perf_pmu@semaphore-wait-vecs0:
shard-snb: INCOMPLETE (fdo#105411) -> SKIP
==== Warnings ====
igt@kms_plane@pixel-format-pipe-c-planes:
shard-apl: DMESG-FAIL (fdo#103166, fdo#103558, fdo#105602) -> FAIL (fdo#103166)
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103158 https://bugs.freedesktop.org/show_bug.cgi?id=103158
fdo#103166 https://bugs.freedesktop.org/show_bug.cgi?id=103166
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103191 https://bugs.freedesktop.org/show_bug.cgi?id=103191
fdo#103232 https://bugs.freedesktop.org/show_bug.cgi?id=103232
fdo#103359 https://bugs.freedesktop.org/show_bug.cgi?id=103359
fdo#103558 https://bugs.freedesktop.org/show_bug.cgi?id=103558
fdo#103665 https://bugs.freedesktop.org/show_bug.cgi?id=103665
fdo#104782 https://bugs.freedesktop.org/show_bug.cgi?id=104782
fdo#105363 https://bugs.freedesktop.org/show_bug.cgi?id=105363
fdo#105411 https://bugs.freedesktop.org/show_bug.cgi?id=105411
fdo#105602 https://bugs.freedesktop.org/show_bug.cgi?id=105602
fdo#105763 https://bugs.freedesktop.org/show_bug.cgi?id=105763
fdo#106538 https://bugs.freedesktop.org/show_bug.cgi?id=106538
fdo#106641 https://bugs.freedesktop.org/show_bug.cgi?id=106641
fdo#107956 https://bugs.freedesktop.org/show_bug.cgi?id=107956
fdo#108145 https://bugs.freedesktop.org/show_bug.cgi?id=108145
fdo#108146 https://bugs.freedesktop.org/show_bug.cgi?id=108146
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
k.org#198133 https://bugzilla.kernel.org/show_bug.cgi?id=198133
== Participating hosts (6 -> 5) ==
Missing (1): shard-skl
== Build changes ==
* IGT: IGT_4682 -> IGTPW_1962
* Linux: CI_DRM_4990 -> CI_DRM_4994
CI_DRM_4990: 0bd34d92e9a27784cb988a300619f497ca0e99ec @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_4994: a587d260a1db3d6660c4148a5b3055f525bc7938 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_1962: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1962/
IGT_4682: 0ac43db33e116b546e5704fe0b4dde21f391e09c @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1962/shards.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] lib/igt_psr: Changed psr_set logic to account for older kernels
2018-10-17 21:26 [igt-dev] [PATCH i-g-t] lib/igt_psr: Changed psr_set logic to account for older kernels Casey Bowman
2018-10-17 21:54 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-10-17 22:54 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
@ 2018-10-18 21:12 ` Souza, Jose
2 siblings, 0 replies; 4+ messages in thread
From: Souza, Jose @ 2018-10-18 21:12 UTC (permalink / raw)
To: igt-dev@lists.freedesktop.org, Bowman, Casey G; +Cc: Pandiyan, Dhinakaran
On Wed, 2018-10-17 at 14:26 -0700, Casey Bowman wrote:
> Only EINVAL was being used to account for older kernels,
> but on legacy kernels that don't use i915_edp_psr_debug,
> the ENOENT error will be thrown. This changes the logic
> to set PSR via the module parameter if a problem occurs
> when attempting to set PSR via the debugfs_fd.
>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
> Signed-off-by: Casey Bowman <casey.g.bowman@intel.com>
> ---
> lib/igt_psr.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/lib/igt_psr.c b/lib/igt_psr.c
> index 0ddfb64f..6904393c 100644
> --- a/lib/igt_psr.c
> +++ b/lib/igt_psr.c
> @@ -61,6 +61,8 @@ static int has_psr_debugfs(int debugfs_fd)
> * Check if new PSR debugfs api is usable by writing an invalid
> value.
> * Legacy mode will return OK here, debugfs api will return
> -EINVAL.
> * -ENODEV is returned when PSR is unavailable.
> + * -ENOENT is returned when PSR debugfs api doesn't exist (i.e.
> using
> + * an older kernel).
> */
> ret = psr_write(debugfs_fd, "0xf");
> if (ret == -EINVAL)
> @@ -103,11 +105,11 @@ static bool psr_set(int debugfs_fd, bool
> enable)
> return false;
> }
>
> - if (ret == -EINVAL) {
> - ret = psr_modparam_set(enable);
> - } else {
> + if (ret == 0) {
> ret = psr_write(debugfs_fd, enable ? "0x3" : "0x1");
> igt_assert(ret > 0);
> + } else {
> + ret = psr_modparam_set(enable);
> }
>
> /* Restore original value on exit */
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-10-18 21:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-17 21:26 [igt-dev] [PATCH i-g-t] lib/igt_psr: Changed psr_set logic to account for older kernels Casey Bowman
2018-10-17 21:54 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-10-17 22:54 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-10-18 21:12 ` [igt-dev] [PATCH i-g-t] " Souza, Jose
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox