drm - Hack around a drm_setmaster issue
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 9 Mar 2021 22:07:29 +0000 (14:07 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 9 Mar 2021 22:07:29 +0000 (14:07 -0800)
commit4ec80808ee5a1c16afe989ec48daa6ed3bf8873c
tree2efb48dba617263e36c8543a26a40073d31a59c6
parent91d9f4486e4467d6d72687e743b4788aceb29789
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.
sys/dev/drm/drm_auth.c