From nobody@FreeBSD.org  Fri Feb 22 16:49:16 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2D4D516A404
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Feb 2008 16:49:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 25A9D13C44B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Feb 2008 16:49:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1MGkdoN048226
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Feb 2008 16:46:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m1MGkdUa048225;
	Fri, 22 Feb 2008 16:46:39 GMT
	(envelope-from nobody)
Message-Id: <200802221646.m1MGkdUa048225@www.freebsd.org>
Date: Fri, 22 Feb 2008 16:46:39 GMT
From: Hannes Hauswedell <freebsd@soulrebel.in-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Radeon Problems related to DRM and/or DRI
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120970
>Category:       kern
>Synopsis:       [drm] Radeon Problems related to DRM and/or DRI
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    rnoland
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 22 16:50:06 UTC 2008
>Closed-Date:    Sun Nov 01 20:15:59 UTC 2009
>Last-Modified:  Sun Nov 01 20:15:59 UTC 2009
>Originator:     Hannes Hauswedell
>Release:        FreeBSD7-RC2
>Organization:
>Environment:
FreeBSD fbsdmain.lan.home 7.0-RC2 FreeBSD 7.0-RC2 #0: Fri Feb  8 00:09:57 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
I just bought a Radeon 9700 card, but 3D-Acceleration isn't working for most apps. First I thought the problem was related to linux_dri, because games/ioquake3 works while games/linux-quake3 crashes but native apps and wine are affected, too.

My Observations (I installed some stuff to test):

games/openarena and games/ioquake3 work flawless (performance is also good). "Simple Games" like games/tuxracer and games/chromium do too. games/linux-spheresofchaos-demo as well.

games/linux-quake3 and games/nexuiz crash and lock up the xserver, leaving the Keyboard unresponsive. If the app is killed via ssh, I am returned to the desktop. Both apps show something similar to:
Received signal 11, exiting...
DOUBLE SIGNAL FAULT: Received signal 15, exiting...
The X-Server seems work fine after that, nothing special is logged to dmesg or Xorg.0.log.


games/linux-doom3-demo wont start:
----- R_InitOpenGL -----
Setup X display connection
dlopen(libGL.so.1)
Initializing OpenGL display
Using XFree86-VidModeExtension Version 2.2
DGA DirectVideo Mouse (Version 2.0) initialized
Free86-VidModeExtension Activated at 640x480
libGL warning: 3D driver claims to not support visual 0x69
Couldn't get a visual
dlopen(libGL.so.1)
Initializing OpenGL display
Using XFree86-VidModeExtension Version 2.2
DGA DirectVideo Mouse (Version 2.0) initialized
Free86-VidModeExtension Activated at 640x480
Couldn't get a visual
idRenderSystem::Shutdown()
Fatal X Error:
  Major opcode of failed request: 105
  Minor opcode of failed request: 0
  Serial number of failed request: 47
BadValue (integer parameter out of range for operation)
Fatal X Error:
  Major opcode of failed request: 2
  Minor opcode of failed request: 0
  Serial number of failed request: 51
BadWindow (invalid Window parameter)
Fatal X Error:
  Major opcode of failed request: 4
  Minor opcode of failed request: 0
  Serial number of failed request: 52
BadWindow (invalid Window parameter)
Sys_Error: Unable to initialize OpenGL


ut2003 (in linuxemu) crashes the entire X-Server, sometimes even panics the system. (I cant dump right now because of geli). I havent been able to get dmesg of one of those crashes, but I can try again, it its important.

Starcraft with wine wont start (screen stays black). Warcraft3 with wine won't start (crash). (although I couldnt yet confirm that these actually work with wine-pthread, FreeBSD7 and a different Adapter).
After trying to use wine, dmesg reports:
error: [drm:pid1787:drm_close] *ERROR* can't find authenticator


Thank you very much for your help!
Greetings



Here's my setup:

Relevant dmesg:
drm0: <ATI Radeon NE R300 9500 Pro / 9700> on vgapci0
info: [drm] AGP at 0xd0000000 128MB
info: [drm] Initialized radeon 1.25.0 20060524
info: [drm] Setting GART location based on new memory map
info: [drm] Loading R300 Microcode
info: [drm] writeback test succeeded in 1 usecs
drm0: [ITHREAD]
info: [drm] Loading R300 Microcode
info: [drm] Loading R300 Microcode
info: [drm] Loading R300 Microcode
------------------------------------------------------------

Relevant xorg.conf:
Section "Module"
        Load  "xtrap"
        Load  "GLcore"
        Load  "dbe"
        Load  "dri"
        Load  "extmod"
        Load  "glx"
        Load  "record"
        Load  "freetype"
        Load  "type1"
        Load "ddc"
EndSection
Section "Device"
        Identifier  "Card0"
        Driver      "radeon"
#       Option          "AccelMethod" "EXA"
        Option          "AccelMethod" "XAA"
        Option          "AccelDFS" "0"
        Option          "EnablePageFlip" "1"
        Option          "ColorTiling" "1"
        Option          "AGPMode" "8"
