You are not logged in.

#1 2014-08-13 18:01:36

amish
Member
Registered: 2014-05-10
Posts: 475

[Solved] Kernel 3.16.0 and i915 causes Kwin crashes

TEMPORARY WORKAROUND 1:
Disable OpenGL.
Goto System Setting-Desktop effects-Disable Desktop effects-Go to advanced-Change Compositing type XRender

TEMPORARY WORKAROUND 2:
Use uxa: (Seems UXA automatically disables OpenGL)
https://wiki.archlinux.org/index.php/In … SNA_issues

WORKAROUND for mplayer
Add/change these two lines in config file:

vo=x11
zoom=yes

First line makes mplayer use X11 driver instead of OpenGL
Second line enables software zoom for full screen mode.

UPDATE: the solution below (MODULES) does not work. Issue has resurfaced.

Ok so I upgraded to 3.16.0.

I had this in /etc/mkinitcpio.conf:

MODULES="i915"

i.e. it loads i915 immediately on system boot.

When system started, it showed some kind of error related to i915 but system continued to boot.

Output of lspci:

00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)

After booting into KDE. If I start konsole or firefox or anything, it would not show Window title bar and the buttons (minimize / close). i.e. looks like window manager fails to load.

Manually starting kwin crashes again with following error:

kwin(5507) KWin::Compositor::slotCompositingOptionsInitialized: Initializing OpenGL compositing
kwin(5507) KWin::GlxBackend::initDrawableConfigs: Drawable visual (depth  24 ): 0x "68"
kwin(5507) KWin::GlxBackend::initDrawableConfigs: Drawable visual (depth  32 ): 0x "4e"
kwin(5507) KWin::GlxBackend::initBuffer: Buffer visual (depth  24 ): 0x "67"
OpenGL vendor string:                   Intel Open Source Technology Center
OpenGL renderer string:                 Mesa DRI Mobile Intel® GM45 Express Chipset
OpenGL version string:                  2.1 Mesa 10.2.5
OpenGL shading language version string: 1.20
Driver:                                 Intel
GPU class:                              i965
OpenGL version:                         2.1
GLSL version:                           1.20
Mesa version:                           10.2.5
X server version:                       1.16
Linux kernel version:                   3.16
Direct rendering:                       yes
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin(5507) KWin::GlxBackend::init: Direct rendering: true
kwin(5507) KWin::SceneOpenGL2::slotColorCorrectedChanged: Color correction: false
kwin(5507) KWin::SceneOpenGL2::SceneOpenGL2: OpenGL 2 compositing successfully initialized
kwin(5507) KWin::currentRefreshRate: Vertical Refresh rate  60 Hz
intel_do_flush_locked failed: Invalid argument



So I removed i915 from MODULES and ran:

mkinitcpio -p linux

And rebooted.

And KDE started to work fine.

I dont have exact log for error but it appears something wrong with i915 module OR kernel?

Posting this message so that it can help others who has similar issue.

i.e. remove i915 from MODULES in /etc/mkinitcpio.conf and run:

mkinitcpio -p linux

and then reboot.

Last edited by amish (2014-10-08 01:47:41)

Offline

#2 2014-08-14 01:18:52

amish
Member
Registered: 2014-05-10
Posts: 475

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

Ok this issue is not resolved by above solution.

Its back to not showing the window title and window buttons.

There is something which is breaking window manager.

Offline

#3 2014-08-14 02:15:10

amish
Member
Registered: 2014-05-10
Posts: 475

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

TEMPORARY WORKAROUND 1:
Disable OpenGL.
Goto System Setting-Desktop effects-Disable Desktop effects-Go to advanced-Change Compositing type XRender

TEMPORARY WORKAROUND 2:
Use uxa: (Seems UXA automatically disables OpenGL)
https://wiki.archlinux.org/index.php/In … SNA_issues

Last edited by amish (2014-08-15 03:59:05)

Offline

#4 2014-08-14 08:43:52

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

Still present in 3.16.1-1?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2014-08-14 08:53:00

amish
Member
Registered: 2014-05-10
Posts: 475

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

3.16.1 is still in testing repo. Has not appeared in pacman updates for me.

Offline

#6 2014-08-14 16:23:28

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

Manually pull it or enable testing?  My point was that it might be solved in there, check out the 3.16.1 changelog.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2014-08-14 16:49:31

yungtrizzle
Member
Registered: 2011-04-24
Posts: 139

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

It's not fixed. I just pulled in the update about an hour ago. 

