1. 21 12月, 2016 5 次提交
  2. 20 12月, 2016 1 次提交
  3. 16 12月, 2016 9 次提交
  4. 13 12月, 2016 16 次提交
  5. 11 12月, 2016 1 次提交
    • D
      drm: Add fake controlD* symlinks for backwards compat · 6449b088
      Daniel Vetter 提交于
      We thought that no userspace is using them, but oops libdrm is using
      them to figure out whether a driver supports modesetting. Check out
      drmCheckModesettingSupported but maybe don't because it's horrible and
      totally runs counter to where we want to go with libdrm device
      handling. The function looks in the device hierarchy for whether
      controlD* exist using the following format string:
      
      /sys/bus/pci/devices/%04x:%02x:%02x.%d/drm/controlD%d
      
      The "/drm" subdirectory is the glue directory from the sysfs class
      stuff, and the only way to get at it seems to through
      kdev->kobj.parent (when kdev is represents e.g. the card0 chardev
      instance in sysfs). Git grep says we're not the only ones touching
      that, so I hope it's ok we dig into such internals - I couldn't find a
      proper interface for getting at the glue directory.
      
      Quick git grep shows that at least -amdgpu, -ati are using this.
      -modesetting do not, and on -intel it's only about the 4th fallback
      path for device lookup, which is why this didn't blow up earlier.
      
      Oh well, we need to keep it working, and the simplest way is to add a
      symlink at the right place in sysfs from controlD* to card*.
      
      v2:
      - Fix error path handling by adding if (!minor) return checks (David)
      - Fix the controlD* numbers to match what's been there (David)
      - Add a comment what exactly userspace minimally needs.
      - Correct the analysis for -intel (Chris).
      
      Fixes: 8a357d10 ("drm: Nerf DRM_CONTROL nodes")
      Cc: Dave Airlie <airlied@gmail.com>
      Reported-and-tested-by: NAlex Deucher <alexander.deucher@amd.com>
      Acked-by: NEmil Velikov <emil.l.velikov@gmail.com>
      Reviewed-by: NDavid Herrmann <dh.herrmann@gmail.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: David Herrmann <dh.herrmann@gmail.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/20161209135656.14881-1-daniel.vetter@ffwll.ch
      6449b088
  6. 10 12月, 2016 6 次提交
  7. 09 12月, 2016 2 次提交
    • D
      Merge tag 'drm-fsl-dcu-for-next' of http://git.agner.ch/git/linux-drm-fsl-dcu into drm-next · 25dfd7cf
      Dave Airlie 提交于
      Some fixes and cleanup, mainly around fbdev emulation. It also adds a
      new module parameter which allows to specify the color depth/bpp for
      the fbdev emulation (like the IMX DRM driver).
      
      * tag 'drm-fsl-dcu-for-next' of http://git.agner.ch/git/linux-drm-fsl-dcu:
        drm/fsl-dcu: introduce kernel parameter to specify fbdev depth
        drm/fsl-dcu: remove separate compilation unit for fbdev emulation
        drm/fsl-dcu: Propagate the real error code
        drm/fsl-dcu: Remove unneeded NULL check
        drm/fsl-dcu: disable outputs before unloading driver
        drm/fsl-dcu: unload driver before disabling clocks
      25dfd7cf
    • D
      Merge tag 'drm-misc-next-2016-12-08' of git://anongit.freedesktop.org/git/drm-misc into drm-next · acc5ddd9
      Dave Airlie 提交于
      Another pile of misc stuff, final one for 4.10. If there's some serious
      bugfix still I'll send you a pull for drm-misc-next-fixes (like we do with
      intel), otherwise this is it and next pull next year for 4.11.
      
      Most interesting bits are probably Chris' fb helper fixes against mst
      hotplug oopses.
      
      * tag 'drm-misc-next-2016-12-08' of git://anongit.freedesktop.org/git/drm-misc: (22 commits)
        drm: Take ownership of the dmabuf->obj when exporting
        drm: Allow CAP_PRIME on !MODESET
        drm/fence: add drm_crtc_create_fence()
        drm/bridge: analogix: Don't return -EINVAL when panel doesn't support PSR
        drm/atomic: doc: remove old comment about nonblocking commits
        drm: Don't block the kworker waiting for mode_config.mutex in output_poll()
        drm: Return -ENOTSUPP when called for KMS cap with a non-KMS driver
        drm/amdgpu: don't add files at control minor debugfs directory
        drm: allow changing DPMS mode
        drm/qxl: fix use of uninitialized variable
        drm/qxl: Don't register debugfs for control minors
        drm/radeon: don't add files at control minor debugfs directory
        drm/vmwgfx: Switch to mode_cmd2
        drm/vgem: Use ww_mutex_(un)lock even with a NULL context
        drm: Make the connector .detect() callback optional
        drm/bridge: tc358767: don't warn if display side ASSR enable fails
        drm: Initialise drm_mm.head_node.allocated
        drm: Fix locking cargo-cult in encoder/plane init/cleanup
        drm/doc: Fix indenting in drm_modeset_lock.c comment
        drm: Protect fb_helper list manipulation with a mutex
        ...
      acc5ddd9