drm/i915/dp: Limit max compressed bpp to 18 when forcing DSC
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Wed, 30 Oct 2024 08:41:00 +0000 (14:11 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Wed, 13 Nov 2024 07:55:28 +0000 (13:25 +0530)
commit90b63bd4a67d6f992f1be3447e87ce68274e6763
tree26cacddb224a2cb77e62cd9175ee5a79c2454513
parent91daf92d9da10c87cb3c4310ba60b8edfde29515
drm/i915/dp: Limit max compressed bpp to 18 when forcing DSC

While forcing DSC when it is not actually required, the max compressed
bpp from the source gets picked for compression for some pipe bpps.
Apparently, when DSC is not required, forcing DSC to the maximum compressed
bpp seems to cause underruns.

To avoid this, limit the max compressed bpp to 18 while forcing DSC. This
value works across platforms with different pipe bpps and prevents
underruns.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Naga Venkata Srikanth V <nagavenkata.srikanth.v@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241030084100.1361689-1-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_dp.c