NetBSD Problem Report #56729

From martin@aprisoft.de  Thu Feb 24 06:59:17 2022
Return-Path: <martin@aprisoft.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 376CE1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 24 Feb 2022 06:59:17 +0000 (UTC)
Message-Id: <20220224065906.1BE445CC823@emmas.aprisoft.de>
Date: Thu, 24 Feb 2022 07:59:06 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: amdgpu X driver nearly (but not quite) working
X-Send-Pr-Version: 3.95

>Number:         56729
>Category:       xsrc
>Synopsis:       amdgpu X driver nearly (but not quite) working
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    xsrc-manager
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 24 07:00:00 +0000 2022
>Closed-Date:    
>Last-Modified:  Sat Jun 29 13:25:01 +0000 2024
>Originator:     Martin Husemann
>Release:        NetBSD 9.99.93
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD martins.aprisoft.de 9.99.93 NetBSD 9.99.93 (GENERIC) #106: Thu Feb 24 07:25:15 CET 2022 martin@martins.aprisoft.de:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:

After recent ati module changes I am now able to boot with amdgpu enabled
in the kernel and get a nearly working X setup (w/o any config file).

But the display "blinks" in ~1 Hz speed between a nearly-correct-but-with-
some-distortions-in-the-background display and a looks-like-what-used-to-
be-there-but-video-ram-refresh-is-not-working-and-things-get-lost
ghostly picture.

Here is Xorg.0.log:

[    20.135] 
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
[    20.135] Build Operating System: NetBSD/amd64 9.99.93 - The NetBSD Foundation, Inc.
[    20.135] Current Operating System: NetBSD martins.aprisoft.de 9.99.93 NetBSD 9.99.93 (GENERIC) #106: Thu Feb 24 07:25:15 CET 2022  martin@martins.aprisoft.de:/usr/src/sys/arch/amd64/compile/GENERIC amd64
[    20.135] Build Date: 23 August 2021  11:23:23PM
[    20.135]  
[    20.135] Current version of pixman: 0.38.4
[    20.135] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    20.135] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    20.135] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Feb 24 07:49:14 2022
[    20.136] (==) Using config file: "/etc/X11/xorg.conf"
[    20.136] (==) No Layout section.  Using the first Screen section.
[    20.136] (==) No screen section available. Using defaults.
[    20.136] (**) |-->Screen "Default Screen Section" (0)
[    20.136] (**) |   |-->Monitor "<default monitor>"
[    20.136] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[    20.136] (**) Option "DontZap" "yes"
[    20.137] (**) Option "BlankTime" "0"
[    20.137] (**) Option "StandbyTime" "0"
[    20.137] (**) Option "SuspendTime" "0"
[    20.137] (**) Option "OffTime" "0"
[    20.137] (==) Automatically adding devices
[    20.137] (==) Automatically enabling devices
[    20.137] (==) Not automatically adding GPU devices
[    20.137] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    20.137] (==) FontPath set to:
	/usr/X11R7/lib/X11/fonts/misc/,
	/usr/X11R7/lib/X11/fonts/TTF/,
	/usr/X11R7/lib/X11/fonts/Type1/,
	/usr/X11R7/lib/X11/fonts/75dpi/,
	/usr/X11R7/lib/X11/fonts/100dpi/
[    20.137] (==) ModulePath set to "/usr/X11R7/lib/modules"
[    20.137] (II) The server relies on wscons to provide the list of input devices.
	If no devices become available, reconfigure wscons or disable AutoAddDevices.
