Skip to contentSkip to conversation

drm/i915/bios: Fix ports mask

Intel-gfx Rodrigo Vivi 2 participants 4 messages Jul 22, 2021

Subsystems (3)
lore
Share & tools
lore

Rodrigo Vivi

author maintainer
#0 lore raw

PORT_A to PORT_F are regular integers defined in the enum port, while for_each_port_masked requires a bit mask for the ports.

Current given mask: 0b111
Desired mask: 0b111111

I noticed this while Christoph was reporting a bug found on headless GVT configuration which bisect blamed commit 3ae04c0c7e63 ("drm/i915/bios:
limit default outputs to ports A through F")

v2: Avoid unnecessary line continuations as pointed by CI and Christoph

Cc Christoph Hellwig <[email protected]>
Fixes 3ae04c0c7e63 ("drm/i915/bios: limit default outputs to ports A through F")
Cc Lucas De Marchi <[email protected]>
Cc Ville Syrjälä <[email protected]>
Cc Jani Nikula <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_bios.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_bios.c +2 -1
index 5b6922e28ef2..aa667fa71158 100644
@@ -2166,7 +2166,8 @@ static void
 init_vbt_missing_defaults(struct drm_i915_private *i915)
 {
 	enum port port;
-	int ports = PORT_A | PORT_B | PORT_C | PORT_D | PORT_E | PORT_F;
+	int ports = BIT(PORT_A) | BIT(PORT_B) | BIT(PORT_C) |
+		    BIT(PORT_D) | BIT(PORT_E) | BIT(PORT_F);
 
 	if (!HAS_DDI(i915) && !IS_CHERRYVIEW(i915))
 		return;
Signature · 6 lines
2.31.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/bios: Fix ports mask (rev2)

== Series Details ==

== Series Details ==

Series: drm/i915/bios: Fix ports mask (rev2)
URL : https://patchwork.freedesktop.org/series/92850/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_10371 -> Patchwork_20680
====================================================

Summary
-------

**FAILURE**

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

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

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_pm_rpm@basic-rte:
- fi-bdw-5557u: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-bdw-5557u/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@amdgpu/amd_basic@query-info:
- fi-bsw-kefka: NOTRUN -> [SKIP][2] ([fdo#109271]) +17 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-bsw-kefka/igt@amdgpu/[email protected]

* igt@amdgpu/amd_basic@semaphore:
- fi-bdw-5557u: NOTRUN -> [SKIP][3] ([fdo#109271]) +25 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-bdw-5557u/igt@amdgpu/[email protected]

* igt@core_hotunplug@unbind-rebind:
- fi-bdw-5557u: NOTRUN -> [WARN][4] ([i915#3718])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-bdw-5557u/igt@[email protected]

#### Possible fixes ####

* igt@gem_exec_suspend@basic-s3:
- {fi-tgl-1115g4}: [FAIL][5] ([i915#1888]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10371/fi-tgl-1115g4/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-tgl-1115g4/igt@[email protected]

* igt@i915_selftest@live@execlists:
- fi-bsw-kefka: [INCOMPLETE][7] ([i915#2782] / [i915#2940]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10371/fi-bsw-kefka/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-bsw-kefka/igt@i915_selftest@[email protected]

* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [FAIL][9] ([i915#1372]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10371/fi-kbl-7500u/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-kbl-7500u/igt@[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
[i915#1372]: https://gitlab.freedesktop.org/drm/intel/issues/1372
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#2782]: https://gitlab.freedesktop.org/drm/intel/issues/2782
[i915#2940]: https://gitlab.freedesktop.org/drm/intel/issues/2940
[i915#3718]: https://gitlab.freedesktop.org/drm/intel/issues/3718

Participating hosts (38 -> 35)
------------------------------

Missing (3): fi-ilk-m540 fi-bdw-samus fi-hsw-4200u

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

* Linux: CI_DRM_10371 -> Patchwork_20680

CI-20190529: 20190529
CI_DRM_10371: 8e68c13425e29c96ef94c9dd3583159000c61380 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6147: f3994c2cd99a1acfe991a8cc838a387dcb36598a @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_20680: e1fd6ca0eb59bf30864ec455071ae7082201381b @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

e1fd6ca0eb59 drm/i915/bios: Fix ports mask

== Logs ==

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

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

author maintainer
#2 lore raw

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/bios: Fix ports mask (rev2)

Quoted 32 lines · Patchwork
   Patch Details

   Series:  drm/i915/bios: Fix ports mask (rev2)
   URL:     [1]https://patchwork.freedesktop.org/series/92850/
   State:   failure
   Details:
   [2]https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/index.html

           CI Bug Log - changes from CI_DRM_10371 -> Patchwork_20680

Summary

FAILURE

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

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

Possible new issues

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

Quoted 6 lines

IGT changes

Possible regressions

* igt@i915_pm_rpm@basic-rte:
+ fi-bdw-5557u: NOTRUN -> [3]FAIL

Apparently after we moved to -rc2 this test is failing in all platforms. Unfortunately I couldn't bisect because on the machines I got access it was failing regardless the kernel that I was using :/

Quoted 75 lines

Known issues

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

IGT changes

Issues hit

* igt@amdgpu/amd_basic@query-info:
+ fi-bsw-kefka: NOTRUN -> [4]SKIP ([5]fdo#109271) +17 similar issues
* igt@amdgpu/amd_basic@semaphore:
+ fi-bdw-5557u: NOTRUN -> [6]SKIP ([7]fdo#109271) +25 similar issues
* igt@core_hotunplug@unbind-rebind:
+ fi-bdw-5557u: NOTRUN -> [8]WARN ([9]i915#3718)

Possible fixes

* igt@gem_exec_suspend@basic-s3:
+ {fi-tgl-1115g4}: [10]FAIL ([11]i915#1888) -> [12]PASS
* igt@i915_selftest@live@execlists:
+ fi-bsw-kefka: [13]INCOMPLETE ([14]i915#2782 / [15]i915#2940) -> [16]PASS
* igt@kms_chamelium@dp-crc-fast:
+ fi-kbl-7500u: [17]FAIL ([18]i915#1372) -> [19]PASS

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

Participating hosts (38 -> 35)

   Missing (3): fi-ilk-m540 fi-bdw-samus fi-hsw-4200u

Build changes

* Linux: CI_DRM_10371 -> Patchwork_20680

   CI-20190529: 20190529
   CI_DRM_10371: 8e68c13425e29c96ef94c9dd3583159000c61380 @
   git://anongit.freedesktop.org/gfx-ci/linux
   IGT_6147: f3994c2cd99a1acfe991a8cc838a387dcb36598a @
   https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
   Patchwork_20680: e1fd6ca0eb59bf30864ec455071ae7082201381b @
   git://anongit.freedesktop.org/gfx-ci/linux

   == Linux commits ==

   e1fd6ca0eb59 drm/i915/bios: Fix ports mask

References

1. https://patchwork.freedesktop.org/series/92850/
2. https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/index.html
3. https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-bdw-5557u/igt@[email protected]
4. https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-bsw-kefka/igt@amdgpu/[email protected]
5. https://bugs.freedesktop.org/show_bug.cgi?id=109271
6. https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-bdw-5557u/igt@amdgpu/[email protected]
7. https://bugs.freedesktop.org/show_bug.cgi?id=109271
8. https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-bdw-5557u/igt@[email protected]
9. https://gitlab.freedesktop.org/drm/intel/issues/3718
10. https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10371/fi-tgl-1115g4/igt@[email protected]
11. https://gitlab.freedesktop.org/drm/intel/issues/1888
12. https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-tgl-1115g4/igt@[email protected]
13. https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10371/fi-bsw-kefka/igt@i915_selftest@[email protected]
14. https://gitlab.freedesktop.org/drm/intel/issues/2782
15. https://gitlab.freedesktop.org/drm/intel/issues/2940
16. https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-bsw-kefka/igt@i915_selftest@[email protected]
17. https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10371/fi-kbl-7500u/igt@[email protected]
18. https://gitlab.freedesktop.org/drm/intel/issues/1372
19. https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20680/fi-kbl-7500u/igt@[email protected]

Quoted 4 lines

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/bios: Fix ports mask (rev3)

In reply to Rodrigo Vivi
== Series Details ==

== Series Details ==

Series: drm/i915/bios: Fix ports mask (rev3)
URL : https://patchwork.freedesktop.org/series/92850/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_10371 -> Patchwork_20681
====================================================

Summary
-------

**FAILURE**

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

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

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_pm_rpm@basic-rte:
- fi-bdw-5557u: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20681/fi-bdw-5557u/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@amdgpu/amd_basic@query-info:
- fi-bsw-kefka: NOTRUN -> [SKIP][2] ([fdo#109271]) +17 similar issues
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20681/fi-bsw-kefka/igt@amdgpu/[email protected]

* igt@amdgpu/amd_basic@semaphore:
- fi-bdw-5557u: NOTRUN -> [SKIP][3] ([fdo#109271]) +25 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20681/fi-bdw-5557u/igt@amdgpu/[email protected]

* igt@core_hotunplug@unbind-rebind:
- fi-bdw-5557u: NOTRUN -> [WARN][4] ([i915#3718])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20681/fi-bdw-5557u/igt@[email protected]

#### Possible fixes ####

* igt@gem_exec_suspend@basic-s3:
- {fi-tgl-1115g4}: [FAIL][5] ([i915#1888]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10371/fi-tgl-1115g4/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20681/fi-tgl-1115g4/igt@[email protected]

* igt@i915_selftest@live@execlists:
- fi-bsw-kefka: [INCOMPLETE][7] ([i915#2782] / [i915#2940]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10371/fi-bsw-kefka/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20681/fi-bsw-kefka/igt@i915_selftest@[email protected]

* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [FAIL][9] ([i915#1372]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10371/fi-kbl-7500u/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_20681/fi-kbl-7500u/igt@[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
[i915#1372]: https://gitlab.freedesktop.org/drm/intel/issues/1372
[i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888
[i915#2782]: https://gitlab.freedesktop.org/drm/intel/issues/2782
[i915#2940]: https://gitlab.freedesktop.org/drm/intel/issues/2940
[i915#3303]: https://gitlab.freedesktop.org/drm/intel/issues/3303
[i915#3718]: https://gitlab.freedesktop.org/drm/intel/issues/3718

Participating hosts (38 -> 34)
------------------------------

Missing (4): fi-kbl-soraka fi-ilk-m540 fi-bdw-samus fi-hsw-4200u

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

* Linux: CI_DRM_10371 -> Patchwork_20681

CI-20190529: 20190529
CI_DRM_10371: 8e68c13425e29c96ef94c9dd3583159000c61380 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6147: f3994c2cd99a1acfe991a8cc838a387dcb36598a @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_20681: cc6994cd19b7cdac4c3f4337be25b3f190303d33 @ git://anongit.freedesktop.org/gfx-ci/linux

== Linux commits ==

cc6994cd19b7 drm/i915/bios: Fix ports mask

== Logs ==

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

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx