Skip to content

Commit

Permalink
drm/i915/selftests: Mock the status_page.vma for the kernel_context
Browse files Browse the repository at this point in the history
Since we assert that the kernel_context is using the perma-pinned HWSP,
make it so.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2179
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200715155858.16410-1-chris@chris-wilson.co.uk
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
  • Loading branch information
Chris Wilson authored and Joonas Lahtinen committed Sep 7, 2020
1 parent 3f6a6f3 commit e3d0e21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/gt/mock_engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e3d0e21

Please sign in to comment.