Skip to content

Using AMDGPU right now

Not downloaded yet

Long story short, Linux 4.2 includes the amdgpu driver, with basic support for the Tonga chip found on the 285/380. Some commits indicate support for the Fiji chip on the Fury, but that's probably coming later.

So, if you happen to have an r9 285, 380, or even a Fury, you are probably hating FGLRX or just not using linux at all for a while. Probably both.

The thing is, the linux-mainline AUR PKGBUILD doesn't enable amdgpu, so even if you get linux 4.2rc6, your card won't work.

Compiling your own kernel to the rescue

Note: ultra dirty quick instructions with total disregard of the Arch Build System

In a nutshell

Grab linux mainline .xz from kernel.org, unpack it, and navigate to its folder

Run

zcat /proc/config.gz > .config
make menuconfig

And enable the option shown here

Save and exit, run make and follow the wiki page as you have to set up its modules, create an initramfs for it, and update the grub config to see it listed on boot.

Lastly, copy all the firmware files for tonga/fiji to /lib/firmware/amdgpu

Reboot and choose your kernel from the Advanced Options For Arch Linux menu. It should work immediately, mesa-vdpau rendering your youtube videos at 60fps and all. Performance on 3d apps will be shit until 4.3 at least, as there is no core reclocking support, but it works, which is more than can be said of fglrx or vesa.

Hope this is useful for someone

EDIT: Also install mesa-git and its dependencies to get mesa 11, and proper support for this card. Performance will be shit without it.

Edited 21 Aug 2015. We only hold this version.

31 points17 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
31 · 100% up
Kind
Image
ID
3h4req

Author

10
posts
505
comments
4
media
View profile

23 comments

I'm thinking I'll buying an amd card next. I'm kinda excited for this, how's the performance/stability?

6 points

Depends on the card, anything except for the 285/380/Fury has good open source support and fglrx shouldn't be even considered imho.

Steam hates the open source driver and won't run without a workaround (its in the wiki), but if you aren't gaming and you care about open source, go for it.

I explicitly waited a bit for the 380 to drop because I consider the amdgpu thing a good bet on future support, but right now there is no documentation at all (nothing really out of the ordinary considering it's not out yet)

Gaming performance doesn't concern me as the heavy gaming will be done in windows, but any kind of improvement on that regard will be welcome. It's no secret these cards don't perform as well as they should on linux, but the moves to fix it are clearly seen. Finally.

Maybe I'll kill the windows partition once linux 4.3 or 4.4 drops. Forever.

As for the current state, I've been running this for a few hours, and I've had no crashes running 2d games, watching videos, or running compiz. Compiz was slow, but that's because the aforementioned no reclocking support. BSPWM / XFWM and the traditional desktops fly. EDIT: KDE 5 also works like a charm.

I'd love to enable global vsync using the xorg.conf, but something tells me the same parameters that worked for radeon won't work for amdgpu. I'll try anyway later.

6 points

If you want an AMD card now just think about a 260x (or 360, the same thing). Its about the best bang for the free driver.

I have a 260x, 7870, and 290. I get about 20% more fps in almost anything with a GPU 3x more expensive over the 260x.

Stability wise I'm a KDE contributor mostly and run a quad monitor setup on Plasma 5, and even just stock kernel + mesa git (for the OGL 4.1 support I'm testing) and it has been incredibly stable for about a year now.

If you mean AMDGPU, you might want to wait for 4.3 or 4.4 for all the bugs to be ironed out, this is literally the first release prerelease, and its not going to have significant performance gains, its just an efficient way for AMD not to duplicate kernel driver work.

1 points

I have an amd r9 380. And your guide has been a great help. (Didn't know that you had to enable amdgpu in kernel config). After copying the bin files directly into /lib/firmware/amdgpu I only get the follow message amdgpu 0000:01:00.0: Invalid ROM content. I can access the ttys and my third monitor is now showing output, but sddm as my graphical manager is not loading. A few pointer would be good, as I am growing a bit despair.

Edit: I now figured out what the problem was. For anyone else wondering, I put a file in /etc/X11/xorg.conf.d with

Section "Device"
  Identifier "Amdgpu"
  Driver "amdgpu"
EndSection

I only had to remove the file and everything worked.

2 points

I just noticed that you need mesa 11 to get proper support for the card in X. Performance has skyrocketed from what it was and I can now enable KWin's opengl backend and play 2d games. (haven't tested 3d). Get mesa-git from the aur and its dependencies from here

2 points

Planning on going to arch linux tonight. I've had nothing but issues with my 380 on ubuntu, so i figure i might be able to do a better job if i build the OS myself.

1 points

Is there a reason you wouldn't use the ABS to build the kernel?

1 points

Doing it manually is faster, I just wanted to test this quickly because I wasn't sure if it was going to work.

For any kind of semipermanent setup I would've set up a proper PKGBUILD. Maybe I should just do it anyway tomorrow, so more people can test.

2 points

But doing it this way is wholly out of the build system that is designed to keep everything copasetic in terms of distribution compatibility.

3 points

In the linux-mainline PKGBUILD there is a section where you can comment out "make olddefconfig" and uncomment "make menuconfig". Then you just build the package normally and enable AMDGPU in the menuconfig.

3 points

I have an AMD 7870. Am I screwed or will AMD give me support in the future?

1 points

You won't get support for AMDGPU. Mesa support will simply continue. Catalyst support is only going to be for workstations.

1 points
unknown author1 hidden

How long roughly will it be until the AMDGPU support for the 380 is stable/in the arch repos?

1 points

4.2 is on its sixth release candidate now, so it should drop to testing any other day. The official repo should get it around early september or later this month.

2 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.