From owner-freebsd-x11@freebsd.org Sun Apr 12 15:21:29 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 112692C0A0C for ; Sun, 12 Apr 2020 15:21:29 +0000 (UTC) (envelope-from ml@netfence.it) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 490b7X4RkSz4FWZ for ; Sun, 12 Apr 2020 15:21:28 +0000 (UTC) (envelope-from ml@netfence.it) Received: by mailman.nyi.freebsd.org (Postfix) id 9886E2C0A0B; Sun, 12 Apr 2020 15:21:28 +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 984D62C0A0A for ; Sun, 12 Apr 2020 15:21:28 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 490b7W1M7Pz4FWM; Sun, 12 Apr 2020 15:21:26 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id 03CFLGWN004653 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Sun, 12 Apr 2020 17:21:18 +0200 (CEST) (envelope-from ml@netfence.it) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfence.it; s=202002; t=1586704878; bh=bxoicMOox2isBh06qdvz/NVU6wA6ZNBlbolEQ/5N1B8=; h=Subject:From:To:References:Date:In-Reply-To; b=h57EQ0ihUJDFTvPmymm0zoUqChOJXWT99xAv+5Wyg4SA+f1zd92eLvMao0EsEG7bg ozADy9X2bE3Du0c7dV8zDFUt1SwS+N9rQkaDRfAaJ68Zha4pmNxKGMggmRvr/eM0p/ Cbu5iZBjr+rLWxLjQO7ZO7uSIdaH9LLw2+vLfqWM= X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu Subject: Re: Users of x11-drivers/xf86-video-ati-legacy From: Andrea Venturoli To: Niclas Zeising , x11@FreeBSD.org References: <16c93a1a-cc60-b9a5-da48-889f48aa6005@netfence.it> Message-ID: Date: Sun, 12 Apr 2020 17:21:16 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 490b7W1M7Pz4FWM X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=netfence.it header.s=202002 header.b=h57EQ0ih; dmarc=pass (policy=none) header.from=netfence.it; spf=pass (mx1.freebsd.org: domain of ml@netfence.it designates 2.44.121.52 as permitted sender) smtp.mailfrom=ml@netfence.it X-Spamd-Result: default: False [-4.79 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[netfence.it:s=202002]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:2.44.121.52]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DKIM_TRACE(0.00)[netfence.it:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[netfence.it,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.79)[ip: (-8.53), ipnet: 2.44.0.0/16(-4.26), asn: 30722(3.83), country: IT(0.03)]; ASN(0.00)[asn:30722, ipnet:2.44.0.0/16, country:IT]; 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: Sun, 12 Apr 2020 15:21:29 -0000 On 2020-04-12 09:54, Andrea Venturoli wrote: > On 2020-04-11 16:43, Andrea Venturoli wrote: > > Some more info as I investigate: I tried some debugging and what I think is happening is that the root windows get created and painted black (through pixman, with SSE instructions). However at about 300kB into the buffer (which should be around 900kB) that segfaults. Is it possible that the memory is allocated wrong/in the wrong place? I went into the BIOS: I can choose to use the GPU's own memory, memory shared from main RAM or both. Also if memory should be mapped below or above 4G. Those settings do not seem to make any difference, however. The above is with drm-kmod-legacy (or drm from base). xf86-video-ati-legacy seems to work with drm-fbsd12.0-kmod, instead (which, OTOH gives different problems). To recap the various combinations. With X.Org 1.19.6 + drm from base + xf86-video-ati-legacy everything worked fine. Now on to 1.20.8, drm from base or drm-kmod-legacy + xf86-video-ati-legacy: I get a crash. Moving to drm-fbsd12.0-kmod, I completely lose HDMI output and DVI output doesn't work properly (screen flashes continuously, unless I reduce full resolution): I have to use VGA output (sigh). I also tried xf86-video-ati (non legacy): everything seems the same, except the machine will sometimes hang. (I have not experienced an hang *yet* with xf86-video-ati, but it's been to short a time to conclude anything). So I guess your patch works, at least in some cases. It's possible the problems I'm having are not due to xf86-video-ati-legacy, but to some other component. bye & Thanks av.