NetBSD Problem Report #50353

From www@NetBSD.org  Wed Oct 21 17:00:48 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8D202A5858
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 21 Oct 2015 17:00:48 +0000 (UTC)
Message-Id: <20151021170045.AD494A6562@mollari.NetBSD.org>
Date: Wed, 21 Oct 2015 17:00:45 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@consolidated.net
To: gnats-bugs@NetBSD.org
Subject: Stippled regions rendered as black on i82810e using xf86-video-intel built with GCC 4.8.x
X-Send-Pr-Version: www-1.0

>Number:         50353
>Notify-List:    jdbaker@consolidated.net
>Category:       xsrc
>Synopsis:       Stippled regions rendered as black on i82810e using xf86-video-intel built with GCC 4.8.x
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 21 17:05:00 +0000 2015
>Last-Modified:  Tue Jan 29 06:31:53 +0000 2019
>Originator:     John D. Baker
>Release:        NetBSD/i386-6.99.48 and later, following import of GCC 4.8.3+
>Organization:
>Environment:
NetBSD plexor 7.99.21 NetBSD 7.99.21 (PLEXOR) #6: Wed Oct 21 00:37:24 CDT 2015  sysop@skuld.technoskunk.fur:/d0/build/nbsd-tst/obj/i386/sys/arch/i386/compile/PLEXOR i386

>Description:
As described in the thread starting here:

  https://mail-index.netbsd.org/current-users/2014/08/05/msg025522.html

Machines with i82810e graphics using "xf86-video-intel" ("intel_drv.so")
built with GCC 4.8.[345] render "stippled" regions (alternating
foreground/background colors) as black.  Examples include:

  X server root window when using "-retro" option
  XTerm and XConsole scroll bars
  twm active window title bars/inactive window frames
  root window after 'xsetroot -mod x y ...' command

Back when GCC 4.5.x was still available, building "intel_drv.so" with
GCC 4.5 (modulo disabling SNA to work around an ICE) resulted in
correctly-rendered stippled regions.

On the off chance that compiler optimization was doing something
untoward, I built the driver with:

  COPTS+=-O0

but the behavior did not change.
>How-To-Repeat:
Install any NetBSD from 6.99.48 or later, built with GCC 4.8.x, on a
machine using i82810e graphics.

  $ startx -- -retro

Observe black screen instead of X root weave pattern.  XTerms have black
scroll-bar regions, 'twm' active window has black rectangle instead of
white/green lattice stippling in title bar.

If you roll back to a point at which things could still be built with
GCC 4.5.x, build "intel_drv.so", copy it into the GCC-4.8.x-built
system and re-start X.  Stippled regions now render properly.
>Fix:

>Release-Note:

>Audit-Trail:
From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/50353: Stippled regions rendered as black on i82810e using
 xf86-video-intel built with GCC 4.8.x
Date: Sat, 30 Jan 2016 05:48:13 -0600 (CST)

 Lately, I investigated whether the problem would be exhibited by
 modular/pkgsrc Xorg and its "xf86-video-intel" driver.  Using:

 NetBSD plextwo 7.99.26 NetBSD 7.99.26 (PLEXOR) #20: Tue Jan 26 20:01:28 CST 2016  sysop@x3650.technoskunk.fur:/r0/build/nbsd-tst/obj/i386/sys/arch/i386/compile/PLEXOR i386

 with "meta-pkgs/modular-xorg" from pkgsrc-2015Q4, the X server's "-retro"
 option properly displays the "root weave" pattern; "xterm" and "xconsole"
 scroll bars are rendered properly, and "twm" active window title bars
 display properly.

 Perhaps the version of "xf86-video-intel" in pkgsrc (and related
 dependencies) could be imported to xsrc?

 I'm in the process of checking this on netbsd-7.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/50353: Stippled regions rendered as black on i82810e using
 xf86-video-intel built with GCC 4.8.x
Date: Sun, 31 Jan 2016 20:42:47 -0600 (CST)

 On Sat, 30 Jan 2016, John D. Baker wrote:

 > I'm in the process of checking this on netbsd-7.

 "meta-pkgs/modular-xorg" (particularly the xf86-video-intel driver)
 works properly under netbsd-7 on my i82810e-based machines.  "Stippled"
 regions like the "root weave" of the Xserver with "-retro" option; XTerm
 and XConsole scroll bars; 'twm' active window title bars and root window
 patterns set with 'xsetroot -mod x y' all display correctly.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/50353: Stippled regions rendered as black on i82810e using
 xf86-video-intel built with GCC 4.8.x
Date: Fri, 26 Aug 2016 18:47:41 -0500 (CDT)

 After recent updates of "native" Xorg in -current, including the intel
 driver, I updated my affected i386 system with the 201608260900Z TNF
 snapshot build.

 If I understand correctly, the TNF snapshots build the newer drivers, but
 the older version of the server (1.10).  I'm not sure if this is expected
 to work.

 On my system, starting X with:

   $ X -retro &

 switches virtual terminals and the monitor's OSD reports frequency
 changes consistent with expected behavior, but the display remains blank
 (black).  Switching back to one of the text terminals does not restore
 the display although one can type blindly to reboot the machine.

 A separate installation using pkgsrc/modular Xorg (pkgsrc-2016Q2),
 built with GCC 5.4 works properly.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/50353: Stippled regions rendered as black on i82810e
 usingxf86-video-intel built with GCC 4.8.x
Date: Sat, 19 Aug 2017 18:58:44 -0500 (CDT)

 After nearly a year, I was able to poke at this again.

 Using a recent build of i386-8.99.1 w/native Xorg, stippled regions
 render correctly.

 Will set up a test installation to check i386-8.0_BETA.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: xsrc/50353: Stippled regions rendered as black on i82810e using
 xf86-video-intel built with GCC 4.8.x
Date: Sun, 20 Aug 2017 14:14:45 -0500 (CDT)

 On Sat, 19 Aug 2017, John D. Baker wrote:

 > Will set up a test installation to check i386-8.0_BETA.

 Using a recent build of i386-8.0_BETA w/native Xorg, stippled regions
 render correctly.

 As the problem appears to be constrained to the period when GCC 4.8.x
 is the native compiler, only the netbsd-7* branches are affected.  For
 them, modular/pkgsrc Xorg works very well on machines with i82810e video.

 -- 
 |/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
 |\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
 | X  No HTML/proprietary data in email.   BSD just sits there and works!
 |/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.