Re: [Intel-gfx] [PATCH 1/2] drm/i915: Assert the engine is idle before overwiting the HWS

2017-04-07 Thread Joonas Lahtinen
On ke, 2017-04-05 at 16:30 +0100, Chris Wilson wrote: > When we update the global seqno (on the engine timeline), we modify HW > state (both registers and mapped pages). As we do this, we should be > sure that the HW is idle and we are not causing a conflict. The caller > is supposed to

[Intel-gfx] [PATCH 1/2] drm/i915: Assert the engine is idle before overwiting the HWS

2017-04-05 Thread Chris Wilson
When we update the global seqno (on the engine timeline), we modify HW state (both registers and mapped pages). As we do this, we should be sure that the HW is idle and we are not causing a conflict. The caller is supposed to wait_for_idle before calling us to update the seqno, so let's assert