[PATCH 19/19] drm/i915/intel_dp: Add support for forcing ultrajoiner
Ankit Nautiyal
ankit.k.nautiyal at intel.com
Thu Sep 12 08:02:12 UTC 2024
Allow forcing ultrajoiner through debugfs.
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal at intel.com>
---
drivers/gpu/drm/i915/display/intel_display_debugfs.c | 6 ++++++
drivers/gpu/drm/i915/display/intel_dp.c | 2 ++
2 files changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
index cb539c6b097a..db43214fce02 100644
--- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
+++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
@@ -1554,6 +1554,12 @@ static ssize_t i915_joiner_write(struct file *file,
else
drm_dbg(display->drm, "Force joiner not supported for the config\n");
break;
+ case 4:
+ if (intel_display_can_use_ultrajoiner(display))
+ connector->force_joined_pipes = force_join_pipes;
+ else
+ drm_dbg(display->drm, "Force ultrajoiner not supported for the config\n");
+ break;
default:
drm_dbg(display->drm, "Ignoring Invalid num of pipes %d for force joining\n",
force_join_pipes);
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 2cba62539081..da3cfd0f5fef 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -1317,6 +1317,8 @@ int intel_dp_compute_joiner_pipes(struct intel_dp *intel_dp,
case 1:
fallthrough;
case 2:
+ fallthrough;
+ case 4:
return connector->force_joined_pipes;
default:
MISSING_CASE(connector->force_joined_pipes);
--
2.45.2
More information about the Intel-gfx-trybot
mailing list