Hi Michel, I've applied your series and it doesn't help with low Dirt Rally performance on Fiji. I see TTM buffer moves at 800MB/s and many VRAM page faults. Marek On Thu, May 18, 2017 at 11:08 AM, Michel Dänzer <michel at daenzer.net> wrote: > From: Michel Dänzer <michel.daenzer at amd.com> > > 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(-) > > -- > 2.11.0 > > _______________________________________________ > amd-gfx mailing list > amd-gfx at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx