From owner-freebsd-stable@freebsd.org Sun Sep 1 07:01:00 2019 Return-Path: Delivered-To: freebsd-stable@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 1BDE3D0995 for ; Sun, 1 Sep 2019 07:01:00 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ipmail02.adl2.internode.on.net (ipmail02.adl2.internode.on.net [150.101.137.139]) by mx1.freebsd.org (Postfix) with ESMTP id 46LkdP4Dqvz40xv for ; Sun, 1 Sep 2019 07:00:56 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ppp14-2-110-112.adl-apt-pir-bras32.tpg.internode.on.net (HELO midget.dons.net.au) ([14.2.110.112]) by ipmail02.adl2.internode.on.net with ESMTP; 01 Sep 2019 16:30:51 +0930 Received: from midget.dons.net.au (localhost [127.0.0.1]) by midget.dons.net.au (8.15.2/8.15.2) with ESMTPS id x8170bZD010756 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 1 Sep 2019 16:30:46 +0930 (ACST) (envelope-from darius@dons.net.au) Received: (from mailnull@localhost) by midget.dons.net.au (8.15.2/8.15.2/Submit) id x816oivF003488 for ; Sun, 1 Sep 2019 16:20:44 +0930 (ACST) (envelope-from darius@dons.net.au) X-Authentication-Warning: midget.dons.net.au: mailnull set sender to using -f Received: from [10.0.2.38] ([10.0.2.38]) by ns.dons.net.au (envelope-sender ) (MIMEDefang) with ESMTP id x816ocZ6003482; Sun, 01 Sep 2019 16:20:44 +0930 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: FreeBSD 12 Xorg vs X11SSH-F / AST From: "O'Connor, Daniel" In-Reply-To: <2B354C0E-8F94-412B-B6B5-DCF681DAE5C8@dons.net.au> Date: Sun, 1 Sep 2019 16:20:38 +0930 Cc: freebsd-stable Content-Transfer-Encoding: quoted-printable Message-Id: References: <2EDB82D8-9EC5-4988-AD1C-21305E712E46@dons.net.au> <4dbdbf1e-b823-20e4-8516-55bb9fdfab88@nomadlogic.org> <7AC86383-2C8E-427D-88BD-48B91FE9ECBC@dons.net.au> <2EB91070-54F2-4046-BB5A-86FBE41FFBE1@dons.net.au> <2B354C0E-8F94-412B-B6B5-DCF681DAE5C8@dons.net.au> To: Pete Wright X-Mailer: Apple Mail (2.3445.104.11) X-Spam-Score: -1 () No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.1 X-Scanned-By: MIMEDefang 2.83 on 10.0.2.1 X-Rspamd-Queue-Id: 46LkdP4Dqvz40xv X-Spamd-Bar: ++++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of darius@dons.net.au has no SPF policy when checking 150.101.137.139) smtp.mailfrom=darius@dons.net.au X-Spamd-Result: default: False [6.83 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; NEURAL_SPAM_SHORT(0.94)[0.940,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; HAS_XAW(0.00)[]; AUTH_NA(1.00)[]; DMARC_NA(0.00)[dons.net.au]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000,0]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(1.00)[1.000,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:4739, ipnet:150.101.0.0/16, country:AU]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(2.49)[ip: (7.92), ipnet: 150.101.0.0/16(3.06), asn: 4739(1.46), country: AU(0.01)]; RCVD_IN_DNSWL_LOW(-0.10)[139.137.101.150.list.dnswl.org : 127.0.5.1] X-Spam: Yes X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Sep 2019 07:01:00 -0000 > On 27 Aug 2019, at 18:10, O'Connor, Daniel wrote: >=20 >> On 27 Aug 2019, at 13:45, O'Connor, Daniel = wrote: >>=20 >> Although I could set uncacheable (no difference). >>=20 >> Next stop will be obscure BIOS settings I suppose. >=20 > I couldn't find anything useful there. >=20 > I realised that my scfb failure was because I am booting BIOS rather = than UEFI but I will have to reinstall before I can fix that. I reinstalled with UEFI and scfb works now (not sure if it's any faster = yet). It didn't fix ast though. I rebuilt the AST driver with debugging and found it was stuck at.. 0x0000000801ae1d86 in ASTGetDRAMInfo (pScrn=3D0x801af7000) at = ast_vgatool.c:439 439 } while (*(volatile ULONG *) (pAST->MMIOVirtualAddr + = 0x10000) !=3D 0x01); (gdb) print/x *(volatile ULONG *) (pAST->MMIOVirtualAddr + 0x10000) $2 =3D 0xffffffff Reading around this area also reads 0xffffffff all the time. If I comment that out X runs but the AST driver then rejects every mode = line, eg [ 48784.246] (II) AST(0): Not using driver mode "1920x1080" (bad mode = clock/interlace/doublescan) I checked the code against what is working in FreeBSD 11 and it is = identical. That does use an older Xorg server though so I am not sure if = it is FreeBSD 12 (compiler or kernel or..) or an Xorg change that has = broken things. I modified the driver on the working system to dump the values that = ASTGetDRAMInfo extracts and hard coded them and it works(!) on the = FreeBSD 12 system. Obviously while this works for me it's not a long = term solution :) I added some debugging to the mapping process in ASTMapMMIO: [ 71021.555] (II) AST(0): pci_device_map_range Addr 0xdf000000 size = 0x20000, err 0 result 0x01b30000 But when I check ASTGetDRAMInfo().. (gdb) print/x pAST->MMIOVirtualAddr $2 =3D 0x801b30000 (gdb) print/x *(0x01b30000) Cannot access memory at address 0x1b30000 The mappings look to match dmesg: vgapci0: port 0xc000-0xc07f mem = 0xde000000-0xdeffffff,0xdf000000-0xdf01ffff irq 18 at device 0.0 on pci4 Curiously on the working machine with an identical motherboard it is at = a different location: vgapci0: port 0xd000-0xd07f mem = 0xf6000000-0xf6ffffff,0xf7000000-0xf701ffff irq 16 at device 0.0 on pci4 Any suggestions welcome :) -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum