summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
diff options
context:
space:
mode:
authorThomas Daniel <thomas.daniel@intel.com>2014-12-02 16:21:18 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-12-02 17:23:30 +0300
commit064ca1d250b14b785e662b0a13d8d20cb84574e1 (patch)
treeac40f6f8cce3eef09e383a72ef1698a00927b62a /drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c
parente7f1d0b735fd4bbec225a83de2aa8f52a0a2e95c (diff)
downloadlinux-064ca1d250b14b785e662b0a13d8d20cb84574e1.tar.xz
drm/i915: Don't pin LRC in GGTT when dumping in debugfs
LRC object does not need to be mapped into the GGTT when dumping. A side-effect of this patch is that a compiler warning goes away (not checking return value of i915_gem_obj_ggtt_pin). v2: Broke out individual context dumping into a new function as the indentation was getting a bit crazy. Added notification of contexts with no gem object for debugging purposes. Removed unnecessary pin_pages and unpin_pages, replaced with explicit get_pages for the context object as there may be no backing store allocated at this time (Comment for get_pages says "Ensure that the associated pages are gathered from the backing storage and pinned into our object"). Improved error checking - get_pages and get_page are checked for failure. Signed-off-by: Thomas Daniel <thomas.daniel@intel.com> [danvet: Align paramter continuation lines properly. Also add some braces to the nested loops again for readability.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4_dcb.c')
0 files changed, 0 insertions, 0 deletions