Radeon R7 (Topaz) on Tumbleweed.

Is there any way to makes Radeon Topaz R7 working on Tumbleweed?


01:00.0 Display controller [0380]: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445] [1002:6900] (rev 83)

I have also integrated Intel video card:


00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 620 [8086:5916] (rev 02)

Any way. I tries virtualization. Download Ubuntu and trying in virt manager:

  1. Selecting VirtIO with graphics acceleration - the same problem as running games on Tumbleweed (White screen)
  2. Do passthrought to Ubuntu system - Host freeze - hard reset required

I didn’t try containerization yet - I read amdgpu-pro uses kernel space open source driver, so I thought I could install Ubuntu on docker/systemd-nspawn and X server with AMDGPU-Pro on this container, but I don’t know it is good solution.

On Sun 02 Dec 2018 10:56:04 AM CST, Lachu wrote:

Is there any way to makes Radeon Topaz R7 working on Tumbleweed?

Code:

01:00.0 Display controller [0380]: Advanced Micro Devices, Inc.
[AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445]
[1002:6900] (rev 83) --------------------

I have also integrated Intel video card:

Code:

00:02.0 VGA compatible controller [0300]: Intel Corporation HD
Graphics 620 [8086:5916] (rev 02)

Any way. I tries virtualization. Download Ubuntu and trying in virt
manager:

  1. Selecting VirtIO with graphics acceleration - the same problem as
    running games on Tumbleweed (White screen)
  2. Do passthrought to Ubuntu system - Host freeze - hard reset required

I didn’t try containerization yet - I read amdgpu-pro uses kernel space
open source driver, so I thought I could install Ubuntu on
docker/systemd-nspawn and X server with AMDGPU-Pro on this container,
but I don’t know it is good solution.

Hi
The secondary card may not be activated… can you post the output from;


cat /sys/kernel/debug/vgaswitcheroo/switch

For example I see (Dual AMD gpus);


0:IGD:+:Pwr:0000:00:01.0
1:DIS: :DynPwr:0000:04:00.0


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.25-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!


sudo cat /sys/kernel/debug/vgaswitcheroo/switch
[sudo] hasło użytkownika root:
0:IGD:+wr:0000:00:02.0
1IS: ynOff:0000:01:00.0

As I see I have the same situation as your’s. I think, that DIS in second column means disabled and DynPwr means it can be dynamically powered on.

Hi
Yes, so install switcheroo-control and see if it changes via;


su -
zypper in switcheroo-control
systemctl start switcheroo-control.service
cat /sys/kernel/debug/vgaswitcheroo/switch

I don’t know how to use switchero-control. Will it switch graphic adapter automatically? When?


cat /sys/kernel/debug/vgaswitcheroo/switch 
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:01:00.0

Hi
Whats the status of the service, running?


systemctl status switcheroo-control.service

Enable the service and reboot and see if it changes to DynPwr.


systemctl status switcheroo-control.service
● switcheroo-control.service - Switcheroo Control Proxy service
   Loaded: loaded (/usr/lib/systemd/system/switcheroo-control.service; enabled; vendor preset:>
   Active: active (running) since Mon 2018-12-03 05:32:35 CET; 4min 30s ago
 Main PID: 1165 (switcheroo-cont)
    Tasks: 3 (limit: 4915)
   Memory: 832.0K
   CGroup: /system.slice/switcheroo-control.service
           └─1165 /usr/sbin/switcheroo-control


And:


cat /sys/kernel/debug//vgaswitcheroo/switch 
0:IGD:+:Pwr:0000:00:02.0
1:DIS: :DynOff:0000:01:00.0

I forgot to describe full the problem.
When I bought this laptop, OpenSUSE Tumbleweed hangs on X load. Resolution was to put some kernel parameters and working with wayland (kwin_wayland) with fb as output (maybe I select another backend, but didn’t rerember). After some system update, I can use X without problems, but when I trying to run program with DRI_PRIME=1 only white screen is visible. Additionally, when X starts or I switch to another vt, warning appears:


...
KCQ disable failted
..
[powerplay] VI should always have 2 performance levels

Or similar.

I have read on some page, that amdgpu.pm=0 might help. When I use this kernel switch, I can enable dedicated graphics with DRI_PRIME=1. Tomb Raider (Steam Game) starts, but it works as fast as on Intel chip. Grand Ages Medieval works and previously it crash or display white screen where I use DRI_PRIME=1.

What about side-effects? As far as I understood article on which I find this solution amdgpu.pm=0 disables automatically power switch and dedicated graphics will be turn on, when some application asks for it. Without amdgpu.pm=0, kernel will detects case, when dedicated graphic are needed and turn it automatically. Am I correct?

Hi
Could be the case then, I don’t use that option. I do use amdgpu.dc=0 for some minor screen tearing on the right hand side at times. Have you tried the amdgpu.pm option?

admgpu.pm=0 and DRI_PRIME=1 worked for me. Tomb Raider worked, Civ VI R&F works, Grand Ages: Medieval works. For Tomb Raider I may only change resolution to lower (after using hack with admgpu.pm=0 & DRI_PRIME=1).