Skip to content

Commit 618563e

Browse files
committed
drm/i915: Add a dual link lvds quirk for MacBook Pro 8,2
When booting with EFI, Apple botched this one up. v2: Switch the quirk dmesg output to DRM_INFO. v3: Actually git add the new things ... Tested-by: Austin Lund <austin.lund@gmail.com> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=42842 Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent bc0daf4 commit 618563e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

drivers/gpu/drm/i915/intel_display.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* Eric Anholt <eric@anholt.net>
2525
*/
2626

27+
#include <linux/dmi.h>
2728
#include <linux/cpufreq.h>
2829
#include <linux/module.h>
2930
#include <linux/input.h>
@@ -418,6 +419,24 @@ static void vlv_init_dpio(struct drm_device *dev)
418419
POSTING_READ(DPIO_CTL);
419420
}
420421

422+
static int intel_dual_link_lvds_callback(const struct dmi_system_id *id)
423+
{
424+
DRM_INFO("Forcing lvds to dual link mode on %s\n", id->ident);
425+
return 1;
426+
}
427+
428+
static const struct dmi_system_id intel_dual_link_lvds[] = {
429+
{
430+
.callback = intel_dual_link_lvds_callback,
431+
.ident = "Apple MacBook Pro (Core i5/i7 Series)",
432+
.matches = {
433+
DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."),
434+
DMI_MATCH(DMI_PRODUCT_NAME, "MacBookPro8,2"),
435+
},
436+
},
437+
{ } /* terminating entry */
438+
};
439+
421440
static bool is_dual_link_lvds(struct drm_i915_private *dev_priv,
422441
unsigned int reg)
423442
{
@@ -427,6 +446,9 @@ static bool is_dual_link_lvds(struct drm_i915_private *dev_priv,
427446
if (i915_lvds_channel_mode > 0)
428447
return i915_lvds_channel_mode == 2;
429448

449+
if (dmi_check_system(intel_dual_link_lvds))
450+
return true;
451+
430452
if (dev_priv->lvds_val)
431453
val = dev_priv->lvds_val;
432454
else {

0 commit comments

Comments
 (0)