1. 03 12月, 2013 3 次提交
  2. 25 11月, 2013 7 次提交
  3. 22 11月, 2013 3 次提交
  4. 21 11月, 2013 22 次提交
  5. 20 11月, 2013 5 次提交
    • D
      drm/i915: Fix gen3 self-refresh watermarks · f727b490
      Daniel Vetter 提交于
      This regression has been introduced in
      
      commit 4fe8590a
      Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Date:   Wed Sep 4 18:25:22 2013 +0300
      
          drm/i915: Use adjusted_mode appropriately when computing watermarks
      
      I guess we should renable the enabled local variable into something a
      notch more descriptive, but that's something for -next.
      
      The effect on my i945gme netbook is pretty severe amounts of underruns
      - usually the very first pixel gets used for the entire screeen.
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Damien Lespiau <damien.lespiau@intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      f727b490
    • T
      drm/ttm: Remove set_need_resched from the ttm fault handler · c58f009e
      Thomas Hellstrom 提交于
      Addresses
      "[BUG] completely bonkers use of set_need_resched + VM_FAULT_NOPAGE".
      
      In the first occurence it was used to try to be nice while releasing the
      mmap_sem and retrying the fault to work around a locking inversion.
      The second occurence was never used.
      
      There has been some discussion whether we should change the locking order to
      mmap_sem -> bo_reserve. This patch doesn't address that issue, and leaves
      that locking order undefined. The solution that we release the mmap_sem if
      tryreserve fails and wait for the buffer to become unreserved is something
      we want in any case, and follows how the core vm system waits for pages
      to be come unlocked while releasing the mmap_sem.
      
      The code also outlines what needs to be changed if we want to establish the
      locking order as mmap_sem -> bo::reserve.
      
      One slight issue that remains with this code is that the fault handler might
      be prone to starvation if another thread countinously reserves the buffer.
      IMO that usage pattern is highly unlikely.
      Signed-off-by: NThomas Hellstrom <thellstrom@vmware.com>
      c58f009e
    • T
      drm/ttm: Don't move non-existing data · 0bc25425
      Thomas Hellstrom 提交于
      If ttm_bo_move_memcpy was instructed to move a non-populated ttm to
      io memory, it would first populate the ttm, then move the data and then
      destroy the ttm. That's stupid. However, some drivers might have relied on
      this to clear io memory from old stuff. So instead of a NOP, which would
      be the most efficient, just clear the destination.
      Signed-off-by: NThomas Hellstrom <thellstrom@vmware.com>
      Reviewed-by: NJakob Bornecrantz <jakob@vmware.com>
      0bc25425
    • N
      iscsi-target: Do not reject non-immediate CmdSNs exceeding MaxCmdSN · ea7e32be
      Nicholas Bellinger 提交于
      This patch changes iscsit_sequence_cmd() logic to no longer reject
      non-immediate CmdSNs that exceed MaxCmdSN with a protocol error,
      but instead silently ignore them.
      
      This is done to correctly follow RFC-3720 Section 3.2.2.1:
      
         For non-immediate commands, the CmdSN field can take any
         value from ExpCmdSN to MaxCmdSN inclusive.  The target MUST silently
         ignore any non-immediate command outside of this range or non-
         immediate duplicates within the range.
      Reported-by: NSantosh Kulkarni <santosh.kulkarni@calsoftinc.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      ea7e32be
    • N
      iscsi-target: Convert iscsi_session statistics to atomic_long_t · 04f3b31b
      Nicholas Bellinger 提交于
      This patch converts a handful of iscsi_session statistics to type
      atomic_long_t, instead of using iscsi_session->session_stats_lock
      when incrementing these values.
      
      More importantly, go ahead and drop the spinlock usage within
      iscsit_setup_scsi_cmd(), iscsit_check_dataout_hdr(),
      iscsit_send_datain(), and iscsit_build_rsp_pdu() fast-path code.
      
      (Squash in Roland's  target: Remove write-only stats fields and lock
      from struct se_node_acl)
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      04f3b31b