mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
drm/i915: Utilize edp_disable_dsc from VBT
Disable eDP DSC usage when instructed to do so by the VBT. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240517145356.26103-7-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
cf235914f0
commit
b47e62b1ed
|
|
@ -1525,6 +1525,10 @@ parse_edp(struct drm_i915_private *i915,
|
|||
if (i915->display.vbt.version >= 244)
|
||||
panel->vbt.edp.max_link_rate =
|
||||
edp->edp_max_port_link_rate[panel_type] * 20;
|
||||
|
||||
if (i915->display.vbt.version >= 251)
|
||||
panel->vbt.edp.dsc_disable =
|
||||
panel_bool(edp->edp_dsc_disable, panel_type);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -335,6 +335,7 @@ struct intel_vbt_panel_data {
|
|||
u8 drrs_msa_timing_delay;
|
||||
bool low_vswing;
|
||||
bool hobl;
|
||||
bool dsc_disable;
|
||||
} edp;
|
||||
|
||||
struct {
|
||||
|
|
|
|||
|
|
@ -1181,6 +1181,10 @@ bool intel_dp_has_dsc(const struct intel_connector *connector)
|
|||
if (connector->mst_port && !HAS_DSC_MST(i915))
|
||||
return false;
|
||||
|
||||
if (connector->base.connector_type == DRM_MODE_CONNECTOR_eDP &&
|
||||
connector->panel.vbt.edp.dsc_disable)
|
||||
return false;
|
||||
|
||||
if (!drm_dp_sink_supports_dsc(connector->dp.dsc_dpcd))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user