git: drm - Hack around a drm_setmaster issue

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Mar 9 14:09:56 PST 2021


commit 4ec80808ee5a1c16afe989ec48daa6ed3bf8873c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Mar 9 14:07:29 2021 -0800

    drm - Hack around a drm_setmaster issue
    
    * Currently the first-open automatically sets master.  A later attempt
      to issue the drm_set_master ioctl then fails because it is already set.
    
      It is unclear whether linux automatically sets master on first open
      or not, and quickly hacking that to not results in unhappiness, so...
    
    * For now, just allow the master to be overridden by the ioctl.  And
      throw in some additional kprintf()s to help with debugging.
    
    * Fixes the setDrmMaster error message on X startup and allows X
      to start.

Summary of changes:
 sys/dev/drm/drm_auth.c | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4ec80808ee5a1c16afe989ec48daa6ed3bf8873c


-- 
DragonFly BSD source repository



More information about the Commits mailing list