Bug 75378 - gentoo on i7-4700MQ: after loading i915, console blurry with distorted colors or flickering
Summary: gentoo on i7-4700MQ: after loading i915, console blurry with distorted colors...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Paulo Zanoni
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-22 18:50 UTC by Adam Jirasek
Modified: 2017-07-24 22:55 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg, Xorg.0.log, xrandr and intel_reg_dumper.txt output (63.26 KB, text/plain)
2014-02-23 14:22 UTC, Adam Jirasek
no flags Details
Photo of screen with color distortion and correct screen (178.42 KB, image/jpeg)
2014-03-07 16:39 UTC, Adam Jirasek
no flags Details
video with flicker (861.80 KB, video/avi)
2014-03-07 16:46 UTC, Adam Jirasek
no flags Details
intel reg dumper for "blurry" mode (15.95 KB, text/plain)
2014-03-13 19:22 UTC, Adam Jirasek
no flags Details
inltel reg dumper for "flickering" mode (15.95 KB, text/plain)
2014-03-13 19:23 UTC, Adam Jirasek
no flags Details
intel reg dumper for "blurry" mode done after some time after some time (15.96 KB, text/plain)
2014-03-13 19:24 UTC, Adam Jirasek
no flags Details
dmesg (31.22 KB, text/plain)
2014-03-27 21:08 UTC, Adam Jirasek
no flags Details

Description Adam Jirasek 2014-02-22 18:50:12 UTC
Hello

After the kernel loads i915 the console starts in one of the two modes - in the all fonts are blurry o grainy. After starting X11 the colors are distorted (for example, blue is magenta et.)

In the second mode, the consol starts to flicker. The fonts and colors are looking normal and KDE session looks good too. The first mode happens more often then the second one.

In both cases everything seems to be working fine (except degradeated quality of the fonts on screen)

I tried both built-in i915 and load it as a module. 
I tested both kernel-genkernel-x86_64-3.10.25-gentoo and 
kernel-genkernel-x86_64-3.13.2-gentoo.

I tried acpi=off, does not have any effect
firmware: I tried both built-in kernel and installed firmware in 
gentoo portage, does not have any effect 

Reproducible always


Ani advice?

Thanks

Adam Jirasek


uname -a

Linux 3.13.1-gentoo #1 SMP Sat Feb 8 03:36:49 MST 2014 x86_64 Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz GenuineIntel GNU/Linux

kernel-x86_64-3.13.2
kernel-x86_64-3.10.1



Machinbe: Toshiba Satelite S70



lspci -n
00:00.0 0600: 8086:0c04 (rev 06)
00:02.0 0300: 8086:0416 (rev 06)
00:03.0 0403: 8086:0c0c (rev 06)
00:14.0 0c03: 8086:8c31 (rev 04)
00:16.0 0780: 8086:8c3a (rev 04)
00:1a.0 0c03: 8086:8c2d (rev 04)
00:1b.0 0403: 8086:8c20 (rev 04)
00:1c.0 0604: 8086:8c10 (rev d4)
00:1c.2 0604: 8086:8c14 (rev d4)
00:1c.3 0604: 8086:8c16 (rev d4)
00:1d.0 0c03: 8086:8c26 (rev 04)
00:1f.0 0601: 8086:8c49 (rev 04)
00:1f.2 0106: 8086:8c03 (rev 04)
00:1f.3 0c05: 8086:8c22 (rev 04)
07:00.0 0280: 10ec:8179 (rev 01)
08:00.0 0200: 1969:1091 (rev 10)






System uname: Linux-3.13.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:     8110492 total,   6083508 free
KiB Swap:   15625212 total,  15625212 free
Timestamp of tree: Mon, 03 Feb 2014 21:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo pentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core-avx2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.iawnet.sandia.gov/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/pentoo /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 acl acpi alsa amd64 ansi apm audiofile berkdb bindist bluetooth bzip2 cairo cddb cli codec compiz compiz-fusion cracklib crypt cxx dbus dri dvd dvdr exif expat fam ffmpeg fontconfig foomaticdb fortran freetype gca gda gdbm gif glut gmp gstreamer gt3 iconv idn ieee1394 imagemagic imlib ipv6 javascript kde kerberos latex lcmi libwww lm_sensors mad mms mmx modules motif mozilla mplayer multilib ncurses nforce2 nls nptl opengl openmp pam pcre pmu png qt3support qt4 qtk quassel readline samba screenlets sdl session sse sse2 ssl subversion svg tcpd tiff tk truetype udev unicode usb win32 xerces-c xorg-server xscreensaver xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Adam Jirasek 2014-02-23 14:22:36 UTC
Created attachment 94598 [details]
dmesg, Xorg.0.log, xrandr and intel_reg_dumper.txt output

dmesg, Xorg.0.log, xrandr and intel_reg_dumper.txt output
Comment 2 Ian Romanick 2014-02-24 18:07:42 UTC
This sounds like it's probably a modesetting problem.  Perhaps Daniel or Chris can take a look or comment.
Comment 3 Daniel Vetter 2014-03-03 09:50:43 UTC
Another hsw edp with funky colors. We have a few others of those ...

Presuming this is indeed an i915 bug and reassigning this bug to Paulo.

