From owner-freebsd-hackers@freebsd.org Mon Sep 7 03:33:17 2020 Return-Path: Delivered-To: freebsd-hackers@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 9955D3E7FF3 for ; Mon, 7 Sep 2020 03:33:17 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from midget.dons.net.au (midget.dons.net.au [IPv6:2403:5800:5101:0:ea:1cff:fefa:f00]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "dons.net.au", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BlDQ31W9wz4pZT for ; Mon, 7 Sep 2020 03:33:13 +0000 (UTC) (envelope-from darius@dons.net.au) 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 0873Wr5g097127 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Mon, 7 Sep 2020 13:02:57 +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 0873Weml097122 for ; Mon, 7 Sep 2020 13:02:40 +0930 (ACST) (envelope-from darius@dons.net.au) X-MIMEDefang-Relay-be813b1f1da6d6b27d681222cb70cc4f5b642383: 2001:44b8:1d2:8900:11d0:b44e:e90f:ccb7 Received: from [IPv6:2001:44b8:1d2:8900:11d0:b44e:e90f:ccb7] ([IPv6:2001:44b8:1d2:8900:11d0:b44e:e90f:ccb7] [2001:44b8:1d2:8900:11d0:b44e:e90f:ccb7]) by midget.dons.net.au (envelope-sender ) (MIMEDefang) with ESMTP id 0873WZId097120; Mon, 07 Sep 2020 13:02:40 +0930 From: "O'Connor, Daniel" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Date: Mon, 7 Sep 2020 13:02:35 +0930 Subject: ASPEED video driver Message-Id: <8851FC7F-979D-4CDC-8513-CE893B2EF269@dons.net.au> To: FreeBSD Hackers X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Spam-Score: 0.2 () No, score=0.2 required=5.0 tests=HELO_MISC_IP, HELO_NO_DOMAIN, T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.2 X-Scanned-By: MIMEDefang 2.83 on 10.0.2.1 X-Rspamd-Queue-Id: 4BlDQ31W9wz4pZT X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.31 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; R_DKIM_ALLOW(-0.20)[dons.net.au:s=default]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; NEURAL_HAM_LONG(-0.98)[-0.979]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[dons.net.au:+]; DMARC_POLICY_ALLOW(-0.50)[dons.net.au,quarantine]; NEURAL_HAM_SHORT(-0.84)[-0.839]; R_SPF_ALLOW(-0.20)[+mx]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:4764, ipnet:2403:5800:5000::/36, country:AU]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Sep 2020 03:33:17 -0000 Hi, Has anyone had success with the ASPEED Xorg driver? I have tried several = versions (in ports, from ASPEED directly, from freedesktop.org etc) and = they all hang trying to read DRAM information in ASTGetDRAMInfo. I am = running FreeBSD 12 on a Supermicro X11SSH-F. The hang is here: do { ; } while (*(volatile ULONG *) (pAST->MMIOVirtualAddr + 0x10000) !=3D = 0x01); I patched it to use some hard coded values I extracted from an old = system where it worked and it does run but the performance is quite = terrible. I've also tried scfb (performance is so so but it's stuck and 1024x768) = and VESA (runs at 1920x1080 but the performance is intolerable). I'm not expecting mind blowing performance but even the best performing = option above is quite painful to use. These systems are mostly = unattended but the bad performance does make the setup and test during = installation quite painful. Performance used to be tolerable but it seems to have gotten = significantly worse in newer BIOS versions. For now we are putting passively cooled GT710s in them but it would be = nice to fix it properly. I note that Linux has a DRM driver for these = https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/dr= ivers/gpu/drm/ast=20 However I'm not sure how that integrates with X.. If Linux doesn't = actually use the Xorg driver then I suppose that would explain why it's = rotted and useless. If that is the case, does anyone know difficult it would be to port the = Linux DRM driver? I did try contacting ASPEED and Supermicro but they pointed the finger = at each other and then blamed FreeBSD so I'm a bit stuck. Thanks. -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum