git: drm - Move startup delay to VERSION ioctl

Matthew Dillon dillon at crater.dragonflybsd.org
Sat May 4 14:21:29 PDT 2019


commit 45a165c7ada0f9a1ca54d3a1c8d855e7cb767efe
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat May 4 14:15:30 2019 -0700

    drm - Move startup delay to VERSION ioctl
    
    * We had a startup delay in the i915 attach path, which is
      synchronous with the kldload that X does.  Unfortunately, this
      doesn't appear to work well, probably because it just stalls
      everything and leaves the race intact after the sleep returns.
      Also, the kld lock is held across the sleep.
    
    * Move the startup delay to the first call of the DRM_IOCTL_VERSION
      ioctl.  This is outside the kld path allows drm to free-run while
      simply imposing a short delay on the X startup to give the drm
      system time to stabilize.
    
    * Should fix several intel i915 startup issues that can leave the
      screen corrupt, and perhaps other startup issues.

Summary of changes:
 sys/dev/drm/drm_ioctl.c     | 8 ++++++++
 sys/dev/drm/i915/i915_drv.c | 7 -------
 2 files changed, 8 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/45a165c7ada0f9a1ca54d3a1c8d855e7cb767efe


-- 
DragonFly BSD source repository


More information about the Commits mailing list