Radeon CP stall error

Anindya Mukherjee anindya49 at hotmail.com
Wed Aug 3 18:59:38 UTC 2016


Hi,

I've been running FreeBSD 10.3 on a Dell Optiplex 755 with a Radeon 2400XT card. Performance is great (really great) on such old hardware, but I see an occasional error in the system logs (happens about once in 2 months or so). The machine is only rebooted for updates.

Aug  2 18:24:05 wopr kernel: drmn0: error: GPU lockup CP stall for more than 61591msec
Aug  2 18:24:05 wopr kernel: drmn0: warning: GPU lockup (waiting for 0x0000000009defc9e last fence id 0x0000000009defc98)
Aug  2 18:24:05 wopr kernel: drmn0: info: Saved 185 dwords of commands on ring 0.
Aug  2 18:24:05 wopr kernel: drmn0: info: GPU softreset: 0x00000003
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008010_GRBM_STATUS      = 0xA0003030
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008014_GRBM_STATUS2     = 0x00000003
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_000E50_SRBM_STATUS      = 0x200000C0
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008674_CP_STALLED_STAT1 = 0x00000000
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008678_CP_STALLED_STAT2 = 0x00000002
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_00867C_CP_BUSY_STAT     = 0x00008080
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008680_CP_STAT          = 0x80018645
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008020_GRBM_SOFT_RESET=0x00007FEE
Aug  2 18:24:05 wopr kernel: drmn0: info: R_008020_GRBM_SOFT_RESET=0x00000001
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008010_GRBM_STATUS      = 0xA0003030
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008014_GRBM_STATUS2     = 0x00000003
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_000E50_SRBM_STATUS      = 0x200080C0
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008674_CP_STALLED_STAT1 = 0x00000000
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008678_CP_STALLED_STAT2 = 0x00000000
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_00867C_CP_BUSY_STAT     = 0x00000000
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008680_CP_STAT          = 0x80100000
Aug  2 18:24:05 wopr kernel: drmn0: info: GPU reset succeeded, trying to resume
Aug  2 18:24:05 wopr kernel: info: [drm] probing gen 2 caps for device 8086:29b1 = 1/0
Aug  2 18:24:05 wopr kernel: info: [drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
Aug  2 18:24:05 wopr kernel: drmn0: info: WB enabled
Aug  2 18:24:05 wopr kernel: drmn0: info: fence driver on ring 0 use gpu addr 0x0000000010000c00 and cpu addr 0x0xfffff8000443cc00
Aug  2 18:24:05 wopr kernel: drmn0: info: fence driver on ring 3 use gpu addr 0x0000000010000c0c and cpu addr 0x0xfffff8000443cc0c
Aug  2 18:24:05 wopr kernel: info: [drm] ring test on 0 succeeded in 1 usecs
Aug  2 18:24:05 wopr kernel: info: [drm] ring test on 3 succeeded in 24 usecs
Aug  2 18:24:05 wopr kernel: info: [drm] ib test on ring 0 succeeded in 0 usecs
Aug  2 18:24:05 wopr kernel: info: [drm] ib test on ring 3 succeeded in 1 usecs

When this happens, sometimes the screen will briefly flicker, but often it's completely unnoticeable. I've only had X hang once after this error in more than a year. I thought I'd seek some expert advice.

uname:
FreeBSD wopr 10.3-RELEASE-p4 FreeBSD 10.3-RELEASE-p4 #0: Sat May 28 12:23:44 UTC 2016     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

My xorg.conf:

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" RightOf "Screen0"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
	Option         "AIGLX" "true"
EndSection

Section "Files"
	ModulePath   "/usr/local/lib/xorg/modules"
	FontPath     "/usr/local/share/fonts/misc/"
	FontPath     "/usr/local/share/fonts/TTF/"
	FontPath     "/usr/local/share/fonts/OTF/"
	FontPath     "/usr/local/share/fonts/Type1/"
	FontPath     "/usr/local/share/fonts/100dpi/"
	FontPath     "/usr/local/share/fonts/75dpi/"
EndSection

Section "Module"
    Load           "dbe"
    Load           "dri"
    Load           "dri2"
    Load           "extmod"
    Load           "record"
    Load           "freetype"
    Load           "bitmap"
    Load           "type1"
    Load           "glx"
EndSection

Section "Extensions"
	Option  "Composite"  "Enable"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/sysmouse"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "ColorTiling"        	# [<bool>]
        #Option     "ColorTiling2D"      	# [<bool>]
        #Option     "RenderAccel"        	# [<bool>]
        #Option     "SubPixelOrder"      	# [<str>]
        #Option     "EXAVSync"           	# [<bool>]
        #Option     "EXAPixmaps"         	# [<bool>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "SwapbuffersWait"    	# [<bool>]

	#Option     "AccelMethod" "EXA"
	#Option     "DRI" "true"
        #Option      "Accel" "false"
	Identifier  "Card0"
	Driver      "radeon"
	BusID       "PCI:1:0:0"
EndSection

#Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "ShadowFB"           	# [<bool>]
        #Option     "DefaultRefresh"     	# [<bool>]
        #Option     "ModeSetClearScreen" 	# [<bool>]
#	Identifier  "Card1"
#	Driver      "vesa"
#	BusID       "PCI:1:0:0"
#EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "Card0"
	Monitor    "Monitor1"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Please let me know if I can provide any more info, and thanks for reading.

Anindya


More information about the freebsd-x11 mailing list