From owner-freebsd-x11@freebsd.org Fri Nov 8 01:53:34 2019 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7A7AC1A2E41 for ; Fri, 8 Nov 2019 01:53:34 +0000 (UTC) (envelope-from kh@panix.com) Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 478NbK6p9Bz3CGX for ; Fri, 8 Nov 2019 01:53:33 +0000 (UTC) (envelope-from kh@panix.com) Received: from rain.home (pool-72-74-69-77.bstnma.fios.verizon.net [72.74.69.77]) by mailbackend.panix.com (Postfix) with ESMTPSA id 478NbK06k6zkW7 for ; Thu, 7 Nov 2019 20:53:32 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <24004.51853.331522.684781@rain.home> Date: Thu, 7 Nov 2019 20:53:17 -0500 From: Kurt Hackenberg To: freebsd-x11@freebsd.org Subject: AMD Ryzen Vega problem X-Mailer: VM 8.2.0b under 26.3 (amd64-portbld-freebsd13.0) X-Rspamd-Queue-Id: 478NbK6p9Bz3CGX X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of kh@panix.com designates 166.84.1.89 as permitted sender) smtp.mailfrom=kh@panix.com X-Spamd-Result: default: False [-5.64 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:166.84.0.0/16]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-x11@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[panix.com]; RCVD_IN_DNSWL_MED(-0.20)[89.1.84.166.list.dnswl.org : 127.0.5.2]; IP_SCORE(-3.14)[ip: (-9.14), ipnet: 166.84.0.0/16(-3.61), asn: 2033(-2.89), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2033, ipnet:166.84.0.0/16, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Nov 2019 01:53:34 -0000 Hello people. FreeBSD graphics seems to have a problem on my desktop PC. I hope somebody here will have some ideas about this. A recent build of 13.0-CURRENT hung silently during boot, apparently shortly after loading and starting amdgpu. I saw some messages from drm on the console, then everything stopped. A build from October 24 (r353967) worked much better, but had at least one problem, which looks serious. Details of that are at the end of this message. Both builds seem to work fine when amdgpu is not loaded (though with no /dev/dri, and presumably no hardware graphics acceleration). The PC is an HP Pavilion 590-p0025. The processor is an AMD Ryzen 3 2200G, with an integrated graphics processor -- "Radeon Vega 8 graphics". FreeBSD says the processor is this: CPU: AMD Ryzen 3 2200G with Radeon Vega Graphics (3493.53-MHz K8-class CPU) Origin="AuthenticAMD" Id=0x810f10 Family=0x17 Model=0x11 Stepping=0 Features=0x178bfbff Features2=0x7ed8320b AMD Features=0x2e500800 AMD Features2=0x35c233ff Structured Extended Features=0x209c01a9 XSAVE Features=0xf AMD Extended Feature Extensions ID EBX=0x1007 SVM: (disabled in BIOS) NP,NRIP,VClean,AFlush,DAssist,NAsids=32768 TSC: P-state invariant, performance statistics The software is this: ~$ uname -a FreeBSD rain.home 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r354368: Wed Nov 6 02:19:37 EST 2019 root@rain.home:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 ~$ pkg info 'drm*' drm-devel-kmod-5.0.g20191023 ~$ pkg info '*firmware*' gpu-firmware-kmod-g20191015 ~$ ----------------------------------- The version that mostly worked was an earlier build of FreeBSD, but with the same graphics processor software: ~$ uname -a FreeBSD rain.home 13.0-CURRENT FreeBSD 13.0-CURRENT #2 r353967: Thu Oct 24 01:53:28 EDT 2019 root@rain.home:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 ~$ pkg info 'drm*' drm-devel-kmod-5.0.g20191023 ~$ pkg info '*firmware*' gpu-firmware-kmod-g20191015 ~$ With this software, when mpv plays a short video, a pair of errors happens five times in a row: Oct 24 19:09:53 rain kernel: uma_zalloc_arg: zone "128" with the following non-sleepable locks held: Oct 24 19:09:53 rain kernel: exclusive rw vm object (vm object) r = 0 (0xfffff801dac97500) locked @ /usr/src/sys/vm/vm_fault.c:767 Oct 24 19:09:53 rain kernel: stack backtrace: Oct 24 19:09:53 rain kernel: #0 0xffffffff80c2cab1 at witness_debugger+0x71 Oct 24 19:09:53 rain kernel: #1 0xffffffff80c2dab0 at witness_warn+0x430 Oct 24 19:09:53 rain kernel: #2 0xffffffff80ef4a2b at uma_zalloc_arg+0x3b Oct 24 19:09:53 rain kernel: #3 0xffffffff80b98f19 at malloc+0x99 Oct 24 19:09:53 rain kernel: #4 0xffffffff8261c5ad at linux_alloc_current+0x3d Oct 24 19:09:53 rain kernel: #5 0xffffffff8261bdb7 at linux_cdev_pager_populate+0x237 Oct 24 19:09:53 rain kernel: #6 0xffffffff80efc131 at vm_fault+0x5c1 Oct 24 19:09:53 rain kernel: #7 0xffffffff80efba1e at vm_fault_trap+0x6e Oct 24 19:09:53 rain kernel: #8 0xffffffff81033c05 at trap_pfault+0x205 Oct 24 19:09:53 rain kernel: #9 0xffffffff81033253 at trap+0x453 Oct 24 19:09:53 rain kernel: #10 0xffffffff81009f9c at calltrap+0x8 Oct 24 19:09:53 rain kernel: uma_zalloc_arg: zone "64" with the following non-sleepable locks held: Oct 24 19:09:53 rain kernel: exclusive rw vm object (vm object) r = 0 (0xfffff801dac97500) locked @ /usr/src/sys/vm/vm_fault.c:767 Oct 24 19:09:53 rain kernel: stack backtrace: Oct 24 19:09:53 rain kernel: #0 0xffffffff80c2cab1 at witness_debugger+0x71 Oct 24 19:09:53 rain kernel: #1 0xffffffff80c2dab0 at witness_warn+0x430 Oct 24 19:09:53 rain kernel: #2 0xffffffff80ef4a2b at uma_zalloc_arg+0x3b Oct 24 19:09:53 rain kernel: #3 0xffffffff80b98f19 at malloc+0x99 Oct 24 19:09:53 rain kernel: #4 0xffffffff8261c5d2 at linux_alloc_current+0x62 Oct 24 19:09:53 rain kernel: #5 0xffffffff8261bdb7 at linux_cdev_pager_populate+0x237 Oct 24 19:09:53 rain kernel: #6 0xffffffff80efc131 at vm_fault+0x5c1 Oct 24 19:09:53 rain kernel: #7 0xffffffff80efba1e at vm_fault_trap+0x6e Oct 24 19:09:53 rain kernel: #8 0xffffffff81033c05 at trap_pfault+0x205 Oct 24 19:09:53 rain kernel: #9 0xffffffff81033253 at trap+0x453 Oct 24 19:09:53 rain kernel: #10 0xffffffff81009f9c at calltrap+0x8 (and four more times) and then this happens: Oct 24 19:10:05 rain kernel: [drm ERROR :drm_sched_entity_flush] ==========> BUG: entity->rq->sched is NULL Oct 24 19:10:05 rain syslogd: last message repeated 5 times Eventually the system hangs or crashes, though I'm not sure that's caused by this specific error.