Skip to contentSkip to conversation

blank screen with radeondrmfb on iMac G5 (ALS)

regression In review Joachim Henke 3 participants 11 messages May 21, 2011 – Jun 14, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

I found a regression in Linux 2.6.37.2 - I know this report comes quite late, but I had no time to investigate until now. And I found that this still persists up to 2.6.39 :(

When I upgraded from 2.6.37 to 2.6.37.3, after reboot my machine came up with a blank/black screen (backlight on). It's an iMac G5 (Ambient Light Sensor) with a Radeon 9600 (RV350). After Xorg had started, the screen remained blank.

There were only a few Radeon specific changes between these two versions, so that I could quickly identify the cause. It's commit ce9eb2c297f918be46e36dd86b7e88cabdc3e22df (9fad321ac6bedd96f449754a1a25289ea1789a49 upstream). After reverting this with a simple patch, it works properly again:

drivers/gpu/drm/radeon/radeon_combios.c renamed from drivers/gpu/drm/radeon/radeon_combios.c.orig +0 -5
@@ -1515,11 +1515,6 @@
 			   (rdev->pdev->subsystem_device == 0x4a48)) {
 			/* Mac X800 */
 			rdev->mode_info.connector_table = CT_MAC_X800;
-		} else if ((rdev->pdev->device == 0x4150) &&
-			   (rdev->pdev->subsystem_vendor == 0x1002) &&
-			   (rdev->pdev->subsystem_device == 0x4150)) {
-			/* Mac G5 9600 */
-			rdev->mode_info.connector_table = CT_MAC_G5_9600;
 		} else
 #endif /* CONFIG_PPC_PMAC */
 #ifdef CONFIG_PPC64

This is a diff from the dmesg [without my patch] -> [with my patch]:

[drm] ring test succeeded in 0 usecs
[drm] radeon: ib pool ready.
[drm] ib test succeeded in 0 usecs
-[drm] Connector Table: 12 (mac g5 9600)
-[drm] No valid Ext TMDS info found in BIOS
-[drm] No TV DAC info found in BIOS
+[drm] Connector Table: 1 (generic)
[drm] No TMDS info found in BIOS
+[drm] No TV DAC info found in BIOS
[drm] Radeon Display Connectors
[drm] Connector 0:

 [drm]   DVI-I
 [drm]   HPD1
 [drm]   DDC: 0x64 0x64 0x64 0x64 0x64 0x64 0x64 0x64
 [drm]   Encoders:
-[drm]     DFP2: INTERNAL_DVO1
+[drm]     DFP1: INTERNAL_TMDS1
 [drm]     CRT2: INTERNAL_DAC2
 [drm] Connector 1:
-[drm]   DVI-I
-[drm]   HPD2
+[drm]   VGA
 [drm]   DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
 [drm]   Encoders:

-[drm] DFP1: INTERNAL_TMDS1
[drm] CRT1: INTERNAL_DAC1
[drm] Connector 2:
[drm] S-video

On which kind of machines was the original commit tested/supposed to work? Do you see a possibility to fix this in a proper way upstream?

Thanks and regards,
Joachim Henke

#1 lore raw
Quoted 65 lines · Joachim Henke

Hello,

I found a regression in Linux 2.6.37.2 - I know this report comes quite late, but I had no time to investigate until now. And I found that this still persists up to 2.6.39 :(

When I upgraded from 2.6.37 to 2.6.37.3, after reboot my machine came up with a blank/black screen (backlight on). It's an iMac G5 (Ambient Light Sensor) with a Radeon 9600 (RV350). After Xorg had started, the screen remained blank.

There were only a few Radeon specific changes between these two versions, so that I could quickly identify the cause. It's commit ce9eb2c297f918be46e36dd86b7e88cabdc3e22df (9fad321ac6bedd96f449754a1a25289ea1789a49 upstream). After reverting this with a simple patch, it works properly again:

drivers/gpu/drm/radeon/radeon_combios.c renamed from drivers/gpu/drm/radeon/radeon_combios.c.orig +0 -5
@@ -1515,11 +1515,6 @@
                           (rdev->pdev->subsystem_device == 0x4a48)) {
                        /* Mac X800 */
                        rdev->mode_info.connector_table = CT_MAC_X800;
-               } else if ((rdev->pdev->device == 0x4150) &&
-                          (rdev->pdev->subsystem_vendor == 0x1002) &&
-                          (rdev->pdev->subsystem_device == 0x4150)) {
-                       /* Mac G5 9600 */
-                       rdev->mode_info.connector_table = CT_MAC_G5_9600;
                } else
  #endif /* CONFIG_PPC_PMAC */
  #ifdef CONFIG_PPC64

