AMDGPU, radeon and ati drivers all fail


#1

So, I’m stuck with VESA because all the drivers that could possibly work with my GPU (Radeon R7 360 - Bonaire PRO - Sea Islands) fail when the Display Settings program tests them. I was unable to find forum threads/bug reports about such an issue, and I’m new enough to BSD that I wouldn’t know if the card is simply unsupported. I’d appreciate your help. :confused:


#2

Don’t feel bad about TrueOS not being able to probe, correctly detect and automatically install the video driver for your AMD/ATI GPU. Same thing happen to me in MSO$ 7&10 and couple of Linux distributions; neither one would know which or howto install high res. video driver for AMD FirePro M5950 /with 1 GB GDDR5 SDRAM inside my Dell-M4600 laptop.

With TrueOS, I had better luck. Somehow, the radeon glx driver was installed automatically, tho with a bit strange xorg.conf. I tried few experiments with xorg.conf by hand, but I couldn’t do any better than what’s automagically created with “xorg config” that works.

Before I the noob with more luck than brains can try to help you, or one of the real TrueOS/FreeBSD gurus on here, you must provide information about your OS and hardware with the following commands in CLI/terminal mode and dump the outputs here:

  1. Do “about

  2. Do “pkg info | grep amd

  3. Do “dmesg | grep radeon

  4. As sudo or su, Do “lspci | grep AMD

  5. Do “cat /etc/X11/xorg,conf

After you do all that, someone on here might be able to help you with your AMD/ATI-GPU issues.

Here’s some info about my system for ref:

~% about

===================
General information
===================

boot environment now (N) … 12.0-CURRENT-up-20170811_050920 NR 2017-08-11
       after restart (R) … 12.0-CURRENT-up-20170811_050920 NR 2017-08-11
boot loader …………………………………… BSD
            type ……………………… BIOS
CPU ………………………………………………………… Intel(R) Core(TM) i7-2860QM CPU @ 2.50GHz
    number of cores ……………… 8
host ……………………………………………………… rodak
memory ………………………………………………… 16384 MB available, 12528 MB free
OS git branch ……………………………………………………………………………………… trueos-stable
OS git revision ………………………………………………………………………………… ac2f0aa3b
OS kernel build time ………………………………………………………… Wed 2017 Jun 21 01:09:23 UTC
OS kernel identity …………………………………………… (uname -i) GENERIC
OS platform (architecture) ……………………… (uname -m) amd64
OS release level ………………………………………………… (uname -r) 12.0-CURRENT
OS version and patch level …… (freebsd-version) 12.0-CURRENT
TrueOS package set ………………… STABLE
TrueOS version …………………………… TrueOS-Desktop-201706210948
uptime ………………………………………………… 2 days, 12:31

More (TrueOS Desktop):

    desktop environment …… Lumina
    sound card driver ………… pcm1: <IDT 92HD90BXX (Analog 2.0+HP/2.0)> (play/rec) default
    wireless driver ……………… iwn0
    X11 drivers ………………………… ati_drv.so radeon_drv.so modesetting_drv.so scfb_drv.so vesa_drv.so 

Part of /etc/X11/xorg.conf

Section "Module"
        Load  "extmod"
        Load  "record"
        Load  "dbe"
        Load  "glx"
        Load  "dri"
        Load  "dri2"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
EndSection

Section "Device"
        Identifier      "Card0"
        BusID           "1:0:0"
EndSection

Edit:

~% glxinfo
name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4

#3

Don’t worry, I’m not giving up yet. Thanks for your response, these are the outputs I got from those commands:

about:

===================
General information
===================

boot environment now (N) … 12.0-CURRENT-up-20171126_225525 NR 2017-11-26
       after restart (R) … 12.0-CURRENT-up-20171126_225525 NR 2017-11-26
boot loader …………………………………… BSD
            type ……………………… EFI
