[Intel-gfx] [PATCH 3/4] drm/i915: Flush all user surfaces prior to first use

Joonas Lahtinen joonas.lahtinen at linux.intel.com
Fri Jul 19 10:01:59 UTC 2019


Quoting Chris Wilson (2019-07-18 17:54:06)
> Since userspace has the ability to bypass the CPU cache from within its
> unprivileged command stream, we have to flush the CPU cache to memory
> in order to overwrite the previous contents on creation.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
> Cc: stablevger.kernel.org

Makes sense. If there is some platform where this absolutely can't
happen and they need optimization, we can special case later.

Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

Regards, Joonas


More information about the Intel-gfx mailing list