Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] powerplay patches for amdgpu/kernel 4.3+?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Yggdrasil
n00b
n00b


Joined: 08 Jul 2004
Posts: 64
Location: Maybe on Earth, Maybe in the Future

PostPosted: Sat Nov 21, 2015 4:27 am    Post subject: [Solved] powerplay patches for amdgpu/kernel 4.3+? Reply with quote

Are there any ebuilds that pull the new patches for powerplay into the 4.3 kernel? It seems like it makes a pretty big difference for Tonga and Fiji based chips but won't be making the mainline kernel until 4.5 or later.

ref: https://www.phoronix.com/scan.php?page=article&item=amdgpu-powerplay-test&num=2

Edit: Or, if there is a good set of instructions on how to roll my own? I've not patched the kernel myself before, much less from a git tree, and it freaks me out a little.
_________________
"We have/need art, so that we don't die of the truth." -- Friedrich Nietzsche


Last edited by Yggdrasil on Sun Nov 22, 2015 11:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Nov 22, 2015 10:39 pm    Post subject: Reply with quote

It basically comes down to having the base tree/branch ( linux 4.3.y stable) and then merging the upstream changes from http://cgit.freedesktop.org/~agd5f/linux/log/?h=amdgpu-powerplay (Michael referenced it in http://www.phoronix.com/scan.php?page=news_item&px=AMDGPU-PowerPlay-Patches) into that


https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging


In this case (no changes to 4.3 branch yet) you simply need to

git clone the repository


Code:
git clone git://people.freedesktop.org/~agd5f/linux


then checkout the branch, e.g.

Code:
git checkout agd5f/amdgpu-powerplay


then copy that over to /usr/src


after that you should be ready to go


So in a nutshell:

currently no need to maintain the patch stack or any git-fu at all
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Yggdrasil
n00b
n00b


Joined: 08 Jul 2004
Posts: 64
Location: Maybe on Earth, Maybe in the Future

PostPosted: Sun Nov 22, 2015 11:34 pm    Post subject: Reply with quote

Great! I was hoping it would be that simple, but I really appreciate getting confirmation.

Thank you!
_________________
"We have/need art, so that we don't die of the truth." -- Friedrich Nietzsche
Back to top
View user's profile Send private message
Yggdrasil
n00b
n00b


Joined: 08 Jul 2004
Posts: 64
Location: Maybe on Earth, Maybe in the Future

PostPosted: Sat Nov 28, 2015 12:57 am    Post subject: Reply with quote

A brief follow up, I tried the patches and my results seem to track pretty well with what was published on Phoronix. There's certainly room for improvement, but it's gotten a good deal better already!
_________________
"We have/need art, so that we don't die of the truth." -- Friedrich Nietzsche
Back to top
View user's profile Send private message
HimTortons
n00b
n00b


Joined: 13 Sep 2015
Posts: 32

PostPosted: Thu Jan 21, 2016 8:16 pm    Post subject: Reply with quote

So does this mean I just copy the folder git\ clone/linux/drivers/gpu/drm/amd/amdgpu to /usr/src and I'm good or did I get something wrong? I'm still quite a newb when it come to this kind of stuff
Back to top
View user's profile Send private message
Yggdrasil
n00b
n00b


Joined: 08 Jul 2004
Posts: 64
Location: Maybe on Earth, Maybe in the Future

PostPosted: Thu Feb 25, 2016 1:55 am    Post subject: Reply with quote

What I did, from looking at my command buffer from a couple months ago - which is almost certainly not the ideal/right way but which worked for me.

What I did was create a new folder (for example in $HOME/testing/ I'd mkdir powerplay) then move to that folder (cd powerplay) and do this:
Code:
git clone git://people.freedesktop.org/~agd5f/linux
cd linux/
git checkout amdgpu-powerplay

After that I made a new folder under /usr/src (mkdir linux-4.4.0-powerplay), copied the linux folder over and built the kernel there like normal. I used the .config from the old kernel, did make oldconfig and all that jazz.

Like I said I'm sure that's not the best, but it gave me working kernels with the expected performance that have been stable for the last couple months with my normal usage; including moderate gaming. Of course your mileage may vary, so proceed with due caution.

EDIT: I thought that I did this in a separate directory completely, but I just sync'd to one folder and then made a new one under /usr/src and built and installed there...
_________________
"We have/need art, so that we don't die of the truth." -- Friedrich Nietzsche
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum