Skip to contentSkip to conversation

i915/perf: Disable OA sseu config param for non-gen11 platforms

PATCH In review Nerlige Ramappa, Umesh 3 participants 4 messages Jul 6, 2022 – Jul 7, 2022

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

PATCH 1/1 i915/perf: Disable OA sseu config param for non-gen11 platforms

The global sseu config is applicable only to gen11 platforms where concurrent media, render and OA use cases may cause some subslices to be turned off and hence lose NOA configuration. Return ENODEV for non-gen11 platforms.

---
 drivers/gpu/drm/i915/i915_perf.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/i915/i915_perf.c +6 -0
index 1577ab6754db..512c163fdbeb 100644
@@ -3706,6 +3706,12 @@ static int read_properties_unlocked(struct i915_perf *perf,
 		case DRM_I915_PERF_PROP_GLOBAL_SSEU: {
 			struct drm_i915_gem_context_param_sseu user_sseu;
 
+			if (GRAPHICS_VER(perf->i915) != 11) {
+				DRM_DEBUG("Global SSEU config not supported on gen%d\n",
+					  GRAPHICS_VER(perf->i915));
+				return -ENODEV;
+			}
+
 			if (copy_from_user(&user_sseu,
 					   u64_to_user_ptr(value),
 					   sizeof(user_sseu))) {
Signature · 1 line
2.35.3
#1 lore raw

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for i915/perf: Disable OA sseu config param for non-gen11 platforms

== Series Details ==

== Series Details ==

Series: i915/perf: Disable OA sseu config param for non-gen11 platforms
URL : https://patchwork.freedesktop.org/series/105998/
State : warning

== Summary ==

Error: dim checkpatch failed
ba9ea66b787d i915/perf: Disable OA sseu config param for non-gen11 platforms
-:30: WARNING:FROM_SIGN_OFF_MISMATCH: From:/Signed-off-by: email name mismatch: 'From: "Nerlige Ramappa, Umesh" <[email protected]>' != 'Signed-off-by: Umesh Nerlige Ramappa <[email protected]>'

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

#2 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for i915/perf: Disable OA sseu config param for non-gen11 platforms

In reply to Nerlige Ramappa, Umesh
== Series Details ==

== Series Details ==

Series: i915/perf: Disable OA sseu config param for non-gen11 platforms
URL : https://patchwork.freedesktop.org/series/105998/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_11854 -> Patchwork_105998v1
====================================================

Summary
-------

**FAILURE**

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

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

Participating hosts (43 -> 41)
------------------------------

Additional (2): fi-hsw-4770 bat-dg2-9
Missing (4): fi-ctg-p8600 bat-rpls-1 fi-bdw-samus fi-snb-2600

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

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

### IGT changes ###

#### Possible regressions ####

* igt@gem_exec_suspend@basic-s3@smem:
- fi-bsw-n3050: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11854/fi-bsw-n3050/igt@gem_exec_suspend@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/fi-bsw-n3050/igt@gem_exec_suspend@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_softpin@allocator-basic-reserve:
- fi-hsw-4770: NOTRUN -> [SKIP][3] ([fdo#109271]) +9 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/fi-hsw-4770/igt@[email protected]

* igt@i915_pm_backlight@basic-brightness:
- fi-hsw-4770: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#3012])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/fi-hsw-4770/igt@[email protected]

* igt@i915_pm_rpm@module-reload:
- fi-bsw-n3050: [PASS][5] -> [FAIL][6] ([i915#6042])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11854/fi-bsw-n3050/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/fi-bsw-n3050/igt@[email protected]

* igt@i915_selftest@live@gem:
- fi-pnv-d510: [PASS][7] -> [DMESG-FAIL][8] ([i915#4528])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11854/fi-pnv-d510/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/fi-pnv-d510/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@hangcheck:
- fi-hsw-4770: NOTRUN -> [INCOMPLETE][9] ([i915#4785])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/fi-hsw-4770/igt@i915_selftest@[email protected]
- bat-dg1-6: [PASS][10] -> [DMESG-FAIL][11] ([i915#4494] / [i915#4957])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11854/bat-dg1-6/igt@i915_selftest@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/bat-dg1-6/igt@i915_selftest@[email protected]

* igt@kms_chamelium@common-hpd-after-suspend:
- fi-blb-e6850: NOTRUN -> [SKIP][12] ([fdo#109271])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/fi-blb-e6850/igt@[email protected]

* igt@kms_chamelium@dp-crc-fast:
- fi-hsw-4770: NOTRUN -> [SKIP][13] ([fdo#109271] / [fdo#111827]) +7 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/fi-hsw-4770/igt@[email protected]

* igt@kms_psr@sprite_plane_onoff:
- fi-hsw-4770: NOTRUN -> [SKIP][14] ([fdo#109271] / [i915#1072]) +3 similar issues
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/fi-hsw-4770/igt@kms_psr@sprite_plane_onoff.html

* igt@runner@aborted:
- fi-hsw-4770: NOTRUN -> [FAIL][15] ([fdo#109271] / [i915#4312] / [i915#5594] / [i915#6246])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/fi-hsw-4770/igt@[email protected]
- fi-pnv-d510: NOTRUN -> [FAIL][16] ([fdo#109271] / [i915#2403] / [i915#4312])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/fi-pnv-d510/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@gem:
- fi-blb-e6850: [DMESG-FAIL][17] ([i915#4528]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11854/fi-blb-e6850/igt@i915_selftest@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/fi-blb-e6850/igt@i915_selftest@[email protected]

* igt@kms_busy@basic@flip:
- {bat-adln-1}: [DMESG-WARN][19] ([i915#3576]) -> [PASS][20] +1 similar issue
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11854/bat-adln-1/igt@kms_busy@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/bat-adln-1/igt@kms_busy@[email protected]

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions:
- fi-bsw-kefka: [FAIL][21] ([i915#6298]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11854/fi-bsw-kefka/igt@kms_cursor_legacy@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/fi-bsw-kefka/igt@kms_cursor_legacy@[email protected]

* igt@kms_flip@basic-flip-vs-modeset@a-edp1:
- {bat-adlp-6}: [DMESG-WARN][23] ([i915#3576]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11854/bat-adlp-6/igt@kms_flip@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_105998v1/bat-adlp-6/igt@kms_flip@[email protected]

{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
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#2403]: https://gitlab.freedesktop.org/drm/intel/issues/2403
[i915#3012]: https://gitlab.freedesktop.org/drm/intel/issues/3012
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3576]: https://gitlab.freedesktop.org/drm/intel/issues/3576
[i915#3595]: https://gitlab.freedesktop.org/drm/intel/issues/3595
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4494]: https://gitlab.freedesktop.org/drm/intel/issues/4494
[i915#4528]: https://gitlab.freedesktop.org/drm/intel/issues/4528
[i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579
[i915#4785]: https://gitlab.freedesktop.org/drm/intel/issues/4785
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#4957]: https://gitlab.freedesktop.org/drm/intel/issues/4957
[i915#5174]: https://gitlab.freedesktop.org/drm/intel/issues/5174
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5274]: https://gitlab.freedesktop.org/drm/intel/issues/5274
[i915#5594]: https://gitlab.freedesktop.org/drm/intel/issues/5594
[i915#5763]: https://gitlab.freedesktop.org/drm/intel/issues/5763
[i915#6042]: https://gitlab.freedesktop.org/drm/intel/issues/6042
[i915#6246]: https://gitlab.freedesktop.org/drm/intel/issues/6246
[i915#6297]: https://gitlab.freedesktop.org/drm/intel/issues/6297
[i915#6298]: https://gitlab.freedesktop.org/drm/intel/issues/6298

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

* Linux: CI_DRM_11854 -> Patchwork_105998v1

CI-20190529: 20190529
CI_DRM_11854: 3d395b052df9a8552e508d135cec45a97a589989 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6559: 6850e9fd9287a8d39ff0c4d9dc413767022342c1 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_105998v1: 3d395b052df9a8552e508d135cec45a97a589989 @ git://anongit.freedesktop.org/gfx-ci/linux

### Linux commits

d3170417ee3d i915/perf: Disable OA sseu config param for non-gen11 platforms

== Logs ==

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

#3 lore raw
In reply to Nerlige Ramappa, Umesh
Quoted 6 lines · Umesh

The global sseu config is applicable only to gen11 platforms where concurrent media, render and OA use cases may cause some subslices to be turned off and hence lose NOA configuration. Return ENODEV for non-gen11 platforms.

The problem is that we have gfx12 platforms shipped using this.

So I guess have to disable it on gfx12.5+ where it was never accepted.

-Lionel

Quoted 21 lines
---
  drivers/gpu/drm/i915/i915_perf.c | 6 ++++++
  1 file changed, 6 insertions(+)
drivers/gpu/drm/i915/i915_perf.c +6 -0
index 1577ab6754db..512c163fdbeb 100644
@@ -3706,6 +3706,12 @@ static int read_properties_unlocked(struct i915_perf *perf,
  		case DRM_I915_PERF_PROP_GLOBAL_SSEU: {
  			struct drm_i915_gem_context_param_sseu user_sseu;
 
+			if (GRAPHICS_VER(perf->i915) != 11) {
+				DRM_DEBUG("Global SSEU config not supported on gen%d\n",
+					  GRAPHICS_VER(perf->i915));
+				return -ENODEV;
+			}
+
  			if (copy_from_user(&user_sseu,
  					   u64_to_user_ptr(value),
  					   sizeof(user_sseu))) {