You are not logged in.

#1 2016-07-16 13:03:51

Alaanor
Member
Registered: 2016-01-07
Posts: 51

[Solved] Trying to install my HD 8870M radeon GPU.

Hi,

I desperately try to get it work. I've read each wiki page about ATI/Hybrids GPU.

So, what I have ?

> cat /etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "DRI" "3"
EndSection
> cat /etc/X11/xorg.conf.d/20-radeon.conf
Section "Device"
    Identifier "Radeon"
    Driver "radeon"
EndSection
> glxinfo | grep renderer.string
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile 
> xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x7e cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 5 associated providers: 0 name:Intel
Provider 1: id: 0x55 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 0 associated providers: 0 name:VERDE @ pci:0000:01:00.0
> xrandr --setprovideroffloadsink radeon Intel                 
Could not find provider with name radeon
> dmesg | grep radeon
[    2.385524] [drm] radeon kernel modesetting enabled.
[    2.443901] radeon 0000:01:00.0: VRAM: 2048M 0x0000000000000000 - 0x000000007FFFFFFF (2048M used)
[    2.443903] radeon 0000:01:00.0: GTT: 2048M 0x0000000080000000 - 0x00000000FFFFFFFF
[    2.444028] [drm] radeon: 2048M of VRAM memory ready
[    2.444030] [drm] radeon: 2048M of GTT memory ready.
[    2.451711] [drm] radeon: dpm initialized
[    2.455658] [drm] enabling PCIE gen 3 link speeds, disable with radeon.pcie_gen2=0
[    3.691723] radeon 0000:01:00.0: WB enabled
[    3.691725] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c00 and cpu addr 0xffff880223f78c00
[    3.691726] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000080000c04 and cpu addr 0xffff880223f78c04
[    3.691727] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000080000c08 and cpu addr 0xffff880223f78c08
[    3.691728] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000080000c0c and cpu addr 0xffff880223f78c0c
[    3.691729] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000080000c10 and cpu addr 0xffff880223f78c10
[    3.692215] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000075a18 and cpu addr 0xffffc90001435a18
[    3.712440] radeon 0000:01:00.0: fence driver on ring 6 use gpu addr 0x0000000080000c18 and cpu addr 0xffff880223f78c18
[    3.712442] radeon 0000:01:00.0: fence driver on ring 7 use gpu addr 0x0000000080000c1c and cpu addr 0xffff880223f78c1c
[    3.712445] radeon 0000:01:00.0: radeon: MSI limited to 32-bit
[    3.712470] radeon 0000:01:00.0: radeon: using MSI.
[    3.712495] [drm] radeon: irq initialized.
[    6.103314] [drm] Initialized radeon 2.43.0 20080528 for 0000:01:00.0 on minor 0
> sudo pacman -Q xf86-video-ati
xf86-video-ati 1:7.7.0-1

I can't understand why It's doesn't work. I haven't more idea ...

Do you have any idea ?

Last edited by Alaanor (2016-08-16 14:58:20)

Offline

#2 2016-07-16 14:43:45

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved] Trying to install my HD 8870M radeon GPU.

Alaanor wrote:

I've read each wiki page about ATI/Hybrids GPU

For an intel/amd setup with opensource drivers there's only 1 page that matters : https://wiki.archlinux.org/index.php/PRIME

move/delete ALL xorg config files , then start X .
post xrandr --listproviders .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2016-07-16 15:04:02

Alaanor
Member
Registered: 2016-01-07
Posts: 51

Re: [Solved] Trying to install my HD 8870M radeon GPU.

Hi, thank you for your help.

I don't know there is only one page, I am focusing on this now.

So, I've deleted any xorg config (/etc/X11/xorg.conf.d/* & /etc/xorg.conf) and restart my laptop:

> xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x7e cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 5 associated providers: 0 name:Intel
Provider 1: id: 0x55 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 0 associated providers: 0 name:VERDE @ pci:0000:01:00.0

Same output.

Offline

#4 2016-07-16 15:17:12

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved] Trying to install my HD 8870M radeon GPU.

Great, that's the kind of output i hoped to see.

Check the 3 possibilties PRIME offers ( GPU offloading, reverse PRIME , discrete gpu as primary) and pick whichever matches your monitor setup / desired behaviour the closest.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2016-07-16 15:25:30

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Solved] Trying to install my HD 8870M radeon GPU.

