NetBSD Problem Report #55827

From jackson@E5510-NetBSD.dell.foo  Fri Nov 27 06:35:07 2020
Return-Path: <jackson@E5510-NetBSD.dell.foo>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id AACD41A9217
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 27 Nov 2020 06:35:07 +0000 (UTC)
Message-Id: <20201126191421.B2254EA7B0@E5510-NetBSD.dell.foo>
Date: Thu, 26 Nov 2020 14:14:21 -0500 (EST)
From: jbryn@students.wcpss.net
Reply-To: jbryn@students.wcpss.net
To: gnats-bugs@NetBSD.org
Subject: variety of Ironlake graphics boards: 3D and 2D acceleration performance problems/crashes on *UXA*
X-Send-Pr-Version: 3.95

>Number:         55827
>Category:       kern
>Synopsis:       Performance problems and non-working 3D on Ironlake
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 27 06:40:00 +0000 2020
>Originator:     Jackson Bryn
>Release:        NetBSD 9.99.75
>Organization:
N/A
>Environment:
System: NetBSD E5510-NetBSD.dell.foo 9.99.75 NetBSD 9.99.75 (GENERIC) #0: Mon Nov 16 14:12:46 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Best demonstrated with X11.

With the intel driver on native Xorg, problems with acceleration rely beyond SNA not working.
Even with UXA enabled instead, while dragging and other basic parts of 2D acceleration does work unlike SNA, complex canvases fail at acceleration and instead appear to fallback to software. 3D support through native MesaLib essentially locks up, and sometimes crashes and reports this message.
`i965: failed to submit batchbuffer`

An actual fix to the KMS code needs to be implemented at some point, instead of haughty workarounds. Note that none of these bugs happen with biosboot plus VESA drivers (disabling modesetting).

Tested with the Dell Latitude E5510 and the HP ProBook 8440p.
>How-To-Repeat:
Build firefox on pkgsrc with native X/Mesa linkage, and watch as the canvas creating tearing and failing to get past 30 to 40fps. On biosboot/VESA, it can achieve a constant 60fps. WebGL context using hardware will also fail to be created, instead resorting to llvmpipe fallback.

Launch glxgears and see that it fails to render anything past the first two frames or so. Drag it around, and it should crash.
>Fix:
Unable to suggest a fix.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.