Skip to content

drm/amdgpu: Tweaks for high pressure on CPU visible VRAM

Michel Dänzer amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/amdgpu: Drop useless loops for placement restrictionsdrivers/gpu/drm/amd/amdgpu/amdgpu_object.c drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c+8 -302 replies
2/3drm/amdgpu: Don't evict other BOs from VRAM for page faultsdrivers/gpu/drm/amd/amdgpu/amdgpu_object.c+8 -140 replies
3/3drm/amdgpu: Try evicting from CPU visible to invisible VRAM firstdrivers/gpu/drm/amd/amdgpu/amdgpu_object.c drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c+41 -54 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] drm/amdgpu: Tweaks for high pressure on CPU visible VRAM

From: Michel Dänzer <[email protected]>

This series was developed and tested under the following scenario:

Running the PTS dirt-rally benchmark (1920x1080, Ultra) on Tonga with 2G, with CPU visible VRAM artificially restricted to 64 MB.

Without this series, there's a lot of stutter during about the first minute of a benchmark run. During this time there are significant amounts of buffer moves (starting from about 500 MB on the HUD) and evictions, gradually declining until the buffer moves settle around 8 MB on the HUD.

With this series, there's only slight stutter during the first seconds after the car launches, even though the buffer move volume is about the same as without the series. Buffer evictions are eliminated almost completely, except for a few at the beginning. Buffer moves still settle around 8 MB on the HUD, but with less variance than before.

Note that there's only little if any improvement of the average framerate reported, but the minimum framerate as seen on the HUD goes from ~10 fps to ~17.

Patch 1 is a cleanup that I noticed along the way.

Patch 2 makes the main difference for the above scenario.

Patch 3 doesn't make as much difference, I'm fine with it not landing at least for now.

Michel Dänzer (3):
drm/amdgpu: Drop useless loops for placement restrictions drm/amdgpu: Don't evict other BOs from VRAM for page faults drm/amdgpu: Try evicting from CPU visible to invisible VRAM first

 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 42 ++++++++++++---------------
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c    | 46 ++++++++++++++++++++----------
 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c    |  6 +---
 3 files changed, 51 insertions(+), 43 deletions(-)
Signature · 6 lines
2.11.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx