History

drm/i915/display: Extend DP HDR support to hsw+

HSW+ platforms are able to send out HDR Metadata SDP DIP packet as GMP. Hence, extending the support for HDR on DP encoders for the same. v2: Limited to non eDP ports on hsw/bdw and removed it for lspcon as it is done separately (suggested by Ville) v3: Added helper and limited eDP restriction to port A (Ville) v4: Dropped some redundant checks (Ville)

Uma Shankar committed 4 years ago

Commit 7e4e0e51 parent 3fd6afb1 file · +20 −1Browse files

Unified · Split

drivers/gpu/drm/i915/display/intel_dp.c+20−1
@@ -4887,6 +4887,25 @@ bool intel_dp_is_port_edp(struct drm_i915_private *dev_priv, enum port port) · 4886 unmodified lines
48874887 return intel_bios_is_port_edp(dev_priv, port);
48884888 }
48894889
4890+static bool
4891+has_gamut_metadata_dip(struct drm_i915_private *i915, enum port port)
4892+{
4893+ if (intel_bios_is_lspcon_present(i915, port))
4894+ return false;
4895+
4896+ if (DISPLAY_VER(i915) >= 11)
4897+ return true;
4898+
4899+ if (port == PORT_A)
4900+ return false;
4901+
4902+ if (IS_HASWELL(i915) || IS_BROADWELL(i915) ||
4903+ DISPLAY_VER(i915) >= 9)
4904+ return true;
4905+
4906+ return false;
4907+}
4908+
48904909 static void
48914910 intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connector)
48924911 {
@@ -4913,7 +4932,7 @@ intel_dp_add_properties(struct intel_dp *intel_dp, struct drm_connector *connect · 20 unmodified lines
49134932 intel_attach_dp_colorspace_property(connector);
49144933 }
49154934
4916− if (IS_GEMINILAKE(dev_priv) || DISPLAY_VER(dev_priv) >= 11)
4935+ if (has_gamut_metadata_dip(dev_priv, port))
49174936 drm_object_attach_property(&connector->base,
49184937 connector->dev->mode_config.hdr_output_metadata_property,
49194938 0);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t