Message ID | 20240923181336.3303940-17-ankit.k.nautiyal@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Ultrajoiner basic functionality series | expand |
On Mon, Sep 23, 2024 at 11:43:36PM +0530, Ankit Nautiyal wrote: > Allow forcing ultrajoiner through debugfs. > > v2: Minor refactoring of switch case logic. (Ville) > > Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> > Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> > --- > drivers/gpu/drm/i915/display/intel_display_debugfs.c | 8 ++++++++ > 1 file 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 af164e340cb3..01ddebc61944 100644 > --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c > +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c > @@ -1331,6 +1331,7 @@ static ssize_t i915_joiner_write(struct file *file, > { > struct seq_file *m = file->private_data; > struct intel_connector *connector = m->private; > + struct drm_i915_private *i915 = to_i915(connector->base.dev); > int force_joined_pipes = 0; > int ret; > > @@ -1349,6 +1350,13 @@ static ssize_t i915_joiner_write(struct file *file, > case 2: > connector->force_joined_pipes = force_joined_pipes; > break; > + case 4: > + if (HAS_ULTRAJOINER(i915)) { > + connector->force_joined_pipes = force_joined_pipes; > + break; > + } > + > + fallthrough; > default: > return -EINVAL; > } > -- > 2.45.2
diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display/intel_display_debugfs.c index af164e340cb3..01ddebc61944 100644 --- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c +++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c @@ -1331,6 +1331,7 @@ static ssize_t i915_joiner_write(struct file *file, { struct seq_file *m = file->private_data; struct intel_connector *connector = m->private; + struct drm_i915_private *i915 = to_i915(connector->base.dev); int force_joined_pipes = 0; int ret; @@ -1349,6 +1350,13 @@ static ssize_t i915_joiner_write(struct file *file, case 2: connector->force_joined_pipes = force_joined_pipes; break; + case 4: + if (HAS_ULTRAJOINER(i915)) { + connector->force_joined_pipes = force_joined_pipes; + break; + } + + fallthrough; default: return -EINVAL; }