drm/i915/gt: move remaining debugfs interfaces into gt
Subsystems (2)
PATCH v4 1/1 drm/i915/gt: move remaining debugfs interfaces into gt
From: Andi Shyti <[email protected]>
The following interfaces:
i915_wedged
i915_forcewake_user
are dependent on gt values. Put them inside gt/ and drop the "i915_" prefix name. This would be the new structure:
dri/0/gt
|
+-- forcewake_user |
\-- reset
For backwards compatibility with existing igt (and the slight semantic difference between operating on the i915 abi entry points and the deep gt info):
dri/0
|
+-- i915_wedged |
\-- i915_forcewake_user
remain at the top level.
---
Changelog:
----------
v3 -> v4: https://patchwork.freedesktop.org/patch/458225/
* remove the unnecessary interrupt_info_show() information. They were already removed here by Chris:
cf977e18610e6 ("drm/i915/gem: Spring clean debugfs")v2 -> v3: https://patchwork.freedesktop.org/patch/458108/
* keep the original interfaces as they were (thanks Chris) but implement the functionality inside the gt. The upper level files will call the gt functions (thanks Lucas).
v1 -> v2: https://patchwork.freedesktop.org/patch/456652/
* keep the original interfaces intact (thanks Chris).
drivers/gpu/drm/i915/gt/intel_gt_debugfs.c | 42 ++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_gt_debugfs.h | 4 ++ drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.c | 41 ++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.h | 4 ++ drivers/gpu/drm/i915/i915_debugfs.c | 43 +++---------------- 5 files changed, 98 insertions(+), 36 deletions(-)
drivers/gpu/drm/i915/gt/intel_gt_debugfs.c +42 -0
@@ -13,6 +13,46 @@#include "pxp/intel_pxp_debugfs.h" #include "uc/intel_uc_debugfs.h" +int reset_show (void *data,u64 *val) +{ +struct intel_gt *gt = data; +int ret =intel_gt_terminally_wedged (gt); + +switch (ret) { +case -EIO : + *val =1 ; +return 0 ; +case 0 : + *val =0 ; +return 0 ; +default : +return ret; + } +} + +int reset_store (void *data,u64 val) +{ +struct intel_gt *gt = data; + +/* Flush any previous reset before applying for a new one */ +wait_event (gt->reset.queue, + !test_bit (I915_RESET_BACKOFF , >->reset.flags)); + +intel_gt_handle_error (gt, val,I915_ERROR_CAPTURE , +"Manually reset engine mask to %llx" , val); +return 0 ; +} +DEFINE_SIMPLE_ATTRIBUTE (reset_fops, reset_show, reset_store,"%llu\n" ); + +static void gt_debugfs_register (struct intel_gt *gt,struct dentry *root) +{ +static const struct intel_gt_debugfs_file files[] = { + {"reset" , &reset_fops,NULL }, + }; + +intel_gt_debugfs_register_files (root, files,ARRAY_SIZE (files), gt); +} +void intel_gt_debugfs_register (struct intel_gt *gt) {struct dentry *root;
@@ -24,6 +64,8 @@ void intel_gt_debugfs_register(struct intel_gt *gt)if (IS_ERR (root))return ; +gt_debugfs_register (gt, root); +intel_gt_engines_debugfs_register (gt, root);intel_gt_pm_debugfs_register (gt, root);intel_sseu_debugfs_register (gt, root);
drivers/gpu/drm/i915/gt/intel_gt_debugfs.h +4 -0
@@ -35,4 +35,8 @@ void intel_gt_debugfs_register_files(struct dentry *root,const struct intel_gt_debugfs_file *files, unsigned long count, void *data); +/* functions that need to be accessed by the upper level non-gt interfaces */ +int reset_show (void *data,u64 *val); +int reset_store (void *data,u64 val); +#endif /* INTEL_GT_DEBUGFS_H */
drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.c +41 -0
53 lines not on this page · raw message
drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.h +4 -0
@@ -13,4 +13,8 @@ struct drm_printer;void intel_gt_pm_debugfs_register (struct intel_gt *gt,struct dentry *root);void intel_gt_pm_frequency_dump (struct intel_gt *gt,struct drm_printer *m); +/* functions that need to be accessed by the upper level non-gt interfaces */ +int __forcewake_user_open (struct intel_gt *gt); +int __forcewake_user_release (struct intel_gt *gt); +#endif /* INTEL_GT_PM_DEBUGFS_H */
drivers/gpu/drm/i915/i915_debugfs.c +7 -36
76 lines not on this page · raw message
Signature · 1 line
2.33.0
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/gt: move remaining debugfs interfaces into gt (rev11)
== Series Details ==
== Series Details ==
Series: drm/i915/gt: move remaining debugfs interfaces into gt (rev11)
URL : https://patchwork.freedesktop.org/series/75333/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_10700 -> Patchwork_21301
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/index.html
Known issues
------------
Here are the changes found in Patchwork_21301 that come from known issues:
### IGT changes ###
#### Possible fixes ####
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-a:
- {fi-tgl-dsi}: [DMESG-WARN][1] ([i915#1982]) -> [PASS][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/fi-tgl-dsi/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/fi-tgl-dsi/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#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
Participating hosts (40 -> 36)
------------------------------
Missing (4): fi-bsw-cyan fi-ilk-m540 fi-hsw-4200u fi-kbl-r
Build changes
-------------
* Linux: CI_DRM_10700 -> Patchwork_21301
CI-20190529: 20190529
CI_DRM_10700: 6ecdd5e29c83cd8fc191f8cce5c283eefb53c97e @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_6240: b232a092b9e1b10a8be13601acaa440903b226bc @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_21301: 5c3271ef5a87996a244d7a515d6653350053ba01 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
5c3271ef5a87 drm/i915/gt: move remaining debugfs interfaces into gt
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/index.html
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/gt: move remaining debugfs interfaces into gt (rev11)
In reply to Andi Shyti== Series Details ==
== Series Details ==
Series: drm/i915/gt: move remaining debugfs interfaces into gt (rev11)
URL : https://patchwork.freedesktop.org/series/75333/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_10700_full -> Patchwork_21301_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_21301_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_21301_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_21301_full:
### IGT changes ###
#### Possible regressions ####
* igt@gem_userptr_blits@huge-split:
- shard-snb: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-snb6/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-snb7/igt@[email protected]
* igt@i915_pm_dc@dc9-dpms:
- shard-tglb: NOTRUN -> [SKIP][3]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-tglb5/igt@[email protected]
* igt@i915_suspend@debugfs-reader:
- shard-kbl: [PASS][4] -> [INCOMPLETE][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl6/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-kbl3/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_21301_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_persistence@legacy-engines-queued:
- shard-snb: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#1099]) +3 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-snb2/igt@[email protected]
* igt@gem_eio@in-flight-contexts-10ms:
- shard-iclb: [PASS][7] -> [TIMEOUT][8] ([i915#3070])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb5/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb8/igt@[email protected]
* igt@gem_eio@unwedge-stress:
- shard-tglb: [PASS][9] -> [TIMEOUT][10] ([i915#2369] / [i915#3063] / [i915#3648])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-tglb2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-tglb6/igt@[email protected]
* igt@gem_exec_fair@basic-deadline:
- shard-apl: NOTRUN -> [FAIL][11] ([i915#2846])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl7/igt@[email protected]
* igt@gem_exec_fair@basic-none-vip@rcs0:
- shard-kbl: [PASS][12] -> [FAIL][13] ([i915#2842])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl3/igt@gem_exec_fair@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-kbl6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [PASS][14] -> [FAIL][15] ([i915#2842])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk6/igt@gem_exec_fair@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk6/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-iclb: NOTRUN -> [FAIL][16] ([i915#2842])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb1/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-glk: NOTRUN -> [FAIL][17] ([i915#2842])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk8/igt@gem_exec_fair@[email protected]
* igt@gem_exec_schedule@u-submit-early-slice@vecs0:
- shard-skl: [PASS][18] -> [INCOMPLETE][19] ([i915#3797])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl1/igt@gem_exec_schedule@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl6/igt@gem_exec_schedule@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-apl: NOTRUN -> [SKIP][20] ([fdo#109271] / [i915#2190])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl6/igt@[email protected]
* igt@gem_pwrite@basic-exhaustion:
- shard-snb: NOTRUN -> [WARN][21] ([i915#2658])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-snb5/igt@[email protected]
- shard-apl: NOTRUN -> [WARN][22] ([i915#2658])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl6/igt@[email protected]
- shard-glk: NOTRUN -> [WARN][23] ([i915#2658])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk8/igt@[email protected]
* igt@gem_pxp@reject-modify-context-protection-off-2:
- shard-tglb: NOTRUN -> [SKIP][24] ([i915#4270])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-tglb5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][25] ([i915#4270])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb1/igt@[email protected]
* igt@gem_render_copy@yf-tiled-mc-ccs-to-vebox-y-tiled:
- shard-glk: NOTRUN -> [SKIP][26] ([fdo#109271]) +36 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk8/igt@[email protected]
* igt@gem_sync@basic-many-each:
- shard-snb: NOTRUN -> [INCOMPLETE][27] ([i915#2055])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-snb2/igt@[email protected]
- shard-kbl: [PASS][28] -> [INCOMPLETE][29] ([i915#4274])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl2/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-kbl7/igt@[email protected]
- shard-iclb: [PASS][30] -> [INCOMPLETE][31] ([i915#4274])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb2/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb3/igt@[email protected]
* igt@gem_userptr_blits@dmabuf-sync:
- shard-kbl: NOTRUN -> [SKIP][32] ([fdo#109271] / [i915#3323])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-kbl4/igt@[email protected]
* igt@gem_workarounds@suspend-resume:
- shard-apl: NOTRUN -> [DMESG-WARN][33] ([i915#180])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl7/igt@[email protected]
* igt@gen9_exec_parse@batch-invalid-length:
- shard-iclb: NOTRUN -> [SKIP][34] ([i915#2856])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb1/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [PASS][35] -> [FAIL][36] ([i915#454])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb2/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb3/igt@[email protected]
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-dp:
- shard-apl: NOTRUN -> [SKIP][37] ([fdo#109271] / [i915#1937])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl7/igt@i915_pm_lpsp@[email protected]
* igt@kms_big_fb@x-tiled-32bpp-rotate-180:
- shard-glk: NOTRUN -> [DMESG-WARN][38] ([i915#118])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk8/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-hflip:
- shard-apl: NOTRUN -> [SKIP][39] ([fdo#109271] / [i915#3777]) +1 similar issue
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl1/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0:
- shard-apl: NOTRUN -> [SKIP][40] ([fdo#109271]) +251 similar issues
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl7/igt@[email protected]
* igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_gen12_mc_ccs:
- shard-apl: NOTRUN -> [SKIP][41] ([fdo#109271] / [i915#3886]) +14 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl7/igt@kms_ccs@pipe-a-ccs-on-another-bo-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc:
- shard-skl: NOTRUN -> [SKIP][42] ([fdo#109271] / [i915#3886])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl2/igt@kms_ccs@pipe-a-crc-primary-rotation-180-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_ccs@pipe-c-bad-pixel-format-y_tiled_gen12_rc_ccs_cc:
- shard-kbl: NOTRUN -> [SKIP][43] ([fdo#109271] / [i915#3886]) +1 similar issue
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-kbl4/igt@kms_ccs@pipe-c-bad-pixel-format-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_chamelium@hdmi-hpd-for-each-pipe:
- shard-kbl: NOTRUN -> [SKIP][44] ([fdo#109271] / [fdo#111827]) +5 similar issues
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-kbl2/igt@[email protected]
* igt@kms_chamelium@hdmi-mode-timings:
- shard-snb: NOTRUN -> [SKIP][45] ([fdo#109271] / [fdo#111827]) +21 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-snb2/igt@[email protected]
* igt@kms_color@pipe-b-ctm-0-75:
- shard-skl: [PASS][46] -> [DMESG-WARN][47] ([i915#1982])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl7/igt@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl8/igt@[email protected]
* igt@kms_color_chamelium@pipe-b-ctm-0-5:
- shard-glk: NOTRUN -> [SKIP][48] ([fdo#109271] / [fdo#111827]) +2 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk8/igt@[email protected]
* igt@kms_color_chamelium@pipe-c-ctm-0-25:
- shard-apl: NOTRUN -> [SKIP][49] ([fdo#109271] / [fdo#111827]) +21 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl6/igt@[email protected]
* igt@kms_color_chamelium@pipe-d-ctm-red-to-blue:
- shard-skl: NOTRUN -> [SKIP][50] ([fdo#109271] / [fdo#111827]) +5 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl2/igt@[email protected]
* igt@kms_content_protection@lic:
- shard-apl: NOTRUN -> [TIMEOUT][51] ([i915#1319]) +1 similar issue
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl3/igt@[email protected]
* igt@kms_cursor_crc@pipe-d-cursor-512x170-rapid-movement:
- shard-tglb: NOTRUN -> [SKIP][52] ([i915#3359])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-tglb5/igt@[email protected]
- shard-iclb: NOTRUN -> [SKIP][53] ([fdo#109278])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb1/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-skl: [PASS][54] -> [FAIL][55] ([i915#2346] / [i915#533])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl10/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl9/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-hdmi-a2:
- shard-glk: [PASS][56] -> [FAIL][57] ([i915#79]) +1 similar issue
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk4/igt@kms_flip@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk5/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-ts-check@c-edp1:
- shard-skl: [PASS][58] -> [FAIL][59] ([i915#2122])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl9/igt@kms_flip@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl6/igt@kms_flip@[email protected]
* igt@kms_flip_scaled_crc@flip-32bpp-ytileccs-to-64bpp-ytile:
- shard-snb: NOTRUN -> [SKIP][60] ([fdo#109271]) +436 similar issues
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-snb7/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-16bpp-ytile:
- shard-skl: NOTRUN -> [INCOMPLETE][61] ([i915#3699])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-pwrite:
- shard-glk: [PASS][62] -> [FAIL][63] ([i915#1888] / [i915#2546])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk5/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-pwrite.html
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk9/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-indfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-render:
- shard-iclb: NOTRUN -> [SKIP][64] ([fdo#109280])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb1/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-draw-render.html
* igt@kms_frontbuffer_tracking@psr-suspend:
- shard-skl: [PASS][65] -> [INCOMPLETE][66] ([i915#123] / [i915#146])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl6/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl3/igt@[email protected]
* igt@kms_hdr@bpc-switch:
- shard-skl: [PASS][67] -> [FAIL][68] ([i915#1188])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl10/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl7/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-d:
- shard-apl: NOTRUN -> [SKIP][69] ([fdo#109271] / [i915#533]) +3 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl3/igt@[email protected]
* igt@kms_pipe_crc_basic@disable-crc-after-crtc-pipe-d:
- shard-glk: NOTRUN -> [SKIP][70] ([fdo#109271] / [i915#533])
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk8/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- shard-kbl: [PASS][71] -> [DMESG-WARN][72] ([i915#180])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl1/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-kbl1/igt@[email protected]
* igt@kms_plane@pixel-format-source-clamping@pipe-a-planes:
- shard-skl: NOTRUN -> [SKIP][73] ([fdo#109271]) +96 similar issues
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl2/igt@kms_plane@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend@pipe-b-planes:
- shard-apl: [PASS][74] -> [DMESG-WARN][75] ([i915#180]) +2 similar issues
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-apl3/igt@kms_plane@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl8/igt@kms_plane@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-basic:
- shard-glk: NOTRUN -> [FAIL][76] ([fdo#108145] / [i915#265])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk8/igt@[email protected]
- shard-apl: NOTRUN -> [FAIL][77] ([fdo#108145] / [i915#265]) +1 similar issue
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl6/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-alpha-transparent-fb:
- shard-apl: NOTRUN -> [FAIL][78] ([i915#265])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl3/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][79] -> [FAIL][80] ([fdo#108145] / [i915#265]) +1 similar issue
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl1/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl1/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-2:
- shard-skl: NOTRUN -> [SKIP][81] ([fdo#109271] / [i915#658])
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl2/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-4:
- shard-kbl: NOTRUN -> [SKIP][82] ([fdo#109271] / [i915#658]) +1 similar issue
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-kbl2/igt@[email protected]
* igt@kms_psr2_sf@overlay-primary-update-sf-dmg-area-4:
- shard-apl: NOTRUN -> [SKIP][83] ([fdo#109271] / [i915#658]) +4 similar issues
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl1/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-1:
- shard-glk: NOTRUN -> [SKIP][84] ([fdo#109271] / [i915#658])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk8/igt@[email protected]
* igt@kms_psr@cursor_plane_onoff:
- shard-kbl: NOTRUN -> [SKIP][85] ([fdo#109271]) +77 similar issues
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-kbl3/igt@kms_psr@cursor_plane_onoff.html
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [PASS][86] -> [SKIP][87] ([fdo#109441]) +3 similar issues
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb3/igt@kms_psr@psr2_primary_mmap_cpu.html
* igt@kms_setmode@clone-exclusive-crtc:
- shard-skl: NOTRUN -> [WARN][88] ([i915#2100])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl2/igt@[email protected]
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-kbl: [PASS][89] -> [DMESG-WARN][90] ([i915#180] / [i915#295])
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl3/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-kbl1/igt@[email protected]
* igt@sysfs_clients@recycle:
- shard-skl: NOTRUN -> [SKIP][91] ([fdo#109271] / [i915#2994])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl2/igt@[email protected]
* igt@sysfs_clients@recycle-many:
- shard-apl: NOTRUN -> [SKIP][92] ([fdo#109271] / [i915#2994]) +1 similar issue
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl6/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][93] ([fdo#109271] / [i915#2994])
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk8/igt@[email protected]
* igt@sysfs_clients@split-50:
- shard-kbl: NOTRUN -> [SKIP][94] ([fdo#109271] / [i915#2994]) +1 similar issue
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-kbl4/igt@[email protected]
#### Possible fixes ####
* igt@gem_eio@in-flight-contexts-1us:
- shard-iclb: [TIMEOUT][95] ([i915#3070]) -> [PASS][96]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb8/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb2/igt@[email protected]
* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-glk: [FAIL][97] ([i915#2842]) -> [PASS][98] +1 similar issue
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk4/igt@gem_exec_fair@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@vcs0:
- shard-kbl: [FAIL][99] ([i915#2842]) -> [PASS][100] +2 similar issues
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl7/igt@gem_exec_fair@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-kbl7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-tglb: [FAIL][101] ([i915#2842]) -> [PASS][102]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-tglb6/igt@gem_exec_fair@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-tglb3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-iclb: [FAIL][103] ([i915#2849]) -> [PASS][104]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb7/igt@gem_exec_fair@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb2/igt@gem_exec_fair@[email protected]
* igt@gem_huc_copy@huc-copy:
- shard-tglb: [SKIP][105] ([i915#2190]) -> [PASS][106]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-tglb6/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-tglb3/igt@[email protected]
* igt@i915_pm_dc@dc6-dpms:
- shard-iclb: [FAIL][107] ([i915#454]) -> [PASS][108]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb3/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb4/igt@[email protected]
* igt@i915_pm_rpm@system-suspend:
- shard-skl: [INCOMPLETE][109] ([i915#151]) -> [PASS][110]
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl10/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl7/igt@[email protected]
* igt@i915_selftest@live@hangcheck:
- shard-snb: [INCOMPLETE][111] ([i915#3921]) -> [PASS][112]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-snb6/igt@i915_selftest@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-snb7/igt@i915_selftest@[email protected]
* igt@kms_async_flips@alternate-sync-async-flip:
- shard-skl: [FAIL][113] ([i915#2521]) -> [PASS][114]
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl8/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl9/igt@[email protected]
* igt@kms_big_fb@yf-tiled-16bpp-rotate-0:
- shard-glk: [DMESG-WARN][115] ([i915#118]) -> [PASS][116]
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk2/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk9/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [DMESG-WARN][117] ([i915#180]) -> [PASS][118] +4 similar issues
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl6/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-kbl3/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank@b-edp1:
- shard-skl: [FAIL][119] ([i915#79]) -> [PASS][120]
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl6/igt@kms_flip@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl3/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-fb-recreate@a-edp1:
- shard-skl: [FAIL][121] ([i915#2122]) -> [PASS][122]
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-skl1/igt@kms_flip@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-skl1/igt@kms_flip@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- shard-apl: [DMESG-WARN][123] ([i915#180]) -> [PASS][124]
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-apl2/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-apl6/igt@[email protected]
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [SKIP][125] ([fdo#109441]) -> [PASS][126] +1 similar issue
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb7/igt@kms_psr@psr2_sprite_plane_move.html
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
* igt@perf@polling-parameterized:
- shard-glk: [FAIL][127] ([i915#1542]) -> [PASS][128]
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-glk5/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-glk7/igt@[email protected]
#### Warnings ####
* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-iclb: [FAIL][129] ([i915#2842]) -> [FAIL][130] ([i915#2852])
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb1/igt@gem_exec_fair@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb7/igt@gem_exec_fair@[email protected]
* igt@i915_pm_rc6_residency@rc6-fence:
- shard-iclb: [WARN][131] ([i915#1804] / [i915#2684]) -> [WARN][132] ([i915#2684])
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb7/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb2/igt@[email protected]
* igt@i915_pm_rc6_residency@rc6-idle:
- shard-iclb: [WARN][133] ([i915#2684]) -> [FAIL][134] ([i915#2680])
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb8/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb5/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area-1:
- shard-iclb: [SKIP][135] ([i915#2920]) -> [SKIP][136] ([i915#658]) +2 similar issues
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb2/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb3/igt@[email protected]
* igt@kms_psr2_sf@primary-plane-update-sf-dmg-area-1:
- shard-iclb: [SKIP][137] ([i915#658]) -> [SKIP][138] ([i915#2920]) +2 similar issues
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-iclb7/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/shard-iclb2/igt@[email protected]
* igt@runner@aborted:
- shard-kbl: ([FAIL][139], [FAIL][140], [FAIL][141], [FAIL][142], [FAIL][143], [FAIL][144], [FAIL][145]) ([i915#1436] / [i915#180] / [i915#1814] / [i915#3002] / [i915#3363]) -> ([FAIL][146], [FAIL][147], [FAIL][148], [FAIL][149], [FAIL][150], [FAIL][151], [FAIL][152]) ([i915#1814] / [i915#2426] / [i915#3002] / [i915#3363] / [i915#602])
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl3/igt@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl6/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl6/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl7/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_10700/shard-kbl7/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/drm-
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21301/index.html
Quoted 121 lines · Andi Shyti
From: Andi Shyti <[email protected]>
The following interfaces:
i915_wedged
i915_forcewake_userare dependent on gt values. Put them inside gt/ and drop the "
i915_" prefix name. This would be the new structure:dri/0/gt
|+-- forcewake_user |\-- reset
For backwards compatibility with existing igt (and the slight semantic difference between operating on the i915 abi entry points and the deep gt info):
dri/0
|+-- i915_wedged |\--
i915_forcewake_userremain at the top level.
Signed-off-by Andi Shyti <[email protected]>Cc Tvrtko Ursulin <[email protected]>Cc Chris Wilson <[email protected]>---
Changelog:
----------
v3 -> v4: https://patchwork.freedesktop.org/patch/458225/
* remove the unnecessaryinterrupt_info_show()information. They were already removed here by Chris:cf977e18610e6 ("drm/i915/gem: Spring clean debugfs")v2 -> v3: https://patchwork.freedesktop.org/patch/458108/
* keep the original interfaces as they were (thanks Chris) but implement the functionality inside the gt. The upper level files will call the gt functions (thanks Lucas).v1 -> v2: https://patchwork.freedesktop.org/patch/456652/
* keep the original interfaces intact (thanks Chris).drivers/gpu/drm/i915/gt/intel_gt_debugfs.c | 42 ++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_gt_debugfs.h | 4 ++ drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.c | 41 ++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.h | 4 ++ drivers/gpu/drm/i915/i915_debugfs.c | 43 +++---------------- 5 files changed, 98 insertions(+), 36 deletions(-)drivers/gpu/drm/i915/gt/intel_gt_debugfs.c +42
-0@@ -13,6 +13,46 @@#include "pxp/intel_pxp_debugfs.h" #include "uc/intel_uc_debugfs.h" +int reset_show (void *data,u64 *val) +{ +struct intel_gt *gt = data; +int ret =intel_gt_terminally_wedged (gt); + +switch (ret) { +case -EIO : + *val =1 ; +return 0 ; +case 0 : + *val =0 ; +return 0 ; +default : +return ret; + } +} + +int reset_store (void *data,u64 val) +{ +struct intel_gt *gt = data; + +/* Flush any previous reset before applying for a new one */ +wait_event (gt->reset.queue, + !test_bit (I915_RESET_BACKOFF , >->reset.flags)); + +intel_gt_handle_error (gt, val,I915_ERROR_CAPTURE , +"Manually reset engine mask to %llx" , val); +return 0 ; +} +DEFINE_SIMPLE_ATTRIBUTE (reset_fops, reset_show, reset_store,"%llu\n" ); + +static void gt_debugfs_register (struct intel_gt *gt,struct dentry *root) +{ +static const struct intel_gt_debugfs_file files[] = { + {"reset" , &reset_fops,NULL }, + }; + +intel_gt_debugfs_register_files (root, files,ARRAY_SIZE (files), gt); +} +void intel_gt_debugfs_register (struct intel_gt *gt) {struct dentry *root;@@ -24,6 +64,8 @@ void intel_gt_debugfs_register(struct intel_gt *gt)if (IS_ERR (root))return ; +gt_debugfs_register (gt, root); +intel_gt_engines_debugfs_register (gt, root);intel_gt_pm_debugfs_register (gt, root);intel_sseu_debugfs_register (gt, root);drivers/gpu/drm/i915/gt/intel_gt_debugfs.h +0
-0
drivers/gpu/drm/i915/gt/intel_gt_debugfs.h void intel_gt_debugfs_register_files(struct dentry *root, · line 40
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gt_debugfs.h +3
-0@@ -35,4 +35,8 @@ void intel_gt_debugfs_register_files(struct dentry *root,const struct intel_gt_debugfs_file *files, unsigned long count, void *data); +/* functions that need to be accessed by the upper level non-gt interfaces */ +int reset_show (void *data,u64 *val); +int reset_store (void *data,u64 val);
We are trying to make the several parts of the driver self-contained. Functions exposed by this header should keep the namespace...
So I think this would be intel_gt_debugfs_reset_show() / intel_gt_debugfs_reset_store()
or something like that.
Also, since you still have a i915_wedged_set() function, here the first parameter could be struct intel_gt * to make the interface clear.
Quoted 66 lines
drivers/gpu/drm/i915/gt/intel_gt_debugfs.h +1
-0+#endif /* INTEL_GT_DEBUGFS_H */ drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.c +41
-0@@ -19,6 +19,46 @@#include "intel_sideband.h" #include "intel_uncore.h" +int __forcewake_user_open (struct intel_gt *gt) +{ +atomic_inc (>->user_wakeref); +intel_gt_pm_get (gt); +if (GRAPHICS_VER (gt->i915) >=6 ) +intel_uncore_forcewake_user_get (gt->uncore); + +return 0 ; +} + +int __forcewake_user_release (struct intel_gt *gt) +{ +if (GRAPHICS_VER (gt->i915) >=6 ) +intel_uncore_forcewake_user_put (gt->uncore); +intel_gt_pm_put (gt); +atomic_dec (>->user_wakeref); + +return 0 ; +} + +static int forcewake_user_open (struct inode *inode,struct file *file) +{ +struct intel_gt *gt = inode->i_private; + +return __forcewake_user_open (gt); +} + +static int forcewake_user_release (struct inode *inode,struct file *file) +{ +struct intel_gt *gt = inode->i_private; + +return __forcewake_user_release (gt); +} + +static const struct file_operations forcewake_user_fops = { + .owner =THIS_MODULE , + .open = forcewake_user_open, + .release = forcewake_user_release, +}; +static int fw_domains_show (struct seq_file *m,void *data) {struct intel_gt *gt = m->private;@@ -627,6 +667,7 @@ void intel_gt_pm_debugfs_register(struct intel_gt *gt, struct dentry *root) { "drpc", &drpc_fops, NULL }, { "frequency", &frequency_fops, NULL }, { "forcewake", &fw_domains_fops, NULL }, + { "forcewake_user", &forcewake_user_fops, NULL}, { "llc", &llc_fops, llc_eval }, { "rps_boost", &rps_boost_fops, rps_eval }, };drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.h +0
-0
drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.h struct drm_printer; · line 18
Quoted 6 lines
drivers/gpu/drm/i915/gt/intel_gt_pm_debugfs.h +3
-0@@ -13,4 +13,8 @@ struct drm_printer;void intel_gt_pm_debugfs_register (struct intel_gt *gt,struct dentry *root);void intel_gt_pm_frequency_dump (struct intel_gt *gt,struct drm_printer *m); +/* functions that need to be accessed by the upper level non-gt interfaces */ +int __forcewake_user_open (struct intel_gt *gt); +int __forcewake_user_release (struct intel_gt *gt);
same thing here.
Other than those renames,
thanks
Lucas De Marchi