Bug 14144 - Desktop freeze problems releated to kernel.
Summary: Desktop freeze problems releated to kernel.
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on: 14301
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-23 14:35 CEST by Otto Leipälä
Modified: 2014-11-05 06:47 CET (History)
3 users (show)

See Also:
Source RPM: kernel-desktop-3.14.22-desktop-1.mga4
CVE:
Status comment:


Attachments
Xsession errors log (328.31 KB, text/plain)
2014-09-23 14:36 CEST, Otto Leipälä
Details
dmesg (51.44 KB, text/plain)
2014-10-04 09:19 CEST, Otto Leipälä
Details
Kernel log (57.40 KB, text/plain)
2014-10-04 09:34 CEST, Otto Leipälä
Details

Description Otto Leipälä 2014-09-23 14:35:08 CEST
I get lot of freezes with kde 4.12.5 desktop freeze often like 30s to few minutes nothing happens everything stop working mouse is only working.


Reproducible: 

Steps to Reproduce:
Comment 1 Otto Leipälä 2014-09-23 14:36:05 CEST
Created attachment 5433 [details]
Xsession errors log
Manuel Hiebel 2014-09-23 18:53:01 CEST

Source RPM: (none) => kde
Keywords: (none) => Triaged
CC: (none) => balcaen.john, lmenut
Assignee: bugsquad => mageia

Otto Leipälä 2014-09-23 18:55:39 CEST

Attachment 5433 mime type: application/octet-stream => text/plain

Comment 2 Otto Leipälä 2014-10-02 13:14:56 CEST
Kernel update bring those freezes to my mine install what have no kde 4.12 installed so i think that problem it's in kernel no in kde.
Comment 3 Otto Leipälä 2014-10-04 09:18:15 CEST
dmesg shows these error lines when it's freezing.
[drm] stuck on render ring
ing_stuck] *ERROR* Kicking stuck semaphore on render ring

This seems to be some graphics/kernel issue show i will change this against kernel from kde.
Comment 4 Otto Leipälä 2014-10-04 09:19:57 CEST
Created attachment 5471 [details]
dmesg

Log file.
Otto Leipälä 2014-10-04 09:20:40 CEST

Attachment 5471 mime type: application/octet-stream => text/plain

Comment 5 Otto Leipälä 2014-10-04 09:34:02 CEST
Created attachment 5472 [details]
Kernel log

Kernel log
Otto Leipälä 2014-10-04 09:39:36 CEST

Source RPM: kde => kernel-desktop-3.14.18-desktop-3.mga4
Assignee: mageia => tmb
Summary: Kde 4.12.5 freeze problem => Desktop freeze problems releated to kernel.

Otto Leipälä 2014-10-19 09:28:44 CEST

CC: (none) => tmb
Source RPM: kernel-desktop-3.14.18-desktop-3.mga4 => kernel-desktop-3.14.22-desktop-1.mga4

Otto Leipälä 2014-10-19 09:29:16 CEST

CC: balcaen.john, lmenut => (none)

Otto Leipälä 2014-10-19 09:36:32 CEST

Depends on: (none) => 14301

Rémi Verschelde 2014-10-23 11:04:11 CEST

Depends on: 14301 => (none)
CC: (none) => remi
Blocks: (none) => 14301

Comment 6 Thomas Backlund 2014-10-23 11:07:32 CEST
This is a problem with sna vs uxa acceleration.

edit /etc/X11/xorg.conf and add


Option      "AccelMethod"  "uxa"

so it should look something like:

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   Option      "AccelMethod"  "uxa"
EndSection
Comment 7 Otto Leipälä 2014-10-23 11:24:20 CEST
It fixes it but now there is lot of tearing because tearfree needs sna.
Comment 8 Thomas Backlund 2014-10-23 11:31:23 CEST
If you are using:

Option "AccelMethod" "sna"
Option "TearFree" "true"


Then try to add to kernel command line:

i915.semaphores=1
Comment 9 Otto Leipälä 2014-10-23 11:44:05 CEST
Mageia have by default i915.semaphores=1 so it won't change anything.

for i in /sys/module/i915/parameters/*; do echo $i=$(cat $i); done
/sys/module/i915/parameters/semaphores=-1
Otto Leipälä 2014-10-23 12:00:20 CEST

CC: (none) => ozkyster

David Walser 2014-10-23 12:52:13 CEST

Depends on: (none) => 14301
Blocks: 14301 => (none)

Comment 10 Thomas Backlund 2014-10-23 13:11:35 CEST
No, it has "-1" wich means "chip default setting"

try to force it with i915.semaphores=1
Comment 11 Otto Leipälä 2014-10-23 15:59:20 CEST
It's working i understand wrong that -1 means it's disabled as default.
Comment 12 Otto Leipälä 2014-10-23 17:23:08 CEST
Needed to edit grub2 efi to do it,first try to do it like arch wiki says creating this conf file /etc/modprobe.d/i915.conf with options i915.semaphores=1 but i won't work even i used dracut to rebuid initrd.
Comment 13 Otto Leipälä 2014-10-24 09:23:16 CEST
I get again those freezes it seems it was fixing that problem but now those are back.
Comment 14 Thomas Backlund 2014-10-24 09:24:33 CEST
Did it work with an earlier kernel, and if so wich one ?
Comment 15 Otto Leipälä 2014-10-24 11:11:50 CEST
Yes it worked with 3.12 kernels without setting i915.semaphores=1 problem only exist in 3.14 kernels.
Comment 16 Otto Leipälä 2014-10-30 09:31:30 CET
If i set i915.semaphores=0 freezes are gone so it's so weird bug.
I found bug report from kernel bugzilla can be releted or not.
https://bugzilla.kernel.org/show_bug.cgi?id=77691
Comment 17 Otto Leipälä 2014-11-03 15:03:31 CET
I get it working with i915.semaphores=1 noticed it was in grub2 but it was still -1 needed to edit /etc/grub/default and update-grub now it works fine without any freezes.
Comment 18 Otto Leipälä 2014-11-05 06:47:31 CET
I close this bug because have working solution i reopen it if this problem come back,Mageia 5 have no this bug so it will be fixed already.

Status: NEW => RESOLVED
Resolution: (none) => WORKSFORME


Note You need to log in before you can comment on or make changes to this bug.