Phoronix Forums  

Go Back   Phoronix Forums > Linux Graphics / X.Org Drivers > Open-Source AMD/ATI Linux

Open-Source AMD/ATI Linux Technical support and discussion of the open-source Radeon, RadeonHD, and Avivo drivers.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-21-2007, 11:27 AM
danielpugh danielpugh is offline
Junior Member
 
Join Date: May 2007
Posts: 18
Default radeonhd driver

Hi there,

i have been trying the radeonhd driver, but get stuck. It used to say my card was EXPERIMENTAL and not work. That message has gone away, but is replaced by the error below.

do you know who to send the Xorg.0.log to?

--edit--
is it here:radeonhd@opensuse.org
--edit--

thanks,

Dan

(WW) RADEONHD(0): Unknown card detected: 0x7149:0x17AA:0x2005.
Your card might not work or might not work optimally.
To rectify this, please contact MAILINGLIST.
Include your X log and the full name of the device.

Last edited by danielpugh; 09-21-2007 at 11:30 AM.
Reply With Quote
  #2  
Old 09-21-2007, 05:15 PM
koolmanoncampus koolmanoncampus is offline
Phoronix Member
 
Join Date: Dec 2006
Posts: 82
Default

Hi,

That error is saying your card is not supported by the driver(yet). Each card has a different mapping of outputs and have to be explicitly stated in the driver.

To help developers complete this task, there is a utility called conntest.

In the source tree (utils/conntest) is a utility. Read the readme and follow the instructions there.

(yes the mailing list is as you entered it)

Brian
Reply With Quote
  #3  
Old 09-22-2007, 11:02 AM
danielpugh danielpugh is offline
Junior Member
 
Join Date: May 2007
Posts: 18
Default ok

will do,
thanks
Reply With Quote
  #4  
Old 09-22-2007, 11:09 AM
danielpugh danielpugh is offline
Junior Member
 
Join Date: May 2007
Posts: 18
Default conntest

make failes:
[root@dan-laptop conntest]# make
gcc -Wall -o rhd_conntest rhd_conntest.c -lpci -lz
rhd_conntest.c:37:21: error: pci/pci.h: No such file or directory
rhd_conntest.c: In function ‘device_locate’:
...

pci.h pci/pci.h seems to be available:
[root@dan-laptop conntest]# locate pci.h
/usr/include/linux/pci.h
/usr/include/sys/pci.h
/usr/lib/syslinux/com32/include/sys/pci.h

tried copying pci.h to local directory - im sure its just a case of specifying library location, but nothing in the README..
Reply With Quote
  #5  
Old 09-22-2007, 01:51 PM
thoemy thoemy is offline
Junior Member
 
Join Date: Sep 2007
Posts: 41
Default

If you are using Debian or some derived distribution installing pciutils-dev should solve the problem. I don't know about other distributions.
Reply With Quote
  #6  
Old 09-23-2007, 12:06 PM
danielpugh danielpugh is offline
Junior Member
 
Join Date: May 2007
Posts: 18
Default already installed

thanks for response,

its pciutils-devel on fedora8 (rawhide) as well, but thats already installed. below are the complete compile errors in case its something else...

[root@dan-laptop conntest]# make
gcc -Wall -o rhd_conntest rhd_conntest.c -lpci -lz
rhd_conntest.c:37:21: error: pci/pci.h: No such file or directory
rhd_conntest.c: In function ‘device_locate’:
rhd_conntest.c:258: error: dereferencing pointer to incomplete type
rhd_conntest.c:259: error: dereferencing pointer to incomplete type
rhd_conntest.c:259: error: dereferencing pointer to incomplete type
rhd_conntest.c:260: error: dereferencing pointer to incomplete type
rhd_conntest.c: In function ‘device_match’:
rhd_conntest.c:274: error: dereferencing pointer to incomplete type
rhd_conntest.c:275: error: dereferencing pointer to incomplete type
rhd_conntest.c: In function ‘map_bar’:
rhd_conntest.c:289: error: dereferencing pointer to incomplete type
rhd_conntest.c:289: error: dereferencing pointer to incomplete type
rhd_conntest.c:292: error: dereferencing pointer to incomplete type
rhd_conntest.c:293: error: dereferencing pointer to incomplete type
rhd_conntest.c: In function ‘main’:
rhd_conntest.c:884: warning: implicit declaration of function ‘pci_alloc’
rhd_conntest.c:884: warning: assignment makes pointer from integer without a cast
rhd_conntest.c:885: warning: implicit declaration of function ‘pci_init’
rhd_conntest.c:886: warning: implicit declaration of function ‘pci_scan_bus’
rhd_conntest.c:911: error: dereferencing pointer to incomplete type
rhd_conntest.c:921: error: dereferencing pointer to incomplete type
rhd_conntest.c:921: error: dereferencing pointer to incomplete type
rhd_conntest.c:931: error: dereferencing pointer to incomplete type
rhd_conntest.c:931: warning: implicit declaration of function ‘pci_read_word’
rhd_conntest.c:931: error: ‘PCI_SUBSYSTEM_VENDOR_ID’ undeclared (first use in this function)
rhd_conntest.c:931: error: (Each undeclared identifier is reported only once
rhd_conntest.c:931: error: for each function it appears in.)
rhd_conntest.c:932: error: ‘PCI_SUBSYSTEM_ID’ undeclared (first use in this function)
rhd_conntest.c:933: error: dereferencing pointer to incomplete type
rhd_conntest.c:933: error: dereferencing pointer to incomplete type
rhd_conntest.c:933: error: dereferencing pointer to incomplete type
make: *** [rhd_conntest] Error 1
[root@dan-laptop conntest]#
Reply With Quote
  #7  