CPU ………………………………………………………… Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
    number of cores ……………… 8
host ……………………………………………………… trueos-7826
memory ………………………………………………… 8192 MB available, 4894 MB free
OS git branch ……………………………………………………………………………………… trueos-master
OS git revision ………………………………………………………………………………… 67a4643eb
OS kernel build time ………………………………………………………… Wed 2017 Nov 8 18:09:27 UTC
OS kernel identity …………………………………………… (uname -i) GENERIC
OS platform (architecture) ……………………… (uname -m) amd64
OS release level ………………………………………………… (uname -r) 12.0-CURRENT
OS version and patch level …… (freebsd-version) 12.0-CURRENT
TrueOS package set ………………… UNSTABLE
TrueOS version …………………………… TrueOS-Desktop-201711140940
uptime ………………………………………………… 16 mins

More (TrueOS Desktop):

    desktop environment …… Lumina
    sound card driver ………… pcm6: <Realtek ALC887 (Rear Analog)> (play/rec) default
    wireless driver ……………… 
    X11 drivers ………………………… vesa_drv.so 

pkg info | grep amd:

FreeBSD-amd-12.0.s20171108182534 AMD Utilities
webcamd-4.12.0.1_1             Port of Linux USB webcam and DVB drivers into userspace
xf86-video-amdgpu-1.3.0_1      X.Org amdgpu display driver

dmesg | grep radeon:

(no output)

sudo lspci | grep AMD:

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81)
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Tobago HDMI Audio [Radeon R7 360 / R9 360 OEM]

xorg.conf:

# XFree86 configuration file for RoFreeSBIE

Section "ServerLayout"
        Identifier     "XFree86 Configured"
        Screen      0  "Screen0" 0 0
EndSection

Section "Files"
        ModulePath   "/usr/local/lib/modules"
        ModulePath   "/usr/local/lib/xorg/modules"
        FontPath     "/usr/local/share/fonts/cyrillic/"
        FontPath     "/usr/local/share/fonts/TrueType/"
        FontPath     "/usr/local/share/fonts/illinoy/"
        FontPath     "/usr/local/share/fonts/webfonts/"
        FontPath     "/usr/local/share/fonts/misc/"
        FontPath     "/usr/local/share/fonts/TTF/"
        FontPath     "/usr/local/share/fonts/Speedo/"
        FontPath     "/usr/local/share/fonts/Type1/"
        FontPath     "/usr/local/share/fonts/CID/"
        FontPath     "/usr/local/share/fonts/75dpi/"
        FontPath     "/usr/local/share/fonts/100dpi/"
        FontPath     "/usr/local/share/fonts/dejavu/"
        FontPath     "/usr/local/share/fonts/cyrillic/"
        FontPath     "/usr/local/share/fonts/hebrew/"
        FontPath     "/usr/local/share/fonts/vietnamese/"
        FontPath     "/usr/local/share/fonts/indic/"
        FontPath     "/usr/local/share/fonts/fonts-indic/"
        FontPath     "/usr/local/share/fonts/ae_fonts1/AAHS"
        FontPath     "/usr/local/share/fonts/ae_fonts1/AGA"
        FontPath     "/usr/local/share/fonts/ae_fonts1/FS"
        FontPath     "/usr/local/share/fonts/ae_fonts1/Kasr"
        FontPath     "/usr/local/share/fonts/ae_fonts1/MCS"
        FontPath     "/usr/local/share/fonts/ae_fonts1/Shmookh"
        FontPath     "/usr/local/share/fonts/local/"
EndSection

Section "Module"
        Load  "extmod"
        Load  "record"
        Load  "dbe"
        Load  "glx"
        Load  "dri"
        Load  "dri2"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
EndSection

Section "Device"
        Identifier      "Card0"
        Driver          "vesa"
        BusID           "1:0:0"
EndSection

glxinfo:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4

#4

In your xorg.conf comment out or delete in Section “Device”