Can you please attach a jpeg/video which clearly shows the effect your seeing?
Comment 4 Daniel Vetter 2014-03-03 09:51:11 UTC
Also retesting on latest drm-intel-nightly from http://cgit.freedesktop.org/~danvet/drm-intel/ can't hurt.
Comment 5 Adam Jirasek 2014-03-04 15:18:19 UTC
(In reply to comment #3)
> Another hsw edp with funky colors. We have a few others of those ...
> 
> Presuming this is indeed an i915 bug and reassigning this bug to Paulo.
> 
> Can you please attach a jpeg/video which clearly shows the effect your
> seeing?

Thanks for answer, I tried to make snapshot from another laptop which did not work well. Will need to use my camera, need to buy a new battery, will take a few days before I get it by mail, once I have a photo I'll upload it.
Comment 6 Adam Jirasek 2014-03-04 15:34:38 UTC
(In reply to comment #4)
> Also retesting on latest drm-intel-nightly from
> http://cgit.freedesktop.org/~danvet/drm-intel/ can't hurt.

I will check it out and let you know.
Comment 7 Adam Jirasek 2014-03-04 17:01:41 UTC
(In reply to comment #4)
> Also retesting on latest drm-intel-nightly from
> http://cgit.freedesktop.org/~danvet/drm-intel/ can't hurt.

Did not help, still the same.
Comment 8 Adam Jirasek 2014-03-07 16:39:16 UTC
Created attachment 95307 [details]
Photo of screen with color distortion and correct screen

This picture shows a "normal" screen and photo of my screen with distorted colores. Algtough not really visible, the text on distrorted screen is blurry
Comment 9 Adam Jirasek 2014-03-07 16:46:37 UTC
Created attachment 95308 [details]
video with flicker

This video shows flicker of the screen. The flicker starts during boot when i915 is loaded. After kde starts, the kde background does not flicker. 
In the case the screen flickers, there is no any color distortion and 
text is sharp. 

So after the boot the screen either goes to blurry, distorted mode and 
flickering mode. Seems the screen after boot goes to one of the two modes.
Comment 10 Jani Nikula 2014-03-12 11:22:20 UTC
(In reply to comment #9)
> So after the boot the screen either goes to blurry, distorted mode and 
> flickering mode. Seems the screen after boot goes to one of the two modes.

Is there a difference in the intel reg dumper output for these two?
Comment 11 Adam Jirasek 2014-03-13 19:22:44 UTC
Created attachment 95739 [details]
intel reg dumper for "blurry" mode
Comment 12 Adam Jirasek 2014-03-13 19:23:32 UTC
Created attachment 95740 [details]
inltel reg dumper for "flickering" mode
Comment 13 Adam Jirasek 2014-03-13 19:24:22 UTC
Created attachment 95741 [details]
intel reg dumper for "blurry" mode done after some time after some time
Comment 14 Adam Jirasek 2014-03-13 19:27:37 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > So after the boot the screen either goes to blurry, distorted mode and 
> > flickering mode. Seems the screen after boot goes to one of the two modes.
> 
> Is there a difference in the intel reg dumper output for these two?

I posted attachment of the intel reg dumper for "blurry" mode and "flickering"
mode. There are two attachment for "flickering" mode, I took one right after the 
login to my KDE session (file intel_reg_dumper_flickering.txt), the second is taken about five mintues after that (intel_reg_flickering.txt1).
I hope it helps

Thanks
Comment 15 Daniel Vetter 2014-03-27 10:29:05 UTC
Ok, few more things:

- Can you please attach a picture of the grainy console, too?

- Please boot latest drm-intel-nightly kernel with drm.debug=0xe added to your kernel cmdline and then attach the complete dmesg.

- When you boot and the screen is in flicker mode, are there any messsage in dmesg about underruns? Same for the funny color mode. This only works with latest -nightly, released kernels dont have this debug feature implemented yet.

Nothing extraordinary in the reg dumps afaics.
Comment 16 Adam Jirasek 2014-03-27 21:08:46 UTC
Created attachment 96486 [details]
dmesg

Hello Daniel

Success!!

I compiled the lates drm-intel-nightly kernel, booted it with with drm.debug=0xe
and everythign works just fine, no more flicker, no more blurry screen with color distortion. Dmesg does not show any more "i915 : registered panic notifier"

Thanks for help! Not sure if you need anything more from me to find out what has changed, if you need just let me know

Adam Jirasek
Comment 17 Daniel Vetter 2014-03-27 21:27:33 UTC
You can attempt a reverse bisect (google has neat howtos, e.g. the kernel bisect from ubuntu) between the last broken kernel and drm-intel-nightly and so try to figure out which patch fixed your machines. Then we can backport it (if it's not an entire pile of patches ofc) so that all kernel will work properly.

But the bug itself seems resolved in the latest code, so closing this. If you have the reverse bisect results simply open a new bug report linked to this.
Comment 18 Adam Jirasek 2014-07-21 13:53:04 UTC
(In reply to comment #17)
> You can attempt a reverse bisect (google has neat howtos, e.g. the kernel
> bisect from ubuntu) between the last broken kernel and drm-intel-nightly and
> so try to figure out which patch fixed your machines. Then we can backport
> it (if it's not an entire pile of patches ofc) so that all kernel will work
> properly.
> 
> But the bug itself seems resolved in the latest code, so closing this. If
> you have the reverse bisect results simply open a new bug report linked to
> this.

Hello

I tried to upgrade my kernel to 3.16.0-rc5 (drm-intel-nighlty from 18th July 2014 ) and it seems the problem of blurry screen is back. The kernels 3.15.0-rc7 and 3.14.0-rc8 are working well. 

I will try to bisect it and see if I can find anything


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.