History

Merge tag 'drm-intel-fixes-2015-05-08' of git://anongit.freedesktop.org/drm-intel into drm-fixes

misc i915 fixes. * tag 'drm-intel-fixes-2015-05-08' of git://anongit.freedesktop.org/drm-intel: drm/i915: Drop PIPE-A quirk for 945GSE HP Mini drm/i915: Sink rate read should be saved in deca-kHz drm/i915/dp: there is no audio on port A drm/i915: Add missing MacBook Pro models with dual channel LVDS drm/i915: Assume dual channel LVDS if pixel clock necessitates it

Dave Airlie committed 11 years ago

Commit 332545b2 parents fdb68e0 736a69c3 files · +29 −9Browse files

Unified · Split

3 files
  1. drivers/gpu/drm/i915/intel_display.c +0 −3
  2. drivers/gpu/drm/i915/intel_dp.c +5 −4
  3. drivers/gpu/drm/i915/intel_lvds.c +24 −2
drivers/gpu/drm/i915/intel_display.c+0−3
@@ -13635,9 +13635,6 @@ static const struct intel_dmi_quirk intel_dmi_quirks[] = { · 13634 unmodified lines
1363513635 };
1363613636
1363713637 static struct intel_quirk intel_quirks[] = {
13638− /* HP Mini needs pipe A force quirk (LP: #322104) */
13639− { 0x27ae, 0x103c, 0x361a, quirk_pipea_force },
13640−
1364113638 /* Toshiba Protege R-205, S-209 needs pipe A force quirk */
1364213639 { 0x2592, 0x1179, 0x0001, quirk_pipea_force },
1364313640
drivers/gpu/drm/i915/intel_dp.c+5−4
@@ -1348,7 +1348,7 @@ intel_dp_compute_config(struct intel_encoder *encoder, · 1347 unmodified lines
13481348
13491349 pipe_config->has_dp_encoder = true;
13501350 pipe_config->has_drrs = false;
1351− pipe_config->has_audio = intel_dp->has_audio;
1351+ pipe_config->has_audio = intel_dp->has_audio && port != PORT_A;
13521352
13531353 if (is_edp(intel_dp) && intel_connector->panel.fixed_mode) {
13541354 intel_fixed_panel_mode(intel_connector->panel.fixed_mode,
@@ -2211,8 +2211,8 @@ static void intel_dp_get_config(struct intel_encoder *encoder, · 856 unmodified lines
22112211 int dotclock;
22122212
22132213 tmp = I915_READ(intel_dp->output_reg);
2214− if (tmp & DP_AUDIO_OUTPUT_ENABLE)
2215− pipe_config->has_audio = true;
2214+
2215+ pipe_config->has_audio = tmp & DP_AUDIO_OUTPUT_ENABLE && port != PORT_A;
22162216
22172217 if ((port == PORT_A) || !HAS_PCH_CPT(dev)) {
22182218 if (tmp & DP_SYNC_HS_HIGH)
@@ -3812,7 +3812,8 @@ intel_dp_get_dpcd(struct intel_dp *intel_dp) · 1593 unmodified lines
38123812 if (val == 0)
38133813 break;
38143814
3815− intel_dp->sink_rates[i] = val * 200;
3815+ /* Value read is in kHz while drm clock is saved in deca-kHz */
3816+ intel_dp->sink_rates[i] = (val * 200) / 10;
38163817 }
38173818 intel_dp->num_sink_rates = i;
38183819 }
drivers/gpu/drm/i915/intel_lvds.c+24−2
@@ -813,12 +813,28 @@ static int intel_dual_link_lvds_callback(const struct dmi_system_id *id) · 812 unmodified lines
813813 static const struct dmi_system_id intel_dual_link_lvds[] = {
814814 {
815815 .callback = intel_dual_link_lvds_callback,
816− .ident = "Apple MacBook Pro (Core i5/i7 Series)",
816+ .ident = "Apple MacBook Pro 15\" (2010)",
817+ .matches = {
818+ DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
819+ DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro6,2"),
820+ },
821+ },
822+ {
823+ .callback = intel_dual_link_lvds_callback,
824+ .ident = "Apple MacBook Pro 15\" (2011)",
817825 .matches = {
818826 DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
819827 DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro8,2"),
820828 },
821829 },
830+ {
831+ .callback = intel_dual_link_lvds_callback,
832+ .ident = "Apple MacBook Pro 15\" (2012)",
833+ .matches = {
834+ DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
835+ DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro9,1"),
836+ },
837+ },
822838 { } /* terminating entry */
823839 };
824840
@@ -848,6 +864,11 @@ static bool compute_is_dual_link_lvds(struct intel_lvds_encoder *lvds_encoder) · 23 unmodified lines
848864 if (i915.lvds_channel_mode > 0)
849865 return i915.lvds_channel_mode == 2;
850866
867+ /* single channel LVDS is limited to 112 MHz */
868+ if (lvds_encoder->attached_connector->base.panel.fixed_mode->clock
869+ > 112999)
870+ return true;
871+
851872 if (dmi_check_system(intel_dual_link_lvds))
852873 return true;
853874
@@ -1111,6 +1132,8 @@ void intel_lvds_init(struct drm_device *dev) · 257 unmodified lines
11111132 out:
11121133 mutex_unlock(&dev->mode_config.mutex);
11131134
1135+ intel_panel_init(&intel_connector->panel, fixed_mode, downclock_mode);
1136+
11141137 lvds_encoder->is_dual_link = compute_is_dual_link_lvds(lvds_encoder);
11151138 DRM_DEBUG_KMS("detected %s-link lvds configuration\n",
11161139 lvds_encoder->is_dual_link ? "dual" : "single");
@@ -1125,7 +1148,6 @@ out: · 8 unmodified lines
11251148 }
11261149 drm_connector_register(connector);
11271150
1128− intel_panel_init(&intel_connector->panel, fixed_mode, downclock_mode);
11291151 intel_panel_setup_backlight(connector, INVALID_PIPE);
11301152
11311153 return;

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