Re: [Intel-gfx] [PATCH 12/20] drm/i915/selftests: Verify LRC isolation

2020-02-28 Thread Mika Kuoppala
Chris Wilson writes: > Quoting Mika Kuoppala (2020-02-28 11:30:21) >> Chris Wilson writes: >> > + x = 0; >> > + dw = 0; >> > + hw = engine->pinned_default_state; >> > + hw += LRC_STATE_PN * PAGE_SIZE / sizeof(*hw); >> > + do { >> > + u32 lri = hw[dw]; >> > + >> >

Re: [Intel-gfx] [PATCH 12/20] drm/i915/selftests: Verify LRC isolation

2020-02-28 Thread Chris Wilson
Quoting Mika Kuoppala (2020-02-28 11:30:21) > Chris Wilson writes: > > + x = 0; > > + dw = 0; > > + hw = engine->pinned_default_state; > > + hw += LRC_STATE_PN * PAGE_SIZE / sizeof(*hw); > > + do { > > + u32 lri = hw[dw]; > > + > > + if (lri == 0) { > >

Re: [Intel-gfx] [PATCH 12/20] drm/i915/selftests: Verify LRC isolation

2020-02-28 Thread Mika Kuoppala
Chris Wilson writes: > Record the LRC registers before/after a preemption event to ensure that > the first context sees nothing from the second client; at least in the > normal per-context register state. > > References: https://gitlab.freedesktop.org/drm/intel/issues/1233 > Signed-off-by: Chris

[Intel-gfx] [PATCH 12/20] drm/i915/selftests: Verify LRC isolation

2020-02-27 Thread Chris Wilson
Record the LRC registers before/after a preemption event to ensure that the first context sees nothing from the second client; at least in the normal per-context register state. References: https://gitlab.freedesktop.org/drm/intel/issues/1233 Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/