Driver “vesa”

If removing vesa driver from xorg.conf won’t help, I would try to load:
ati_drv.so radeon_drv.so modesetting_drv.so kernel modules and
and let the X server driver(s) deal with the video device on PCI bus :slight_smile:
But, don’t use Dirver “vesa” no matter what happens


#5

It’s no use. Vesa remains the only option that works. Any attempt to use other driver modules results in the following error messages from X.org:

[  5530.453] (EE) Screen 0 deleted because of no matching config section.
[  5530.453] (II) UnloadModule: "amdgpu"
[  5530.453] (EE) Device(s) detected, but none match those in the config file.
[  5530.453] (EE)
Fatal server error:
[  5530.453] (EE) no screens found(EE) 

The only thing that changes is the module that gets unloaded depending on which one I try. I googled this a lot and this seems to be a common error with unsupported cards and odd setups; are we positive that this card is supported?


#6

https://wiki.freebsd.org/Graphics


#7

Oh no, looks like there still isn’t support even for cards that are considerably older than mine. If I disable this AMD card (in the BIOS) and install Intel drivers, would that provide me with acceleration? I have a Skylake CPU with integrated graphics which ARE supported according to that table.


#8

Make note of WHICH TrueOS distro you are using. For me, an recent STABLE distribution would detect, but could not install the drivers for my Radeon 5000 graphics card. But the UNSTABLE version of 11/14/2017 did, which is why I’m using it now.

Don’t know if that will help but there it is.

J.


#9

@Qester
https://wiki.freebsd.org/Graphics/SCFB
This info is for laptops, but …?


#10

I think SCFB is for UEFI , and it sounds like he is using BIOS .


#11

VESA doesn’t work with EFI as far as I tested it.
Has to be scfb for FreeBSD and wsfb for NetBSD and OpenBSD. It doesn’t matter, wether laptop or desktop.


#12

then there’s this:
https://www.freshports.org/graphics/drm-next-kmod/

“Experimental state. amdgpu and
radeonkms are known to fail with EFI boot.”


#13

This is an EFI installation. So I switched to the onboard graphics card, edited rc.conf to have it use the driver from drm-next-kmod (which btw is installed by default) and voilá, full hardware acceleration. Of course, it’s weak compared to the dedicated card; the next step would be to reinstall the OS, in BIOS mode this time, and see if the AMD card works by default, which I guess is what was supposed to happen all along (but there were no warnings about the various problems with EFI). Please point out if anything I said here is wrong, it would be especially nice to hear from a developer as I’m mostly making assumptions here.


#14

So I put my theory to the test and found out that even in BIOS mode, the card will not work without some form of software rendering. Unless I’m doing something wrong, amdgpu/radeonkms from drm-next-kmod don’t seem to support it yet, at least not ‘out of the box’. Consider this “solved”, I’ll move any further comments/questions on my part to the relevant github pages now. Thanks for your help guys.


#15

Same type of install. But, I don’t have video graphics card/device switching option in BIOS, so the latest UNSTABLE installation is a complete fiasco on my Dell Precision M4600 laptop with AMD FirePro M5950 video, I guess, due to GPU issues with the newly added drm-next-kmod.

The automagic probe cannot install my radeon chipset driver or configure xorg.conf correctly , so it defaults to scfb which doesn’t work as intended. When I try to test radeon driver during installation, the display goes black and my keyboard gets locked - same as in Windows 7&10 (nor matter which driver&Catalyst version) Linux does no better.

I tried that also, it just doesn’t work in UNSTABLE with my GPU, which was fine in the STABLE for almost 5 months, until I trashed my zpool and decided to reinstall with UNSTABLE - lol
And, removing drm-next-kmod is not an option in UNSTABLE, because pkg delete wants to take Lumina desktop right with it, into oblivion - hehe.

Edit:
@Qester

What’s in your /etc/rc.conf and /etc/X11/xorg.conf that make your video work correctly?