This is a diff from the dmesg [without my patch] -> [with my patch]:

 [drm] ring test succeeded in 0 usecs
 [drm] radeon: ib pool ready.
 [drm] ib test succeeded in 0 usecs
-[drm] Connector Table: 12 (mac g5 9600) -[drm] No valid Ext TMDS info found in BIOS -[drm] No TV DAC info found in BIOS
+[drm] Connector Table: 1 (generic)
 [drm] No TMDS info found in BIOS
+[drm] No TV DAC info found in BIOS
 [drm] Radeon Display Connectors
 [drm] Connector 0:
 [drm]   DVI-I
 [drm]   HPD1
 [drm]   DDC: 0x64 0x64 0x64 0x64 0x64 0x64 0x64 0x64 [drm]   Encoders:
-[drm]     DFP2: INTERNAL_DVO1
+[drm]     DFP1: INTERNAL_TMDS1
 [drm]     CRT2: INTERNAL_DAC2
 [drm] Connector 1:
-[drm]   DVI-I
-[drm]   HPD2
+[drm]   VGA
 [drm]   DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60 [drm]   Encoders:
-[drm]     DFP1: INTERNAL_TMDS1
 [drm]     CRT1: INTERNAL_DAC1
 [drm] Connector 2:
 [drm]   S-video

Quoted 2 lines

On which kind of machines was the original commit tested/supposed to work? Do you see a possibility to fix this in a proper way upstream?

It was a 9600 from a G5, I don't recall which one. Thank apple for making multiple systems all wired up differently with the same pci ids. I suppose to fix it properly we'll need some way of identifying the specific machine. Are there specific ids for each g5 for of_machine_is_compatible()?

Alex

Quoted 4 lines

Thanks and regards,
Joachim Henke

#2 lore raw
Quoted 67 lines · Alex Deucher
Quoted 65 lines · Joachim Henke

Hello,

I found a regression in Linux 2.6.37.2 - I know this report comes quite late, but I had no time to investigate until now. And I found that this still persists up to 2.6.39 :(

When I upgraded from 2.6.37 to 2.6.37.3, after reboot my machine came up with a blank/black screen (backlight on). It's an iMac G5 (Ambient Light Sensor) with a Radeon 9600 (RV350). After Xorg had started, the screen remained blank.

There were only a few Radeon specific changes between these two versions, so that I could quickly identify the cause. It's commit ce9eb2c297f918be46e36dd86b7e88cabdc3e22df (9fad321ac6bedd96f449754a1a25289ea1789a49 upstream). After reverting this with a simple patch, it works properly again:

drivers/gpu/drm/radeon/radeon_combios.c renamed from drivers/gpu/drm/radeon/radeon_combios.c.orig +0 -5
@@ -1515,11 +1515,6 @@
                          (rdev->pdev->subsystem_device == 0x4a48)) {
                       /* Mac X800 */
                       rdev->mode_info.connector_table = CT_MAC_X800;
-               } else if ((rdev->pdev->device == 0x4150) &&
-                          (rdev->pdev->subsystem_vendor == 0x1002) &&
-                          (rdev->pdev->subsystem_device == 0x4150)) {
-                       /* Mac G5 9600 */
-                       rdev->mode_info.connector_table = CT_MAC_G5_9600;
               } else
 #endif /* CONFIG_PPC_PMAC */
 #ifdef CONFIG_PPC64

This is a diff from the dmesg [without my patch] -> [with my patch]:

