[Intel-gfx] [PATCH] drm/i915/selftests: Mock the status_page.vma for the kernel_context
Mika Kuoppala
mika.kuoppala at linux.intel.com
Thu Jul 16 10:52:22 UTC 2020
Chris Wilson <chris at chris-wilson.co.uk> writes:
> Since we assert that the kernel_context is using the perma-pinned HWSP,
> make it so.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Mika Kuoppala <mika.kuoppala at linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>
> ---
> drivers/gpu/drm/i915/gt/mock_engine.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/gt/mock_engine.c b/drivers/gpu/drm/i915/gt/mock_engine.c
> index b8dd3cbc8696..06303ba98c19 100644
> --- a/drivers/gpu/drm/i915/gt/mock_engine.c
> +++ b/drivers/gpu/drm/i915/gt/mock_engine.c
> @@ -332,6 +332,9 @@ int mock_engine_init(struct intel_engine_cs *engine)
> if (IS_ERR(ce))
> goto err_breadcrumbs;
>
> + /* We insist the kernel context is using the status_page */
> + engine->status_page.vma = ce->timeline->hwsp_ggtt;
> +
> engine->kernel_context = ce;
> return 0;
>
> --
> 2.20.1
More information about the Intel-gfx
mailing list