Announcement

Collapse
No announcement yet.

Updated and Optimized Ubuntu Free Graphics Drivers

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

  • OpenCL bugs...

    I have some question, mostly for AMD opensource driver devs.

    I gave a try to clpeak (small opensource opencl tool to test/benchmark device CL bandwidth, etc) on opensource stack, using kernel 3.15RC3 and oibaf PPA with updated drivers. GPU used was Evergreen-based HD5770 ("Juniper"). GPU crashes during test when program tests "float16" memory bandwidth. Then GPU recovery fails. The question is: where to should I report bug? This one seems to be two-fold: one is that GPU recovery fails and another one that GPU locks up (wrong code was generated?). First one is likely to be for mainline kernel. Second one ... hmm where to I should report GPU lockup on openCL usage? This seems to be invalid code or so. Is it opencl lib bug? LLVM bug? Some MESA parts bug?

    P.S. on side note, clinfo also fails with opensource stack but it just outputs "E: -30" and exits. At least it not harmful, even though it causes no real information about opencl.
    P.P.S. and shouldn't driver try to do some better recovery? Say, if some ring test failed - maybe do full GPU reset/reinit and try again? Maybe trash some/most/all commands in CP, etc to avoid getting stuck again? Doing full system reboot due to complately failed graphic is annoying. And in cases like this, driver just keeps trying to recover every 10 seconds with exactly same result - it does not progresses so "recovery" is rather useless.

    Program output:
    Code:
    Platform: Default
      Device: AMD JUNIPER
        Driver version  : 10.2.0-devel (Linux x64)
        Compute units   : 1
        Clock frequency : 850 MHz
    
        Global memory bandwidth (GBPS)
          float   : 24.45
          float2  : 29.14
          float4  : 20.13
          float8  : 18.81
          float16 :
    Kernel error message
    Code:
    May  1 09:25:57 u64 kernel: [  543.768855] radeon 0000:01:00.0: ring 0 stalled for more than 10000msec
    May  1 09:25:57 u64 kernel: [  543.768865] radeon 0000:01:00.0: GPU lockup (waiting for 0x00000000000017b8 last fence id 0x00000000000017b7 on ring 0)
    May  1 09:25:57 u64 kernel: [  543.768903] radeon 0000:01:00.0: failed to get a new IB (-35)
    May  1 09:25:57 u64 kernel: [  543.768912] [drm:radeon_cs_ib_fill] *ERROR* Failed to get ib !
    May  1 09:25:57 u64 kernel: [  544.228664] radeon 0000:01:00.0: Saved 14551 dwords of commands on ring 0.
    May  1 09:25:57 u64 kernel: [  544.228682] radeon 0000:01:00.0: GPU softreset: 0x00000009
    May  1 09:25:57 u64 kernel: [  544.228685] radeon 0000:01:00.0:   GRBM_STATUS               = 0xA0433828
    May  1 09:25:57 u64 kernel: [  544.228688] radeon 0000:01:00.0:   GRBM_STATUS_SE0           = 0x08000007
    May  1 09:25:57 u64 kernel: [  544.228690] radeon 0000:01:00.0:   GRBM_STATUS_SE1           = 0x00000007
    May  1 09:25:57 u64 kernel: [  544.228692] radeon 0000:01:00.0:   SRBM_STATUS               = 0x200000C0
    May  1 09:25:57 u64 kernel: [  544.228694] radeon 0000:01:00.0:   SRBM_STATUS2              = 0x00000000
    May  1 09:25:57 u64 kernel: [  544.228696] radeon 0000:01:00.0:   R_008674_CP_STALLED_STAT1 = 0x00000000
    May  1 09:25:57 u64 kernel: [  544.228698] radeon 0000:01:00.0:   R_008678_CP_STALLED_STAT2 = 0x00018000
    May  1 09:25:57 u64 kernel: [  544.228700] radeon 0000:01:00.0:   R_00867C_CP_BUSY_STAT     = 0x00010002
    May  1 09:25:57 u64 kernel: [  544.228702] radeon 0000:01:00.0:   R_008680_CP_STAT          = 0x80038647
    May  1 09:25:57 u64 kernel: [  544.228705] radeon 0000:01:00.0:   R_00D034_DMA_STATUS_REG   = 0x44C83D57
    May  1 09:25:57 u64 kernel: [  544.237085] radeon 0000:01:00.0: GRBM_SOFT_RESET=0x00007F6B
    May  1 09:25:57 u64 kernel: [  544.237139] radeon 0000:01:00.0: SRBM_SOFT_RESET=0x00000100
    May  1 09:25:57 u64 kernel: [  544.238295] radeon 0000:01:00.0:   GRBM_STATUS               = 0x00003828
    May  1 09:25:57 u64 kernel: [  544.238298] radeon 0000:01:00.0:   GRBM_STATUS_SE0           = 0x00000007
    May  1 09:25:57 u64 kernel: [  544.238300] radeon 0000:01:00.0:   GRBM_STATUS_SE1           = 0x00000007
    May  1 09:25:57 u64 kernel: [  544.238302] radeon 0000:01:00.0:   SRBM_STATUS               = 0x200000C0
    May  1 09:25:57 u64 kernel: [  544.238304] radeon 0000:01:00.0:   SRBM_STATUS2              = 0x00000000
    May  1 09:25:57 u64 kernel: [  544.238306] radeon 0000:01:00.0:   R_008674_CP_STALLED_STAT1 = 0x00000000
    May  1 09:25:57 u64 kernel: [  544.238308] radeon 0000:01:00.0:   R_008678_CP_STALLED_STAT2 = 0x00000000
    May  1 09:25:57 u64 kernel: [  544.238310] radeon 0000:01:00.0:   R_00867C_CP_BUSY_STAT     = 0x00000000
    May  1 09:25:57 u64 kernel: [  544.238312] radeon 0000:01:00.0:   R_008680_CP_STAT          = 0x00000000
    May  1 09:25:57 u64 kernel: [  544.238315] radeon 0000:01:00.0:   R_00D034_DMA_STATUS_REG   = 0x44C83D57
    May  1 09:25:57 u64 kernel: [  544.238336] radeon 0000:01:00.0: GPU reset succeeded, trying to resume
    May  1 09:25:57 u64 kernel: [  544.398195] [drm] PCIE gen 2 link speeds already enabled
    May  1 09:25:57 u64 kernel: [  544.401798] [drm] PCIE GART of 1024M enabled (table at 0x000000000025D000).
    May  1 09:25:57 u64 kernel: [  544.401878] radeon 0000:01:00.0: WB enabled
    May  1 09:25:57 u64 kernel: [  544.401881] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000020000c00 and cpu addr 0xffff880415095c00
    May  1 09:25:57 u64 kernel: [  544.401883] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000020000c0c and cpu addr 0xffff880415095c0c
    May  1 09:25:57 u64 kernel: [  544.402776] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x000000000005c418 and cpu addr 0xffffc9001229c418
    May  1 09:25:58 u64 kernel: [  544.595159] [drm:r600_ring_test] *ERROR* radeon: ring 0 test failed (scratch(0x8504)=0xCAFEDEAD)
    May  1 09:25:58 u64 kernel: [  544.595162] [drm:evergreen_resume] *ERROR* evergreen startup failed on resume
    May  1 09:25:58 u64 kernel: [  544.595344] [drm:radeon_pm_resume_dpm] *ERROR* radeon: dpm resume failed
    May  1 09:25:58 u64 kernel: [  544.761946] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0018 address=0x000000fffffff060 flags=0x0030]
    May  1 09:25:58 u64 kernel: [  544.761952] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0018 address=0x000000ffffffe800 flags=0x0030]
    May  1 09:25:58 u64 kernel: [  544.811364] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0018 address=0x000000fffffff070 flags=0x0030]
    May  1 09:25:58 u64 kernel: [  544.811369] AMD-Vi: Event logged [IO_PAGE_FAULT device=01:00.0 domain=0x0018 address=0x000000ffffffe800 flags=0x0030]

    Comment


    • Originally posted by Dukenukemx View Post
      Forget my last post, it seems the drivers are suppose to show that. But still Steam reports no direct rendering. Played a game through Wine and it works fine. Even faster then binary.
      I have the same problem ! Since the update about 2 days ago, I get the Steam error and can't run Steam games. If I purge PPA, everything works fine...now I see the mesa was updated in the PPA, but my apt-get upgrade doesn't provide any updates

      Comment


      • Ubuntu 14.04: Steam says no direct rendering

        Similar to the two posters above, on Ubuntu 14.04, steam is saying there is no direct rendering. Here is the relevant part of steam's output:
        Code:
        libGL: screen 0 does not appear to be DRI3 capable
        libGL: pci id for fd 7: 1002:68d8, driver r600
        libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/tls/r600_dri.so
        libGL: OpenDriver: trying /usr/lib/i386-linux-gnu/dri/r600_dri.so
        libGL error: dlopen /usr/lib/i386-linux-gnu/dri/r600_dri.so failed (/usr/games/S
        team/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1: version `G
        CC_4.7.0' not found (required by /usr/lib/i386-linux-gnu/dri/r600_dri.so))
        libGL: OpenDriver: trying ${ORIGIN}/dri/tls/r600_dri.so
        libGL: OpenDriver: trying ${ORIGIN}/dri/r600_dri.so
        libGL error: dlopen ${ORIGIN}/dri/r600_dri.so failed (${ORIGIN}/dri/r600_dri.so:
         cannot open shared object file: No such file or directory)
        libGL: OpenDriver: trying /usr/lib/dri/tls/r600_dri.so
        libGL: OpenDriver: trying /usr/lib/dri/r600_dri.so
        libGL error: dlopen /usr/lib/dri/r600_dri.so failed (/usr/lib/dri/r600_dri.so: c
        annot open shared object file: No such file or directory)
        libGL error: unable to load driver: r600_dri.so
        libGL error: driver pointer missing
        Please let me know if I can provide any other helpful information.

        Comment


        • I didn't change anything packaging side in the last days, so it should be a mesa issue. Please open a bug on freedesktop.

          Comment


          • The problem seems to extend over to Chromium/Firefox as well as Steam. The about:gpu shows the following. It seems to effect more then just Steam. Can anyone confirm?

            Code:
            Graphics Feature Status
            Canvas: Software only, hardware acceleration unavailable
            3D CSS: Unavailable. Hardware acceleration unavailable
            Compositing: Software only, hardware acceleration unavailable
            CSS Animation: Software only, hardware acceleration unavailable
            Flash 3D: Unavailable. Hardware acceleration unavailable
            Flash Stage3D: Unavailable. Hardware acceleration unavailable
            Flash Stage3D Baseline profile: Unavailable. Hardware acceleration unavailable
            Video: Software only, hardware acceleration unavailable
            Video Decode: Software only, hardware acceleration unavailable
            Video Encode: Software only, hardware acceleration unavailable
            WebGL: Unavailable. Hardware acceleration unavailable
            Firefox's about:support shows a similar problem.
            Code:
            Adapter Description	X.Org -- Gallium 0.4 on AMD CEDAR
            Device ID	Gallium 0.4 on AMD CEDAR
            Driver Version	3.0 Mesa 10.2.0-devel (git-475f5ff saucy-oibaf-ppa)
            GPU Accelerated Windows	0/1 Basic
            Vendor ID	X.Org
            WebGL Renderer	X.Org -- Gallium 0.4 on AMD CEDAR
            windowLayerManagerRemote	false
            AzureCanvasBackend	cairo
            AzureContentBackend	cairo
            AzureFallbackCanvasBackend	none
            AzureSkiaAccelerated	0

            Comment


            • Originally posted by Dukenukemx View Post
              The problem seems to extend over to Chromium/Firefox as well as Steam. The about:gpu shows the following. It seems to effect more then just Steam. Can anyone confirm?

              Code:
              Graphics Feature Status
              Canvas: Software only, hardware acceleration unavailable
              3D CSS: Unavailable. Hardware acceleration unavailable
              Compositing: Software only, hardware acceleration unavailable
              CSS Animation: Software only, hardware acceleration unavailable
              Flash 3D: Unavailable. Hardware acceleration unavailable
              Flash Stage3D: Unavailable. Hardware acceleration unavailable
              Flash Stage3D Baseline profile: Unavailable. Hardware acceleration unavailable
              Video: Software only, hardware acceleration unavailable
              Video Decode: Software only, hardware acceleration unavailable
              Video Encode: Software only, hardware acceleration unavailable
              WebGL: Unavailable. Hardware acceleration unavailable
              Firefox's about:support shows a similar problem.
              Code:
              Adapter Description	X.Org -- Gallium 0.4 on AMD CEDAR
              Device ID	Gallium 0.4 on AMD CEDAR
              Driver Version	3.0 Mesa 10.2.0-devel (git-475f5ff saucy-oibaf-ppa)
              GPU Accelerated Windows	0/1 Basic
              Vendor ID	X.Org
              WebGL Renderer	X.Org -- Gallium 0.4 on AMD CEDAR
              windowLayerManagerRemote	false
              AzureCanvasBackend	cairo
              AzureContentBackend	cairo
              AzureFallbackCanvasBackend	none
              AzureSkiaAccelerated	0
              radeon drivers are blacklisted on chrome :'(

              Comment


              • Originally posted by pandev92 View Post
                radeon drivers are blacklisted on chrome :'(
                And Firefox?

                Comment


                • I have the same problem as the other posters on OpenSUSE + Pontostroy repository, so we can rule out a packaging problem.
                  I also use Nouveau, so this is not only related to Radeon.

                  Code:
                  ~ LIBGL_DEBUG=verbose glxinfo
                  name of display: :0
                  libGL: OpenDriver: trying /usr/lib64/dri/tls/nouveau_dri.so
                  libGL: OpenDriver: trying /usr/lib64/dri/nouveau_dri.so
                  libGL: driver does not expose __driDriverGetExtensions_nouveau(): /usr/lib64/dri/nouveau_dri.so: undefined symbol: __driDriverGetExtensions_nouveau
                  Code:
                  ~ LIBGL_DEBUG=verbose steam
                  Running Steam on opensuse 13.1 64-bit
                  STEAM_RUNTIME is enabled automatically
                  Installing breakpad exception handler for appid(steam)/version(1398287272_client)
                  libGL: OpenDriver: trying /usr/lib/dri/tls/nouveau_dri.so
                  libGL: OpenDriver: trying /usr/lib/dri/nouveau_dri.so
                  libGL error: dlopen /usr/lib/dri/nouveau_dri.so failed (/home/spittie/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1: version `GCC_4.7.0' not found (required by /usr/lib/dri/nouveau_dri.so))
                  libGL error: unable to load driver: nouveau_dri.so
                  libGL error: driver pointer missing
                  libGL error: failed to load driver: nouveau
                  libGL: OpenDriver: trying /usr/lib/dri/tls/swrast_dri.so
                  libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so
                  libGL error: dlopen /usr/lib/dri/swrast_dri.so failed (/home/spittie/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1: version `GCC_4.7.0' not found (required by /usr/lib/dri/swrast_dri.so))
                  libGL error: unable to load driver: swrast_dri.so
                  libGL error: failed to load driver: swrast
                  Installing breakpad exception handler for appid(steam)/version(1398287272_client)
                  Installing breakpad exception handler for appid(steam)/version(1398287272_client)
                  Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
                  Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
                  Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
                  libGL: OpenDriver: trying /usr/lib/dri/tls/nouveau_dri.so
                  libGL: OpenDriver: trying /usr/lib/dri/nouveau_dri.so
                  [0502/000624:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation
                  libGL error: dlopen /usr/lib/dri/nouveau_dri.so failed (/home/spittie/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1: version `GCC_4.7.0' not found (required by /usr/lib/dri/nouveau_dri.so))
                  libGL error: unable to load driver: nouveau_dri.so
                  libGL error: driver pointer missing
                  libGL error: failed to load driver: nouveau
                  libGL: OpenDriver: trying /usr/lib/dri/tls/swrast_dri.so
                  libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so
                  libGL error: dlopen /usr/lib/dri/swrast_dri.so failed (/home/spittie/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1: version `GCC_4.7.0' not found (required by /usr/lib/dri/swrast_dri.so))
                  libGL error: unable to load driver: swrast_dri.so
                  libGL error: failed to load driver: swrast
                  Error: OpenGL GLX context is not using direct rendering, which may cause performance problems.
                  But I can start a game and it does seems to be using hardware acceleration.
                  Probably the most annoying thing is that I also get a blinking/flickering cursor :<

                  Sorry for posting here while not using your PPA, I just wanted to confirm that it's not packaging/radeon related.

                  Comment


                  • Originally posted by Dukenukemx View Post
                    And Firefox?
                    For firefox you need to manually enable MOTC for OpenGl composting since version 28 even if the driver is working
                    http://featherweightmusings.blogspot...n-firefox.html

                    Comment


                    • Guys with the GCC error, that is Steam's fault.

                      Steam is shipping an older version of a lib than your Mesa was compiled against, and forcing it to be loaded. This obviously breaks.

                      Solution: remove Steam's version of that lib, use your system's version.

                      Comment

                      Working...
                      X