[drm] ring test succeeded in 0 usecs
[drm] radeon: ib pool ready.
[drm] ib test succeeded in 0 usecs
-[drm] Connector Table: 12 (mac g5 9600)
-[drm] No valid Ext TMDS info found in BIOS
-[drm] No TV DAC info found in BIOS
+[drm] Connector Table: 1 (generic)
[drm] No TMDS info found in BIOS
+[drm] No TV DAC info found in BIOS
[drm] Radeon Display Connectors
[drm] Connector 0:

 [drm]   DVI-I
 [drm]   HPD1
 [drm]   DDC: 0x64 0x64 0x64 0x64 0x64 0x64 0x64 0x64
 [drm]   Encoders:
-[drm]     DFP2: INTERNAL_DVO1
+[drm]     DFP1: INTERNAL_TMDS1
 [drm]     CRT2: INTERNAL_DAC2
 [drm] Connector 1:
-[drm]   DVI-I
-[drm]   HPD2
+[drm]   VGA
 [drm]   DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
 [drm]   Encoders:

-[drm] DFP1: INTERNAL_TMDS1
[drm] CRT1: INTERNAL_DAC1
[drm] Connector 2:
[drm] S-video

Quoted 4 lines
Quoted 2 lines

On which kind of machines was the original commit tested/supposed to work? Do you see a possibility to fix this in a proper way upstream?

It was a 9600 from a G5, I don't recall which one.

Probably a tower.

Quoted 4 lines

Thank apple for making multiple systems all wired up differently with the same pci ids. I suppose to fix it properly we'll need some way of identifying the specific machine. Are there specific ids for each g5 for of_machine_is_compatible()?

Yeah, they should have distinct identifiers, visible on the /proc/cpuinfo model/machine/motherboard lines.

Signature · 6 lines
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw
In reply to Alex Deucher
Quoted 76 lines · Alex Deucher
Quoted 65 lines · Joachim Henke

Hello,

I found a regression in Linux 2.6.37.2 - I know this report comes quite late, but I had no time to investigate until now. And I found that this still persists up to 2.6.39 :(

When I upgraded from 2.6.37 to 2.6.37.3, after reboot my machine came up with a blank/black screen (backlight on). It's an iMac G5 (Ambient Light Sensor) with a Radeon 9600 (RV350). After Xorg had started, the screen remained blank.

There were only a few Radeon specific changes between these two versions, so that I could quickly identify the cause. It's commit ce9eb2c297f918be46e36dd86b7e88cabdc3e22df (9fad321ac6bedd96f449754a1a25289ea1789a49 upstream). After reverting this with a simple patch, it works properly again:

drivers/gpu/drm/radeon/radeon_combios.c renamed from drivers/gpu/drm/radeon/radeon_combios.c.orig +0 -5
@@ -1515,11 +1515,6 @@
                           (rdev->pdev->subsystem_device == 0x4a48)) {
                        /* Mac X800 */
                        rdev->mode_info.connector_table = CT_MAC_X800;
-               } else if ((rdev->pdev->device == 0x4150)&&
-                          (rdev->pdev->subsystem_vendor == 0x1002)&&
-                          (rdev->pdev->subsystem_device == 0x4150)) {
-                       /* Mac G5 9600 */
-                       rdev->mode_info.connector_table = CT_MAC_G5_9600;
                } else
  #endif /* CONFIG_PPC_PMAC */
  #ifdef CONFIG_PPC64

This is a diff from the dmesg [without my patch] -> [with my patch]:

[drm] ring test succeeded in 0 usecs
[drm] radeon: ib pool ready.
[drm] ib test succeeded in 0 usecs
-[drm] Connector Table: 12 (mac g5 9600)
-[drm] No valid Ext TMDS info found in BIOS
-[drm] No TV DAC info found in BIOS
+[drm] Connector Table: 1 (generic)
[drm] No TMDS info found in BIOS
+[drm] No TV DAC info found in BIOS
[drm] Radeon Display Connectors
[drm] Connector 0:

  [drm]   DVI-I
  [drm]   HPD1
  [drm]   DDC: 0x64 0x64 0x64 0x64 0x64 0x64 0x64 0x64
  [drm]   Encoders:

-[drm] DFP2: INTERNAL_DVO1
+[drm] DFP1: INTERNAL_TMDS1
[drm] CRT2: INTERNAL_DAC2
[drm] Connector 1:

-[drm]   DVI-I
-[drm]   HPD2
+[drm]   VGA

