Skip to content

Commit 14ee642

Browse files
committed
Merge tag 'drm-intel-next-2019-05-24' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
Features: - Engine discovery query (Tvrtko) - Support for DP YCbCr4:2:0 outputs (Gwan-gyeong) - HDCP revocation support, refactoring (Ramalingam) - Remove DRM_AUTH from IOCTLs which also have DRM_RENDER_ALLOW (Christian König) - Asynchronous display power disabling (Imre) - Perma-pin uC firmware and re-enable global reset (Fernando) - GTT remapping for display, for bigger fb size and stride (Ville) - Enable pipe HDR mode on ICL if only HDR planes are used (Ville) - Kconfig to tweak the busyspin durations for i915_wait_request (Chris) - Allow multiple user handles to the same VM (Chris) - GT/GEM runtime pm improvements using wakerefs (Chris) - Gen 4&5 render context support (Chris) - Allow userspace to clone contexts on creation (Chris) - SINGLE_TIMELINE flags for context creation (Chris) - Allow specification of parallel execbuf (Chris) Refactoring: - Header refactoring (Jani) - Move GraphicsTechnology files under gt/ (Chris) - Sideband code refactoring (Chris) Fixes: - ICL DSI state readout and checker fixes (Vandita) - GLK DSI picture corruption fix (Stanislav) - HDMI deep color fixes (Clinton, Aditya) - Fix driver unbinding from a device in use (Janusz) - Fix clock gating with pipe scaling (Radhakrishna) - Disable broken FBC on GLK (Daniel Drake) - Miscellaneous GuC fixes (Michal) - Fix MG PHY DP register programming (Imre) - Add missing combo PHY lane power setup (Imre) - Workarounds for early ICL VBT issues (Imre) - Fix fastset vs. pfit on/off on HSW EDP transcoder (Ville) - Add readout and state check for pch_pfit.force_thru (Ville) - Miscellaneous display fixes and refactoring (Ville) - Display workaround fixes (Ville) - Enable audio even if ELD is bogus (Ville) - Fix use-after-free in reporting create.size (Chris) - Sideband fixes to avoid BYT hard lockups (Chris) - Workaround fixes and improvements (Chris) Maintainer shortcomings: - Failure to adequately describe and give credit for all changes (Jani) Signed-off-by: Dave Airlie <airlied@redhat.com> From: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/87sgt3n45z.fsf@intel.com
2 parents 88cd7a2 + c0a74c7 commit 14ee642

218 files changed

Lines changed: 11483 additions & 5022 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/gpu/drm-kms-helpers.rst‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ Panel Helper Reference
181181
.. kernel-doc:: drivers/gpu/drm/drm_panel_orientation_quirks.c
182182
:export:
183183

184+
HDCP Helper Functions Reference
185+
===============================
186+
187+
.. kernel-doc:: drivers/gpu/drm/drm_hdcp.c
188+
:export:
189+
184190
Display Port Helper Functions Reference
185191
=======================================
186192

‎drivers/gpu/drm/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ drm-y := drm_auth.o drm_cache.o \
1717
drm_plane.o drm_color_mgmt.o drm_print.o \
1818
drm_dumb_buffers.o drm_mode_config.o drm_vblank.o \
1919
drm_syncobj.o drm_lease.o drm_writeback.o drm_client.o \
20-
drm_atomic_uapi.o
20+
drm_atomic_uapi.o drm_hdcp.o
2121

2222
drm-$(CONFIG_DRM_LEGACY) += drm_legacy_misc.o drm_bufs.o drm_context.o drm_dma.o drm_scatter.o drm_lock.o
2323
drm-$(CONFIG_DRM_LIB_RANDOM) += lib/drm_random.o

‎drivers/gpu/drm/bridge/analogix/analogix_dp_core.c‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ EXPORT_SYMBOL_GPL(analogix_dp_psr_enabled);
115115

