Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Aug 2016 18:58:29 +0000
From:      Anindya Mukherjee <anindya49@hotmail.com>
To:        "freebsd-x11@freebsd.org" <freebsd-x11@freebsd.org>
Subject:   Radeon CP stall error
Message-ID:  <YQXPR01MB0696F2920818FE03D84C7BE4B6060@YQXPR01MB0696.CANPRD01.PROD.OUTLOOK.COM>

next in thread | raw e-mail | index | archive | help
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 a=
n 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 tha=
n 61591msec
Aug  2 18:24:05 wopr kernel: drmn0: warning: GPU lockup (waiting for 0x0000=
000009defc9e last fence id 0x0000000009defc98)
Aug  2 18:24:05 wopr kernel: drmn0: info: Saved 185 dwords of commands on r=
ing 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      =3D 0=
xA0003030
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008014_GRBM_STATUS2     =3D 0=
x00000003
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_000E50_SRBM_STATUS      =3D 0=
x200000C0
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008674_CP_STALLED_STAT1 =3D 0=
x00000000
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008678_CP_STALLED_STAT2 =3D 0=
x00000002
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_00867C_CP_BUSY_STAT     =3D 0=
x00008080
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008680_CP_STAT          =3D 0=
x80018645
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008020_GRBM_SOFT_RESET=3D0x00=
007FEE
Aug  2 18:24:05 wopr kernel: drmn0: info: R_008020_GRBM_SOFT_RESET=3D0x0000=
0001
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008010_GRBM_STATUS      =3D 0=
xA0003030
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008014_GRBM_STATUS2     =3D 0=
x00000003
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_000E50_SRBM_STATUS      =3D 0=
x200080C0
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008674_CP_STALLED_STAT1 =3D 0=
x00000000
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008678_CP_STALLED_STAT2 =3D 0=
x00000000
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_00867C_CP_BUSY_STAT     =3D 0=
x00000000
Aug  2 18:24:05 wopr kernel: drmn0: info:   R_008680_CP_STAT          =3D 0=
x80100000
Aug  2 18:24:05 wopr kernel: drmn0: info: GPU reset succeeded, trying to re=
sume
Aug  2 18:24:05 wopr kernel: info: [drm] probing gen 2 caps for device 8086=
:29b1 =3D 1/0
Aug  2 18:24:05 wopr kernel: info: [drm] PCIE GART of 512M enabled (table a=
t 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 ad=
dr 0x0000000010000c00 and cpu addr 0x0xfffff8000443cc00
Aug  2 18:24:05 wopr kernel: drmn0: info: fence driver on ring 3 use gpu ad=
dr 0x0000000010000c0c and cpu addr 0x0xfffff8000443cc0c
Aug  2 18:24:05 wopr kernel: info: [drm] ring test on 0 succeeded in 1 usec=
s
Aug  2 18:24:05 wopr kernel: info: [drm] ring test on 3 succeeded in 24 use=
cs
Aug  2 18:24:05 wopr kernel: info: [drm] ib test on ring 0 succeeded in 0 u=
secs
Aug  2 18:24:05 wopr kernel: info: [drm] ib test on ring 3 succeeded in 1 u=
secs

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 mo=
re 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:4=
4 UTC 2016     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENE=
RIC  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YQXPR01MB0696F2920818FE03D84C7BE4B6060>