2010/12/30 屋国遥 <[email protected]>:
> 2010/12/31 Alex Deucher <[email protected]>:
>> On Thu, Dec 30, 2010 at 10:25 AM, 屋国遥 <[email protected]> wrote:
>>> Hello, all.
>>>
>>> I am trying to make dual-head environment on Mac Pro with Ubuntu
>>> 10.10.  My Mac Pro has the Radeon HD 2600 XT graphic card, so I decided
>>> to use the radeon driver.
>>>
>>> Now, I connect two monitors (the same SAMSUNG monitors) and boot the
>>> system and X, one display works well, but the other is not recognized.
>>> In dmesg, I found out the following error message.
>>>
>>> I googled the message and found
>>> <http://www.mail-archive.com/[email protected]/msg16768.html>
>>> and <https://bugs.freedesktop.org/show_bug.cgi?id=29255>.  Referring
>>> to these posts, I upgraded the kernel to 2.6.36
>>> (http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.36-maverick/) and
>>> also graphic drivers (https://launchpad.net/~xorg-edgers/+archive/ppa).
>>>
>>> However, the same error is displayed.
>>>
>>> I am sorry to say that I have no idea how to use Alex's patch to
>>> `radeon_atombios.c' because of my poor knowledge of Linux.
>>> Is not this change included in the recent kernel or drivers?
>>>
>>>
>>> Because dual-head environment works successfully on Mac, I suspect the
>>> monitor or graphic card has no problem.
>>>
>>
>> You will need a custom patch for your system.  That patch referenced
>> in the above thread only applies to evergreen chips.  I suspect apple
>> forgot to specify the ddc assignment for one of the heads in their
>> vbios and their driver most likely use hardcoded values.  Please send
>> me a copy of the vbios from your system, and I'll send you a patch to
>> fix it.  Also please attach the pci device and subsystem ids for your
>> card (lspci -vnn).  Also, what connectors does your card actually
>> have?  Two DVI-I?  Two DVI-I and one TV-out?  It looks like some of
>> the encoder mapping might be wrong on your system too.  I can help get
>> that fixed up as well.
>>
>> To get the vbios:
>> (as root)
>> (use lspci to get the bus id)
>> cd /sys/bus/pci/devices/<pci bus id>
>> echo 1 > rom
>> cat rom > /tmp/vbios.rom
>> echo 0 > rom
>>
>> Alex
>
> Hi, Alex.
> Thank you for your fast reply.
>

The attached patch should fix it.  I think Apple supports TV-out via a
DVI to TV dongle, so you should see a DIN connector with this patch,
but both DVI's should work correctly.

Alex

> I understood the situation.
>
> My card has just two DVI-I connectors, no TV-out.
> The attached file is vbios.rom.
> lspci -vnn result is the following (only the section of VGA controller).
>
> 02:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV630
> [Radeon HD 2600XT] [1002:9588] (prog-if 00 [VGA controller])
>        Subsystem: Apple Computer Inc. Device [106b:00a6]
>        Physical Slot: 1
>        Flags: bus master, fast devsel, latency 0, IRQ 56
>        Memory at 80000000 (64-bit, prefetchable) [size=256M]
>        Memory at 90a20000 (64-bit, non-prefetchable) [size=64K]
>        I/O ports at 2000 [size=256]
>        Expansion ROM at 90a00000 [disabled] [size=128K]
>        Capabilities: <access denied>
>        Kernel driver in use: radeon
>        Kernel modules: radeon
>
>
> --
> Haruka YAGNI
> [email protected]
>
From 81e9b910525670a80e7586c04d35b95e149fccf5 Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Mon, 3 Jan 2011 11:16:11 -0500
Subject: [PATCH] drm/radeon/kms: add quirk for Mac Radeon HD 2600 card
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Reported-by: 屋国遥 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
---
 drivers/gpu/drm/radeon/radeon_atombios.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c
index 45bc750..55a0846 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -388,6 +388,17 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev,
 			*line_mux = 0x90;
 	}
 
+	/* mac rv630 */
+	if ((dev->pdev->device == 0x9588) &&
+	    (dev->pdev->subsystem_vendor == 0x106b) &&
+	    (dev->pdev->subsystem_device == 0x00a6)) {
+		if ((supported_device == ATOM_DEVICE_TV1_SUPPORT) &&
+		    (*connector_type == DRM_MODE_CONNECTOR_DVII)) {
+			*connector_type = DRM_MODE_CONNECTOR_9PinDIN;
+			*line_mux = CONNECTOR_7PIN_DIN_ENUM_ID1;
+		}
+	}
+
 	/* ASUS HD 3600 XT board lists the DVI port as HDMI */
 	if ((dev->pdev->device == 0x9598) &&
 	    (dev->pdev->subsystem_vendor == 0x1043) &&
-- 
1.7.1.1

_______________________________________________
xorg-driver-ati mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-driver-ati

Reply via email to