diff options
author | Dave Airlie <airlied@redhat.com> | 2017-05-30 01:25:28 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-05-30 01:25:28 -0400 |
commit | a82256bc026722800d1fdeca5521f1ba487bc2ef (patch) | |
tree | 21573b1572fe8e5f0e064ef5f97438da2c409da9 /drivers/gpu/drm/i915/intel_dp_mst.c | |
parent | 1afc45445d15493f3aaadbe2b549b37eaffcc407 (diff) | |
parent | cd9f4688a3297c0df0eecc2adaae5812d3e5b997 (diff) |
Merge tag 'drm-intel-next-2017-05-29' of git://anongit.freedesktop.org/git/drm-intel into drm-next
More stuff for 4.13:
- skl+ wm fixes from Mahesh Kumar
- some refactor and tests for i915_sw_fence (Chris)
- tune execlist/scheduler code (Chris)
- g4x,g33 gpu reset improvements (Chris, Mika)
- guc code cleanup (Michal Wajdeczko, MichaĆ Winiarski)
- dp aux backlight improvements (Puthikorn Voravootivat)
- buffer based guc/host communication (Michal Wajdeczko)
* tag 'drm-intel-next-2017-05-29' of git://anongit.freedesktop.org/git/drm-intel: (253 commits)
drm/i915: Update DRIVER_DATE to 20170529
drm/i915: Keep the forcewake timer alive for 1ms past the most recent use
drm/i915/guc: capture GuC logs if FW fails to load
drm/i915/guc: Introduce buffer based cmd transport
drm/i915/guc: Disable send function on fini
drm: Add definition for eDP backlight frequency
drm/i915: Drop AUX backlight enable check for backlight control
drm/i915: Consolidate #ifdef CONFIG_INTEL_IOMMU
drm/i915: Only GGTT vma may be pinned and prevent shrinking
drm/i915: Serialize GTT/Aperture accesses on BXT
drm/i915: Convert i915_gem_object_ops->flags values to use BIT()
drm/i915/selftests: Silence compiler warning in igt_ctx_exec
drm/i915/guc: Skip port assign on first iteration of GuC dequeue
drm/i915: Remove misleading comment in request_alloc
drm/i915/g33: Improve reset reliability
Revert "drm/i915: Restore lost "Initialized i915" welcome message"
drm/i915/huc: Update GLK HuC version
drm/i915: Check for allocation failure
drm/i915/guc: Remove action status and statistics from debugfs
drm/i915/g4x: Improve gpu reset reliability
...
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp_mst.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp_mst.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c b/drivers/gpu/drm/i915/intel_dp_mst.c index 1dee9933005f..3715386e4272 100644 --- a/drivers/gpu/drm/i915/intel_dp_mst.c +++ b/drivers/gpu/drm/i915/intel_dp_mst.c | |||
@@ -56,7 +56,8 @@ static bool intel_dp_mst_compute_config(struct intel_encoder *encoder, | |||
56 | * for MST we always configure max link bw - the spec doesn't | 56 | * for MST we always configure max link bw - the spec doesn't |
57 | * seem to suggest we should do otherwise. | 57 | * seem to suggest we should do otherwise. |
58 | */ | 58 | */ |
59 | lane_count = drm_dp_max_lane_count(intel_dp->dpcd); | 59 | lane_count = intel_dp_max_lane_count(intel_dp); |
60 | |||
60 | pipe_config->lane_count = lane_count; | 61 | pipe_config->lane_count = lane_count; |
61 | 62 | ||
62 | pipe_config->pipe_bpp = bpp; | 63 | pipe_config->pipe_bpp = bpp; |
@@ -329,14 +330,6 @@ intel_dp_mst_detect(struct drm_connector *connector, bool force) | |||
329 | return drm_dp_mst_detect_port(connector, &intel_dp->mst_mgr, intel_connector->port); | 330 | return drm_dp_mst_detect_port(connector, &intel_dp->mst_mgr, intel_connector->port); |
330 | } | 331 | } |
331 | 332 | ||
332 | static int | ||
333 | intel_dp_mst_set_property(struct drm_connector *connector, | ||
334 | struct drm_property *property, | ||
335 | uint64_t val) | ||
336 | { | ||
337 | return 0; | ||
338 | } | ||
339 | |||
340 | static void | 333 | static void |
341 | intel_dp_mst_connector_destroy(struct drm_connector *connector) | 334 | intel_dp_mst_connector_destroy(struct drm_connector *connector) |
342 | { | 335 | { |
@@ -353,8 +346,7 @@ static const struct drm_connector_funcs intel_dp_mst_connector_funcs = { | |||
353 | .dpms = drm_atomic_helper_connector_dpms, | 346 | .dpms = drm_atomic_helper_connector_dpms, |
354 | .detect = intel_dp_mst_detect, | 347 | .detect = intel_dp_mst_detect, |
355 | .fill_modes = drm_helper_probe_single_connector_modes, | 348 | .fill_modes = drm_helper_probe_single_connector_modes, |
356 | .set_property = intel_dp_mst_set_property, | 349 | .set_property = drm_atomic_helper_connector_set_property, |
357 | .atomic_get_property = intel_connector_atomic_get_property, | ||
358 | .late_register = intel_connector_register, | 350 | .late_register = intel_connector_register, |
359 | .early_unregister = intel_connector_unregister, | 351 | .early_unregister = intel_connector_unregister, |
360 | .destroy = intel_dp_mst_connector_destroy, | 352 | .destroy = intel_dp_mst_connector_destroy, |
@@ -378,7 +370,7 @@ intel_dp_mst_mode_valid(struct drm_connector *connector, | |||
378 | int max_rate, mode_rate, max_lanes, max_link_clock; | 370 | int max_rate, mode_rate, max_lanes, max_link_clock; |
379 | 371 | ||
380 | max_link_clock = intel_dp_max_link_rate(intel_dp); | 372 | max_link_clock = intel_dp_max_link_rate(intel_dp); |
381 | max_lanes = drm_dp_max_lane_count(intel_dp->dpcd); | 373 | max_lanes = intel_dp_max_lane_count(intel_dp); |
382 | 374 | ||
383 | max_rate = intel_dp_max_data_rate(max_link_clock, max_lanes); | 375 | max_rate = intel_dp_max_data_rate(max_link_clock, max_lanes); |
384 | mode_rate = intel_dp_link_required(mode->clock, bpp); | 376 | mode_rate = intel_dp_link_required(mode->clock, bpp); |
@@ -495,7 +487,6 @@ static struct drm_connector *intel_dp_add_mst_connector(struct drm_dp_mst_topolo | |||
495 | drm_mode_connector_attach_encoder(&intel_connector->base, | 487 | drm_mode_connector_attach_encoder(&intel_connector->base, |
496 | &intel_dp->mst_encoders[i]->base.base); | 488 | &intel_dp->mst_encoders[i]->base.base); |
497 | } | 489 | } |
498 | intel_dp_add_properties(intel_dp, connector); | ||
499 | 490 | ||
500 | drm_object_attach_property(&connector->base, dev->mode_config.path_property, 0); | 491 | drm_object_attach_property(&connector->base, dev->mode_config.path_property, 0); |
501 | drm_object_attach_property(&connector->base, dev->mode_config.tile_property, 0); | 492 | drm_object_attach_property(&connector->base, dev->mode_config.tile_property, 0); |