[drm] DDC: 0x60 0x60 0x60 0x60 0x60 0x60 0x60 0x60
[drm] Encoders:
-[drm] DFP1: INTERNAL_TMDS1
[drm] CRT1: INTERNAL_DAC1
[drm] Connector 2:
[drm] S-video

Quoted 2 lines

On which kind of machines was the original commit tested/supposed to work? Do you see a possibility to fix this in a proper way upstream?

It was a 9600 from a G5, I don't recall which one. Thank apple for making multiple systems all wired up differently with the same pci ids. I suppose to fix it properly we'll need some way of identifying the specific machine. Are there specific ids for each g5 for of_machine_is_compatible()?

Quoted 2 lines

Alex

Thanks for your fast reply! FYI, this is what /proc/cpuinfo tells:

platform : PowerMac
model : PowerMac8,2
machine : PowerMac8,2
motherboard : PowerMac8,2 MacRISC4 Power Macintosh

But instead of excluding this model, it's probably better to only include the model the patch was originally written for - in case there are other systems which got broken ;)

Quoted 3 lines
Quoted 3 lines

Thanks and regards,
Joachim Henke

#4 lore raw

PATCH 1/1 drm/radeon/kms: fix mac g5 quirk

Apple uses the same subsystem pci ids for lots of hardware much of which is wired up differently. In this case, the G5 imac and the G5 tower.

Only apply the quirk configuration to G5 towers.

---
 drivers/gpu/drm/radeon/radeon_combios.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_combios.c +2 -3
index 5b991f7..19b10cf 100644
@@ -1548,9 +1548,8 @@ bool radeon_get_legacy_connector_info_from_table(struct drm_device *dev)
 			   (rdev->pdev->subsystem_device == 0x4a48)) {
 			/* Mac X800 */
 			rdev->mode_info.connector_table = CT_MAC_X800;
-		} else if ((rdev->pdev->device == 0x4150) &&
-			   (rdev->pdev->subsystem_vendor == 0x1002) &&
-			   (rdev->pdev->subsystem_device == 0x4150)) {
+		} else if (of_machine_is_compatible("PowerMac7,2") ||
+			   of_machine_is_compatible("PowerMac7,3")) {
 			/* Mac G5 9600 */
 			rdev->mode_info.connector_table = CT_MAC_G5_9600;
 		} else
Signature · 6 lines
1.7.1.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

Re: [PATCH] drm/radeon/kms: fix mac g5 quirk

Quoted 20 lines · Alex Deucher

Apple uses the same subsystem pci ids for lots of hardware much of which is wired up differently. In this case, the G5 imac and the G5 tower.

Only apply the quirk configuration to G5 towers.

---
 drivers/gpu/drm/radeon/radeon_combios.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_combios.c +0 -0
index 5b991f7..19b10cf 100644
@@ -1548,9 +1548,8 @@ bool radeon_get_legacy_connector_info_from_table(struct drm_device *dev)
 			   (rdev->pdev->subsystem_device == 0x4a48)) {

drivers/gpu/drm/radeon/radeon_combios.c bool radeon_get_legacy_connector_info_from_table(struct drm_device *dev) · line 1555

Quoted 10 lines
drivers/gpu/drm/radeon/radeon_combios.c +2 -3
 			/* Mac X800 */
 			rdev->mode_info.connector_table = CT_MAC_X800;
-		} else if ((rdev->pdev->device == 0x4150) &&
-			   (rdev->pdev->subsystem_vendor == 0x1002) &&
-			   (rdev->pdev->subsystem_device == 0x4150)) {
+		} else if (of_machine_is_compatible("PowerMac7,2") ||
+			   of_machine_is_compatible("PowerMac7,3")) {
 			/* Mac G5 9600 */
 			rdev->mode_info.connector_table = CT_MAC_G5_9600;
 		} else

I think this still needs to check the PCI IDs as well, or it would break different cards in these machines?

Signature · 6 lines
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

Re: [PATCH] drm/radeon/kms: fix mac g5 quirk

2011/6/14 Michel Dänzer <[email protected]>:

Quoted 26 lines · Alex Deucher
Quoted 25 lines

Apple uses the same subsystem pci ids for lots of hardware much of which is wired up differently.  In this case, the G5 imac and the G5 tower.

Only apply the quirk configuration to G5 towers.

---
 drivers/gpu/drm/radeon/radeon_combios.c |    5 ++---

 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_combios.c +0 -3
index 5b991f7..19b10cf 100644
@@ -1548,9 +1548,8 @@ bool radeon_get_legacy_connector_info_from_table(struct drm_device *dev)
                          (rdev->pdev->subsystem_device == 0x4a48)) {
                       /* Mac X800 */
                       rdev->mode_info.connector_table = CT_MAC_X800;
-             } else if ((rdev->pdev->device == 0x4150) &&
-                        (rdev->pdev->subsystem_vendor == 0x1002) &&
-                        (rdev->pdev->subsystem_device == 0x4150)) {
Quoted 8 lines

drivers/gpu/drm/radeon/radeon_combios.c bool radeon_get_legacy_connector_info_from_table(struct drm_device *dev) · line 1555

Quoted 5 lines
drivers/gpu/drm/radeon/radeon_combios.c +2 -0
+             } else if (of_machine_is_compatible("PowerMac7,2") ||
+                        of_machine_is_compatible("PowerMac7,3")) {
                       /* Mac G5 9600 */
                       rdev->mode_info.connector_table = CT_MAC_G5_9600;
               } else

I think this still needs to check the PCI IDs as well, or it would break different cards in these machines?

I don't know which (if any) other cards apple offered for these machines. I suppose it wouldn't hurt, but OTOH, if this card is all that was offered, it's probably not that big a deal as it would be unlikely that another card with a mac vbios would show up in one. Cards with an x86 vbios won't hit this path.

Alex

#7 lore raw

Re: [PATCH] drm/radeon/kms: fix mac g5 quirk

Quoted 36 lines · Alex Deucher

2011/6/14 Michel Dänzer <[email protected]>:

Quoted 26 lines · Alex Deucher
Quoted 25 lines

Apple uses the same subsystem pci ids for lots of hardware much of which is wired up differently. In this case, the G5 imac and the G5 tower.

Only apply the quirk configuration to G5 towers.

---
 drivers/gpu/drm/radeon/radeon_combios.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_combios.c +0 -3
index 5b991f7..19b10cf 100644
@@ -1548,9 +1548,8 @@ bool radeon_get_legacy_connector_info_from_table(struct drm_device *dev)
                         (rdev->pdev->subsystem_device == 0x4a48)) {
                      /* Mac X800 */
                      rdev->mode_info.connector_table = CT_MAC_X800;
-             } else if ((rdev->pdev->device == 0x4150) &&
-                        (rdev->pdev->subsystem_vendor == 0x1002) &&
-                        (rdev->pdev->subsystem_device == 0x4150)) {
Quoted 8 lines

drivers/gpu/drm/radeon/radeon_combios.c bool radeon_get_legacy_connector_info_from_table(struct drm_device *dev) · line 1555

Quoted 5 lines
drivers/gpu/drm/radeon/radeon_combios.c +2 -0
+             } else if (of_machine_is_compatible("PowerMac7,2") ||
+                        of_machine_is_compatible("PowerMac7,3")) {
                      /* Mac G5 9600 */
                      rdev->mode_info.connector_table = CT_MAC_G5_9600;
              } else

I think this still needs to check the PCI IDs as well, or it would break different cards in these machines?

Quoted 5 lines

I don't know which (if any) other cards apple offered for these machines. I suppose it wouldn't hurt, but OTOH, if this card is all that was offered, it's probably not that big a deal as it would be unlikely that another card with a mac vbios would show up in one. Cards with an x86 vbios won't hit this path.

Ah right, I didn't think of that, and it looks like the X800 is already covered as well. Still, as you say, it probably wouldn't hurt. :)

Signature · 6 lines
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

PATCH 1/1 drm/radeon/kms: be more pendatic about the g5 quirk

I don't think Apple offered any other cards for this mac, so I doubt this will be an issue, but just to be on the safe side, check the pci ids as well.

Cc Joachim Henke <[email protected]>
Cc Michel Dänzer <[email protected]>
---
 drivers/gpu/drm/radeon/radeon_combios.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_combios.c +6 -3
