LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need to confirm if this AMDAPU is supported in radeon driver (https://www.linuxquestions.org/questions/linux-software-2/need-to-confirm-if-this-amdapu-is-supported-in-radeon-driver-4175598022/)

inafking 01-22-2017 04:14 PM

Need to confirm if this AMDAPU is supported in radeon driver
 
Hi, Sorry if my first post is a question, but this problem is driving me nuts. I need to confirm if Radeon HD 7480D is supported by the "radeon" driver. The codename of the card (which is an AMDAPU BTW) is Scrapper.

These are the Xorg.0.log and xorg.conf in question.

Xorg.0.log

xorg.conf

The offending log is this:
Code:

    [  2208.216] (EE) Screen 0 deleted because of no matching config section.
    [  2208.216] (II) UnloadModule: "radeon"

As you may have noticed, I'm trying to use 15Khz modelines to output video on a CRT TV via Component Cable and a Scart to YUV converted (which I plugged though a VGA2SCART adapter).

I didn't have a problem with a Mobility Radeon HD 5430 and could output all those resolutions in my TV successfully. It's just that IDK which driver should I used or why isn't supported since it has passed almost 5 years since the release of those AMDAPU's. I've also tried with the "amdgpu" driver to no avail.

I hope you can shed me a ray of light about what's the cause of the problem and what can be done to solve it.
Thanks in advance!

Greets!

ardvark71 01-23-2017 05:11 PM

Quote:

Originally Posted by inafking (Post 5658743)
Hi, Sorry if my first post is a question, but this problem is driving me nuts. I need to confirm if Radeon HD 7480D is supported by the "radeon" driver. The codename of the card (which is an AMDAPU BTW) is Scrapper.

Hello and welcome to the forum :)

While I can't provide 100% confirmation your chip is supported, from what I see here and here, I'm guessing that it is. In both site's description of supported chips, notice the "-" between...

Quote:

HD7450-HD7670
To me, this indicates that everything between and including the two chips mentioned is supported. However, to be sure, you might want to contact the x.org foundation here, under "Reporting problems, asking questions and getting help." :)

Also, I'm including (I'm guessing) your other thread here, in case anyone wants to review it. ;)

Regards...

inafking 01-24-2017 09:14 AM

Quote:

Originally Posted by ardvark71 (Post 5659207)
Hello and welcome to the forum :)

While I can't provide 100% confirmation your chip is supported, from what I see here and here, I'm guessing that it is. In both site's description of supported chips, notice the "-" between...

Thanks a lot, but I poked around in the radeon and amggpu driver source code and they seem to keep a list of "Device ID's" they currently support and unfortunately mine wasn't there.

The Device Id can be get by the following command:
Code:

lspci -nn|grep VGA
It's a 4 digit hex number. Can't remember the exact c file in the source code in which they have that list but I guess I'll have to wait for them to include those special AMDGPU's/APU's

Also unfortunately, the "DynamicClocks" option for the device in xorg.conf seems to be only for the radeon driver and not the amdgpu one, so I guess I won't be able to use AMD APU's to get 15Khz resolutions. But looking on the bright side there are inexpensive radeon cards like X1650, X1550 and so on that are more than enough to use them with sdlmame and old console emulators.

Thanks anyways. Greets!
Have a nice day!

ardvark71 01-24-2017 01:49 PM

Quote:

Originally Posted by inafking (Post 5659472)
Thanks anyways.

You're welcome, hope you get it squared away. Perhaps someone else on the forum who has more knowledge of this will chime in. :)

Regards...

ondoho 01-24-2017 02:58 PM

if you still want to pursue this, please post the output of
Code:

lspci -k|grep -iEA5 'vga|3d'

inafking 01-24-2017 08:58 PM

Sure:
Code:

casaubuntu@casaubuntu:~$ lspci -k|grep -iEA5 'vga|3d'
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Trinity [Radeon HD 7480D]
        Subsystem: Elitegroup Computer Systems Trinity [Radeon HD 7480D]
        Kernel modules: radeon
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Trinity HDMI Audio Controller
        Subsystem: Elitegroup Computer Systems Trinity HDMI Audio Controller
        Kernel driver in use: snd_hda_intel

And also this that shows the device ID's
Code:

casaubuntu@casaubuntu:~$ lspci -nnk|grep -A3 VGA
00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Trinity [Radeon HD 7480D] [1002:9993]
        Subsystem: Elitegroup Computer Systems Trinity [Radeon HD 7480D] [1019:7c90]
        Kernel modules: radeon
00:01.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Trinity HDMI Audio Controller [1002:9902]

Does this mean the OS is assigning the radeon driver? Please enlighten me which is the next step to find out why it didn't like my 15KHz modelines. As a matter of fact, there was a 64Khz mode (1280x1024) and it didn't even honored adding it to the custom modelines.

It seems the Device ID list applies only for amdgpu (amdgpu_drv.c). Couldn't find any device id list in the radeon driver.

Greets! (too late and too tired to keep posting and reading. See ya tomorrow!)

ondoho 01-25-2017 01:27 PM

i never mess with xorg.conf, so i cannot answer that question.
i think Xorg should recognize almost everything; maybe i'm just spoiled because i never used sufficiently obscure hardware.

tbh, i just wanted to make sure i got the proper device names before i start searching.
but unfortuantely all my searches lead quickly to the proprietary amd driver, so not helpful since you're asking specifically about radeon ( = open source).

inafking 01-28-2017 04:52 PM

I think I solved it, but my cards are not as capable as I thought
 
I enabled the 15Khz modelines in the AMDAPU and the Radeon X1550 by adding this to /etc/rc.local (Ubuntu 16.04, must be root)

Code:

#!/bin/sh
modprobe -r -v radeon drm
modprobe -v drm debug=1
modprobe -v radeon modeset=1

Then I enabled rc.local by typing (as root)
Code:

systemctl enable rc.local.service
Then reboot and all the custom modes are "available", but some of them are not viewable:
  • In AMDAPU HD 7480D interlaced modes can't be watched on a CRT TV. It stays without signal or in the best case with garbled picture
  • In an Radeon X1550 you can view interlaced modes flawlessly, but progressive modes with low clock are refused to be shown with xrandr -s <resolution>

It seems AMDAPU Gfx cards as X.... cards can't be used to do what I want: Spit out 15Khz progressive and interlaced modes on a CRT TV at the same time. Can't have the best of two worlds.

I know for right that cards in the HD2xxx, HD3xxx, HD4xxx, HD5xxx, HD6xxx and maybe HD 7xxx are well suitable to what I'm trying to do. At least I only spent $45.50 in two cards (the other one was a Radeon X1650). The AMDAPU is a different story because I thought I could output 15Khz modelines in the dual Windows XP x64 and Ubuntu PC but I couldn't at the moment.

Thanks for everybody for your support!

PS: The modelines used and the configuration are in the first post.

Shadow_7 01-28-2017 05:11 PM

I have an older APU system sporting the Radeon HD 7310 that works just fine. As long as you don't mix proprietary and open drivers. As long as it's not hot off the presses < 6 months, the open drivers should be fine.

$ sudo apt-get install mesa-utils mesa-vdpau-drivers libgl1-mesa-glx freeglut3 xserver-xorg-video-radeon

Seems to grab most of what I need to game (debian jessie). Make sure the user is in the video group or performance might suck. And verify that 3D acceleration is setup with glxinfo.

$ glxinfo | grep -i direct
direct rendering: Yes

You shouldn't need to mess with xorg.conf type stuff. On most modern distros doing so is actually counter productive.

gradinaruvasile 01-29-2017 09:32 AM

7000 series AMD IGPs are actually based on 6000 architectureand they are supported by the radeon kernel and r600g user space driver. They should be fully supported. I had a 7000 series IGP inside the A8-5500 APU and now have a 8570D which is still 6000 based, both work perfectly well.

seasons 01-29-2017 12:35 PM

Code:

Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-31-generic root=UUID=5218cef3-c8db-4a90-b762-a832e7fe1aa0 ro nomodeset quiet splash vt.handoff=7
Get an updated Xorg log. The original log you posted shows you booted with 'nomodeset' option, which prevented the radeon module from loading. Subsequent lspci output you gave shows the module loaded.

The radeon module should support your GPU. It is a "Northern Islands" chip based on Terascale/VLIW architecture. The amdgpu module will not support it because amdgpu only supports cards based on "Graphics Core Next" (GCN 1.0) architecture or later.

Quote:

But looking on the bright side there are inexpensive radeon cards like X1650, X1550
I'm not sure why anyone would want those cards. If you're looking for an older, inexpensive card to use with Linux, look at RadeonHD 4350/4550. At least they will give you OpenGL 3.3 and video decode support.

EDIT: Also curious why the kernel you're using is 4.4.0-31, unless you're using a LiveUSB. You need to update the system for critical/security updates if you actually installed it.

inafking 01-29-2017 03:52 PM

Quote:

Originally Posted by seasons (Post 5661898)
Code:

Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-31-generic root=UUID=5218cef3-c8db-4a90-b762-a832e7fe1aa0 ro nomodeset quiet splash vt.handoff=7
Get an updated Xorg log. The original log you posted shows you booted with 'nomodeset' option, which prevented the radeon module from loading. Subsequent lspci output you gave shows the module loaded.

The radeon module should support your GPU. It is a "Northern Islands" chip based on Terascale/VLIW architecture. The amdgpu module will not support it because amdgpu only supports cards based on "Graphics Core Next" (GCN 1.0) architecture or later.


I'm not sure why anyone would want those cards. If you're looking for an older, inexpensive card to use with Linux, look at RadeonHD 4350/4550. At least they will give you OpenGL 3.3 and video decode support.

EDIT: Also curious why the kernel you're using is 4.4.0-31, unless you're using a LiveUSB. You need to update the system for critical/security updates if you actually installed it.

It's not a Live USB. And as I've said, I made it work by the config made here but coudn't enable all the resolutions I needed. In some I could use only progressive 15Khz modelines and in other only interlaced 15Khz modes with some progressive modes over 384 pixels wide.

And I'll buy an Radeon HD 4830 tomorrow to make more tests. Guess every Radeon XNNNN (X300, X1550 and so on) cards have that limitation (caused by enforcing higher pixel clocks lower limits).

Shadow_7 01-29-2017 04:50 PM

Did you check /var/log/Xorg.0.log for available modes? Or the output of xrandr?

inafking 01-29-2017 07:41 PM

Code:

xrandr -q
I think I checked the Xorg.0.log but can't remember if I saw the modes there, I'll have to confirm it on another day. Have to sleep soon to wake up very early to go to work. Maybe next weekend I'll have an answer.

Greets!

seasons 01-29-2017 10:57 PM

Quote:

Originally Posted by inafking (Post 5658743)
The codename of the card (which is an AMDAPU BTW) is Scrapper.

I've never heard that codename used for an AMD product. I've always heard these APU's called Trinity and the graphics part called Aruba.

If you're still in doubt, here is the exact code line where the PCI ID (1002:9993) of your GPU is recognized by the radeon module:
https://github.com/torvalds/linux/bl..._pciids.h#L687
Support for it was added in kernel 3.4.x


All times are GMT -5. The time now is 10:01 PM.