]> Gentwo Git Trees - linux/.git/commit
drm/i915/dp: Set min_bpp limit to 30 in HDR mode
authorChaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Wed, 30 Jul 2025 05:55:23 +0000 (11:25 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 19 Aug 2025 06:32:40 +0000 (12:02 +0530)
commitba49a4643cf53c6e9582b4a31142b67f5829cd82
tree02ecf6a60cbb9aca3367eaba5797b6789c938b63
parent2e9da93d604ef66b2ed6c5df7b7bfda3a187e71c
drm/i915/dp: Set min_bpp limit to 30 in HDR mode

Update intel_dp_compute_config_limits() to use a minimum of
30 bits per pixel when the connector is in HDR mode
(specifically, when EOTF is SMPTE ST2084), aligning with HDR
display requirements.

To support this, the function now takes a drm_connector_state
instead of an intel_connector, and the required updates are
made in all call sites, including MST handling.

This ensures sufficient bitdepth for HDR content to avoid
banding.

If the required bandwidth for 30 bpp cannot be supported,
the driver will either fall back to DSC or reject the mode
during atomic check if DSC is not supported.

Signed-off-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://lore.kernel.org/r/20250730055523.2214966-3-chaitanya.kumar.borah@intel.com
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp.h
drivers/gpu/drm/i915/display/intel_dp_mst.c