EndSection
--------------------------------------------------------

output of glxinfo:

name of display: :0.0
libGL warning: 3D driver claims to not support visual 0x69
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_MESA_copy_sub_buffer,
    GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
    GLX_SGI_make_current_read, GLX_SGI_video_sync, GLX_SGIS_multisample,
    GLX_SGIX_fbconfig
OpenGL vendor string: DRI R300 Project
OpenGL renderer string: Mesa DRI R300 20060815 AGP 8x x86/MMX+/3DNow!+/SSE TCL
OpenGL version string: 1.3 Mesa 7.0.1
OpenGL extensions:
    GL_ARB_fragment_program, GL_ARB_imaging, GL_ARB_multisample,
    GL_ARB_multitexture, 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_color,
    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_convolution, GL_EXT_copy_texture,
    GL_EXT_draw_range_elements, GL_EXT_gpu_program_parameters,
    GL_EXT_histogram, GL_EXT_packed_pixels, GL_EXT_polygon_offset,
    GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, 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_SGI_color_matrix, GL_SGI_color_table, GL_SGIS_generate_mipmap,
    GL_SGIS_texture_border_clamp, GL_SGIS_texture_edge_clamp,
    GL_SGIS_texture_lod

   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
----------------------------------------------------------------------
0x23 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x24 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x25 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x26 16 tc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x27 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x28 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x29 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x2a 16 tc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x2b 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x2c 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x2d 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x2e 16 dc  0 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x2f 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x30 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x31 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16  0  0 0 Slow
0x32 16 dc  0 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16  0  0 0 Slow
0x69 32 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 Ncon
>How-To-Repeat:
Try either of the mentioned Applications.
>Fix:


>Release-Note:
>Audit-Trail:

