Solved drm-*-kmod freezes few seconds after load

Petr Fischer

Member

Thanks: 7
Messages: 99

#1
Hello, I am trying new graphics drivers (drm-stable-kmod and drm-next-kmod) on Intell Haswell Integrated graphics (Toshiba Z30 laptop, core i5, Haswell, intel integr. graphics 5XX).
I builded packages from ports under 11.2.

After boot, when I manually load module from console:
Code:
kldload /boot/modules/i915kms.ko
module is loaded, video mode of console is changed, then I can type a few seconds, but then, the computer (or screen) freezes. Game over.
i915kms from "base" works OK.

Some log lines:
Code:
...
Jul  5 00:14:28 pf-bsd kernel: [drm] Initialized                                                                                                                                                                   
Jul  5 00:14:38 pf-bsd kernel: drmn0: <drmn> on vgapci0                                                                                                                                                            
Jul  5 00:14:38 pf-bsd kernel: vgapci0: child drmn0 requested pci_enable_io                                                                                                                                        
Jul  5 00:14:38 pf-bsd kernel: vgapci0: child drmn0 requested pci_enable_io                                                                                                                                        
Jul  5 00:14:38 pf-bsd kernel: [drm] Memory usable by graphics device = 2048M                                                                                                                                      
Jul  5 00:14:38 pf-bsd kernel: Failed to add WC MTRR for [0xe0000000-0xefffffff]: -28; performance may suffer                                                                                                      
Jul  5 00:14:38 pf-bsd kernel:                                                                                                                                                                                     
Jul  5 00:14:38 pf-bsd kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).                                                                                                                         
Jul  5 00:14:38 pf-bsd kernel: [drm] Driver supports precise vblank timestamp query.                                                                                                                               
Jul  5 00:14:38 pf-bsd kernel: [drm] Connector eDP-1: get mode from tunables:                                                                                                                                      
Jul  5 00:14:38 pf-bsd kernel: [drm]   - kern.vt.fb.modes.eDP-1                                                                                                                                                    
Jul  5 00:14:38 pf-bsd kernel: [drm]   - kern.vt.fb.default_mode                                                                                                                                                   
Jul  5 00:14:38 pf-bsd kernel: [drm] Connector DP-1: get mode from tunables:                                                                                                                                       
Jul  5 00:14:38 pf-bsd kernel: [drm]   - kern.vt.fb.modes.DP-1                                                                                                                                                     
Jul  5 00:14:38 pf-bsd kernel: [drm]   - kern.vt.fb.default_mode                                                                                                                                                   
Jul  5 00:14:38 pf-bsd kernel: [drm] Connector HDMI-A-1: get mode from tunables:                                                                                                                                   
Jul  5 00:14:38 pf-bsd kernel: [drm]   - kern.vt.fb.modes.HDMI-A-1                                                                                                                                                 
Jul  5 00:14:38 pf-bsd kernel: [drm]   - kern.vt.fb.default_mode                                                                                                                                                   
Jul  5 00:14:38 pf-bsd kernel: [drm] Connector DP-2: get mode from tunables:                                                                                                                                       
Jul  5 00:14:38 pf-bsd kernel: [drm]   - kern.vt.fb.modes.DP-2                                                                                                                                                     
Jul  5 00:14:38 pf-bsd kernel: [drm]   - kern.vt.fb.default_mode                                                                                                                                                   
Jul  5 00:14:38 pf-bsd kernel: [drm] Connector HDMI-A-2: get mode from tunables:                                                                                                                                   
Jul  5 00:14:38 pf-bsd kernel: [drm]   - kern.vt.fb.modes.HDMI-A-2                                                                                                                                                 
Jul  5 00:14:38 pf-bsd kernel: [drm]   - kern.vt.fb.default_mode                                                                                                                                                   
Jul  5 00:14:38 pf-bsd kernel: [drm] Initialized i915 1.6.0 20160919 for drmn on minor 0
Jul  5 00:14:38 pf-bsd kernel: WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_O
N(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(
!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!m
sg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg
->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)W            
Jul  5 00:14:38 pf-bsd kernel: ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)                                                                               
Jul  5 00:14:38 pf-bsd kernel: [drm:intel_dp_link_training_channel_equalization] failed to update link training                                                                                                    
Jul  5 00:14:38 pf-bsd kernel: VT: Replacing driver "vga" with new "fb".                                                                                                                                           
Jul  5 00:14:38 pf-bsd kernel: (!msg->buffer != !msg->size)W                                                                                                                                                       
Jul  5 00:14:39 pf-bsd kernel: start FB_INFO:                                                                                                                                                                      
Jul  5 00:14:39 pf-bsd kernel: type=11 height=1080 width=1920 depth=32                                                                                                                                             
Jul  5 00:14:39 pf-bsd kernel: cmsize=16 size=8294400                                                                                                                                                              
Jul  5 00:14:39 pf-bsd kernel: pbase=0xe0084000 vbase=0xfffff800e0084000                                                                                                                                           
Jul  5 00:14:39 pf-bsd kernel: name=drmn0 flags=0x0 stride=7680 bpp=32                                                                                                                                             
Jul  5 00:14:39 pf-bsd kernel: cmap[0]=0 cmap[1]=7f0000 cmap[2]=7f00 cmap[3]=c4a000                                                                                                                                
Jul  5 00:14:39 pf-bsd kernel: end FB_INFO                                                                                                                                                                         
Jul  5 00:14:39 pf-bsd kernel: drmn0: fb0: inteldrmfb frame buffer device                                                                                                                                          
Jul  5 00:15:08 pf-bsd kernel: [drm:intel_psr_work] Timed out waiting for PSR Idle for re-enable                                                                                                                   
Jul  5 00:15:18 pf-bsd kernel: [drm:drm_atomic_helper_commit_cleanup_done] [CRTC:26:pipe A] flip_done timed out                                                                                                    
Jul  5 00:15:33 pf-bsd kernel: acpi_toshiba0: unknown notify: 0x8e
...
EDIT: Brigthness hotkeys works in "freeze state".
 
Top