[    20.137] (II) Loader magic: 0x1bb896ba0
[    20.137] (II) Module ABI versions:
[    20.137] 	X.Org ANSI C Emulation: 0.4
[    20.137] 	X.Org Video Driver: 24.1
[    20.137] 	X.Org XInput driver : 24.1
[    20.137] 	X.Org Server Extension : 10.0
[    20.160] (--) PCI:*(41@8:0:0) 1002:67df:1043:04fb rev 199, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfce00000/262144, I/O @ 0x0000e000/256, BIOS @ 0x????????/131072
[    20.160] (II) LoadModule: "glx"
[    20.161] (II) Loading /usr/X11R7/lib/modules/extensions/libglx.so
[    20.163] (II) Module glx: vendor="X.Org Foundation"
[    20.163] 	compiled for 1.20.13, module version = 1.0.0
[    20.163] 	ABI class: X.Org Server Extension, version 10.0
[    20.163] (==) Matched ati as autoconfigured driver 0
[    20.163] (==) Matched modesetting as autoconfigured driver 1
[    20.163] (==) Matched vesa as autoconfigured driver 2
[    20.163] (==) Matched wsfb as autoconfigured driver 3
[    20.163] (==) Assigned the driver to the xf86ConfigLayout
[    20.163] (II) LoadModule: "ati"
[    20.163] (II) Loading /usr/X11R7/lib/modules/drivers/ati_drv.so
[    20.163] (II) Module ati: vendor="X.Org Foundation"
[    20.163] 	compiled for 1.20.13, module version = 19.1.0
[    20.163] 	Module class: X.Org Video Driver
[    20.163] 	ABI class: X.Org Video Driver, version 24.1
[    20.189] (II) LoadModule: "amdgpu"
[    20.189] (II) Loading /usr/X11R7/lib/modules/drivers/amdgpu_drv.so
[    20.200] (II) Module amdgpu: vendor="X.Org Foundation"
[    20.200] 	compiled for 1.20.13, module version = 21.0.0
[    20.200] 	Module class: X.Org Video Driver
[    20.200] 	ABI class: X.Org Video Driver, version 24.1
[    20.200] (II) LoadModule: "modesetting"
[    20.200] (II) Loading /usr/X11R7/lib/modules/drivers/modesetting_drv.so
[    20.200] (II) Module modesetting: vendor="X.Org Foundation"
[    20.200] 	compiled for 1.20.13, module version = 1.20.13
[    20.200] 	Module class: X.Org Video Driver
[    20.201] 	ABI class: X.Org Video Driver, version 24.1
[    20.201] (II) LoadModule: "vesa"
[    20.201] (WW) Warning, couldn't open module vesa
[    20.201] (EE) Failed to load module "vesa" (module does not exist, 0)
[    20.201] (II) LoadModule: "wsfb"
[    20.201] (II) Loading /usr/X11R7/lib/modules/drivers/wsfb_drv.so
[    20.202] (II) Module wsfb: vendor="X.Org Foundation"
[    20.202] 	compiled for 1.20.13, module version = 0.4.0
[    20.202] 	ABI class: X.Org Video Driver, version 24.1
[    20.202] (II) AMDGPU: Driver for AMD Radeon:
	All GPUs supported by the amdgpu kernel driver