116116
int analogix_dp_enable_psr(struct analogix_dp_device *dp)
117117
{
118-
struct edp_vsc_psr psr_vsc;
118+
struct dp_sdp psr_vsc;
119119

120120
if (!dp->psr_enable)
121121
return 0;
@@ -127,16 +127,16 @@ int analogix_dp_enable_psr(struct analogix_dp_device *dp)
127127
psr_vsc.sdp_header.HB2 = 0x2;
128128
psr_vsc.sdp_header.HB3 = 0x8;
129129

130-
psr_vsc.DB0 = 0;
131-
psr_vsc.DB1 = EDP_VSC_PSR_STATE_ACTIVE | EDP_VSC_PSR_CRC_VALUES_VALID;
130+
psr_vsc.db[0] = 0;
131+
psr_vsc.db[1] = EDP_VSC_PSR_STATE_ACTIVE | EDP_VSC_PSR_CRC_VALUES_VALID;
132132

133133
return analogix_dp_send_psr_spd(dp, &psr_vsc, true);
134134
}
135135
EXPORT_SYMBOL_GPL(analogix_dp_enable_psr);
136136

137137
int analogix_dp_disable_psr(struct analogix_dp_device *dp)
138138
{
139-
struct edp_vsc_psr psr_vsc;
139+
struct dp_sdp psr_vsc;
140140
int ret;
141141

142142
if (!dp->psr_enable)
@@ -149,8 +149,8 @@ int analogix_dp_disable_psr(struct analogix_dp_device *dp)
149149
psr_vsc.sdp_header.HB2 = 0x2;
150150
psr_vsc.sdp_header.HB3 = 0x8;
151151

152-
psr_vsc.DB0 = 0;
153-
psr_vsc.DB1 = 0;
152+
psr_vsc.db[0] = 0;
153+
psr_vsc.db[1] = 0;
154154

155155
ret = drm_dp_dpcd_writeb(&dp->aux, DP_SET_POWER, DP_SET_POWER_D0);
156156
if (ret != 1) {

‎drivers/gpu/drm/bridge/analogix/analogix_dp_core.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void analogix_dp_enable_scrambling(struct analogix_dp_device *dp);
254254
void analogix_dp_disable_scrambling(struct analogix_dp_device *dp);
255255
void analogix_dp_enable_psr_crc(struct analogix_dp_device *dp);
256256
int analogix_dp_send_psr_spd(struct analogix_dp_device *dp,
257-
struct edp_vsc_psr *vsc, bool blocking);
257+
struct dp_sdp *vsc, bool blocking);
258258
ssize_t analogix_dp_transfer(struct analogix_dp_device *dp,
259259
struct drm_dp_aux_msg *msg);
260260

‎drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ static ssize_t analogix_dp_get_psr_status(struct analogix_dp_device *dp)
10411041
}
10421042

