1. 15 Aug, 2019 4 commits
    • Thomas Hellstrom's avatar
      drm/vmwgfx: Assign eviction priorities to resources · a0a63940
      Thomas Hellstrom authored
      TTM provides a means to assign eviction priorities to buffer object. This
      means that all buffer objects with a lower priority will be evicted first
      on memory pressure.
      Use this to make sure surfaces and in particular non-dirty surfaces are
      evicted first. Evicting in particular shaders, cotables and contexts imply
      a significant performance hit on vmwgfx, so make sure these resources are
      evicted last.
      Some buffer objects are sub-allocated in user-space which means we can have
      many resources attached to a single buffer object or resource. In that case
      the buffer object is given the highest priority of the attached resources.
      Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      Reviewed-by: default avatarDeepak Rawat <drawat@vmware.com>
      a0a63940
    • Sam Ravnborg's avatar
      drm/vmwgfx: drop reminaing users of drmP.h · 6ae8748b
      Sam Ravnborg authored
      Drop use of the deprecated drmP.h file from the
      remaining files.
      In several cases the drmP.h include could be removed without
      furter fixes. Other files required a few header files to be added.
      
      In all files divided includes files in blocks and sort them.
      
      v2:
      - fix warning in i386 build wiht HIGHMEM disabled
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Reported-by: kbuild test robot <lkp@intel.com> [warning in i386 build]
      Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
      Cc: Thomas Hellstrom <thellstrom@vmware.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Reviewed-by: default avatarDeepak Rawat <drawat@vmware.com>
      Signed-off-by: default avatarDeepak Rawat <drawat@vmware.com>
      Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      6ae8748b
    • Sam Ravnborg's avatar
      drm/vmwgfx: drop use of drmP.h in header files · d5c1f011
      Sam Ravnborg authored
      To facilitate removal of drmP.h in the .c
      files remove the use from header files first.
      Fix fallout in the other files.
      
      Sorted include files in blocks and sorted files
      within each block in alphabetical order.
      
      This revealed a dependency from an uapi header to a header
      located below drivers/gpu/drm/vmwgfx/.
      Added FIXME to remind someone to fix this.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
      Cc: Thomas Hellstrom <thellstrom@vmware.com>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Reviewed-by: default avatarDeepak Rawat <drawat@vmware.com>
      Signed-off-by: default avatarDeepak Rawat <drawat@vmware.com>
      Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      d5c1f011
    • Thomas Hellstrom's avatar
      drm/vmwgfx: Kill unneeded legacy security features · 9c84aeba
      Thomas Hellstrom authored
      At one point, the GPU command verifier and user-space handle manager
      couldn't properly protect GPU clients from accessing each other's data.
      Instead there was an elaborate mechanism to make sure only the active
      master's primary clients could render. The other clients were either
      put to sleep or even killed (if the master had exited). VRAM was
      evicted on master switch. With the advent of render-node functionality,
      we relaxed the VRAM eviction, but the other mechanisms stayed in place.
      
      Now that the GPU  command verifier and ttm object manager properly
      isolates primary clients from different master realms we can remove the
      master switch related code and drop those legacy features.
      Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      Reviewed-by: default avatarDeepak Rawat <drawat@vmware.com>
      9c84aeba
  2. 14 Aug, 2019 2 commits
  3. 12 Aug, 2019 1 commit
    • Dave Airlie's avatar
      Merge tag 'drm-next-5.4-2019-08-09' of git://people.freedesktop.org/~agd5f/linux into drm-next · e7f7287b
      Dave Airlie authored
      drm-next-5.4-2019-08-09:
      
      Same as drm-next-5.4-2019-08-06, but with the
      readq/writeq stuff fixed and 5.3-rc3 backmerged.
      
      amdgpu:
      - Add navi14 support
      - Add navi12 support
      - Add Arcturus support
      - Enable mclk DPM for Navi
      - Misc DC display fixes
      - Add perfmon support for DF
      - Add scatter/gather display support for Raven
      - Improve SMU handling for GPU reset
      - RAS support for GFX
      - Drop last of drmP.h
      - Add support for wiping memory on buffer release
      - Allow cursor async updates for fb swaps
      - Misc fixes and cleanups
      
      amdkfd:
      - Add navi14 support
      - Add navi12 support
      - Add Arcturus support
      - CWSR trap handlers updates for gfx9, 10
      - Drop last of drmP.h
      - Update MAINTAINERS
      
      radeon:
      - Misc fixes and cleanups
      - Make kexec more reliable by tearing down the GPU
      
      ttm:
      - Add release_notify callback
      
      uapi:
      - Add wipe memory on release flag for buffer creation
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      [airlied: resolved conflicts with ttm resv moving]
      From: Alex Deucher <alexdeucher@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190809184807.3381-1-alexander.deucher@amd.com
      e7f7287b
  4. 09 Aug, 2019 5 commits
  5. 07 Aug, 2019 16 commits
  6. 06 Aug, 2019 12 commits