Skip to contentSkip to conversation

DRM: i915: i915_perf: Fixed compiler warning

PATCH In review Julius Victorian 3 participants 4 messages Aug 9, 2021 – Aug 10, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 DRM: i915: i915_perf: Fixed compiler warning

From: Julius <[email protected]>

Fixed compiler warning: "left shift of negative value"

---
 drivers/gpu/drm/i915/i915_perf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_perf.c +1 -1
index 9f94914958c3..7b852974241e 100644
@@ -2804,7 +2804,7 @@ get_default_sseu_config(struct intel_sseu *out_sseu,
 		 * all available subslices per slice.
 		 */
 		out_sseu->subslice_mask =
-			~(~0 << (hweight8(out_sseu->subslice_mask) / 2));
+			~(~0U << (hweight8(out_sseu->subslice_mask) / 2));
 		out_sseu->slice_mask = 0x1;
 	}
 }
Signature · 1 line
2.30.2
#1 lore raw

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for DRM: i915: i915_perf: Fixed compiler warning

== Series Details ==

== Series Details ==

Series: DRM: i915: i915_perf: Fixed compiler warning
URL : https://patchwork.freedesktop.org/series/93511/
State : warning

== Summary ==

$ dim checkpatch origin/drm-tip
f0431793a357 DRM: i915: i915_perf: Fixed compiler warning
-:22: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email name mismatch: 'From: Julius <[email protected]>' != 'Signed-off-by: Julius Victorian <[email protected]>'

total: 0 errors, 1 warnings, 0 checks, 8 lines checked

#2 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for DRM: i915: i915_perf: Fixed compiler warning

In reply to Julius Victorian
== Series Details ==

== Series Details ==

Series: DRM: i915: i915_perf: Fixed compiler warning
URL : https://patchwork.freedesktop.org/series/93511/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_10460 -> Patchwork_20787
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with Patchwork_20787 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in Patchwork_20787, 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/Patchwork_20787/index.html

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in Patchwork_20787:

### IGT changes ###

#### Possible regressions ####

* igt@kms_setmode@basic-clone-single-crtc:
- fi-rkl-guc: [PASS][1] -> [WARN][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10460/fi-rkl-guc/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20787/fi-rkl-guc/igt@[email protected]

Known issues
------------

Here are the changes found in Patchwork_20787 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@amdgpu/amd_cs_nop@fork-gfx0:
- fi-icl-u2: NOTRUN -> [SKIP][3] ([fdo#109315]) +17 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20787/fi-icl-u2/igt@amdgpu/[email protected]

* igt@gem_exec_suspend@basic-s0:
- fi-tgl-1115g4: [PASS][4] -> [FAIL][5] ([i915#1888])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10460/fi-tgl-1115g4/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20787/fi-tgl-1115g4/igt@[email protected]

* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-7500u: [PASS][6] -> [DMESG-FAIL][7] ([i915#165])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10460/fi-kbl-7500u/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20787/fi-kbl-7500u/igt@[email protected]

#### Possible fixes ####

* igt@gem_exec_suspend@basic-s3:
- fi-tgl-1115g4: [FAIL][8] ([i915#1888]) -> [PASS][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10460/fi-tgl-1115g4/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20787/fi-tgl-1115g4/igt@[email protected]

* igt@i915_selftest@live@gt_lrc:
- fi-rkl-guc: [DMESG-WARN][10] -> [PASS][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10460/fi-rkl-guc/igt@i915_selftest@live@gt_lrc.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20787/fi-rkl-guc/igt@i915_selftest@live@gt_lrc.html

* igt@i915_selftest@live@hangcheck:
- fi-icl-u2: [INCOMPLETE][12] -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10460/fi-icl-u2/igt@i915_selftest@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20787/fi-icl-u2/igt@i915_selftest@[email protected]

[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[i915#165]: https://gitlab.freedesktop.org/drm/intel/issues/165
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888

Participating hosts (37 -> 34)
------------------------------

Missing (3): fi-bdw-samus fi-bsw-cyan bat-jsl-1

Build changes
-------------

* Linux: CI_DRM_10460 -> Patchwork_20787

CI-20190529: 20190529
CI_DRM_10460: 933d74e4ff60d39ff929b26780dca84412551174 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6163: 9f9d82df8c8e68c304e84aba717a9937b65e10e6 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_20787: f0431793a35707e86a71b19d66c069c3a93ad145 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

f0431793a357 DRM: i915: i915_perf: Fixed compiler warning

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20787/index.html

Reviewed-by on v1 1/1
#3 lore raw
In reply to Julius Victorian
Quoted 5 lines · Julius Victorian

From: Julius <[email protected]>

Fixed compiler warning: "left shift of negative value"

Thanks!

Quoted 17 lines
---
  drivers/gpu/drm/i915/i915_perf.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_perf.c +1 -1
index 9f94914958c3..7b852974241e 100644
@@ -2804,7 +2804,7 @@ get_default_sseu_config(struct intel_sseu *out_sseu,
  		 * all available subslices per slice.
  		 */
  		out_sseu->subslice_mask =
-			~(~0 << (hweight8(out_sseu->subslice_mask) / 2));
+			~(~0U << (hweight8(out_sseu->subslice_mask) / 2));
  		out_sseu->slice_mask = 0x1;
  	}
  }