[Intel-gfx] [PATCH 09/22] drm/i915/lmem: support kernel mapping
Chris Wilson
chris at chris-wilson.co.uk
Fri Sep 27 20:39:36 UTC 2019
Quoting Matthew Auld (2019-09-27 18:33:56)
> +static int igt_lmem_write_cpu(void *arg)
> +{
> + struct drm_i915_private *i915 = arg;
> + struct intel_context *ce = i915->engine[BCS0]->kernel_context;
> + struct drm_i915_gem_object *obj;
> + struct rnd_state prng;
> + u32 *vaddr;
> + u32 dword;
> + u32 val;
> + u32 sz;
> + int err;
> +
> + if (!HAS_ENGINE(i915, BCS0))
> + return 0;
Too late. You've already *i915->engine[BCS0]
-Chris
More information about the Intel-gfx
mailing list