drm/i915: Add bigjoiner force enable option to debugfs
Subsystems (3)
PATCH 1/1 drm/i915: Add bigjoiner force enable option to debugfs
For validation purposes, it might be useful to be able to force Bigjoiner mode, even if current dotclock/resolution do not require that.
Lets add such to option to debugfs.
--- .../drm/i915/display/intel_display_debugfs.c | 71 +++++++++++++++++++ .../drm/i915/display/intel_display_types.h | 2 + drivers/gpu/drm/i915/display/intel_dp.c | 3 +- 3 files changed, 75 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_display_debugfs.c +71 -0
@@ -1399,6 +1399,35 @@ out: drm_modeset_unlock(&dev->mode_config.connection_mutex);return ret; } +static int i915_bigjoiner_enable_show (struct seq_file *m,void *data) +{ +struct drm_connector *connector = m->private; +struct drm_device *dev = connector->dev; +struct drm_crtc *crtc; +struct intel_encoder *encoder =intel_attached_encoder (to_intel_connector (connector)); +struct intel_dp *intel_dp =enc_to_intel_dp (encoder); +int ret; + +if (!encoder) +return -ENODEV ; + + ret =drm_modeset_lock_single_interruptible (&dev->mode_config.connection_mutex); +if (ret) +return ret; + + crtc = connector->state->crtc; +if (connector->status != connector_status_connected || !crtc) { + ret = -ENODEV ; + goto out; + } + +seq_printf (m,"Bigjoiner enable: %d\n" , intel_dp->force_bigjoiner_en); + +out:drm_modeset_unlock (&dev->mode_config.connection_mutex); + +return ret; +} +static ssize_t i915_dsc_output_format_write (struct file *file,const char __user *ubuf,size_t len,loff_t *offp)
@@ -1420,12 +1449,39 @@ static ssize_t i915_dsc_output_format_write(struct file *file,return len; } +static ssize_t i915_bigjoiner_enable_fops_write (struct file *file, +const char __user *ubuf, +size_t len,loff_t *offp) +{ +struct drm_connector *connector = + ((struct seq_file *)file->private_data)->private; +struct intel_encoder *encoder =intel_attached_encoder (to_intel_connector (connector)); +struct intel_dp *intel_dp =enc_to_intel_dp (encoder); +int bigjoiner_en =0 ; +int ret; + + ret =kstrtoint_from_user (ubuf, len,0 , &bigjoiner_en); +if (ret <0 ) +return ret; + + intel_dp->force_bigjoiner_en = bigjoiner_en; + *offp += len; + +return len; +} +static int i915_dsc_output_format_open (struct inode *inode,struct file *file) {return single_open (file, i915_dsc_output_format_show, inode->i_private); } +static int i915_bigjoiner_enable_open (struct inode *inode, +struct file *file) +{ +return single_open (file, i915_bigjoiner_enable_show, inode->i_private); +} +static const struct file_operations i915_dsc_output_format_fops = { .owner =THIS_MODULE , .open = i915_dsc_output_format_open,
@@ -1435,6 +1491,15 @@ static const struct file_operations i915_dsc_output_format_fops = { .write = i915_dsc_output_format_write }; +static const struct file_operations i915_bigjoiner_enable_fops = { + .owner =THIS_MODULE , + .open = i915_bigjoiner_enable_open, + .read = seq_read, + .llseek = seq_lseek, + .release = single_release, + .write = i915_bigjoiner_enable_fops_write +}; +/* * Returns the Current CRTC's bpc. * Example usage: cat /sys/kernel/debug/dri/0/crtc-0/i915_current_bpc
@@ -1514,6 +1579,12 @@ void intel_connector_debugfs_add(struct intel_connector *intel_connector) connector, &i915_dsc_output_format_fops); } +if (intel_dp_can_bigjoiner (enc_to_intel_dp (intel_connector->encoder)) && + connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort) { +debugfs_create_file ("i915_bigjoiner_force_enable" ,0644 , root, + connector, &i915_bigjoiner_enable_fops); + } + if (connector->connector_type == DRM_MODE_CONNECTOR_DSI || connector->connector_type == DRM_MODE_CONNECTOR_eDP || connector->connector_type == DRM_MODE_CONNECTOR_DisplayPort ||
drivers/gpu/drm/i915/display/intel_display_types.h +2 -0
@@ -1753,6 +1753,8 @@ struct intel_dp {bool is_mst;int active_mst_links; +bool force_bigjoiner_en; +/* connector directly attached - won't be use for modeset in mst world */ struct intel_connector *attached_connector;
drivers/gpu/drm/i915/display/intel_dp.c +2 -1
@@ -1153,7 +1153,8 @@ bool intel_dp_need_bigjoiner(struct intel_dp *intel_dp,if (!intel_dp_can_bigjoiner (intel_dp))return false; -return clock > i915->max_dotclk_freq || hdisplay >5120 ; +return clock > i915->max_dotclk_freq || hdisplay >5120 || + intel_dp->force_bigjoiner_en; } static enum drm_mode_status
Signature · 1 line
2.37.3
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Add bigjoiner force enable option to debugfs
== Series Details ==
== Series Details ==
Series: drm/i915: Add bigjoiner force enable option to debugfs
URL : https://patchwork.freedesktop.org/series/124730/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_13722 -> Patchwork_124730v1
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_124730v1 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_124730v1, 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_124730v1/index.html
Participating hosts (39 -> 38)
------------------------------
Additional (1): fi-kbl-soraka
Missing (2): bat-adlp-6 fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_124730v1:
### IGT changes ###
#### Possible regressions ####
* igt@debugfs_test@read_all_entries:
- bat-adlp-11: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13722/bat-adlp-11/igt@debugfs_test@read_all_entries.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124730v1/bat-adlp-11/igt@debugfs_test@read_all_entries.html
* igt@i915_module_load@load:
- fi-ilk-650: [PASS][3] -> [ABORT][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13722/fi-ilk-650/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124730v1/fi-ilk-650/igt@[email protected]
- fi-blb-e6850: [PASS][5] -> [ABORT][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13722/fi-blb-e6850/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124730v1/fi-blb-e6850/igt@[email protected]
- fi-pnv-d510: [PASS][7] -> [ABORT][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13722/fi-pnv-d510/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124730v1/fi-pnv-d510/igt@[email protected]
- fi-elk-e7500: [PASS][9] -> [ABORT][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13722/fi-elk-e7500/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124730v1/fi-elk-e7500/igt@[email protected]
- fi-hsw-4770: [PASS][11] -> [ABORT][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13722/fi-hsw-4770/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124730v1/fi-hsw-4770/igt@[email protected]
- fi-ivb-3770: [PASS][13] -> [ABORT][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13722/fi-ivb-3770/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124730v1/fi-ivb-3770/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_124730v1 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][15] ([fdo#109271] / [i915#2190])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124730v1/fi-kbl-soraka/igt@[email protected]
* igt@gem_lmem_swapping@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][16] ([fdo#109271] / [i915#4613]) +3 other tests skip
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124730v1/fi-kbl-soraka/igt@[email protected]
* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][17] ([i915#1886])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124730v1/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html
* igt@kms_dsc@dsc-basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][18] ([fdo#109271]) +9 other tests skip
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124730v1/fi-kbl-soraka/igt@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence:
- bat-dg2-11: NOTRUN -> [SKIP][19] ([i915#1845]) +1 other test skip
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124730v1/bat-dg2-11/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[Intel XE#485]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/485
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
Build changes
-------------
* Linux: CI_DRM_13722 -> Patchwork_124730v1
CI-20190529: 20190529
CI_DRM_13722: ead693ec2d2fddb30bff4718845d42f9adabcce6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7518: 2d4a57e28db0c2ccbf8b2e763074c9aa74a1ae52 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_124730v1: ead693ec2d2fddb30bff4718845d42f9adabcce6 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
e29d97736940 drm/i915: Add bigjoiner force enable option to debugfs
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124730v1/index.html