System freezing or flickering with i915 error [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A

Bug #1813423 reported by Llord Llama
74
This bug affects 15 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned
xorg-server (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

My system keeps freezing on a brand new install of Kubuntu 18.10, always with the kern.log error "[drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=4120234 end=4120235) time 486 us, min 763, max 767, scanline start 760, end 783"

I think it's probably a duplicate of these bugs which were closed unresolved:
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1660619 (closed as it was on an older version of Ubuntu)
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1671975 (closed because it was a duplicate of the first bug)

It happens far more frequently if I have desktop effects turned on, and far less frequently when using a live USB key (at always happens eventually though. Usually once every few hours.)

Please advise how I can help triage / test. My system is a new install now, so I'm perfectly willing to modify / reinstall to help testing (I've reinstalled 5 times to test things, but never managed to find a solution)

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: xorg 1:7.7+19ubuntu8
ProcVersionSignature: Ubuntu 4.18.0-13.14-generic 4.18.17
Uname: Linux 4.18.0-13-generic x86_64
ApportVersion: 2.20.10-0ubuntu13.1
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CompositorRunning: None
CurrentDesktop: KDE
Date: Sat Jan 26 14:19:52 2019
DistUpgraded: Fresh install
DistroCodename: cosmic
DistroVariant: ubuntu
ExtraDebuggingInterest: No
GraphicsCard:
 Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display [8086:0f31] (rev 0e) (prog-if 00 [VGA controller])
   Subsystem: Hewlett-Packard Company Atom Processor Z36xxx/Z37xxx Series Graphics & Display [103c:227a]
InstallationDate: Installed on 2019-01-18 (8 days ago)
InstallationMedia: Kubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.2)
MachineType: Hewlett-Packard HP Pavilion 14 Notebook PC
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.18.0-13-generic root=UUID=2c4bf3d1-1ff2-4345-95c0-c68d0e073df9 ro nogpumanager modprobe.blacklist=nouveau,nvidiafb,nvidia-modeset,nvidia-uvm,nvidia intel_iommu=igfx_off i915.semaphores=1 i915.enable_fbc=0 i915.modeset=1 i915.enable_rc=7 i915.enable_dc=2 i915.enable_ppgtt=3 i915.enable_guc_loading=1 i915.lvds_channel_mode=2 i915.lvds_use_ssc=1 quiet splash vt.handoff=1
SourcePackage: xorg
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/18/2015
dmi.bios.vendor: Insyde
dmi.bios.version: F.42
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: 227A
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 76.35
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnInsyde:bvrF.42:bd03/18/2015:svnHewlett-Packard:pnHPPavilion14NotebookPC:pvr096C110800405F10000620180:rvnHewlett-Packard:rn227A:rvr76.35:cvnHewlett-Packard:ct10:cvrChassisVersion:
dmi.product.family: 103C_5335KV G=N L=CON B=HP S=PAV X=Null
dmi.product.name: HP Pavilion 14 Notebook PC
dmi.product.sku: J9L01UA#ABL
dmi.product.version: 096C110800405F10000620180
dmi.sys.vendor: Hewlett-Packard
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.95-1
version.libgl1-mesa-dri: libgl1-mesa-dri 18.2.2-0ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx 18.2.2-0ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.20.1-3ubuntu2.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:18.1.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20171229-1ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.15-3

Revision history for this message
Llord Llama (llamalord) wrote :
Revision history for this message
Llord Llama (llamalord) wrote :

I have records of the last 5 kern.og / syslog / Xorg.log files from when it hung. When it does hang, the last thing visible on the screen stays there stationary, the cursor doesn't move and no keyboard inputs eg. alt+crtl+f2 / crtl+sysrq+RSEINUB, do nothing.

Revision history for this message
Llord Llama (llamalord) wrote :

EG, the last kern.log:

affects: xorg (Ubuntu) → xserver-xorg-video-modesetting (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Llord Llama (llamalord) wrote : Re: Frequent system freezing with i915 error "*ERROR* Atomic update failure on pipe A"

I understand that every user would like every bug they file to be considered "Important".

In this case though we have around 23 people who have confirmed this bug affects them on the three separate bug reports. It causes hanging and forced hard shutdowns at unpredictable times as often as every 15 minutes or so. This means there is a high probability of user data loss and even hardware damage.

I respectfully submit that it's reasonable to expect the importance of this to be set to High.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xserver-xorg-video-modesetting (Ubuntu):
status: New → Confirmed
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

there is no separate modesetting driver anymore, it's folded in the server

that said, the bug is most likely in the kernel

affects: xserver-xorg-video-modesetting (Ubuntu) → xorg-server (Ubuntu)
Revision history for this message
Llord Llama (llamalord) wrote :

Would it help to post more of the kern.logs from when it's hung?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

We could probably fold bug 1806242 and bug 1658632 in with this one.

tags: added: disco
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Browsing the Xorg modesetting source code it appears that might be to blame too, since it seems to try to use atomic mode setting.

Revision history for this message
Federico_dv (quaidy) wrote :

Same problem here, brand new install 18.10 in a new laptop, i cant pass the login, freezes all and the logs keeps raising

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

In theory logging into "Ubuntu on Wayland" should avoid the problem.

Revision history for this message
Avi (ikes73) wrote :

Having same issue, freeze without any changes on screen, on Ubuntu 18.10, Dell Precision 5530.

It only started recently after I encrypted my home directory and swap but I don't know if that's related.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

https://bbs.archlinux.org/viewtopic.php?id=233230 is this related? It seems it was fixed by "i915.enable_rc6=0" kernel parameter. Could you have a try?

Revision history for this message
Edson T. Marques (edsontmarques) wrote : Re: [Bug 1813423] Re: Frequent system freezing with i915 error "*ERROR* Atomic update failure on pipe A"
Download full text (5.9 KiB)

>
> Hello!
>
> I will explain what I did, I have little ability, so i made some research
> to get knowledge on how I could perform the configuration of this parameter.
>
> I found a location with the instructions I followed:
>
> # sudo cat /sys/module/i915/parameters/enable_psr
>
> This command returned -1;
> # sudo nano /etc/modprobe.d/i915.conf
>
> In this file I put:
> options i915 enable_psr = 0;
>

> I saved the file;
>
> performed:
> # sudo update-initramfs -u
>
> rebooted the computer;
>
> performed:
> # sudo cat /sys/module/i915/parameters/enable_psr
>
> This command returned 0;
>
> Then I connected the HDMI cable from my LG monitor and started testing.
>

> I noticed a specific behavior. I had already set up the gnome-shell dock
> to be displayed on all displays ... So I used the mouse pointer to fire the
> quick-launch shortcuts of applications I have recorded in the gnome-shell
> dock, but I made those shots from LG monitor.
>

> Every time I ran an application, there was a delay and a slight freezing
> of the mouse pointer while the application was loading up to a fraction of
> a second after the application was fully loaded. I continued to load the
> various applications, always using Dock shortcuts, and the same problem
> happened with several of these applications. This is a remarkable detail
> because I do not remember similar behavior in linux before... In addition,
> we notice a certain slowness and some truncation in the movement of the
> mouse pointer (only when it is on the LG display).
>
> So I realized that in this system reboot, my WiFi network was not
> activated (this is another uncomfortable instability that has been
> happening, that is, these faults in the load of the wifi or the wired
> network when we have to reboot the system). When I realized that the
> network was not working I completely turned off the notebook and turned it
> on again. Note that the LG monitor was connected all the time ... Then the
> network started up again and I was able to do the load tests again ...
> Again firing the applications through the gnome shell dock shortcuts using
> the LG monitor. This time, however, at the very first shot of the
> gnome-calculator, the complete interface and system freeze has already
> happened, not even the caps-lock button LED works ... Neither Ctrl Alt
> BkSpace ... Neither Ctrl Alt Delete ... or Ctrl Alt F "n" ... nothing. I
> had to turn off the notebook on the power button.
>
> Again I turned off the HDMI connection and re-used only the built-in
> monitor of the notebook.
>
> Very well ... To the point above I was ready to respond to the previous
> email with the alleged result of the proposed test. Then, reading the
> propose again, I realized that the proposed test was about a kernel
> parameter called "enable_rc6" and not "enable_psr" as it appears in the
> Arch Linux forum. Therefore, I tried to repeat the previous test using
> "enable_rc6". However, the "sudo cat
> /sys/module/i915/parameters/enable_rc6" command did not acknowledge the
> existence of this parameter. Nor after I change the
> "/etc/modprobe.d/i915.conf", run the "sudo update-initramfs -u" and restart
> the notebook. Even so I w...

Read more...

tags: removed: cosmic
summary: - Frequent system freezing with i915 error "*ERROR* Atomic update failure
- on pipe A"
+ System freezing or flickering with i915 error "*ERROR* Atomic update
+ failure on pipe A"
summary: - System freezing or flickering with i915 error "*ERROR* Atomic update
- failure on pipe A"
+ System freezing or flickering with i915 error [drm:intel_pipe_update_end
+ [i915]] *ERROR* Atomic update failure on pipe A
tags: added: bionic
Revision history for this message
aaron (nelaaro) wrote :

https://www.dedoimedo.com/computers/intel-microcode-atomic-update.html

TLDR

`
Apparently, hardware-based panel refresh supports automatic entry and exit from self-refresh. It is also an atomic operation, which means the processor will wait for it to complete until it finishes. Instinctively, we can assume there is some kind of an issue here, because if it takes to long for the screen to refresh, it may appear frozen.

Perhaps the driver misses buffers, or something else in the driver blocks the self-refresh functionality. This is not a guaranteed reason for the problem, but it a decent rule of thumb for what we are facing. And now, we can, with some confidence, attempt to apply a workaround that may help mitigate the freeze issues until a complete solution is provided with a driver update as part of normal distro update cycle. Hopefully.
`

Work arounds

 Install Intel's proprietary firmware (Intel microcode)

 Under /etc/modprobe.d/, you will need to create a configuration file i915.conf, if it does not already exist. Then, inside this file, you will need to add the following line:

options i915 enable_psr=0

Revision history for this message
gst (g-starck) wrote :

I am running with :

options i915 enable_psr=0

in my /etc/modprobe.d/i915.conf ( + options i915 enable_guc=2 ).

but still getting the error messages in dmesg:

$ dmesg | tail
[ 4461.136192] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe B (start=81211 end=81212) time 3659 us, min 1073, max 1079, scanline start 990, end 112
[ 4462.253219] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe B (start=81278 end=81279) time 3613 us, min 1073, max 1079, scanline start 1008, end 126
[ 4462.350517] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe B (start=81284 end=81285) time 3645 us, min 1073, max 1079, scanline start 836, end 1082
[ 4462.588911] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=81293 end=81294) time 3695 us, min 1073, max 1079, scanline start 833, end 1082
[ 4462.712018] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe C (start=81608 end=81609) time 3635 us, min 1073, max 1079, scanline start 876, end 4
[ 4464.044487] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe C (start=81688 end=81689) time 3672 us, min 1073, max 1079, scanline start 1055, end 185
[ 4465.185017] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe B (start=81454 end=81455) time 3546 us, min 1073, max 1079, scanline start 922, end 36
[ 4465.368990] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe B (start=81465 end=81466) time 3642 us, min 1073, max 1079, scanline start 949, end 69
[ 4467.289516] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=81575 end=81576) time 3673 us, min 1073, max 1079, scanline start 871, end 1119
[ 4467.636122] [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe B (start=81601 end=81602) time 3663 us, min 1073, max 1079, scanline start 979, end 101

I am waiting for the freeze to come sooner or later..

Revision history for this message
Carcalac (carcalacus) wrote :

i have the same issue on ubuntu 19.10

cat /etc/modprobe.d/i915.conf

options i915 enable_psr=0
options i915 enable_guc=2

5.3.0-45-generic

followed by one of the eight cores going crazy ~100% usage and i have to reboot because the system becomes slow..

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.