NetBSD Problem Report #49751
From makoto@modena.i.ki.nu Mon Mar 16 13:30:52 2015
Return-Path: <makoto@modena.i.ki.nu>
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" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id B562AA654C
for <gnats-bugs@gnats.NetBSD.org>; Mon, 16 Mar 2015 13:30:52 +0000 (UTC)
Message-Id: <201503161329.t2GDTAvE024859@modena.i.ki.nu>
Date: Mon, 16 Mar 2015 22:29:10 +0900 (JST)
From: makoto@ki.nu
Reply-To: makoto@ki.nu
To: gnats-bugs@gnats.NetBSD.org
Subject: With DRMKMS (i915GM), console gets rainbow stripes while loading drm
X-Send-Pr-Version: 3.95
>Number: 49751
>Category: kern
>Synopsis: With DRMKMS, LVDS1 (LCD display) gets rainbow stripes while loading drm
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: riastradh
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 16 13:35:00 +0000 2015
>Closed-Date: Sun Apr 05 13:27:40 +0000 2015
>Last-Modified: Sun Apr 05 13:27:40 +0000 2015
>Originator: Makoto Fujiwara
>Release: NetBSD 7.99.6
>Organization:
KINU Corporation
>Environment:
System: NetBSD cf-r4.i.ki.nu 7.99.6 NetBSD 7.99.6 (GENERIC) #38: Mon Mar 16 21:26:45 JST 2015 root@h87:/export/O-i386/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
On Lets' Note CF-R4, i386 machine with i915GM graphics,
when booting above kernel,
LVDS1 (LCD display) BIOS console will once blanked, and then shows
changing rainbow color vertical stripes:
https://www.youtube.com/watch?v=tUgjEBBXIaE&feature=youtu.be
The machine can accept ssh login (if network is properly set), and
if drm_debug = 1; set in sys/external/bsd/drm2/dist/drm/drm_stub.c,
(suggested by riastradh@)
dmesg looks like:
http://www.ki.nu/~makoto/NetBSD/i915drm/7.99.6-drm_debug_1
mlelstv@ suggested to connect external VGA. It works. X11 works.
with some trial and error, xrandr shows
http://www.ki.nu/~makoto/NetBSD/i915drm/xrandr
(OR)
---------------------------
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 32767 x 32767
LVDS1 connected 640x480+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
640x480 155.10*+ 85.01 72.81 75.00 59.94
640x400 85.08
640x350 85.08
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
1024x768 75.03*+ 75.08 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
640x480 75.00 72.81 66.67 60.00
720x400 70.08
TV1 unknown connection (normal left inverted right x axis y axis)
848x480 59.94 +
640x480 59.94 +
1024x768 59.94
800x600 59.94
---------------------------
Implying internal LVDS1 is recognized as 640x480, which should be 1024x768.
One suspect is following line
'drm: failed to find VBIOS tables' in dmesg comes from
sys/external/bsd/drm2/dist/drm/i915/i915_dma.c
which may be because failing following function call
bios = pci_map_rom(pdev, &size);
at
sys/external/bsd/drm2/dist/drm/i915/intel_bios.c
For the reference, following output is also at the directory:
http://www.ki.nu/~makoto/NetBSD/i915drm/
acpidump -dt
pcictl pci0 dump -b 0 -d 2
Xorg.0.log (external VGA only)
Xorg.0.log-2 (plus internal LVDS1)
-- above switching is done at BIOS setting --
>How-To-Repeat:
Lets' Note CF-R4, i386 machine with i915GM graphics
boot DRMKMS kernel, for example 7.99.6.
Just looking at LCD. You will got above.
>Fix:
Not known.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: kern-bug-people->riastradh
Responsible-Changed-By: mef@NetBSD.org
Responsible-Changed-When: Mon, 16 Mar 2015 13:40:04 +0000
Responsible-Changed-Why:
Discussed this issue in person (at AsiaBSDCon :-). Thank you.
State-Changed-From-To: open->closed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Sun, 05 Apr 2015 13:27:40 +0000
State-Changed-Why:
fixed in sys/dev/pci/agp_i810.c 1.118
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.40 2014/08/02 14:16:04 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.