Announcement

Collapse
No announcement yet.

Radeon GPU driver fails modeset

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Radeon GPU driver fails modeset

    My GPU appears to be working but the inxi report says it failed modesetting.
    I am having trouble finding info on this. Any help or info will be appreciated.

    System: Host: housebox Kernel: 4.10.0-041000-generic x86_64 (64 bit)
    Desktop: KDE Plasma 5.9.5 Distro: Ubuntu 17.04
    Machine: Device: desktop Mobo: Acer model: Aspire TC-780A
    UEFI: American Megatrends v: R01-A1 date: 06/22/2016
    CPU: Quad core Intel Core i5-6400 (-MCP-) cache: 6144 KB
    clock speeds:max: 3300 MHz 1: 1112 MHz 2: 1117 MHz 3: 1035 MHz
    4: 1101 MHz
    Graphics: Card: Advanced Micro Devices [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM
    ]
    Display Server: X.Org 1.19.3 driver:FAILED: modesetting
    Resolution: 1920x1080@60.00hz, 1440x900@59.89hz
    GLX Renderer: Gallium 0.4 on AMD BONAIRE (DRM 2.49.0 / 4.10.0-041000-generic,
    LLVM 4.0.1)


    #2
    https://help.ubuntu.com/community/RadeonDriver
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #3
      It appears to be working. But why does inxi say failed modesetting?

      michaela@housebox:~$ dmesg | egrep 'drm|radeon'
      [ 1.191719] [drm] Initialized
      [ 1.213344] [drm] radeon kernel modesetting enabled.
      [ 1.217671] fb: switching to radeondrmfb from EFI VGA
      [ 1.217759] radeon 0000:01:00.0: enabling device (0006 -> 0007)
      [ 1.217974] [drm] initializing kernel modesetting (BONAIRE 0x1002:0x665F 0x1682:0x736
      0 0x81).
      [ 1.217983] [drm] register mmio base: 0xDFE00000
      [ 1.217983] [drm] register mmio size: 262144
      [ 1.217986] [drm] doorbell mmio base: 0xD0000000
      [ 1.217986] [drm] doorbell mmio size: 8388608
      [ 1.218004] [drm] ACPI VFCT contains a BIOS for 01:00.0 1002:665f, size 65536
      [ 1.218163] radeon 0000:01:00.0: VRAM: 2048M 0x0000000000000000 - 0x000000007FFFFFFF
      (2048M used)
      [ 1.218163] radeon 0000:01:00.0: GTT: 2048M 0x0000000080000000 - 0x00000000FFFFFFFF
      [ 1.218166] [drm] Detected VRAM RAM=2048M, BAR=256M
      [ 1.218166] [drm] RAM width 128bits DDR
      [ 1.218251] [drm] radeon: 2048M of VRAM memory ready
      [ 1.218251] [drm] radeon: 2048M of GTT memory ready.
      [ 1.218259] [drm] Loading bonaire Microcode
      [ 1.218353] [drm] Internal thermal controller with fan control
      [ 1.218372] [drm] probing gen 2 caps for device 8086:1901 = 261ad03/e
      [ 1.227221] [drm] radeon: dpm initialized
      [ 1.227266] [drm] Found UVD firmware Version: 1.64 Family ID: 9
      [ 1.229816] [drm] Found VCE firmware/feedback version 40.2.2 / 15!
      [ 1.230141] [drm] GART: num cpu pages 524288, num gpu pages 524288
      [ 1.231196] [drm] probing gen 2 caps for device 8086:1901 = 261ad03/e
      [ 1.231199] [drm] PCIE gen 3 link speeds already enabled
      [ 1.243783] [drm] PCIE GART of 2048M enabled (table at 0x000000000030E000).
      [ 1.243885] radeon 0000:01:00.0: WB enabled
      [ 1.243889] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000080000c
      00 and cpu addr 0xffff99375b0abc00
      [ 1.243890] radeon 0000:01:00.0: fence driver on ring 1 use gpu addr 0x0000000080000c
      04 and cpu addr 0xffff99375b0abc04
      [ 1.243890] radeon 0000:01:00.0: fence driver on ring 2 use gpu addr 0x0000000080000c
      08 and cpu addr 0xffff99375b0abc08
      [ 1.243891] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000080000c
      0c and cpu addr 0xffff99375b0abc0c
      [ 1.243892] radeon 0000:01:00.0: fence driver on ring 4 use gpu addr 0x0000000080000c
      10 and cpu addr 0xffff99375b0abc10
      [ 1.244287] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000078d
      30 and cpu addr 0xffffb25681838d30
      [ 1.244408] radeon 0000:01:00.0: fence driver on ring 6 use gpu addr 0x0000000080000c
      18 and cpu addr 0xffff99375b0abc18
      [ 1.244409] radeon 0000:01:00.0: fence driver on ring 7 use gpu addr 0x0000000080000c
      1c and cpu addr 0xffff99375b0abc1c
      [ 1.244409] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
      [ 1.244410] [drm] Driver supports precise vblank timestamp query.
      [ 1.244440] radeon 0000:01:00.0: radeon: using MSI.
      [ 1.244457] [drm] radeon: irq initialized.
      [ 1.246959] [drm] ring test on 0 succeeded in 3 usecs
      [ 1.247040] [drm] ring test on 1 succeeded in 3 usecs
      [ 1.247055] [drm] ring test on 2 succeeded in 3 usecs
      [ 1.247254] [drm] ring test on 3 succeeded in 5 usecs
      [ 1.247261] [drm] ring test on 4 succeeded in 4 usecs
      [ 1.293088] [drm] ring test on 5 succeeded in 2 usecs
      [ 1.313020] [drm] UVD initialized successfully.
      [ 1.422276] [drm] ring test on 6 succeeded in 18 usecs
      [ 1.422286] [drm] ring test on 7 succeeded in 3 usecs
      [ 1.422287] [drm] VCE initialized successfully.
      [ 1.423643] [drm] ib test on ring 0 succeeded in 0 usecs
      [ 1.423680] [drm] ib test on ring 1 succeeded in 0 usecs
      [ 1.952398] [drm] ib test on ring 2 succeeded in 0 usecs
      [ 1.952469] [drm] ib test on ring 3 succeeded in 0 usecs
      [ 1.952515] [drm] ib test on ring 4 succeeded in 0 usecs
      [ 2.464367] [drm] ib test on ring 5 succeeded
      [ 2.485323] [drm] ib test on ring 6 succeeded
      [ 2.486212] [drm] ib test on ring 7 succeeded
      [ 2.487355] [drm] Radeon Display Connectors
      [ 2.487356] [drm] Connector 0:
      [ 2.487356] [drm] DP-1
      [ 2.487356] [drm] HPD2
      [ 2.487357] [drm] DDC: 0x6540 0x6540 0x6544 0x6544 0x6548 0x6548 0x654c 0x654c
      [ 2.487357] [drm] Encoders:
      [ 2.487358] [drm] DFP1: INTERNAL_UNIPHY2
      [ 2.487358] [drm] Connector 1:
      [ 2.487358] [drm] HDMI-A-1
      [ 2.487359] [drm] HPD3
      [ 2.487359] [drm] DDC: 0x6550 0x6550 0x6554 0x6554 0x6558 0x6558 0x655c 0x655c
      [ 2.487359] [drm] Encoders:
      [ 2.487360] [drm] DFP2: INTERNAL_UNIPHY2
      [ 2.487360] [drm] Connector 2:
      [ 2.487360] [drm] DVI-D-1
      [ 2.487361] [drm] HPD1
      [ 2.487361] [drm] DDC: 0x6560 0x6560 0x6564 0x6564 0x6568 0x6568 0x656c 0x656c
      [ 2.487361] [drm] Encoders:
      [ 2.487362] [drm] DFP3: INTERNAL_UNIPHY1
      [ 2.487362] [drm] Connector 3:
      [ 2.487362] [drm] DVI-I-1
      [ 2.487362] [drm] HPD6
      [ 2.487363] [drm] DDC: 0x6580 0x6580 0x6584 0x6584 0x6588 0x6588 0x658c 0x658c
      [ 2.487363] [drm] Encoders:
      [ 2.487364] [drm] DFP4: INTERNAL_UNIPHY
      [ 2.487364] [drm] CRT1: INTERNAL_KLDSCP_DAC1
      [ 2.607143] [drm] fb mappable at 0xC0721000
      [ 2.607143] [drm] vram apper at 0xC0000000
      [ 2.607143] [drm] size 8294400
      [ 2.607144] [drm] fb depth is 24
      [ 2.607144] [drm] pitch is 7680
      [ 2.607265] fbcon: radeondrmfb (fb0) is primary device
      [ 2.691622] radeon 0000:01:00.0: fb0: radeondrmfb frame buffer device
      [ 2.707238] [drm] Initialized radeon 2.49.0 20080528 for 0000:01:00.0 on minor 0

      Comment


        #4
        Do
        lsmod
        as root and see what video driver you are using.
        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment


          #5
          The drm says radeon...

          michaela@housebox:~$ sudo lsmod
          [sudo] password for michaela:
          Module Size Used by
          ccm 20480 3
          xt_multiport 16384 1
          cmac 16384 1
          rfcomm 77824 4
          bnep 20480 2
          nls_iso8859_1 16384 1
          sparse_keymap 16384 0
          intel_rapl 20480 0
          x86_pkg_temp_thermal 16384 0
          intel_powerclamp 16384 0
          kvm_intel 200704 0
          kvm 593920 1 kvm_intel
          arc4 16384 2
          iwlmvm 368640 0
          mac80211 782336 1 iwlmvm
          irqbypass 16384 1 kvm
          joydev 20480 0
          input_leds 16384 0
          crct10dif_pclmul 16384 0
          crc32_pclmul 16384 0
          iwlwifi 229376 1 iwlmvm
          ghash_clmulni_intel 16384 0
          cryptd 24576 1 ghash_clmulni_intel
          intel_cstate 20480 0
          btusb 45056 0
          intel_rapl_perf 16384 0
          snd_hda_codec_realtek 90112 1
          snd_hda_codec_generic 73728 1 snd_hda_codec_realtek
          snd_hda_codec_hdmi 49152 1
          snd_hda_intel 36864 4
          snd_hda_codec 126976 4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_gen eric,s
          nd_hda_codec_realtek
          snd_seq_midi 16384 0
          snd_seq_midi_event 16384 1 snd_seq_midi
          snd_hda_core 81920 5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd _hda_c
          odec_generic,snd_hda_codec_realtek
          cfg80211 602112 3 iwlmvm,iwlwifi,mac80211
          snd_rawmidi 32768 1 snd_seq_midi
          snd_hwdep 16384 1 snd_hda_codec
          hci_uart 98304 0
          btrtl 16384 1 btusb
          btbcm 16384 2 hci_uart,btusb
          snd_pcm 102400 4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_c odec_h
          dmi
          snd_seq 65536 2 snd_seq_midi_event,snd_seq_midi
          btqca 16384 1 hci_uart
          btintel 16384 2 hci_uart,btusb
          bluetooth 557056 35 btrtl,hci_uart,btintel,btqca,bnep,btbcm,rfcomm,btu sb
          snd_seq_device 16384 3 snd_seq,snd_rawmidi,snd_seq_midi
          snd_timer 32768 2 snd_seq,snd_pcm
          serio_raw 16384 0
          snd 77824 19 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_ timer
          ,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_gene ric,snd_seq_device,snd_hda_codec_realt
          ek,snd_pcm
          mei_me 40960 0
          soundcore 16384 1 snd
          shpchp 36864 0
          mei 102400 1 mei_me
          intel_lpss_acpi 16384 0
          intel_lpss 16384 1 intel_lpss_acpi
          intel_pch_thermal 16384 0
          acpi_als 16384 0
          acpi_pad 180224 0
          kfifo_buf 16384 1 acpi_als
          industrialio 69632 2 acpi_als,kfifo_buf
          mac_hid 16384 0
          tpm_crb 16384 0
          ip6t_REJECT 16384 1
          nf_reject_ipv6 16384 1 ip6t_REJECT
          nf_log_ipv6 16384 5
          xt_hl 16384 22
          ip6t_rt 16384 3
          nf_conntrack_ipv6 20480 8
          nf_defrag_ipv6 36864 1 nf_conntrack_ipv6
          ipt_REJECT 16384 1
          nf_reject_ipv4 16384 1 ipt_REJECT
          nf_log_ipv4 16384 5
          nf_log_common 16384 2 nf_log_ipv6,nf_log_ipv4
          xt_LOG 16384 10
          xt_limit 16384 13
          xt_tcpudp 16384 24
          xt_addrtype 16384 4
          nf_conntrack_ipv4 16384 8
          nf_defrag_ipv4 16384 1 nf_conntrack_ipv4
          xt_conntrack 16384 16
          ip6table_filter 16384 1
          ip6_tables 28672 1 ip6table_filter
          nf_conntrack_netbios_ns 16384 0
          nf_conntrack_broadcast 16384 1 nf_conntrack_netbios_ns
          nf_nat_ftp 16384 0
          nf_nat 28672 1 nf_nat_ftp
          libcrc32c 16384 1 nf_nat
          nf_conntrack_ftp 20480 1 nf_nat_ftp
          nf_conntrack 131072 8 nf_conntrack_ipv6,nf_conntrack_ftp,nf_conntrack_ip v4,nf_
          conntrack_broadcast,nf_nat_ftp,nf_conntrack_netbio s_ns,xt_conntrack,nf_nat
          iptable_filter 16384 1
          it87 57344 0
          hwmon_vid 16384 1 it87
          coretemp 16384 0
          parport_pc 32768 0
          ppdev 20480 0
          lp 20480 0
          parport 49152 3 lp,parport_pc,ppdev
          ip_tables 24576 1 iptable_filter
          x_tables 36864 14 xt_LOG,xt_multiport,ipt_REJECT,ip_tables,iptable_f ilter
          ,xt_tcpudp,xt_limit,ip6t_REJECT,ip6table_filter,xt _addrtype,ip6t_rt,xt_conntrack,ip6_tab
          les,xt_hl
          autofs4 40960 2
          uas 24576 0
          usb_storage 69632 1 uas
          hid_logitech_hidpp 28672 0
          hid_logitech_dj 20480 0
          usbhid 53248 0
          amdkfd 139264 1
          amd_iommu_v2 20480 1 amdkfd
          radeon 1507328 15
          i2c_algo_bit 16384 1 radeon
          ttm 98304 1 radeon
          drm_kms_helper 151552 1 radeon
          psmouse 139264 0
          syscopyarea 16384 1 drm_kms_helper
          sysfillrect 16384 1 drm_kms_helper
          sysimgblt 16384 1 drm_kms_helper
          fb_sys_fops 16384 1 drm_kms_helper
          r8169 81920 0
          drm 352256 9 radeon,ttm,drm_kms_helper
          ahci 36864 3
          mii 16384 1 r8169
          libahci 32768 1 ahci
          wmi 16384 0
          pinctrl_sunrisepoint 28672 0
          video 40960 0
          i2c_hid 20480 0
          pinctrl_intel 20480 1 pinctrl_sunrisepoint
          hid 114688 6 i2c_hid,usbhid,hid_logitech_dj,hid_logitech_hidpp
          fjes 73728 0

          Comment


            #6
            I did a "modinfo radeon" and it has more parms adjustments than any module I've ever seen!
            Code:
            [FONT=monospace][COLOR=#000000]depends:        drm,drm_kms_helper,ttm,i2c-algo-bit[/COLOR]
            intree:         Y
            vermagic:       4.8.0-42-generic SMP mod_unload modversions  
            parm:           no_wb:Disable AGP writeback for scratch registers (int)
            parm:           modeset:Disable/Enable modesetting (int)
            parm:           dynclks:Disable/Enable dynamic clocks (int)
            parm:           r4xx_atom:Enable ATOMBIOS modesetting for R4xx (int)
            parm:           vramlimit:Restrict VRAM for testing, in megabytes (int)
            parm:           agpmode:AGP Mode (-1 == PCI) (int)
            parm:           gartsize:Size of PCIE/IGP gart to setup in megabytes (32, 64, etc., -1 = auto) (int)
            parm:           benchmark:Run benchmark (int)
            parm:           test:Run tests (int)
            parm:           connector_table:Force connector table (int)
            parm:           tv:TV enable (0 = disable) (int)
            parm:           audio:Audio enable (-1 = auto, 0 = disable, 1 = enable) (int)
            parm:           disp_priority:Display Priority (0 = auto, 1 = normal, 2 = high) (int)
            parm:           hw_i2c:hw i2c engine enable (0 = disable) (int)
            parm:           pcie_gen2:PCIE Gen2 mode (-1 = auto, 0 = disable, 1 = enable) (int)
            parm:           msi:MSI support (1 = enable, 0 = disable, -1 = auto) (int)
            parm:           lockup_timeout:GPU lockup timeout in ms (default 10000 = 10 seconds, 0 = disable) (int)
            parm:           fastfb:Direct FB access for IGP chips (0 = disable, 1 = enable) (int)
            parm:           dpm:DPM support (1 = enable, 0 = disable, -1 = auto) (int)
            parm:           aspm:ASPM support (1 = enable, 0 = disable, -1 = auto) (int)
            parm:           runpm:PX runtime pm (1 = force enable, 0 = disable, -1 = PX only default) (int)
            parm:           hard_reset:PCI config reset (1 = force enable, 0 = disable (default)) (int)
            parm:           vm_size:VM address space size in gigabytes (default 4GB) (int)
            parm:           vm_block_size:VM page table size in bits (default depending on vm_size) (int)
            parm:           deep_color:Deep Color support (1 = enable, 0 = disable (default)) (int)
            parm:           use_pflipirq:Pflip irqs for pageflip completion (0 = disable, 1 = as fallback, 2 = exclusive (default)) (int)
            parm:           bapm:BAPM support (1 = enable, 0 = disable, -1 = auto) (int)
            parm:           backlight:backlight support (1 = enable, 0 = disable, -1 = auto) (int)
            parm:           auxch:Use native auxch experimental support (1 = enable, 0 = disable, -1 = auto) (int)
            parm:           mst:DisplayPort MST experimental support (1 = enable, 0 = disable) (int)
            parm:           uvd:uvd enable/disable uvd support (1 = enable, 0 = disable) (int)
            parm:           vce:vce enable/disable vce support (1 = enable, 0 = disable) (int)
            
            [/FONT]
            in /etc/modprobe.d/ you can add a script file, radeon.conf, and in it put options that change parms settings shown above, like this:
            options radeon tv=0
            options radeon modset=0
            etc....
            ...
            and experiment with the options you think may best solve your problem. When you make a change log out and back in to test the change.

            You can also check the dependency modules to see if they have any params that can be modified the same way.
            "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
            – John F. Kennedy, February 26, 1962.

            Comment


              #7
              Oh wow. interesting.
              This is more in depth than I am used to.

              Thank you. I look forward to trying this.

              Do I need to set all the options or just the ones I see as relevant?

              Comment


                #8
                Originally posted by michaelaelise View Post
                Oh wow. interesting.
                This is more in depth than I am used to.

                Thank you. I look forward to trying this.

                Do I need to set all the options or just the ones I see as relevant?
                One or all, it's up to what you decide might be helpful based on the param.
                "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                – John F. Kennedy, February 26, 1962.

                Comment


                  #9
                  So I still don't know what modesetting is. Can you link me or inform me as to what that is please?

                  Comment


                    #10
                    Originally posted by michaelaelise View Post
                    So I still don't know what modesetting is. Can you link me or inform me as to what that is please?
                    First, here is turning it off:
                    https://askubuntu.com/questions/2071...s-nomodeset-do

                    And here is what it is (in Ubuntu)
                    http://manpages.ubuntu.com/manpages/...setting.4.html

                    Where
                    DRM: Direct Rendering Manager
                    KMS : Kernel Mode Setting.
                    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                    – John F. Kennedy, February 26, 1962.

                    Comment


                      #11
                      Hmm. setting the options both modesetting=0|1 still produces the same inxi report.
                      Before upgrading to 17.04 it looked more like this

                      drivers: ati,radeon (unloaded: modesetting,fbdev
                      ,vesa)
                      <- from my computer at work. which is running 17.04 but with a much older gpu

                      Comment


                        #12
                        Originally posted by michaelaelise View Post
                        So I still don't know what modesetting is. Can you link me or inform me as to what that is please?
                        Maybe a little more information. In strictest terms modesetting is where a video card hardware sets display modes as opposed to using software (VESA) modes to set video display. Kernel modesetting (KMS) is when the kernel communicates directly with hardware to set the video mode in kernel space instead of userspace and some video chipsets require that (Intel, for one).

                        What's not immediately apparent is that if you disable KMS when you start X it will load a modesetting video driver anyway if one is available. For issues with KMS (black screen instead of a grub menu) disabling KMS in kernel argument, like using 'nomodeset' just tells the kernel to use a software video mode instead of using a hardware driver and most of the time will get you past grub

                        Really good readme here - https://wiki.archlinux.org/index.php...l_mode_setting

                        Modesetting stopped me in my tracks not long ago when I tried to install a custom Kubuntu respin on an 8" tablet that came with Windows 10. All the hardware worked just fine but Intel video chipsets require kernel modesetting (KMS) and when I added 'i915.modeset=0' as a kernel argument the tablet would boot and ran just fine, but the screen refused to rotate because of the lack of a modesetting video driver - and lack of screen rotation is a dealbreaker for me if I'm using a tablet.

                        Hope this explains a little -
                        we see things not as they are, but as we are.
                        -- anais nin

                        Comment


                          #13
                          To install kubuntu I had to
                          Code:
                          apt remove xserver-xorg-video-*
                          because of broken packages.
                          I am going to reinstall it and see what happens.

                          Comment


                            #14
                            Ok, so re-installing that manually fixed it.

                            Graphics: Card: Advanced Micro Devices [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM
                            ]
                            Display Server: X.Org 1.19.3 drivers: ati,radeon (unloaded: modesetting,fbdev
                            ,vesa)
                            Resolution: 1920x1080@60.00hz, 1440x900@59.89hz
                            GLX Renderer: Gallium 0.4 on AMD BONAIRE (DRM 2.49.0 / 4.10.0-041000-generic,
                            LLVM 4.0.1)
                            GLX Version: 3.0 Mesa 17.2.0-devel

                            Now it's all good!

                            Thank you guys for the info!!!!

                            Comment

                            Working...
                            X