NetBSD Problem Report #54995

From tsutsui@ceres.dti.ne.jp  Fri Feb 21 16:27:20 2020
Return-Path: <tsutsui@ceres.dti.ne.jp>
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 086BF1A9213
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 21 Feb 2020 16:27:19 +0000 (UTC)
Message-Id: <202002211627.01LGRBQa011955@ceres.dti.ne.jp>
Date: Sat, 22 Feb 2020 01:27:11 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: 9.0 Xorg server screen corruption on N455 Atom and i915drmkms
X-Send-Pr-Version: 3.95

>Number:         54995
>Category:       xsrc
>Synopsis:       9.0 Xorg server screen corruption on N455 Atom and i915drmkms
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 21 16:30:01 +0000 2020
>Last-Modified:  Fri May 08 15:25:01 +0000 2020
>Originator:     Izumi Tsutsui
>Release:        NetBSD 9.0
>Organization:
>Environment:
System: NetBSD mirage 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
On MSI U135DX (N455 Atom netbook) NetBSD/i386 9.0 Xorg server
causes screen corruption:
https://gist.github.com/tsutsui/29aa02596f987476bb3614bf5182ea23#gistcomment-3184787

The kernel dumps the following error messages to syslog:
---
Feb 22 00:14:06 teokure /netbsd: [  19.5684166] kern info: [drm] stuck on render ring
Feb 22 00:14:06 teokure /netbsd: [  19.5684166] kern info: [drm] GPU HANG: ecode 3:0:0x7f7fffc1, reason: Ring hung, action: reset
Feb 22 00:14:06 teokure /netbsd: [  19.5684166] kern info: [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
Feb 22 00:14:06 teokure /netbsd: [  19.5684166] kern info: [drm] Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel
Feb 22 00:14:06 teokure /netbsd: [  19.5684166] kern info: [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.
Feb 22 00:14:06 teokure /netbsd: [  19.5684166] kern info: [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
Feb 22 00:14:06 teokure /netbsd: [  19.5684166] kern info: [drm] GPU crash dump saved to /sys/class/drm/card0/error
Feb 22 00:14:06 teokure /netbsd: [  19.5684166] kern error: [drm:(/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_display.c:6466)intel_display_suspend] *ERROR* Suspending crtc's failed with -5
Feb 22 00:14:06 teokure /netbsd: [  19.5684166] drm/i915: Resetting chip after gpu hang
Feb 22 00:14:07 teokure /netbsd: [  20.3988894] 000157a8 :  00000000
Feb 22 00:14:07 teokure /netbsd: [  20.3988894] 000157ac :  00000000
 :
[ ~1820 line zero dump by print_error_obj() in drm/i915/i915_gpu_error.c ]
 :
Feb 22 00:14:07 teokure /netbsd: [  20.4289063] 0001740c :  00000000
Feb 22 00:14:07 teokure /netbsd: [  20.4289063] 00017410 :  00000000
Feb 22 00:14:07 teokure /netbsd: [  20.4289063] 000
Feb 22 00:14:13 teokure /netbsd: [  25.9820630] kern info: [drm] stuck on render ring
Feb 22 00:14:13 teokure /netbsd: [  25.9820630] kern info: [drm] GPU HANG: ecode 3:0:0xfd7fffc1, reason: Ring hung, action: reset
Feb 22 00:14:13 teokure /netbsd: [  25.9820630] kern error: [drm:(/usr/src/sys/external/bsd/drm2/dist/drm/i915/intel_display.c:6466)intel_display_suspend] *ERROR* Suspending crtc's failed with -5
Feb 22 00:14:13 teokure /netbsd: [  25.9820630] kern error: [drm:(/usr/src/sys/external/bsd/drm2/dist/drm/i915/i915_gem.c:3196)i915_context_is_banned] *ERROR* gpu hanging too fast, banning!
Feb 22 00:14:13 teokure /netbsd: [  25.9820630] drm/i915: Resetting chip after gpu hang
Feb 22 00:14:14 teokure /netbsd: [  26.8125355] 000157a8 :  00000000
Feb 22 00:14:14 teokure /netbsd: [  26.8125355] 000157ac :  00000000
 :
[ tons of all zero dump again ]
 :
Feb 22 00:14:14 teokure /netbsd: [  26.8425522] 0001740c :  00000000
Feb 22 00:14:14 teokure /netbsd: [  26.8425522] 00017410 :  00000000
Feb 22 00:14:14 teokure /netbsd: [  26.8425522] 000
---

Xorg.0.log says:
---
[    10.724] 
X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
[    10.724] Build Operating System: NetBSD/i386 9.0 - The NetBSD Foundation, Inc.
[    10.724] Current Operating System: NetBSD teokure 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC i386
[    10.725] Build Date: 03 March 2019  07:11:23AM
[    10.725]  
[    10.727] Current version of pixman: 0.38.4
[    10.727] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    10.727] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    10.727] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Feb 22 00:13:58 2020
[    10.739] (II) Loader magic: 0xee5e60
[    10.739] (II) Module ABI versions:
[    10.739] 	X.Org ANSI C Emulation: 0.4
[    10.739] 	X.Org Video Driver: 24.0
[    10.739] 	X.Org XInput driver : 24.1
[    10.739] 	X.Org Server Extension : 10.0
[    10.764] (--) PCI:*(0@0:2:0) 8086:a011:1462:1031 rev 0, Mem @ 0xfea80000/524288, 0xd0000000/268435456, 0xfd500000/1048576, I/O @ 0x0000f100/8
[    10.764] (--) PCI: (0@0:2:1) 8086:a012:1462:1031 rev 0, Mem @ 0xfea00000/524288
[    10.768] (==) Using default built-in configuration (39 lines)
[    10.768] (==) --- Start of built-in configuration ---
[    10.768] 	Section "Device"
[    10.768] 		Identifier	"Builtin Default intel Device 0"
[    10.768] 		Driver	"intel"
[    10.768] 	EndSection
[    10.768] 	Section "Screen"
[    10.768] 		Identifier	"Builtin Default intel Screen 0"
[    10.768] 		Device	"Builtin Default intel Device 0"
[    10.768] 	EndSection
[    10.768] 	Section "Device"
[    10.768] 		Identifier	"Builtin Default modesetting Device 0"
[    10.768] 		Driver	"modesetting"
[    10.768] 	EndSection
[    10.768] 	Section "Screen"
[    10.769] 		Identifier	"Builtin Default modesetting Screen 0"
[    10.769] 		Device	"Builtin Default modesetting Device 0"
[    10.769] 	EndSection
[    10.769] 	Section "Device"
[    10.769] 		Identifier	"Builtin Default vesa Device 0"
[    10.769] 		Driver	"vesa"
[    10.769] 	EndSection
[    10.769] 	Section "Screen"
[    10.769] 		Identifier	"Builtin Default vesa Screen 0"
[    10.769] 		Device	"Builtin Default vesa Device 0"
[    10.769] 	EndSection
[    10.769] 	Section "Device"
[    10.769] 		Identifier	"Builtin Default wsfb Device 0"
[    10.770] 		Driver	"wsfb"
[    10.770] 	EndSection
[    10.770] 	Section "Screen"
[    10.770] 		Identifier	"Builtin Default wsfb Screen 0"
[    10.770] 		Device	"Builtin Default wsfb Device 0"
[    10.770] 	EndSection
[    10.770] 	Section "ServerLayout"
[    10.770] 		Identifier	"Builtin Default Layout"
[    10.770] 		Screen	"Builtin Default intel Screen 0"
[    10.770] 		Screen	"Builtin Default modesetting Screen 0"
[    10.770] 		Screen	"Builtin Default vesa Screen 0"
[    10.770] 		Screen	"Builtin Default wsfb Screen 0"
[    10.770] 	EndSection
[    10.770] (==) --- End of built-in configuration ---
[    10.774] (==) ServerLayout "Builtin Default Layout"
[    10.774] (**) |-->Screen "Builtin Default intel Screen 0" (0)
[    10.774] (**) |   |-->Monitor "<default monitor>"
[    10.778] (**) |   |-->Device "Builtin Default intel Device 0"
[    10.779] (==) No monitor specified for screen "Builtin Default intel Screen 0".
	Using a default monitor configuration.
[    10.779] (**) |-->Screen "Builtin Default modesetting Screen 0" (1)
[    10.779] (**) |   |-->Monitor "<default monitor>"
[    10.781] (**) |   |-->Device "Builtin Default modesetting Device 0"
[    10.781] (==) No monitor specified for screen "Builtin Default modesetting Screen 0".
	Using a default monitor configuration.
[    10.781] (**) |-->Screen "Builtin Default vesa Screen 0" (2)
[    10.781] (**) |   |-->Monitor "<default monitor>"
[    10.783] (**) |   |-->Device "Builtin Default vesa Device 0"
[    10.783] (==) No monitor specified for screen "Builtin Default vesa Screen 0".
	Using a default monitor configuration.
[    10.785] (**) |-->Screen "Builtin Default wsfb Screen 0" (3)
[    10.785] (**) |   |-->Monitor "<default monitor>"
[    10.788] (**) |   |-->Device "Builtin Default wsfb Device 0"
[    10.788] (==) No monitor specified for screen "Builtin Default wsfb Screen 0".
	Using a default monitor configuration.
[    10.788] (==) Not automatically adding devices
[    10.788] (==) Not automatically enabling devices
[    10.788] (==) Not automatically adding GPU devices
[    10.788] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    10.797] (==) FontPath set to:
	/usr/X11R7/lib/X11/fonts/misc/,
	/usr/X11R7/lib/X11/fonts/TTF/,
	/usr/X11R7/lib/X11/fonts/Type1/,
	/usr/X11R7/lib/X11/fonts/75dpi/,
	/usr/X11R7/lib/X11/fonts/100dpi/
[    10.797] (==) ModulePath set to "/usr/X11R7/lib/modules"
[    10.799] (==) |-->Input Device "<default pointer>"
[    10.799] (==) |-->Input Device "<default keyboard>"
[    10.800] (==) The core pointer device wasn't specified explicitly in the layout.
	Using the default mouse configuration.
[    10.800] (==) The core keyboard device wasn't specified explicitly in the layout.
	Using the default keyboard configuration.
[    10.803] (II) LoadModule: "glx"
[    10.821] (II) Loading /usr/X11R7/lib/modules/extensions/libglx.so
[    10.841] (II) Module glx: vendor="X.Org Foundation"
[    10.841] 	compiled for 1.20.5, module version = 1.0.0
[    10.842] 	ABI class: X.Org Server Extension, version 10.0
[    10.845] (II) LoadModule: "intel"
[    10.847] (II) Loading /usr/X11R7/lib/modules/drivers/intel_drv.so
[    11.021] (II) Module intel: vendor="X.Org Foundation"
[    11.107] 	compiled for 1.20.5, module version = 2.99.917
[    11.107] 	Module class: X.Org Video Driver
[    11.107] 	ABI class: X.Org Video Driver, version 24.0
[    11.115] (II) LoadModule: "modesetting"
[    11.117] (II) Loading /usr/X11R7/lib/modules/drivers/modesetting_drv.so
[    11.150] (II) Module modesetting: vendor="X.Org Foundation"
[    11.150] 	compiled for 1.20.5, module version = 1.20.5
[    11.150] 	Module class: X.Org Video Driver
[    11.150] 	ABI class: X.Org Video Driver, version 24.0
[    11.158] (II) LoadModule: "vesa"
[    11.161] (II) Loading /usr/X11R7/lib/modules/drivers/vesa_drv.so
[    11.175] (II) Module vesa: vendor="X.Org Foundation"
[    11.175] 	compiled for 1.20.5, module version = 2.4.0
[    11.175] 	Module class: X.Org Video Driver
[    11.175] 	ABI class: X.Org Video Driver, version 24.0
[    11.175] (II) LoadModule: "wsfb"
[    11.178] (II) Loading /usr/X11R7/lib/modules/drivers/wsfb_drv.so
[    11.192] (II) Module wsfb: vendor="X.Org Foundation"
[    11.192] 	compiled for 1.20.5, module version = 0.4.0
[    11.192] 	ABI class: X.Org Video Driver, version 24.0
[    11.192] (II) LoadModule: "mouse"
[    11.193] (II) Loading /usr/X11R7/lib/modules/drivers/mouse_drv.so
[    11.203] (II) Module mouse: vendor="X.Org Foundation"
[    11.203] 	compiled for 1.20.5, module version = 1.9.2
[    11.203] 	Module class: X.Org XInput Driver
[    11.203] 	ABI class: X.Org XInput driver, version 24.1
[    11.203] (II) LoadModule: "kbd"
[    11.206] (II) Loading /usr/X11R7/lib/modules/drivers/kbd_drv.so
[    11.212] (II) Module kbd: vendor="X.Org Foundation"
[    11.212] 	compiled for 1.20.5, module version = 1.9.0
[    11.212] 	Module class: X.Org XInput Driver
[    11.212] 	ABI class: X.Org XInput driver, version 24.1
[    11.212] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[    11.218] (II) intel: Driver for Intel(R) HD Graphics
[    11.218] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[    11.218] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[    11.218] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    11.218] (II) VESA: driver for VESA chipsets: vesa
[    11.218] (II) wsfb: driver for wsdisplay framebuffer: wsfb
[    11.219] (--) Using wscons driver on /dev/ttyE4 in pcvt compatibility mode (version 3.32)
[    11.219] (--) using VT number 5
[    11.234] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20151010
[    11.238] (WW) Falling back to old probe method for modesetting
[    11.238] (WW) Falling back to old probe method for wsfb
[    11.238] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    11.239] (--) intel(0): Integrated Graphics Chipset: Intel(R) Pineview GM
[    11.239] (--) intel(0): CPU: x86, sse2, sse3, ssse3; using a maximum of 1 threads
[    11.239] (II) intel(0): Creating default Display subsection in Screen section
	"Builtin Default intel Screen 0" for depth/fbbpp 24/32
[    11.239] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[    11.240] (==) intel(0): RGB weight 888
[    11.240] (==) intel(0): Default visual is TrueColor
[    11.262] (II) intel(0): Output LVDS1 has no monitor section
[    11.264] (II) intel(0): Enabled output LVDS1
[    11.264] (II) intel(0): Output VGA1 has no monitor section
[    11.264] (II) intel(0): Enabled output VGA1
[    11.264] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[    11.264] (II) intel(0): Output VIRTUAL1 has no monitor section
[    11.265] (II) intel(0): Enabled output VIRTUAL1
[    11.265] (--) intel(0): Output LVDS1 using initial mode 1024x600 on pipe 1
[    11.267] (==) intel(0): TearFree enabled
[    11.267] (==) intel(0): Using gamma correction (1.0, 1.0, 1.0)
[    11.267] (==) intel(0): DPI set to (96, 96)
[    11.267] (II) Loading sub module "dri2"
[    11.267] (II) LoadModule: "dri2"
[    11.267] (II) Module "dri2" already built-in
[    11.267] (II) UnloadModule: "modesetting"
[    11.268] (II) Unloading modesetting
[    11.268] (II) UnloadModule: "vesa"
[    11.268] (II) Unloading vesa
[    11.268] (II) UnloadModule: "wsfb"
[    11.268] (II) Unloading wsfb
[    11.289] (II) intel(0): SNA initialized with Alviso (gen3) backend
[    11.289] (==) intel(0): Backing store enabled
[    11.289] (==) intel(0): Silken mouse enabled
[    11.299] (II) intel(0): HW Cursor enabled
[    11.314] (==) intel(0): DPMS enabled
[    11.321] (II) intel(0): [XvMC] i915_xvmc driver initialized.
[    11.326] (II) intel(0): [DRI2] Setup complete
[    11.326] (II) intel(0): [DRI2]   DRI driver: i915
[    11.326] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[    11.327] (II) intel(0): direct rendering: DRI2 enabled
[    11.327] (II) Initializing extension Generic Event Extension
[    11.330] (II) Initializing extension SHAPE
[    11.333] (II) Initializing extension MIT-SHM
[    11.335] (II) Initializing extension XInputExtension
[    11.346] (II) Initializing extension XTEST
[    11.348] (II) Initializing extension BIG-REQUESTS
[    11.350] (II) Initializing extension SYNC
[    11.352] (II) Initializing extension XKEYBOARD
[    11.358] (II) Initializing extension XC-MISC
[    11.360] (II) Initializing extension SECURITY
[    11.364] (II) Initializing extension XFIXES
[    11.368] (II) Initializing extension XFree86-Bigfont
[    11.370] (II) Initializing extension RENDER
[    11.374] (II) Initializing extension RANDR
[    11.378] (II) Initializing extension COMPOSITE
[    11.382] (II) Initializing extension DAMAGE
[    11.384] (II) Initializing extension MIT-SCREEN-SAVER
[    11.388] (II) Initializing extension DOUBLE-BUFFER
[    11.390] (II) Initializing extension RECORD
[    11.392] (II) Initializing extension DPMS
[    11.394] (II) Initializing extension Present
[    11.399] (II) Initializing extension X-Resource
[    11.401] (II) Initializing extension XVideo
[    11.403] (II) Initializing extension XVideo-MotionCompensation
[    11.405] (II) Initializing extension GLX
[    11.554] (II) AIGLX: Loaded and initialized i915
[    11.554] (II) GLX: Initialized DRI2 GL provider for screen 0
[    11.554] (II) Initializing extension XFree86-VidModeExtension
[    11.557] (II) Initializing extension XFree86-DGA
[    11.559] (II) Initializing extension XFree86-DRI
[    11.559] (II) Initializing extension DRI2
[    11.585] (II) intel(0): switch to mode 1024x600@60.0 on LVDS1 using pipe 1, position (0, 0), rotation normal, reflection none
[    11.585] (II) intel(0): Setting screen physical size to 270 x 158
[    12.551] (II) Using input driver 'mouse' for '<default pointer>'
[    12.551] (**) Option "CorePointer" "on"
[    12.551] (**) <default pointer>: always reports core events
[    12.553] (WW) <default pointer>: No Device specified, looking for one...
[    12.609] (II) <default pointer>: found Device "/dev/wsmouse"
[    12.615] (--) <default pointer>: Device: "/dev/wsmouse"
[    12.615] (==) <default pointer>: Protocol: "WSMouse"
[    12.615] (**) <default pointer>: always reports core events
[    12.616] (**) Option "Device" "/dev/wsmouse"
[    12.631] (==) <default pointer>: Emulate3Buttons, Emulate3Timeout: 50
[    12.631] (**) <default pointer>: ZAxisMapping: buttons 4 and 5
[    12.632] (**) <default pointer>: Buttons: 9
[    12.632] (II) XINPUT: Adding extended input device "<default pointer>" (type: MOUSE, id 6)
[    12.632] (**) <default pointer>: (accel) keeping acceleration scheme 1
[    12.632] (**) <default pointer>: (accel) acceleration profile 0
[    12.632] (**) <default pointer>: (accel) acceleration factor: 2.000
[    12.632] (**) <default pointer>: (accel) acceleration threshold: 4
[    12.642] (II) Using input driver 'kbd' for '<default keyboard>'
[    12.642] (**) Option "CoreKeyboard" "on"
[    12.642] (**) <default keyboard>: always reports core events
[    12.642] (**) <default keyboard>: always reports core events
[    12.643] (**) Option "Protocol" "standard"
[    12.643] (**) Option "XkbRules" "base"
[    12.643] (**) Option "XkbModel" "pc105"
[    12.643] (**) Option "XkbLayout" "us"
[    12.643] (II) XINPUT: Adding extended input device "<default keyboard>" (type: KEYBOARD, id 7)
[    13.328] (II) intel(0): EDID vendor "HSD", prod id 1001
[    13.328] (II) intel(0): Printing DDC gathered Modelines:
[    13.328] (II) intel(0): Modeline "1024x600"x0.0   51.00  1024 1117 1152 1250  600 617 622 680 -hsync -vsync (40.8 kHz eP)
[    26.420] (EE) intel(0): Failed to submit rendering commands (Input/output error), disabling acceleration.
[    42.413] (II) AIGLX: Suspending AIGLX clients for VT switch
---