#16

While dealing with the cutting edge tech in TrueOS and the AMD/ATI/Radeon GPU drivers, I could not stop and think about the olden days and issues with installing CD/ROM driver for I386 chipset in some Linux/Slackware beta version, back then in early ‘90s. Each time things didn’t work, I had to change the parameters and remake the kernel to make that CD/ROM read. Later, when attaching and using CD/ROM was not a mysterious science in Linux, I got All-in-Wonder Radeon to challenge Linux OS. Thanks to: http://gatos.sourceforge.net/watching_tv.php, I was able to watch, over_the_air, tv broadcasting on Linux, but not in Windows 98 due to high frequency of BSOD episodes with that video card. Things have not change much since, I can still make Windows 10 drop to BSOD with AMD/ATI/Radeon drivers – LMFAO!


#17

I followed the instructions from https://www.freshports.org/graphics/drm-next-kmod/
Namely I added the line kld_list="/boot/modules/i915kms.ko". Since you have an AMD FirePro card, I imagine you would point to /boot/modules/radeonkms.ko instead.


#18

@Qester
Thank you. It works now. I forgot to look&read my own replies on here :blush:

Edit:

Extended renderer info (GLX_MESA_query_renderer):
    Vendor: X.Org (0x1002)
    Device: AMD TURKS (DRM 2.29.0 / 12.0-CURRENT, LLVM 4.0.1) (0x6740)
    Version: 17.2.4
    Accelerated: yes
    Video memory: 1024MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.0
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0

Very Nice!


#19

UPDATE:

Short lived success with drm-next-kmod. Took my dog out, when we came back, I found black screen and locked keyboard.

radeonkms for older AMD GPUs can be loaded and there are
some positive reports if EFI boot is NOT enabled (similar to amdgpu).

Doesn’t make any difference, EFI or BIOS boot. With EFI boot the driver gets video up and it works for a while, and then just crashes into black screen and locked keyboard. With BIOS boot, video crashes during system boot into black screen and locked keyboard. I tried all that I know, it just won’t work with my GPU now.

I’m glad that I have the right nivdia gpu in my desktop computer:

~% about

===================
General information
===================

boot environment now (N) … 12.0-CURRENT-up-20171126_223900 NR 2017-11-26
       after restart (R) … 12.0-CURRENT-up-20171126_223900 NR 2017-11-26                                           
boot loader …………………………………… BSD                                                                                     
            type ……………………… BIOS                                                                                    
CPU ………………………………………………………… Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz
    number of cores ……………… 24
host ……………………………………………………… trosu
memory ………………………………………………… 36864 MB available, 33226 MB free
OS git branch ……………………………………………………………………………………… trueos-master
OS git revision ………………………………………………………………………………… 67a4643eb
OS kernel build time ………………………………………………………… Wed 2017 Nov 8 18:09:27 UTC
OS kernel identity …………………………………………… (uname -i) GENERIC
OS platform (architecture) ……………………… (uname -m) amd64
OS release level ………………………………………………… (uname -r) 12.0-CURRENT
OS version and patch level …… (freebsd-version) 12.0-CURRENT
TrueOS package set ………………… UNSTABLE
TrueOS version …………………………… TrueOS-Desktop-201711140940
uptime ………………………………………………… 1 day,  2:49
user  …………………………………………………… gnao

More (TrueOS Desktop):

    desktop environment …… Lumina
    sound card driver ………… pcm4: <Analog Devices AD1984A (Analog)> (play/rec) default
    wireless driver ……………… 
    X11 drivers ………………………… nvidia_drv.so 

No issues there


#20

any news guys about support for Sea Islands (kaveri) AMD GPUs?
the only BSD that runs with full gfx accelerator on my system (A8-7600) is Dragonfly. The TrueOS suggests me to try the radeon, but testing is failing and reverting back to vesa… :frowning: