Skip to content
Snippets Groups Projects
  1. Apr 19, 2019
  2. Apr 18, 2019
  3. Apr 17, 2019
  4. Apr 12, 2019
  5. Apr 04, 2019
  6. Mar 25, 2019
  7. Mar 21, 2019
  8. Mar 18, 2019
  9. Mar 12, 2019
  10. Mar 11, 2019
  11. Feb 26, 2019
  12. Feb 22, 2019
    • Emily Deng's avatar
      libdrm: Fix issue about differrent domainID but same BDF · 56c21f87
      Emily Deng authored
      
      For multiple GPUs which has the same BDF, but has different domain ID,
      the drmOpenByBusid will return the wrong fd when startx.
      
      The reproduce sequence as below:
      1. Call drmOpenByBusid to open Card0, then will return the right fd0, and the
      fd0 is master privilege;
      2. Call drmOpenByBusid to open Card1. In function drmOpenByBusid, it will
      open Card0 first, this time, the fd1 for opening Card0 is not master
      privilege, and will call drmSetInterfaceVersion to identify the
      domain ID feature, as the fd1 is not master privilege, then drmSetInterfaceVersion
      will fail, and then won't compare domain ID, then return the wrong fd for Card1.
      
      Solution:
      First loop search the best match fd about drm 1.4.
      
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Signed-off-by: default avatarEmily Deng <Emily.Deng@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      56c21f87
  13. Feb 19, 2019
  14. Feb 08, 2019
  15. Feb 07, 2019
    • Christopher James Halse Rogers's avatar
      xf86drm: Add drmIsMaster() · 17dfe3ac
      Christopher James Halse Rogers authored and Emil Velikov's avatar Emil Velikov committed
      
      We can't use drmSetMaster to query whether or not a drm fd is master
      because it requires CAP_SYS_ADMIN, even if the fd *is* a master fd.
      
      Pick DRM_IOCTL_MODE_ATTACHMODE as a long-deprecated ioctl that is
      DRM_MASTER but not DRM_ROOT_ONLY as the probe by which we can detect
      whether or not the fd is master.
      
      This is useful for code that might get master by open()ing the drm device
      while no other master exists, but can't call drmSetMaster itself because
      it's not running as root or is in a container, where container-root isn't
      real-root.
      
      v2: Use the AUTH_MAGIC request rather than MODE_ATTACHMODE, as it's more
          clearly related to master status.
      
      v3: [Emil] Don't expose internals, check for -EACCES.
      
      Signed-off-by: default avatarChristopher James Halse Rogers <christopher.halse.rogers@canonical.com>
      Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> (v2)
      Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>
      Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
      17dfe3ac
  16. Feb 04, 2019
  17. Feb 01, 2019
  18. Jan 22, 2019
  19. Jan 16, 2019
  20. Jan 10, 2019
  21. Jan 03, 2019
Loading