drm/i915/dp: Return early if dsc is required but not supported
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Fri, 3 Jan 2025 03:14:24 +0000 (08:44 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 7 Jan 2025 07:57:16 +0000 (13:27 +0530)
commit939bc3e4d996ba2eebc5a9d8a8cf785cd17b1f93
treeb73cfc9cf34156e9ab0dd75fc1c7b81fbf9ee984
parent173876aa5d4b8d27b99a4288e2501771fd0c9422
drm/i915/dp: Return early if dsc is required but not supported

Currently, when bandwidth is insufficient for a given mode, we attempt
to use DSC. This is indicated by a debug print, followed by a check for
DSC support.

The debug message states that we are trying DSC, but DSC might not be
supported, which can give an incorrect picture in the logs if we bail
out later.

Correct the order for both DP and DP MST to:
- Check if DSC is required and supported, and return early if DSC is
not supported.
- Print a debug message to indicate that DSC will be tried next.

Suggested-by: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250103031424.1732774-1-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp_mst.c