Skip to contentSkip to conversation

drm/i915/gvt: use hardcoded reference clocks

PATCH Superseded Jani Nikula 2 participants 2 messages Mar 12, 2025

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

PATCH 1/1 drm/i915/gvt: use hardcoded reference clocks

Usually I'd argue hardcoding values is the wrong thing to do, but in this case, GVT looking deep into the guts of the DPLL manager for the reference clocks is worse. This is done for BDW and BXT only, and there shouldn't be any reason to try to be so dynamic about it.

This helps reduce the direct pokes at display guts from non-display code.

Cc Ville Syrjälä <[email protected]>
---
 drivers/gpu/drm/i915/gvt/handlers.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/gvt/handlers.c +2 -2
index 4efee6797873..5e08f4df172c 100644
@@ -513,7 +513,7 @@ static u32 bdw_vgpu_get_dp_bitrate(struct intel_vgpu *vgpu, enum port port)
 
 		switch (wrpll_ctl & WRPLL_REF_MASK) {
 		case WRPLL_REF_PCH_SSC:
-			refclk = vgpu->gvt->gt->i915->display.dpll.ref_clks.ssc;
+			refclk = 135000;
 			break;
 		case WRPLL_REF_LCPLL:
 			refclk = 2700000;
@@ -544,7 +544,7 @@ static u32 bdw_vgpu_get_dp_bitrate(struct intel_vgpu *vgpu, enum port port)
 static u32 bxt_vgpu_get_dp_bitrate(struct intel_vgpu *vgpu, enum port port)
 {
 	u32 dp_br = 0;
-	int refclk = vgpu->gvt->gt->i915->display.dpll.ref_clks.nssc;
+	int refclk = 100000;
 	enum dpio_phy phy = DPIO_PHY0;
 	enum dpio_channel ch = DPIO_CH0;
 	struct dpll clock = {};
Signature · 1 line
2.39.5
#1 lore raw

✗ i915.CI.BAT: failure for drm/i915/gvt: use hardcoded reference clocks

== Series Details ==

== Series Details ==

Series: drm/i915/gvt: use hardcoded reference clocks
URL : https://patchwork.freedesktop.org/series/146222/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_16273 -> Patchwork_146222v1
====================================================

Summary
-------

**FAILURE**

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

If you think the reported changes have nothing to do with the changes
introduced in Patchwork_146222v1, please notify your bug team ([email protected]) 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_146222v1/index.html

Participating hosts (44 -> 42)
------------------------------

Missing (2): bat-arlh-2 fi-snb-2520m

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

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

### IGT changes ###

#### Possible regressions ####

* igt@i915_pm_rpm@module-reload:
- bat-dg2-11: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16273/bat-dg2-11/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/bat-dg2-11/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@core_auth@basic-auth:
- fi-kbl-8809g: NOTRUN -> [DMESG-WARN][3] ([i915#10462]) +1 other test dmesg-warn
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/fi-kbl-8809g/igt@[email protected]

* igt@fbdev@info:
- fi-kbl-8809g: NOTRUN -> [SKIP][4] ([i915#1849])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/fi-kbl-8809g/igt@[email protected]

* igt@gem_huc_copy@huc-copy:
- fi-kbl-8809g: NOTRUN -> [SKIP][5] ([i915#2190])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/fi-kbl-8809g/igt@[email protected]
- fi-skl-6600u: NOTRUN -> [SKIP][6] ([i915#2190])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/fi-skl-6600u/igt@[email protected]

* igt@gem_lmem_swapping@parallel-random-engines:
- fi-kbl-8809g: NOTRUN -> [SKIP][7] ([i915#4613]) +3 other tests skip
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/fi-kbl-8809g/igt@[email protected]

* igt@gem_lmem_swapping@random-engines:
- fi-skl-6600u: NOTRUN -> [SKIP][8] ([i915#4613]) +3 other tests skip
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/fi-skl-6600u/igt@[email protected]

* igt@i915_pm_rpm@module-reload:
- bat-rpls-4: [PASS][9] -> [FAIL][10] ([i915#13901])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16273/bat-rpls-4/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/bat-rpls-4/igt@[email protected]

* igt@i915_selftest@live@workarounds:
- bat-mtlp-6: [PASS][11] -> [DMESG-FAIL][12] ([i915#12061]) +1 other test dmesg-fail
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16273/bat-mtlp-6/igt@i915_selftest@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/bat-mtlp-6/igt@i915_selftest@[email protected]

* igt@kms_addfb_basic@too-high:
- fi-kbl-8809g: NOTRUN -> [FAIL][13] ([i915#13903]) +2 other tests fail
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/fi-kbl-8809g/igt@[email protected]

* igt@kms_dsc@dsc-basic:
- fi-kbl-8809g: NOTRUN -> [SKIP][14] +62 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/fi-kbl-8809g/igt@[email protected]
- fi-skl-6600u: NOTRUN -> [SKIP][15] +10 other tests skip
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/fi-skl-6600u/igt@[email protected]

* igt@kms_force_connector_basic@force-connector-state:
- fi-kbl-8809g: NOTRUN -> [DMESG-WARN][16] ([i915#13905])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/fi-kbl-8809g/igt@[email protected]

* igt@kms_force_connector_basic@force-edid:
- fi-kbl-8809g: NOTRUN -> [DMESG-FAIL][17] ([i915#13905])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/fi-kbl-8809g/igt@[email protected]

* igt@kms_hdmi_inject@inject-audio:
- fi-kbl-8809g: NOTRUN -> [FAIL][18] ([i915#13904])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/fi-kbl-8809g/igt@[email protected]

* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence:
- bat-dg2-11: [PASS][19] -> [SKIP][20] ([i915#9197]) +3 other tests skip
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16273/bat-dg2-11/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/bat-dg2-11/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@workarounds:
- bat-arls-5: [DMESG-FAIL][21] ([i915#12061]) -> [PASS][22] +1 other test pass
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16273/bat-arls-5/igt@i915_selftest@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_146222v1/bat-arls-5/igt@i915_selftest@[email protected]

[i915#10462]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10462
[i915#12061]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12061
[i915#13901]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13901
[i915#13903]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13903
[i915#13904]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13904
[i915#13905]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13905
[i915#1849]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1849
[i915#2190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2190
[i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613
[i915#9197]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9197

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

* Linux: CI_DRM_16273 -> Patchwork_146222v1

CI-20190529: 20190529
CI_DRM_16273: ab32fa5b833c1887c0809109b3c8f910031a361d @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8271: 8271
Patchwork_146222v1: ab32fa5b833c1887c0809109b3c8f910031a361d @ git://anongit.freedesktop.org/gfx-ci/linux

== Logs ==

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