]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/display: Modify debugfs for joiner to force n pipes
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 26 Sep 2024 13:43:21 +0000 (19:13 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 30 Sep 2024 14:06:40 +0000 (19:36 +0530)
commita47df3335a223c096b946b7934db12f9ac9948a4
tree5e54d450e1fdc308f63077fa84dbf371f96d04a8
parentcdff99ff24b16ee37b0527fc64c0e7df4989a1ba
drm/i915/display: Modify debugfs for joiner to force n pipes

At the moment, the debugfs for joiner allows only to force enable/disable
pipe joiner for 2 pipes. Modify it to force join 'n' number of pipes,
where n is a valid pipe joiner configuration.
This will help in case of ultra joiner where 4 pipes are joined.

v2:
-Fix commit message to state that only valid joiner config can be
forced. (Suraj)
-Rename the identifiers to have INTEL_BIG/NONE_JOINER_PIPES. (Suraj)
v3:
-Avoid enum for joiner pipe counts, use bare numbers for better
readability. (Ville)
-Remove redundant prints from debugfs. (Ville)
v4: Return -EINVAL if joiner forced to an invalid value.
v5: Remove extra debug message. (Ville)
v6: Minor fix in switch case. (Ville)

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240926134322.3728021-4-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_display_debugfs.c
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp.c