Announcement

Collapse
No announcement yet.

Initial R6xx/R7xx 3D Driver

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

  • #51
    The r600 string appears in the radeon_drv.so file; about the glxinfo output, I can't provide it immediately because I'm working remotely and I'm unable to get a proper display offering the same capabilities it would locally. I will update as soon as I can.

    Comment


    • #52
      Also it's best if you use "pastebin" for logs, so we can see the entire log. Maybe include dmesg output as well.
      Test signature

      Comment


      • #53
        Ok, in the meanwhile here's the full Xorg.0.log output on pastebin: http://pastebin.com/f35b5c84a

        and here's the DRM bit of dmesg:

        Code:
        pci 0000:01:05.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
        [drm] Initialized drm 1.1.0 20060810
        radeon 0000:01:05.0: setting latency timer to 64
        [drm] Initialized radeon 1.29.0 20080613 on minor 0
        [drm] Setting GART location based on new memory map
        [drm] Loading RS780 CP Microcode
        [drm] Loading RS780 PFP Microcode
        [drm] Resetting GPU
        [drm] writeback test succeeded in 1 usecs

        Comment


        • #54
          Sorry about the delay, here's glxinfo:

          Code:
          name of display: :0.0     
          [r600]  Mappings:         
                  Registers                         cpu 0x7f4fa54e5000   size 0x00010000   handle 0xfdfe0000
                  Status                            cpu 0x7f4fa54e4000   size 0x00001000   handle 0x1f000000
                  GART           gpu 0x00c8000000                                                           
                  DRM buffers    gpu 0x00c8102000   cpu 0x7f4f989be000   size 0x00200000                    
                  GART Textures  gpu 0x00c8302000   cpu 0x7f4f98bbe000   size 0x01c80000   handle 0x2f001000
                  Framebuffer    gpu 0x00c0000000   cpu 0x7f4f9a83e000   size 0x07ff0000                    
                  Front Target   gpu 0x00c0000000   cpu 0x7f4f9a83e000   size 0x00b7c000   pitch 0x0700     
                  Back  Target   gpu 0x00c0b84000   cpu 0x7f4f9b3c2000   size 0x00b7c000   pitch 0x0700     
                  Depth Target   gpu 0x00c1700000   cpu 0x7f4f9bf3e000   size 0x00b7c000   pitch 0x0700     
          
          Mesa: Initializing x86-64 optimizations
          Mesa: Mesa 7.2 DEBUG build Apr 23 2009 11:33:40
          Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
          [r600] r600MakeCurrent   (r600_context.c:413)                                                  
          [r600]    Context 0x61d400 Draw 0x6a9df0 Read 0x6a9df0                                         
          display: :0  screen: 0                                                                         
          direct rendering: Yes                                                                          
          server glx vendor string: SGI                                                                  
          server glx version string: 1.2                                                                 
          server glx extensions:                                                                         
              GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,                           
              GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,                  
              GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe,                       
              GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig, GLX_MESA_copy_sub_buffer                         
          client glx vendor string: SGI                                                                  
          client glx version string: 1.4                                                                 
          client glx extensions:                                                                         
              GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,                     
              GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,                      
              GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,                                           
              GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,                      
              GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,                       
              GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,                                 
              GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap                                  
          GLX version: 1.2                                                                               
          GLX extensions:                                                                                
              GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,                     
              GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method,                                                                                                                                           
              GLX_SGIS_multisample, GLX_SGIX_fbconfig                                                                                                                                                                    
          OpenGL vendor string: rhd DRI project                                                                                                                                                                          
          OpenGL renderer string: R6xx                                                                                                                                                                                   
          OpenGL version string: 1.3 Mesa 7.2                                                                                                                                                                            
          OpenGL extensions:                                                                                                                                                                                             
              GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_multisample,                                                                                                                                         
              GL_ARB_multitexture, GL_ARB_point_parameters, GL_ARB_shadow,
              GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
              GL_ARB_texture_compression, GL_ARB_texture_cube_map,
              GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
              GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
              GL_MESAX_texture_float, GL_ARB_texture_mirrored_repeat,
              GL_ARB_texture_rectangle, GL_ARB_transpose_matrix,
              GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_window_pos,
              GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_equation_separate,
              GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
              GL_EXT_clip_volume_hint, GL_EXT_compiled_vertex_array,
              GL_EXT_copy_texture, GL_EXT_draw_range_elements,
              GL_EXT_gpu_program_parameters, GL_EXT_multi_draw_arrays,
              GL_EXT_packed_pixels, GL_EXT_point_parameters, GL_EXT_polygon_offset,
              GL_EXT_rescale_normal, GL_EXT_secondary_color,
              GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
              GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_subtexture,
              GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
              GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
              GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
              GL_EXT_texture_lod_bias, GL_EXT_texture_mirror_clamp,
              GL_EXT_texture_object, GL_EXT_texture_rectangle, GL_EXT_vertex_array,
              GL_APPLE_packed_pixels, GL_ATI_blend_equation_separate,
              GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once,
              GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,
              GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture,
              GL_MESA_window_pos, GL_NV_blend_square, GL_NV_light_max_exponent,
              GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_NV_vertex_program,
              GL_OES_read_format, GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
              GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SGIX_depth_texture,
              GL_SGIX_shadow_ambient, GL_SUN_multi_draw_arrays
          [r600] r600DestroyContext   (r600_context.c:390)
          
          8 GLX Visuals
             visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
           id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
          ----------------------------------------------------------------------
          0x21 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
          0x22 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
          0xfc 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
          0xfd 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
          0xfe 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
          0x11b 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
          0x11c 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
          0x11d 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
          
          8 GLXFBConfigs:
             visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
           id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
          ----------------------------------------------------------------------
          0x9d  0 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
          0x9e  0 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
          0x9f  0 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
          0xa0  0 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
          0xdd  0 dc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
          0xde  0 dc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
          0xdf  0 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
          0xe0  0 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
          Out of curiosity, I tried to run glxgears and... it wasn't pretty.
          The gears window was filled with vertical white and black lines; the text output again mentioned r600, mostly CopyBuffer lines, but I couldn't capture that because the whole X environment was unusable, except for the mouse pointer. The operating system itself was still running, though. Hope this helps.

          Comment


          • #55
            Hi Everybody,

            The same what Xenon has is happening to me.
            Briefly about my system:
            - Opensuse 11.1
            - kernel 2.6.27.7-9-default
            - KDE 4.1.3
            - X server 1.5.2
            - radeonhd 1.2.5
            - 780G/HD 3200

            dmesg:
            Code:
            [drm] Initialized drm 1.1.0 20060810      
            [drm] Initialized radeon 1.29.0 20080613 on minor 0
            [drm] Used old pci detect: framebuffer loaded      
            [drm] Setting GART location based on new memory map
            [drm] Loading RS780 Microcode                      
            [drm] Resetting GPU                                
            [drm] writeback test succeeded in 1 usecs
            glxinfo:
            Code:
            name of display: :0.0             
            [r600]  Mappings:                 
                    Registers                         cpu 0x7f2dfc785000   size 0x00010000   handle 0xfdfe0000
                    Status                            cpu 0x7f2dfc784000   size 0x00001000   handle 0x1effe000
                    GART           gpu 0x00f0000000                                                           
                    DRM buffers    gpu 0x00f0202000   cpu 0x7f2de879e000   size 0x00200000                    
                    GART Textures  gpu 0x00f0402000   cpu 0x7f2de899e000   size 0x00bc0000   handle 0x2f000000
                    Framebuffer    gpu 0x00d0000000   cpu 0x7f2de955e000   size 0x0fff0000                    
                    Front Target   gpu 0x00d0008000   cpu 0x7f2de9566000   size 0x01194000   pitch 0x0f00     
                    Back  Target   gpu 0x00d2b34000   cpu 0x7f2dec092000   size 0x01194000   pitch 0x0f00     
                    Depth Target   gpu 0x00d3cc8000   cpu 0x7f2ded226000   size 0x01194000   pitch 0x0f00     
            
            Mesa: Initializing x86-64 optimizations
            Mesa: Mesa 7.2 DEBUG build Apr 25 2009 21:35:02
            Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
            [r600] r600MakeCurrent   (r600_context.c:413)                                                  
            [r600]    Context 0x60ed10 Draw 0x6a27f0 Read 0x6a27f0                                         
            display: :0  screen: 0                                                                         
            direct rendering: Yes                                                                          
            server glx vendor string: SGI                                                                  
            server glx version string: 1.2                                                                 
            server glx extensions:                                                                         
                GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,                           
                GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,                  
                GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe,                       
                GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig, GLX_MESA_copy_sub_buffer                         
            client glx vendor string: SGI                                                                  
            client glx version string: 1.4                                                                 
            client glx extensions:                                                                         
                GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,                     
                GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,                      
                GLX_MESA_copy_sub_buffer, GLX_MESA_swap_control,                                           
                GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_OML_sync_control,                      
                GLX_SGI_make_current_read, GLX_SGI_swap_control, GLX_SGI_video_sync,                       
                GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,                                 
                GLX_SGIX_visual_select_group, GLX_EXT_texture_from_pixmap                                  
            GLX extensions:                                                                                
                GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,                     
                GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_OML_swap_method,                           
                GLX_SGIS_multisample, GLX_SGIX_fbconfig                                                    
            OpenGL vendor string: rhd DRI project                                                          
            OpenGL renderer string: R6xx                                                                   
            OpenGL version string: 1.3 Mesa 7.2                                                            
            OpenGL extensions:                                                                             
                GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_multisample,                         
                GL_ARB_multitexture, GL_ARB_point_parameters, GL_ARB_shadow,                               
                GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,                                        
                GL_ARB_texture_compression, GL_ARB_texture_cube_map,                                       
                GL_ARB_texture_env_add, GL_ARB_texture_env_combine,                                        
                GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,                                      
                GL_MESAX_texture_float, GL_ARB_texture_mirrored_repeat,                                    
                GL_ARB_texture_rectangle, GL_ARB_transpose_matrix,                                         
                GL_ARB_vertex_buffer_object, GL_ARB_vertex_program, GL_ARB_window_pos,                     
                GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_equation_separate,                                  
                GL_EXT_blend_func_separate, GL_EXT_blend_minmax, GL_EXT_blend_subtract,                    
                GL_EXT_clip_volume_hint, GL_EXT_compiled_vertex_array,                                     
                GL_EXT_copy_texture, GL_EXT_draw_range_elements,
                GL_EXT_gpu_program_parameters, GL_EXT_multi_draw_arrays,
                GL_EXT_packed_pixels, GL_EXT_point_parameters, GL_EXT_polygon_offset,
                GL_EXT_rescale_normal, GL_EXT_secondary_color,
                GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
                GL_EXT_stencil_two_side, GL_EXT_stencil_wrap, GL_EXT_subtexture,
                GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
                GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
                GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
            ...
            GL_EXT_vertex_array,
                GL_APPLE_packed_pixels, GL_ATI_blend_equation_separate,
                GL_ATI_texture_env_combine3, GL_ATI_texture_mirror_once,
                GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,
                GL_INGR_blend_func_separate, GL_MESA_pack_invert, GL_MESA_ycbcr_texture,
                GL_MESA_window_pos, GL_NV_blend_square, GL_NV_light_max_exponent,
                GL_NV_texture_rectangle, GL_NV_texgen_reflection, GL_NV_vertex_program,
                GL_OES_read_format, GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
                GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SGIX_depth_texture,
                GL_SGIX_shadow_ambient, GL_SUN_multi_draw_arrays
            glu version: 1.3
            glu extensions:
                GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
            [r600] r600DestroyContext   (r600_context.c:390)
            
               visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
             id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
            ----------------------------------------------------------------------
            0x21 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
            0x22 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
            0x8c 32 tc  1  0  0 c  .  .  0  0  0  0  0  0  0  0  0  0  0  0 0 None
            glxgears:
            Code:
            [r600]  Mappings:                  
                    Registers                         cpu 0x7f23663c3000   size 0x00010000   handle 0xfdfe0000
                    Status                            cpu 0x7f23663c2000   size 0x00001000   handle 0x1effe000
                    GART           gpu 0x00f0000000                                                           
                    DRM buffers    gpu 0x00f0202000   cpu 0x7f2352b8a000   size 0x00200000                    
                    GART Textures  gpu 0x00f0402000   cpu 0x7f2352d8a000   size 0x00bc0000   handle 0x2f000000
                    Framebuffer    gpu 0x00d0000000   cpu 0x7f235394a000   size 0x0fff0000                    
                    Front Target   gpu 0x00d0008000   cpu 0x7f2353952000   size 0x01194000   pitch 0x0f00     
                    Back  Target   gpu 0x00d2b34000   cpu 0x7f235647e000   size 0x01194000   pitch 0x0f00     
                    Depth Target   gpu 0x00d3cc8000   cpu 0x7f2357612000   size 0x01194000   pitch 0x0f00     
            
            Mesa: Initializing x86-64 optimizations
            Mesa: Mesa 7.2 DEBUG build Apr 25 2009 21:35:02
            Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
            [r600] r600MakeCurrent   (r600_context.c:413)                                                  
            [r600]    Context 0x60fcf0 Draw 0x60da60 Read 0x60da60                                         
            [r600] r600MemAlloc   (r600_mem.c:289)   allocated 1 at age 0                                  
            [r600] r600MemFree   (r600_mem.c:328)   freed 1 at age 0                                       
            [r600] r600CopyBuffer   (r600_screen.c:479)                                                    
            [r600]    ClipRect 5:25-305:325                                                                
            [r600] r600CopyBuffer   (r600_screen.c:479)                                                    
            [r600]    ClipRect 5:25-305:325                                                                                                                          
            [r600] r600MemAlloc   (r600_mem.c:289)   allocated 1 at age 0                                  
            [r600] r600MemFree   (r600_mem.c:328)   freed 1 at age 
            Segmentation fault
            After running glxgears following appears in dmesg:
            Code:
            ...
            [drm:r300_do_cp_cmdbuf] *ERROR* bad cmd_type 0 at ffff88012a911800              
            [drm:r300_do_cp_cmdbuf] *ERROR* bad cmd_type 0 at ffff8800a9ce8000              
            ...
            Any ideas?

            Comment


            • #56
              Originally posted by Alexiy View Post
              After running glxgears following appears in dmesg:
              Code:
              ...
              [drm:r300_do_cp_cmdbuf] *ERROR* bad cmd_type 0 at ffff88012a911800              
              [drm:r300_do_cp_cmdbuf] *ERROR* bad cmd_type 0 at ffff8800a9ce8000              
              ...
              Any ideas?
              You aren't using the right drm. You need the r6xx-r7xx-3d branch from my drm tree:

              Comment


              • #57
                Speaking for myself, I'm pretty confident I'm using the corrent DRM branch, as in:

                Code:
                git clone git://anongit.freedesktop.org/~agd5f/drm
                cd drm
                git checkout -t -b r6xx-r7xx-3d origin/r6xx-r7xx-3d

                Comment


                • #58
                  Originally posted by agd5f View Post
                  You aren't using the right drm. You need the r6xx-r7xx-3d branch from my drm tree:
                  http://cgit.freedesktop.org/~agd5f/drm/?h=r6xx-r7xx-3d
                  I've used git://anongit.freedesktop.org/~agd5f/drm. But maybe it was installed into wrong place so that it can't be loaded... I noticed that radeonhd installs everything to /usr/lib instead of /usr/lib64 where xservers expects it to be.

                  Ok I will check everything once again and come up with results. Thank you for your support!

                  Comment


                  • #59
                    Little helper script with dkms support:

                    Comment


                    • #60
                      Originally posted by agd5f View Post
                      You aren't using the right drm. You need the r6xx-r7xx-3d branch from my drm tree:
                      http://cgit.freedesktop.org/~agd5f/drm/?h=r6xx-r7xx-3d
                      Hi,

                      You have been right I used wrong branch.

                      I have reinstalled whole system. And installed everything once again paying attention on which branch I'm using.

                      So result as to glxinfo is the same as I described above. But glxgears now is freezing whole system in addition to the previous troubles.

                      Comment

                      Working...
                      X