If your primary card is the Intel one, you could even remove xf86-video-{intel,ati} and it works. The only catch is for now there are glitches with libreoffice when using the modesetting driver but it should be solved upstream and the next xorg server should contain the fixes.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#6 2016-07-16 15:27:06

Alaanor
Member
Registered: 2016-01-07
Posts: 51

Re: [Solved] Trying to install my HD 8870M radeon GPU.

Okay, so I choice to use the GPU offloading solution:

As I can understand, I have to do exactly the example.

> xrandr --setprovideroffloadsink radeon Intel
Could not find provider with name radeon

Hum ... In my xrandr --listproviders output, the second provider has 0x55 as id. But the wiki page say: "The provider and sink identifiers can be numeric (0x7d, 0x56) or a case-sensitive name (Intel, radeon).". 0x56 is radeon, maybe, but what the 0x55 I have ?

I'm a bit lost, maybe I do something wrong.

Edit:
I've removed the xf86-video-intel, reboot, and the xrandr --listproviders output change from 0x7e to 0x7c for the first providers. (modesetting)

Last edited by Alaanor (2016-07-16 16:02:29)

Offline

#7 2016-07-16 18:14:41

alive4ever
Member
Registered: 2016-07-10
Posts: 65

Re: [Solved] Trying to install my HD 8870M radeon GPU.

Alaanor wrote:

Hi, thank you for your help.

I don't know there is only one page, I am focusing on this now.

So, I've deleted any xorg config (/etc/X11/xorg.conf.d/* & /etc/xorg.conf) and restart my laptop:

> xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x7e cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 5 associated providers: 0 name:Intel
Provider 1: id: 0x55 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 0 associated providers: 0 name:VERDE @ pci:0000:01:00.0

Same output.

There is no radeon provider, but your dedicated graphics detected fine. Read the PRIME wiki note and understand it!.
Your gpu codename here is VERDE, located at pci.000.01.00.0

In your case, you should specify "VERDE @ pci:0000:01:00.0" instead of radeon on xrandr command.

xrandr --setprovideroffloadsink "VERDE @ pci:0000:01:00.0" Intel

Note that xf86-video-intel is required for PRIME to work. The dedicated gpu doesn't have it's own diplay output. It shares the display output from Intel gpu. In addition, you should also keep xf86-video-ati and xf86-video-amdgpu to make sure that prime offloading works.

Offline

#8 2016-07-16 18:17:01

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 749

Re: [Solved] Trying to install my HD 8870M radeon GPU.

Provider 1: id: 0x55 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 0 associated providers: 0 name:VERDE @ pci:0000:01:00.0

(it's not named radeon)

EDIT: why do I always end up being too slow to respond before someone else? hmm

EDIT 2:  If you're using DRI3 with Intel driver, there's 99% chance that you don't need to set up offload sink manulally anyway, it has already been set.

Last edited by Xabre (2016-07-16 18:22:15)

Offline

#9 2016-07-16 19:16:19

Alaanor
Member
Registered: 2016-01-07
Posts: 51

Re: [Solved] Trying to install my HD 8870M radeon GPU.

Hi, ofc, I read the wiki, and not only one time, and I will read again. This wiki is awesome, and I get it wink

So, yeah, put the entire name, I've already try it. And there is no error, but no change.

Just a question, maybe I am wrong to check the result with that command: glxinfo | grep render which answer me Ivybridge.

Edit: About DRI I know we can specify into xorg configuration, but as mentioned before, I've deleted all xorg configuration. So ... What the default value, how can I get it. (I search big_smile)

Last edited by Alaanor (2016-07-16 19:21:15)

Offline

#10 2016-07-16 21:04:11

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Solved] Trying to install my HD 8870M radeon GPU.

If you don't have xf86-video-{intel,ati} installed all you need to do is 'DRI_PRIME=1 glxinfo', no need to use xrandr to set anything. There might be a problem though, at least for some cards when booting with radeon.dpm=1, which is the default if you don't specify it, the discrete card may hang when trying to change into a higher performance state, see [1] as an example among more in the bug tracker.

[1] https://bugs.freedesktop.org/show_bug.cgi?id=91294


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#11 2016-07-17 01:39:00

alive4ever
Member
Registered: 2016-07-10
Posts: 65

Re: [Solved] Trying to install my HD 8870M radeon GPU.

Alaanor wrote:

Hi, ofc, I read the wiki, and not only one time, and I will read again. This wiki is awesome, and I get it wink

So, yeah, put the entire name, I've already try it. And there is no error, but no change.

Just a question, maybe I am wrong to check the result with that command: glxinfo | grep render which answer me Ivybridge.

Edit: About DRI I know we can specify into xorg configuration, but as mentioned before, I've deleted all xorg configuration. So ... What the default value, how can I get it. (I search big_smile)

Let me give you a real example. The dollar sign '$' meant that the command is launched as yourself, without root access.

$ lspci | grep -E '(VGA|Display)'
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun LE [Radeon HD 8550M / R5 M230] (rev ff)

$ pacman -Qn xf86-video-intel xf86-video-ati
xf86-video-intel 1:2.99.917+676+g26f8ab5-1
xf86-video-ati 1:7.7.0-1

$ xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x78 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 5 associated providers: 0 name:Intel
Provider 1: id: 0x4f cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 0 outputs: 0 associated providers: 0 name:HAINAN @ pci:0000:03:00.0

$ xrandr --setprovideroffloadsink "HAINAN @ pci:0000:03:00.0" Intel

$ glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile

$ DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Gallium 0.4 on AMD HAINAN (DRM 2.43.0 / 4.6.4-1-ARCH, LLVM 3.8.0)

That should enable PRIME gpu offloading for you.

Last edited by alive4ever (2016-07-17 01:39:33)

Offline

#12 2016-07-17 09:24:56

Alaanor
Member
Registered: 2016-01-07
Posts: 51

Re: [Solved] Trying to install my HD 8870M radeon GPU.

Yes ! It look good now ! I've reached "OpenGL renderer string: Gallium 0.4 on AMD CAPE VERDE (DRM 2.43.0, LLVM 3.8.0)" on glxinfo.

Ok, good, cool, but now I try to understand: The glxinfo look like something that doesn't affect any change, it's sound like a command which give information. And putting a ... environment variable ? before a command like glxinfo I never see it something like that in past, that new for me.

But, anyway, the output of DRI_PRIME=1 glxinfo give me a AMD renderer, cool, but my counter strike game has always a low fps (perf of Ivybridge). The things that bothers me, that there is no easy way to know if it's work. We can glxinfo again without put the environment variable to 1, there is again the Ivybridge GPU. When I launch a 3D game, I'm not sure if my AMD card is running.

My only way I way now to confirm, that the online benchmark. And I don't have the perf of benchmark.

Offline

#13 2016-07-17 10:08:07

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved] Trying to install my HD 8870M radeon GPU.

DRI_PRIME=1 glxinfo was used to verify your offloading setup works as intended.

PRIME Wiki wrote:

Now, you can use your discrete card for the applications who need it the most (for example games, 3D modellers...) by prepending the DRI_PRIME=1 environment variable:

Re-read that line very thoroughly and think about what it means.

If you understand that line, you'll know how to make CS:GO run on your amd card.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#14 2016-08-06 16:11:47

Alaanor
Member
Registered: 2016-01-07
Posts: 51

Re: [Solved] Trying to install my HD 8870M radeon GPU.

After some week, I'm back to this post.

So, yeah. Sadly I've already tried to prepending the DRI_PRIME=1 before your post. But I didn't cited here, sorry.

Today, I've discover cgminer, which is supposed to use my GPU, but he cannot find it.

Here is a example of a guy who check if cgminer recognize his GPU.

But in my case:

$ DRI_PRIME=1 cgminer -n
 [2016-08-06 17:56:36] USB all: found 10 devices - listing known devices                    
 [2016-08-06 17:56:36] No known USB devices

Here is more visible for me. Even if I preprend, the graphics card isn't here. What wrong ? What I missed.

(And yes, I read the wiki even if I already read it. Again and again)

Offline

#15 2016-08-07 13:33:24

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved] Trying to install my HD 8870M radeon GPU.

Glad to hear you figured out how to use prime.
It seems your original question is now solved , please prepend [solved] to the topic title (edit the first post).


the cgminer issue should be dealt with in a separate thread, but i'll help you getting started with solving it .


cgminer readme wrote:

Q: What happened to CPU and GPU mining?
A: Their efficiency makes them irrelevant in the bitcoin mining world today
and the author has no interest in supporting alternative coins that are better
mined by these devices.

AUR has a package for the last cgminer version that supported GPU mining, cgminer-cpu


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB