From owner-freebsd-x11@freebsd.org Thu Nov 7 22:01:12 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 F3F5217B697 for ; Thu, 7 Nov 2019 22:01:11 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from mail.infocus-llc.com (mail.infocus-llc.com [199.15.120.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 478HRC1BVKz4RGp; Thu, 7 Nov 2019 22:01:10 +0000 (UTC) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (c-174-50-4-214.hsd1.ms.comcast.net [174.50.4.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.tarragon.infocus-llc.com (Postfix) with ESMTPSA id 478HQp5wXfzc4C; Thu, 7 Nov 2019 16:00:50 -0600 (CST) Received: by draco.over-yonder.net (Postfix, from userid 100) id 478HQp19HNzH5L; Thu, 7 Nov 2019 16:00:50 -0600 (CST) Date: Thu, 7 Nov 2019 16:00:50 -0600 From: "Matthew D. Fuller" To: Niclas Zeising Cc: freebsd-x11@freebsd.org Subject: Re: drm-fbsd11.2-kmod on 12 Message-ID: <20191107220050.GA3169@over-yonder.net> References: <20191103231435.GH86455@over-yonder.net> <3231b40d-1041-10d2-f062-eda237e07a02@freebsd.org> <20191106230916.GI86455@over-yonder.net> <77bac16b-0438-b7ed-0c44-fadc230e55f8@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <77bac16b-0438-b7ed-0c44-fadc230e55f8@freebsd.org> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 478HRC1BVKz4RGp X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of fullermd@over-yonder.net designates 199.15.120.13 as permitted sender) smtp.mailfrom=fullermd@over-yonder.net X-Spamd-Result: default: False [-3.06 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[214.4.50.174.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[over-yonder.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-0.76)[asn: 33069(-3.73), country: US(-0.05)]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:33069, ipnet:199.15.120.0/22, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Thu, 07 Nov 2019 22:01:12 -0000 On Thu, Nov 07, 2019 at 09:41:20AM +0100 I heard the voice of Niclas Zeising, and lo! it spake thus: > > What issues are you seeing with the 4.16 branch? Have you reported > this? On one machine with radeonkms and a Radeon 6450, it will eventually crash when using vdpau output for videos (I believe even with formats that don't get hardware accelerated). It doesn't happen deterministically, but on a frequency of maybe a few percent of the time. 4.11 is perfectly fine with it, and 4.16 hasn't shown any surprises without vdpau, so that's reasonably easily workaroundable in practice. On my main workstation, with amdgpu and a Radeon wx2100 (roughly 550-something-ish), it will crash out without obvious trigger, on the order of maybe twice a week. Playing video, not playing video, scrolling in a browser, not scrolling in a browser, xlock'd and DPMS'd off, everything on, etc. As I recall, backtraces wound up pointing at not much after ioctl handlers, bearing some resemblance to the stuff in GH issue #149 (though I'm on the different driver), and I believe once that looked more like #130 with the ttm funcs (with similar to both showing up in the BZ bug linked from there). I don't have any of the cores still around though; I switched back to 4.11 last year, and it's been solid since. Part of the difficulty with this being so much upstream-y code that we're a ways behind on, is that I know it can be really hard to separate "we cause this problem by a mistake in porting" vs "this is a bug in the pure code" (especially of the "... and is fixed in later upstream versions already" variant). So I figure the best way to get it fixed is to desperately strive to not distract the people trying to catch up to upstream, and more up-to-date-ish upstream code will either have fixed their bug, or make it more certain that it's something on our side causing it. Either way, there's more to work with than "it crashes every couple days"... > Getting 4.11 running on FreeBSD 12.1 would require some effort, and > I believe that effort is much better spent elsewhere. I figured it would actually be relatively simple; it works fine with a mid-July stable/12, and there's only a half dozen or so commits on the drm-v4.16-fbsd12.0 branch since then, so I expect I can probably get it working just by backporting a couple of them. (I _was_ asking "has anybody who knows this code already done this work?", more than "hey, can you guys do this for me?") -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.