dmesg is:
---
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
    2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020
	mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/i386/compile/GENERIC
total memory = 2036 MB
avail memory = 1983 MB
rnd: seeded with 256 bits
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
running cgd selftest aes-xts-256 aes-xts-512 done
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
MICRO-STAR INTERNATIONAL CO., LTD MS-N014 (REV:1.0)
mainbus0 (root)
ACPI: RSDP 0x00000000000F0410 000024 (v03 MSI_NB)
ACPI: XSDT 0x000000007F43F080 00004C (v01 MSI_NB MEGABOOK 01072009 AMI  00010013)
ACPI: FACP 0x000000007F445B80 0000F4 (v04 MSI_NB MEGABOOK 01072009 AMI  00010013)
ACPI: DSDT 0x000000007F43F158 006A26 (v02 MSI_NB MEGABOOK 00000000 INTL 20051117)
ACPI: FACS 0x000000007F474F40 000040
ACPI: FACS 0x000000007F474F80 000040
ACPI: APIC 0x000000007F445C78 000062 (v01 MSI_NB MEGABOOK 01072009 AMI  00010013)
ACPI: MCFG 0x000000007F445CE0 00003C (v01 A M I  ITL 945. 01072009 MSFT 00000097)
ACPI: SLIC 0x000000007F445D20 000176 (v01 MSI_NB MEGABOOK 01072009 AMI  00010013)
ACPI: HPET 0x000000007F445E98 000038 (v01 MSI_NB MEGABOOK 01072009 AMI. 00000003)
ACPI: 1 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x20, 24 pins
cpu0 at mainbus0 apid 0
cpu0: Intel(R) Atom(TM) CPU N455   @ 1.66GHz, id 0x106ca
cpu0: package 0, core 0, smt 0
cpu1 at mainbus0 apid 1
cpu1: Intel(R) Atom(TM) CPU N455   @ 1.66GHz, id 0x106ca
cpu1: package 0, core 0, smt 1
acpi0 at mainbus0: Intel ACPICA 20190405
acpi0: X/RSDT: OemId <MSI_NB,MEGABOOK,01072009>, AslId <AMI ,00010013>
ACPI Error: No handler for Region [EC__] (0xc382a074) [EmbeddedControl] (20190405/evregion-183)
ACPI Error: Region EmbeddedControl (ID=3) has no handler (20190405/exfldio-323)
ACPI Error: Aborting method \_SB.PCI0.SBRG.EC.BAT1._STA due to previous error (AE_NOT_EXIST) (20190405/psparse-581)
acpi0: MCFG: segment 0, bus 0-63, address 0x00000000f0000000
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0x00000000C3815004 000444 (v01 AMI    IST      00000001 MSFT 03000001)
acpi0: SCI interrupting at int 9
acpi0: fixed power button present
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
acpiec0 at acpi0 (EC, PNP0C09): io 0x62,0x66
MCH (PNP0C01) at acpi0 not configured
FWHD (INT0800) at acpi0 not configured
SBRS (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker
sysbeep0 at pcppi1
RMSC (PNP0C02) at acpi0 not configured
COPR (PNP0C04) at acpi0 not configured
pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (PS2M, STLC031) (aux port): irq 12
acpiacad0 at acpi0 (ADP1, ACPI0003): ACPI AC Adapter
acpibat0 at acpi0 (BAT1, PNP0C0A-1): ACPI Battery
acpilid0 at acpi0 (LID0, PNP0C0D): ACPI Lid Switch
acpibut0 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
acpiwmi0 at acpi0 (SCM0, PNP0C14-0): ACPI WMI Interface
acpiwmibus at acpiwmi0 not configured
acpivga0 at acpi0 (GFX0): ACPI Display Adapter
acpiout0 at acpivga0 (DD01, 0x0100): ACPI Display Output Device
acpiout1 at acpivga0 (DD02, 0x0400): ACPI Display Output Device
acpiout1: brightness levels: [20,30,40,50,60,70,80,90,100]
acpiout2 at acpivga0 (DD03, 0x0200): ACPI Display Output Device
acpiout3 at acpivga0 (DD04, 0x0004): ACPI Display Output Device
acpiout4 at acpivga0 (DD05, 0x0005): ACPI Display Output Device
acpiout5 at acpivga0 (DD06, 0x0006): ACPI Display Output Device
acpiout6 at acpivga0 (DD07, 0x0007): ACPI Display Output Device
acpiout7 at acpivga0 (DD08, 0x0008): ACPI Display Output Device
acpivga0: autoconfiguration error: unknown output device acpiout0
acpivga0: autoconfiguration error: unknown output device acpiout2
acpivga0: autoconfiguration error: unknown output device acpiout3
acpivga0: autoconfiguration error: unknown output device acpiout4
acpivga0: autoconfiguration error: unknown output device acpiout5
acpivga0: autoconfiguration error: unknown output device acpiout6
acpivga0: autoconfiguration error: unknown output device acpiout7
acpivga0: connected output devices:
acpivga0:   0x0400 (acpiout1): Unknown Output Device, head 0
acpibut1 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
RMEM (PNP0C01) at acpi0 not configured
acpitz0 at acpi0 (THRM)
acpitz0: levels: critical 100.0 C, passive cooling
OMSC (PNP0C02) at acpi0 not configured
apm0 at acpi0: Power Management spec V1.2
ACPI: Enabled 2 GPEs in block 00 to 1F
attimer1: attached to pcppi1
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 8086 product a010 (rev. 0x00)
agp0 at pchb0: Pineview chipset
agp0: detected 7164k stolen memory
agp0: aperture at 0xd0000000, size 0x10000000
i915drmkms0 at pci0 dev 2 function 0: vendor 8086 product a011 (rev. 0x00)
vendor 8086 product a012 (miscellaneous display) at pci0 dev 2 function 1 not configured
hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
hdaudio0: interrupting at msi0 vec 0
hdafg0 at hdaudio0: vendor 10ec product 0662
hdafg0: DAC00 2ch: Speaker [Built-In], HP Out [Jack]
hdafg0: ADC01 2ch: Mic In [Jack] [Built-In]
hdafg0: 2ch/2ch 44100Hz 48000Hz 96000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg0: playback, capture, full duplex, independent
audio0: slinear_le:16 2ch 48000Hz, blk 40ms for playback
audio0: slinear_le:16 2ch 48000Hz, blk 40ms for recording
ppb0 at pci0 dev 28 function 0: vendor 8086 product 27d0 (rev. 0x02)
ppb0: PCI Express capability version 1 <Root Port of PCI-E Root Complex> x1 @ 2.5GT/s
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ral0 at pci1 dev 0 function 0: vendor 1814 product 3090 (rev. 0x00)
ral0: interrupting at ioapic0 pin 16
ral0: 802.11 address 40:61:86:a7:86:97
ral0: MAC/BBP RT3090 (rev 0x3212), RF RT3020 (MIMO 1T1R)
ppb1 at pci0 dev 28 function 3: vendor 8086 product 27d6 (rev. 0x02)
ppb1: PCI Express capability version 1 <Root Port of PCI-E Root Complex> x1 @ 2.5GT/s
pci2 at ppb1 bus 3
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
re0 at pci2 dev 0 function 0: RealTek 8100E/8101E/8102E/8102EL PCIe 10/100BaseTX (rev. 0x02)
re0: interrupting at msix1 vec 0
re0: Ethernet address 40:61:86:ad:35:3d
re0: using 256 tx descriptors
rlphy0 at re0 phy 7: RTL8201L 10/100 media interface, rev. 1
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
uhci0 at pci0 dev 29 function 0: vendor 8086 product 27c8 (rev. 0x02)
uhci0: interrupting at ioapic0 pin 23
usb0 at uhci0: USB revision 1.0
uhci1 at pci0 dev 29 function 1: vendor 8086 product 27c9 (rev. 0x02)
uhci1: interrupting at ioapic0 pin 19
usb1 at uhci1: USB revision 1.0
uhci2 at pci0 dev 29 function 2: vendor 8086 product 27ca (rev. 0x02)
uhci2: interrupting at ioapic0 pin 18
usb2 at uhci2: USB revision 1.0
uhci3 at pci0 dev 29 function 3: vendor 8086 product 27cb (rev. 0x02)
uhci3: interrupting at ioapic0 pin 16
usb3 at uhci3: USB revision 1.0
ehci0 at pci0 dev 29 function 7: vendor 8086 product 27cc (rev. 0x02)
ehci0: interrupting at ioapic0 pin 23
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: 4 companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
ppb2 at pci0 dev 30 function 0: vendor 8086 product 2448 (rev. 0xe2)
pci3 at ppb2 bus 5
pci3: i/o space, memory space enabled
ichlpcib0 at pci0 dev 31 function 0: vendor 8086 product 27bc (rev. 0x02)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
tco0 at ichlpcib0: TCO (watchdog) timer configured.
tco0: Min/Max interval 1/367 seconds
ahcisata0 at pci0 dev 31 function 2: vendor 8086 product 27c1 (rev. 0x02)
ahcisata0: AHCI revision 1.10, 4 ports, 32 slots, CAP 0xc720ff03<PSC,SSC,PMD,ISS=0x2=Gen2,SCLO,SAL,SALP,SNCQ,S64A>
ahcisata0: interrupting at msi2 vec 0
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 1
atabus2 at ahcisata0 channel 2
atabus3 at ahcisata0 channel 3
ichsmb0 at pci0 dev 31 function 3: vendor 8086 product 27da (rev. 0x02)
ichsmb0: interrupting at ioapic0 pin 19
iic0 at ichsmb0: I2C bus
isa0 at ichlpcib0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: FFH, lat   1 us, pow  1000 mW
acpicpu0: C2: FFH, lat   1 us, pow   500 mW
acpicpu0: C3: FFH, lat  57 us, pow   100 mW, bus master check
acpicpu0: P0: FFH, lat  10 us, pow 27000 mW, 1667 MHz
acpicpu0: P1: FFH, lat  10 us, pow 22600 mW, 1334 MHz
acpicpu0: P2: FFH, lat  10 us, pow 13800 mW, 1000 MHz
acpicpu0: T0: I/O, lat   1 us, pow     0 mW, 100 %
acpicpu0: T1: I/O, lat   1 us, pow     0 mW,  88 %
acpicpu0: T2: I/O, lat   1 us, pow     0 mW,  76 %
acpicpu0: T3: I/O, lat   1 us, pow     0 mW,  64 %
acpicpu0: T4: I/O, lat   1 us, pow     0 mW,  52 %
acpicpu0: T5: I/O, lat   1 us, pow     0 mW,  40 %
acpicpu0: T6: I/O, lat   1 us, pow     0 mW,  28 %
acpicpu0: T7: I/O, lat   1 us, pow     0 mW,  16 %
coretemp0 at cpu0: thermal sensor, 1 C resolution, Tjmax=100
acpicpu1 at cpu1: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
acpiacad0: AC adapter online.
acpibat0: MSI Corp.
 LION
 rechargeable battery
acpibat0: granularity: low->warn 0.001 Ah, warn->full 0.001 Ah
IPsec: Initialized Security Association Processing.
uhub0 at usb0: NetBSD (0000) UHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: NetBSD (0000) UHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub2 at usb2: NetBSD (0000) UHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhub3 at usb3: NetBSD (0000) UHCI root hub (0000), class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
uhub4 at usb4: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
ahcisata0 port 0: device present, speed: 3.0Gb/s
ahcisata0 port 2: PHY offline
ahcisata0 port 3: PHY offline
wd0 at atabus0 drive 0
wd0: <TS256GSSD340>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 238 GB, 496149 cyl, 16 head, 63 sec, 512 bytes/sect x 500118192 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100), WRITE DMA FUA, NCQ (32 tags)
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100) (using DMA), NCQ (31 tags)
umass0 at uhub4 port 2 configuration 1 interface 0
umass0: BUFFALO (0x411) USB Flash Disk (0x23b), rev 2.10/0.01, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <BUFFALO, USB Flash Disk, 1.00> disk removable
sd0: fabricating a geometry
sd0: 30936 MB, 30936 cyl, 64 head, 32 sec, 512 bytes/sect x 63356928 sectors
sd0: fabricating a geometry
WARNING: 7 errors while detecting hardware; check system log.
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
kern.module.path=/stand/i386/9.0/modules
kern info: [drm] Memory usable by graphics device = 1024M
kern info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
kern info: [drm] Driver supports precise vblank timestamp query.
i915drmkms0: interrupting at ioapic0 pin 16 (i915drmkms0)
ral0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ral0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
kern info: [drm] initialized overlay support
intelfb0 at i915drmkms0
intelfb0: framebuffer at 0xdc0f2000, size 1024x600, depth 32, stride 4096
wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1 added (default, vt100 emulation)
wsdisplay0: screen 2 added (default, vt100 emulation)
wsdisplay0: screen 3 added (default, vt100 emulation)
wsdisplay0: screen 4 added (default, vt100 emulation)
---

>How-To-Repeat:
Start X on N455 (and maybe other older intel chipset?).

>Fix:
Specifying
> option "AccelMethod" "uxa"
in /etc/X11/xorg.conf works around (i.e. Xorg draws everything properly).

We should force to use uxa for now?

>Audit-Trail:
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: xsrc/54995: 9.0 Xorg server screen corruption on N455 Atom and
	 i915drmkms
Date: Sat, 9 May 2020 00:20:19 +0900

 > >Synopsis:       9.0 Xorg server screen corruption on N455 Atom and i915drmkms
 > >Fix:
 > Specifying
 > > option "AccelMethod" "uxa"
 > in /etc/X11/xorg.conf works around (i.e. Xorg draws everything properly).
 > 
 > We should force to use uxa for now?

 See also:
  https://gnats.netbsd.org/55198
  https://mail-index.netbsd.org/netbsd-bugs/2020/05/08/msg067536.html

 ---
 Izumi Tsutsui

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.