Re: [Intel-gfx] [PATCH 3/6] drm/i915: Add uncore mmio api for per-context registers

2017-03-23 Thread Robert Bragg
On Thu, Feb 23, 2017 at 3:35 PM, Chris Wilson wrote: > On Wed, Feb 22, 2017 at 04:36:31PM +, Robert Bragg wrote: >> Since the exponent for periodic OA counter sampling is maintained in a >> per-context register while we want to treat it as if it were global >> state we need to be able to safel

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Add uncore mmio api for per-context registers

2017-02-23 Thread Chris Wilson
On Wed, Feb 22, 2017 at 04:36:31PM +, Robert Bragg wrote: > Since the exponent for periodic OA counter sampling is maintained in a > per-context register while we want to treat it as if it were global > state we need to be able to safely issue an mmio write to a per-context > register and affec

[Intel-gfx] [PATCH 3/6] drm/i915: Add uncore mmio api for per-context registers

2017-02-22 Thread Robert Bragg
Since the exponent for periodic OA counter sampling is maintained in a per-context register while we want to treat it as if it were global state we need to be able to safely issue an mmio write to a per-context register and affect any currently running context. We have to take some extra care in t