running through my journal logs I found this

 [drm:init_ring_common] *ERROR* render ring initialization failed ctl 0001f001 (valid? 1) head 0000a02c tail 00000000 start 00303
 [drm:i915_gem_init] *ERROR* Failed to initialize GPU, declaring it wedged

seems like a rogue commit somewhere

Offline

#8 2014-08-14 16:52:43

LudaOtaku
Member
From: Helvetia
Registered: 2013-04-03
Posts: 22

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

Hello,

Yesterday in the evening I decided to install quite a lot of stuff (almost only GNOME and Cinnamon related stuff) on my Arch laptop (HP EliteBook 2530p), including the update to Linux 3.16.1-1. I then just shut down the computer. This morning I booted it and the GPU apparently failed to initialize for some reasons. I tried running mkinitcpio -p linux again and checked whether the i915 module was still in the MODULE section, and that was the case.

Honestly I don't know what to do, dmesg | grep ERROR outputs this

[drm:init_ring_common] *ERROR* render ring initialization failed ctl 0001f001 (valid? 1) head 0000d0a4 tail 00000000 start 00303000 [expected 00303000]
[drm:i915_gem_init] *ERROR* Failed to initialize GPU, declaring it wedged

The Intel graphics driver is properly installed (and it worked before that kernel update anyway).

Did I miss something? I seriously don't understand what's going on. The computer boots properly and displays lxdm just fine, however I can't get Cinnamon to work as it keeps telling me it crashed and asks me if I want to restart it. The only thing that's displayed is my wallpaper and the cursor.

Has this already happened to someone before?

Offline

#9 2014-08-14 17:07:40

argymeg
Member
Registered: 2013-12-22
Posts: 5

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

I am having the same issue with linux 3.16-2 (3.16.1-1 has apparently not been pushed to my mirror yet). LXDE works fine, however anything that depends on more advanced graphics (like any game or glxgears, or even video playback with VLC) crashes at launch. The common error message in all situations is:

intel_do_flush_locked failed: Input/output error

Offline

#10 2014-08-14 17:44:55

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

I am having the same problem as described above and it is pain in the ass. For me It lasts for about two months now. As a workaround i use LTS kernel. The problem appeared in late june to other people too https://bbs.archlinux.org/viewtopic.php?id=183350.

I also use i915 driver( intel GMA 4500m graphic card).


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#11 2014-08-14 19:12:19

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

I get similar output:

[drm:init_ring_common] *ERROR* render ring initialization failed ctl 0001f001 (valid? 1) head 00000298 tail 00000000 start 001d8000 [expected 001d8000]
[drm:i915_gem_init] *ERROR* Failed to initialize GPU, declaring it wedged
% lspci -v
00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
	Subsystem: Gigabyte Technology Co., Ltd GA-EG45M-DS2H Mainboard
	Flags: bus master, fast devsel, latency 0, IRQ 47
	Memory at fd800000 (64-bit, non-prefetchable) [size=4M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at ff00 [size=8]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [d0] Power Management version 2
	Capabilities: [a4] PCI Advanced Features
	Kernel driver in use: i915
	Kernel modules: i915

Has anyone reported this upstream?

Last edited by graysky (2014-08-14 19:12:53)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#12 2014-08-14 19:13:33

advibm
Member
Registered: 2014-08-14
Posts: 1

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

Hours of googling and now I'm here.. I've got the same problem on my intel GPU (Thinkpad).
It would not be a big problem if mplayer could still show videos since i3 does not need much graphics resources but unfortunately thats not the case.
i915.i915_enable_rc6=0 does not work.

I know that a kernel downgrade would probably fix it but I do not want to do that.

Last edited by advibm (2014-08-14 19:18:42)

Offline

#13 2014-08-14 20:37:34

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

Merging with existing thread...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2014-08-14 20:54:10

raymondcal
Member
Registered: 2010-06-16
Posts: 47

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

Why did you merge this thread ? This bug crashes Gnome 3 too ! smile
Same thing here on my Toshiba Satellite C640 with same error messages.
Gnome 3 (or gdm) cannot start, and only displays the "Oh nooo, something went wrong" screen.
There are explanations here : https://www.archlinux.org/news/xorg-ser … available/ but I don't know what to do with them, I even don't know if these explanations are related to the bug.

Offline

#15 2014-08-14 21:03:12

LudaOtaku
Member
From: Helvetia
Registered: 2013-04-03
Posts: 22

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

Yeah I created a new thread because this one just wasn't the same issue as the "*ERROR* Failed to initialize GPU, declaring it wedged" one... (At least, to me it didn't look similar at all, because it was KDE-related, which I never used).

Anyway, removing "i915" from the /etc/mkinicpio.conf file fixed it and now Cinnamon runs just fine, but I still don't understand why this happens.

Last edited by LudaOtaku (2014-08-14 21:03:47)

Offline

#16 2014-08-14 21:26:34

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

Ok, many are affected.  Did the OP open a report upstream yet?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#17 2014-08-15 02:49:10

diegoviola
Member
Registered: 2010-12-16
Posts: 134

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

Deleted.

Last edited by diegoviola (2023-04-17 22:29:34)

Offline

#18 2014-08-15 03:39:47

frikilinux
Member
Registered: 2014-08-15
Posts: 1
Website

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

After build xf86-video-intel-git from AUR everything work fine again, for now

kernel 3.16.1-1
xf86-video-intel-git-2.99.914.55.gf8e632f

edit: not working again

Last edited by frikilinux (2014-08-15 03:59:31)

Offline

#19 2014-08-15 03:45:28

amish
Member
Registered: 2014-05-10
Posts: 475

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

graysky wrote:

Ok, many are affected.  Did the OP open a report upstream yet?

I did not open report upstream because I could not find where the problem is.

Is it kernel?
Is it i915 intel module?
Is it OpenGL? (Mostly its OpenGL)

Plus I see there is already bug report on this issue.
https://bugs.archlinux.org/task/41045

The bug existing for some user in previous kernel as well (3.15)

My first solution (remove i915 from MODULES) worked only once. But it started crashing.

Now I upgraded to 3.16.1 but bug still exists.

Currently only solution is to disable OpenGL OR use UXA

WORKAROUND for mplayer
Add/change these two lines in config file:

vo=x11
zoom=yes

First line makes mplayer use X11 driver instead of OpenGL
Second line enables software zoom for full screen mode.

Last edited by amish (2014-08-15 03:57:38)

Offline

#20 2014-08-15 08:58:05

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

amish wrote:
graysky wrote:

Ok, many are affected.  Did the OP open a report upstream yet?

I did not open report upstream because I could not find where the problem is.

Is it kernel?
Is it i915 intel module?
Is it OpenGL? (Mostly its OpenGL)

graysky wrote:
[drm:init_ring_common] *ERROR* render ring initialization failed ctl 0001f001 (valid? 1) head 00000298 tail 00000000 start 001d8000 [expected 001d8000]
[drm:i915_gem_init] *ERROR* Failed to initialize GPU, declaring it wedged

I would open one upstream against the intel video component.  The Arch bug report is ok, but given the scope of affects users, upstream needs to see it.  You can create a bugzilla account and provide the details with dmesg there.  If they want more they will ask.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#21 2014-08-15 13:44:26

fqqbar
Member
Registered: 2014-08-15
Posts: 3

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

Also get this error since last kernel update:

$ dmesg | grep ERROR
[    0.516681] [drm:init_ring_common] *ERROR* render ring initialization failed ctl 0001f001 (valid? 1) head 0000d05c tail 00000000 start 00303000 [expected 00303000]
[    0.516688] [drm:i915_gem_init] *ERROR* Failed to initialize GPU, declaring it wedged
$ sudo lspci -v
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07) (prog-if 00 [VGA controller])
        Subsystem: Fujitsu Limited. Device 1458
        Flags: bus master, fast devsel, latency 0, IRQ 43
        Memory at f2000000 (64-bit, non-prefetchable) [size=4M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        I/O ports at 1800 [size=8]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [d0] Power Management version 3
        Kernel driver in use: i915
        Kernel modules: i915

Offline

#22 2014-08-15 17:43:03

argymeg
Member
Registered: 2013-12-22
Posts: 5

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

This bug report seems relevant, although it mentions the issue appearing before 3.16.

Offline

#23 2014-08-15 20:36:22

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#24 2014-08-16 20:49:43

marioraun
Member
Registered: 2012-05-24
Posts: 5

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

For now, I just installed linux-lts (3.14.17-1-lts), as it seems this bug won't be fixed soon. Everything works as expected smile

Offline

#25 2014-08-18 06:51:46

diegoviola
Member
Registered: 2010-12-16
Posts: 134

Re: [Solved] Kernel 3.16.0 and i915 causes Kwin crashes

Deleted.

Last edited by diegoviola (2023-04-17 22:29:44)

Offline

Board footer

Powered by FluxBB