1. 02 6月, 2016 1 次提交
  2. 01 6月, 2016 3 次提交
    • D
      drm/i915: Revert async unpin and nonblocking atomic commit · e42aeef1
      Daniel Vetter 提交于
      This reverts the following patches:
      
      d55dbd06 drm/i915: Allow nonblocking update of pageflips.
      15c86bdb drm/i915: Check for unpin correctness.
      95c2ccdc Reapply "drm/i915: Avoid stalling on pending flips for legacy cursor updates"
      a6747b73 drm/i915: Make unpin async.
      03f476e1 drm/i915: Prepare connectors for nonblocking checks.
      2099deff drm/i915: Pass atomic states to fbc update functions.
      ee7171af drm/i915: Remove reset_counter from intel_crtc.
      2ee004f7 drm/i915: Remove queue_flip pointer.
      b8d2afae drm/i915: Remove use_mmio_flip kernel parameter.
      8dd634d9 drm/i915: Remove cs based page flip support.
      143f73b3 drm/i915: Rework intel_crtc_page_flip to be almost atomic, v3.
      84fc494b drm/i915: Add the exclusive fence to plane_state.
      6885843a drm/i915: Convert flip_work to a list.
      aa420ddd drm/i915: Allow mmio updates on all platforms, v2.
      afee4d87 Revert "drm/i915: Avoid stalling on pending flips for legacy cursor updates"
      
      "drm/i915: Allow nonblocking update of pageflips" should have been
      split up, misses a proper commit message and seems to cause issues in
      the legacy page_flip path as demonstrated by kms_flip.
      
      "drm/i915: Make unpin async" doesn't handle the unthrottled cursor
      updates correctly, leading to an apparent pin count leak. This is
      caught by the WARN_ON in i915_gem_object_do_pin which screams if we
      have more than DRM_I915_GEM_OBJECT_MAX_PIN_COUNT pins.
      
      Unfortuantely we can't just revert these two because this patch series
      came with a built-in bisect breakage in the form of temporarily
      removing the unthrottled cursor update hack for legacy cursor ioctl.
      Therefore there's no other option than to revert the entire pile :(
      
      There's one tiny conflict in intel_drv.h due to other patches, nothing
      serious.
      
      Normally I'd wait a bit longer with doing a maintainer revert, but
      since the minimal set of patches we need to revert (due to the bisect
      breakage) is so big, time is running out fast. And very soon
      (especially after a few attempts at fixing issues) it'll be really
      hard to revert things cleanly.
      
      Lessons learned:
      - Not a good idea to rush the review (done by someone fairly new to
        the area) and not make sure domain experts had a chance to read it.
      
      - Patches should be properly split up. I only looked at the two
        patches that should be reverted in detail, but both look like the
        mix up different things in one patch.
      
      - Patches really should have proper commit messages. Especially when
        doing more than one thing, and especially when touching critical and
        tricky core code.
      
      - Building a patch series and r-b stamping it when it has a built-in
        bisect breakage is not a good idea.
      
      - I also think we need to stop building up technical debt by
        postponing atomic igt testcases even longer. I think it's clear that
        there's enough corner cases in this beast that we really need to
        have the testcases _before_ the next step lands.
      
      (cherry picked from commit 5a21b665
      from drm-intel-next-queeud)
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Patrik Jakobsson <patrik.jakobsson@linux.intel.com>
      Cc: John Harrison <John.C.Harrison@Intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Acked-by: NMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Acked-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Acked-by: NDave Airlie <airlied@redhat.com>
      Acked-by: NJani Nikula <jani.nikula@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      e42aeef1
    • D
      drm/vc4: Use lockless gem BO free callback · b82caafc
      Daniel Vetter 提交于
      No dev->struct_mutex anywhere to be seen.
      
      Cc: Eric Anholt <eric@anholt.net>
      Reviewed-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1464630800-30786-16-git-send-email-daniel.vetter@ffwll.ch
      b82caafc
    • D
      drm/vc4: Use drm_gem_object_unreference_unlocked · db369729
      Daniel Vetter 提交于
      Since my last struct_mutex crusade someone escaped!
      
      This already has the advantage that for the common case when someone
      else holds a ref the unref won't even acquire dev->struct_mutex. And
      I'm working on code to allow drivers to completely opt-out of any and
      all dev->struct_mutex usage, but that only works if they use the
      _unlocked variants everywhere.
      
      v2: Drop comment too.
      
      v3: Drop the other comment too.
      
      Cc: Eric Anholt <eric@anholt.net>
      Reviewed-by: NEric Anholt <eric@anholt.net>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1464630800-30786-15-git-send-email-daniel.vetter@ffwll.ch
      db369729
  3. 31 5月, 2016 12 次提交
  4. 30 5月, 2016 3 次提交
  5. 29 5月, 2016 1 次提交
    • G
      Eliminate bad hash multipliers from hash_32() and hash_64() · ef703f49
      George Spelvin 提交于
      The "simplified" prime multipliers made very bad hash functions, so get rid
      of them.  This completes the work of 689de1d6.
      
      To avoid the inefficiency which was the motivation for the "simplified"
      multipliers, hash_64() on 32-bit systems is changed to use a different
      algorithm.  It makes two calls to hash_32() instead.
      
      drivers/media/usb/dvb-usb-v2/af9015.c uses the old GOLDEN_RATIO_PRIME_32
      for some horrible reason, so it inherits a copy of the old definition.
      Signed-off-by: NGeorge Spelvin <linux@sciencehorizons.net>
      Cc: Antti Palosaari <crope@iki.fi>
      Cc: Mauro Carvalho Chehab <m.chehab@samsung.com>
      ef703f49
  6. 28 5月, 2016 17 次提交
  7. 27 5月, 2016 3 次提交
    • W
      i2c: dev: don't start function name with 'return' · 72a71f86
      Wolfram Sang 提交于
      I stumbled multiple times over 'return_i2c_dev', especially before the
      actual 'return res'. It makes the code hard to read, so reanme the
      function to 'put_i2c_dev' which also better matches 'get_free_i2c_dev'.
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      72a71f86
    • A
      drivers/pinctrl/intel/pinctrl-baytrail.c: fix build with gcc-4.4 · bbccb9c7
      Andrew Morton 提交于
      gcc-4.4 and thereabouts has issues with initializers of anonymous
      unions, and it generates the following warnings:
      
        drivers/pinctrl/intel/pinctrl-baytrail.c:413: error: unknown field 'simple_funcs' specified in initializer
        drivers/pinctrl/intel/pinctrl-baytrail.c:413: warning: missing braces around initializer
        drivers/pinctrl/intel/pinctrl-baytrail.c:413: warning: (near initialization for 'byt_score_groups[0].<anonymous>')
        drivers/pinctrl/intel/pinctrl-baytrail.c:415: error: unknown field 'simple_funcs' specified in initializer
        drivers/pinctrl/intel/pinctrl-baytrail.c:417: error: unknown field 'simple_funcs' specified in initializer
        ...
      
      Work around this.
      Acked-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      bbccb9c7
    • E
      i2c: dev: switch from register_chrdev to cdev API · d6760b14
      Erico Nunes 提交于
      i2c-dev had never moved away from the older register_chrdev interface to
      implement its char device registration. The register_chrdev API has the
      limitation of enabling only up to 256 i2c-dev busses to exist.
      
      Large platforms with lots of i2c devices (i.e. pluggable transceivers)
      with dedicated busses may have to exceed that limit.
      In particular, there are also platforms making use of the i2c bus
      multiplexing API, which instantiates a virtual bus for each possible
      multiplexed selection.
      
      This patch removes the register_chrdev usage and replaces it with the
      less old cdev API, which takes away the 256 i2c-dev bus limitation.
      It should not have any other impact for i2c bus drivers or user space.
      
      This patch has been tested on qemu x86 and qemu powerpc platforms with
      the aid of a module which adds and removes 5000 virtual i2c busses, as
      well as validated on an existing powerpc hardware platform which makes
      use of the i2c bus multiplexing API.
      i2c-dev busses with device minor numbers larger than 256 have also been
      validated to work with the existing i2c-tools.
      Signed-off-by: NErico Nunes <erico.nunes@datacom.ind.br>
      [wsa: kept includes sorted]
      Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
      d6760b14