[    20.202] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    20.202] (II) wsfb: driver for wsdisplay framebuffer: wsfb
[    20.202] (--) Using wscons driver on /dev/ttyE4 in pcvt compatibility mode (version 3.32)
[    20.202] (--) using VT number 5
[    20.222] (II) AMDGPU(0): [KMS] Kernel modesetting enabled.
[    20.297] (WW) Falling back to old probe method for modesetting
[    20.297] (WW) Falling back to old probe method for wsfb
[    20.297] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    20.298] (II) AMDGPU(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[    20.298] (==) AMDGPU(0): Depth 24, (--) framebuffer bpp 32
[    20.298] (II) AMDGPU(0): Pixel depth = 24 bits stored in 4 bytes (32 bpp pixmaps)
[    20.298] (==) AMDGPU(0): Default visual is TrueColor
[    20.298] (==) AMDGPU(0): RGB weight 888
[    20.298] (II) AMDGPU(0): Using 8 bits per RGB (8 bit DAC)
[    20.298] (--) AMDGPU(0): Chipset: "AMD Radeon RX 480 Graphics" (ChipID = 0x67df)
[    20.298] (II) Loading sub module "fb"
[    20.298] (II) LoadModule: "fb"
[    20.298] (II) Loading /usr/X11R7/lib/modules/libfb.so
[    20.298] (II) Module fb: vendor="X.Org Foundation"
[    20.298] 	compiled for 1.20.13, module version = 1.0.0
[    20.298] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    20.298] (II) Loading sub module "dri2"
[    20.298] (II) LoadModule: "dri2"
[    20.298] (II) Module "dri2" already built-in
[    20.514] (II) Loading sub module "glamoregl"
[    20.514] (II) LoadModule: "glamoregl"
[    20.515] (II) Loading /usr/X11R7/lib/modules/libglamoregl.so
[    20.515] (II) Module glamoregl: vendor="X.Org Foundation"
[    20.515] 	compiled for 1.20.13, module version = 1.0.1
[    20.515] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    20.533] (II) AMDGPU(0): glamor X acceleration enabled on AMD Radeon RX 480 Graphics (POLARIS10, DRM 3.36.0, 9.99.93, LLVM 13.0.0)
[    20.533] (II) AMDGPU(0): glamor detected, initialising EGL layer.
[    20.533] (==) AMDGPU(0): TearFree property default: auto
[    20.533] (==) AMDGPU(0): VariableRefresh: disabled
[    20.533] (II) AMDGPU(0): KMS Pageflipping: enabled
[    20.551] (II) AMDGPU(0): Output DisplayPort-0 has no monitor section
[    20.561] (II) AMDGPU(0): Output DisplayPort-1 has no monitor section
[    20.561] (II) AMDGPU(0): Output HDMI-A-0 has no monitor section
[    20.562] (II) AMDGPU(0): Output HDMI-A-1 has no monitor section
[    20.562] (II) AMDGPU(0): Output DVI-D-0 has no monitor section
[    20.580] (II) AMDGPU(0): EDID for output DisplayPort-0
[    20.590] (II) AMDGPU(0): EDID for output DisplayPort-1
[    20.590] (II) AMDGPU(0): Manufacturer: SAM  Model: c4d  Serial#: 810375238
[    20.590] (II) AMDGPU(0): Year: 2018  Week: 47
[    20.590] (II) AMDGPU(0): EDID Version: 1.4
[    20.590] (II) AMDGPU(0): Digital Display Input
[    20.590] (II) AMDGPU(0): 10 bits per channel
[    20.590] (II) AMDGPU(0): Digital interface is DisplayPort
[    20.590] (II) AMDGPU(0): Max Image Size [cm]: horiz.: 61  vert.: 35
[    20.590] (II) AMDGPU(0): Gamma: 2.20
[    20.590] (II) AMDGPU(0): DPMS capabilities: Off
[    20.590] (II) AMDGPU(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4 YCrCb 4:2:2
[    20.590] (II) AMDGPU(0): First detailed timing is preferred mode
[    20.590] (II) AMDGPU(0): Preferred mode is native pixel format and refresh rate
[    20.590] (II) AMDGPU(0): redX: 0.634 redY: 0.341   greenX: 0.312 greenY: 0.636
[    20.590] (II) AMDGPU(0): blueX: 0.158 blueY: 0.062   whiteX: 0.312 whiteY: 0.329
[    20.590] (II) AMDGPU(0): Supported established timings:
[    20.590] (II) AMDGPU(0): 720x400@70Hz
[    20.590] (II) AMDGPU(0): 640x480@60Hz
[    20.590] (II) AMDGPU(0): 640x480@67Hz
[    20.590] (II) AMDGPU(0): 640x480@72Hz
[    20.590] (II) AMDGPU(0): 640x480@75Hz
[    20.590] (II) AMDGPU(0): 800x600@56Hz
[    20.590] (II) AMDGPU(0): 800x600@60Hz
[    20.590] (II) AMDGPU(0): 800x600@72Hz
[    20.590] (II) AMDGPU(0): 800x600@75Hz
[    20.590] (II) AMDGPU(0): 832x624@75Hz
[    20.590] (II) AMDGPU(0): 1024x768@60Hz
[    20.590] (II) AMDGPU(0): 1024x768@70Hz
[    20.590] (II) AMDGPU(0): 1024x768@75Hz
[    20.590] (II) AMDGPU(0): 1280x1024@75Hz
[    20.590] (II) AMDGPU(0): 1152x864@75Hz
[    20.590] (II) AMDGPU(0): Manufacturer's mask: 0
[    20.590] (II) AMDGPU(0): Supported standard timings:
[    20.590] (II) AMDGPU(0): #0: hsize: 1152  vsize 864  refresh: 75  vid: 20337
[    20.590] (II) AMDGPU(0): #1: hsize: 1280  vsize 800  refresh: 60  vid: 129
[    20.590] (II) AMDGPU(0): #2: hsize: 1280  vsize 720  refresh: 60  vid: 49281
[    20.590] (II) AMDGPU(0): #3: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
[    20.590] (II) AMDGPU(0): #4: hsize: 1600  vsize 900  refresh: 60  vid: 49321
[    20.590] (II) AMDGPU(0): #5: hsize: 1680  vsize 1050  refresh: 60  vid: 179
[    20.590] (II) AMDGPU(0): #6: hsize: 1440  vsize 900  refresh: 60  vid: 149
[    20.590] (II) AMDGPU(0): Supported detailed timing:
[    20.590] (II) AMDGPU(0): clock: 533.2 MHz   Image Size:  607 x 345 mm
[    20.590] (II) AMDGPU(0): h_active: 3840  h_sync: 3888  h_sync_end 3920 h_blank_end 4000 h_border: 0
[    20.590] (II) AMDGPU(0): v_active: 2160  v_sync: 2163  v_sync_end 2168 v_blanking: 2222 v_border: 0
[    20.590] (II) AMDGPU(0): Ranges: V min: 56 V max: 75 Hz, H min: 30 H max: 135 kHz, PixClock max 605 MHz
[    20.590] (II) AMDGPU(0): Monitor name: U28E590
[    20.590] (II) AMDGPU(0): Serial No: HTPKB09462
[    20.590] (II) AMDGPU(0): Supported detailed timing:
[    20.590] (II) AMDGPU(0): clock: 148.5 MHz   Image Size:  607 x 345 mm
[    20.590] (II) AMDGPU(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
[    20.590] (II) AMDGPU(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
[    20.590] (II) AMDGPU(0): Supported detailed timing:
[    20.590] (II) AMDGPU(0): clock: 241.5 MHz   Image Size:  607 x 345 mm
[    20.590] (II) AMDGPU(0): h_active: 2560  h_sync: 2608  h_sync_end 2640 h_blank_end 2720 h_border: 0
[    20.590] (II) AMDGPU(0): v_active: 1440  v_sync: 1443  v_sync_end 1448 v_blanking: 1481 v_border: 0
[    20.590] (II) AMDGPU(0): Supported detailed timing:
[    20.590] (II) AMDGPU(0): clock: 297.0 MHz   Image Size:  607 x 345 mm
[    20.590] (II) AMDGPU(0): h_active: 3840  h_sync: 4016  h_sync_end 4104 h_blank_end 4400 h_border: 0
[    20.590] (II) AMDGPU(0): v_active: 2160  v_sync: 2168  v_sync_end 2178 v_blanking: 2250 v_border: 0
[    20.590] (II) AMDGPU(0): Number of EDID sections to follow: 1
[    20.590] (II) AMDGPU(0): EDID (in hex):
[    20.590] (II) AMDGPU(0): 	00ffffffffffff004c2d4d0c46584d30
[    20.590] (II) AMDGPU(0): 	2f1c0104b53d23783a5fb1a2574fa228
[    20.590] (II) AMDGPU(0): 	0f5054bfef80714f810081c08180a9c0
[    20.590] (II) AMDGPU(0): 	b300950001014dd000a0f0703e803020
[    20.590] (II) AMDGPU(0): 	35005f592100001a000000fd00384b1e
[    20.590] (II) AMDGPU(0): 	873c000a202020202020000000fc0055
[    20.590] (II) AMDGPU(0): 	3238453539300a2020202020000000ff
[    20.590] (II) AMDGPU(0): 	004854504b4230393436320a2020013b
[    20.590] (II) AMDGPU(0): 	02030ef041102309070783010000023a
[    20.590] (II) AMDGPU(0): 	801871382d40582c45005f592100001e
[    20.590] (II) AMDGPU(0): 	565e00a0a0a02950302035005f592100
[    20.590] (II) AMDGPU(0): 	001a04740030f2705a80b0588a005f59
[    20.590] (II) AMDGPU(0): 	2100001e000000000000000000000000
[    20.590] (II) AMDGPU(0): 	00000000000000000000000000000000
[    20.590] (II) AMDGPU(0): 	00000000000000000000000000000000
[    20.590] (II) AMDGPU(0): 	00000000000000000000000000000052
[    20.590] (II) AMDGPU(0): Printing probed modes for output DisplayPort-1
[    20.590] (II) AMDGPU(0): Modeline "3840x2160"x60.0  533.25  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync (133.3 kHz eP)
[    20.590] (II) AMDGPU(0): Modeline "3840x2160"x30.0  297.00  3840 4016 4104 4400  2160 2168 2178 2250 +hsync +vsync (67.5 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "3840x2160"x30.0  296.70  3840 4016 4104 4400  2160 2168 2178 2250 +hsync +vsync (67.4 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "2560x1440"x60.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1920x1080"x59.9  148.35  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.4 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1600x900"x60.0  108.00  1600 1624 1704 1800  900 901 904 1000 +hsync +vsync (60.0 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1280x1024"x75.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1440x900"x59.9  106.50  1440 1520 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1280x800"x59.8   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1152x864"x75.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1280x720"x60.0   74.25  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1280x720"x59.9   74.18  1280 1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1024x768"x75.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1024x768"x70.1   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "832x624"x74.6   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "800x600"x72.2   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "800x600"x75.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "640x480"x75.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "640x480"x72.8   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "640x480"x66.7   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "640x480"x60.0   25.20  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    20.590] (II) AMDGPU(0): Modeline "720x400"x70.1   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[    20.591] (II) AMDGPU(0): EDID for output HDMI-A-0
[    20.591] (II) AMDGPU(0): EDID for output HDMI-A-1
[    20.591] (II) AMDGPU(0): EDID for output DVI-D-0
[    20.591] (II) AMDGPU(0): Output DisplayPort-0 disconnected
[    20.591] (II) AMDGPU(0): Output DisplayPort-1 connected
[    20.591] (II) AMDGPU(0): Output HDMI-A-0 disconnected
[    20.591] (II) AMDGPU(0): Output HDMI-A-1 disconnected
[    20.591] (II) AMDGPU(0): Output DVI-D-0 disconnected
[    20.591] (II) AMDGPU(0): Using exact sizes for initial modes
[    20.591] (II) AMDGPU(0): Output DisplayPort-1 using initial mode 3840x2160 +0+0
[    20.591] (II) AMDGPU(0): mem size init: gart size :1ffd3d000 vram size: s:1fd71c000 visible:db2c000
[    20.591] (==) AMDGPU(0): DPI set to (96, 96)
[    20.591] (==) AMDGPU(0): Using gamma correction (1.0, 1.0, 1.0)
[    20.591] (II) Loading sub module "ramdac"
[    20.591] (II) LoadModule: "ramdac"
[    20.591] (II) Module "ramdac" already built-in
[    20.591] (II) UnloadModule: "modesetting"
[    20.591] (II) Unloading modesetting
[    20.591] (II) UnloadModule: "wsfb"
[    20.591] (II) Unloading wsfb
[    20.592] (II) AMDGPU(0): [DRI2] Setup complete
[    20.592] (II) AMDGPU(0): [DRI2]   DRI driver: radeonsi
[    20.592] (II) AMDGPU(0): [DRI2]   VDPAU driver: radeonsi
[    20.592] (II) AMDGPU(0): Front buffer pitch: 15360 bytes
[    20.593] (II) AMDGPU(0): SYNC extension fences enabled
[    20.593] (II) AMDGPU(0): Present extension enabled
[    20.593] (==) AMDGPU(0): DRI3 enabled
[    20.593] (==) AMDGPU(0): Backing store enabled
[    20.593] (II) AMDGPU(0): Direct rendering enabled
[    20.614] (II) AMDGPU(0): Use GLAMOR acceleration.
[    20.614] (II) AMDGPU(0): Acceleration enabled
[    20.614] (==) AMDGPU(0): DPMS enabled
[    20.614] (==) AMDGPU(0): Silken mouse enabled
[    20.615] (II) AMDGPU(0): Set up textured video (glamor)
[    20.659] (II) Initializing extension Generic Event Extension
[    20.659] (II) Initializing extension SHAPE
[    20.659] (II) Initializing extension MIT-SHM
[    20.659] (II) Initializing extension XInputExtension
[    20.659] (II) Initializing extension XTEST
[    20.660] (II) Initializing extension BIG-REQUESTS
[    20.660] (II) Initializing extension SYNC
[    20.660] (II) Initializing extension XKEYBOARD
[    20.660] (II) Initializing extension XC-MISC
[    20.660] (II) Initializing extension SECURITY
[    20.661] (II) Initializing extension XFIXES
[    20.661] (II) Initializing extension XFree86-Bigfont
[    20.661] (II) Initializing extension RENDER
[    20.661] (II) Initializing extension RANDR
[    20.661] (II) Initializing extension COMPOSITE
[    20.661] (II) Initializing extension DAMAGE
[    20.661] (II) Initializing extension MIT-SCREEN-SAVER
[    20.662] (II) Initializing extension DOUBLE-BUFFER
[    20.662] (II) Initializing extension RECORD
[    20.662] (II) Initializing extension DPMS
[    20.662] (II) Initializing extension Present
[    20.662] (II) Initializing extension DRI3
[    20.662] (II) Initializing extension X-Resource
[    20.662] (II) Initializing extension XVideo
[    20.662] (II) Initializing extension XVideo-MotionCompensation
[    20.662] (II) Initializing extension GLX
[    20.666] (II) AIGLX: Loaded and initialized radeonsi
[    20.666] (II) GLX: Initialized DRI2 GL provider for screen 0
[    20.666] (II) Initializing extension XFree86-VidModeExtension
[    20.667] (II) Initializing extension XFree86-DGA
[    20.667] (II) Initializing extension XFree86-DRI
[    20.667] (II) Initializing extension DRI2
[    20.673] (II) AMDGPU(0): Setting screen physical size to 1016 x 571
[    20.769] (II) config/wscons: checking input device /dev/wskbd
[    20.769] (II) wskbd: using layout de
[    20.769] (II) wskbd: using variant nodeadkeys
[    20.769] (II) LoadModule: "kbd"
[    20.770] (II) Loading /usr/X11R7/lib/modules/drivers/kbd_drv.so
[    20.770] (II) Module kbd: vendor="X.Org Foundation"
[    20.770] 	compiled for 1.20.13, module version = 1.9.0
[    20.770] 	Module class: X.Org XInput Driver
[    20.770] 	ABI class: X.Org XInput driver, version 24.1
[    20.770] (II) Using input driver 'kbd' for '/dev/wskbd'
[    20.770] (**) /dev/wskbd: always reports core events
[    20.770] (**) /dev/wskbd: always reports core events
[    20.770] (**) Option "Protocol" "standard"
[    20.770] (**) Option "XkbRules" "base"
[    20.770] (**) Option "XkbModel" "pc105"
[    20.771] (**) Option "XkbLayout" "de"
[    20.771] (**) Option "XkbVariant" "nodeadkeys"
[    20.771] (II) XINPUT: Adding extended input device "/dev/wskbd" (type: KEYBOARD, id 6)
[    20.786] (II) config/wscons: checking input device /dev/wsmouse
[    20.786] (II) LoadModule: "ws"
[    20.787] (II) Loading /usr/X11R7/lib/modules/drivers/ws_drv.so
[    20.787] (II) Module ws: vendor="X.Org Foundation"
[    20.787] 	compiled for 1.20.13, module version = 1.3.0
[    20.787] 	Module class: X.Org XInput Driver
[    20.787] 	ABI class: X.Org XInput driver, version 24.1
[    20.787] (II) Using input driver 'ws' for '/dev/wsmouse'
[    20.787] (**) /dev/wsmouse: always reports core events
[    20.787] (II) /dev/wsmouse: debuglevel 0
[    20.787] (**) /dev/wsmouse: ZAxisMapping: buttons 4 and 5
[    20.787] (**) /dev/wsmouse associated screen: 0
[    20.787] (**) Option "Device" "/dev/wsmouse"
[    20.789] (II) /dev/wsmouse minimum x position: 0
[    20.789] (II) /dev/wsmouse maximum x position: 3839
[    20.789] (II) /dev/wsmouse minimum y position: 0
[    20.789] (II) /dev/wsmouse maximum y position: 2159
[    20.789] (**) /dev/wsmouse: Buttons: 5
[    20.791] (II) XINPUT: Adding extended input device "/dev/wsmouse" (type: MOUSE, id 7)
[    20.793] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1
[    20.793] (**) /dev/wsmouse: (accel) acceleration profile 0
[    20.793] (**) /dev/wsmouse: (accel) acceleration factor: 2.000
[    20.793] (**) /dev/wsmouse: (accel) acceleration threshold: 4
[    25.784] (II) AMDGPU(0): EDID vendor "SAM", prod id 3149
[    25.784] (II) AMDGPU(0): Using EDID range info for horizontal sync
[    25.784] (II) AMDGPU(0): Using EDID range info for vertical refresh
[    25.784] (II) AMDGPU(0): Printing DDC gathered Modelines:
[    25.784] (II) AMDGPU(0): Modeline "3840x2160"x0.0  533.25  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync (133.3 kHz eP)
[    25.784] (II) AMDGPU(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "2560x1440"x0.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "3840x2160"x0.0  297.00  3840 4016 4104 4400  2160 2168 2178 2250 +hsync +vsync (67.5 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "640x480"x0.0   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "640x480"x0.0   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "1024x768"x0.0   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "800x600"x0.0   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "1280x800"x0.0   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "1280x720"x60.0   74.48  1280 1336 1472 1664  720 721 724 746 -hsync +vsync (44.8 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "1600x900"x60.0  119.00  1600 1696 1864 2128  900 901 904 932 -hsync +vsync (55.9 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "1680x1050"x0.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz e)
[    25.784] (II) AMDGPU(0): Modeline "1440x900"x0.0  106.50  1440 1520 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz e)
[   348.558] (II) AIGLX: Suspending AIGLX clients for VT switch
[   352.831] (II) AIGLX: Resuming AIGLX clients after VT switch
[   352.883] (II) AMDGPU(0): EDID vendor "SAM", prod id 3149
[   352.883] (II) AMDGPU(0): Using hsync ranges from config file
[   352.883] (II) AMDGPU(0): Using vrefresh ranges from config file
[   352.883] (II) AMDGPU(0): Printing DDC gathered Modelines:
[   352.883] (II) AMDGPU(0): Modeline "3840x2160"x0.0  533.25  3840 3888 3920 4000  2160 2163 2168 2222 +hsync -vsync (133.3 kHz eP)
[   352.883] (II) AMDGPU(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "2560x1440"x0.0  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync (88.8 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "3840x2160"x0.0  297.00  3840 4016 4104 4400  2160 2168 2178 2250 +hsync +vsync (67.5 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "640x480"x0.0   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "640x480"x0.0   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "1024x768"x0.0   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "800x600"x0.0   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "1280x800"x0.0   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "1280x720"x60.0   74.48  1280 1336 1472 1664  720 721 724 746 -hsync +vsync (44.8 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "1600x900"x60.0  119.00  1600 1696 1864 2128  900 901 904 932 -hsync +vsync (55.9 kHz e)
[   352.883] (II) AMDGPU(0): Modeline "1680x1050"x0.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz e)
[   352.884] (II) AMDGPU(0): Modeline "1440x900"x0.0  106.50  1440 1520 1672 1904  900 903 909 934 -hsync +vsync (55.9 kHz e)

>How-To-Repeat:
s/a
>Fix:
n/a

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Thu, 15 Sep 2022 21:19:57 +0000
State-Changed-Why:
Is this still an issue?  May have been fixed by recent drm_mm.c changes.


From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@netbsd.org
Cc: xsrc-manager@netbsd.org, netbsd-bugs@netbsd.org,
    gnats-admin@netbsd.org, riastradh@NetBSD.org, martin@NetBSD.org
Subject: re: xsrc/56729 (amdgpu X driver nearly (but not quite) working)
Date: Fri, 16 Sep 2022 07:59:09 +1000

 riastradh@NetBSD.org writes:
 > Synopsis: amdgpu X driver nearly (but not quite) working
 >
 > State-Changed-From-To: open->feedback
 > State-Changed-By: riastradh@NetBSD.org
 > State-Changed-When: Thu, 15 Sep 2022 21:19:57 +0000
 > State-Changed-Why:
 > Is this still an issue?  May have been fixed by recent drm_mm.c changes.

 i booted amdgpu (RX550) on a recent -current system and the
 system hard hung when starting X11.  serial break does not
 give me ddb...

 previously, i had seen very similar issues that martin had
 reported.


 .mrg.

From: matthew green <mrg@eterna.com.au>
To: xsrc-manager@netbsd.org, netbsd-bugs@netbsd.org,
    gnats-admin@netbsd.org, riastradh@NetBSD.org, martin@NetBSD.org,
    gnats-bugs@netbsd.org
Cc: 
Subject: re: xsrc/56729 (amdgpu X driver nearly (but not quite) working)
Date: Fri, 16 Sep 2022 17:26:05 +1000

 > i booted amdgpu (RX550) on a recent -current system and the
 > system hard hung when starting X11.  serial break does not
 > give me ddb...

 this turns out to be some unrelated issue.  i didn't have
 amdgpu in my kernel at all (so this was vga0 attached,
 and then something else hard hanging starting X.)

 i'm able to run some basic stuff and it works fine, but
 an issue i had a while back remains, if slightly different
 in nature.

 if i run 'mpv' in full-screen mode, the display becomes
 corrupted in a wrong-palette-like way, but with damaged
 interfaces that may have apps behind the foreground app
 mixed in some how (eg, glxgears data.)  in the background
 it seems that a ring becomes locked up and the drm tries
 to reset, but ultimately ends up not working (you get
 errors trying to initialise a parser after it claims
 to succeed.)

 the host survives a while without doing mpv in full screen.

 you can see an example of the reset issue being triggered
 twice in:
    https://github.com/riastradh/netbsd-src/issues/28

 the mpv above exited, and i attempted to run another one,
 which gave me eg:

 amdgpu: amdgpu_cs_query_fence_status failed.
 amdgpu: The CS has been cancelled because the context is lost.
 amdgpu: The CS has been cancelled because the context is lost.

 messages from libdrm_amdgpu, and did nothing, so i ^C'd
 it which turned it into a zombie.  crash shows this BT:

 crash> bt/a ffff82ea1303a140
 trace: pid 2000 lid 4093 at 0xffff8710b95be9b0
 sleepq_block() at sleepq_block+0x13a
 cv_wait() at cv_wait+0x49
 linux_dma_fence_default_wait() at linux_dma_fence_default_wait+0x163
 linux_dma_fence_wait_timeout() at linux_dma_fence_wait_timeout+0xde
 linux_dma_fence_wait() at linux_dma_fence_wait+0x52
 amdgpu_vm_fini() at amdgpu_vm_fini+0xa9
 amdgpu_driver_postclose_kms() at amdgpu_driver_postclose_kms+0x133
 drm_file_free() at drm_file_free+0x1a8
 drm_close() at drm_close+0x60
 closef() at closef+0x60
 fd_free() at fd_free+0x1e4
 exit1() at exit1+0x13e
 sigexit() at sigexit+0x2e7
 postsig() at sendsig
 lwp_userret() at lwp_userret+0x20a
 mi_userret() at mi_userret+0x249
 syscall() at syscall+0x116
 --- syscall (number 4) ---
 syscall+0x116:
 crash>

From: Taylor R Campbell <riastradh@NetBSD.org>
To: mrg@eterna.com.au
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/56729: amdgpu X driver nearly (but not quite) working
Date: Sun, 9 Jul 2023 22:07:08 +0000

 mrg: Can you try again with the new heartbeat option enabled and see
 if the system still hangs hard?

 options 	HEARTBEAT
 options 	HEARTBEAT_MAX_PERIOD_DEFAULT=15
 options 	DDB_COMMANDONENTER="bt;ps;show all tstiles/t;sync"

 Also: Do you have a hardware watchdog timer on this machine?

 If you can get any of this information out and it's not obviously
 related to the logs martin provided, can you file a new PR with it?

From: matthew green <mrg@eterna.com.au>
To: Taylor R Campbell <riastradh@NetBSD.org>
Cc: gnats-bugs@NetBSD.org
Subject: re: kern/56729: amdgpu X driver nearly (but not quite) working
Date: Tue, 11 Jul 2023 08:06:10 +1000

 Taylor R Campbell writes:
 > mrg: Can you try again with the new heartbeat option enabled and see
 > if the system still hangs hard?
 >
 > options 	HEARTBEAT
 > options 	HEARTBEAT_MAX_PERIOD_DEFAULT=15
 > options 	DDB_COMMANDONENTER="bt;ps;show all tstiles/t;sync"
 >
 > Also: Do you have a hardware watchdog timer on this machine?
 >
 > If you can get any of this information out and it's not obviously
 > related to the logs martin provided, can you file a new PR with it?

 note that the hardware hang was shortly diagnosed as being
 unrelated to amdgpu..  see my next reply to this PR:

 > this turns out to be some unrelated issue.  i didn't have
 > amdgpu in my kernel at all (so this was vga0 attached,
 > and then something else hard hanging starting X.)

 ... and then desecription of soft-hang of mpv, and the same
 original corruption.  ie, this PR.  there's no other problem
 to make a new PR for..

 right now i have a 5450 installed, but i'll put the RX550
 back in and see what the latest status is.

 thanks.


 .mrg.

From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@netbsd.org
Cc: xsrc-manager@netbsd.org, gnats-admin@netbsd.org,
    netbsd-bugs@netbsd.org, martin@NetBSD.org
Subject: re: kern/56729: amdgpu X driver nearly (but not quite) working
Date: Thu, 20 Jul 2023 17:52:09 +1000

 >  right now i have a 5450 installed, but i'll put the RX550
 >  back in and see what the latest status is.

 with the RX550 i am now able to run 12x glxgears for about an hour
 before the X server crashes, and mpv is capable of going into and
 out of fullscreen mode without corrupting anything else.

 the crash is inside glamor module, possibly some map/unmap race
 as the faulting address always seems to be accessible in GDB.

 while not great, this is far more usable than any prior so far.

 unfortunately, i get crashes on a ryzen pro 3700U CPU's amdgpu.
 some command times out, and it either crashes with a LOCKDEBUG
 error (i have a patch for this part), or then with cnopen panic
 no console as no framebuffer/console is attached now.

 i'll file a separate PR about the 3700U issue, as it is
 unrelated to it sort-of working.


 .mrg.

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/56729: amdgpu X driver nearly (but not quite) working
Date: Sat, 29 Jun 2024 15:24:50 +0200

 I updated the machine to -current as of today and retried.
 I couldn't reproduce any graphical errors immediately (all looked fine
 in a single try). I made sure /dev/dri/card0 was readable and started
 firefox.

 [  1261.830817] {drm:netbsd:amdgpu_job_timedout+0xaa} *ERROR* ring gfx timeout, signaled seq=98563, emitted seq=98565
 [  1261.831816] {drm:netbsd:amdgpu_job_timedout+0xc7} *ERROR* Process information: process firefox pid 5335 thread firefox:cs0 pid 4833
 [  1261.831816] amdgpu0: GPU reset begin!
 [  1262.461796] cp is busy, skip halt cp
 [  1262.689789] rlc is busy, skip halt rlc
 [  1262.690789] amdgpu0: GPU BACO reset
 [  1262.850783] amdgpu0: GPU reset succeeded, trying to resume
 [  1262.852783] [drm] PCIE GART of 256M enabled (table at 0x000000F400300000).
 [  1262.852783] [drm] VRAM is lost due to GPU reset!
 [  1263.008778] [drm] UVD and UVD ENC initialized successfully.
 [  1263.109775] [drm] VCE initialized successfully.
 [  1263.113775] [drm] recover vram bo from shadow start
 [  1263.114775] [drm] recover vram bo from shadow done
 [  1263.114775] [drm] Skip scheduling IBs!
 [  1263.114775] [drm] Skip scheduling IBs!
 [  1263.114775] amdgpu0: GPU reset(2) succeeded!
 [  1273.113449] {drm:netbsd:amdgpu_job_timedout+0xaa} *ERROR* ring gfx timeout, signaled seq=98566, emitted seq=98566
 [  1273.113449] {drm:netbsd:amdgpu_job_timedout+0xc7} *ERROR* Process information: process firefox pid 5335 thread firefox:cs0 pid 4833
 [  1273.113449] amdgpu0: GPU reset begin!
 [  1273.512436] amdgpu0: GPU BACO reset
 [  1273.673431] amdgpu0: GPU reset succeeded, trying to resume
 [  1273.675431] [drm] PCIE GART of 256M enabled (table at 0x000000F400300000).
 [  1273.675431] [drm] VRAM is lost due to GPU reset!
 [  1273.831425] [drm] UVD and UVD ENC initialized successfully.
 [  1273.932422] [drm] VCE initialized successfully.
 [  1273.936422] [drm] recover vram bo from shadow start
 [  1273.937422] [drm] recover vram bo from shadow done
 [  1273.937422] amdgpu0: GPU reset(3) succeeded!

 and now the screen is psychedelic, I see a (huge) square as mouse pointer
 (and can move it).

 I can kill X and xdm starts a new server (with working display).

 Martin

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.