Old 09-23-2007, 12:20 PM
thoemy thoemy is offline
Junior Member
 
Join Date: Sep 2007
Posts: 41
Default

$ dpkg -L pciutils-dev
/.
/usr
/usr/include
/usr/include/pci
/usr/include/pci/pci.h
/usr/include/pci/header.h
/usr/include/pci/config.h
/usr/include/pci/types.h
/usr/lib
/usr/lib/libpci.a
/usr/share
/usr/share/doc
/usr/share/doc/pciutils-dev

your locate doesn't show the file, are you sure it's correctly installed?
Reply With Quote
  #8  
Old 09-23-2007, 12:55 PM
danielpugh danielpugh is offline
Junior Member
 
Join Date: May 2007
Posts: 18
Default i agree

[root@dan-laptop conntest]# locate pci.h
/usr/include/linux/pci.h
/usr/include/sys/pci.h

adjusted compile comand to:
gcc -Wall -o rhd_conntest rhd_conntest.c -lpci -lz -I/usr/include/sys/


it now finds it, but compile still fails.

ill attach logs
Reply With Quote
  #9  
Old 09-23-2007, 12:58 PM
danielpugh danielpugh is offline
Junior Member
 
Join Date: May 2007
Posts: 18
Default cant see how to attach so...

[root@dan-laptop conntest]# make
gcc -Wall -o rhd_conntest rhd_conntest.c -lpci -lz -I/usr/include/sys/
In file included from /usr/include/sys/fcntl.h:1,
from /usr/include/sys/fcntl.h:1,
from /usr/include/sys/fcntl.h:1,
--repeated many times--
from /usr/include/sys/fcntl.h:1,
from rhd_conntest.c:33:
/usr/include/sys/fcntl.h:1:19: error: #include nested too deeply
In file included from /usr/include/sys/errno.h:1,
from /usr/include/sys/errno.h:1,
--repeated many times--
from /usr/include/sys/errno.h:1,
from rhd_conntest.c:34:
/usr/include/sys/errno.h:1:19: error: #include nested too deeply
rhd_conntest.c:37:21: error: pci/pci.h: No such file or directory
In file included from /usr/include/sys/unistd.h:1,
from /usr/include/sys/unistd.h:1,
--repeated many times--
from /usr/include/sys/unistd.h:1,
from rhd_conntest.c:38:
/usr/include/sys/unistd.h:1:20: error: #include nested too deeply
rhd_conntest.c: In function ‘device_locate’:
rhd_conntest.c:258: error: dereferencing pointer to incomplete type
rhd_conntest.c:259: error: dereferencing pointer to incomplete type
rhd_conntest.c:259: error: dereferencing pointer to incomplete type
rhd_conntest.c:260: error: dereferencing pointer to incomplete type
rhd_conntest.c: In function ‘device_match’:
rhd_conntest.c:274: error: dereferencing pointer to incomplete type
rhd_conntest.c:275: error: dereferencing pointer to incomplete type
rhd_conntest.c: In function ‘map_bar’:
rhd_conntest.c:289: error: dereferencing pointer to incomplete type
rhd_conntest.c:289: error: dereferencing pointer to incomplete type
rhd_conntest.c:292: error: dereferencing pointer to incomplete type
rhd_conntest.c:293: error: dereferencing pointer to incomplete type
rhd_conntest.c: In function ‘DACALoadDetect’:
rhd_conntest.c:383: warning: implicit declaration of function ‘usleep’
rhd_conntest.c: In function ‘main’:
rhd_conntest.c:884: warning: implicit declaration of function ‘pci_alloc’
rhd_conntest.c:884: warning: assignment makes pointer from integer without a cast
rhd_conntest.c:885: warning: implicit declaration of function ‘pci_init’
rhd_conntest.c:886: warning: implicit declaration of function ‘pci_scan_bus’
rhd_conntest.c:911: error: dereferencing pointer to incomplete type
rhd_conntest.c:921: error: dereferencing pointer to incomplete type
rhd_conntest.c:921: error: dereferencing pointer to incomplete type
rhd_conntest.c:931: error: dereferencing pointer to incomplete type
rhd_conntest.c:931: warning: implicit declaration of function ‘pci_read_word’
rhd_conntest.c:931: error: ‘PCI_SUBSYSTEM_VENDOR_ID’ undeclared (first use in this function)
rhd_conntest.c:931: error: (Each undeclared identifier is reported only once
rhd_conntest.c:931: error: for each function it appears in.)
rhd_conntest.c:932: error: ‘PCI_SUBSYSTEM_ID’ undeclared (first use in this function)
rhd_conntest.c:933: error: dereferencing pointer to incomplete type
rhd_conntest.c:933: error: dereferencing pointer to incomplete type
rhd_conntest.c:933: error: dereferencing pointer to incomplete type
rhd_conntest.c:936: warning: implicit declaration of function ‘open’
rhd_conntest.c:936: error: ‘O_RDWR’ undeclared (first use in this function)
rhd_conntest.c:938: error: ‘errno’ undeclared (first use in this function)
make: *** [rhd_conntest] Error 1
Reply With Quote
  #10  
Old 09-23-2007, 03:26 PM
thoemy thoemy is offline
Junior Member
 
Join Date: Sep 2007
Posts: 41
Default

I think you shouldn't add -I/usr/include/sys/ because it will break things. If you take a look at the file in /usr/include/sys/errno.h you will notice that it will include errno.h, which should then be /usr/include/errno.h. But because you added -I/usr/include/sys/ it will find /usr/include/sys/errno.h first and end up in an infinite loop.

And make seems to find a pci.h but not the right one. Did you change the source code? And remove the pci.h file in your local directory.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:57 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2009 by Phoronix Media.