From: Hannes Hauswedell <freebsd@soulrebel.in-berlin.de>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/120970: Radeon Problems related to DRM and/or DRI
Date: Fri, 22 Feb 2008 18:18:23 +0000

 Additional Info:
 I was using the 7.0-release packages of all the mentioned Games and 
 requirements, except for linux-doom3-demo which was built from ports 
 and ut2003 which is the patched linux-release from CDs.
 I was using linux_base-fc4, but I also tried with linux_base-fc6
 
 
 Details to XServer-Crash when starting ut2003:
 
 dmesg:
 pid 815 (Xorg), uid 0: exited on signal 11 (core dumped)
 
 Xorg.0.log:
 Fatal server error:
 Caught signal 11.  Server aborting
 
 I have uploaded the Xorg-core to:
 http://www.soulrebel.in-berlin.de/pub/Xorg.core
 
 
 Thanks again for help.
 
 
 
 
 This is the (lengthy) ut2003.log:
 
 Log: Log file open, Fri Feb 22 18:02:45 2008
 Init: Name subsystem initialized
 Log: Your locale: [ANSI_X3.4-1968].
 
 Init: Version: 2225 (121.29)
 Init: Compiled: Jun 24 2004 18:11:27
 Init: Command line:
 Init: Base directory: /mnt/server/games/ut2003/System/
 Init: Character set: Unicode
 Init: (This is Linux patch version 2225.3)
 Init: Build label: UT2003 Build UT2003_Build_[2003-04-07_17.42]
 Init: Object subsystem initialized
 Init: OS Type=x86 Linux
 Init: CPU Detected: PentiumPro-class processor (AuthenticAMD)
 Init: CPU Features: CMov FPU RDTSC PAE MMX SSE
 Init: CPU Speed=1603.836426 MHz
 Init: File handle limit is soft=(7207), hard=(7207).
 Init: Unreal engine initialized
 Init: Detected 0 joysticks
 Init: SDLClient initialized.
 Init: Initializing OpenGLDrv...
 Log: binding libGL.so.1
 Log: (Karma): Beginning Karma for game.
 Log: (Karma): Creating MeAssetDB.
 Log: (Karma): Loading: Alien.ka
 Log: (Karma): Loading: Bot.ka
 Log: (Karma): Loading: Human.ka
 Log: (Karma): Loading: intro.ka
 Log: (Karma): Loading: jugg.ka
 Log: (Karma): Finished Creating MeAssetDB (12 Assets).
 Log: LoadMap: Entry
 Log: Static mesh batches: 0 vertex bytes, 0 index bytes
 Log: Game class is 'GameInfo'
 Log: Level is Level Entry.myLevel
 Log: Bringing Level Entry.myLevel up for play (0) appSeconds: 
 16780619.160566...
 ScriptLog: Base Mutator is Entry.Mutator
 ScriptLog: GameInfo::InitGame : bEnableStatLogging False
 Log: 0 ANTIPORTALS
 Log: Browse: 
 NvidiaLogo.ut2?Name=Player?Class=Engine.Pawn?Character=Gorge?team=255
 Log: LoadMap: 
 NvidiaLogo.ut2?Name=Player?Class=Engine.Pawn?Character=Gorge?team=255
 Warning: Type mismatch in MA of Orientation: file 2, class 16
 Log: (Karma): Initialising Karma for Level.
 Log: Static mesh batches: 508608 vertex bytes, 110460 index bytes
 Log: Collecting garbage
 Log: Purging garbage
 Log: Garbage: objects: 18650->18610; refs: 183561
 Log: Game class is 'CinematicGame'
 Log: Level is Level NvidiaLogo.myLevel
 Warning: Paths may not be valid.
 Log: Bringing Level NvidiaLogo.myLevel up for play (0) appSeconds: 
 16780620.385721...
 ScriptLog: Base Mutator is NvidiaLogo.Mutator
 ScriptLog: GameInfo::InitGame : bEnableStatLogging False
 Log: 0 ANTIPORTALS
 Log: Created and initialized a new SDL viewport.
 Init: ALAudio: Default audio device is "'((sampling-rate 44100) 
 (device '(native))"
 Init: ALAudio: Opening default audio device...
 Init: AL_VENDOR     : J. Valenzuela
 Init: AL_RENDERER   : Software
 Init: AL_VERSION    : 0.0.7
 Init: ALAudio: subsystem initialized.
 ScriptLog: Team 255
 ScriptLog: Login: Player
 Warning: Failed to load 'NULL': Can't resolve package name
 Warning: Failed to load 'Class None.': Can't resolve package name
 Security: Unknown security class [] -- System is no secure.
 Log: CinematicPlayer got player SDLViewport
 Log: No ScoreBoardType specified in GameInfo
 ScriptLog: New Player Player id= b43baabe52e0029512b70f808865ed04
 Init: Input system initialized for SDLViewport
 Log: Enter SetRes: 800x600 Fullscreen 1
 Log: OpenGL
 Init: GL_VENDOR     : DRI R300 Project
 Init: GL_RENDERER   : Mesa DRI R300 20060815 AGP 8x x86/MMX+/3DNow!+/SSE 
 TCL
 Init: GL_VERSION    : 1.3 Mesa 7.0
 Init: Device supports: GL
 Init: Device supports: GL_EXT_bgra
 Init: Device supports: GL_ARB_texture_compression
 Init: Device supports: GL_ARB_texture_cube_map
 Init: Device supports: GL_ARB_texture_env_combine
 Init: Device supports: GL_ATI_texture_env_combine3
 Init: Device supports: GL_ARB_texture_env_crossbar
 Init: Device supports: GL_EXT_texture_lod_bias
 Init: Device supports: GL_ARB_multitexture
 Init: Device supports: GL_ARB_multisample
 Init: Device supports: GL_EXT_texture_filter_anisotropic
 Init: C16 RGB565 Z16 S0
 Init: OpenGL: Level of anisotropy is 1.000000 (max 16.000000).
 Init: OpenGL: Failed to get a multisample GL context
 Init: WARNING: OpenGL renderer relies on DXTC/S3TC support for good 
 performance.
 Log: Backtrace: UOpenGLRenderDevice::UpdateGamma <- 
 UOpenGLRenderDevice::SetRes <- USDLViewport::TryRenderDevice <- 
 USDLViewport::OpenWindow <- UGameEngine::Init <- InitEngine
 Exit: Exiting.
 Log: Waiting for file streaming thread to finish...
 Log: Log file closed, Fri Feb 22 18:02:56 2008

From: Volker <volker@vwsoft.com>
To: bug-followup@FreeBSD.org, freebsd@soulrebel.in-berlin.de
Cc:  
Subject: Re: kern/120970: [radeon] Radeon Problems related to DRM and/or DRI
Date: Sat, 23 Feb 2008 12:06:57 +0100

 Hannes,
 
 I'm wondering if you can send in a backtrace of this one:
 
 > pid 815 (Xorg), uid 0: exited on signal 11 (core dumped)
 > 
 > Xorg.0.log:
 > Fatal server error:
 > Caught signal 11. Server aborting
 
 I think if nobody detects a config error in your setup (I haven't looked
 too carefully), everything else is guesswork. A backtrace is needed to
 get to the point where it's crashing.
 
 Also wine debug output might help.
 
 Thanks!

From: Hannes Hauswedell <freebsd@soulrebel.in-berlin.de>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/120970: [radeon] Radeon Problems related to DRM and/or DRI
Date: Sat, 23 Feb 2008 15:04:41 +0000

 I don't know how helpful it is because the Xorg-Package doesnt come with 
 debugging Symbols, but here's the complete gdb run with backtrace:
 (To double-check the wine-problems, I need to get a wine-version with 
 kthread running, because I think the problems are caused by the 
 pthreads-binary)
 
 %gdb Xorg /Xorg.core
 GNU gdb 6.1.1 [FreeBSD]
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you 
 are
 welcome to change it and/or distribute copies of it under certain 
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for 
 details.
 This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols 
 found)...
 Core was generated by `Xorg'.
 Program terminated with signal 11, Segmentation fault.
 Reading symbols from /usr/local/lib/libXfont.so.1...(no debugging 
 symbols found)...done.
 Loaded symbols for /usr/local/lib/libXfont.so.1
 Reading symbols from /usr/local/lib/libfreetype.so.9...(no debugging 
 symbols found)...done.
 Loaded symbols for /usr/local/lib/libfreetype.so.9
 Reading symbols from /usr/local/lib/libXau.so.6...(no debugging symbols 
 found)...done.
 Loaded symbols for /usr/local/lib/libXau.so.6
 Reading symbols from /usr/local/lib/libfontenc.so.1...(no debugging 
 symbols found)...done.
 Loaded symbols for /usr/local/lib/libfontenc.so.1
 Reading symbols from /lib/libz.so.4...(no debugging symbols 
 found)...done.
 Loaded symbols for /lib/libz.so.4
 Reading symbols from /usr/local/lib/libpixman-1.so.9...(no debugging 
 symbols found)...done.
 Loaded symbols for /usr/local/lib/libpixman-1.so.9
 Reading symbols from /usr/local/lib/libhal.so.1...(no debugging symbols 
 found)...done.
 Loaded symbols for /usr/local/lib/libhal.so.1
 Reading symbols from /usr/local/lib/libintl.so.8...(no debugging symbols 
 found)...done.
 Loaded symbols for /usr/local/lib/libintl.so.8
 Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging 
 symbols found)...done.
 Loaded symbols for /usr/local/lib/libiconv.so.3
 Reading symbols from /usr/local/lib/libdbus-1.so.3...(no debugging 
 symbols found)...done.
 Loaded symbols for /usr/local/lib/libdbus-1.so.3
 Reading symbols from /usr/local/lib/libXdmcp.so.6...(no debugging 
 symbols found)...done.
 Loaded symbols for /usr/local/lib/libXdmcp.so.6
 Reading symbols from /usr/lib/librpcsvc.so.4...(no debugging symbols 
 found)...done.
 Loaded symbols for /usr/lib/librpcsvc.so.4
 Reading symbols from /lib/libm.so.5...(no debugging symbols 
 found)...done.
 Loaded symbols for /lib/libm.so.5
 Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols 
 found)...done.
 Loaded symbols for /lib/libgcc_s.so.1
 Reading symbols from /lib/libc.so.7...(no debugging symbols 
 found)...done.
 Loaded symbols for /lib/libc.so.7
 Reading symbols from /usr/local/lib/xorg/modules//libpcidata.so...(no 
 debugging symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules//libpcidata.so
 Reading symbols 
 from /usr/local/lib/xorg/modules/extensions//libxtrap.so...(no 
 debugging symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules/extensions//libxtrap.so
 Reading symbols 
 from /usr/local/lib/xorg/modules/extensions//libdbe.so...(no debugging 
 symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules/extensions//libdbe.so
 Reading symbols 
 from /usr/local/lib/xorg/modules/extensions//libdri.so...(no debugging 
 symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules/extensions//libdri.so
 Reading symbols from /usr/local/lib/libdrm.so.2...(no debugging symbols 
 found)...done.
 Loaded symbols for /usr/local/lib/libdrm.so.2
 Reading symbols 
 from /usr/local/lib/xorg/modules/extensions//libextmod.so...(no 
 debugging symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules/extensions//libextmod.so
 Reading symbols 
 from /usr/local/lib/xorg/modules/extensions//libglx.so...(no debugging 
 symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules/extensions//libglx.so
 Reading symbols 
 from /usr/local/lib/xorg/modules/extensions//librecord.so...(no 
 debugging symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules/extensions//librecord.so
 Reading symbols 
 from /usr/local/lib/xorg/modules/fonts//libfreetype.so...(no debugging 
 symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules/fonts//libfreetype.so
 Reading symbols from /usr/local/lib/xorg/modules/fonts//libtype1.so...
 (no debugging symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules/fonts//libtype1.so
 Reading symbols 
 from /usr/local/lib/xorg/modules/drivers//radeon_drv.so...(no debugging 
 symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules/drivers//radeon_drv.so
 Reading symbols from /usr/local/lib/xorg/modules/drivers//ati_drv.so...
 (no debugging symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules/drivers//ati_drv.so
 Reading symbols from /usr/local/lib/xorg/modules/input//mouse_drv.so...
 (no debugging symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules/input//mouse_drv.so
 Reading symbols from /usr/local/lib/xorg/modules/input//kbd_drv.so...(no 
 debugging symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules/input//kbd_drv.so
 Reading symbols from /usr/local/lib/xorg/modules//libvgahw.so...(no 
 debugging symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules//libvgahw.so
 Reading symbols from /usr/local/lib/xorg/modules//libint10.so...(no 
 debugging symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules//libint10.so
 Reading symbols from /usr/local/lib/xorg/modules//libfb.so...(no 
 debugging symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules//libfb.so
 Reading symbols from /usr/local/lib/xorg/modules//libxaa.so...(no 
 debugging symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules//libxaa.so
 Reading symbols 
 from /usr/local/lib/xorg/modules/multimedia//theatre_detect_drv.so...
 (no debugging symbols found)...done.
 Loaded symbols 
 for /usr/local/lib/xorg/modules/multimedia//theatre_detect_drv.so
 Reading symbols 
 from /usr/local/lib/xorg/modules/extensions//libGLcore.so...(no 
 debugging symbols found)...done.
 Loaded symbols for /usr/local/lib/xorg/modules/extensions//libGLcore.so
 Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols 
 found)...done.
 Loaded symbols for /libexec/ld-elf.so.1
 #0  0x08183ee0 in XkbEnableDisableControls ()
 (gdb) bt
 #0  0x08183ee0 in XkbEnableDisableControls ()
 #1  0x08185654 in XkbRemoveResourceClient ()
 #2  0x0807eef2 in DisableDevice ()
 #3  0x0807f159 in CloseDownDevices ()
 #4  0x081b1f63 in AbortServer ()
 #5  0x081b24b6 in FatalError ()
 #6  0x080bf773 in xf86SigHandler ()
 #7  <signal handler called>
 #8  0x5a005a00 in ?? ()
 #9  0x5a005a00 in ?? ()
 #10 0x5a005a00 in ?? ()
 #11 0x5a005a00 in ?? ()
 #12 0xaf00af00 in ?? ()
 #13 0xaf00af00 in ?? ()
 #14 0xaf00af00 in ?? ()
 #15 0xaf00af00 in ?? ()
 #16 0x5b005b00 in ?? ()
 #17 0x5b005b00 in ?? ()
 #18 0x5b005b00 in ?? ()
 #19 0x5b005b00 in ?? ()
 #20 0xf200f200 in ?? ()
 #21 0xf200f200 in ?? ()
 #22 0xf200f200 in ?? ()
 #23 0xf200f200 in ?? ()
 #24 0x6a006a00 in ?? ()
 #25 0x6a006a00 in ?? ()
 #26 0x6a006a00 in ?? ()
 #27 0x6a006a00 in ?? ()
 #28 0xf500f500 in ?? ()
 #29 0xf500f500 in ?? ()
 #30 0xf500f500 in ?? ()
 #31 0xf500f500 in ?? ()
 #32 0x6b006b00 in ?? ()
 #33 0x6b006b00 in ?? ()
 #34 0x6b006b00 in ?? ()
 #35 0x6b006b00 in ?? ()
 #36 0x48004800 in ?? ()
 ---Type <return> to continue, or q <return> to quit---
 #37 0x48004800 in ?? ()
 #38 0x48004800 in ?? ()
 #39 0x48004800 in ?? ()
 #40 0x6b006b00 in ?? ()
 #41 0x6b006b00 in ?? ()
 #42 0x6b006b00 in ?? ()
 #43 0x6b006b00 in ?? ()
 #44 0x06000600 in ?? ()
 #45 0x06000600 in ?? ()
 #46 0x06000600 in ?? ()
 #47 0x06000600 in ?? ()
 #48 0x83008300 in ?? ()
 #49 0x83008300 in ?? ()
 #50 0x83008300 in ?? ()
 #51 0x83008300 in ?? ()
 #52 0xf200f200 in ?? ()
 #53 0xf200f200 in ?? ()
 #54 0xf200f200 in ?? ()
 #55 0xf200f200 in ?? ()
 #56 0x83008300 in ?? ()
 #57 0x83008300 in ?? ()
 #58 0x83008300 in ?? ()
 #59 0x83008300 in ?? ()
 #60 0x06000600 in ?? ()
 #61 0x06000600 in ?? ()
 #62 0x06000600 in ?? ()
 #63 0x06000600 in ?? ()
 #64 0xba00ba00 in ?? ()
 #65 0xba00ba00 in ?? ()
 #66 0xba00ba00 in ?? ()
 #67 0xba00ba00 in ?? ()
 #68 0xf200f200 in ?? ()
 #69 0xf200f200 in ?? ()
 #70 0xf200f200 in ?? ()
 #71 0xf200f200 in ?? ()
 #72 0xba00ba00 in ?? ()
 #73 0xba00ba00 in ?? ()
 ---Type <return> to continue, or q <return> to quit---
 #74 0xba00ba00 in ?? ()
 #75 0xba00ba00 in ?? ()
 #76 0x06000600 in ?? ()
 #77 0x06000600 in ?? ()
 #78 0x06000600 in ?? ()
 #79 0x06000600 in ?? ()
 #80 0x0d000d00 in ?? ()
 #81 0x0d000d00 in ?? ()
 #82 0x0d000d00 in ?? ()
 #83 0x0d000d00 in ?? ()
 #84 0xf200f200 in ?? ()
 #85 0xf200f200 in ?? ()
 #86 0xf200f200 in ?? ()
 #87 0xf200f200 in ?? ()
 #88 0x0d000d00 in ?? ()
 #89 0x0d000d00 in ?? ()
 #90 0x0d000d00 in ?? ()
 #91 0x0d000d00 in ?? ()
 #92 0x287989db in ?? () 
 from /usr/local/lib/xorg/modules/drivers//radeon_drv.so
 #93 0x0ec57cfb in ?? ()
 #94 0x28588600 in ?? ()
 #95 0x00000000 in ?? ()
 #96 0x00000001 in ?? ()
 #97 0x28588000 in ?? ()
 #98 0x28588200 in ?? ()
 #99 0x0ec57cfb in ?? ()
 #100 0x287989db in ?? () 
 from /usr/local/lib/xorg/modules/drivers//radeon_drv.so
 #101 0x28705a34 in ?? () 
 from /usr/local/lib/xorg/modules/extensions//libdri.so
 #102 0x28588600 in ?? ()
 #103 0x281f33f4 in ?? () from /libexec/ld-elf.so.1
 #104 0x281fb720 in ?? ()
 #105 0x00000000 in ?? ()
 #106 0xbfbfeb44 in ?? ()
 #107 0x281cfae1 in _rtld_error () from /libexec/ld-elf.so.1
 Previous frame inner to this frame (corrupt stack?)
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Sat Feb 23 14:28:50 UTC 2008 
State-Changed-Why:  
The current guess is that this is an xorg problem. 


Responsible-Changed-From-To: freebsd-bugs->freebsd-x11 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Feb 23 14:28:50 UTC 2008 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=120970 

From: Hannes Hauswedell <freebsd@soulrebel.in-berlin.de>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/120970: [radeon] Radeon Problems related to DRM and/or DRI
Date: Sat, 23 Feb 2008 18:02:08 +0000

 When the XServer crashes, the following message is also logged:
 error: [drm:pid1787:drm_close] *ERROR* can't find authenticator
 
 Wouldnt that indicate a drm(kernel) problem rather than an dri(Xorg) 
 problem?

From: Hannes Hauswedell <freebsd@soulrebel.in-berlin.de>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/120970: [radeon] Radeon Problems related to DRM and/or DRI
Date: Mon, 25 Feb 2008 19:23:21 +0000

 I tried to use EXA for Accel, now X even crashes "just logging out".
 I attached the backtrace below.
 
 Also after using something that requires DRI I can't use the 
 pseudo-terminals, because my screen tells me that the it can't display 
 what its being fed. (I tried a second screen, same problem)
 
 I have compiled wine with kthread support and now:
 1) Starcraft works
 2) when starting Warcraft3 randr seems to change the screen resolution 
 10 or 15 times, then it loads Warcraft3. The menus have some funky  
 display errors("rainbow colored rays"), but the game itself runs very 
 well.
 => No real Problems with wine so far (actually Warcraft3 performs better 
 than with proprietary nvidia card and freebsd6)
 
 When will xf86-video-ati-6.8 be in the ports? Maybe that will help...
 
 Xorg-crash with accel=EXA
 (gdb) bt
 #0  0x28708f5a in DRILock () 
 from /usr/local/lib/xorg/modules/extensions//libdri.so
 #1  0x287b7ac5 in RADEONLeaveVT () 
 from /usr/local/lib/xorg/modules/drivers//radeon_drv.so
 #2  0x080a1ec8 in AbortDDX ()
 #3  0x081b1f68 in AbortServer ()
 #4  0x081b24b6 in FatalError ()
 #5  0x080bf773 in xf86SigHandler ()
 #6  <signal handler called>
 #7  0x288bc742 in exaWaitSync () 
 from /usr/local/lib/xorg/modules//libexa.so
 #8  0x287ae43b in radeon_crtc_hide_cursor () 
 from /usr/local/lib/xorg/modules/drivers//radeon_drv.so
 #9  0x080eca5f in xf86CrtcConfigInit ()
 #10 0x080ecab2 in xf86_hide_cursors ()
 #11 0x080ecf9c in xf86_cursors_init ()
 #12 0x287ae229 in RADEONCursorInit () 
 from /usr/local/lib/xorg/modules/drivers//radeon_drv.so
 #13 0x287b9861 in RADEONScreenInit () 
 from /usr/local/lib/xorg/modules/drivers//radeon_drv.so
 #14 0x0806d6bc in AddScreen ()
 #15 0x080a25ec in InitOutput ()
 #16 0x0806de46 in main ()

From: Hannes Hauswedell <freebsd@soulrebel.in-berlin.de>
To: linimon@freebsd.org
Cc: freebsd-bugs@freebsd.org, freebsd-x11@freebsd.org,
        bug-followup@freebsd.org
Subject: Re: ports/120970: [radeon] Radeon Problems related to DRM and/or DRI
Date: Tue, 26 Feb 2008 18:35:39 +0000

 I manually updated to xf86-video-ati-6.8.0, but the problems remain the 
 same.

From: Hannes Hauswedell <freebsd@soulrebel.in-berlin.de>
To: linimon@freebsd.org, bug-followup@freebsd.org
Cc: freebsd-bugs@freebsd.org, freebsd-x11@freebsd.org
Subject: Re: ports/120970: [radeon] Radeon Problems related to DRM and/or DRI
Date: Wed, 27 Feb 2008 23:34:39 +0000

 This problem is definitely freebsd-related and NOT a general 
 X11-Problem. With Debian SID the card works absolutely fine, all tested 
 applications work flawless. Although that isnt a real issue for me, 
 glxgears produces nearly 3000FPS on Debian vs 1180FPS on FreeBSD. 
 ( That might hint at other problems ).
 
 So I really think this is related to FreeBSD-DRM.
 
 Please reassign this bug to the people responsible for that, if you 
 agree.
 
 Thank you very much!
 
 Greetings 
 Hannes Hauswedell
 
Responsible-Changed-From-To: freebsd-x11->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Feb 28 02:46:39 UTC 2008 
Responsible-Changed-Why:  
Submitter still feels that this is a kernel bug. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120970 

From: Hannes Hauswedell <freebsd@soulrebel.in-berlin.de>
To: bug-followup@freebsd.org, freebsd@soulrebel.in-berlin.de
Cc:  
Subject: Re: kern/120970: [drm] Radeon Problems related to DRM and/or DRI
Date: Thu, 28 Feb 2008 05:57:42 +0000

 hm.... I have another bt from X11, when it crashed while I was trying to 
 log out (attached below).
 Also the card doesnt seem to need any kind of configuring in GNU/Linux. 
 It is possible to just boot the system with a live-cd like sidux and 
 for example play ut2003 (from a network share). 
 I don't whether the DRMs in FreeBSD and Linux share code, so I can't 
 really check, whether FreeBSD is behind on some part of DRM.
 If someone could point be to documentation concerning this, I'll try to 
 investigate...
 
 I just realised that when trying to run linux-quake3 i actually get 
 loads of
 
 mieqEnequeue: out-of-order valuator event; dropping.
 tossed event which came in late
 
 in my Xorg.0.log.
 
 
 (gdb) bt
 #0  0x284eb862 in calloc () from /lib/libc.so.7
 #1  0x284ebb7e in free () from /lib/libc.so.7
 #2  0x081abe41 in Xfree ()
 #3  0x0807ecf0 in DisableDevice ()
 #4  0x0807f159 in CloseDownDevices ()
 #5  0x081b1f63 in AbortServer ()
 #6  0x081b24b6 in FatalError ()
 #7  0x080bf773 in xf86SigHandler ()
 #8  <signal handler called>
 #9  0x284eb862 in calloc () from /lib/libc.so.7
 #10 0x284ebb7e in free () from /lib/libc.so.7
 #11 0x081abe41 in Xfree ()
 #12 0x081227e4 in miRegionDestroy ()
 #13 0x081193b2 in miDestroyClip ()
 #14 0x08119859 in miChangeClip ()
 #15 0x0810d3a4 in miCopyArea ()
 #16 0x28a07568 in XAAChangeClip () 
 from /usr/local/lib/xorg/modules//libxaa.so
 #17 0x28a4a672 in cwChangeClip () 
 from /usr/local/lib/xorg/modules//libxaa.so
 #18 0x081642e6 in DamageExtensionInit ()
 #19 0x0809584a in dixChangeGC ()
 #20 0x08084f03 in ProcChangeGC ()
 #21 0x0814529e in XaceHook ()
 #22 0x08086ab0 in Dispatch ()
 #23 0x0806e03b in main ()
Responsible-Changed-From-To: freebsd-bugs->anholt 
Responsible-Changed-By: remko 
Responsible-Changed-When: Thu Feb 28 07:31:28 UTC 2008 
Responsible-Changed-Why:  
Eric can you have a look at this please 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120970 

From: Hannes Hauswedell <freebsd@soulrebel.in-berlin.de>
To: bug-followup@freebsd.org, freebsd@soulrebel.in-berlin.de,
        anholt@freebsd.org, linimon@freebsd.org
Cc:  
Subject: Re: kern/120970: [drm] Radeon Problems related to DRM and/or DRI
Date: Thu, 3 Apr 2008 20:10:41 +0000

 Hello,
 I built the harddrive into another computer with the same videocard, to 
 check if it might be hardware related but the problems are the same.
 
 I fiddled around with some options... If I pick ati as driver (which 
 should only load radeon if understood correctly) the system freezes as 
 soon as I run glxgears. Sometimes this is a complete freeze where the 
 system does not respond to keyboard, mouse or pings afterwards, 
 sometimes network acces is possible; however either glxgears or xorg 
 have 100% cpu-usage and may not be killed (at least the xserver). 
 Nothing special appears in dmesg or /var/log/messages.
 Xorg.0.log ist completely full of
 
 tossed event which came in late
 mieqEnequeue: out-of-order valuator event; dropping.
 
 
 Using mplayer causes the same problems as glxgears after about 
 30seconds.
 
 
 
 Since this PR is still set to feedback I would really like to know what 
 else I can do.
 I do have time the next two weeks before uni starts again, to try 
 whatever you propose.
 
 Thank you very much.
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Thu Apr 3 22:32:42 UTC 2008 
State-Changed-Why:  
Feedback received. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120970 

From: Hannes Hauswedell <freebsd@soulrebel.in-berlin.de>
To: bug-followup@freebsd.org, freebsd@soulrebel.in-berlin.de,
        linimon@freebsd.org, anholt@freebsd.org
Cc:  
Subject: Re: kern/120970: [drm] Radeon Problems related to DRM and/or DRI
Date: Mon, 21 Apr 2008 14:28:17 +0000

 Hi,
 
 While using GNU/Linux on another box with the same graphics card I can 
 actually reproduce some of the problems, although they  only appear 
 very rarely.
 To be more precise: certain 3D-Applications like ut2003 or nexuiz crash 
 the box once in while (sometimes after 20min of gameplay, sometimes not 
 in hours). The effects are the same then: if I am able to ssh into the 
 box, I see the problematic process using 100% cpu. If it is killed, the 
 X-Server goes to using 100% cpu and cannot be killed. Also GNU/Linux 
 seems not be able to shutdown cleanly, while FreeBSD does (if it 
 accepts ssh-connections).
 
 I really can't tell anymore whether this Problem is related to Xorg or 
 DRM. 
 
 I have two identical cards of the same version here, I got three 
 mainboards and sidux, freebsd and ubuntu to test the cards with in 
 different combinations. Please tell me what I can do help solve these 
 Problems.
 
 Thank you.
 
Responsible-Changed-From-To: anholt->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Aug 8 00:26:57 UTC 2008 
Responsible-Changed-Why:  
Assignee has asked to resign his commit bit, so return this one to pool. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120970 
Responsible-Changed-From-To: freebsd-bugs->rnoland 
Responsible-Changed-By: joel 
Responsible-Changed-When: Mon Sep 15 16:27:25 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120970 
State-Changed-From-To: open->feedback 
State-Changed-By: rnoland 
State-Changed-When: Sun Nov 1 17:48:52 UTC 2009 
State-Changed-Why:  
This looks like a mesa issue, can you confirm if the problem still 
exists? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120970 

From: Hannes <freebsd@soulrebel.in-berlin.de>
To: bug-followup@freebsd.org
Cc: rnoland@freebsd.org
Subject: Re: kern/120970: [drm] Radeon Problems related to DRM and/or DRI
Date: Sun, 1 Nov 2009 18:10:47 +0000

 Hi Robert,
 
 thanks for looking into the issue. Unfortunately I won't have access to 
 the hardware the next six months. After that I can report back.
 
 Regards,
 Hannes

From: Robert Noland <rnoland@FreeBSD.org>
To: Hannes <freebsd@soulrebel.in-berlin.de>
Cc: bug-followup@freebsd.org
Subject: Re: kern/120970: [drm] Radeon Problems related to DRM and/or DRI
Date: Sun, 01 Nov 2009 12:50:16 -0600

 On Sun, 2009-11-01 at 18:10 +0000, Hannes wrote:
 > Hi Robert,
 > 
 > thanks for looking into the issue. Unfortunately I won't have access to 
 > the hardware the next six months. After that I can report back.
 
 Ok, why don't we close this for now then.  You can re-open or file a new
 PR if the problem still exists?
 
 robert.
 
 > Regards,
 > Hannes
 -- 
 Robert Noland <rnoland@FreeBSD.org>
 FreeBSD
 

From: Hannes <freebsd@soulrebel.in-berlin.de>
To: Robert Noland <rnoland@freebsd.org>, bug-followup@freebsd.org
Cc:  
Subject: Re: kern/120970: [drm] Radeon Problems related to DRM and/or DRI
Date: Sun, 1 Nov 2009 19:14:53 +0000

 s=F6ndag 01 november 2009 18:50:16 skrev  Robert Noland:
 > On Sun, 2009-11-01 at 18:10 +0000, Hannes wrote:
 > > Hi Robert,
 > >
 > > thanks for looking into the issue. Unfortunately I won't have
 > > access to the hardware the next six months. After that I can report
 > > back.
 >=20
 > Ok, why don't we close this for now then.  You can re-open or file a
 >  new PR if the problem still exists?
 
 Yep, no problem.
 
 Regards,
 Hannes
State-Changed-From-To: feedback->closed 
State-Changed-By: rnoland 
State-Changed-When: Sun Nov 1 20:15:58 UTC 2009 
State-Changed-Why:  
Hardware unavailable, please re-open if it still exists. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120970 
>Unformatted:
