DDM and AMD Radeon

Post your bugs here.
User avatar
MAYBL8
Posts: 1487
Joined: 10 Mar 2013 18:41
Location: Maryland Heights, MO USA
Contact:

Re: DDM and AMD Radeon

Postby MAYBL8 » 03 Sep 2017 14:23

I would like to help test.
I have this card:

Code: Select all

dcihon@solydk-testing:/etc$ inxi -Gxx
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM]
           bus-ID: 01:00.0 chip-ID: 1002:665f
           Display Server: x11 (X.Org 1.19.3 ) drivers: ati,radeon (unloaded: modesetting,fbdev,vesa)
           Resolution: 1920x1080@60.00hz, 1920x1080@60.00hz
           OpenGL: renderer: Gallium 0.4 on AMD BONAIRE (DRM 2.50.0 / 4.12.0-1-amd64, LLVM 3.9.1)
           version: 4.3 Mesa 13.0.6 (compat-v: 3.0) Direct Render: Yes
Which one of these should I use:

Code: Select all

# Default value for testing
# Set TESTHWCARD to test the script with different AMD/ATI hardware.
TEST=false
#TESTHWCARD='Advanced Micro Devices, Inc. [AMD/ATI] Bonaire [FirePro W5100]'
#TESTHWCARD='Advanced Micro Devices, Inc. [AMD/ATI] RS780L [Radeon 3000]'
TESTHWCARD='Advanced Micro Devices, Inc. [AMD/ATI] Tonga PRO [Radeon R9 285]'
#TESTHWCARD='Advanced Micro Devices, Inc. [AMD/ATI] RV710 [Radeon HD 4350/4550'
Also this is my repo list:

Code: Select all

dcihon@solydk-testing:/etc$ inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list
           deb http://repository.solydxk.com solydxk-ee main upstream import
           deb http://httpredir.debian.org/debian testing main contrib non-free
           deb http://security.debian.org testing/updates main contrib non-free


User avatar
Arjen Balfoort
Site Admin
Posts: 9258
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM and AMD Radeon

Postby Arjen Balfoort » 03 Sep 2017 14:35

If you want to test, but not install anything you change the TEST=false variable to TEST=true and add a new TESTHWCARD variable:
TESTHWCARD='Advanced Micro Devices [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM]'

It will show which packages would have been installed if TEST was set to false. Please, check the list with packages and let me know if that is correct for your card.


SolydXK needs you!
Development | Testing | Translations

User avatar
MAYBL8
Posts: 1487
Joined: 10 Mar 2013 18:41
Location: Maryland Heights, MO USA
Contact:

Re: DDM and AMD Radeon

Postby MAYBL8 » 03 Sep 2017 15:49

This appears to be correct:

Code: Select all

dcihon@solydk-testing:~/Downloads/amd$ sudo ./amd.sh
[sudo] password for dcihon: 
./amd.sh: line 125: [: 0uster/sid: integer expression expected
Hit:1 http://security.debian.org testing/updates InRelease
Hit:2 http://cdn-fastly.deb.debian.org/debian testing InRelease
Hit:3 http://repository.solydxk.com solydxk-ee InRelease
Reading package lists... Done                     
[AMD] - TEST - Install ATI drivers: linux-headers-4.12.0-1-amd64 build-essential firmware-linux-nonfree xserver-xorg-video-amdgpu.


User avatar
MAYBL8
Posts: 1487
Joined: 10 Mar 2013 18:41
Location: Maryland Heights, MO USA
Contact:

Re: DDM and AMD Radeon

Postby MAYBL8 » 03 Sep 2017 15:52

Here is the result:

Code: Select all

dcihon@solydk-testing:~/Downloads/amd$ sudo ./amd.sh
./amd.sh: line 125: [: 0uster/sid: integer expression expected
Hit:1 http://security.debian.org testing/updates InRelease
Hit:2 http://cdn-fastly.deb.debian.org/debian testing InRelease          
Hit:3 http://repository.solydxk.com solydxk-ee InRelease
Reading package lists... Done                     
[AMD] Install linux-headers-4.12.0-1-amd64.
[AMD] Run command: apt-get install --reinstall  -y --allow-downgrades --allow-remove-essential --allow-change-held-packages linux-headers-4.12.0-1-amd64.
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
  libx265-116
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
                                                                             Need to get 0 B/460 kB of archives.
                                                                                                                After this operation, 0 B of additional disk space will be used.
(Reading database ... 275483 files and directories currently installed.)
Preparing to unpack .../linux-headers-4.12.0-1-amd64_4.12.6-1_amd64.deb ...
Unpacking linux-headers-4.12.0-1-amd64 (4.12.6-1) over (4.12.6-1) ...
Setting up linux-headers-4.12.0-1-amd64 (4.12.6-1) ...
[AMD] Install build-essential.
[AMD] Run command: apt-get install --reinstall  -y --allow-downgrades --allow-remove-essential --allow-change-held-packages build-essential.
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
  libx265-116
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 7,346 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://cdn-fastly.deb.debian.org/debian testing/main amd64 build-essential amd64 12.3 [7,346 B]
Fetched 7,346 B in 0s (19.3 kB/s)
(Reading database ... 275483 files and directories currently installed.)
Preparing to unpack .../build-essential_12.3_amd64.deb ...
Unpacking build-essential (12.3) over (12.3) ...
Setting up build-essential (12.3) ...
[AMD] Install firmware-linux-nonfree.
[AMD] Run command: apt-get install --reinstall  -y --allow-downgrades --allow-remove-essential --allow-change-held-packages firmware-linux-nonfree.
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
  libx265-116
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
                                                                             Need to get 0 B/14.8 kB of archives.
                                                                                                                 After this operation, 0 B of additional disk space will be used.
(Reading database ... 275483 files and directories currently installed.)
Preparing to unpack .../firmware-linux-nonfree_20170823-1_all.deb ...
Unpacking firmware-linux-nonfree (20170823-1) over (20170823-1) ...
Setting up firmware-linux-nonfree (20170823-1) ...
[AMD] Install xserver-xorg-video-amdgpu.
[AMD] Run command: apt-get install --reinstall  -y --allow-downgrades --allow-remove-essential --allow-change-held-packages xserver-xorg-video-amdgpu.
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
  libx265-116
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  xserver-xorg-video-amdgpu
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 93.1 kB of archives.
After this operation, 193 kB of additional disk space will be used.
Get:1 http://cdn-fastly.deb.debian.org/debian testing/main amd64 xserver-xorg-video-amdgpu amd64 1.3.0-1 [93.1 kB]
Fetched 93.1 kB in 0s (137 kB/s)
                                Selecting previously unselected package xserver-xorg-video-amdgpu.
(Reading database ... 275483 files and directories currently installed.)
Preparing to unpack .../xserver-xorg-video-amdgpu_1.3.0-1_amd64.deb ...
Unpacking xserver-xorg-video-amdgpu (1.3.0-1) ...
Setting up xserver-xorg-video-amdgpu (1.3.0-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
[AMD] AMD driver installed.


User avatar
Arjen Balfoort
Site Admin
Posts: 9258
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM and AMD Radeon

Postby Arjen Balfoort » 03 Sep 2017 18:19

Could you post back the output of this command:

Code: Select all

head -n 1 /etc/debian_version | sed 's/[a-zA-Z]/0/' | cut -d'.' -f 1


SolydXK needs you!
Development | Testing | Translations

User avatar
Arjen Balfoort
Site Admin
Posts: 9258
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM and AMD Radeon

Postby Arjen Balfoort » 04 Sep 2017 07:05

Maybe I'm doing this all wrong!

On Debian's package page for xserver-xorg-video-amdgpu it says:
The following chip families should be supported: Bonaire, Hawaii, Kaveri, Kabini Mullins, Iceland, Tonga, Carrizo, Fiji, Stoney.
Is this list complete, and if so, shouldn't I simply check for these names in the card's name and use xserver-xorg-video-amdgpu if it is found and if not use xserver-xorg-video-radeon?

[Edit]
On ArchWiki I found a more comprehensive list here: https://www.x.org/wiki/RadeonFeature/
  • Volcanic Islands (VI) : TONGA, ICELAND/TOPAZ, CARRIZO, FIJI, STONEY, POLARIS10, POLARIS11, POLARIS12
  • Sea Islands (CI): BONAIRE, KABINI, MULLINS, KAVERI, HAWAII
  • Southern Islands (SI): CAPE VERDE, PITCAIRN, TAHITI, OLAND, HAINAN
Or even this: https://en.wikipedia.org/wiki/Graphics_Core_Next


SolydXK needs you!
Development | Testing | Translations

User avatar
Arjen Balfoort
Site Admin
Posts: 9258
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM and AMD Radeon

Postby Arjen Balfoort » 04 Sep 2017 10:51

So....if we could find out the GCN gpu by name it would be easier to find out if the amdgpu driver can be used or not. It would be easy to maintain as well: just add new names or remove dropped names from the list.

Here's the script using supported names:
amd.tar.gz
(2.24 KiB) Downloaded 55 times


SolydXK needs you!
Development | Testing | Translations

User avatar
MAYBL8
Posts: 1487
Joined: 10 Mar 2013 18:41
Location: Maryland Heights, MO USA
Contact:

Re: DDM and AMD Radeon

Postby MAYBL8 » 04 Sep 2017 13:03

Code: Select all

dcihon@solydk-testing:~/Downloads/amd$ head -n 1 /etc/debian_version | sed 's/[a-zA-Z]/0/' | cut -d'.' -f 1
0uster/sid


User avatar
MAYBL8
Posts: 1487
Joined: 10 Mar 2013 18:41
Location: Maryland Heights, MO USA
Contact:

Re: DDM and AMD Radeon

Postby MAYBL8 » 04 Sep 2017 13:07

With new script:

Code: Select all

dcihon@solydk-testing:~/Downloads/amd$ sudo ./amd.sh
./amd.sh: line 125: [: 0uster/sid: integer expression expected
Hit:1 http://security.debian.org testing/updates InRelease
Hit:3 http://repository.solydxk.com solydxk-ee InRelease                 
Hit:2 http://cdn-fastly.deb.debian.org/debian testing InRelease   
Reading package lists... Done
[AMD] Install linux-headers-4.12.0-1-amd64.
[AMD] Run command: apt-get install --reinstall  -y --allow-downgrades --allow-remove-essential --allow-change-held-packages linux-headers-4.12.0-1-amd64.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
                                                                             Need to get 0 B/460 kB of archives.
                                                                                                                After this operation, 0 B of additional disk space will be used.
(Reading database ... 275681 files and directories currently installed.)
Preparing to unpack .../linux-headers-4.12.0-1-amd64_4.12.6-1_amd64.deb ...
Unpacking linux-headers-4.12.0-1-amd64 (4.12.6-1) over (4.12.6-1) ...
Setting up linux-headers-4.12.0-1-amd64 (4.12.6-1) ...
[AMD] Install build-essential.
[AMD] Run command: apt-get install --reinstall  -y --allow-downgrades --allow-remove-essential --allow-change-held-packages build-essential.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
                                                                             Need to get 0 B/7,346 B of archives.
                                                                                                                 After this operation, 0 B of additional disk space will be used.
(Reading database ... 275681 files and directories currently installed.)
Preparing to unpack .../build-essential_12.3_amd64.deb ...
Unpacking build-essential (12.3) over (12.3) ...
Setting up build-essential (12.3) ...
[AMD] Install firmware-linux-nonfree.
[AMD] Run command: apt-get install --reinstall  -y --allow-downgrades --allow-remove-essential --allow-change-held-packages firmware-linux-nonfree.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
                                                                             Need to get 0 B/14.8 kB of archives.
                                                                                                                 After this operation, 0 B of additional disk space will be used.
(Reading database ... 275681 files and directories currently installed.)
Preparing to unpack .../firmware-linux-nonfree_20170823-1_all.deb ...
Unpacking firmware-linux-nonfree (20170823-1) over (20170823-1) ...
Setting up firmware-linux-nonfree (20170823-1) ...
[AMD] Install xserver-xorg-video-amdgpu.
[AMD] Run command: apt-get install --reinstall  -y --allow-downgrades --allow-remove-essential --allow-change-held-packages xserver-xorg-video-amdgpu.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
                                                                             Need to get 0 B/93.1 kB of archives.
                                                                                                                 After this operation, 0 B of additional disk space will be used.
(Reading database ... 275681 files and directories currently installed.)
Preparing to unpack .../xserver-xorg-video-amdgpu_1.3.0-1_amd64.deb ...
Unpacking xserver-xorg-video-amdgpu (1.3.0-1) over (1.3.0-1) ...
Setting up xserver-xorg-video-amdgpu (1.3.0-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
[AMD] AMD driver installed.


User avatar
ilu
Posts: 2477
Joined: 09 Oct 2013 12:45

Re: DDM and AMD Radeon

Postby ilu » 04 Sep 2017 15:03

I already listed those island names in my first post. Only thing that changed since then could be that experimental support (see my 3rd post) is most probably not experimental anymore.
For some reasons (which I can't remember atm) I also added some chip numbers ... usually the names should be sufficient but I must have had a reason. I'll try to check that again but I'm short on time because I just moved and have a lot of work to organize things. I will get my hands on a new amd system next weekend though so I can test stuff.

User avatar
ilu
Posts: 2477
Joined: 09 Oct 2013 12:45

Re: DDM and AMD Radeon

Postby ilu » 04 Sep 2017 15:11

I posted this pseudocode in April and it should still be valid. You can replace the archipelago names with the corresponding island names. Only thing I have to check again is "Southern Islands from 77xx" because I don't remember which islands names have GCN technology (as opposed to terascale).

Code: Select all

if <system=stretch>
then <do amd-stretch>
else <do amd-jessie>

amd-stretch
if <card supported by firmware-amd-graphics>
then <offer firmware-amd-graphics>
elseif <card has experimental support by firmware-amd-graphics>
then <offer firmware-amd-graphics with warning: experimental>
else <do nothing>

amd-jessie
if <card supported by firmware-amd-graphics> or <card has experimental support by firmware-amd-graphics>
then <offer choice>
   <firmware-amd-graphics from backports with warning: backports/experimental> or <offer fglrx>
elseif <card supported by fglrx>
then <offer fglrx>
else <do nothing>

<card supported by firmware-amd-graphics>
Volcanic Islands and later

<card has experimental support by firmware-amd-graphics>
newer Islands (GCN) - Southern Islands from 77xx and Sea Islands

<card supported by fglrx>
every card up from earlier Islands (TeraScale)

User avatar
Arjen Balfoort
Site Admin
Posts: 9258
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: DDM and AMD Radeon

Postby Arjen Balfoort » 05 Sep 2017 11:42

I've started a separate thread for testing here: viewtopic.php?f=78&t=7020


SolydXK needs you!
Development | Testing | Translations


Return to “Bug Control”

Who is online

Users browsing this forum: No registered users and 2 guests