From owner-freebsd-x11@freebsd.org Mon Apr 13 07:29:18 2020 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 79E062B5CE5 for ; Mon, 13 Apr 2020 07:29:18 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4910cG2hP8z4DDX for ; Mon, 13 Apr 2020 07:29:18 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 5A68B2B5CE4; Mon, 13 Apr 2020 07:29:18 +0000 (UTC) Delivered-To: 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 5A2BA2B5CE3 for ; Mon, 13 Apr 2020 07:29:18 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2607:f740:d:20::25]) (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 4910cF5bqdz4DDW for ; Mon, 13 Apr 2020 07:29:17 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 4910c40XhMz3lbn; Mon, 13 Apr 2020 07:29:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([127.0.0.1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [127.0.0.1]) (amavisd-new, port 10587) with ESMTPS id 3emy89UFtu2c; Mon, 13 Apr 2020 07:29:07 +0000 (UTC) Received: from garnet.daemonic.se (unknown [IPv6:2001:470:dca9:201:442b:819c:37fd:3e24]) by mail.daemonic.se (Postfix) with ESMTPSA id 4910c31s5bz3lbm; Mon, 13 Apr 2020 07:29:07 +0000 (UTC) Subject: Re: Users of x11-drivers/xf86-video-ati-legacy To: Andrea Venturoli , x11@FreeBSD.org References: <16c93a1a-cc60-b9a5-da48-889f48aa6005@netfence.it> From: Niclas Zeising Message-ID: <9352b468-9f09-ad30-0b9e-acd896cadb17@freebsd.org> Date: Mon, 13 Apr 2020 09:29:05 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4910cF5bqdz4DDW X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.93 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.95)[-0.948,0]; NEURAL_HAM_LONG(-0.98)[-0.978,0]; ASN(0.00)[asn:36236, ipnet:2607:f740:d::/48, country:US] 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: Mon, 13 Apr 2020 07:29:18 -0000 On 2020-04-12 17:21, Andrea Venturoli wrote: > On 2020-04-12 09:54, Andrea Venturoli wrote: >> On 2020-04-11 16:43, Andrea Venturoli wrote: >> >> Some more info as I investigate: >=20 > I tried some debugging and what I think is happening is that the root=20 > windows get created and painted black (through pixman, with SSE=20 > instructions). > However at about 300kB into the buffer (which should be around 900kB)=20 > that segfaults. > Is it possible that the memory is allocated wrong/in the wrong place? >=20 > I went into the BIOS: I can choose to use the GPU's own memory, memory=20 > shared from main RAM or both. Also if memory should be mapped below or=20 > above 4G. > Those settings do not seem to make any difference, however. >=20 >=20 > The above is with drm-kmod-legacy (or drm from base). >=20 > xf86-video-ati-legacy seems to work with drm-fbsd12.0-kmod, instead=20 > (which, OTOH gives different problems). Hi! Thank you for helping out and testing, unfortunately there is not much=20 to do if it does not work. I don't have the time or hardware to get an=20 older xf86-video-ati to maybe build with xserver 1.20. The reason xf86-video-ati-legacy works with drm-fbsd12.0-kmod is that=20 the updated kmod uses newer APIs etc. At one point, xf86-video-ati was=20 updated to make these work, and when we updated xf86-video-ati in ports=20 to the latest version to get support for more modern hardware,we had to=20 create xf86-video-ati-legacy for use with drm-legacy-kmod. This was=20 always one of those stop-gap measures. >=20 >=20 >=20 > To recap the various combinations. >=20 > With X.Org 1.19.6 + drm from base + xf86-video-ati-legacy everything=20 > worked fine. Yes, because the things that ati-legacy uses that caused it to break was=20 changed between xserver 1.19 and 1.20. >=20 > Now on to 1.20.8, drm from base or drm-kmod-legacy +=20 > xf86-video-ati-legacy: I get a crash. >=20 > Moving to drm-fbsd12.0-kmod, I completely lose HDMI output and DVI=20 > output doesn't work properly (screen flashes continuously, unless I=20 > reduce full resolution): I have to use VGA output (sigh). >=20 > I also tried xf86-video-ati (non legacy): everything seems the same,=20 > except the machine will sometimes hang. > (I have not experienced an hang *yet* with xf86-video-ati, but it's bee= n=20 > to short a time to conclude anything). Is this with drm-kmod or drm-legacy-kmod? >=20 >=20 >=20 > So I guess your patch works, at least in some cases. It's possible the=20 > problems I'm having are not due to xf86-video-ati-legacy, but to some=20 > other component. >=20 > =C2=A0bye & Thanks > =C2=A0=C2=A0=C2=A0=C2=A0av. Regards --=20 Niclas Zeising