Announcement

Collapse
No announcement yet.

Hangs totally break usability

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hangs totally break usability

    Hello. I have a major issue that happens very rarely, but when it happens, it's extremely annoying and basically prevents me from using my desktop until I reboot (freaking).

    Sometimes (completely random) the display freezes for exactly 10 seconds, and then it works again for 20-100ms. Then it freezes again, and so on. After every unfreeze, a DCE ring timeout (I think) message is output to dmesg, and there is a 15% chance of display corruption.

    Last time I got this problem was when:
    1. I turned on my computer.
    2. I did nothing for 4 hours.
    3. I was experimenting with a program, but due to some bugs it munched memory by appending characters to a C++ string (which caused the display to freeze very shortly at random intervals).
    4. I then began compiling Mesen, and 1 minute during the linking stage, this bug happened.

    Killing the compositor fixes the issue, but then reopening it will cause the freezes to resume.

    The only way to fix it is a reboot, but that's no true fix as I lose all my work.

    I may take very long to respond since this issue doesn't occur often.

    Computer specs:

    Code:
    # inxi                        
    CPU: Quad Core Intel Core i7-6700K        
    (-MCP-)                                    
    speed/min/max: 4001/800/4001 MHz          
    Kernel: 4.18.5-rt3-1-rt-bfq x86_64        
    Up: 21m Mem: 279.4/15895.2 MiB (1.8%)      
    Storage: 3.64 TiB (42.9% used)            
    Procs: 187 Shell: bash 5.0.0              
    inxi: 3.0.26                              
    # inxi -G                    
    Graphics:                                  
      Device-1: Intel HD Graphics 530          
      driver: i915 v: kernel                  
      Device-2: AMD Vega 10 XTX [Radeon        
      Vega Frontier Edition]                  
      driver: amdgpu v: kernel                
      Display: server: X.org 1.20.3            
      driver: modesetting tty: 43x20          
      Message: Advanced graphics data          
      unavailable in console for root.
    (sorry. I will post Mesa version later)

    (by the way, is it possible to block a specific user from my thread?)
    Last edited by tildearrow; 13 March 2019, 03:47 PM.

  • #2
    Sorry.... I didn't mention I use Arch Linux.

    Originally posted by debianxfce
    Use the latest AMD wip kernel with Vega gpus, it has tons of Vega patches compared to 4.18 kernels. Use latest Mesa and llvm git too, so that your gpu driver stack is in sync. The Amd wip kernel uses the 5.0.0-rc7 kernel as base, the + sign means that it is the kernel from AMD.
    Michael can you please remove this post? Whenever this guy posts in my thread everyone suddenly stops caring.

    Comment


    • #3
      Originally posted by tildearrow View Post
      Sorry.... I didn't mention I use Arch Linux.

      Michael can you please remove this post? Whenever this guy posts in my thread everyone suddenly stops caring.
      Removed his garbage.
      Michael Larabel
      https://www.michaellarabel.com/

      Comment


      • #4
        Update: So this is more likely to happen when compiling, and the freezes occur when moving the mouse or doing some other graphically intensive operation, or I think too many input events such as holding a key, but still, breaks the entire desktop as it is almost unusable without a mouse.

        Here is the tail of my dmesg:

        Code:
        [  117.011029] elogind-daemon[1964]: Removed session c1.
        [  149.160162] snd_hda_intel 0000:00:1f.3: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.
        [ 1912.195089] BUG: unable to handle kernel NULL pointer dereference at 000000000000001d
        [ 1912.195089] PGD 0 P4D 0 
        [ 1912.195091] Oops: 0002 [#1] PREEMPT SMP
        [ 1912.195092] CPU: 3 PID: 22750 Comm: kworker/u8:4 Tainted: G           O      4.18.5-rt3-1-rt-bfq #1
        [ 1912.195093] Hardware name: MSI MS-7984/Z170A GAMING PRO (MS-7984), BIOS 1.D0 12/22/2016
        [ 1912.195099] Workqueue: events_unbound commit_work [drm_kms_helper]
        [ 1912.195101] RIP: 0010:_raw_spin_lock_irq+0x21/0x40
        [ 1912.195101] Code: ec 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 53 48 89 fb fa 66 0f 1f 44 00 00 bf 01 00 00 00 e8 66 81 95 ff 31 c0 ba 01 00 00 00 <f0> 0f b1 13 85 c0 75 02 5b c3 89 c6 48 89 df e8 1b 23 98 ff 66 90 
        [ 1912.195109] RSP: 0018:ffff9103cae6fd30 EFLAGS: 00010046
        [ 1912.195109] RAX: 0000000000000000 RBX: 000000000000001d RCX: 0000000000000001
        [ 1912.195110] RDX: 0000000000000001 RSI: 0000000000002710 RDI: 0000000000000000
        [ 1912.195110] RBP: 000000000000001d R08: ffff8c6646931f40 R09: 00000000000003ff
        [ 1912.195110] R10: ffff8c66469322f0 R11: 0000000000000000 R12: 0000000000000015
        [ 1912.195111] R13: 0000000000000002 R14: ffff8c66a577f000 R15: ffff8c65d61a5100
        [ 1912.195111] FS:  0000000000000000(0000) GS:ffff8c66bcd80000(0000) knlGS:0000000000000000
        [ 1912.195112] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
        [ 1912.195112] CR2: 000000000000001d CR3: 000000042380e002 CR4: 00000000003606e0
        [ 1912.195112] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
        [ 1912.195113] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
        [ 1912.195113] Call Trace:
        [ 1912.195116]  wait_for_common+0x38/0x170
        [ 1912.195120]  drm_atomic_helper_wait_for_flip_done+0x6a/0x90 [drm_kms_helper]
        [ 1912.195157]  amdgpu_dm_atomic_commit_tail+0xc4b/0xd40 [amdgpu]
        [ 1912.195160]  ? wait_for_common+0x5f/0x170
        [ 1912.195166]  commit_tail+0x3d/0x70 [drm_kms_helper]
        [ 1912.195178]  process_one_work+0x1d7/0x3f0
        [ 1912.195180]  worker_thread+0x2d/0x420
        [ 1912.195184]  kthread+0x10f/0x130
        [ 1912.195187]  ? process_one_work+0x3f0/0x3f0
        [ 1912.195188]  ? kthread_flush_work_fn+0x10/0x10
        [ 1912.195189]  ret_from_fork+0x1f/0x40
        [ 1912.195190] Modules linked in: snd_hrtimer loop fuse nls_iso8859_1 nls_cp437 vfat fat input_leds led_class joydev mousedev uinput intel_rapl razermouse(O) razerfirefly(O) razerkbd(O) intel_powerclamp snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi coretemp iTCO_wdt iTCO_vendor_support snd_seq_dummy kvm_intel kvm irqbypass crct10dif_pclmul snd_seq snd_seq_device 8250_dw snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm crc32_pclmul ghash_clmulni_intel snd_timer pcbc snd aesni_intel aes_x86_64 soundcore mxm_wmi intel_wmi_thunderbolt e1000e crypto_simd idma64 psmouse cryptd glue_helper intel_lpss_pci i2c_i801 intel_cstate intel_uncore intel_lpss intel_rapl_perf intel_pch_thermal pcspkr mei_me mei rtc_cmos evdev mac_hid sg wmi crypto_user pcc_cpufreq acpi_cpufreq ext4 crc32c_generic
        [ 1912.195206]  crc16 mbcache jbd2 fscrypto hid_generic usbhid hid uas usb_storage sd_mod serio_raw atkbd libps2 ahci libahci crc32c_intel xhci_pci xhci_hcd libata scsi_mod usbcore usb_common i8042 serio i915 intel_gtt amdgpu chash i2c_algo_bit gpu_sched drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm agpgart
        [ 1912.195214] CR2: 000000000000001d
        [ 1912.195225] ---[ end trace 0000000000000002 ]---
        [ 1912.195226] RIP: 0010:_raw_spin_lock_irq+0x21/0x40
        [ 1912.195226] Code: ec 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 53 48 89 fb fa 66 0f 1f 44 00 00 bf 01 00 00 00 e8 66 81 95 ff 31 c0 ba 01 00 00 00 <f0> 0f b1 13 85 c0 75 02 5b c3 89 c6 48 89 df e8 1b 23 98 ff 66 90 
        [ 1912.195233] RSP: 0018:ffff9103cae6fd30 EFLAGS: 00010046
        [ 1912.195234] RAX: 0000000000000000 RBX: 000000000000001d RCX: 0000000000000001
        [ 1912.195234] RDX: 0000000000000001 RSI: 0000000000002710 RDI: 0000000000000000
        [ 1912.195234] RBP: 000000000000001d R08: ffff8c6646931f40 R09: 00000000000003ff
        [ 1912.195235] R10: ffff8c66469322f0 R11: 0000000000000000 R12: 0000000000000015
        [ 1912.195235] R13: 0000000000000002 R14: ffff8c66a577f000 R15: ffff8c65d61a5100
        [ 1912.195235] FS:  0000000000000000(0000) GS:ffff8c66bcd80000(0000) knlGS:0000000000000000
        [ 1912.195236] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
        [ 1912.195236] CR2: 000000000000001d CR3: 000000042380e002 CR4: 00000000003606e0
        [ 1912.195237] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
        [ 1912.195237] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
        [ 1912.195238] note: kworker/u8:4[22750] exited with preempt_count 1
        [ 1926.112234] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 1936.352100] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 1946.593404] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 1957.345105] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 1967.584196] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 1977.824103] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 1988.576129] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 1998.816221] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 2009.568141] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 2019.808231] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 2030.048127] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 2040.801142] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 2051.040082] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 2061.280165] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 2071.520107] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 2081.761291] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 2093.024105] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 2107.872138] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 2122.720108] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 2150.368125] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out                                                                                                            
        [ 2216.416250] [drm:drm_atomic_helper_setup_commit [drm_kms_helper]] *ERROR* [CRTC:43:crtc-0] cleanup_done timed out

        Comment


        • #5
          Originally posted by debianxfce View Post
          You see the reason for your problems here:


          Guess what you need to do.
          So, the problem is that I don't use your WIP kernel? I am going to try a recent kernel soon, but I certainly am NOT willing to use an unstable work-in-progress kernel.

          Comment


          • #6
            Are you using both graphics adapters (the Intel integrated plus Vega) ? Wondering if there is some interaction between them in the flip code.
            Test signature

            Comment


            • #7
              Originally posted by bridgman View Post
              Are you using both graphics adapters (the Intel integrated plus Vega) ? Wondering if there is some interaction between them in the flip code.
              Both are turned on, since I use the Intel card for faster transcoding when I finish my recordings for watching on mobile.

              However, I don't use the Intel card at all.

              Comment


              • #8
                Testing Linux 5.0... Will come back if the issue persists, otherwise in 1 month.

                Comment


                • #9
                  Good news: Linux 5.0 fixes the issue. Now I have a different issue, otherwise it's all good.

                  Comment

                  Working...
                  X