On Sat, Mar 04, 2017 at 10:35:32AM +0000, Chris Wilson wrote:
> Before we instantiate/pin the backing store for our use, we
> can prepopulate the shmemfs filp efficiently using the a
> write into the pagecache. We avoid the penalty of instantiating
> all the pages, important if the user is just writing to a few
> and never uses the object on the GPU, and using a direct write
> into shmemfs allows it to avoid the cost of retrieving a page
> (either swapin or clearing-before-use) before it is overwritten.
>
> This can be extended later to provide additional specialisation for
> other backends (other than shmemfs).
>
> References: https://bugs.freedesktop.org/show_bug.cgi?id=99107
> Signed-off-by: Chris Wilson <[email protected]>
> Cc: Matthew Auld <[email protected]>
> Cc: Joonas Lahtinen <[email protected]>
> Cc: Mika Kuoppala <[email protected]>
Whether to treat this as
Fixes: fe115628d567 ("drm/i915: Implement pwrite without struct-mutex")
Cc: <[email protected]> # v4.10+
? It prevents libva from taking the box down with it, so the impact is
severe enough that I think so - but it's not a fix, just a workaround.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx