git: syscons - Wait for drm modesetting at appropriate places.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sun Mar 4 07:27:18 PST 2018


commit 0d7c8a4d1cafae68239fdb96d2e0432a9e98a551
Author: Imre Vadász <imre at vdsz.com>
Date:   Sun Mar 4 14:51:34 2018 +0100

    syscons - Wait for drm modesetting at appropriate places.
    
    * This avoids races between userland using DRM, and the drm modesetting
      callbacks called by syscons.
    
    * Always call the drm modesetting callback, when we are switching from a
      virtual terminal that is in Graphics mode. Before that was skipped unless
      we were switching to a virtual terminal that is in Text mode.
      However with the framebuffer mmap-ing through syscons, it also makes sense
      to use virtual terminals in Graphics mode, without going through drm. So
      we have to make sure to restore the syscons framebuffer there as well.

Summary of changes:
 sys/dev/misc/syscons/syscons.c | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0d7c8a4d1cafae68239fdb96d2e0432a9e98a551


-- 
DragonFly BSD source repository



More information about the Commits mailing list