10431043
int analogix_dp_send_psr_spd(struct analogix_dp_device *dp,
1044-
struct edp_vsc_psr *vsc, bool blocking)
1044+
struct dp_sdp *vsc, bool blocking)
10451045
{
10461046
unsigned int val;
10471047
int ret;
@@ -1069,8 +1069,8 @@ int analogix_dp_send_psr_spd(struct analogix_dp_device *dp,
10691069
writel(0x5D, dp->reg_base + ANALOGIX_DP_SPD_PB3);
10701070

10711071
/* configure DB0 / DB1 values */
1072-
writel(vsc->DB0, dp->reg_base + ANALOGIX_DP_VSC_SHADOW_DB0);
1073-
writel(vsc->DB1, dp->reg_base + ANALOGIX_DP_VSC_SHADOW_DB1);
1072+
writel(vsc->db[0], dp->reg_base + ANALOGIX_DP_VSC_SHADOW_DB0);
1073+
writel(vsc->db[1], dp->reg_base + ANALOGIX_DP_VSC_SHADOW_DB1);
10741074

10751075
/* set reuse spd inforframe */
10761076
val = readl(dp->reg_base + ANALOGIX_DP_VIDEO_CTL_3);
@@ -1092,8 +1092,8 @@ int analogix_dp_send_psr_spd(struct analogix_dp_device *dp,
10921092

10931093
ret = readx_poll_timeout(analogix_dp_get_psr_status, dp, psr_status,
10941094
psr_status >= 0 &&
1095-
((vsc->DB1 && psr_status == DP_PSR_SINK_ACTIVE_RFB) ||
1096-
(!vsc->DB1 && psr_status == DP_PSR_SINK_INACTIVE)), 1500,
1095+
((vsc->db[1] && psr_status == DP_PSR_SINK_ACTIVE_RFB) ||
1096+
(!vsc->db[1] && psr_status == DP_PSR_SINK_INACTIVE)), 1500,
10971097
DP_TIMEOUT_PSR_LOOP_MS * 1000);
10981098
if (ret) {
10991099
dev_warn(dp->dev, "Failed to apply PSR %d\n", ret);

‎drivers/gpu/drm/drm_atomic_uapi.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector,
741741
state->content_type = val;
742742
} else if (property == connector->scaling_mode_property) {
743743
state->scaling_mode = val;
744-
} else if (property == connector->content_protection_property) {
744+
} else if (property == config->content_protection_property) {
745745
if (val == DRM_MODE_CONTENT_PROTECTION_ENABLED) {
746746
DRM_DEBUG_KMS("only drivers can set CP Enabled\n");
747747
return -EINVAL;
@@ -826,7 +826,7 @@ drm_atomic_connector_get_property(struct drm_connector *connector,
826826
} else if (property == config->hdr_output_metadata_property) {
827827
*val = state->hdr_output_metadata ?
828828
state->hdr_output_metadata->base.id : 0;
829-
} else if (property == connector->content_protection_property) {
829+
} else if (property == config->content_protection_property) {
830830
*val = state->content_protection;
831831
} else if (property == config->writeback_fb_id_property) {
832832
/* Writeback framebuffer is one-shot, write and forget */

‎drivers/gpu/drm/drm_connector.c‎

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -823,13 +823,6 @@ static const struct drm_prop_enum_list drm_tv_subconnector_enum_list[] = {
823823
DRM_ENUM_NAME_FN(drm_get_tv_subconnector_name,
824824
drm_tv_subconnector_enum_list)
825825

826-
static struct drm_prop_enum_list drm_cp_enum_list[] = {
827-
{ DRM_MODE_CONTENT_PROTECTION_UNDESIRED, "Undesired" },
828-
{ DRM_MODE_CONTENT_PROTECTION_DESIRED, "Desired" },
829-
{ DRM_MODE_CONTENT_PROTECTION_ENABLED, "Enabled" },
830-
};
831-
DRM_ENUM_NAME_FN(drm_get_content_protection_name, drm_cp_enum_list)
832-
833826
static const struct drm_prop_enum_list hdmi_colorspaces[] = {
834827
/* For Default case, driver will set the colorspace */
835828
{ DRM_MODE_COLORIMETRY_DEFAULT, "Default" },
@@ -1515,42 +1508,6 @@ int drm_connector_attach_scaling_mode_property(struct drm_connector *connector,
15151508
}
15161509
EXPORT_SYMBOL(drm_connector_attach_scaling_mode_property);
15171510

1518-
/**
1519-
* drm_connector_attach_content_protection_property - attach content protection
1520-
* property
1521-
*
1522-
* @connector: connector to attach CP property on.
1523-
*
1524-
* This is used to add support for content protection on select connectors.
1525-
* Content Protection is intentionally vague to allow for different underlying
1526-
* technologies, however it is most implemented by HDCP.
1527-
*
1528-
* The content protection will be set to &drm_connector_state.content_protection
1529-
*
1530-
* Returns:
1531-
* Zero on success, negative errno on failure.
1532-
*/
1533-
int drm_connector_attach_content_protection_property(
1534-
struct drm_connector *connector)
1535-
{
1536-
struct drm_device *dev = connector->dev;
1537-
struct drm_property *prop;
1538-
1539-
prop = drm_property_create_enum(dev, 0, "Content Protection",
1540-
drm_cp_enum_list,
1541-
ARRAY_SIZE(drm_cp_enum_list));
1542-
if (!prop)
1543-
return -ENOMEM;
1544-
1545-
drm_object_attach_property(&connector->base, prop,
1546-
DRM_MODE_CONTENT_PROTECTION_UNDESIRED);
1547-
1548-
connector->content_protection_property = prop;
1549-
1550-
return 0;
1551-
}
1552-
EXPORT_SYMBOL(drm_connector_attach_content_protection_property);
1553-
15541511
/**
15551512
* drm_mode_create_aspect_ratio_property - create aspect ratio property
15561513
* @dev: DRM device

0 commit comments

Comments
 (0)