1. 05 8月, 2013 16 次提交
  2. 27 7月, 2013 4 次提交
  3. 25 7月, 2013 9 次提交
  4. 24 7月, 2013 11 次提交
    • C
      drm/i915: Use Graphics Base of Stolen Memory on all gen3+ · 17fec8a0
      Chris Wilson 提交于
      So I made the mistake of missing that the desktop and mobile chipsets
      have different layouts in their PCI configurations, and we were
      incorrectly setting the wrong physical address for stolen memory on
      mobile chipsets.
      
      Since all gen3+ are actually consistent in the location of the GBSM
      register in the PCI configuration space on device 2 (the GPU), use it.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      [danvet: Drop cc: stable and fudge conflicts.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      17fec8a0
    • D
      drm/i915: disable stolen mem for OVERLAY_NEEDS_PHYSICAL · f63a484c
      Daniel Vetter 提交于
      Our phys_object code can't deal with stolen memory and so blows up.
      Fixing this is quite a bit of work and not worth it much for a single
      page object, so just opt-out.
      
      This is necessary prep work to enable stolen on gen2/3 platforms where
      the overlay register file isn't stored in the gtt.
      
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Acked-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      f63a484c
    • P
      drm/i915: add functions to disable and restore LCPLL · be256dc7
      Paulo Zanoni 提交于
      For now there are no callers, but these functions are going to be
      needed for the code that allows Package C8+. Other future features may
      also require this code.
      
      Also merge the commit which introduced assert_can_disable_lcpll and
      had the following commit message:
      
      Most of the hardware needs to be disabled before LCPLL is disabled, so
      let's add a function to assert some of items listed in the "Display
      Sequences for LCPLL disabling" documentation.
      
      The idea is that hsw_disable_lcpll should not disable the hardware,
      the callers need to take care of calling hsw_disable_lcpll only once
      everything is already disabled.
      
      v2: - Rebase.
          - Fix D_COMP wait timeout.
      v3: - Use wait_for_atomic_use (Ben)
          - Remove/add a useless/needed POSTING_READ (Ben)
          - Early return in case LCPLL is already restored (Ben)
          - Add ndelay(100) (Ben)
      v4: - Merge the commit that added assert_can_disable_lcpll (Ben)
          - Add interrupt assertions (Ben)
      Reviewed-by: NBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      [danvet: Fix compile fail since there's no HAS_LP_PCH yet.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      be256dc7
    • P
      drm/i915: disable CLKOUT_DP when it's not needed · 47701c3b
      Paulo Zanoni 提交于
      We currently don't support HDMI clock bending nor use SSC for DP or
      HDMI on Haswell, so the only case where we need CLKOUT_DP is for VGA.
      
      v2: - Replace the IS_ULT check for LPT-LP
          - Simplify GEN0/DBUFF0 check due to change on the previous patch
          - Also check for SBI_SSCCTL_DISABLE (Ben).
      Reviewed-by: NBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      47701c3b
    • P
      drm/i915: extend lpt_enable_clkout_dp · 2fa86a1f
      Paulo Zanoni 提交于
      Now it implements 3 different sequences from BSpec and also has
      support for ULT.
      
      v2: - Change IS_ULT checks for LPT-LP checks
          - Add check for LPT-LP + with_fdi (Ben)
          - Merge DBUFF0/GEN0 bit definitions since they're the same
            register (Ben)
          - DBUFF0 (1<<0) is Disable, not Enable
      Reviewed-by: NBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      2fa86a1f
    • D
      drm/i915: fix up error cleanup in i915_gem_object_bind_to_gtt · bc6bc15b
      Daniel Vetter 提交于
      This has been broken in
      
      commit 2f633156
      Author: Ben Widawsky <ben@bwidawsk.net>
      Date:   Wed Jul 17 12:19:03 2013 -0700
      
          drm/i915: Create VMAs
      
      which resulted in an OOPS the first time around we've hit -ENOSPC.
      
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67156
      Cc: Imre Deak <imre.deak@intel.com>
      Cc: Ben Widawsky <ben@bwidawsk.net>
      Tested-by: Nmeng <mengmeng.meng@intel.com>
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: NBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      bc6bc15b
    • C
      drm/i915: Add some debug breadcrumbs to connector detection · 164c8598
      Chris Wilson 提交于
      Try to decypher detection failures is a little tricker at the moment as
      the only indicator of progress is when output_poll_execute() tells us
      the result after the connector->detect() has run. This patch adds a
      telltale to the start of each detect function so that we can track
      progress and associate activity more clearly with each connector.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      164c8598
    • L
      Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux · 549f3a12
      Linus Torvalds 提交于
      Pull drm fixes from Dave Airlie:
       "This is just a regular fixes pull, mostly nouveau and i915, the i915
        ones fix RC6 on Sandybridge after suspend/resume, which I think people
        have be wanting for quite a while!
      
        Now you shouldn't wish for more patches, as the new mutex/reservation
        code found a number of problems with the qxl driver, and it currently
        makes lockdep angry, I'm working on a set of fixes for it, but its a
        bit large, I'll submit them separately later today or tomorrow once
        I've banged on them a bit more, just warning you in advance :-)"
      
      Yeah, I'm definitely over the whole "wish for more patches" thing.
      
      * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
        drm/crtc-helper: explicit DPMS on after modeset
        drm/i915: fix up gt init sequence fallout
        drm/i915: Serialize almost all register access
        drm/i915: quirk no PCH_PWM_ENABLE for Dell XPS13 backlight
        drm/i915: correctly restore fences with objects attached
        drm/i915: Fix dereferencing invalid connectors in is_crtc_connector_off()
        drm/i915: Sanitize shared dpll state
        drm/i915: fix long-standing SNB regression in power consumption after resume v2
        drm/i915: Preserve the DDI_A_4_LANES bit from the bios
        drm/i915: fix pfit regression for non-autoscaled resolutions
        drm/i915: fix up readout of the lvds dither bit on gen2/3
        drm/nouveau: do not allow negative sizes for now
        drm/nouveau: add falcon interrupt handler
        drm/nouveau: use dedicated channel for async moves on GT/GF chipsets.
        drm/nouveau: bump fence timeout to 15 seconds
        drm/nouveau: do not unpin in nouveau_gem_object_del
        drm/nv50/kms: fix pin refcnt leaks
        drm/nouveau: fix some error-path leaks in fbcon handling code
        drm/nouveau: fix locking issues in page flipping paths
      549f3a12
    • D
      Fix __wait_on_atomic_t() to call the action func if the counter != 0 · 42577ca8
      David Howells 提交于
      Fix __wait_on_atomic_t() so that it calls the action func if the counter != 0
      rather than if the counter is 0 so as to be analogous to __wait_on_bit().
      
      Thanks to Yacine who found this by visual inspection.
      
      This will affect FS-Cache in that it will could fail to sleep correctly when
      trying to clean up after a netfs cookie is withdrawn.
      Reported-by: NYacine Belkadi <yacine.belkadi.1@gmail.com>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Reviewed-by: NJeff Layton <jlayton@redhat.com>
      cc: Milosz Tanski <milosz@adfin.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      42577ca8
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha · 7c6d4dca
      Linus Torvalds 提交于
      Pull alpha architecture fixes from Matt Turner:
       "This contains mostly clean ups and fixes but also an implementation of
        atomic64_dec_if_positive() and a pair of new syscalls"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha:
        alpha: Use handle_percpu_irq for the timer interrupt
        alpha: Force the user-visible HZ to a constant 1024.
        alpha: Don't if-out dp264_device_interrupt.
        alpha: Use __builtin_alpha_rpcc
        alpha: Fix type compatibility warning for marvel_map_irq
        alpha: Generate dwarf2 unwind info for various kernel entry points.
        alpha: Implement atomic64_dec_if_positive
        alpha: Improve atomic_add_unless
        alpha: Modernize lib/mpi/longlong.h
        alpha: Add kcmp and finit_module syscalls
        alpha: locks: remove unused arch_*_relax operations
        alpha: kernel: typo issue, using '1' instead of '11'
        alpha: kernel: using memcpy() instead of strcpy()
        alpha: Convert print_symbol to %pSR
      7c6d4dca
    • L
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · a030cbc3
      Linus Torvalds 提交于
      Pull vhost fixes from Michael Tsirkin:
       "vhost: more fixes for 3.11
      
        This includes some fixes for vhost net and scsi drivers.
      
        The test module has already been reworked to avoid rcu usage, but the
        necessary core changes are missing, we fixed this.
      
        Unlikely to affect any real-world users, but it's early in the cycle
        so, let's merge them"
      
      (It was earlier when Michael originally sent the email, but it somehot
      got missed in the flood, so here it is after -rc2)
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
        vhost: Remove custom vhost rcu usage
        vhost-scsi: Always access vq->private_data under vq mutex
        vhost-net: Always access vq->private_data under vq mutex
      a030cbc3