drm/i915/guc: remove redundant GEM_BUG_ON check
Subsystems (3)
PATCH 1/1 drm/i915/guc: remove redundant GEM_BUG_ON check
From: Colin Ian King <[email protected]>
The check for level being less than zero is redundant as level is an unsigned u32 and hence will never be less than zero. Remove this redundant check.
Detected by CoverityScan, CID#1468363 ("Macro compares unsigned to 0")
--- drivers/gpu/drm/i915/intel_guc.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/i915/intel_guc.c +0 -2
@@ -208,8 +208,6 @@ static u32 get_log_control_flags(void)u32 level = i915_modparams.guc_log_level;u32 flags =0 ; -GEM_BUG_ON (level <0 ); -if (!GUC_LOG_LEVEL_IS_ENABLED (level)) flags |=GUC_LOG_DEFAULT_DISABLED ;
Signature · 6 lines
2.17.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 18 lines · Colin King
From: Colin Ian King <[email protected]>
The check for level being less than zero is redundant as level is an unsigned u32 and hence will never be less than zero. Remove this redundant check.
Detected by CoverityScan, CID#1468363 ("Macro compares unsigned to 0")
Signed-off-by Colin Ian King <[email protected]>--- drivers/gpu/drm/i915/intel_guc.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/i915/intel_guc.c +0
-0
drivers/gpu/drm/i915/intel_guc.c static u32 get_log_control_flags(void) · line 211
Quoted 4 lines
drivers/gpu/drm/i915/intel_guc.c +0
-1@@ -208,8 +208,6 @@ static u32 get_log_control_flags(void)u32 level = i915_modparams.guc_log_level;u32 flags =0 ; -GEM_BUG_ON (level <0 );
i915_modparams.guc_log_level is a signed int. So s/u32/int would seem like a better fix.
Quoted 11 lines
drivers/gpu/drm/i915/intel_guc.c +0
-1-if (!GUC_LOG_LEVEL_IS_ENABLED (level)) flags |=GUC_LOG_DEFAULT_DISABLED ;Signature · 6 lines
2.17.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 22 lines · Ville Syrjälä
Quoted 21 lines · Colin King
From: Colin Ian King <[email protected]>
The check for level being less than zero is redundant as level is an unsigned u32 and hence will never be less than zero. Remove this redundant check.
Detected by CoverityScan, CID#1468363 ("Macro compares unsigned to 0")
Signed-off-by Colin Ian King <[email protected]>--- drivers/gpu/drm/i915/intel_guc.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/i915/intel_guc.c +0
-0@@ -208,8 +208,6 @@ static u32 get_log_control_flags(void)u32 level = i915_modparams.guc_log_level;u32 flags =0 ;
Quoted 4 lines
drivers/gpu/drm/i915/intel_guc.c static u32 get_log_control_flags(void) · line 211
Quoted 1 line
drivers/gpu/drm/i915/intel_guc.c +0
-1-GEM_BUG_ON (level <0 );i915_modparams.guc_log_level is a signed int. So s/u32/int would seem like a better fix.
Good point, I somehow thought it guc_loc_level was unsigned, but I was wrong. Sending a V2.
Quoted 5 lines
Quoted 5 lines
drivers/gpu/drm/i915/intel_guc.c +0
-1-if (!GUC_LOG_LEVEL_IS_ENABLED (level)) flags |=GUC_LOG_DEFAULT_DISABLED ;
Quoted 8 lines
Quoted 7 lines
Signature · 6 lines
2.17.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915/guc: remove redundant GEM_BUG_ON check
In reply to Colin King== Series Details ==
== Series Details ==
Series: drm/i915/guc: remove redundant GEM_BUG_ON check
URL : https://patchwork.freedesktop.org/series/44575/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4302 -> Patchwork_9260 =
== Summary - SUCCESS ==
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/44575/revisions/1/mbox/
== Known issues ==
Here are the changes found in Patchwork_9260 that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@debugfs_test@read_all_entries:
fi-snb-2520m: PASS -> INCOMPLETE (fdo#103713)
igt@kms_busy@basic-flip-a:
fi-glk-j4005: PASS -> DMESG-WARN (fdo#105719)
igt@kms_flip@basic-flip-vs-modeset:
fi-glk-j4005: PASS -> DMESG-WARN (fdo#106000)
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
fi-cnl-psr: PASS -> DMESG-WARN (fdo#104951)
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c:
fi-bxt-dsi: PASS -> INCOMPLETE (fdo#103927)
==== Possible fixes ====
igt@kms_flip@basic-flip-vs-wf_vblank:
fi-glk-j4005: FAIL (fdo#100368) -> PASS
igt@kms_pipe_crc_basic@read-crc-pipe-b-frame-sequence:
fi-glk-j4005: FAIL (fdo#103481) -> PASS
igt@kms_pipe_crc_basic@read-crc-pipe-c:
fi-glk-j4005: DMESG-WARN (fdo#106000, fdo#106097) -> PASS
igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
fi-cnl-psr: DMESG-WARN (fdo#104951) -> PASS fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#103481 https://bugs.freedesktop.org/show_bug.cgi?id=103481
fdo#103713 https://bugs.freedesktop.org/show_bug.cgi?id=103713
fdo#103927 https://bugs.freedesktop.org/show_bug.cgi?id=103927
fdo#104951 https://bugs.freedesktop.org/show_bug.cgi?id=104951
fdo#105719 https://bugs.freedesktop.org/show_bug.cgi?id=105719
fdo#106000 https://bugs.freedesktop.org/show_bug.cgi?id=106000
fdo#106097 https://bugs.freedesktop.org/show_bug.cgi?id=106097
== Participating hosts (41 -> 37) ==
Additional (1): fi-bdw-gvtdvm
Missing (5): fi-ctg-p8600 fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-skl-6700hq
== Build changes ==
* Linux: CI_DRM_4302 -> Patchwork_9260
CI_DRM_4302: ef129f260b2bd362959651fe8e20e369bf3c977e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4513: 7b6838781441cfbc7f6c18f421f127dfb02b44cf @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9260: 433d5164219d80d89ceff9e2731faa9ef4a5256a @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
433d5164219d drm/i915/guc: remove redundant GEM_BUG_ON check
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9260/issues.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915/guc: remove redundant GEM_BUG_ON check
In reply to Colin King== Series Details ==
== Series Details ==
Series: drm/i915/guc: remove redundant GEM_BUG_ON check
URL : https://patchwork.freedesktop.org/series/44575/
State : success
== Summary ==
= CI Bug Log - changes from CI_DRM_4302_full -> Patchwork_9260_full =
== Summary - WARNING ==
Minor unknown changes coming with Patchwork_9260_full need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_9260_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
== Possible new issues ==
Here are the unknown changes that may have been introduced in Patchwork_9260_full:
=== IGT changes ===
==== Warnings ====
igt@pm_rc6_residency@rc6-accuracy:
shard-snb: SKIP -> PASS== Known issues ==
Here are the changes found in Patchwork_9260_full that come from known issues:
=== IGT changes ===
==== Issues hit ====
igt@drv_selftest@live_gtt:
shard-apl: PASS -> FAIL (fdo#105347)
igt@drv_selftest@live_hangcheck:
shard-apl: PASS -> DMESG-FAIL (fdo#106560)
igt@kms_atomic_transition@1x-modeset-transitions-nonblocking:
shard-glk: PASS -> FAIL (fdo#105703)
igt@kms_flip@2x-flip-vs-expired-vblank:
shard-hsw: PASS -> FAIL (fdo#102887)
igt@kms_flip@2x-plain-flip-ts-check:
shard-hsw: PASS -> FAIL (fdo#100368)
igt@kms_flip@flip-vs-expired-vblank:
shard-glk: PASS -> FAIL (fdo#102887, fdo#105363)
igt@kms_flip_tiling@flip-x-tiled:
shard-glk: PASS -> FAIL (fdo#104724)
==== Possible fixes ====
igt@gem_eio@hibernate:
shard-snb: INCOMPLETE (fdo#105411) -> PASS
igt@kms_cursor_legacy@2x-long-cursor-vs-flip-atomic:
shard-hsw: FAIL (fdo#105767) -> PASS
igt@kms_cursor_legacy@cursor-vs-flip-toggle:
shard-hsw: FAIL (fdo#103355) -> PASS
igt@kms_flip@2x-flip-vs-blocking-wf-vblank:
shard-glk: FAIL (fdo#100368) -> PASS
igt@kms_flip@flip-vs-wf_vblank-interruptible:
shard-hsw: FAIL (fdo#103928) -> PASS
igt@kms_flip_tiling@flip-to-x-tiled:
shard-glk: FAIL (fdo#104724, fdo#103822) -> PASS
igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-shrfb-draw-mmap-wc:
shard-glk: FAIL (fdo#103167, fdo#104724) -> PASS
==== Warnings ====
igt@drv_selftest@live_gtt:
shard-glk: FAIL (fdo#105347) -> INCOMPLETE (fdo#103359, k.org#198133) fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
fdo#102887 https://bugs.freedesktop.org/show_bug.cgi?id=102887
fdo#103167 https://bugs.freedesktop.org/show_bug.cgi?id=103167
fdo#103355 https://bugs.freedesktop.org/show_bug.cgi?id=103355
fdo#103359 https://bugs.freedesktop.org/show_bug.cgi?id=103359
fdo#103822 https://bugs.freedesktop.org/show_bug.cgi?id=103822
fdo#103928 https://bugs.freedesktop.org/show_bug.cgi?id=103928
fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
fdo#105347 https://bugs.freedesktop.org/show_bug.cgi?id=105347
fdo#105363 https://bugs.freedesktop.org/show_bug.cgi?id=105363
fdo#105411 https://bugs.freedesktop.org/show_bug.cgi?id=105411
fdo#105703 https://bugs.freedesktop.org/show_bug.cgi?id=105703
fdo#105767 https://bugs.freedesktop.org/show_bug.cgi?id=105767
fdo#106560 https://bugs.freedesktop.org/show_bug.cgi?id=106560
k.org#198133 https://bugzilla.kernel.org/show_bug.cgi?id=198133
== Participating hosts (5 -> 4) ==
Missing (1): shard-kbl
== Build changes ==
* Linux: CI_DRM_4302 -> Patchwork_9260
CI_DRM_4302: ef129f260b2bd362959651fe8e20e369bf3c977e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4513: 7b6838781441cfbc7f6c18f421f127dfb02b44cf @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_9260: 433d5164219d80d89ceff9e2731faa9ef4a5256a @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_9260/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx