Announcement

Collapse
No announcement yet.

amd-staging-4.6 for Fedora 24 (AMDGPU)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I've had some progress.

    It turns out that just blacklisting the radeon driver in /etc/modprobe.d didn't actually stop the radeon module from loading. I ended up adding "rd.driver.blacklist=radeon" to the grub commandline, and that did the trick.

    Afterward, I was able to see the amdgpu driver (and only the amdgpu driver) loaded in dmesg.

    Code:
    [root@charybdis ~]# cat dmesg-amdgpu-4.7.4-902.amd.20092016.fc24.x86_64  
    [    2.461069] [drm] amdgpu kernel modesetting enabled.
    [    2.477029] fb: switching to amdgpudrmfb from EFI VGA
    [    2.478322] amdgpu 0000:01:00.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0x8d59
    [    2.478716] amdgpu 0000:01:00.0: VRAM: 2048M 0x0000000000000000 - 0x000000007FFFFFFF (2048M used)
    [    2.478722] amdgpu 0000:01:00.0: GTT: 8002M 0x0000000080000000 - 0x00000002742BA7FF
    [    2.478748] [drm] amdgpu: 2048M of VRAM memory ready
    [    2.478752] [drm] amdgpu: 8002M of GTT memory ready.
    [    2.490204] amdgpu 0000:01:00.0: PCIE GART of 8002M enabled (table at 0x0000000000040000).
    [    2.490263] amdgpu 0000:01:00.0: amdgpu: using MSI.
    [    2.490291] [drm] amdgpu: irq initialized.
    [    2.490364] [drm] amdgpu: dpm initialized
    [    2.490915] amdgpu 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000080000010, cpu addr 0xffff8804261d4010
    [    2.491044] amdgpu 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000080000020, cpu addr 0xffff8804261d4020
    [    2.491090] amdgpu 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000080000030, cpu addr 0xffff8804261d4030
    [    2.491138] amdgpu 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000080000040, cpu addr 0xffff8804261d4040
    [    2.491182] amdgpu 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000080000050, cpu addr 0xffff8804261d4050
    [    2.777030] fbcon: amdgpudrmfb (fb0) is primary device
    [    2.939990] amdgpu 0000:01:00.0: fb0: amdgpudrmfb frame buffer device
    [    3.261204] [drm] Initialized amdgpu 3.6.0 20150101 for 0000:01:00.0 on minor 0
    So that looks promising. Plus I was using the amdgpu framebuffer driver, so I know that works.

    X still didn't startup though. I'll keep my fingers crossed.


    Code:
    X.Org X Server 1.18.4
    Release Date: 2016-07-19
    [     9.660] X Protocol Version 11, Revision 0
    [     9.660] Build Operating System:  4.6.4-301.fc24.x86_64  
    [     9.660] Current Operating System: Linux charybdis.home 4.7.4-902.amd.20092016.fc24.x86_64 #1 SMP Thu Sep 22 04:53:19 UTC 2016 x86_64
    [     9.660] Kernel command line: BOOT_IMAGE=/vmlinuz-4.7.4-902.amd.20092016.fc24.x86_64 root=UUID=dcf04c0b-f8b4-415c-b63f-72806800c840 ro rootf
    lags=subvol=root rhgb quiet LANG=en_US.UTF-8 rd.driver.blacklist=radeon
    [     9.660] Build Date: 25 August 2016  05:27:31PM
    [     9.660] Build ID: xorg-x11-server 1.18.4-4.fc24  
    [     9.660] Current version of pixman: 0.34.0
    [     9.661]    Before reporting problems, check http://wiki.x.org
           to make sure that you have the latest version.
    [     9.661] Markers: (--) probed, (**) from config file, (==) default setting,
           (++) from command line, (!!) notice, (II) informational,
           (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [     9.661] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 22 18:56:25 2016
    [     9.661] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [     9.661] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    [     9.661] (==) No Layout section.  Using the first Screen section.
    [     9.661] (==) No screen section available. Using defaults.
    [     9.661] (**) |-->Screen "Default Screen Section" (0)
    [     9.661] (**) |   |-->Monitor "<default monitor>"
    [     9.661] (==) No device specified for screen "Default Screen Section".
           Using the first device section listed.
    [     9.661] (**) |   |-->Device "AMDgpu"
    [     9.661] (==) No monitor specified for screen "Default Screen Section".
           Using a default monitor configuration.
    [     9.661] (==) Automatically adding devices
    [     9.661] (==) Automatically enabling devices
    [     9.661] (==) Automatically adding GPU devices
    [     9.661] (==) Max clients allowed: 256, resource mask: 0x1fffff
    [     9.661] (==) FontPath set to:
           catalogue:/etc/X11/fontpath.d,
           built-ins
    [     9.661] (==) ModulePath set to "/usr/lib64/xorg/modules"
    [     9.661] (II) The server relies on udev to provide the list of input devices.
           If no devices become available, reconfigure udev or disable AutoAddDevices.
    [     9.661] (II) Loader magic: 0x824dc0
    [     9.661] (II) Module ABI versions:
    [     9.661]    X.Org ANSI C Emulation: 0.4
    [     9.661]    X.Org Video Driver: 20.0
    [     9.661]    X.Org XInput driver : 22.1
    [     9.661]    X.Org Server Extension : 9.0
    [     9.663] (++) using VT number 1
    
    [     9.663] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
    [     9.664] (II) xfree86: Adding drm device (/dev/dri/card0)
    [     9.667] (--) PCI:*(0:1:0:0) 1002:6811:1458:226c rev 0, Mem @ 0xc0000000/268435456, 0xfea00000/262144, I/O @ 0x0000e000/256, BIOS @ 0x??????
    ??/131072
    [     9.667] (II) LoadModule: "glx"
    [     9.667] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
    [     9.671] (II) Module glx: vendor="X.Org Foundation"
    [     9.671]    compiled for 1.18.4, module version = 1.0.0
    [     9.672]    ABI class: X.Org Server Extension, version 9.0
    [     9.672] (==) AIGLX enabled
    [     9.672] (II) LoadModule: "amdgpu"
    [     9.672] (II) Loading /usr/lib64/xorg/modules/drivers/amdgpu_drv.so
    [     9.673] (II) Module amdgpu: vendor="X.Org Foundation"
    [     9.673]    compiled for 1.18.4, module version = 1.1.2
    [     9.673]    Module class: X.Org Video Driver
    [     9.673]    ABI class: X.Org Video Driver, version 20.0
    [     9.673] (II) AMDGPU: Driver for AMD Radeon chipsets: OLAND, OLAND, OLAND, OLAND,
    *snip*
    [     9.675] (II) [KMS] Kernel modesetting enabled.
    [     9.676] (EE) AMDGPU(0): amdgpu_device_initialize failed
    [     9.676] (II) [KMS] Kernel modesetting enabled.
    [     9.676] (EE) AMDGPU(G0): amdgpu_device_initialize failed
    [     9.676] (II) [KMS] Kernel modesetting enabled.
    [     9.676] (EE) AMDGPU(1): amdgpu_device_initialize failed
    [     9.676] (EE) Screen 0 deleted because of no matching config section.
    [     9.676] (II) UnloadModule: "amdgpu"
    [     9.676] (EE) Screen 0 deleted because of no matching config section.
    [     9.677] (II) UnloadModule: "amdgpu"
    [     9.677] (EE) Device(s) detected, but none match those in the config file.
    [     9.677] (EE)  
    Fatal server error:
    [     9.677] (EE) no screens found(EE)  
    [     9.677] (EE)

    Comment


    • Originally posted by Creak View Post
      Don't worry, your repo is already a blessing I was fishing to see if someone else here have this game, an RX 480 and the same bug. Who knows, maybe it's a well-known bug and there's a fix somewhere (or even a patch on it's way to mesa)
      You may want to try the new kernel, 4.7.4.902, as they just turned on the clock gating for the polaris and tonga cards. I haven't been able to look at any games yet, but video playback seems to consistently show lower temperatures.

      Comment


      • Originally posted by Shalrath View Post
        I've had some progress.

        It turns out that just blacklisting the radeon driver in /etc/modprobe.d didn't actually stop the radeon module from loading. I ended up adding "rd.driver.blacklist=radeon" to the grub commandline, and that did the trick.

        Afterward, I was able to see the amdgpu driver (and only the amdgpu driver) loaded in dmesg.

        Code:
        [root@charybdis ~]# cat dmesg-amdgpu-4.7.4-902.amd.20092016.fc24.x86_64
        [ 2.461069] [drm] amdgpu kernel modesetting enabled.
        [ 2.477029] fb: switching to amdgpudrmfb from EFI VGA
        [ 2.478322] amdgpu 0000:01:00.0: Invalid PCI ROM header signature: expecting 0xaa55, got 0x8d59
        [ 2.478716] amdgpu 0000:01:00.0: VRAM: 2048M 0x0000000000000000 - 0x000000007FFFFFFF (2048M used)
        [ 2.478722] amdgpu 0000:01:00.0: GTT: 8002M 0x0000000080000000 - 0x00000002742BA7FF
        [ 2.478748] [drm] amdgpu: 2048M of VRAM memory ready
        [ 2.478752] [drm] amdgpu: 8002M of GTT memory ready.
        [ 2.490204] amdgpu 0000:01:00.0: PCIE GART of 8002M enabled (table at 0x0000000000040000).
        [ 2.490263] amdgpu 0000:01:00.0: amdgpu: using MSI.
        [ 2.490291] [drm] amdgpu: irq initialized.
        [ 2.490364] [drm] amdgpu: dpm initialized
        [ 2.490915] amdgpu 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000080000010, cpu addr 0xffff8804261d4010
        [ 2.491044] amdgpu 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000080000020, cpu addr 0xffff8804261d4020
        [ 2.491090] amdgpu 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000080000030, cpu addr 0xffff8804261d4030
        [ 2.491138] amdgpu 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000080000040, cpu addr 0xffff8804261d4040
        [ 2.491182] amdgpu 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000080000050, cpu addr 0xffff8804261d4050
        [ 2.777030] fbcon: amdgpudrmfb (fb0) is primary device
        [ 2.939990] amdgpu 0000:01:00.0: fb0: amdgpudrmfb frame buffer device
        [ 3.261204] [drm] Initialized amdgpu 3.6.0 20150101 for 0000:01:00.0 on minor 0
        So that looks promising. Plus I was using the amdgpu framebuffer driver, so I know that works.

        X still didn't startup though. I'll keep my fingers crossed.


        Code:
        X.Org X Server 1.18.4
        Release Date: 2016-07-19
        [ 9.660] X Protocol Version 11, Revision 0
        [ 9.660] Build Operating System: 4.6.4-301.fc24.x86_64
        [ 9.660] Current Operating System: Linux charybdis.home 4.7.4-902.amd.20092016.fc24.x86_64 #1 SMP Thu Sep 22 04:53:19 UTC 2016 x86_64
        [ 9.660] Kernel command line: BOOT_IMAGE=/vmlinuz-4.7.4-902.amd.20092016.fc24.x86_64 root=UUID=dcf04c0b-f8b4-415c-b63f-72806800c840 ro rootf
        lags=subvol=root rhgb quiet LANG=en_US.UTF-8 rd.driver.blacklist=radeon
        [ 9.660] Build Date: 25 August 2016 05:27:31PM
        [ 9.660] Build ID: xorg-x11-server 1.18.4-4.fc24
        [ 9.660] Current version of pixman: 0.34.0
        [ 9.661] Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
        [ 9.661] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
        [ 9.661] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Sep 22 18:56:25 2016
        [ 9.661] (==) Using config directory: "/etc/X11/xorg.conf.d"
        [ 9.661] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
        [ 9.661] (==) No Layout section. Using the first Screen section.
        [ 9.661] (==) No screen section available. Using defaults.
        [ 9.661] (**) |-->Screen "Default Screen Section" (0)
        [ 9.661] (**) | |-->Monitor "<default monitor>"
        [ 9.661] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
        [ 9.661] (**) | |-->Device "AMDgpu"
        [ 9.661] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
        [ 9.661] (==) Automatically adding devices
        [ 9.661] (==) Automatically enabling devices
        [ 9.661] (==) Automatically adding GPU devices
        [ 9.661] (==) Max clients allowed: 256, resource mask: 0x1fffff
        [ 9.661] (==) FontPath set to:
        catalogue:/etc/X11/fontpath.d,
        built-ins
        [ 9.661] (==) ModulePath set to "/usr/lib64/xorg/modules"
        [ 9.661] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
        [ 9.661] (II) Loader magic: 0x824dc0
        [ 9.661] (II) Module ABI versions:
        [ 9.661] X.Org ANSI C Emulation: 0.4
        [ 9.661] X.Org Video Driver: 20.0
        [ 9.661] X.Org XInput driver : 22.1
        [ 9.661] X.Org Server Extension : 9.0
        [ 9.663] (++) using VT number 1
        
        [ 9.663] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
        [ 9.664] (II) xfree86: Adding drm device (/dev/dri/card0)
        [ 9.667] (--) PCI:*(0:1:0:0) 1002:6811:1458:226c rev 0, Mem @ 0xc0000000/268435456, 0xfea00000/262144, I/O @ 0x0000e000/256, BIOS @ 0x??????
        ??/131072
        [ 9.667] (II) LoadModule: "glx"
        [ 9.667] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
        [ 9.671] (II) Module glx: vendor="X.Org Foundation"
        [ 9.671] compiled for 1.18.4, module version = 1.0.0
        [ 9.672] ABI class: X.Org Server Extension, version 9.0
        [ 9.672] (==) AIGLX enabled
        [ 9.672] (II) LoadModule: "amdgpu"
        [ 9.672] (II) Loading /usr/lib64/xorg/modules/drivers/amdgpu_drv.so
        [ 9.673] (II) Module amdgpu: vendor="X.Org Foundation"
        [ 9.673] compiled for 1.18.4, module version = 1.1.2
        [ 9.673] Module class: X.Org Video Driver
        [ 9.673] ABI class: X.Org Video Driver, version 20.0
        [ 9.673] (II) AMDGPU: Driver for AMD Radeon chipsets: OLAND, OLAND, OLAND, OLAND,
        *snip*
        [ 9.675] (II) [KMS] Kernel modesetting enabled.
        [ 9.676] (EE) AMDGPU(0): amdgpu_device_initialize failed
        [ 9.676] (II) [KMS] Kernel modesetting enabled.
        [ 9.676] (EE) AMDGPU(G0): amdgpu_device_initialize failed
        [ 9.676] (II) [KMS] Kernel modesetting enabled.
        [ 9.676] (EE) AMDGPU(1): amdgpu_device_initialize failed
        [ 9.676] (EE) Screen 0 deleted because of no matching config section.
        [ 9.676] (II) UnloadModule: "amdgpu"
        [ 9.676] (EE) Screen 0 deleted because of no matching config section.
        [ 9.677] (II) UnloadModule: "amdgpu"
        [ 9.677] (EE) Device(s) detected, but none match those in the config file.
        [ 9.677] (EE)
        Fatal server error:
        [ 9.677] (EE) no screens found(EE)
        [ 9.677] (EE)
        The current implementation for SI in this kernel is likely very incomplete, so I would wait for it to land in the latest kernel first...
        So, if SI support gets into kernel 4.9 as they're currently planning (or perhaps it's already happened?), it could be back-ported into this kernel as early as Kernel 4.9rc1, if things go well? Just a shot in the dark.

        Comment


        • Would someone mind answering something for me? I'm looking at getting an rx 460 and was wondering if amdgpu is now built into the kernel i.e. will it work out of the box with Fedora?

          Comment


          • Originally posted by dcrdev View Post
            Would someone mind answering something for me? I'm looking at getting an rx 460 and was wondering if amdgpu is now built into the kernel i.e. will it work out of the box with Fedora?
            I believe as of kernel 4.7 in Fedora 24+, it will work "out of the box". I would suggest though to also install the xorg driver if youre not using wayland, as it works a bit better than the default modesetting driver:

            Code:
            sudo dnf install xorg-x11-drv-amdgpu
            This was released in Fedora 24 a couple weeks ago.

            This kernel on the other hand may improve your experience with the card, as it has some fixes yet to land in the stable kernels. It can be installed with very little issue. I suggest installing it along with my build of mesa, described in the link below:

            Comment


            • Heads up, kernel 4.7.6-20161003 failed to boot on my computer. I'm removing this build for the time being.

              Comment


              • Just registered to express my gratitude to you, Mystro256. I've used your coprs for the last weeks.

                Kernel 4.7.6-20161003 neither boots on my systems. I'll reply later when I'll have tested your next build.

                Comment


                • Originally posted by Mystro256 View Post
                  If anyone is interested, I compiled the amd-staging-4.6 kernel for Fedora 24 and added all the latest security patches included in Fedora's official kernel.

                  Obviously use this at your own risk, but I use it on my main machine with my RX 480 and haven't had any issues with it yet.

                  This includes the DAL/freesync code, along with the latest amdgpu, and will enable audio over HDMI for more recent cards (i.e. Ppolaris):

                  https://copr.fedorainfracloud.org/co...staging-kernel

                  Note that amdgpu refers to the kernel module, which works with both mesa (free, via radionsi) and AMDGPU-PRO (non-free, based on fglrx).
                  Also, note that I have yet to get AMDGPU-PRO working on fedora, I will likely get it pushed into rpmfusion when it does, but feel free to check out my work in progress here.
                  Just installed this, and it fixed an issue that I was having where my monitor could not be set to 144Hz because the display would become unusable. This will be awesome once it gets mainstreamed into the kernel! Great work!

                  Comment


                  • Kernel 4.7.6-20161006 boots up for me. But there's no improvement to running SI (PITCAIRN) on amdgpu. By applying
                    Code:
                    amdgpu.exp_hw_support=1 modprobe.blacklist=radeon
                    as kernel parameters GDM and Gnome only start up with Wayland and suffer from serious stuttering. Do I miss anything?

                    Comment


                    • Originally posted by Girolamo_Cavazzoni View Post
                      Kernel 4.7.6-20161006 boots up for me. But there's no improvement to running SI (PITCAIRN) on amdgpu. By applying
                      Code:
                      amdgpu.exp_hw_support=1 modprobe.blacklist=radeon
                      as kernel parameters GDM and Gnome only start up with Wayland and suffer from serious stuttering. Do I miss anything?
                      I'm guessing that SI is still a WIP. Hold tight for now.

                      Comment

                      Working...
                      X