Bug 13459 - radeonhd driver with non-ATI PCI vendor ID
Summary: radeonhd driver with non-ATI PCI vendor ID
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/radeonhd (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Luc Verhaegen
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-30 06:25 UTC by Yuri Ovcharenko
Modified: 2007-11-30 11:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Yuri Ovcharenko 2007-11-30 06:25:32 UTC
On my Samsung R24plusF000 laptop ATI Mobility Radeon X2300 has non-ATI PCI vendor ID. As a result X does not start with radeonhd driver. I see "No device found" in Xorg.log.

Video card presented in the system as:
Vendor ID: 0x0001
Device ID: 0x7188
Subsystem vendor ID: 0x144D
Subsystem device ID: 0xC515

Patch below resolves this problem for me, but it is ugly for PCI_VENDOR_ID_ATI replacement.

After recompiling with this patch applyed my display starts in 1280x800 resolution which is native for my panel.

diff -Naur old/src/rhd_driver.c new/src/rhd_driver.c
--- old/src/rhd_driver.c	2007-11-24 23:32:43.000000000 +0200
+++ new/src/rhd_driver.c	2007-11-29 22:02:14.000000000 +0200
@@ -361,7 +361,7 @@
 
     /* PCI BUS */
     if (xf86GetPciVideoInfo() ) {
-	numUsed = xf86MatchPciInstances(RHD_NAME, PCI_VENDOR_ATI,
+	numUsed = xf86MatchPciInstances(RHD_NAME, 0x0001,
 					RHDChipsets, RHDPCIchipsets,
 					devSections,numDevSections,
 					drv, &usedChips);
diff -Naur old/src/rhd_id.c new/src/rhd_id.c
--- old/src/rhd_id.c	2007-11-24 23:32:43.000000000 +0200
+++ new/src/rhd_id.c	2007-11-29 22:01:03.000000000 +0200
@@ -460,6 +460,7 @@
     /* 0x7186 : M64 : Mobility Radeon X1450 */
     /* 0x7187 : RV516 : Radeon X1300/X1550 */
     /* 0x7188 : M64 : Mobility Radeon X2300 */
+    { 0x7188, 0xC515, 0x144D, "Samsung R25plusF000 ATI Radeon X2300", RHD_CARD_FLAG_NONE, ID_CONNECTORINFO_EMPTY },
     /* 0x718A : M64 : Mobility Radeon X2300 */
     /* 0x718B : M62 : Mobility Radeon X1350 */
     /* 0x718C : M62 : Mobility Radeon X1350 */
Comment 1 Yuri Ovcharenko 2007-11-30 11:52:26 UTC
BIOS is buggy.
This realy help. Booting with pci=nommconf results in vendor ID = 0x1002 and I found additional device on PCI bus 08:00.0.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.