[igt-dev] [PATCH i-g-t] igt: Force eviction of test bo directly

Michał Winiarski michal.winiarski at intel.com
Wed Jul 18 10:51:08 UTC 2018


On Fri, Jul 13, 2018 at 10:54:40AM +0100, Chris Wilson wrote:
> Currently we indirectly try to evict the test buffers by mmaping enough
> bo that should fill the aperture. However, this assumes that the kernel
> is trying to fill the aperture and does not use random replacement
> (which it does) or use small partials to avoid mmaping the whole object
> (which it does). Rather than assume, use the debugfs interface to force
> the eviction of the bound objects.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

Reviewed-by: Michał Winiarski <michal.winiarski at intel.com>

-Michał

> ---
>  tests/gem_caching.c                    | 9 +--------
>  tests/gem_partial_pwrite_pread.c       | 9 +--------
>  tests/gem_tiled_partial_pwrite_pread.c | 9 +--------
>  3 files changed, 3 insertions(+), 24 deletions(-)


More information about the igt-dev mailing list