On 27/03/2020 12:40, Chris Wilson wrote:
Quoting Lionel Landwerlin (2020-03-27 10:32:07)
We want to enable performance monitoring on multiple contexts to cover
the Iris use case of using 2 GEM contexts (3D & compute).

So start by breaking the OA configuration BO which contains global &
per context register writes.

NOA muxes & OA configurations are global, while FLEXEU register
configurations are per context.

Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
---
  drivers/gpu/drm/i915/i915_perf.c | 194 ++++++++++++++++++++++---------
  1 file changed, 137 insertions(+), 57 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index 3222f6cd8255..f524f50abdef 100644
--- a/drivers/gpu/drm/i915/i915_perf.c
+++ b/drivers/gpu/drm/i915/i915_perf.c
@@ -376,7 +376,8 @@ struct i915_oa_config_bo {
         struct llist_node node;
struct i915_oa_config *oa_config;
-       struct i915_vma *vma;
+       struct i915_vma *ctx_vma;
+       struct i915_vma *global_vma;
What's the allocation like? Worth packing into one vma and use an
offset?
-Chris

Good point, thanks!


-Lionel

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to