From: alexdeucher@gmail.com Subject: [PATCH] drm/radeon/kms: Add DDC quirk for ASUS RS400 Date: Tue, 3 Jan 2012 11:19:40 -0500 Message-ID: <1325607580-23062-1-git-send-email-alexdeucher@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-qw0-f42.google.com (mail-qw0-f42.google.com [209.85.216.42]) by gabe.freedesktop.org (Postfix) with ESMTP id E65F29F6DC for ; Tue, 3 Jan 2012 08:19:48 -0800 (PST) Received: by qabj40 with SMTP id j40so9042707qab.15 for ; Tue, 03 Jan 2012 08:19:48 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: airlied@gmail.com, dri-devel@lists.freedesktop.org Cc: Alex Deucher , stable@vger.kernel.org List-Id: dri-devel@lists.freedesktop.org From: Alex Deucher vbios is missing a ddc entry for the DVI-D port. Reported by ponyofdeath on IRC. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_combios.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c index 81fc100..b9ad45e 100644 --- a/drivers/gpu/drm/radeon/radeon_combios.c +++ b/drivers/gpu/drm/radeon/radeon_combios.c @@ -2152,6 +2152,7 @@ static bool radeon_apply_legacy_quirks(struct drm_device *dev, struct radeon_i2c_bus_rec *ddc_i2c, struct radeon_hpd *hpd) { + struct radeon_device *rdev = dev->dev_private; /* Certain IBM chipset RN50s have a BIOS reporting two VGAs, one with VGA DDC and one with CRT2 DDC. - kill the CRT2 DDC one */ @@ -2170,6 +2171,14 @@ static bool radeon_apply_legacy_quirks(struct drm_device *dev, return false; } + /* ASUS RS400 system with missing DVI port DDC */ + if (dev->pdev->device == 0x5A41 && + dev->pdev->subsystem_vendor == 0x1043 && + dev->pdev->subsystem_device == 0x81C8) { + if (*legacy_connector == CONNECTOR_DVI_D_LEGACY) + *ddc_i2c = combios_setup_i2c_bus(rdev, DDC_MONID, 0, 0); + } + return true; } -- 1.7.3.4