1. 19 2月, 2015 2 次提交
    • T
      drm/tegra: dc: Reset state's active_changed field · 567a3cd1
      Thierry Reding 提交于
      Commit eab3bbef ("drm/atomic: Add drm_crtc_state->active") added the
      field to track the DPMS state. However, the Tegra driver was in modified
      in parallel and subclasses the CRTC atomic state, so needed to duplicate
      the code in the atomic helpers. After the addition of the active_changed
      field it became out of sync and doesn't reset it when duplicating state.
      
      This causes a full modeset on things like page-flips, which will in turn
      cause warnings due to the VBLANK machinery being disabled when it really
      should remain on.
      Tested-by: NTomeu Vizoso <tomeu.vizoso@collabora.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      567a3cd1
    • T
      drm/tegra: hdmi: Explicitly set clock rate · c03bf1bf
      Thierry Reding 提交于
      Recent changes in the clock framework have caused a behavioural change
      in that clocks that have not had their rate set explicitly will now be
      reset to their initial rate (or 0) when the clock is released. This is
      triggered in the deferred probing path, resulting in the clock running
      at a wrong frequency after the successful probe.
      
      This can be easily fixed by setting the rate explicitly rather than by
      relying on the implicit rate inherited by the parent.
      Tested-by: NTomeu Vizoso <tomeu.vizoso@collabora.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      c03bf1bf
  2. 13 2月, 2015 2 次提交
  3. 12 2月, 2015 4 次提交
  4. 11 2月, 2015 3 次提交
  5. 10 2月, 2015 3 次提交
  6. 09 2月, 2015 7 次提交
  7. 07 2月, 2015 9 次提交
  8. 05 2月, 2015 6 次提交
  9. 04 2月, 2015 3 次提交
    • T
      drm: Use static attribute groups for managing connector sysfs entries · 335f1a62
      Takashi Iwai 提交于
      Instead of manual calls of device_create_file() and
      device_remove_file(), assign the static attribute groups to the device
      with device_create_with_groups().  The conditionally built sysfs
      entries are handled via is_visible callback.
      
      This simplifies the code and also avoids the possible races.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      335f1a62
    • D
      drm: remove DRM_FORMAT_NV12MT · 083500ba
      Daniel Vetter 提交于
      So this has been merged originally in
      
      commit 83052d4d
      Author: Seung-Woo Kim <sw0312.kim@samsung.com>
      Date:   Thu Dec 15 15:40:55 2011 +0900
      
          drm: Add multi buffer plane pixel formats
      
      which hasn't seen a lot of review really. The problem is that it's not
      a real pixel format, but just a different way to lay out NV12 pixels
      in macroblocks, i.e. a tiling format.
      
      The new way of doing this is with the soon-to-be-merged fb modifiers.
      
      This was brough up in some long irc discussion around the entire
      topic, as an example of where things have gone wrong. Luckily we can
      correct the mistake:
      - The kms side support for NV12MT is all dead code because
        format_check in drm_crtc.c never accepted NV12MT.
      - The gem side for the gsc support doesn't look better: The code
        forgets to set the pixel format and makes a big mess with the tiling
        mode bits, inadvertedly setting them all.
      
      Conclusion: This never really worked (at least not in upstream) and
      hence we can safely correct our mistake here.
      
      Cc: Seung-Woo Kim <sw0312.kim@samsung.com>
      Cc: Inki Dae <inki.dae@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Rob Clark <robclark@freedesktop.org>
      Cc: Daniel Stone <daniel@fooishbar.org>
      Cc: Damien Lespiau <damien.lespiau@intel.com>
      Reviewed-by: NRob Clark <robclark@freedesktop.org>
      Reviewed-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
      Acked-by: NJoonyoung Shim <jy0922.shim@samsung.com>
      Acked-by: NSeung-Woo Kim <sw0312.kim@samsung.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      083500ba
    • D
      drm/i915: Remove bogus locking check in the hangcheck code · b838cbee
      Daniel Vetter 提交于
      You can _never_ assert that a lock is not held, except in some very
      restricted corner cases where it's guranteed that your code is running
      single-threade (e.g. driver load before you've published any pointers
      leading to that lock).
      
      In addition the early return breaks a bunch of testcases since with
      highly concurrent hangcheck stress tests the reset fails to work and
      the test doesn't recover and time out.
      
      This regression has been introduced in
      
      commit b8d24a06
      Author: Mika Kuoppala <mika.kuoppala@linux.intel.com>
      Date:   Wed Jan 28 17:03:14 2015 +0200
      
          drm/i915: Remove nested work in gpu error handling
      
      Aside: It is possible to check whether a given task doesn't hold a
      lock, but only when lockdep is enabled, using the lockdep_assert_held
      stuff.
      
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Mika Kuoppala <mika.kuoppala@intel.com>
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88908Reviewed-by: NMika Kuoppala <mika.kuoppala@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      b838cbee
  10. 03 2月, 2015 1 次提交