index 797c8bc..e459467 100644
@@ -1553,9 +1553,12 @@ bool radeon_get_legacy_connector_info_from_table(struct drm_device *dev)
 			   (rdev->pdev->subsystem_device == 0x4a48)) {
 			/* Mac X800 */
 			rdev->mode_info.connector_table = CT_MAC_X800;
-		} else if (of_machine_is_compatible("PowerMac7,2") ||
-			   of_machine_is_compatible("PowerMac7,3")) {
-			/* Mac G5 9600 */
+		} else if ((of_machine_is_compatible("PowerMac7,2") ||
+			    of_machine_is_compatible("PowerMac7,3")) &&
+			   (rdev->pdev->device == 0x4150) &&
+			   (rdev->pdev->subsystem_vendor == 0x1002) &&
+			   (rdev->pdev->subsystem_device == 0x4150)) {
+			/* Mac G5 tower 9600 */
 			rdev->mode_info.connector_table = CT_MAC_G5_9600;
 		} else
 #endif /* CONFIG_PPC_PMAC */
Signature · 6 lines
1.7.1.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#9 lore raw

Re: [PATCH] drm/radeon/kms: be more pendatic about the g5 quirk

Quoted 21 lines · Alex Deucher

I don't think Apple offered any other cards for this mac, so I doubt this will be an issue, but just to be on the safe side, check the pci ids as well.

Cc Joachim Henke <[email protected]>
Cc Michel Dänzer <[email protected]>
---
 drivers/gpu/drm/radeon/radeon_combios.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_combios.c +0 -2
index 797c8bc..e459467 100644
@@ -1553,9 +1553,12 @@ bool radeon_get_legacy_connector_info_from_table(struct drm_device *dev)
 			   (rdev->pdev->subsystem_device == 0x4a48)) {
 			/* Mac X800 */
 			rdev->mode_info.connector_table = CT_MAC_X800;
-		} else if (of_machine_is_compatible("PowerMac7,2") ||
-			   of_machine_is_compatible("PowerMac7,3")) {

drivers/gpu/drm/radeon/radeon_combios.c bool radeon_get_legacy_connector_info_from_table(struct drm_device *dev) · line 1564

Quoted 10 lines
drivers/gpu/drm/radeon/radeon_combios.c +6 -1
-			/* Mac G5 9600 */
+		} else if ((of_machine_is_compatible("PowerMac7,2") ||
+			    of_machine_is_compatible("PowerMac7,3")) &&
+			   (rdev->pdev->device == 0x4150) &&
+			   (rdev->pdev->subsystem_vendor == 0x1002) &&
+			   (rdev->pdev->subsystem_device == 0x4150)) {
+			/* Mac G5 tower 9600 */
 			rdev->mode_info.connector_table = CT_MAC_G5_9600;
 		} else
 #endif /* CONFIG_PPC_PMAC */

Thanks!

Signature · 6 lines
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#10 lore raw

PATCH 1/1 drm/radeon/kms: be more pedantic about the g5 quirk (v2)

I don't think Apple offered any other cards for this mac, so I doubt this will be an issue, but just to be on the safe side, check the pci ids as well.

v2: fix spelling in commit message

---
 drivers/gpu/drm/radeon/radeon_combios.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_combios.c +6 -3
index 797c8bc..e459467 100644
@@ -1553,9 +1553,12 @@ bool radeon_get_legacy_connector_info_from_table(struct drm_device *dev)
 			   (rdev->pdev->subsystem_device == 0x4a48)) {
 			/* Mac X800 */
 			rdev->mode_info.connector_table = CT_MAC_X800;
-		} else if (of_machine_is_compatible("PowerMac7,2") ||
-			   of_machine_is_compatible("PowerMac7,3")) {
-			/* Mac G5 9600 */
+		} else if ((of_machine_is_compatible("PowerMac7,2") ||
+			    of_machine_is_compatible("PowerMac7,3")) &&
+			   (rdev->pdev->device == 0x4150) &&
+			   (rdev->pdev->subsystem_vendor == 0x1002) &&
+			   (rdev->pdev->subsystem_device == 0x4150)) {
+			/* Mac G5 tower 9600 */
 			rdev->mode_info.connector_table = CT_MAC_G5_9600;
 		} else
 #endif /* CONFIG_PPC_PMAC */
Signature · 6 lines
1.7.1.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel