drm/i915/gt: Fix up clock frequency
Subsystems (2)
The bspec lists both the clock frequency and the effective interval. The interval corresponds to observed behaviour, so adjust the frequency to match.
v2: Mika rightfully asked if we could measure the clock frequency from a selftest.
--- .../gpu/drm/i915/gt/intel_gt_clock_utils.c | 12 +- drivers/gpu/drm/i915/gt/selftest_gt_pm.c | 1 + drivers/gpu/drm/i915/gt/selftest_rps.c | 133 ++++++++++++++++++ drivers/gpu/drm/i915/gt/selftest_rps.h | 1 + 4 files changed, 141 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/gt/intel_gt_clock_utils.c +6 -6
@@ -7,9 +7,9 @@#include "intel_gt.h" #include "intel_gt_clock_utils.h" +#define MHZ_12 12000000/* 12MHz (24MHz/2), 83.333ns */ +#define MHZ_12_5 12500000/* 12.5MHz (25MHz/2), 80ns */ #define MHZ_19_2 19200000/* 19.2MHz, 52.083ns */ -#define MHZ_24 24000000/* 24MHz, 83.333ns */ -#define MHZ_25 25000000/* 25MHz, 80ns */ static u32 read_clock_frequency (const struct intel_gt *gt) {
@@ -21,19 +21,19 @@ static u32 read_clock_frequency(const struct intel_gt *gt) config >>=GEN11_RPM_CONFIG0_CRYSTAL_CLOCK_FREQ_SHIFT ;switch (config) { -case 0 :return MHZ_24 ; +case 0 :return MHZ_12 ;case 1 :case 2 :return MHZ_19_2 ;default : -case 3 :return MHZ_25 ; +case 3 :return MHZ_12_5 ; } }else if (INTEL_GEN (gt->i915) >=9 ) {if (IS_GEN9_LP (gt->i915))return MHZ_19_2 ;else -return MHZ_24 ; +return MHZ_12 ; }else { -return MHZ_25 ; +return MHZ_12_5 ; } }
drivers/gpu/drm/i915/gt/selftest_gt_pm.c +1 -0
@@ -53,6 +53,7 @@ int intel_gt_pm_live_selftests(struct drm_i915_private *i915) {static const struct i915_subtest tests[] = {SUBTEST (live_rc6_manual), +SUBTEST (live_rps_clock_interval),SUBTEST (live_rps_control),SUBTEST (live_rps_frequency_cs),SUBTEST (live_rps_frequency_srm),
drivers/gpu/drm/i915/gt/selftest_rps.c +133 -0
139 lines not on this page · raw message
drivers/gpu/drm/i915/gt/selftest_rps.h +1 -0
@@ -7,6 +7,7 @@#define SELFTEST_RPS_H int live_rps_control (void *arg); +int live_rps_clock_interval (void *arg);int live_rps_frequency_cs (void *arg);int live_rps_frequency_srm (void *arg);int live_rps_power (void *arg);
Signature · 6 lines
2.20.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/gt: Fix up clock frequency (rev4)
== Series Details ==
== Series Details ==
Series: drm/i915/gt: Fix up clock frequency (rev4)
URL : https://patchwork.freedesktop.org/series/76512/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_8373 -> Patchwork_17479
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_17479 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_17479, 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_17479/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_17479:
### IGT changes ###
#### Possible regressions ####
* igt@i915_selftest@live@gt_pm:
- fi-cfl-guc: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8373/fi-cfl-guc/igt@i915_selftest@live@gt_pm.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17479/fi-cfl-guc/igt@i915_selftest@live@gt_pm.html
#### Warnings ####
* igt@i915_selftest@live@gt_pm:
- fi-tgl-y: [DMESG-FAIL][3] ([i915#1759]) -> [DMESG-FAIL][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8373/fi-tgl-y/igt@i915_selftest@live@gt_pm.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17479/fi-tgl-y/igt@i915_selftest@live@gt_pm.html
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@i915_selftest@live@gt_pm:
- {fi-tgl-dsi}: [DMESG-FAIL][5] ([i915#1759]) -> [DMESG-FAIL][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8373/fi-tgl-dsi/igt@i915_selftest@live@gt_pm.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17479/fi-tgl-dsi/igt@i915_selftest@live@gt_pm.html
- {fi-tgl-u}: [DMESG-FAIL][7] ([i915#1759]) -> [DMESG-FAIL][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8373/fi-tgl-u/igt@i915_selftest@live@gt_pm.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17479/fi-tgl-u/igt@i915_selftest@live@gt_pm.html
Known issues
------------
Here are the changes found in Patchwork_17479 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@sanitycheck:
- fi-bwr-2160: [PASS][9] -> [INCOMPLETE][10] ([i915#489])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8373/fi-bwr-2160/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17479/fi-bwr-2160/igt@i915_selftest@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@gt_pm:
- fi-kbl-x1275: [DMESG-FAIL][11] ([i915#1791]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8373/fi-kbl-x1275/igt@i915_selftest@live@gt_pm.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17479/fi-kbl-x1275/igt@i915_selftest@live@gt_pm.html
- fi-icl-u2: [DMESG-FAIL][13] -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8373/fi-icl-u2/igt@i915_selftest@live@gt_pm.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17479/fi-icl-u2/igt@i915_selftest@live@gt_pm.html
- fi-skl-lmem: [DMESG-FAIL][15] ([i915#1791]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8373/fi-skl-lmem/igt@i915_selftest@live@gt_pm.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17479/fi-skl-lmem/igt@i915_selftest@live@gt_pm.html
* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-7500u: [FAIL][17] -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8373/fi-kbl-7500u/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17479/fi-kbl-7500u/igt@[email protected]
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][19] ([i915#227]) -> [PASS][20] +2 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8373/fi-kbl-7500u/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17479/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).
[i915#1759]: https://gitlab.freedesktop.org/drm/intel/issues/1759
[i915#1791]: https://gitlab.freedesktop.org/drm/intel/issues/1791
[i915#227]: https://gitlab.freedesktop.org/drm/intel/issues/227
[i915#489]: https://gitlab.freedesktop.org/drm/intel/issues/489
Participating hosts (49 -> 44)
------------------------------
Additional (1): fi-kbl-7560u
Missing (6): fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_8373 -> Patchwork_17479
CI-20190529: 20190529
CI_DRM_8373: 9d63a10e83b2d271007e281fe875d6f650a1849e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5612: c8dc1fd926a550308b971ca7d83fe0a927a38152 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_17479: 2dcca982aef4d795a3bed290db77b8647e5b39bf @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
2dcca982aef4 drm/i915/gt: Fix up clock frequency
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_17479/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx